Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fancytree upgrade & cleanup
azivner8d3ed6c8a6f9
diff --git a/public/libraries/fancytree/LICENSE.txt b/public/libraries/fancytree/LICENSE.txtdeleted file mode 100644index 980b1b2450..0000000000--- a/public/libraries/fancytree/LICENSE.txt+++ /dev/null@@ -1,21 +0,0 @@-Copyright 2008-2017 Martin Wendt,-http://wwWendt.de/--Permission is hereby granted, free of charge, to any person obtaining-a copy of this software and associated documentation files (the-"Software"), to deal in the Software without restriction, including-without limitation the rights to use, copy, modify, merge, publish,-distribute, sublicense, and/or sell copies of the Software, and to-permit persons to whom the Software is furnished to do so, subject to-the following conditions:--The above copyright notice and this permission notice shall be-included in all copies or substantial portions of the Software.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/public/libraries/fancytree/jquery.fancytree-all-deps.min.js b/public/libraries/fancytree/jquery.fancytree-all-deps.min.jsdeleted file mode 100644index babaa834d4..0000000000--- a/public/libraries/fancytree/jquery.fancytree-all-deps.min.js+++ /dev/null@@ -1,51 +0,0 @@-/*! jQuery Fancytree Plugin - 2.23.0 - 2017-05-27T20:09:38Z- * https://github.com/mar10/fancytree- * Copyright (c) 2017 Martin Wendt; Licensed MIT */-(function( factory ) {- if ( typeof define === "function" && define.amd ) {- define( [ "jquery" ], factory );- } else {- factory( jQuery );- }-}(function( $ ) {-/*! jQuery UI - v1.12.1 - 2017-02-23-* http://jqueryui.com-* Includes: widget.js, position.js, keycode.js, scroll-parent.js, unique-id.js, effect.js, effects/effect-blind.js-* Copyright jQuery Foundation and other contributors; Licensed MIT */--(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=h+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),T=e(k.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?D.left-=h:"center"===n.my[0]&&(D.left-=h/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=T[0],D.top+=T[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+T[0],u[1]+T[1]],my:n.my,at:n.at,within:b,elem:l})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-h,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}});var s="ui-effects-",n="ui-effects-style",o="ui-effects-animated",a=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=h(),n=s._rgba=[];return i=i.toLowerCase(),f(l,function(t,o){var a,r=o.re.exec(i),l=r&&o.parse(r),h=o.space||"rgba";return l?(a=s[h](l),s[c[h].cache]=a[c[h].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=h.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(n,a,r,l){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,l],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof h?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=h(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=h(t),n=s._space(),o=c[n],a=0===this.alpha()?h("transparent"):this,r=a[o.cache]||o.to(a._rgba),l=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],h=s[o],c=u[n.type]||{};null!==h&&(null===a?l[o]=h:(c.mod&&(h-a>c.mod/2?a+=c.mod:a-h>c.mod/2&&(a-=c.mod)),l[o]=i((h-a)*e+a,n)))}),this[n](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=h(e)._rgba;return h(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),l=Math.min(s,n,o),h=r-l,c=r+l,u=.5*c;return e=l===r?0:s===r?60*(n-o)/h+360:n===r?60*(o-s)/h+120:60*(s-n)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,l=n.to,c=n.from;h.fn[s]=function(s){if(l&&!this[a]&&(this[a]=l(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=h(c(d)),n[a]=d,n):h(d)},f(o,function(e,i){h.fn[e]||(h.fn[e]=function(n){var o,a=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":s,h=this[l](),c=h[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),h[i.idx]=n,this[l](h)))})})}),h.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=h(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(l){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=h(e.elem,i),e.end=h(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(a),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,o,a={};for(s in i)o=i[s],e[s]!==o&&(n[s]||(t.fx.step[s]||!isNaN(parseFloat(o)))&&(a[s]=o));return a}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(a.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var l=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",h=l.children?a.find("*").addBack():a;h=h.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),s=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function e(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function a(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(o)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;n>i;i++)null!==e[i]&&t.data(s+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,o=e.length;o>n;n++)null!==e[n]&&(i=t.data(s+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(n,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(n)||"",t.removeData(n)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(e){var i,n=e.css("position"),o=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(s+"placeholder",i)),e.css({position:n,left:o.left,top:o.top}),i},removePlaceholder:function(t){var e=s+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function i(e){function i(){l.removeData(o),t.effects.cleanUp(l),"hide"===s.mode&&l.hide(),r()}function r(){t.isFunction(h)&&h.call(l[0]),t.isFunction(e)&&e()}var l=t(this);s.mode=u.shift(),t.uiBackCompat===!1||a?"none"===s.mode?(l[c](),r()):n.call(l[0],s,i):(l.is(":hidden")?"hide"===c:"show"===c)?(l[c](),r()):n.call(l[0],s,r)}var s=e.apply(this,arguments),n=t.effects.effect[s.effect],a=n.mode,r=s.queue,l=r||"fx",h=s.complete,c=s.mode,u=[],d=function(e){var i=t(this),s=t.effects.mode(i,c)||a;i.data(o,!0),u.push(s),a&&("show"===s||s===a&&"hide"===s)&&i.show(),a&&"none"===s||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?c?this[c](s.duration,h):this.each(function(){h&&h.call(this)}):r===!1?this.each(d).each(i):this.queue(l,d).queue(l,i)},show:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):a(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,l=o?a.scrollLeft():0,h=n.offset(),c={top:h.top-r,left:h.left-l,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-l,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=a(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}(),t.effects,t.effects.define("blind","hide",function(e,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),r={clip:t.extend({},a)},l=t.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),l&&l.css(t.effects.clipToBox(r)),r.clip=a),l&&l.animate(t.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})});--/*! Fancytree Core */-!function(a,b,c,d){"use strict";function e(b,c){b||(c=c?": "+c:"",a.error("Fancytree assertion failed"+c))}function f(a,c){var d,e,f=b.console?b.console[a]:null;if(f)try{f.apply(b.console,c)}catch(g){for(e="",d=0;d<c.length;d++)e+=c[d];f(e)}}function g(a){return!(!a.tree||a.statusNodeType===d)}function h(b,c,d,e){var f,g,h,i=a.map(a.trim(b).split("."),function(a){return parseInt(a,10)}),j=a.map(Array.prototype.slice.call(arguments,1),function(a){return parseInt(a,10)});for(f=0;f<j.length;f++)if(g=i[f]||0,h=j[f]||0,g!==h)return g>h;return!0}function i(a,b,c,d,e){var f=function(){var c=b[a],f=d[a],g=b.ext[e],h=function(){return c.apply(b,arguments)},i=function(a){return c.apply(b,a)};return function(){var a=b._local,c=b._super,d=b._superApply;try{return b._local=g,b._super=h,b._superApply=i,f.apply(b,arguments)}finally{b._local=a,b._super=c,b._superApply=d}}}();return f}function j(b,c,d,e){for(var f in d)"function"==typeof d[f]?"function"==typeof b[f]?b[f]=i(f,b,c,d,e):"_"===f.charAt(0)?b.ext[e][f]=i(f,b,c,d,e):a.error("Could not override tree."+f+". Use prefix '_' to create tree."+e+"._"+f):"options"!==f&&(b.ext[e][f]=d[f])}function k(b,c){return b===d?a.Deferred(function(){this.resolve()}).promise():a.Deferred(function(){this.resolveWith(b,c)}).promise()}function l(b,c){return b===d?a.Deferred(function(){this.reject()}).promise():a.Deferred(function(){this.rejectWith(b,c)}).promise()}function m(a,b){return function(){a.resolveWith(b)}}function n(b){var c=a.extend({},b.data()),d=c.json;return delete c.fancytree,delete c.uiFancytree,d&&(delete c.json,c=a.extend(c,d)),c}function o(a){return(""+a).replace(y,function(a){return B[a]})}function p(a){return(""+a).replace(z,function(a){return B[a]})}function q(a){return a=a.toLowerCase(),function(b){return b.title.toLowerCase().indexOf(a)>=0}}function r(a){var b=new RegExp("^"+a,"i");return function(a){return b.test(a.title)}}function s(b,c){var d,f,g,h;for(this.parent=b,this.tree=b.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},d=0,f=H.length;d<f;d++)g=H[d],this[g]=c[g];null==this.unselectableIgnore&&null==this.unselectableStatus||(this.unselectable=!0),c.hideCheckbox&&a.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'"),c.data&&a.extend(this.data,c.data);for(g in c)I[g]||a.isFunction(c[g])||K[g]||(this.data[g]=c[g]);null==this.key?this.tree.options.defaultKey?(this.key=this.tree.options.defaultKey(this),e(this.key,"defaultKey() must return a unique key")):this.key="_"+w._nextNodeKey++:this.key=""+this.key,c.active&&(e(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),c.selected&&(this.tree.lastSelectedNode=this),h=c.children,h?h.length?this._setChildren(h):this.children=this.lazy?[]:null:this.children=null,this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function t(b){this.widget=b,this.$div=b.element,this.options=b.options,this.options&&(a.isFunction(this.options.lazyload)&&!a.isFunction(this.options.lazyLoad)&&(this.options.lazyLoad=function(){return w.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),b.options.lazyload.apply(this,arguments)}),a.isFunction(this.options.loaderror)&&a.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),this.options.fx!==d&&w.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30."),this.options.removeNode!==d&&a.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).")),this.ext={},this.data=n(this.$div),this._id=a.ui.fancytree._nextId++,this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this._enableUpdate=!0,this.lastSelectedNode=null,this.systemFocusElement=null,this.lastQuicksearchTerm="",this.lastQuicksearchTime=0,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var c,e={tree:this};this.rootNode=new s(e,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,c=a("<ul>",{"class":"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=c,this.rootNode.ul=c[0],null==this.options.debugLevel&&(this.options.debugLevel=w.debugLevel)}if(a.ui&&a.ui.fancytree)return void a.ui.fancytree.warn("Fancytree: ignored duplicate include");var u,v,w=null,x=new RegExp(/\.|\//),y=/[&<>"'\/]/g,z=/[<>"'\/]/g,A="$recursive_request",B={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},C={16:!0,17:!0,18:!0},D={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={0:"",1:"left",2:"middle",3:"right"},F="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),G={},H="checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),I={},J={},K={active:!0,children:!0,data:!0,focus:!0};for(u=0;u<F.length;u++)G[F[u]]=!0;for(u=0;u<H.length;u++)v=H[u],I[v]=!0,v!==v.toLowerCase()&&(J[v.toLowerCase()]=v);e(a.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),s.prototype={_findDirectChild:function(a){var b,c,d=this.children;if(d)if("string"==typeof a){for(b=0,c=d.length;b<c;b++)if(d[b].key===a)return d[b]}else{if("number"==typeof a)return this.children[a];if(a.parent===this)return a}return null},_setChildren:function(a){e(a&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var b=0,c=a.length;b<c;b++)this.children.push(new s(this,a[b]))},addChildren:function(b,c){var d,f,g,h=this.getFirstChild(),i=this.getLastChild(),j=null,k=[];for(a.isPlainObject(b)&&(b=[b]),this.children||(this.children=[]),d=0,f=b.length;d<f;d++)k.push(new s(this,b[d]));if(j=k[0],null==c?this.children=this.children.concat(k):(c=this._findDirectChild(c),g=a.inArray(c,this.children),e(g>=0,"insertBefore must be an existing child"),this.children.splice.apply(this.children,[g,0].concat(k))),h&&!c){for(d=0,f=k.length;d<f;d++)k[d].render();h!==this.getFirstChild()&&h.renderStatus(),i!==this.getLastChild()&&i.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===k.length?k[0]:null),j},addClass:function(a){return this.toggleClass(a,!0)},addNode:function(a,b){switch(b!==d&&"over"!==b||(b="child"),b){case"after":return this.getParent().addChildren(a,this.getNextSibling());case"before":return this.getParent().addChildren(a,this);case"firstChild":var c=this.children?this.children[0]:null;return this.addChildren(a,c);case"child":case"over":return this.addChildren(a)}e(!1,"Invalid mode: "+b)},addPagingNode:function(b,c){var d,e;if(c=c||"child",b===!1){for(d=this.children.length-1;d>=0;d--)e=this.children[d],"paging"===e.statusNodeType&&this.removeChild(e);return void(this.partload=!1)}return b=a.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},b),this.partload=!0,this.addNode(b,c)},appendSibling:function(a){return this.addNode(a,"after")},applyPatch:function(b){if(null===b)return this.remove(),k(this);var c,d,e,f={children:!0,expanded:!0,parent:!0};for(c in b)e=b[c],f[c]||a.isFunction(e)||(I[c]?this[c]=e:this.data[c]=e);return b.hasOwnProperty("children")&&(this.removeChildren(),b.children&&this._setChildren(b.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),d=b.hasOwnProperty("expanded")?this.setExpanded(b.expanded):k(this)},collapseSiblings:function(){return this.tree._callHook("nodeCollapseSiblings",this)},copyTo:function(a,b,c){return a.addNode(this.toDict(!0,c),b)},countChildren:function(a){var b,c,d,e=this.children;if(!e)return 0;if(d=e.length,a!==!1)for(b=0,c=d;b<c;b++)d+=e[b].countChildren();return d},debug:function(a){this.tree.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),f("log",arguments))},discard:function(){return this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead."),this.resetLazy()},discardMarkup:function(a){var b=a?"nodeRemoveMarkup":"nodeRemoveChildMarkup";this.tree._callHook(b,this)},findAll:function(b){b=a.isFunction(b)?b:q(b);var c=[];return this.visit(function(a){b(a)&&c.push(a)}),c},findFirst:function(b){b=a.isFunction(b)?b:q(b);var c=null;return this.visit(function(a){if(b(a))return c=a,!1}),c},_changeSelectStatusAttrs:function(a){var b=!1,c=this.tree.options,f=w.evalOption("unselectable",this,this,c,!1),g=w.evalOption("unselectableStatus",this,this,c,d);switch(f&&null!=g&&(a=g),a){case!1:b=this.selected||this.partsel,this.selected=!1,this.partsel=!1;break;case!0:b=!this.selected||!this.partsel,this.selected=!0,this.partsel=!0;break;case d:b=this.selected||!this.partsel,this.selected=!1,this.partsel=!0;break;default:e(!1,"invalid state: "+a)}return b&&this.renderStatus(),b},fixSelection3AfterClick:function(a){var b=this.isSelected();this.visit(function(a){a._changeSelectStatusAttrs(b)}),this.fixSelection3FromEndNodes(a)},fixSelection3FromEndNodes:function(a){function b(a){var e,f,g,h,i,j,k,l,m,n=a.children;if(n&&n.length){for(j=!0,k=!1,e=0,f=n.length;e<f;e++)g=n[e],h=b(g),l=w.evalOption("unselectableIgnore",g,g,c,!1),l||(h!==!1&&(k=!0),h!==!0&&(j=!1));i=!!j||!!k&&d}else m=w.evalOption("unselectableStatus",a,a,c,d),i=null==m?!!a.selected:!!m;return a._changeSelectStatusAttrs(i),i}var c=this.tree.options;e(3===c.selectMode,"expected selectMode 3"),b(this),this.visitParents(function(a){var b,e,f,g,h,i,j=a.children,k=!0,l=!1;for(b=0,e=j.length;b<e;b++)f=j[b],h=w.evalOption("unselectableIgnore",f,f,c,!1),h||(i=w.evalOption("unselectableStatus",f,f,c,d),g=null==i?!!f.selected:!!i,(g||f.partsel)&&(l=!0),g||(k=!1));g=!!k||!!l&&d,a._changeSelectStatusAttrs(g)})},fromDict:function(b){for(var c in b)I[c]?this[c]=b[c]:"data"===c?a.extend(this.data,b.data):a.isFunction(b[c])||K[c]||(this.data[c]=b[c]);b.children&&(this.removeChildren(),this.addChildren(b.children)),this.renderTitle()},getChildren:function(){return this.hasChildren()===d?d:this.children},getFirstChild:function(){return this.children?this.children[0]:null},getIndex:function(){return a.inArray(this,this.parent.children)},getIndexHier:function(b,c){b=b||".";var d,e=[];return a.each(this.getParentList(!1,!0),function(a,b){d=""+(b.getIndex()+1),c&&(d=("0000000"+d).substr(-c)),e.push(d)}),e.join(b)},getKeyPath:function(a){var b=[],c=this.tree.options.keyPathSeparator;return this.visitParents(function(a){a.parent&&b.unshift(a.key)},!a),c+b.join(c)},getLastChild:function(){return this.children?this.children[this.children.length-1]:null},getLevel:function(){for(var a=0,b=this.parent;b;)a++,b=b.parent;return a},getNextSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=0,b=c.length-1;a<b;a++)if(c[a]===this)return c[a+1]}return null},getParent:function(){return this.parent},getParentList:function(a,b){for(var c=[],d=b?this:this.parent;d;)(a||d.parent)&&c.unshift(d),d=d.parent;return c},getPrevSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=1,b=c.length;a<b;a++)if(c[a]===this)return c[a-1]}return null},getSelectedNodes:function(a){var b=[];return this.visit(function(c){if(c.selected&&(b.push(c),a===!0))return"skip"}),b},hasChildren:function(){return this.lazy?null==this.children?d:0!==this.children.length&&(1!==this.children.length||!this.children[0].isStatusNode()||d):!(!this.children||!this.children.length)},hasFocus:function(){return this.tree.hasFocus()&&this.tree.focusNode===this},info:function(a){this.tree.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),f("info",arguments))},isActive:function(){return this.tree.activeNode===this},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a||a.tree!==this.tree)return!1;for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var a=this.parent;return!a||a.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var a=this.parent;return!a||a.children[a.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||this.hasChildren()!==d},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return this.hasChildren()===d},isVisible:function(){var a,b,c=this.getParentList(!1,!1);for(a=0,b=c.length;a<b;a++)if(!c[a].expanded)return!1;return!0},lazyLoad:function(a){return this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead."),this.load(a)},load:function(a){var b,c,d=this,f=this.isExpanded();return e(this.isLazy(),"load() requires a lazy node"),a||this.isUndefined()?(this.isLoaded()&&this.resetLazy(),c=this.tree._triggerNodeEvent("lazyLoad",this),c===!1?k(this):(e("boolean"!=typeof c,"lazyLoad event must return source in data.result"),b=this.tree._callHook("nodeLoadChildren",this,c),f?(this.expanded=!0,b.always(function(){d.render()})):b.always(function(){d.renderStatus()}),b)):k(this)},makeVisible:function(b){var c,d=this,e=[],f=new a.Deferred,g=this.getParentList(!1,!1),h=g.length,i=!(b&&b.noAnimation===!0),j=!(b&&b.scrollIntoView===!1);for(c=h-1;c>=0;c--)e.push(g[c].setExpanded(!0,b));return a.when.apply(a,e).done(function(){j?d.scrollIntoView(i).done(function(){f.resolve()}):f.resolve()}),f.promise()},moveTo:function(b,c,f){c===d||"over"===c?c="child":"firstChild"===c&&(b.children&&b.children.length?(c="before",b=b.children[0]):c="child");var g,h=this.parent,i="child"===c?b:b.parent;if(this!==b){if(this.parent?i.isDescendantOf(this)&&a.error("Cannot move a node to its own descendant"):a.error("Cannot move system root"),i!==h&&h.triggerModifyChild("remove",this),1===this.parent.children.length){if(this.parent===i)return;this.parent.children=this.parent.lazy?[]:null,this.parent.expanded=!1}else g=a.inArray(this,this.parent.children),e(g>=0,"invalid source parent"),this.parent.children.splice(g,1);if(this.parent=i,i.hasChildren())switch(c){case"child":i.children.push(this);break;case"before":g=a.inArray(b,i.children),e(g>=0,"invalid target parent"),i.children.splice(g,0,this);break;case"after":g=a.inArray(b,i.children),e(g>=0,"invalid target parent"),i.children.splice(g+1,0,this);break;default:a.error("Invalid mode "+c)}else i.children=[this];f&&b.visit(f,!0),i===h?i.triggerModifyChild("move",this):i.triggerModifyChild("add",this),this.tree!==b.tree&&(this.warn("Cross-tree moveTo is experimantal!"),this.visit(function(a){a.tree=b.tree},!0)),h.isDescendantOf(i)||h.render(),i.isDescendantOf(h)||i===h||i.render()}},navigate:function(b,c){function d(d){if(d){try{d.makeVisible({scrollIntoView:!1})}catch(e){}return a(d.span).is(":visible")?c===!1?d.setFocus():d.setActive():(d.debug("Navigate: skipping hidden node"),void d.navigate(b,c))}}var e,f,g,h=!0,i=a.ui.keyCode,j=null;switch(b){case i.BACKSPACE:this.parent&&this.parent.parent&&(g=d(this.parent));break;case i.HOME:this.tree.visit(function(b){if(a(b.span).is(":visible"))return g=d(b),!1});break;case i.END:this.tree.visit(function(b){a(b.span).is(":visible")&&(g=b)}),g&&(g=d(g));break;case i.LEFT:this.expanded?(this.setExpanded(!1),g=d(this)):this.parent&&this.parent.parent&&(g=d(this.parent));break;case i.RIGHT:this.expanded||!this.children&&!this.lazy?this.children&&this.children.length&&(g=d(this.children[0])):(this.setExpanded(),g=d(this));break;case i.UP:for(j=this.getPrevSibling();j&&!a(j.span).is(":visible");)j=j.getPrevSibling();for(;j&&j.expanded&&j.children&&j.children.length;)j=j.children[j.children.length-1];!j&&this.parent&&this.parent.parent&&(j=this.parent),g=d(j);break;case i.DOWN:if(this.expanded&&this.children&&this.children.length)j=this.children[0];else for(f=this.getParentList(!1,!0),e=f.length-1;e>=0;e--){for(j=f[e].getNextSibling();j&&!a(j.span).is(":visible");)j=j.getNextSibling();if(j)break}g=d(j);break;default:h=!1}return g||k()},remove:function(){return this.parent.removeChild(this)},removeChild:function(a){return this.tree._callHook("nodeRemoveChild",this,a)},removeChildren:function(){return this.tree._callHook("nodeRemoveChildren",this)},removeClass:function(a){return this.toggleClass(a,!1)},render:function(a,b){return this.tree._callHook("nodeRender",this,a,b)},renderTitle:function(){return this.tree._callHook("nodeRenderTitle",this)},renderStatus:function(){return this.tree._callHook("nodeRenderStatus",this)},replaceWith:function(b){var c,d=this.parent,f=a.inArray(this,d.children),g=this;return e(this.isPagingNode(),"replaceWith() currently requires a paging status node"),c=this.tree._callHook("nodeLoadChildren",this,b),c.done(function(a){var b=g.children;for(u=0;u<b.length;u++)b[u].parent=d;d.children.splice.apply(d.children,[f+1,0].concat(b)),g.children=null,g.remove(),d.render()}).fail(function(){g.setExpanded()}),c},resetLazy:function(){this.removeChildren(),this.expanded=!1,this.lazy=!0,this.children=d,this.renderStatus()},scheduleAction:function(b,c){this.tree.timer&&clearTimeout(this.tree.timer),this.tree.timer=null;var d=this;switch(b){case"cancel":break;case"expand":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger expand"),d.setExpanded(!0)},c);break;case"activate":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger activate"),d.setActive(!0)},c);break;default:a.error("Invalid mode "+b)}},scrollIntoView:function(f,h){h!==d&&g(h)&&(this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."),h={topNode:h});var i,j,l,m,n=a.extend({effects:f===!0?{duration:200,queue:!1}:f,scrollOfs:this.tree.options.scrollOfs,scrollParent:this.tree.options.scrollParent||this.tree.$container,topNode:null},h),o=new a.Deferred,p=this,q=a(this.span).height(),r=a(n.scrollParent),s=n.scrollOfs.top||0,t=n.scrollOfs.bottom||0,u=r.height(),v=r.scrollTop(),w=r,x=r[0]===b,y=n.topNode||null,z=null;return a(this.span).is(":visible")?(x?(j=a(this.span).offset().top,i=y&&y.span?a(y.span).offset().top:0,w=a("html,body")):(e(r[0]!==c&&r[0]!==c.body,"scrollParent should be a simple element or `window`, not document or body."),m=r.offset().top,j=a(this.span).offset().top-m+v,i=y?a(y.span).offset().top-m+v:0,l=Math.max(0,r.innerHeight()-r[0].clientHeight),u-=l),j<v+s?z=j-s:j+q>v+u-t&&(z=j+q-u+t,y&&(e(y.isRootNode()||a(y.span).is(":visible"),"topNode must be visible"),i<z&&(z=i-s))),null!==z?n.effects?(n.effects.complete=function(){o.resolveWith(p)},w.stop(!0).animate({scrollTop:z},n.effects)):(w[0].scrollTop=z,o.resolveWith(this)):o.resolveWith(this),o.promise()):(this.warn("scrollIntoView(): node is invisible."),k())},setActive:function(a,b){return this.tree._callHook("nodeSetActive",this,a,b)},setExpanded:function(a,b){return this.tree._callHook("nodeSetExpanded",this,a,b)},setFocus:function(a){return this.tree._callHook("nodeSetFocus",this,a)},setSelected:function(a,b){return this.tree._callHook("nodeSetSelected",this,a,b)},setStatus:function(a,b,c){return this.tree._callHook("nodeSetStatus",this,a,b,c)},setTitle:function(a){this.title=a,this.renderTitle(),this.triggerModify("rename")},sortChildren:function(a,b){var c,d,e=this.children;if(e){if(a=a||function(a,b){var c=a.title.toLowerCase(),d=b.title.toLowerCase();return c===d?0:c>d?1:-1},e.sort(a),b)for(c=0,d=e.length;c<d;c++)e[c].children&&e[c].sortChildren(a,"$norender$");"$norender$"!==b&&this.render(),this.triggerModifyChild("sort")}},toDict:function(b,c){var d,e,f,g={},h=this;if(a.each(H,function(a,b){(h[b]||h[b]===!1)&&(g[b]=h[b])}),a.isEmptyObject(this.data)||(g.data=a.extend({},this.data),a.isEmptyObject(g.data)&&delete g.data),c&&c(g,h),b&&this.hasChildren())for(g.children=[],d=0,e=this.children.length;d<e;d++)f=this.children[d],f.isStatusNode()||g.children.push(f.toDict(!0,c));return g},toggleClass:function(b,c){var e,f,g=/\S+/g,h=b.match(g)||[],i=0,j=!1,k=this[this.tree.statusClassPropName],l=" "+(this.extraClasses||"")+" ";for(k&&a(k).toggleClass(b,c);e=h[i++];)if(f=l.indexOf(" "+e+" ")>=0,c=c===d?!f:!!c)f||(l+=e+" ",j=!0);else for(;l.indexOf(" "+e+" ")>-1;)l=l.replace(" "+e+" "," ");return this.extraClasses=a.trim(l),j},toggleExpanded:function(){return this.tree._callHook("nodeToggleExpanded",this)},toggleSelected:function(){return this.tree._callHook("nodeToggleSelected",this)},toString:function(){return"<FancytreeNode(#"+this.key+", '"+this.title+"')>"},triggerModifyChild:function(b,c,d){var e,f=this.tree.options.modifyChild;f&&(c&&c.parent!==this&&a.error("childNode "+c+" is not a child of "+this),e={node:this,tree:this.tree,operation:b,childNode:c||null},d&&a.extend(e,d),f({type:"modifyChild"},e))},triggerModify:function(a,b){this.parent.triggerModifyChild(a,this,b)},visit:function(a,b){var c,d,e=!0,f=this.children;if(b===!0&&(e=a(this),e===!1||"skip"===e))return e;if(f)for(c=0,d=f.length;c<d&&(e=f[c].visit(a,!0),e!==!1);c++);return e},visitAndLoad:function(b,c,d){var e,f,g,h=this;return b&&c===!0&&(f=b(h),f===!1||"skip"===f)?d?f:k():h.children||h.lazy?(e=new a.Deferred,g=[],h.load().done(function(){for(var c=0,d=h.children.length;c<d;c++){if(f=h.children[c].visitAndLoad(b,!0,!0),f===!1){e.reject();break}"skip"!==f&&g.push(f)}a.when.apply(this,g).then(function(){e.resolve()})}),e.promise()):k()},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},visitSiblings:function(a,b){var c,d,e,f=this.parent.children;for(c=0,d=f.length;c<d;c++)if(e=f[c],(b||e!==this)&&a(e)===!1)return!1;return!0},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),f("warn",arguments)}},t.prototype={_makeHookContext:function(b,c,e){var f,g;return b.node!==d?(c&&b.originalEvent!==c&&a.error("invalid args"),f=b):b.tree?(g=b.tree,f={node:b,tree:g,widget:g.widget,options:g.widget.options,originalEvent:c}):b.widget?f={node:null,tree:b,widget:b.widget,options:b.widget.options,originalEvent:c}:a.error("invalid args"),e&&a.extend(f,e),f},_callHook:function(b,c,d){var e=this._makeHookContext(c),f=this[b],g=Array.prototype.slice.call(arguments,2);return a.isFunction(f)||a.error("_callHook('"+b+"') is not a function"),g.unshift(e),f.apply(this,g)},_requireExtension:function(b,c,d,f){d=!!d;var g=this._local.name,h=this.options.extensions,i=a.inArray(b,h)<a.inArray(g,h),j=c&&null==this.ext[b],k=!j&&null!=d&&d!==i;return e(g&&g!==b,"invalid or same name"),!j&&!k||(f||(j||c?(f="'"+g+"' extension requires '"+b+"'",k&&(f+=" to be registered "+(d?"before":"after")+" itself")):f="If used together, `"+b+"` must be registered "+(d?"before":"after")+" `"+g+"`"),a.error(f),!1)},activateKey:function(a){var b=this.getNodeByKey(a);return b?b.setActive():this.activeNode&&this.activeNode.setActive(!1),b},addPagingNode:function(a,b){return this.rootNode.addPagingNode(a,b)},applyPatch:function(b){var c,d,f,g,h,i,j=b.length,k=[];for(d=0;d<j;d++)f=b[d],e(2===f.length,"patchList must be an array of length-2-arrays"),g=f[0],h=f[1],i=null===g?this.rootNode:this.getNodeByKey(g),i?(c=new a.Deferred,k.push(c),i.applyPatch(h).always(m(c,i))):this.warn("could not find node with key '"+g+"'");return a.when.apply(a,k).promise()},clear:function(a){this._callHook("treeClear",this)},count:function(){return this.rootNode.countChildren()},debug:function(a){this.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),f("log",arguments))},enableUpdate:function(a){return a=a!==!1,!!this._enableUpdate==!!a?a:(this._enableUpdate=a,a?(this.debug("enableUpdate(true): redraw "),this.render()):this.debug("enableUpdate(false)..."),!a)},findAll:function(a){return this.rootNode.findAll(a)},findFirst:function(a){return this.rootNode.findFirst(a)},findNextNode:function(b,c,d){var e=null,f=c.parent.children,g=null,h=function(a,b,c){var d,e,f=a.children,g=f.length,i=f[b];if(i&&c(i)===!1)return!1;if(i&&i.children&&i.expanded&&h(i,0,c)===!1)return!1;for(d=b+1;d<g;d++)if(h(a,d,c)===!1)return!1;return e=a.parent,e?h(e,e.children.indexOf(a)+1,c):h(a,0,c)};return b="string"==typeof b?r(b):b,c=c||this.getFirstChild(),h(c.parent,f.indexOf(c),function(d){return d!==e&&(e=e||d,a(d.span).is(":visible")?(!b(d)||(g=d,g===c))&&void 0:void d.debug("quicksearch: skipping hidden node"))}),g},generateFormElements:function(b,c,d){function e(b){j.append(a("<input>",{type:"checkbox",name:g,value:b.key,checked:!0}))}d=d||{};var f,g="string"==typeof b?b:"ft_"+this._id+"[]",h="string"==typeof c?c:"ft_"+this._id+"_active",i="fancytree_result_"+this._id,j=a("#"+i),k=3===this.options.selectMode&&d.stopOnParents!==!1;j.length?j.empty():j=a("<div>",{id:i}).hide().insertAfter(this.$container),c!==!1&&this.activeNode&&j.append(a("<input>",{type:"radio",name:h,value:this.activeNode.key,checked:!0})),d.filter?this.visit(function(a){var b=d.filter(a);return"skip"===b?b:void(b!==!1&&e(a))}):b!==!1&&(f=this.getSelectedNodes(k),a.each(f,function(a,b){e(b)}))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getNodeByKey:function(a,b){var d,e;return!b&&(d=c.getElementById(this.options.idPrefix+a))?d.ftnode?d.ftnode:null:(b=b||this.rootNode,e=null,b.visit(function(b){if(b.key===a)return e=b,!1},!0),e)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(a){return this.rootNode.getSelectedNodes(a)},hasFocus:function(){return!!this._hasFocus},info:function(a){this.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),f("info",arguments))},loadKeyPath:function(b,c,e){function f(a,b,d){c.call(r,b,"loading"),b.load().done(function(){r.loadKeyPath.call(r,l[a],c,b).always(m(d,r))}).fail(function(e){r.warn("loadKeyPath: error loading: "+a+" (parent: "+o+")"),c.call(r,b,"error"),d.reject()})}var g,h,i,j,k,l,n,o,p,q=this.options.keyPathSeparator,r=this;for(c=c||a.noop,a.isArray(b)||(b=[b]),l={},i=0;i<b.length;i++)for(o=e||this.rootNode,j=b[i],j.charAt(0)===q&&(j=j.substr(1)),p=j.split(q);p.length;){if(k=p.shift(),n=o._findDirectChild(k),!n){this.warn("loadKeyPath: key not found: "+k+" (parent: "+o+")"),c.call(this,k,"error");break}if(0===p.length){c.call(this,n,"ok");break}if(n.lazy&&n.hasChildren()===d){c.call(this,n,"loaded"),l[k]?l[k].push(p.join(q)):l[k]=[p.join(q)];break}c.call(this,n,"loaded"),o=n}g=[];for(k in l)n=o._findDirectChild(k),null==n&&(n=r.getNodeByKey(k)),h=new a.Deferred,g.push(h),f(k,n,h);return a.when.apply(a,g).promise()},reactivate:function(a){var b,c=this.activeNode;return c?(this.activeNode=null,b=c.setActive(!0,{noFocus:!0}),a&&c.setFocus(),b):k()},reload:function(a){return this._callHook("treeClear",this),this._callHook("treeLoad",this,a)},render:function(a,b){return this.rootNode.render(a,b)},setFocus:function(a){return this._callHook("treeSetFocus",this,a)},toDict:function(a,b){var c=this.rootNode.toDict(!0,b);return a?c:c.children},toString:function(){return"<Fancytree(#"+this._id+")>"},_triggerNodeEvent:function(a,b,c,e){var f=this._makeHookContext(b,c,e),g=this.widget._trigger(a,c,f);return g!==!1&&f.result!==d?f.result:g},_triggerTreeEvent:function(a,b,c){var e=this._makeHookContext(this,b,c),f=this.widget._trigger(a,b,e);return f!==!1&&e.result!==d?e.result:f},visit:function(a){return this.rootNode.visit(a,!1)},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),f("warn",arguments)}},a.extend(t.prototype,{nodeClick:function(a){var b,c,d=a.targetType,e=a.node;if("expander"===d){if(e.isLoading())return void e.debug("Got 2nd click while loading: ignored");this._callHook("nodeToggleExpanded",a)}else if("checkbox"===d)this._callHook("nodeToggleSelected",a),a.options.focusOnSelect&&this._callHook("nodeSetFocus",a,!0);else{if(c=!1,b=!0,e.folder)switch(a.options.clickFolderMode){case 2:c=!0,b=!1;break;case 3:b=!0,c=!0}b&&(this.nodeSetFocus(a),this._callHook("nodeSetActive",a,!0)),c&&this._callHook("nodeToggleExpanded",a)}},nodeCollapseSiblings:function(a,b){var c,d,e,f=a.node;if(f.parent)for(c=f.parent.children,d=0,e=c.length;d<e;d++)c[d]!==f&&c[d].expanded&&this._callHook("nodeSetExpanded",c[d],!1,b)},nodeDblclick:function(a){"title"===a.targetType&&4===a.options.clickFolderMode&&this._callHook("nodeToggleExpanded",a),"title"===a.targetType&&a.originalEvent.preventDefault()},nodeKeydown:function(b){var c,d,e,f,g=b.originalEvent,h=b.node,i=b.tree,j=b.options,k=g.which,l=String.fromCharCode(k),m=!(g.altKey||g.ctrlKey||g.metaKey||g.shiftKey),n=a(g.target),o=!0,p=!(g.ctrlKey||!j.autoActivate);if(h||(f=this.getActiveNode()||this.getFirstChild(),f&&(f.setFocus(),h=b.node=this.focusNode,h.debug("Keydown force focus on active node"))),j.quicksearch&&m&&/\w/.test(l)&&!D[k]&&!n.is(":input:enabled"))return d=(new Date).getTime(),d-i.lastQuicksearchTime>500&&(i.lastQuicksearchTerm=""),i.lastQuicksearchTime=d,i.lastQuicksearchTerm+=l,c=i.findNextNode(i.lastQuicksearchTerm,i.getActiveNode()),c&&c.setActive(),void g.preventDefault();switch(w.eventToString(g)){case"+":case"=":i.nodeSetExpanded(b,!0);break;case"-":i.nodeSetExpanded(b,!1);break;case"space":h.isPagingNode()?i._triggerNodeEvent("clickPaging",b,g):j.checkbox?i.nodeToggleSelected(b):i.nodeSetActive(b,!0);break;case"return":i.nodeSetActive(b,!0);break;case"home":case"end":case"backspace":case"left":case"right":case"up":case"down":e=h.navigate(g.which,p,!0);break;default:o=!1}o&&g.preventDefault()},nodeLoadChildren:function(b,c){var d,f,g,h=b.tree,i=b.node,j=(new Date).getTime();return a.isFunction(c)&&(c=c.call(h,{type:"source"},b),e(!a.isFunction(c),"source callback must not return another function")),c.url&&(i._requestId&&i.warn("Recursive load request #"+j+" while #"+i._requestId+" is pending."),d=a.extend({},b.options.ajax,c),i._requestId=j,d.debugDelay?(f=d.debugDelay,a.isArray(f)&&(f=f[0]+Math.random()*(f[1]-f[0])),i.warn("nodeLoadChildren waiting debugDelay "+Math.round(f)+" ms ..."),d.debugDelay=!1,g=a.Deferred(function(b){setTimeout(function(){a.ajax(d).done(function(){b.resolveWith(this,arguments)}).fail(function(){b.rejectWith(this,arguments)})},f)})):g=a.ajax(d),c=new a.Deferred,g.done(function(d,e,f){var g,k;if("json"!==this.dataType&&"jsonp"!==this.dataType||"string"!=typeof d||a.error("Ajax request returned a string (did you get the JSON dataType wrong?)."),i._requestId&&i._requestId>j)return void c.rejectWith(this,[A]);if(b.options.postProcess){try{k=h._triggerNodeEvent("postProcess",b,b.originalEvent,{response:d,error:null,dataType:this.dataType})}catch(l){k={error:l,message:""+l,details:"postProcess failed"}}if(k.error)return g=a.isPlainObject(k.error)?k.error:{message:k.error},g=h._makeHookContext(i,null,g),void c.rejectWith(this,[g]);d=a.isArray(k)?k:d}else d&&d.hasOwnProperty("d")&&b.options.enableAspx&&(d="string"==typeof d.d?a.parseJSON(d.d):d.d);c.resolveWith(this,[d])}).fail(function(a,b,d){var e=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:d,details:a.status+": "+d});c.rejectWith(this,[e])})),a.isFunction(c.then)&&a.isFunction(c["catch"])&&(g=c,-c=new a.Deferred,g.then(function(a){c.resolve(a)},function(a){c.reject(a)})),a.isFunction(c.promise)&&(h.nodeSetStatus(b,"loading"),c.done(function(a){h.nodeSetStatus(b,"ok"),i._requestId=null}).fail(function(a){var c;return a===A?void i.warn("Ignored response for obsolete load request #"+j+" (expected #"+i._requestId+")"):(a.node&&a.error&&a.message?c=a:(c=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:a?a.message||a.toString():""}),"[object Object]"===c.message&&(c.message="")),i.warn("Load children failed ("+c.message+")",c),void(h._triggerNodeEvent("loadError",c,null)!==!1&&h.nodeSetStatus(b,"error",c.message,c.details)))})),a.when(c).done(function(b){var c;a.isPlainObject(b)&&(e(i.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),e(a.isArray(b.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),c=b,b=b.children,delete c.children,a.extend(h.data,c)),e(a.isArray(b),"expected array of children"),i._setChildren(b),h._triggerNodeEvent("loadChildren",i)})},nodeLoadKeyPath:function(a,b){},nodeRemoveChild:function(b,c){var d,f=b.node,g=a.extend({},b,{node:c}),h=f.children;return 1===h.length?(e(c===h[0],"invalid single child"),this.nodeRemoveChildren(b)):(this.activeNode&&(c===this.activeNode||this.activeNode.isDescendantOf(c))&&this.activeNode.setActive(!1),this.focusNode&&(c===this.focusNode||this.focusNode.isDescendantOf(c))&&(this.focusNode=null),this.nodeRemoveMarkup(g),this.nodeRemoveChildren(g),d=a.inArray(c,h),e(d>=0,"invalid child"),f.triggerModifyChild("remove",c),c.visit(function(a){a.parent=null},!0),this._callHook("treeRegisterNode",this,!1,c),void h.splice(d,1))},nodeRemoveChildMarkup:function(b){var c=b.node;c.ul&&(c.isRootNode()?a(c.ul).empty():(a(c.ul).remove(),c.ul=null),c.visit(function(a){a.li=a.ul=null}))},nodeRemoveChildren:function(b){var c,d=b.tree,e=b.node,f=e.children;f&&(this.activeNode&&this.activeNode.isDescendantOf(e)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(e)&&(this.focusNode=null),this.nodeRemoveChildMarkup(b),c=a.extend({},b),e.triggerModifyChild("remove",null),e.visit(function(a){a.parent=null,d._callHook("treeRegisterNode",d,!1,a)}),e.lazy?e.children=[]:e.children=null,e.isRootNode()||(e.expanded=!1),this.nodeRenderStatus(b))},nodeRemoveMarkup:function(b){var c=b.node;c.li&&(a(c.li).remove(),c.li=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(b,d,f,g,h){var i,j,k,l,m,n,o,p=b.node,q=b.tree,r=b.options,s=r.aria,t=!1,u=p.parent,v=!u,w=p.children,x=null;if(q._enableUpdate!==!1&&(v||u.ul)){if(e(v||u.ul,"parent UL must exist"),v||(p.li&&(d||p.li.parentNode!==p.parent.ul)&&(p.li.parentNode===p.parent.ul?x=p.li.nextSibling:this.debug("Unlinking "+p+" (must be child of "+p.parent+")"),this.nodeRemoveMarkup(b)),p.li?this.nodeRenderStatus(b):(t=!0,p.li=c.createElement("li"),p.li.ftnode=p,p.key&&r.generateIds&&(p.li.id=r.idPrefix+p.key),p.span=c.createElement("span"),p.span.className="fancytree-node",s&&!p.tr&&a(p.li).attr("role","treeitem"),p.li.appendChild(p.span),this.nodeRenderTitle(b),r.createNode&&r.createNode.call(q,{type:"createNode"},b)),r.renderNode&&r.renderNode.call(q,{type:"renderNode"},b)),w){if(v||p.expanded||f===!0){for(p.ul||(p.ul=c.createElement("ul"),(g!==!0||h)&&p.expanded||(p.ul.style.display="none"),s&&a(p.ul).attr("role","group"),p.li?p.li.appendChild(p.ul):p.tree.$div.append(p.ul)),l=0,m=w.length;l<m;l++)o=a.extend({},b,{node:w[l]}),this.nodeRender(o,d,f,!1,!0);for(i=p.ul.firstChild;i;)k=i.ftnode,k&&k.parent!==p?(p.debug("_fixParent: remove missing "+k,i),n=i.nextSibling,i.parentNode.removeChild(i),i=n):i=i.nextSibling;for(i=p.ul.firstChild,l=0,m=w.length-1;l<m;l++)j=w[l],k=i.ftnode,j!==k?p.ul.insertBefore(j.li,k.li):i=i.nextSibling}}else p.ul&&(this.warn("remove child markup for "+p),this.nodeRemoveChildMarkup(b));v||t&&u.ul.insertBefore(p.li,x)}},nodeRenderTitle:function(b,c){var e,f,g,h,i,j,k,l=b.node,m=b.tree,n=b.options,q=n.aria,r=l.getLevel(),s=[];c!==d&&(l.title=c),l.span&&m._enableUpdate!==!1&&(i=q&&l.hasChildren()!==!1?" role='button'":"",r<n.minExpandLevel?(l.lazy||(l.expanded=!0),r>1&&s.push("<span "+i+" class='fancytree-expander fancytree-expander-fixed'></span>")):s.push("<span "+i+" class='fancytree-expander'></span>"),e=w.evalOption("checkbox",l,l,n,!1),e&&!l.isStatusNode()&&(i=q?" role='checkbox'":"",f="fancytree-checkbox",("radio"===e||l.parent&&l.parent.radiogroup)&&(f+=" fancytree-radio"),s.push("<span "+i+" class='"+f+"'></span>")),l.data.iconClass!==d&&(l.icon?a.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(l.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),l.icon=l.data.iconClass)),g=w.evalOption("icon",l,l,n,!0),"boolean"!=typeof g&&(g=""+g),g!==!1&&(i=q?" role='presentation'":"","string"==typeof g?x.test(g)?(g="/"===g.charAt(0)?g:(n.imagePath||"")+g,s.push("<img src='"+g+"' class='fancytree-icon' alt='' />")):s.push("<span "+i+" class='fancytree-custom-icon "+g+"'></span>"):s.push("<span "+i+" class='fancytree-icon'></span>")),h="",n.renderTitle&&(h=n.renderTitle.call(m,{type:"renderTitle"},b)||""),h||(k=w.evalOption("tooltip",l,l,n,null),k===!0&&(k=l.title),k=k?" title='"+p(k)+"'":"",j=n.titlesTabbable?" tabindex='0'":"",h="<span class='fancytree-title'"+k+j+">"+(n.escapeTitles?o(l.title):l.title)+"</span>"),s.push(h),l.span.innerHTML=s.join(""),this.nodeRenderStatus(b),n.enhanceTitle&&(b.$title=a(">span.fancytree-title",l.span),h=n.enhanceTitle.call(m,{type:"enhanceTitle"},b)||""))},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options,g=d.hasChildren(),h=d.isLastSibling(),i=f.aria,j=f._classNames,k=[],l=d[e.statusClassPropName];l&&e._enableUpdate!==!1&&(i&&(c=a(d.tr||d.li)),k.push(j.node),e.activeNode===d&&k.push(j.active),e.focusNode===d&&k.push(j.focused),d.expanded&&k.push(j.expanded),i&&(g!==!1?c.attr("aria-expanded",Boolean(d.expanded)):c.removeAttr("aria-expanded")),d.folder&&k.push(j.folder),g!==!1&&k.push(j.hasChildren),h&&k.push(j.lastsib),d.lazy&&null==d.children&&k.push(j.lazy),d.partload&&k.push(j.partload),d.partsel&&k.push(j.partsel),w.evalOption("unselectable",d,d,f,!1)&&k.push(j.unselectable),d._isLoading&&k.push(j.loading),d._error&&k.push(j.error),d.statusNodeType&&k.push(j.statusNodePrefix+d.statusNodeType),d.selected?(k.push(j.selected),i&&c.attr("aria-selected",!0)):i&&c.attr("aria-selected",!1),d.extraClasses&&k.push(d.extraClasses),g===!1?k.push(j.combinedExpanderPrefix+"n"+(h?"l":"")):k.push(j.combinedExpanderPrefix+(d.expanded?"e":"c")+(d.lazy&&null==d.children?"d":"")+(h?"l":"")),k.push(j.combinedIconPrefix+(d.expanded?"e":"c")+(d.folder?"f":"")),l.className=k.join(" "),d.li&&a(d.li).toggleClass(j.lastsib,h))},nodeSetActive:function(b,c,d){d=d||{};var f,g=b.node,h=b.tree,i=b.options,j=d.noEvents===!0,m=d.noFocus===!0,n=g===h.activeNode;return c=c!==!1,n===c?k(g):c&&!j&&this._triggerNodeEvent("beforeActivate",g,b.originalEvent)===!1?l(g,["rejected"]):(c?(h.activeNode&&(e(h.activeNode!==g,"node was active (inconsistency)"),f=a.extend({},b,{node:h.activeNode}),h.nodeSetActive(f,!1),e(null===h.activeNode,"deactivate was out of sync?")),i.activeVisible&&g.makeVisible({scrollIntoView:m&&null==h.focusNode}),h.activeNode=g,h.nodeRenderStatus(b),m||h.nodeSetFocus(b),j||h._triggerNodeEvent("activate",g,b.originalEvent)):(e(h.activeNode===g,"node was not active (inconsistency)"),h.activeNode=null,this.nodeRenderStatus(b),j||b.tree._triggerNodeEvent("deactivate",g,b.originalEvent)),k(g))},nodeSetExpanded:function(b,c,e){e=e||{};var f,g,h,i,j,m,n=b.node,o=b.tree,p=b.options,q=e.noAnimation===!0,r=e.noEvents===!0;if(c=c!==!1,n.expanded&&c||!n.expanded&&!c)return k(n);if(c&&!n.lazy&&!n.hasChildren())return k(n);if(!c&&n.getLevel()<p.minExpandLevel)return l(n,["locked"]);if(!r&&this._triggerNodeEvent("beforeExpand",n,b.originalEvent)===!1)return l(n,["rejected"]);if(q||n.isVisible()||(q=e.noAnimation=!0),g=new a.Deferred,c&&!n.expanded&&p.autoCollapse){j=n.getParentList(!1,!0),m=p.autoCollapse;try{for(p.autoCollapse=!1,h=0,i=j.length;h<i;h++)this._callHook("nodeCollapseSiblings",j[h],e)}finally{p.autoCollapse=m}}return g.done(function(){var a=n.getLastChild();c&&p.autoScroll&&!q&&a?a.scrollIntoView(!0,{topNode:n}).always(function(){r||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}):r||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}),f=function(d){var e,f,g=p._classNames,h=p.toggleEffect;if(n.expanded=c,o._callHook("nodeRender",b,!1,!1,!0),n.ul)if(e="none"!==n.ul.style.display,f=!!n.expanded,e===f)n.warn("nodeSetExpanded: UL.style.display already set");else{if(h&&!q)return a(n.li).addClass(g.animating),void a(n.ul).addClass(g.animating).toggle(h.effect,h.options,h.duration,function(){a(this).removeClass(g.animating),a(n.li).removeClass(g.animating),d()});n.ul.style.display=n.expanded||!parent?"":"none"}d()},c&&n.lazy&&n.hasChildren()===d?n.load().done(function(){g.notifyWith&&g.notifyWith(n,["loaded"]),f(function(){g.resolveWith(n)})}).fail(function(a){f(function(){g.rejectWith(n,["load failed ("+a+")"])})}):f(function(){g.resolveWith(n)}),g.promise()},nodeSetFocus:function(b,d){var e,f=b.tree,g=b.node,h=f.options,i=!!b.originalEvent&&a(b.originalEvent.target).is(":input");if(d=d!==!1,f.focusNode){if(f.focusNode===g&&d)return;e=a.extend({},b,{node:f.focusNode}),f.focusNode=null,this._triggerNodeEvent("blur",e),this._callHook("nodeRenderStatus",e)}d&&(this.hasFocus()||(g.debug("nodeSetFocus: forcing container focus"),this._callHook("treeSetFocus",b,!0,{calledByNode:!0})),g.makeVisible({scrollIntoView:!1}),f.focusNode=g,h.titlesTabbable?i||a(g.span).find(".fancytree-title").focus():0===a(c.activeElement).closest(".fancytree-container").length&&a(f.$container).focus(),h.aria&&a(f.$container).attr("aria-activedescendant",a(g.tr||g.li).uniqueId().attr("id")),this._triggerNodeEvent("focus",b),h.autoScroll&&g.scrollIntoView(),this._callHook("nodeRenderStatus",b))},nodeSetSelected:function(a,b,c){c=c||{};var d=a.node,e=a.tree,f=a.options,g=c.noEvents===!0;if(b=b!==!1,!w.evalOption("unselectable",d,d,f,!1)){if(d._lastSelectIntent=b,!!d.selected===b&&(3!==f.selectMode||!d.partsel||b))return b;if(!g&&this._triggerNodeEvent("beforeSelect",d,a.originalEvent)===!1)return!!d.selected;b&&1===f.selectMode?(e.lastSelectedNode&&e.lastSelectedNode.setSelected(!1),d.selected=b):3!==f.selectMode||d.parent.radiogroup||d.radiogroup?d.parent.radiogroup?d.visitSiblings(function(a){a._changeSelectStatusAttrs(b&&a===d)},!0):d.selected=b:(d.selected=b,d.fixSelection3AfterClick(c)),this.nodeRenderStatus(a),e.lastSelectedNode=b?d:null,g||e._triggerNodeEvent("select",a)}},nodeSetStatus:function(b,c,d,e){function f(){var a=h.children?h.children[0]:null;if(a&&a.isStatusNode()){try{h.ul&&(h.ul.removeChild(a.li),a.li=null)}catch(b){}1===h.children.length?h.children=[]:h.children.shift()}}function g(b,c){var d=h.children?h.children[0]:null;return d&&d.isStatusNode()?(a.extend(d,b),d.statusNodeType=c,i._callHook("nodeRenderTitle",d)):(h._setChildren([b]),h.children[0].statusNodeType=c,i.render()),h.children[0]}var h=b.node,i=b.tree;switch(c){case"ok":f(),h._isLoading=!1,h._error=null,h.renderStatus();break;case"loading":h.parent||g({title:i.options.strings.loading+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!0,h._error=null,h.renderStatus();break;case"error":g({title:i.options.strings.loadError+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error={message:d,details:e},h.renderStatus();break;case"nodata":g({title:i.options.strings.noData,checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error=null,h.renderStatus();break;default:a.error("invalid node status "+c)}},nodeToggleExpanded:function(a){return this.nodeSetExpanded(a,!a.node.expanded)},nodeToggleSelected:function(a){var b=a.node,c=!b.selected;return b.partsel&&!b.selected&&b._lastSelectIntent===!0&&(c=!1,b.selected=!0),b._lastSelectIntent=c,this.nodeSetSelected(a,c)},treeClear:function(a){var b=a.tree;b.activeNode=null,b.focusNode=null,b.$div.find(">ul.fancytree-container").empty(),b.rootNode.children=null},treeCreate:function(a){},treeDestroy:function(a){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("ui-helper-hidden")},treeInit:function(a){var b=a.tree,c=b.options;b.$container.attr("tabindex",c.tabindex),c.rtl?b.$container.attr("DIR","RTL").addClass("fancytree-rtl"):b.$container.removeAttr("DIR").removeClass("fancytree-rtl"),c.aria&&(b.$container.attr("role","tree"),1!==c.selectMode&&b.$container.attr("aria-multiselectable",!0)),this.treeLoad(a)},treeLoad:function(b,c){var d,f,g,h,i=b.tree,j=b.widget.element,k=a.extend({},b,{node:this.rootNode});if(i.rootNode.children&&this.treeClear(b),c=c||this.options.source)"string"==typeof c&&a.error("Not implemented");else switch(f=j.data("type")||"html"){case"html":g=j.find(">ul:first"),g.addClass("ui-fancytree-source ui-helper-hidden"),c=a.ui.fancytree.parseHtml(g),this.data=a.extend(this.data,n(g));break;case"json":c=a.parseJSON(j.text()),j.contents().filter(function(){return 3===this.nodeType}).remove(),a.isPlainObject(c)&&(e(a.isArray(c.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),d=c,c=c.children,delete d.children,a.extend(i.data,d));break;default:a.error("Invalid data-type: "+f)}return h=this.nodeLoadChildren(k,c).done(function(){i.render(),3===b.options.selectMode&&i.rootNode.fixSelection3FromEndNodes(),i.activeNode&&i.options.activeVisible&&i.activeNode.makeVisible(),i._triggerTreeEvent("init",null,{status:!0})}).fail(function(){i.render(),i._triggerTreeEvent("init",null,{status:!1})})},treeRegisterNode:function(a,b,c){},treeSetFocus:function(b,c,d){function e(a){!a.activeNode&&a.getFirstChild()&&a.getFirstChild().setFocus()}if(c=c!==!1,c!==this.hasFocus()&&(this._hasFocus=c,!c&&this.focusNode?this.focusNode.setFocus(!1):!c||d&&d.calledByNode||a(this.$container).focus(),this.$container.toggleClass("fancytree-treefocus",c),this._triggerTreeEvent(c?"focusTree":"blurTree"),c)){var f=this;setTimeout(function(){e(f)},0)}},treeSetOption:function(b,c,d){var e=b.tree,f=!0,g=!1;switch(c){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":e._callHook("treeCreate",e),g=!0;break;case"escapeTitles":case"tooltip":g=!0;break;case"rtl":d===!1?e.$container.removeAttr("DIR").removeClass("fancytree-rtl"):e.$container.attr("DIR","RTL").addClass("fancytree-rtl"),g=!0;break;case"source":f=!1,e._callHook("treeLoad",e,d),g=!0}e.debug("set option "+c+"="+d+" <"+typeof d+">"),f&&(this.widget._super?this.widget._super.call(this.widget,c,d):a.Widget.prototype._setOption.call(this.widget,c,d)),g&&e.render(!0,!1)}}),a.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,debugLevel:null,disabled:!1,enableAspx:!0,escapeTitles:!1,extensions:[],toggleEffect:{effect:"blind",options:{direction:"vertical",scale:"box"},duration:200},generateIds:!1,icon:!0,idPrefix:"ft_",focusOnSelect:!1,keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,tooltip:!1,_classNames:{node:"fancytree-node",folder:"fancytree-folder",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",hasChildren:"fancytree-has-children",active:"fancytree-active",selected:"fancytree-selected",expanded:"fancytree-expanded",lazy:"fancytree-lazy",focused:"fancytree-focused",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",unselectable:"fancytree-unselectable",lastsib:"fancytree-lastsib",loading:"fancytree-loading",error:"fancytree-error",statusNodePrefix:"fancytree-statusnode-"},lazyLoad:null,postProcess:null},_create:function(){this.tree=new t(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul:first");var b,c,f,g=this.options,h=g.extensions,i=this.tree;for(f=0;f<h.length;f++)c=h[f],b=a.ui.fancytree._extensions[c],b||a.error("Could not apply extension '"+c+"' (it is not registered, did you forget to include it?)"),this.tree.options[c]=a.extend(!0,{},b.options,this.tree.options[c]),e(this.tree.ext[c]===d,"Extension name must not exist as Fancytree.ext attribute: '"+c+"'"),this.tree.ext[c]={},j(this.tree,i,b,c),i=b;g.icons!==d&&(g.icon!==!0?a.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead"),g.icon=g.icons)),g.iconClass!==d&&(g.icon?a.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead"),g.icon=g.iconClass)),g.tabbable!==d&&(g.tabindex=g.tabbable?"0":"-1",this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='"+g.tabindex+"' instead")),this.tree._callHook("treeCreate",this.tree)},_init:function(){this.tree._callHook("treeInit",this.tree),this._bind()},_setOption:function(a,b){return this.tree._callHook("treeSetOption",this.tree,a,b)},destroy:function(){this._unbind(),this.tree._callHook("treeDestroy",this.tree),a.Widget.prototype.destroy.call(this)},_unbind:function(){var b=this.tree._ns;this.element.off(b),this.tree.$container.off(b),a(c).off(b)},_bind:function(){var a=this,b=this.options,c=this.tree,d=c._ns;this._unbind(),c.$container.on("focusin"+d+" focusout"+d,function(a){var b=w.getNode(a),d="focusin"===a.type;b?c._callHook("nodeSetFocus",c._makeHookContext(b,a),d):c._callHook("treeSetFocus",c,d)}).on("selectstart"+d,"span.fancytree-title",function(a){a.preventDefault()}).on("keydown"+d,function(a){if(b.disabled||b.keyboard===!1)return!0;var d,e=c.focusNode,f=c._makeHookContext(e||c,a),g=c.phase;try{return c.phase="userEvent",d=e?c._triggerNodeEvent("keydown",e,a):c._triggerTreeEvent("keydown",a),"preventNav"===d?d=!0:d!==!1&&(d=c._callHook("nodeKeydown",f)),d}finally{c.phase=g}}).on("mousedown"+d+" dblclick"+d,function(c){if(b.disabled)return!0;var d,e=w.getEventTarget(c),f=e.node,g=a.tree,h=g.phase;if(!f)return!0;d=g._makeHookContext(f,c);try{switch(g.phase="userEvent",c.type){case"mousedown":return d.targetType=e.type,f.isPagingNode()?g._triggerNodeEvent("clickPaging",d,c)===!0:g._triggerNodeEvent("click",d,c)!==!1&&g._callHook("nodeClick",d);case"dblclick":return d.targetType=e.type,g._triggerNodeEvent("dblclick",d,c)!==!1&&g._callHook("nodeDblclick",d)}}finally{g.phase=h}})},getActiveNode:function(){return this.tree.activeNode},getNodeByKey:function(a){return this.tree.getNodeByKey(a)},getRootNode:function(){return this.tree.rootNode},getTree:function(){return this.tree}}),w=a.ui.fancytree,a.extend(a.ui.fancytree,{version:"2.23.0",buildType: "production",debugLevel: 1,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:t,_FancytreeNodeClass:s,jquerySupports:{positionMyOfs:h(a.ui.version,1,9)},assert:function(a,b){return e(a,b)},debounce:function(a,b,c,d){var e;return 3===arguments.length&&"boolean"!=typeof c&&(d=c,c=!1),function(){var f=arguments;d=d||this,c&&!e&&b.apply(d,f),clearTimeout(e),e=setTimeout(function(){c||b.apply(d,f),e=null},a)}},debug:function(b){a.ui.fancytree.debugLevel>=2&&f("log",arguments)},error:function(a){f("error",arguments)},escapeHtml:o,fixPositionOptions:function(b){if((b.offset||(""+b.my+b.at).indexOf("%")>=0)&&a.error("expected new position syntax (but '%' is not supported)"),!a.ui.fancytree.jquerySupports.positionMyOfs){var c=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.my),d=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.at),e=(c[2]?+c[2]:0)+(d[2]?+d[2]:0),f=(c[4]?+c[4]:0)+(d[4]?+d[4]:0);b=a.extend({},b,{my:c[1]+" "+c[3],at:d[1]+" "+d[3]}),(e||f)&&(b.offset=""+e+" "+f)}return b},getEventTargetType:function(a){return this.getEventTarget(a).type},getEventTarget:function(b){var c=b&&b.target?b.target.className:"",e={node:this.getNode(b.target),type:d};return/\bfancytree-title\b/.test(c)?e.type="title":/\bfancytree-expander\b/.test(c)?e.type=e.node.hasChildren()===!1?"prefix":"expander":/\bfancytree-checkbox\b/.test(c)?e.type="checkbox":/\bfancytree-icon\b/.test(c)?e.type="icon":/\bfancytree-node\b/.test(c)?e.type="title":b&&b.target&&a(b.target).closest(".fancytree-title").length&&(e.type="title"),e},getNode:function(a){if(a instanceof s)return a;for(a instanceof jQuery?a=a[0]:a.originalEvent!==d&&(a=a.target);a;){if(a.ftnode)return a.ftnode;a=a.parentNode}return null},getTree:function(b){var c;return b instanceof t?b:(b===d&&(b=0),"number"==typeof b?b=a(".fancytree-container").eq(b):"string"==typeof b?b=a(b).eq(0):b.selector!==d?b=b.eq(0):b.originalEvent!==d&&(b=a(b.target)),b=b.closest(":ui-fancytree"),c=b.data("ui-fancytree")||b.data("fancytree"),c?c.tree:null)},evalOption:function(b,c,d,e,f){var g,h,i=c.tree,j=e[b],k=d[b];return a.isFunction(j)?(g={node:c,tree:i,widget:i.widget,options:i.widget.options},h=j.call(i,{type:b},g),null==h&&(h=k)):h=null!=k?k:j,null==h&&(h=f),h},eventToString:function(a){var b=a.which,c=a.type,d=[];return a.altKey&&d.push("alt"),a.ctrlKey&&d.push("ctrl"),a.metaKey&&d.push("meta"),a.shiftKey&&d.push("shift"),"click"===c||"dblclick"===c?d.push(E[a.button]+c):C[b]||d.push(D[b]||String.fromCharCode(b).toLowerCase()),d.join("+")},info:function(b){a.ui.fancytree.debugLevel>=1&&f("info",arguments)},keyEventToString:function(a){return this.warn("keyEventToString() is deprecated: use eventToString()"),this.eventToString(a)},overrideMethod:function(b,c,d){var e,f=b[c]||a.noop;b[c]=function(){try{return e=this._super,this._super=f,d.apply(this,arguments)}finally{this._super=e}}},parseHtml:function(b){var c,e,f,g,h,i,j,k,l=b.find(">li"),m=[];return l.each(function(){var l,o,p=a(this),q=p.find(">span:first",this),r=q.length?null:p.find(">a:first"),s={tooltip:null,data:{}};for(q.length?s.title=q.html():r&&r.length?(s.title=r.html(),s.data.href=r.attr("href"),s.data.target=r.attr("target"),s.tooltip=r.attr("title")):(s.title=p.html(),h=s.title.search(/<ul/i),h>=0&&(s.title=s.title.substring(0,h))),s.title=a.trim(s.title),g=0,i=F.length;g<i;g++)s[F[g]]=d;for(c=this.className.split(" "),f=[],g=0,i=c.length;g<i;g++)e=c[g],G[e]?s[e]=!0:f.push(e);if(s.extraClasses=f.join(" "),j=p.attr("title"),j&&(s.tooltip=j),j=p.attr("id"),j&&(s.key=j),p.attr("hideCheckbox")&&(s.checkbox=!1),l=n(p),l&&!a.isEmptyObject(l)){for(o in J)l.hasOwnProperty(o)&&(l[J[o]]=l[o],delete l[o]);for(g=0,i=H.length;g<i;g++)j=H[g],k=l[j],null!=k&&(delete l[j],s[j]=k);a.extend(s.data,l)}b=p.find(">ul:first"),b.length?s.children=a.ui.fancytree.parseHtml(b):s.children=s.lazy?d:null,m.push(s)}),m},registerExtension:function(b){e(null!=b.name,"extensions must have a `name` property."),e(null!=b.version,"extensions must have a `version` property."),a.ui.fancytree._extensions[b.name]=b},unescapeHtml:function(a){var b=c.createElement("div");return b.innerHTML=a,0===b.childNodes.length?"":b.childNodes[0].nodeValue},warn:function(a){f("warn",arguments)}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.childcounter.min.js' */-!function(a,b){"use strict";a.ui.fancytree._FancytreeClass.prototype.countSelected=function(a){var b=this;b.options;return b.getSelectedNodes(a).length},a.ui.fancytree._FancytreeNodeClass.prototype.updateCounters=function(){var b=this,c=a("span.fancytree-childcounter",b.span),d=b.tree.options.childcounter,e=b.countChildren(d.deep);b.data.childCounter=e,!e&&d.hideZeros||b.isExpanded()&&d.hideExpanded?c.remove():(c.length||(c=a("<span class='fancytree-childcounter'/>").appendTo(a("span.fancytree-icon",b.span))),c.text(e)),!d.deep||b.isTopLevel()||b.isRoot()||b.parent.updateCounters()},a.ui.fancytree.prototype.widgetMethod1=function(a){this.tree;return a},a.ui.fancytree.registerExtension({name:"childcounter",version:"2.23.0",options:{deep:!0,hideZeros:!0,hideExpanded:!1},foo:42,_appendCounter:function(a){},treeInit:function(a){a.options,a.options.childcounter;this._superApply(arguments),this.$container.addClass("fancytree-ext-childcounter")},treeDestroy:function(a){this._superApply(arguments)},nodeRenderTitle:function(b,c){var d=b.node,e=b.options.childcounter,f=null==d.data.childCounter?d.countChildren(e.deep):+d.data.childCounter;this._super(b,c),!f&&e.hideZeros||d.isExpanded()&&e.hideExpanded||a("span.fancytree-icon",d.span).append(a("<span class='fancytree-childcounter'/>").text(f))},nodeSetExpanded:function(a,b,c){var d=a.tree;a.node;return this._superApply(arguments).always(function(){d.nodeRenderTitle(a)})}})}(jQuery);--/*! Extension 'jquery.fancytree.clones.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){b||(c=c?": "+c:"",a.error("Assertion failed"+c))}function f(a,b){var c;for(c=a.length-1;c>=0;c--)if(a[c]===b)return a.splice(c,1),!0;return!1}function g(a,b,c){for(var d,e,f=3&a.length,g=a.length-f,h=c,i=3432918353,j=461845907,k=0;k<g;)e=255&a.charCodeAt(k)|(255&a.charCodeAt(++k))<<8|(255&a.charCodeAt(++k))<<16|(255&a.charCodeAt(++k))<<24,++k,e=(65535&e)*i+(((e>>>16)*i&65535)<<16)&4294967295,e=e<<15|e>>>17,e=(65535&e)*j+(((e>>>16)*j&65535)<<16)&4294967295,h^=e,h=h<<13|h>>>19,d=5*(65535&h)+((5*(h>>>16)&65535)<<16)&4294967295,h=(65535&d)+27492+(((d>>>16)+58964&65535)<<16);switch(e=0,f){case 3:e^=(255&a.charCodeAt(k+2))<<16;case 2:e^=(255&a.charCodeAt(k+1))<<8;case 1:e^=255&a.charCodeAt(k),e=(65535&e)*i+(((e>>>16)*i&65535)<<16)&4294967295,e=e<<15|e>>>17,e=(65535&e)*j+(((e>>>16)*j&65535)<<16)&4294967295,h^=e}return h^=a.length,h^=h>>>16,h=2246822507*(65535&h)+((2246822507*(h>>>16)&65535)<<16)&4294967295,h^=h>>>13,h=3266489909*(65535&h)+((3266489909*(h>>>16)&65535)<<16)&4294967295,h^=h>>>16,b?("0000000"+(h>>>0).toString(16)).substr(-8):h>>>0}function h(b){var c,d=a.map(b.getParentList(!1,!0),function(a){return a.refKey||a.key});return d=d.join("/"),c="id_"+g(d,!0)}a.ui.fancytree._FancytreeNodeClass.prototype.getCloneList=function(b){var c,d=this.tree,e=d.refMap[this.refKey]||null,f=d.keyMap;return e&&(c=this.key,b?e=a.map(e,function(a){return f[a]}):(e=a.map(e,function(a){return a===c?null:f[a]}),e.length<1&&(e=null))),e},a.ui.fancytree._FancytreeNodeClass.prototype.isClone=function(){var a=this.refKey||null,b=a&&this.tree.refMap[a]||null;return!!(b&&b.length>1)},a.ui.fancytree._FancytreeNodeClass.prototype.reRegister=function(b,c){b=null==b?null:""+b,c=null==c?null:""+c;var d=this.tree,e=this.key,f=this.refKey,g=d.keyMap,h=d.refMap,i=h[f]||null,j=!1;return null!=b&&b!==this.key&&(g[b]&&a.error("[ext-clones] reRegister("+b+"): already exists: "+this),delete g[e],g[b]=this,i&&(h[f]=a.map(i,function(a){return a===e?b:a})),this.key=b,j=!0),null!=c&&c!==this.refKey&&(i&&(1===i.length?delete h[f]:h[f]=a.map(i,function(a){return a===e?null:a})),h[c]?h[c].append(b):h[c]=[this.key],this.refKey=c,j=!0),j},a.ui.fancytree._FancytreeNodeClass.prototype.setRefKey=function(a){return this.reRegister(null,a)},a.ui.fancytree._FancytreeClass.prototype.getNodesByRef=function(b,c){var d=this.keyMap,e=this.refMap[b]||null;return e&&(e=c?a.map(e,function(a){var b=d[a];return b.isDescendantOf(c)?b:null}):a.map(e,function(a){return d[a]}),e.length<1&&(e=null)),e},a.ui.fancytree._FancytreeClass.prototype.changeRefKey=function(a,b){var c,d,e=this.keyMap,f=this.refMap[a]||null;if(f){for(c=0;c<f.length;c++)d=e[f[c]],d.refKey=b;delete this.refMap[a],this.refMap[b]=f}},a.ui.fancytree.registerExtension({name:"clones",version:"2.23.0",options:{highlightActiveClones:!0,highlightClones:!1},treeCreate:function(a){this._superApply(arguments),a.tree.refMap={},a.tree.keyMap={}},treeInit:function(a){this.$container.addClass("fancytree-ext-clones"),e(null==a.options.defaultKey),a.options.defaultKey=function(a){return h(a)},this._superApply(arguments)},treeClear:function(a){return a.tree.refMap={},a.tree.keyMap={},this._superApply(arguments)},treeRegisterNode:function(b,c,d){var g,h,i=b.tree,j=i.keyMap,k=i.refMap,l=d.key,m=d&&null!=d.refKey?""+d.refKey:null;return d.isStatusNode()?this._super(b,c,d):(c?(null!=j[d.key]&&a.error("clones.treeRegisterNode: node.key already exists: "+d),j[l]=d,m&&(g=k[m],g?(g.push(l),2===g.length&&b.options.clones.highlightClones&&j[g[0]].renderStatus()):k[m]=[l])):(null==j[l]&&a.error("clones.treeRegisterNode: node.key not registered: "+d.key),delete j[l],m&&(g=k[m],g&&(h=g.length,h<=1?(e(1===h),e(g[0]===l),delete k[m]):(f(g,l),2===h&&b.options.clones.highlightClones&&j[g[0]].renderStatus())))),this._super(b,c,d))},nodeRenderStatus:function(b){var c,d,e=b.node;return d=this._super(b),b.options.clones.highlightClones&&(c=a(e[b.tree.statusClassPropName]),c.length&&e.isClone()&&c.addClass("fancytree-clone")),d},nodeSetActive:function(b,c,d){var e,f=b.tree.statusClassPropName,g=b.node;return e=this._superApply(arguments),b.options.clones.highlightActiveClones&&g.isClone()&&a.each(g.getCloneList(!0),function(b,d){a(d[f]).toggleClass("fancytree-active-clone",c!==!1)}),e}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.dnd5.min.js' */-!function(a,b,c,d){"use strict";function e(a){return 0===a?"":a>0?"+"+a:""+a}function f(b){var c;return!!b&&(c=a.isPlainObject(b)?{over:!!b.over,before:!!b.before,after:!!b.after}:a.isArray(b)?{over:a.inArray("over",b)>=0,before:a.inArray("before",b)>=0,after:a.inArray("after",b)>=0}:{over:b===!0||"over"===b,before:b===!0||"before"===b,after:b===!0||"after"===b},0!==Object.keys(c).length&&c)}function g(d,e){var f,g,h,i=d.options.dnd5,j=d.$scrollParent[0],k=i.scrollSensitivity,l=i.scrollSpeed,m=0;return j!==c&&"HTML"!==j.tagName?(f=d.$scrollParent.offset(),g=j.scrollTop,f.top+j.offsetHeight-e.pageY<k?(h=j.scrollHeight-d.$scrollParent.innerHeight()-g,h>0&&(j.scrollTop=m=g+l)):g>0&&e.pageY-f.top<k&&(j.scrollTop=m=g-l)):(g=a(c).scrollTop(),g>0&&e.pageY-g<k?(m=g-l,a(c).scrollTop(m)):a(b).height()-(e.pageY-g)<k&&(m=g+l,a(c).scrollTop(m))),m&&d.debug("autoScroll: "+m+"px"),m}function h(b,c){if(c.options.dnd5.scroll&&g(c.tree,b),!c.node)return c.tree.warn("Ignore dragover for non-node"),u;var d,f,h,i=null,j=c.tree,q=j.options,s=q.dnd5,v=c.node,w=c.otherNode,x="center",y=a(v.span),z=y.find("span.fancytree-title");if(t===!1)return j.warn("Ignore dragover, since dragenter returned false"),!1;if("string"==typeof t?a.error("assert failed: dragenter returned string"):(f=y.offset(),h=(b.pageY-f.top)/y.height(),t.after&&h>.75?i="after":!t.over&&t.after&&h>.5?i="after":t.before&&h<=.25?i="before":!t.over&&t.before&&h<=.5?i="before":t.over&&(i="over"),s.preventVoidMoves&&(v===w?(v.debug("drop over source node prevented"),i=null):"before"===i&&w&&v===w.getNextSibling()?(v.debug("drop after source node prevented"),i=null):"after"===i&&w&&v===w.getPrevSibling()?(v.debug("drop before source node prevented"),i=null):"over"===i&&w&&w.parent===v&&w.isLastSibling()&&(v.debug("drop last child over own parent prevented"),i=null))),c.hitMode=i,i&&s.dragOver&&(s.dragOver(v,c),i=c.hitMode),u=i,"after"===i||"before"===i||"over"===i){switch(d=s.dropMarkerOffsetX||0,i){case"before":x="top",d+=s.dropMarkerInsertOffsetX||0;break;case"after":x="bottom",d+=s.dropMarkerInsertOffsetX||0}r.toggleClass(l,"after"===i).toggleClass(n,"over"===i).toggleClass(m,"before"===i).show().position(a.ui.fancytree.fixPositionOptions({my:"left"+e(d)+" center",at:"left "+x,of:z}))}else r.hide();return a(v.span).toggleClass(p,"after"===i||"before"===i||"over"===i).toggleClass(l,"after"===i).toggleClass(m,"before"===i).toggleClass(k,"over"===i).toggleClass(o,i===!1),i}var i="fancytree-drag-source",j="fancytree-drag-remove",k="fancytree-drop-accept",l="fancytree-drop-after",m="fancytree-drop-before",n="fancytree-drop-over",o="fancytree-drop-reject",p="fancytree-drop-target",q="application/x-fancytree-node",r=null,s=null,t=null,u=null;a.ui.fancytree.registerExtension({name:"dnd5",version:"2.23.0",options:{autoExpandMS:1500,setTextTypeJson:!1,preventForeignNodes:!1,preventNonNodes:!1,preventRecursiveMoves:!0,preventVoidMoves:!0,scroll:!0,scrollSensitivity:20,scrollSpeed:5,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragDrag:a.noop,dragEnd:a.noop,dragEnter:null,dragOver:a.noop,dragExpand:a.noop,dragDrop:a.noop,dragLeave:a.noop},treeInit:function(b){var c=b.tree,e=b.options,g=e.dnd5,l=a.ui.fancytree.getNode;a.inArray("dnd",e.extensions)>=0&&a.error("Extensions 'dnd' and 'dnd5' are mutually exclusive."),g.dragStop&&a.error("dragStop is not used by ext-dnd5. Use dragEnd instead."),g.dragStart&&a.ui.fancytree.overrideMethod(b.options,"createNode",function(a,b){this._super.apply(this,arguments),b.node.span.draggable=!0}),this._superApply(arguments),this.$container.addClass("fancytree-ext-dnd5"),this.$scrollParent=this.$container.children(":first").scrollParent(),r=a("#fancytree-drop-marker"),r.length||(r=a("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3,"pointer-events":"none"}).prependTo("body")),g.dragStart&&c.$container.on("dragstart drag dragend",function(b){var e,f=l(b),h=b.dataTransfer||b.originalEvent.dataTransfer,k="move"===h.dropEffect,m=f?a(f.span):null,n={node:f,tree:c,options:c.options,originalEvent:b,dataTransfer:h,isCancelled:d};switch(b.type){case"dragstart":a(f.span).addClass(i),s=f,e=JSON.stringify(f.toDict());try{h.setData(q,e),h.setData("text/html",a(f.span).html()),h.setData("text/plain",f.title)}catch(o){c.warn("Could not set data (IE only accepts 'text') - "+o)}return g.setTextTypeJson?h.setData("text",e):h.setData("text",f.title),h.effectAllowed="all",h.setDragImage&&h.setDragImage(a(f.span).find(".fancytree-title")[0],-10,-10),g.dragStart(f,n)!==!1;case"drag":m.toggleClass(j,k),g.dragDrag(f,n);break;case"dragend":a(f.span).removeClass(i+" "+j),s=null,t=null,n.isCancelled="none"===h.dropEffect,r.hide(),g.dragEnd(f,n)}}),g.dragEnter&&c.$container.on("dragenter dragover dragleave drop",function(b){var e,i,j,m,p=null,v=l(b),w=b.dataTransfer||b.originalEvent.dataTransfer,x={node:v,tree:c,options:c.options,hitMode:t,originalEvent:b,dataTransfer:w,otherNode:s||null,otherNodeData:null,dropEffect:d,isCancelled:d};switch(b.type){case"dragenter":if(!v){c.debug("Ignore non-node "+b.type+": "+b.target.tagName+"."+b.target.className),t=!1;break}if(a(v.span).addClass(n).removeClass(k+" "+o),g.preventNonNodes&&!i){v.debug("Reject dropping a non-node"),t=!1;break}if(g.preventForeignNodes&&(!s||s.tree!==v.tree)){v.debug("Reject dropping a foreign node"),t=!1;break}setTimeout(function(){!g.autoExpandMS||v.hasChildren()===!1||v.expanded||g.dragExpand&&g.dragExpand(v,x)===!1||v.scheduleAction("expand",g.autoExpandMS)},0),r.show(),g.preventRecursiveMoves&&v.isDescendantOf(x.otherNode)?m=!1:(j=g.dragEnter(v,x),m=f(j)),t=m,p=m&&(m.over||m.before||m.after);break;case"dragover":u=h(b,x),p=!!u;break;case"dragleave":if(!v){c.debug("Ignore non-node "+b.type+": "+b.target.tagName+"."+b.target.className);break}if(!a(v.span).hasClass(n)){v.debug("Ignore dragleave (multi)");break}a(v.span).removeClass(n+" "+k+" "+o),v.scheduleAction("cancel"),g.dragLeave(v,x),r.hide();break;case"drop":if(a.inArray(q,w.types)>=0&&(i=w.getData(q),c.info(b.type+": getData('application/x-fancytree-node'): '"+i+"'")),i||(i=w.getData("text"),c.info(b.type+": getData('text'): '"+i+"'")),i)try{e=JSON.parse(i),e.title!==d&&(x.otherNodeData=e)}catch(y){}c.debug(b.type+": nodeData: '"+i+"', otherNodeData: ",x.otherNodeData),a(v.span).removeClass(n+" "+k+" "+o),r.hide(),x.hitMode=u,x.dropEffect=w.dropEffect,x.isCancelled="none"===x.dropEffect,g.dragDrop(v,x),b.preventDefault()}if(p)return b.preventDefault(),!1})}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.edit.min.js' */-!function(a,b,c,d){"use strict";var e=/Mac/.test(navigator.platform),f=a.ui.fancytree.escapeHtml,g=a.ui.fancytree.unescapeHtml;a.ui.fancytree._FancytreeNodeClass.prototype.editStart=function(){var b,d=this,e=this.tree,f=e.ext.edit,h=e.options.edit,i=a(".fancytree-title",d.span),j={node:d,tree:e,options:e.options,isNew:a(d[e.statusClassPropName]).hasClass("fancytree-edit-new"),orgTitle:d.title,input:null,dirty:!1};return h.beforeEdit.call(d,{type:"beforeEdit"},j)!==!1&&(a.ui.fancytree.assert(!f.currentNode,"recursive edit"),f.currentNode=this,f.eventData=j,e.widget._unbind(),a(c).on("mousedown.fancytree-edit",function(b){a(b.target).hasClass("fancytree-edit-input")||d.editEnd(!0,b)}),b=a("<input />",{"class":"fancytree-edit-input",type:"text",value:e.options.escapeTitles?j.orgTitle:g(j.orgTitle)}),f.eventData.input=b,null!=h.adjustWidthOfs&&b.width(i.width()+h.adjustWidthOfs),null!=h.inputCss&&b.css(h.inputCss),i.html(b),b.focus().change(function(a){b.addClass("fancytree-edit-dirty")}).keydown(function(b){switch(b.which){case a.ui.keyCode.ESCAPE:d.editEnd(!1,b);break;case a.ui.keyCode.ENTER:return d.editEnd(!0,b),!1}b.stopPropagation()}).blur(function(a){return d.editEnd(!0,a)}),void h.edit.call(d,{type:"edit"},j))},a.ui.fancytree._FancytreeNodeClass.prototype.editEnd=function(b,d){var e,g=this,h=this.tree,i=h.ext.edit,j=i.eventData,k=h.options.edit,l=a(".fancytree-title",g.span),m=l.find("input.fancytree-edit-input");return k.trim&&m.val(a.trim(m.val())),e=m.val(),j.dirty=e!==g.title,j.originalEvent=d,b===!1?j.save=!1:j.isNew?j.save=""!==e:j.save=j.dirty&&""!==e,k.beforeClose.call(g,{type:"beforeClose"},j)!==!1&&((!j.save||k.save.call(g,{type:"save"},j)!==!1)&&(m.removeClass("fancytree-edit-dirty").off(),a(c).off(".fancytree-edit"),j.save?(g.setTitle(h.options.escapeTitles?e:f(e)),g.setFocus()):j.isNew?(g.remove(),g=j.node=null,i.relatedNode.setFocus()):(g.renderTitle(),g.setFocus()),i.eventData=null,i.currentNode=null,i.relatedNode=null,h.widget._bind(),a(h.$container).focus(),j.input=null,k.close.call(g,{type:"close"},j),!0))},a.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode=function(b,c){var d,e=this.tree,f=this;return b=b||"child",null==c?c={title:""}:"string"==typeof c?c={title:c}:a.ui.fancytree.assert(a.isPlainObject(c)),"child"!==b||this.isExpanded()||this.hasChildren()===!1?(d=this.addNode(c,b),d.match=!0,a(d[e.statusClassPropName]).removeClass("fancytree-hide").addClass("fancytree-match"),void d.makeVisible().done(function(){a(d[e.statusClassPropName]).addClass("fancytree-edit-new"),f.tree.ext.edit.relatedNode=f,d.editStart()})):void this.setExpanded().done(function(){f.editCreateNode(b,c)})},a.ui.fancytree._FancytreeClass.prototype.isEditing=function(){return this.ext.edit?this.ext.edit.currentNode:null},a.ui.fancytree._FancytreeNodeClass.prototype.isEditing=function(){return!!this.tree.ext.edit&&this.tree.ext.edit.currentNode===this},a.ui.fancytree.registerExtension({name:"edit",version:"2.23.0",options:{adjustWidthOfs:4,allowEmpty:!1,inputCss:{minWidth:"3em"},triggerStart:["f2","shift+click","mac+enter"],trim:!0,beforeClose:a.noop,beforeEdit:a.noop,close:a.noop,edit:a.noop,save:a.noop},currentNode:null,treeInit:function(a){this._superApply(arguments),this.$container.addClass("fancytree-ext-edit")},nodeClick:function(b){return a.inArray("shift+click",b.options.edit.triggerStart)>=0&&b.originalEvent.shiftKey?(b.node.editStart(),!1):this._superApply(arguments)},nodeDblclick:function(b){return a.inArray("dblclick",b.options.edit.triggerStart)>=0?(b.node.editStart(),!1):this._superApply(arguments)},nodeKeydown:function(b){switch(b.originalEvent.which){case 113:if(a.inArray("f2",b.options.edit.triggerStart)>=0)return b.node.editStart(),!1;break;case a.ui.keyCode.ENTER:if(a.inArray("mac+enter",b.options.edit.triggerStart)>=0&&e)return b.node.editStart(),!1}return this._superApply(arguments)}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.filter.min.js' */-!function(a,b,c,d){"use strict";function e(a){return(a+"").replace(/([.?*+\^\$\[\]\\(){}|-])/g,"\\$1")}function f(b){return b.indexOf(">")>=0?a("<div/>").html(b).text():b}var g="__not_found__",h=a.ui.fancytree.escapeHtml;a.ui.fancytree._FancytreeClass.prototype._applyFilterImpl=function(b,c,d){var i,j,k,l,m=0,n=this.options,o=n.escapeTitles,p=n.autoCollapse,q=a.extend({},n.filter,d),r="hide"===q.mode,s=!!q.leavesOnly&&!c;return"string"==typeof b&&(i=q.fuzzy?b.split("").reduce(function(a,b){return a+"[^"+b+"]*"+b}):e(b),k=new RegExp(".*"+i+".*","i"),l=new RegExp(e(b),"gi"),b=function(a){var b,c=o?a.title:f(a.title),d=!!k.test(c);return d&&q.highlight&&(b=o?h(a.title):c,a.titleWithHighlight=b.replace(l,function(a){return"<mark>"+a+"</mark>"})),d}),this.enableFilter=!0,this.lastFilterArgs=arguments,this.$div.addClass("fancytree-ext-filter"),r?this.$div.addClass("fancytree-ext-filter-hide"):this.$div.addClass("fancytree-ext-filter-dimm"),this.$div.toggleClass("fancytree-ext-filter-hide-expanders",!!q.hideExpanders),this.visit(function(a){delete a.match,delete a.titleWithHighlight,a.subMatchCount=0}),j=this.getRootNode()._findDirectChild(g),j&&j.remove(),n.autoCollapse=!1,this.visit(function(a){if(!s||null==a.children){var d=b(a),e=!1;if("skip"===d)return a.visit(function(a){a.match=!1},!0),"skip";d||!c&&"branch"!==d||!a.parent.match||(d=!0,e=!0),d&&(m++,a.match=!0,a.visitParents(function(a){a.subMatchCount+=1,!q.autoExpand||e||a.expanded||(a.setExpanded(!0,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),a._filterAutoExpanded=!0)}))}}),n.autoCollapse=p,0===m&&q.nodata&&r&&(j=q.nodata,a.isFunction(j)&&(j=j()),j===!0?j={}:"string"==typeof j&&(j={title:j}),j=a.extend({statusNodeType:"nodata",key:g,title:this.options.strings.noData},j),this.getRootNode().addNode(j).match=!0),this.render(),m},a.ui.fancytree._FancytreeClass.prototype.filterNodes=function(a,b){return"boolean"==typeof b&&(b={leavesOnly:b},this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.")),this._applyFilterImpl(a,!1,b)},a.ui.fancytree._FancytreeClass.prototype.applyFilter=function(a){return this.warn("Fancytree.applyFilter() is deprecated since 2.1.0 / 2014-05-29. Use .filterNodes() instead."),this.filterNodes.apply(this,arguments)},a.ui.fancytree._FancytreeClass.prototype.filterBranches=function(a,b){return this._applyFilterImpl(a,!0,b)},a.ui.fancytree._FancytreeClass.prototype.clearFilter=function(){var b,c=this.getRootNode()._findDirectChild(g),d=this.options.escapeTitles,e=this.options.enhanceTitle;c&&c.remove(),this.visit(function(c){c.match&&c.span&&(b=a(c.span).find(">span.fancytree-title"),d?b.text(c.title):b.html(c.title),e&&e({type:"enhanceTitle"},{node:c,$title:b})),delete c.match,delete c.subMatchCount,delete c.titleWithHighlight,c.$subMatchBadge&&(c.$subMatchBadge.remove(),delete c.$subMatchBadge),c._filterAutoExpanded&&c.expanded&&c.setExpanded(!1,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),delete c._filterAutoExpanded}),this.enableFilter=!1,this.lastFilterArgs=null,this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide"),this.render()},a.ui.fancytree._FancytreeClass.prototype.isFilterActive=function(){return!!this.enableFilter},a.ui.fancytree._FancytreeNodeClass.prototype.isMatched=function(){return!(this.tree.enableFilter&&!this.match)},a.ui.fancytree.registerExtension({name:"filter",version:"2.23.0",options:{autoApply:!0,autoExpand:!1,counter:!0,fuzzy:!1,hideExpandedCounter:!0,hideExpanders:!1,highlight:!0,leavesOnly:!1,nodata:!0,mode:"dimm"},nodeLoadChildren:function(a,b){return this._superApply(arguments).done(function(){a.tree.enableFilter&&a.tree.lastFilterArgs&&a.options.filter.autoApply&&a.tree._applyFilterImpl.apply(a.tree,a.tree.lastFilterArgs)})},nodeSetExpanded:function(a,b,c){return delete a.node._filterAutoExpanded,!b&&a.options.filter.hideExpandedCounter&&a.node.$subMatchBadge&&a.node.$subMatchBadge.show(),this._superApply(arguments)},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options.filter,g=a(d.span).find("span.fancytree-title"),h=a(d[e.statusClassPropName]),i=b.options.enhanceTitle,j=b.options.escapeTitles;return c=this._super(b),h.length&&e.enableFilter?(h.toggleClass("fancytree-match",!!d.match).toggleClass("fancytree-submatch",!!d.subMatchCount).toggleClass("fancytree-hide",!(d.match||d.subMatchCount)),!f.counter||!d.subMatchCount||d.isExpanded()&&f.hideExpandedCounter?d.$subMatchBadge&&d.$subMatchBadge.hide():(d.$subMatchBadge||(d.$subMatchBadge=a("<span class='fancytree-childcounter'/>"),a("span.fancytree-icon, span.fancytree-custom-icon",d.span).append(d.$subMatchBadge)),d.$subMatchBadge.show().text(d.subMatchCount)),!d.span||d.isEditing&&d.isEditing.call(d)||(d.titleWithHighlight?g.html(d.titleWithHighlight):j?g.text(d.title):g.html(d.title),i&&i({type:"enhanceTitle"},{node:d,$title:g})),c):c}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.glyph.min.js' */-!function(a,b,c,d){"use strict";function e(a,b){return a.map[b]}a.ui.fancytree.registerExtension({name:"glyph",version:"2.23.0",options:{map:{checkbox:"icon-check-empty",checkboxSelected:"icon-check",checkboxUnknown:"icon-check icon-muted",error:"icon-exclamation-sign",expanderClosed:"icon-caret-right",expanderLazy:"icon-angle-right",expanderOpen:"icon-caret-down",nodata:"icon-meh",noExpander:"",dragHelper:"icon-caret-right",dropMarker:"icon-caret-right",doc:"icon-file-alt",docOpen:"icon-file-alt",loading:"icon-refresh icon-spin",folder:"icon-folder-close-alt",folderOpen:"icon-folder-open-alt"}},treeInit:function(a){var b=a.tree;this._superApply(arguments),b.$container.addClass("fancytree-ext-glyph")},nodeRenderStatus:function(b){var c,d,f,g=b.node,h=a(g.span),i=b.options.glyph,j=i.map;return d=this._super(b),g.isRoot()?d:(f=h.children("span.fancytree-expander").get(0),f&&(c=g.expanded&&g.hasChildren()?"expanderOpen":g.isUndefined()?"expanderLazy":g.hasChildren()?"expanderClosed":"noExpander",f.className="fancytree-expander "+j[c]),f=g.tr?a("td",g.tr).find("span.fancytree-checkbox").get(0):h.children("span.fancytree-checkbox").get(0),f&&(c=g.selected?"checkboxSelected":g.partsel?"checkboxUnknown":"checkbox",f.className="fancytree-checkbox "+j[c]),f=h.children("span.fancytree-icon").get(0),f&&(c=g.statusNodeType?e(i,g.statusNodeType):g.folder?g.expanded&&g.hasChildren()?e(i,"folderOpen"):e(i,"folder"):g.expanded?e(i,"docOpen"):e(i,"doc"),f.className="fancytree-icon "+c),d)},nodeSetStatus:function(b,c,d,f){var g,h,i=b.options.glyph,j=b.node;return g=this._superApply(arguments),"error"!==c&&"loading"!==c&&"nodata"!==c||(j.parent?(h=a("span.fancytree-expander",j.span).get(0),h&&(h.className="fancytree-expander "+e(i,c))):(h=a(".fancytree-statusnode-"+c,j[this.nodeContainerAttrName]).find("span.fancytree-icon").get(0),h&&(h.className="fancytree-icon "+e(i,c)))),g}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.gridnav.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){var d,e=c.get(0),f=0;return b.children().each(function(){return this!==e&&(d=a(this).prop("colspan"),void(f+=d?d:1))}),f}function f(b,c){var d,e=null,f=0;return b.children().each(function(){return f>=c?(e=a(this),!1):(d=a(this).prop("colspan"),void(f+=d?d:1))}),e}function g(a,b){var c,d,g=a.closest("td"),i=null;switch(b){case h.LEFT:i=g.prev();break;case h.RIGHT:i=g.next();break;case h.UP:case h.DOWN:for(c=g.parent(),d=e(c,g);;){if(c=b===h.UP?c.prev():c.next(),!c.length)break;if(!c.is(":hidden")&&(i=f(c,d),i&&i.find(":input,a").length))break}}return i}var h=a.ui.keyCode,i={text:[h.UP,h.DOWN],checkbox:[h.UP,h.DOWN,h.LEFT,h.RIGHT],link:[h.UP,h.DOWN,h.LEFT,h.RIGHT],radiobutton:[h.UP,h.DOWN,h.LEFT,h.RIGHT],"select-one":[h.LEFT,h.RIGHT],"select-multiple":[h.LEFT,h.RIGHT]};a.ui.fancytree.registerExtension({name:"gridnav",version:"2.23.0",options:{autofocusInput:!1,handleCursorKeys:!0},treeInit:function(b){this._requireExtension("table",!0,!0),this._superApply(arguments),this.$container.addClass("fancytree-ext-gridnav"),this.$container.on("focusin",function(c){var d,e=a.ui.fancytree.getNode(c.target);e&&!e.isActive()&&(d=b.tree._makeHookContext(e,c),b.tree._callHook("nodeSetActive",d,!0))})},nodeSetActive:function(b,c,d){var e,f=b.options.gridnav,g=b.node,h=b.originalEvent||{},i=a(h.target).is(":input");c=c!==!1,this._superApply(arguments),c&&(b.options.titlesTabbable?(i||(a(g.span).find("span.fancytree-title").focus(),g.setFocus()),b.tree.$container.attr("tabindex","-1")):f.autofocusInput&&!i&&(e=a(g.tr||g.span),e.find(":input:enabled:first").focus()))},nodeKeydown:function(b){var c,d,e,f=b.options.gridnav,h=b.originalEvent,j=a(h.target);return j.is(":input:enabled")?c=j.prop("type"):j.is("a")&&(c="link"),c&&f.handleCursorKeys?(d=i[c],!(d&&a.inArray(h.which,d)>=0&&(e=g(j,h.which),e&&e.length))||(e.find(":input:enabled,a").focus(),!1)):this._superApply(arguments)}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.persist.min.js' */-!function(a,b,c,d){"use strict";function e(b,c,d,f,g){var h,i,j,l,m=!1,n=b.options.persist.expandOpts,o=[],p=[];for(d=d||[],g=g||a.Deferred(),h=0,j=d.length;h<j;h++)i=d[h],l=b.getNodeByKey(i),l?f&&l.isUndefined()?(m=!0,b.debug("_loadLazyNodes: "+l+" is lazy: loading..."),"expand"===f?o.push(l.setExpanded(!0,n)):o.push(l.load())):(b.debug("_loadLazyNodes: "+l+" already loaded."),l.setExpanded(!0,n)):(p.push(i),b.debug("_loadLazyNodes: "+l+" was not yet found."));return a.when.apply(a,o).always(function(){if(m&&p.length>0)e(b,c,p,f,g);else{if(p.length)for(b.warn("_loadLazyNodes: could not load those keys: ",p),h=0,j=p.length;h<j;h++)i=d[h],c._appendKey(k,d[h],!1);g.resolve()}}),g}var f,g,h,i=a.ui.fancytree.assert,j="active",k="expanded",l="focus",m="selected";"function"==typeof Cookies?(h=Cookies.set,f=Cookies.get,g=Cookies.remove):(h=f=a.cookie,g=a.removeCookie),a.ui.fancytree._FancytreeClass.prototype.clearCookies=function(a){var b=this.ext.persist,c=b.cookiePrefix;a=a||"active expanded focus selected",a.indexOf(j)>=0&&b._data(c+j,null),a.indexOf(k)>=0&&b._data(c+k,null),a.indexOf(l)>=0&&b._data(c+l,null),a.indexOf(m)>=0&&b._data(c+m,null)},a.ui.fancytree._FancytreeClass.prototype.getPersistData=function(){var a=this.ext.persist,b=a.cookiePrefix,c=a.cookieDelimiter,d={};return d[j]=a._data(b+j),d[k]=(a._data(b+k)||"").split(c),d[m]=(a._data(b+m)||"").split(c),d[l]=a._data(b+l),d},a.ui.fancytree.registerExtension({name:"persist",version:"2.23.0",options:{cookieDelimiter:"~",cookiePrefix:d,cookie:{raw:!1,expires:"",path:"",domain:"",secure:!1},expandLazy:!1,expandOpts:d,fireActivate:!0,overrideSource:!0,store:"auto",types:"active expanded focus selected"},_data:function(a,b){var c=this._local.localStorage;return b===d?c?c.getItem(a):f(a):void(null===b?c?c.removeItem(a):g(a):c?c.setItem(a,b):h(a,b,this.options.persist.cookie))},_appendKey:function(b,c,d){c=""+c;var e=this._local,f=this.options.persist,g=f.cookieDelimiter,h=e.cookiePrefix+b,i=e._data(h),j=i?i.split(g):[],k=a.inArray(c,j);k>=0&&j.splice(k,1),d&&j.push(c),e._data(h,j.join(g))},treeInit:function(c){var g=c.tree,h=c.options,n=this._local,o=this.options.persist;return i("auto"!==o.store&&"cookie"!==o.store||f,"Missing required plugin for 'persist' extension: js.cookie.js or jquery.cookie.js"),n.cookiePrefix=o.cookiePrefix||"fancytree-"+g._id+"-",n.storeActive=o.types.indexOf(j)>=0,n.storeExpanded=o.types.indexOf(k)>=0,n.storeSelected=o.types.indexOf(m)>=0,n.storeFocus=o.types.indexOf(l)>=0,"cookie"!==o.store&&b.localStorage?n.localStorage="local"===o.store?b.localStorage:b.sessionStorage:n.localStorage=null,g.$div.bind("fancytreeinit",function(b){if(g._triggerTreeEvent("beforeRestore",null,{})!==!1){var c,f,i,p,q,r=n._data(n.cookiePrefix+l),s=o.fireActivate===!1;c=n._data(n.cookiePrefix+k),p=c&&c.split(o.cookieDelimiter),f=n.storeExpanded?e(g,n,p,!!o.expandLazy&&"expand",null):(new a.Deferred).resolve(),f.done(function(){if(n.storeSelected){if(c=n._data(n.cookiePrefix+m))for(p=c.split(o.cookieDelimiter),i=0;i<p.length;i++)q=g.getNodeByKey(p[i]),q?(q.selected===d||o.overrideSource&&q.selected===!1)&&(q.selected=!0,q.renderStatus()):n._appendKey(m,p[i],!1);3===g.options.selectMode&&g.visit(function(a){if(a.selected)return a.fixSelection3AfterClick(),"skip"})}n.storeActive&&(c=n._data(n.cookiePrefix+j),!c||!h.persist.overrideSource&&g.activeNode||(q=g.getNodeByKey(c),q&&(q.debug("persist: set active",c),q.setActive(!0,{noFocus:!0,noEvents:s})))),n.storeFocus&&r&&(q=g.getNodeByKey(r),q&&(g.options.titlesTabbable?a(q.span).find(".fancytree-title").focus():a(g.$container).focus())),g._triggerTreeEvent("restore",null,{})})}}),this._superApply(arguments)},nodeSetActive:function(a,b,c){var d,e=this._local;return b=b!==!1,d=this._superApply(arguments),e.storeActive&&e._data(e.cookiePrefix+j,this.activeNode?this.activeNode.key:null),d},nodeSetExpanded:function(a,b,c){var d,e=a.node,f=this._local;return b=b!==!1,d=this._superApply(arguments),f.storeExpanded&&f._appendKey(k,e.key,b),d},nodeSetFocus:function(a,b){var c,d=this._local;return b=b!==!1,c=this._superApply(arguments),d.storeFocus&&d._data(d.cookiePrefix+l,this.focusNode?this.focusNode.key:null),c},nodeSetSelected:function(b,c,d){var e,f,g=b.tree,h=b.node,i=this._local;return c=c!==!1,e=this._superApply(arguments),i.storeSelected&&(3===g.options.selectMode?(f=a.map(g.getSelectedNodes(!0),function(a){return a.key}),f=f.join(b.options.persist.cookieDelimiter),i._data(i.cookiePrefix+m,f)):i._appendKey(m,h.key,h.selected)),e}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.table.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){c=c||"",b||a.error("Assertion failed "+c)}function f(a,b){a.insertBefore(b,a.firstChild)}function g(a,b){a.parentNode.insertBefore(b,a.nextSibling)}function h(a,b){a.visit(function(a){var c=a.tr;if(c&&(c.style.display=a.hide||!b?"none":""),!a.expanded)return"skip"})}function i(b){var c,d,f,g=b.parent,h=g?g.children:null;if(h&&h.length>1&&h[0]!==b)for(c=a.inArray(b,h),f=h[c-1],e(f.tr);f.children&&f.children.length&&(d=f.children[f.children.length-1],d.tr);)f=d;else f=g;return f}a.ui.fancytree.registerExtension({name:"table",version:"2.23.0",options:{checkboxColumnIdx:null,indentation:16,nodeColumnIdx:0},treeInit:function(b){var d,f,g,h,i,j=b.tree,k=b.options,l=k.table,m=j.widget.element;if(null!=l.customStatus&&(null!=k.renderStatusColumns?a.error("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' only instead."):(j.warn("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' instead."),k.renderStatusColumns=l.customStatus)),k.renderStatusColumns&&k.renderStatusColumns===!0&&(k.renderStatusColumns=k.renderColumns),m.addClass("fancytree-container fancytree-ext-table"),j.tbody=m.find(">tbody")[0],i=a(j.tbody),f=a("thead >tr:last >th",m).length,h=i.children("tr:first"),h.length)g=h.children("td").length,f&&g!==f&&(j.warn("Column count mismatch between thead ("+f+") and tbody ("+g+"): using tbody."),f=g),h=h.clone();else for(e(f>=1,"Need either <thead> or <tbody> with <td> elements to determine column count."),h=a("<tr />"),d=0;d<f;d++)h.append("<td />");h.find(">td").eq(l.nodeColumnIdx).html("<span class='fancytree-node' />"),k.aria&&(h.attr("role","row"),h.find("td").attr("role","gridcell")),j.rowFragment=c.createDocumentFragment(),j.rowFragment.appendChild(h.get(0)),i.empty(),j.statusClassPropName="tr",j.ariaPropName="tr",this.nodeContainerAttrName="tr",j.$container=m,this._superApply(arguments),a(j.rootNode.ul).remove(),j.rootNode.ul=null,this.$container.attr("tabindex",k.tabindex),k.aria&&j.$container.attr("role","treegrid").attr("aria-readonly",!0)},nodeRemoveChildMarkup:function(b){var c=b.node;c.visit(function(b){b.tr&&(a(b.tr).remove(),b.tr=null)})},nodeRemoveMarkup:function(b){var c=b.node;c.tr&&(a(c.tr).remove(),c.tr=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(b,c,d,j,k){var l,m,n,o,p,q,r,s,t=b.tree,u=b.node,v=b.options,w=!u.parent;if(t._enableUpdate!==!1){if(k||(b.hasCollapsedParents=u.parent&&!u.parent.expanded),!w)if(u.tr&&c&&this.nodeRemoveMarkup(b),u.tr)c?this.nodeRenderTitle(b):this.nodeRenderStatus(b);else{if(b.hasCollapsedParents&&!d)return;p=t.rowFragment.firstChild.cloneNode(!0),q=i(u),e(q),j===!0&&k?p.style.display="none":d&&b.hasCollapsedParents&&(p.style.display="none"),q.tr?g(q.tr,p):(e(!q.parent,"prev. row must have a tr, or be system root"),f(t.tbody,p)),u.tr=p,u.key&&v.generateIds&&(u.tr.id=v.idPrefix+u.key),u.tr.ftnode=u,u.span=a("span.fancytree-node",u.tr).get(0),this.nodeRenderTitle(b),v.createNode&&v.createNode.call(t,{type:"createNode"},b)}if(v.renderNode&&v.renderNode.call(t,{type:"renderNode"},b),l=u.children,l&&(w||d||u.expanded))for(n=0,o=l.length;n<o;n++)s=a.extend({},b,{node:l[n]}),s.hasCollapsedParents=s.hasCollapsedParents||!u.expanded,this.nodeRender(s,c,d,j,!0);l&&!k&&(r=u.tr||null,m=t.tbody.firstChild,u.visit(function(a){if(a.tr){if(a.parent.expanded||"none"===a.tr.style.display||(a.tr.style.display="none",h(a,!1)),a.tr.previousSibling!==r){u.debug("_fixOrder: mismatch at node: "+a);var b=r?r.nextSibling:m;t.tbody.insertBefore(a.tr,b)}r=a.tr}}))}},nodeRenderTitle:function(b,c){var d,e,f=b.node,g=b.options,h=f.isStatusNode();return e=this._super(b,c),f.isRootNode()?e:(g.checkbox&&!h&&null!=g.table.checkboxColumnIdx&&(d=a("span.fancytree-checkbox",f.span),a(f.tr).find("td").eq(+g.table.checkboxColumnIdx).html(d)),this.nodeRenderStatus(b),h?g.renderStatusColumns&&g.renderStatusColumns.call(b.tree,{type:"renderStatusColumns"},b):g.renderColumns&&g.renderColumns.call(b.tree,{type:"renderColumns"},b),e)},nodeRenderStatus:function(b){var c,d=b.node,e=b.options;this._super(b),a(d.tr).removeClass("fancytree-node"),c=(d.getLevel()-1)*e.table.indentation,a(d.span).css({paddingLeft:c+"px"})},nodeSetExpanded:function(b,c,d){function e(a){h(b.node,c),a?c&&b.options.autoScroll&&!d.noAnimation&&b.node.hasChildren()?b.node.getLastChild().scrollIntoView(!0,{topNode:b.node}).always(function(){d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),f.resolveWith(b.node)}):(d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),f.resolveWith(b.node)):(d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),f.rejectWith(b.node))}if(c=c!==!1,b.node.expanded&&c||!b.node.expanded&&!c)return this._superApply(arguments);var f=new a.Deferred,g=a.extend({},d,{noEvents:!0,noAnimation:!0});return d=d||{},this._super(b,c,g).done(function(){e(!0)}).fail(function(){e(!1)}),f.promise()},nodeSetStatus:function(b,c,d,e){if("ok"===c){var f=b.node,g=f.children?f.children[0]:null;g&&g.isStatusNode()&&a(g.tr).remove()}return this._superApply(arguments)},treeClear:function(a){return this.nodeRemoveChildMarkup(this._makeHookContext(this.rootNode)),this._superApply(arguments)},treeDestroy:function(a){return this.$container.find("tbody").empty(),this.$source&&this.$source.removeClass("ui-helper-hidden"),this._superApply(arguments)}})}(jQuery,window,document);--/*! Extension 'jquery.fancytree.wide.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){b="fancytree-style-"+b;var d=a("#"+b);if(!c)return d.remove(),null;d.length||(d=a("<style />").attr("id",b).addClass("fancytree-style").prop("type","text/css").appendTo("head"));try{d.html(c)}catch(e){d[0].styleSheet.cssText=c}return d}function f(a,b,c,d,e,f){var g,h="#"+a+" span.fancytree-level-",i=[];for(g=0;g<b;g++)i.push(h+(g+1)+" span.fancytree-title { padding-left: "+(g*c+d)+f+"; }");return i.push("#"+a+" div.ui-effects-wrapper ul li span.fancytree-title, #"+a+" ul.fancytree-animating span.fancytree-title { padding-left: "+e+f+"; position: static; width: auto; }"),i.join("\n")}var g=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;a.ui.fancytree.registerExtension({name:"wide",version:"2.23.0",options:{iconWidth:null,iconSpacing:null,labelSpacing:null,levelOfs:null},treeCreate:function(b){this._superApply(arguments),this.$container.addClass("fancytree-ext-wide");var c,d,h,i,j,k,l=b.options.wide,m=a("<li id='fancytreeTemp'><span class='fancytree-node'><span class='fancytree-icon' /><span class='fancytree-title' /></span><ul />").appendTo(b.tree.$container),n=m.find(".fancytree-icon"),o=m.find("ul"),p=l.iconSpacing||n.css("margin-left"),q=l.iconWidth||n.css("width"),r=l.labelSpacing||"3px",s=l.levelOfs||o.css("padding-left");m.remove(),h=p.match(g)[2],p=parseFloat(p,10),i=r.match(g)[2],r=parseFloat(r,10),j=q.match(g)[2],q=parseFloat(q,10),k=s.match(g)[2],h===j&&k===j&&i===j||a.error("iconWidth, iconSpacing, and levelOfs must have the same css measure unit"),this._local.measureUnit=j,this._local.levelOfs=parseFloat(s),this._local.lineOfs=(1+(b.options.checkbox?1:0)+(b.options.icon===!1?0:1))*(q+p)+p,this._local.labelOfs=r,this._local.maxDepth=10,c=this.$container.uniqueId().attr("id"),d=f(c,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelOfs,this._local.measureUnit),e(c,d)},treeDestroy:function(a){return e(this.$container.attr("id"),null),this._superApply(arguments)},nodeRenderStatus:function(b){var c,d,g,h=b.node,i=h.getLevel();return g=this._super(b),i>this._local.maxDepth&&(c=this.$container.attr("id"),this._local.maxDepth*=2,h.debug("Define global ext-wide css up to level "+this._local.maxDepth),d=f(c,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelSpacing,this._local.measureUnit),e(c,d)),a(h.span).addClass("fancytree-level-"+i),g}})}(jQuery,window,document);-}));diff --git a/public/libraries/fancytree/jquery.fancytree-all.js b/public/libraries/fancytree/jquery.fancytree-all.jsdeleted file mode 100644index 6172fbb6db..0000000000--- a/public/libraries/fancytree/jquery.fancytree-all.js+++ /dev/null@@ -1,9226 +0,0 @@-/*!- * jquery.fancytree.js- * Tree view control with support for lazy loading and much more.- * https://github.com/mar10/fancytree/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--/** Core Fancytree module.- */---// Start of local namespace-;(function($, window, document, undefined) {-"use strict";--// prevent duplicate loading-if ( $.ui && $.ui.fancytree ) {- $.ui.fancytree.warn("Fancytree: ignored duplicate include");- return;-}---/* *****************************************************************************- * Private functions and variables- */--var i, attr,- FT = null, // initialized below- TEST_IMG = new RegExp(/\.|\//), // strings are considered image urls if they contain '.' or '/'- REX_HTML = /[&<>"'\/]/g,- REX_TOOLTIP = /[<>"'\/]/g,- RECURSIVE_REQUEST_ERROR = "$recursive_request",- ENTITY_MAP = {"&": "&", "<": "<", ">": ">", "\"": """, "'": "'", "/": "/"},- IGNORE_KEYCODES = { 16: true, 17: true, 18: true },- SPECIAL_KEYCODES = {- 8: "backspace", 9: "tab", 10: "return", 13: "return",- // 16: null, 17: null, 18: null, // ignore shift, ctrl, alt- 19: "pause", 20: "capslock", 27: "esc", 32: "space", 33: "pageup",- 34: "pagedown", 35: "end", 36: "home", 37: "left", 38: "up",- 39: "right", 40: "down", 45: "insert", 46: "del", 59: ";", 61: "=",- 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6",- 103: "7", 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".",- 111: "/", 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5",- 117: "f6", 118: "f7", 119: "f8", 120: "f9", 121: "f10", 122: "f11",- 123: "f12", 144: "numlock", 145: "scroll", 173: "-", 186: ";", 187: "=",- 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",- 221: "]", 222: "'"},- MOUSE_BUTTONS = { 0: "", 1: "left", 2: "middle", 3: "right" },- // Boolean attributes that can be set with equivalent class names in the LI tags- // Note: v2.23: checkbox and hideCheckbox are *not* in this list- CLASS_ATTRS = "active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),- CLASS_ATTR_MAP = {},- // Top-level Fancytree node attributes, that can be set by dict- NODE_ATTRS = "checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),- NODE_ATTR_MAP = {},- // Mapping of lowercase -> real name (because HTML5 data-... attribute only supports lowercase)- NODE_ATTR_LOWERCASE_MAP = {},- // Attribute names that should NOT be added to node.data- NONE_NODE_DATA_MAP = {"active": true, "children": true, "data": true, "focus": true};--for(i=0; i<CLASS_ATTRS.length; i++){ CLASS_ATTR_MAP[CLASS_ATTRS[i]] = true; }-for(i=0; i<NODE_ATTRS.length; i++) {- attr = NODE_ATTRS[i];- NODE_ATTR_MAP[attr] = true;- if( attr !== attr.toLowerCase() ) {- NODE_ATTR_LOWERCASE_MAP[attr.toLowerCase()] = attr;- }-}---function _assert(cond, msg){- // TODO: see qunit.js extractStacktrace()- if(!cond){- msg = msg ? ": " + msg : "";- // consoleApply("assert", [!!cond, msg]);- $.error("Fancytree assertion failed" + msg);- }-}--_assert($.ui, "Fancytree requires jQuery UI (http://jqueryui.com)");--function consoleApply(method, args){- var i, s,- fn = window.console ? window.console[method] : null;-- if(fn){- try{- fn.apply(window.console, args);- } catch(e) {- // IE 8?- s = "";- for( i=0; i<args.length; i++ ) {- s += args[i];- }- fn(s);- }- }-}--/*Return true if x is a FancytreeNode.*/-function _isNode(x){- return !!(x.tree && x.statusNodeType !== undefined);-}--/** Return true if dotted version string is equal or higher than requested version.- *- * See http://jsfiddle.net/mar10/FjSAN/- */-function isVersionAtLeast(dottedVersion, major, minor, patch){- var i, v, t,- verParts = $.map($.trim(dottedVersion).split("."), function(e){ return parseInt(e, 10); }),- testParts = $.map(Array.prototype.slice.call(arguments, 1), function(e){ return parseInt(e, 10); });-- for( i = 0; i < testParts.length; i++ ){- v = verParts[i] || 0;- t = testParts[i] || 0;- if( v !== t ){- return ( v > t );- }- }- return true;-}--/** Return a wrapper that calls sub.methodName() and exposes- * this : tree- * this._local : tree.ext.EXTNAME- * this._super : base.methodName.call()- * this._superApply : base.methodName.apply()- */-function _makeVirtualFunction(methodName, tree, base, extension, extName){- // $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);- // if(rexTestSuper && !rexTestSuper.test(func)){- // // extension.methodName() doesn't call _super(), so no wrapper required- // return func;- // }- // Use an immediate function as closure- var proxy = (function(){- var prevFunc = tree[methodName], // org. tree method or prev. proxy- baseFunc = extension[methodName], //- _local = tree.ext[extName],- _super = function(){- return prevFunc.apply(tree, arguments);- },- _superApply = function(args){- return prevFunc.apply(tree, args);- };-- // Return the wrapper function- return function(){- var prevLocal = tree._local,- prevSuper = tree._super,- prevSuperApply = tree._superApply;-- try{- tree._local = _local;- tree._super = _super;- tree._superApply = _superApply;- return baseFunc.apply(tree, arguments);- }finally{- tree._local = prevLocal;- tree._super = prevSuper;- tree._superApply = prevSuperApply;- }- };- })(); // end of Immediate Function- return proxy;-}--/**- * Subclass `base` by creating proxy functions- */-function _subclassObject(tree, base, extension, extName){- // $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);- for(var attrName in extension){- if(typeof extension[attrName] === "function"){- if(typeof tree[attrName] === "function"){- // override existing method- tree[attrName] = _makeVirtualFunction(attrName, tree, base, extension, extName);- }else if(attrName.charAt(0) === "_"){- // Create private methods in tree.ext.EXTENSION namespace- tree.ext[extName][attrName] = _makeVirtualFunction(attrName, tree, base, extension, extName);- }else{- $.error("Could not override tree." + attrName + ". Use prefix '_' to create tree." + extName + "._" + attrName);- }- }else{- // Create member variables in tree.ext.EXTENSION namespace- if(attrName !== "options"){- tree.ext[extName][attrName] = extension[attrName];- }- }- }-}---function _getResolvedPromise(context, argArray){- if(context === undefined){- return $.Deferred(function(){this.resolve();}).promise();- }else{- return $.Deferred(function(){this.resolveWith(context, argArray);}).promise();- }-}---function _getRejectedPromise(context, argArray){- if(context === undefined){- return $.Deferred(function(){this.reject();}).promise();- }else{- return $.Deferred(function(){this.rejectWith(context, argArray);}).promise();- }-}---function _makeResolveFunc(deferred, context){- return function(){- deferred.resolveWith(context);- };-}---function _getElementDataAsDict($el){- // Evaluate 'data-NAME' attributes with special treatment for 'data-json'.- var d = $.extend({}, $el.data()),- json = d.json;-- delete d.fancytree; // added to container by widget factory (old jQuery UI)- delete d.uiFancytree; // added to container by widget factory-- if( json ) {- delete d.json;- // <li data-json='...'> is already returned as object (http://api.jquery.com/data/#data-html5)- d = $.extend(d, json);- }- return d;-}---function _escapeHtml(s){- return ("" + s).replace(REX_HTML, function(s) {- return ENTITY_MAP[s];- });-}---function _escapeTooltip(s){- return ("" + s).replace(REX_TOOLTIP, function(s) {- return ENTITY_MAP[s];- });-}---// TODO: use currying-function _makeNodeTitleMatcher(s){- s = s.toLowerCase();- return function(node){- return node.title.toLowerCase().indexOf(s) >= 0;- };-}---function _makeNodeTitleStartMatcher(s){- var reMatch = new RegExp("^" + s, "i");- return function(node){- return reMatch.test(node.title);- };-}---/* *****************************************************************************- * FancytreeNode- */---/**- * Creates a new FancytreeNode- *- * @class FancytreeNode- * @classdesc A FancytreeNode represents the hierarchical data model and operations.- *- * @param {FancytreeNode} parent- * @param {NodeData} obj- *- * @property {Fancytree} tree The tree instance- * @property {FancytreeNode} parent The parent node- * @property {string} key Node id (must be unique inside the tree)- * @property {string} title Display name (may contain HTML)- * @property {object} data Contains all extra data that was passed on node creation- * @property {FancytreeNode[] | null | undefined} children Array of child nodes.<br>- * For lazy nodes, null or undefined means 'not yet loaded'. Use an empty array- * to define a node that has no children.- * @property {boolean} expanded Use isExpanded(), setExpanded() to access this property.- * @property {string} extraClasses Additional CSS classes, added to the node's `<span>`.<br>- * Note: use `node.add/remove/toggleClass()` to modify.- * @property {boolean} folder Folder nodes have different default icons and click behavior.<br>- * Note: Also non-folders may have children.- * @property {string} statusNodeType null for standard nodes. Otherwise type of special system node: 'error', 'loading', 'nodata', or 'paging'.- * @property {boolean} lazy True if this node is loaded on demand, i.e. on first expansion.- * @property {boolean} selected Use isSelected(), setSelected() to access this property.- * @property {string} tooltip Alternative description used as hover popup- */-function FancytreeNode(parent, obj){- var i, l, name, cl;-- this.parent = parent;- this.tree = parent.tree;- this.ul = null;- this.li = null; // <li id='key' ftnode=this> tag- this.statusNodeType = null; // if this is a temp. node to display the status of its parent- this._isLoading = false; // if this node itself is loading- this._error = null; // {message: '...'} if a load error occurred- this.data = {};-- // TODO: merge this code with node.toDict()- // copy attributes from obj object- for(i=0, l=NODE_ATTRS.length; i<l; i++){- name = NODE_ATTRS[i];- this[name] = obj[name];- }- // unselectableIgnore and unselectableStatus imply unselectable- if( this.unselectableIgnore != null || this.unselectableStatus != null ) {- this.unselectable = true;- }- if( obj.hideCheckbox ) {- $.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'");- }- // node.data += obj.data- if(obj.data){- $.extend(this.data, obj.data);- }- // copy all other attributes to this.data.NAME- for(name in obj){- if(!NODE_ATTR_MAP[name] && !$.isFunction(obj[name]) && !NONE_NODE_DATA_MAP[name]){- // node.data.NAME = obj.NAME- this.data[name] = obj[name];- }- }-- // Fix missing key- if( this.key == null ){ // test for null OR undefined- if( this.tree.options.defaultKey ) {- this.key = this.tree.options.defaultKey(this);- _assert(this.key, "defaultKey() must return a unique key");- } else {- this.key = "_" + (FT._nextNodeKey++);- }- } else {- this.key = "" + this.key; // Convert to string (#217)- }-- // Fix tree.activeNode- // TODO: not elegant: we use obj.active as marker to set tree.activeNode- // when loading from a dictionary.- if(obj.active){- _assert(this.tree.activeNode === null, "only one active node allowed");- this.tree.activeNode = this;- }- if( obj.selected ){ // #186- this.tree.lastSelectedNode = this;- }- // TODO: handle obj.focus = true-- // Create child nodes- cl = obj.children;- if( cl ){- if( cl.length ){- this._setChildren(cl);- } else {- // if an empty array was passed for a lazy node, keep it, in order to mark it 'loaded'- this.children = this.lazy ? [] : null;- }- } else {- this.children = null;- }- // Add to key/ref map (except for root node)-// if( parent ) {- this.tree._callHook("treeRegisterNode", this.tree, true, this);-// }-}---FancytreeNode.prototype = /** @lends FancytreeNode# */{- /* Return the direct child FancytreeNode with a given key, index. */- _findDirectChild: function(ptr){- var i, l,- cl = this.children;-- if(cl){- if(typeof ptr === "string"){- for(i=0, l=cl.length; i<l; i++){- if(cl[i].key === ptr){- return cl[i];- }- }- }else if(typeof ptr === "number"){- return this.children[ptr];- }else if(ptr.parent === this){- return ptr;- }- }- return null;- },- // TODO: activate()- // TODO: activateSilently()- /* Internal helper called in recursive addChildren sequence.*/- _setChildren: function(children){- _assert(children && (!this.children || this.children.length === 0), "only init supported");- this.children = [];- for(var i=0, l=children.length; i<l; i++){- this.children.push(new FancytreeNode(this, children[i]));- }- },- /**- * Append (or insert) a list of child nodes.- *- * @param {NodeData[]} children array of child node definitions (also single child accepted)- * @param {FancytreeNode | string | Integer} [insertBefore] child node (or key or index of such).- * If omitted, the new children are appended.- * @returns {FancytreeNode} first child added- *- * @see FancytreeNode#applyPatch- */- addChildren: function(children, insertBefore){- var i, l, pos,- origFirstChild = this.getFirstChild(),- origLastChild = this.getLastChild(),- firstNode = null,- nodeList = [];-- if($.isPlainObject(children) ){- children = [children];- }- if(!this.children){- this.children = [];- }- for(i=0, l=children.length; i<l; i++){- nodeList.push(new FancytreeNode(this, children[i]));- }- firstNode = nodeList[0];- if(insertBefore == null){- this.children = this.children.concat(nodeList);- }else{- insertBefore = this._findDirectChild(insertBefore);- pos = $.inArray(insertBefore, this.children);- _assert(pos >= 0, "insertBefore must be an existing child");- // insert nodeList after children[pos]- this.children.splice.apply(this.children, [pos, 0].concat(nodeList));- }- if ( origFirstChild && !insertBefore ) {- // #708: Fast path -- don't render every child of root, just the new ones!- // #723, #729: but only if it's appended to an existing child list- for(i=0, l=nodeList.length; i<l; i++) {- nodeList[i].render(); // New nodes were never rendered before- }- // Adjust classes where status may have changed- // Has a first child- if (origFirstChild !== this.getFirstChild()) {- // Different first child -- recompute classes- origFirstChild.renderStatus();- }- if (origLastChild !== this.getLastChild()) {- // Different last child -- recompute classes- origLastChild.renderStatus();- }- } else if( !this.parent || this.parent.ul || this.tr ){- // render if the parent was rendered (or this is a root node)- this.render();- }- if( this.tree.options.selectMode === 3 ){- this.fixSelection3FromEndNodes();- }- this.triggerModifyChild("add", nodeList.length === 1 ? nodeList[0] : null);- return firstNode;- },- /**- * Add class to node's span tag and to .extraClasses.- *- * @param {string} className class name- *- * @since 2.17- */- addClass: function(className){- return this.toggleClass(className, true);- },- /**- * Append or prepend a node, or append a child node.- *- * This a convenience function that calls addChildren()- *- * @param {NodeData} node node definition- * @param {string} [mode=child] 'before', 'after', 'firstChild', or 'child' ('over' is a synonym for 'child')- * @returns {FancytreeNode} new node- */- addNode: function(node, mode){- if(mode === undefined || mode === "over"){- mode = "child";- }- switch(mode){- case "after":- return this.getParent().addChildren(node, this.getNextSibling());- case "before":- return this.getParent().addChildren(node, this);- case "firstChild":- // Insert before the first child if any- var insertBefore = (this.children ? this.children[0] : null);- return this.addChildren(node, insertBefore);- case "child":- case "over":- return this.addChildren(node);- }- _assert(false, "Invalid mode: " + mode);- },- /**Add child status nodes that indicate 'More...', etc.- *- * This also maintains the node's `partload` property.- * @param {boolean|object} node optional node definition. Pass `false` to remove all paging nodes.- * @param {string} [mode='child'] 'child'|firstChild'- * @since 2.15- */- addPagingNode: function(node, mode){- var i, n;-- mode = mode || "child";- if( node === false ) {- for(i=this.children.length-1; i >= 0; i--) {- n = this.children[i];- if( n.statusNodeType === "paging" ) {- this.removeChild(n);- }- }- this.partload = false;- return;- }- node = $.extend({- title: this.tree.options.strings.moreData,- statusNodeType: "paging",- icon: false- }, node);- this.partload = true;- return this.addNode(node, mode);- },- /**- * Append new node after this.- *- * This a convenience function that calls addNode(node, 'after')- *- * @param {NodeData} node node definition- * @returns {FancytreeNode} new node- */- appendSibling: function(node){- return this.addNode(node, "after");- },- /**- * Modify existing child nodes.- *- * @param {NodePatch} patch- * @returns {$.Promise}- * @see FancytreeNode#addChildren- */- applyPatch: function(patch) {- // patch [key, null] means 'remove'- if(patch === null){- this.remove();- return _getResolvedPromise(this);- }- // TODO: make sure that root node is not collapsed or modified- // copy (most) attributes to node.ATTR or node.data.ATTR- var name, promise, v,- IGNORE_MAP = { children: true, expanded: true, parent: true }; // TODO: should be global-- for(name in patch){- v = patch[name];- if( !IGNORE_MAP[name] && !$.isFunction(v)){- if(NODE_ATTR_MAP[name]){- this[name] = v;- }else{- this.data[name] = v;- }- }- }- // Remove and/or create children- if(patch.hasOwnProperty("children")){- this.removeChildren();- if(patch.children){ // only if not null and not empty list- // TODO: addChildren instead?- this._setChildren(patch.children);- }- // TODO: how can we APPEND or INSERT child nodes?- }- if(this.isVisible()){- this.renderTitle();- this.renderStatus();- }- // Expand collapse (final step, since this may be async)- if(patch.hasOwnProperty("expanded")){- promise = this.setExpanded(patch.expanded);- }else{- promise = _getResolvedPromise(this);- }- return promise;- },- /** Collapse all sibling nodes.- * @returns {$.Promise}- */- collapseSiblings: function() {- return this.tree._callHook("nodeCollapseSiblings", this);- },- /** Copy this node as sibling or child of `node`.- *- * @param {FancytreeNode} node source node- * @param {string} [mode=child] 'before' | 'after' | 'child'- * @param {Function} [map] callback function(NodeData) that could modify the new node- * @returns {FancytreeNode} new- */- copyTo: function(node, mode, map) {- return node.addNode(this.toDict(true, map), mode);- },- /** Count direct and indirect children.- *- * @param {boolean} [deep=true] pass 'false' to only count direct children- * @returns {int} number of child nodes- */- countChildren: function(deep) {- var cl = this.children, i, l, n;- if( !cl ){- return 0;- }- n = cl.length;- if(deep !== false){- for(i=0, l=n; i<l; i++){- n += cl[i].countChildren();- }- }- return n;- },- // TODO: deactivate()- /** Write to browser console if debugLevel >= 2 (prepending node info)- *- * @param {*} msg string or object or array of such- */- debug: function(msg){- if( this.tree.options.debugLevel >= 2 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("log", arguments);- }- },- /** Deprecated.- * @deprecated since 2014-02-16. Use resetLazy() instead.- */- discard: function(){- this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead.");- return this.resetLazy();- },- /** Remove DOM elements for all descendents. May be called on .collapse event- * to keep the DOM small.- * @param {boolean} [includeSelf=false]- */- discardMarkup: function(includeSelf){- var fn = includeSelf ? "nodeRemoveMarkup" : "nodeRemoveChildMarkup";- this.tree._callHook(fn, this);- },- /**Find all nodes that match condition (excluding self).- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode[]} array of nodes (may be empty)- */- findAll: function(match) {- match = $.isFunction(match) ? match : _makeNodeTitleMatcher(match);- var res = [];- this.visit(function(n){- if(match(n)){- res.push(n);- }- });- return res;- },- /**Find first node that matches condition (excluding self).- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode} matching node or null- * @see FancytreeNode#findAll- */- findFirst: function(match) {- match = $.isFunction(match) ? match : _makeNodeTitleMatcher(match);- var res = null;- this.visit(function(n){- if(match(n)){- res = n;- return false;- }- });- return res;- },- /* Apply selection state (internal use only) */- _changeSelectStatusAttrs: function(state) {- var changed = false,- opts = this.tree.options,- unselectable = FT.evalOption("unselectable", this, this, opts, false),- unselectableStatus = FT.evalOption("unselectableStatus", this, this, opts, undefined);-- if( unselectable && unselectableStatus != null ) {- state = unselectableStatus;- }- switch(state){- case false:- changed = ( this.selected || this.partsel );- this.selected = false;- this.partsel = false;- break;- case true:- changed = ( !this.selected || !this.partsel );- this.selected = true;- this.partsel = true;- break;- case undefined:- changed = ( this.selected || !this.partsel );- this.selected = false;- this.partsel = true;- break;- default:- _assert(false, "invalid state: " + state);- }- // this.debug("fixSelection3AfterLoad() _changeSelectStatusAttrs()", state, changed);- if( changed ){- this.renderStatus();- }- return changed;- },- /**- * Fix selection status, after this node was (de)selected in multi-hier mode.- * This includes (de)selecting all children.- */- fixSelection3AfterClick: function(callOpts) {- var flag = this.isSelected();--// this.debug("fixSelection3AfterClick()");-- this.visit(function(node){- node._changeSelectStatusAttrs(flag);- });- this.fixSelection3FromEndNodes(callOpts);- },- /**- * Fix selection status for multi-hier mode.- * Only end-nodes are considered to update the descendants branch and parents.- * Should be called after this node has loaded new children or after- * children have been modified using the API.- */- fixSelection3FromEndNodes: function(callOpts) {- var opts = this.tree.options;--// this.debug("fixSelection3FromEndNodes()");- _assert(opts.selectMode === 3, "expected selectMode 3");-- // Visit all end nodes and adjust their parent's `selected` and `partsel`- // attributes. Return selection state true, false, or undefined.- function _walk(node){- var i, l, child, s, state, allSelected, someSelected, unselIgnore, unselState,- children = node.children;-- if( children && children.length ){- // check all children recursively- allSelected = true;- someSelected = false;-- for( i=0, l=children.length; i<l; i++ ){- child = children[i];- // the selection state of a node is not relevant; we need the end-nodes- s = _walk(child);- // if( !child.unselectableIgnore ) {- unselIgnore = FT.evalOption("unselectableIgnore", child, child, opts, false);- if( !unselIgnore ) {- if( s !== false ) {- someSelected = true;- }- if( s !== true ) {- allSelected = false;- }- }- }- state = allSelected ? true : (someSelected ? undefined : false);- }else{- // This is an end-node: simply report the status- unselState = FT.evalOption("unselectableStatus", node, node, opts, undefined);- state = ( unselState == null ) ? !!node.selected : !!unselState;- }- node._changeSelectStatusAttrs(state);- return state;- }- _walk(this);-- // Update parent's state- this.visitParents(function(node){- var i, l, child, state, unselIgnore, unselState,- children = node.children,- allSelected = true,- someSelected = false;-- for( i=0, l=children.length; i<l; i++ ){- child = children[i];- unselIgnore = FT.evalOption("unselectableIgnore", child, child, opts, false);- if( !unselIgnore ) {- unselState = FT.evalOption("unselectableStatus", child, child, opts, undefined);- state = ( unselState == null ) ? !!child.selected : !!unselState;- // When fixing the parents, we trust the sibling status (i.e.- // we don't recurse)- if( state || child.partsel ) {- someSelected = true;- }- if( !state ) {- allSelected = false;- }- }- }- state = allSelected ? true : (someSelected ? undefined : false);- node._changeSelectStatusAttrs(state);- });- },- // TODO: focus()- /**- * Update node data. If dict contains 'children', then also replace- * the hole sub tree.- * @param {NodeData} dict- *- * @see FancytreeNode#addChildren- * @see FancytreeNode#applyPatch- */- fromDict: function(dict) {- // copy all other attributes to this.data.xxx- for(var name in dict){- if(NODE_ATTR_MAP[name]){- // node.NAME = dict.NAME- this[name] = dict[name];- }else if(name === "data"){- // node.data += dict.data- $.extend(this.data, dict.data);- }else if(!$.isFunction(dict[name]) && !NONE_NODE_DATA_MAP[name]){- // node.data.NAME = dict.NAME- this.data[name] = dict[name];- }- }- if(dict.children){- // recursively set children and render- this.removeChildren();- this.addChildren(dict.children);- }- this.renderTitle();-/*- var children = dict.children;- if(children === undefined){- this.data = $.extend(this.data, dict);- this.render();- return;- }- dict = $.extend({}, dict);- dict.children = undefined;- this.data = $.extend(this.data, dict);- this.removeChildren();- this.addChild(children);-*/- },- /** Return the list of child nodes (undefined for unexpanded lazy nodes).- * @returns {FancytreeNode[] | undefined}- */- getChildren: function() {- if(this.hasChildren() === undefined){ // TODO: only required for lazy nodes?- return undefined; // Lazy node: unloaded, currently loading, or load error- }- return this.children;- },- /** Return the first child node or null.- * @returns {FancytreeNode | null}- */- getFirstChild: function() {- return this.children ? this.children[0] : null;- },- /** Return the 0-based child index.- * @returns {int}- */- getIndex: function() {-// return this.parent.children.indexOf(this);- return $.inArray(this, this.parent.children); // indexOf doesn't work in IE7- },- /** Return the hierarchical child index (1-based, e.g. '3.2.4').- * @param {string} [separator="."]- * @param {int} [digits=1]- * @returns {string}- */- getIndexHier: function(separator, digits) {- separator = separator || ".";- var s,- res = [];- $.each(this.getParentList(false, true), function(i, o){- s = "" + (o.getIndex() + 1);- if( digits ){- // prepend leading zeroes- s = ("0000000" + s).substr(-digits);- }- res.push(s);- });- return res.join(separator);- },- /** Return the parent keys separated by options.keyPathSeparator, e.g. "id_1/id_17/id_32".- * @param {boolean} [excludeSelf=false]- * @returns {string}- */- getKeyPath: function(excludeSelf) {- var path = [],- sep = this.tree.options.keyPathSeparator;- this.visitParents(function(n){- if(n.parent){- path.unshift(n.key);- }- }, !excludeSelf);- return sep + path.join(sep);- },- /** Return the last child of this node or null.- * @returns {FancytreeNode | null}- */- getLastChild: function() {- return this.children ? this.children[this.children.length - 1] : null;- },- /** Return node depth. 0: System root node, 1: visible top-level node, 2: first sub-level, ... .- * @returns {int}- */- getLevel: function() {- var level = 0,- dtn = this.parent;- while( dtn ) {- level++;- dtn = dtn.parent;- }- return level;- },- /** Return the successor node (under the same parent) or null.- * @returns {FancytreeNode | null}- */- getNextSibling: function() {- // TODO: use indexOf, if available: (not in IE6)- if( this.parent ){- var i, l,- ac = this.parent.children;-- for(i=0, l=ac.length-1; i<l; i++){ // up to length-2, so next(last) = null- if( ac[i] === this ){- return ac[i+1];- }- }- }- return null;- },- /** Return the parent node (null for the system root node).- * @returns {FancytreeNode | null}- */- getParent: function() {- // TODO: return null for top-level nodes?- return this.parent;- },- /** Return an array of all parent nodes (top-down).- * @param {boolean} [includeRoot=false] Include the invisible system root node.- * @param {boolean} [includeSelf=false] Include the node itself.- * @returns {FancytreeNode[]}- */- getParentList: function(includeRoot, includeSelf) {- var l = [],- dtn = includeSelf ? this : this.parent;- while( dtn ) {- if( includeRoot || dtn.parent ){- l.unshift(dtn);- }- dtn = dtn.parent;- }- return l;- },- /** Return the predecessor node (under the same parent) or null.- * @returns {FancytreeNode | null}- */- getPrevSibling: function() {- if( this.parent ){- var i, l,- ac = this.parent.children;-- for(i=1, l=ac.length; i<l; i++){ // start with 1, so prev(first) = null- if( ac[i] === this ){- return ac[i-1];- }- }- }- return null;- },- /**- * Return an array of selected descendant nodes.- * @param {boolean} [stopOnParents=false] only return the topmost selected- * node (useful with selectMode 3)- * @returns {FancytreeNode[]}- */- getSelectedNodes: function(stopOnParents) {- var nodeList = [];- this.visit(function(node){- if( node.selected ) {- nodeList.push(node);- if( stopOnParents === true ){- return "skip"; // stop processing this branch- }- }- });- return nodeList;- },- /** Return true if node has children. Return undefined if not sure, i.e. the node is lazy and not yet loaded).- * @returns {boolean | undefined}- */- hasChildren: function() {- if(this.lazy){- if(this.children == null ){- // null or undefined: Not yet loaded- return undefined;- }else if(this.children.length === 0){- // Loaded, but response was empty- return false;- }else if(this.children.length === 1 && this.children[0].isStatusNode() ){- // Currently loading or load error- return undefined;- }- return true;- }- return !!( this.children && this.children.length );- },- /** Return true if node has keyboard focus.- * @returns {boolean}- */- hasFocus: function() {- return (this.tree.hasFocus() && this.tree.focusNode === this);- },- /** Write to browser console if debugLevel >= 1 (prepending node info)- *- * @param {*} msg string or object or array of such- */- info: function(msg){- if( this.tree.options.debugLevel >= 1 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("info", arguments);- }- },- /** Return true if node is active (see also FancytreeNode#isSelected).- * @returns {boolean}- */- isActive: function() {- return (this.tree.activeNode === this);- },- /** Return true if node is a direct child of otherNode.- * @param {FancytreeNode} otherNode- * @returns {boolean}- */- isChildOf: function(otherNode) {- return (this.parent && this.parent === otherNode);- },- /** Return true, if node is a direct or indirect sub node of otherNode.- * @param {FancytreeNode} otherNode- * @returns {boolean}- */- isDescendantOf: function(otherNode) {- if(!otherNode || otherNode.tree !== this.tree){- return false;- }- var p = this.parent;- while( p ) {- if( p === otherNode ){- return true;- }- p = p.parent;- }- return false;- },- /** Return true if node is expanded.- * @returns {boolean}- */- isExpanded: function() {- return !!this.expanded;- },- /** Return true if node is the first node of its parent's children.- * @returns {boolean}- */- isFirstSibling: function() {- var p = this.parent;- return !p || p.children[0] === this;- },- /** Return true if node is a folder, i.e. has the node.folder attribute set.- * @returns {boolean}- */- isFolder: function() {- return !!this.folder;- },- /** Return true if node is the last node of its parent's children.- * @returns {boolean}- */- isLastSibling: function() {- var p = this.parent;- return !p || p.children[p.children.length-1] === this;- },- /** Return true if node is lazy (even if data was already loaded)- * @returns {boolean}- */- isLazy: function() {- return !!this.lazy;- },- /** Return true if node is lazy and loaded. For non-lazy nodes always return true.- * @returns {boolean}- */- isLoaded: function() {- return !this.lazy || this.hasChildren() !== undefined; // Also checks if the only child is a status node- },- /** Return true if children are currently beeing loaded, i.e. a Ajax request is pending.- * @returns {boolean}- */- isLoading: function() {- return !!this._isLoading;- },- /*- * @deprecated since v2.4.0: Use isRootNode() instead- */- isRoot: function() {- return this.isRootNode();- },- /** Return true if node is partially selected (tri-state).- * @returns {boolean}- * @since 2.23- */- isPartsel: function() {- return !this.selected && !!this.partsel;- },- /** (experimental) Return true if this is partially loaded.- * @returns {boolean}- * @since 2.15- */- isPartload: function() {- return !!this.partload;- },- /** Return true if this is the (invisible) system root node.- * @returns {boolean}- * @since 2.4- */- isRootNode: function() {- return (this.tree.rootNode === this);- },- /** Return true if node is selected, i.e. has a checkmark set (see also FancytreeNode#isActive).- * @returns {boolean}- */- isSelected: function() {- return !!this.selected;- },- /** Return true if this node is a temporarily generated system node like- * 'loading', 'paging', or 'error' (node.statusNodeType contains the type).- * @returns {boolean}- */- isStatusNode: function() {- return !!this.statusNodeType;- },- /** Return true if this node is a status node of type 'paging'.- * @returns {boolean}- * @since 2.15- */- isPagingNode: function() {- return this.statusNodeType === "paging";- },- /** Return true if this a top level node, i.e. a direct child of the (invisible) system root node.- * @returns {boolean}- * @since 2.4- */- isTopLevel: function() {- return (this.tree.rootNode === this.parent);- },- /** Return true if node is lazy and not yet loaded. For non-lazy nodes always return false.- * @returns {boolean}- */- isUndefined: function() {- return this.hasChildren() === undefined; // also checks if the only child is a status node- },- /** Return true if all parent nodes are expanded. Note: this does not check- * whether the node is scrolled into the visible part of the screen.- * @returns {boolean}- */- isVisible: function() {- var i, l,- parents = this.getParentList(false, false);-- for(i=0, l=parents.length; i<l; i++){- if( ! parents[i].expanded ){ return false; }- }- return true;- },- /** Deprecated.- * @deprecated since 2014-02-16: use load() instead.- */- lazyLoad: function(discard) {- this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead.");- return this.load(discard);- },- /**- * Load all children of a lazy node if neccessary. The <i>expanded</i> state is maintained.- * @param {boolean} [forceReload=false] Pass true to discard any existing nodes before. Otherwise this method does nothing if the node was already loaded.- * @returns {$.Promise}- */- load: function(forceReload) {- var res, source,- that = this,- wasExpanded = this.isExpanded();-- _assert( this.isLazy(), "load() requires a lazy node" );- // _assert( forceReload || this.isUndefined(), "Pass forceReload=true to re-load a lazy node" );- if( !forceReload && !this.isUndefined() ) {- return _getResolvedPromise(this);- }- if( this.isLoaded() ){- this.resetLazy(); // also collapses- }- // This method is also called by setExpanded() and loadKeyPath(), so we- // have to avoid recursion.- source = this.tree._triggerNodeEvent("lazyLoad", this);- if( source === false ) { // #69- return _getResolvedPromise(this);- }- _assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");- res = this.tree._callHook("nodeLoadChildren", this, source);- if( wasExpanded ) {- this.expanded = true;- res.always(function(){- that.render();- });- } else {- res.always(function(){- that.renderStatus(); // fix expander icon to 'loaded'- });- }- return res;- },- /** Expand all parents and optionally scroll into visible area as neccessary.- * Promise is resolved, when lazy loading and animations are done.- * @param {object} [opts] passed to `setExpanded()`.- * Defaults to {noAnimation: false, noEvents: false, scrollIntoView: true}- * @returns {$.Promise}- */- makeVisible: function(opts) {- var i,- that = this,- deferreds = [],- dfd = new $.Deferred(),- parents = this.getParentList(false, false),- len = parents.length,- effects = !(opts && opts.noAnimation === true),- scroll = !(opts && opts.scrollIntoView === false);-- // Expand bottom-up, so only the top node is animated- for(i = len - 1; i >= 0; i--){- // that.debug("pushexpand" + parents[i]);- deferreds.push(parents[i].setExpanded(true, opts));- }- $.when.apply($, deferreds).done(function(){- // All expands have finished- // that.debug("expand DONE", scroll);- if( scroll ){- that.scrollIntoView(effects).done(function(){- // that.debug("scroll DONE");- dfd.resolve();- });- } else {- dfd.resolve();- }- });- return dfd.promise();- },- /** Move this node to targetNode.- * @param {FancytreeNode} targetNode- * @param {string} mode <pre>- * 'child': append this node as last child of targetNode.- * This is the default. To be compatble with the D'n'd- * hitMode, we also accept 'over'.- * 'firstChild': add this node as first child of targetNode.- * 'before': add this node as sibling before targetNode.- * 'after': add this node as sibling after targetNode.</pre>- * @param {function} [map] optional callback(FancytreeNode) to allow modifcations- */- moveTo: function(targetNode, mode, map) {- if(mode === undefined || mode === "over"){- mode = "child";- } else if ( mode === "firstChild" ) {- if( targetNode.children && targetNode.children.length ) {- mode = "before";- targetNode = targetNode.children[0];- } else {- mode = "child";- }- }- var pos,- prevParent = this.parent,- targetParent = (mode === "child") ? targetNode : targetNode.parent;-- if(this === targetNode){- return;- }else if( !this.parent ){- $.error("Cannot move system root");- }else if( targetParent.isDescendantOf(this) ){- $.error("Cannot move a node to its own descendant");- }- if( targetParent !== prevParent ) {- prevParent.triggerModifyChild("remove", this);- }- // Unlink this node from current parent- if( this.parent.children.length === 1 ) {- if( this.parent === targetParent ){- return; // #258- }- this.parent.children = this.parent.lazy ? [] : null;- this.parent.expanded = false;- } else {- pos = $.inArray(this, this.parent.children);- _assert(pos >= 0, "invalid source parent");- this.parent.children.splice(pos, 1);- }- // Remove from source DOM parent-// if(this.parent.ul){-// this.parent.ul.removeChild(this.li);-// }-- // Insert this node to target parent's child list- this.parent = targetParent;- if( targetParent.hasChildren() ) {- switch(mode) {- case "child":- // Append to existing target children- targetParent.children.push(this);- break;- case "before":- // Insert this node before target node- pos = $.inArray(targetNode, targetParent.children);- _assert(pos >= 0, "invalid target parent");- targetParent.children.splice(pos, 0, this);- break;- case "after":- // Insert this node after target node- pos = $.inArray(targetNode, targetParent.children);- _assert(pos >= 0, "invalid target parent");- targetParent.children.splice(pos+1, 0, this);- break;- default:- $.error("Invalid mode " + mode);- }- } else {- targetParent.children = [ this ];- }- // Parent has no <ul> tag yet:-// if( !targetParent.ul ) {-// // This is the parent's first child: create UL tag-// // (Hidden, because it will be-// targetParent.ul = document.createElement("ul");-// targetParent.ul.style.display = "none";-// targetParent.li.appendChild(targetParent.ul);-// }-// // Issue 319: Add to target DOM parent (only if node was already rendered(expanded))-// if(this.li){-// targetParent.ul.appendChild(this.li);-// }^-- // Let caller modify the nodes- if( map ){- targetNode.visit(map, true);- }- if( targetParent === prevParent ) {- targetParent.triggerModifyChild("move", this);- } else {- // prevParent.triggerModifyChild("remove", this);- targetParent.triggerModifyChild("add", this);- }- // Handle cross-tree moves- if( this.tree !== targetNode.tree ) {- // Fix node.tree for all source nodes-// _assert(false, "Cross-tree move is not yet implemented.");- this.warn("Cross-tree moveTo is experimantal!");- this.visit(function(n){- // TODO: fix selection state and activation, ...- n.tree = targetNode.tree;- }, true);- }-- // A collaposed node won't re-render children, so we have to remove it manually- // if( !targetParent.expanded ){- // prevParent.ul.removeChild(this.li);- // }-- // Update HTML markup- if( !prevParent.isDescendantOf(targetParent)) {- prevParent.render();- }- if( !targetParent.isDescendantOf(prevParent) && targetParent !== prevParent) {- targetParent.render();- }- // TODO: fix selection state- // TODO: fix active state--/*- var tree = this.tree;- var opts = tree.options;- var pers = tree.persistence;--- // Always expand, if it's below minExpandLevel-// tree.logDebug ("%s._addChildNode(%o), l=%o", this, ftnode, ftnode.getLevel());- if ( opts.minExpandLevel >= ftnode.getLevel() ) {-// tree.logDebug ("Force expand for %o", ftnode);- this.bExpanded = true;- }-- // In multi-hier mode, update the parents selection state- // DT issue #82: only if not initializing, because the children may not exist yet-// if( !ftnode.data.isStatusNode() && opts.selectMode==3 && !isInitializing )-// ftnode._fixSelectionState();-- // In multi-hier mode, update the parents selection state- if( ftnode.bSelected && opts.selectMode==3 ) {- var p = this;- while( p ) {- if( !p.hasSubSel )- p._setSubSel(true);- p = p.parent;- }- }- // render this node and the new child- if ( tree.bEnableUpdate )- this.render();-- return ftnode;--*/- },- /** Set focus relative to this node and optionally activate.- *- * @param {number} where The keyCode that would normally trigger this move,- * e.g. `$.ui.keyCode.LEFT` would collapse the node if it- * is expanded or move to the parent oterwise.- * @param {boolean} [activate=true]- * @returns {$.Promise}- */- navigate: function(where, activate) {- var i, parents, res,- handled = true,- KC = $.ui.keyCode,- sib = null;-- // Navigate to node- function _goto(n){- if( n ){- // setFocus/setActive will scroll later (if autoScroll is specified)- try { n.makeVisible({scrollIntoView: false}); } catch(e) {} // #272- // Node may still be hidden by a filter- if( ! $(n.span).is(":visible") ) {- n.debug("Navigate: skipping hidden node");- n.navigate(where, activate);- return;- }- return activate === false ? n.setFocus() : n.setActive();- }- }-- switch( where ) {- case KC.BACKSPACE:- if( this.parent && this.parent.parent ) {- res = _goto(this.parent);- }- break;- case KC.HOME:- this.tree.visit(function(n){ // goto first visible node- if( $(n.span).is(":visible") ) {- res = _goto(n);- return false;- }- });- break;- case KC.END:- this.tree.visit(function(n){ // goto last visible node- if( $(n.span).is(":visible") ) {- res = n;- }- });- if( res ) {- res = _goto(res);- }- break;- case KC.LEFT:- if( this.expanded ) {- this.setExpanded(false);- res = _goto(this);- } else if( this.parent && this.parent.parent ) {- res = _goto(this.parent);- }- break;- case KC.RIGHT:- if( !this.expanded && (this.children || this.lazy) ) {- this.setExpanded();- res = _goto(this);- } else if( this.children && this.children.length ) {- res = _goto(this.children[0]);- }- break;- case KC.UP:- sib = this.getPrevSibling();- // #359: skip hidden sibling nodes, preventing a _goto() recursion- while( sib && !$(sib.span).is(":visible") ) {- sib = sib.getPrevSibling();- }- while( sib && sib.expanded && sib.children && sib.children.length ) {- sib = sib.children[sib.children.length - 1];- }- if( !sib && this.parent && this.parent.parent ){- sib = this.parent;- }- res = _goto(sib);- break;- case KC.DOWN:- if( this.expanded && this.children && this.children.length ) {- sib = this.children[0];- } else {- parents = this.getParentList(false, true);- for(i=parents.length-1; i>=0; i--) {- sib = parents[i].getNextSibling();- // #359: skip hidden sibling nodes, preventing a _goto() recursion- while( sib && !$(sib.span).is(":visible") ) {- sib = sib.getNextSibling();- }- if( sib ){ break; }- }- }- res = _goto(sib);- break;- default:- handled = false;- }- return res || _getResolvedPromise();- },- /**- * Remove this node (not allowed for system root).- */- remove: function() {- return this.parent.removeChild(this);- },- /**- * Remove childNode from list of direct children.- * @param {FancytreeNode} childNode- */- removeChild: function(childNode) {- return this.tree._callHook("nodeRemoveChild", this, childNode);- },- /**- * Remove all child nodes and descendents. This converts the node into a leaf.<br>- * If this was a lazy node, it is still considered 'loaded'; call node.resetLazy()- * in order to trigger lazyLoad on next expand.- */- removeChildren: function() {- return this.tree._callHook("nodeRemoveChildren", this);- },- /**- * Remove class from node's span tag and .extraClasses.- *- * @param {string} className class name- *- * @since 2.17- */- removeClass: function(className){- return this.toggleClass(className, false);- },- /**- * This method renders and updates all HTML markup that is required- * to display this node in its current state.<br>- * Note:- * <ul>- * <li>It should only be neccessary to call this method after the node object- * was modified by direct access to its properties, because the common- * API methods (node.setTitle(), moveTo(), addChildren(), remove(), ...)- * already handle this.- * <li> {@link FancytreeNode#renderTitle} and {@link FancytreeNode#renderStatus}- * are implied. If changes are more local, calling only renderTitle() or- * renderStatus() may be sufficient and faster.- * </ul>- *- * @param {boolean} [force=false] re-render, even if html markup was already created- * @param {boolean} [deep=false] also render all descendants, even if parent is collapsed- */- render: function(force, deep) {- return this.tree._callHook("nodeRender", this, force, deep);- },- /** Create HTML markup for the node's outer <span> (expander, checkbox, icon, and title).- * Implies {@link FancytreeNode#renderStatus}.- * @see Fancytree_Hooks#nodeRenderTitle- */- renderTitle: function() {- return this.tree._callHook("nodeRenderTitle", this);- },- /** Update element's CSS classes according to node state.- * @see Fancytree_Hooks#nodeRenderStatus- */- renderStatus: function() {- return this.tree._callHook("nodeRenderStatus", this);- },- /**- * (experimental) Replace this node with `source`.- * (Currently only available for paging nodes.)- * @param {NodeData[]} source List of child node definitions- * @since 2.15- */- replaceWith: function(source) {- var res,- parent = this.parent,- pos = $.inArray(this, parent.children),- that = this;-- _assert( this.isPagingNode(), "replaceWith() currently requires a paging status node" );-- res = this.tree._callHook("nodeLoadChildren", this, source);- res.done(function(data){- // New nodes are currently children of `this`.- var children = that.children;- // Prepend newly loaded child nodes to `this`- // Move new children after self- for( i=0; i<children.length; i++ ) {- children[i].parent = parent;- }- parent.children.splice.apply(parent.children, [pos + 1, 0].concat(children));-- // Remove self- that.children = null;- that.remove();- // Redraw new nodes- parent.render();- // TODO: set node.partload = false if this was tha last paging node?- // parent.addPagingNode(false);- }).fail(function(){- that.setExpanded();- });- return res;- // $.error("Not implemented: replaceWith()");- },- /**- * Remove all children, collapse, and set the lazy-flag, so that the lazyLoad- * event is triggered on next expand.- */- resetLazy: function() {- this.removeChildren();- this.expanded = false;- this.lazy = true;- this.children = undefined;- this.renderStatus();- },- /** Schedule activity for delayed execution (cancel any pending request).- * scheduleAction('cancel') will only cancel a pending request (if any).- * @param {string} mode- * @param {number} ms- */- scheduleAction: function(mode, ms) {- if( this.tree.timer ) {- clearTimeout(this.tree.timer);-// this.tree.debug("clearTimeout(%o)", this.tree.timer);- }- this.tree.timer = null;- var self = this; // required for closures- switch (mode) {- case "cancel":- // Simply made sure that timer was cleared- break;- case "expand":- this.tree.timer = setTimeout(function(){- self.tree.debug("setTimeout: trigger expand");- self.setExpanded(true);- }, ms);- break;- case "activate":- this.tree.timer = setTimeout(function(){- self.tree.debug("setTimeout: trigger activate");- self.setActive(true);- }, ms);- break;- default:- $.error("Invalid mode " + mode);- }-// this.tree.debug("setTimeout(%s, %s): %s", mode, ms, this.tree.timer);- },- /**- *- * @param {boolean | PlainObject} [effects=false] animation options.- * @param {object} [options=null] {topNode: null, effects: ..., parent: ...} this node will remain visible in- * any case, even if `this` is outside the scroll pane.- * @returns {$.Promise}- */- scrollIntoView: function(effects, options) {- if( options !== undefined && _isNode(options) ) {- this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead.");- options = {topNode: options};- }- // this.$scrollParent = (this.options.scrollParent === "auto") ? $ul.scrollParent() : $(this.options.scrollParent);- // this.$scrollParent = this.$scrollParent.length ? this.$scrollParent || this.$container;-- var topNodeY, nodeY, horzScrollbarHeight, containerOffsetTop,- opts = $.extend({- effects: (effects === true) ? {duration: 200, queue: false} : effects,- scrollOfs: this.tree.options.scrollOfs,- scrollParent: this.tree.options.scrollParent || this.tree.$container,- topNode: null- }, options),- dfd = new $.Deferred(),- that = this,- nodeHeight = $(this.span).height(),- $container = $(opts.scrollParent),- topOfs = opts.scrollOfs.top || 0,- bottomOfs = opts.scrollOfs.bottom || 0,- containerHeight = $container.height(),// - topOfs - bottomOfs,- scrollTop = $container.scrollTop(),- $animateTarget = $container,- isParentWindow = $container[0] === window,- topNode = opts.topNode || null,- newScrollTop = null;-- // this.debug("scrollIntoView(), scrollTop=" + scrollTop, opts.scrollOfs);-// _assert($(this.span).is(":visible"), "scrollIntoView node is invisible"); // otherwise we cannot calc offsets- if( !$(this.span).is(":visible") ) {- // We cannot calc offsets for hidden elements- this.warn("scrollIntoView(): node is invisible.");- return _getResolvedPromise();- }- if( isParentWindow ) {- nodeY = $(this.span).offset().top;- topNodeY = (topNode && topNode.span) ? $(topNode.span).offset().top : 0;- $animateTarget = $("html,body");-- } else {- _assert($container[0] !== document && $container[0] !== document.body,- "scrollParent should be a simple element or `window`, not document or body.");-- containerOffsetTop = $container.offset().top,- nodeY = $(this.span).offset().top - containerOffsetTop + scrollTop; // relative to scroll parent- topNodeY = topNode ? $(topNode.span).offset().top - containerOffsetTop + scrollTop : 0;- horzScrollbarHeight = Math.max(0, ($container.innerHeight() - $container[0].clientHeight));- containerHeight -= horzScrollbarHeight;- }-- // this.debug(" scrollIntoView(), nodeY=" + nodeY + ", containerHeight=" + containerHeight);- if( nodeY < (scrollTop + topOfs) ){- // Node is above visible container area- newScrollTop = nodeY - topOfs;- // this.debug(" scrollIntoView(), UPPER newScrollTop=" + newScrollTop);-- }else if((nodeY + nodeHeight) > (scrollTop + containerHeight - bottomOfs)){- newScrollTop = nodeY + nodeHeight - containerHeight + bottomOfs;- // this.debug(" scrollIntoView(), LOWER newScrollTop=" + newScrollTop);- // If a topNode was passed, make sure that it is never scrolled- // outside the upper border- if(topNode){- _assert(topNode.isRootNode() || $(topNode.span).is(":visible"), "topNode must be visible");- if( topNodeY < newScrollTop ){- newScrollTop = topNodeY - topOfs;- // this.debug(" scrollIntoView(), TOP newScrollTop=" + newScrollTop);- }- }- }-- if(newScrollTop !== null){- // this.debug(" scrollIntoView(), SET newScrollTop=" + newScrollTop);- if(opts.effects){- opts.effects.complete = function(){- dfd.resolveWith(that);- };- $animateTarget.stop(true).animate({- scrollTop: newScrollTop- }, opts.effects);- }else{- $animateTarget[0].scrollTop = newScrollTop;- dfd.resolveWith(this);- }- }else{- dfd.resolveWith(this);- }- return dfd.promise();- },-- /**Activate this node.- * @param {boolean} [flag=true] pass false to deactivate- * @param {object} [opts] additional options. Defaults to {noEvents: false, noFocus: false}- * @returns {$.Promise}- */- setActive: function(flag, opts){- return this.tree._callHook("nodeSetActive", this, flag, opts);- },- /**Expand or collapse this node. Promise is resolved, when lazy loading and animations are done.- * @param {boolean} [flag=true] pass false to collapse- * @param {object} [opts] additional options. Defaults to {noAnimation: false, noEvents: false}- * @returns {$.Promise}- */- setExpanded: function(flag, opts){- return this.tree._callHook("nodeSetExpanded", this, flag, opts);- },- /**Set keyboard focus to this node.- * @param {boolean} [flag=true] pass false to blur- * @see Fancytree#setFocus- */- setFocus: function(flag){- return this.tree._callHook("nodeSetFocus", this, flag);- },- /**Select this node, i.e. check the checkbox.- * @param {boolean} [flag=true] pass false to deselect- * @param {object} [opts] additional options. Defaults to {noEvents: false, p- * propagateDown: null, propagateUp: null, callback: null }- */- setSelected: function(flag, opts){- return this.tree._callHook("nodeSetSelected", this, flag, opts);- },- /**Mark a lazy node as 'error', 'loading', 'nodata', or 'ok'.- * @param {string} status 'error'|'empty'|'ok'- * @param {string} [message]- * @param {string} [details]- */- setStatus: function(status, message, details){- return this.tree._callHook("nodeSetStatus", this, status, message, details);- },- /**Rename this node.- * @param {string} title- */- setTitle: function(title){- this.title = title;- this.renderTitle();- this.triggerModify("rename");- },- /**Sort child list by title.- * @param {function} [cmp] custom compare function(a, b) that returns -1, 0, or 1 (defaults to sort by title).- * @param {boolean} [deep=false] pass true to sort all descendant nodes- */- sortChildren: function(cmp, deep) {- var i,l,- cl = this.children;-- if( !cl ){- return;- }- cmp = cmp || function(a, b) {- var x = a.title.toLowerCase(),- y = b.title.toLowerCase();- return x === y ? 0 : x > y ? 1 : -1;- };- cl.sort(cmp);- if( deep ){- for(i=0, l=cl.length; i<l; i++){- if( cl[i].children ){- cl[i].sortChildren(cmp, "$norender$");- }- }- }- if( deep !== "$norender$" ){- this.render();- }- this.triggerModifyChild("sort");- },- /** Convert node (or whole branch) into a plain object.- *- * The result is compatible with node.addChildren().- *- * @param {boolean} [recursive=false] include child nodes- * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications- * @returns {NodeData}- */- toDict: function(recursive, callback) {- var i, l, node,- dict = {},- self = this;-- $.each(NODE_ATTRS, function(i, a){- if(self[a] || self[a] === false){- dict[a] = self[a];- }- });- if(!$.isEmptyObject(this.data)){- dict.data = $.extend({}, this.data);- if($.isEmptyObject(dict.data)){- delete dict.data;- }- }- if( callback ){- callback(dict, self);- }- if( recursive ) {- if(this.hasChildren()){- dict.children = [];- for(i=0, l=this.children.length; i<l; i++ ){- node = this.children[i];- if( !node.isStatusNode() ){- dict.children.push(node.toDict(true, callback));- }- }- }else{-// dict.children = null;- }- }- return dict;- },- /**- * Set, clear, or toggle class of node's span tag and .extraClasses.- *- * @param {string} className class name (separate multiple classes by space)- * @param {boolean} [flag] true/false to add/remove class. If omitted, class is toggled.- * @returns {boolean} true if a class was added- *- * @since 2.17- */- toggleClass: function(value, flag){- var className, hasClass,- rnotwhite = ( /\S+/g ),- classNames = value.match( rnotwhite ) || [],- i = 0,- wasAdded = false,- statusElem = this[this.tree.statusClassPropName],- curClasses = (" " + (this.extraClasses || "") + " ");-- // this.info("toggleClass('" + value + "', " + flag + ")", curClasses);- // Modify DOM element directly if it already exists- if( statusElem ) {- $(statusElem).toggleClass(value, flag);- }- // Modify node.extraClasses to make this change persistent- // Toggle if flag was not passed- while ( className = classNames[ i++ ] ) {- hasClass = curClasses.indexOf(" " + className + " ") >= 0;- flag = (flag === undefined) ? (!hasClass) : !!flag;- if ( flag ) {- if( !hasClass ) {- curClasses += className + " ";- wasAdded = true;- }- } else {- while ( curClasses.indexOf( " " + className + " " ) > -1 ) {- curClasses = curClasses.replace( " " + className + " ", " " );- }- }- }- this.extraClasses = $.trim(curClasses);- // this.info("-> toggleClass('" + value + "', " + flag + "): '" + this.extraClasses + "'");- return wasAdded;- },- /** Flip expanded status. */- toggleExpanded: function(){- return this.tree._callHook("nodeToggleExpanded", this);- },- /** Flip selection status. */- toggleSelected: function(){- return this.tree._callHook("nodeToggleSelected", this);- },- toString: function() {- return "<FancytreeNode(#" + this.key + ", '" + this.title + "')>";- },- /**- * Trigger `modifyChild` event on a parent to signal that a child was modified.- * @param {string} operation Type of change: 'add', 'remove', 'rename', 'move', 'data', ...- * @param {FancytreeNode} [childNode]- * @param {object} [extra]- */- triggerModifyChild: function(operation, childNode, extra){- var data,- modifyChild = this.tree.options.modifyChild;-- if ( modifyChild ){- if( childNode && childNode.parent !== this ) {- $.error("childNode " + childNode + " is not a child of " + this);- }- data = {- node: this,- tree: this.tree,- operation: operation,- childNode: childNode || null- };- if( extra ) {- $.extend(data, extra);- }- modifyChild({type: "modifyChild"}, data);- }- },- /**- * Trigger `modifyChild` event on node.parent(!).- * @param {string} operation Type of change: 'add', 'remove', 'rename', 'move', 'data', ...- * @param {object} [extra]- */- triggerModify: function(operation, extra){- this.parent.triggerModifyChild(operation, this, extra);- },- /** Call fn(node) for all child nodes.<br>- * Stop iteration, if fn() returns false. Skip current branch, if fn() returns "skip".<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and- * its children only.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visit: function(fn, includeSelf) {- var i, l,- res = true,- children = this.children;-- if( includeSelf === true ) {- res = fn(this);- if( res === false || res === "skip" ){- return res;- }- }- if(children){- for(i=0, l=children.length; i<l; i++){- res = children[i].visit(fn, true);- if( res === false ){- break;- }- }- }- return res;- },- /** Call fn(node) for all child nodes and recursively load lazy children.<br>- * <b>Note:</b> If you need this method, you probably should consider to review- * your architecture! Recursivley loading nodes is a perfect way for lazy- * programmers to flood the server with requests ;-)- *- * @param {function} [fn] optional callback function.- * Return false to stop iteration, return "skip" to skip this node and- * its children only.- * @param {boolean} [includeSelf=false]- * @returns {$.Promise}- * @since 2.4- */- visitAndLoad: function(fn, includeSelf, _recursion) {- var dfd, res, loaders,- node = this;-- // node.debug("visitAndLoad");- if( fn && includeSelf === true ) {- res = fn(node);- if( res === false || res === "skip" ) {- return _recursion ? res : _getResolvedPromise();- }- }- if( !node.children && !node.lazy ) {- return _getResolvedPromise();- }- dfd = new $.Deferred();- loaders = [];- // node.debug("load()...");- node.load().done(function(){- // node.debug("load()... done.");- for(var i=0, l=node.children.length; i<l; i++){- res = node.children[i].visitAndLoad(fn, true, true);- if( res === false ) {- dfd.reject();- break;- } else if ( res !== "skip" ) {- loaders.push(res); // Add promise to the list- }- }- $.when.apply(this, loaders).then(function(){- dfd.resolve();- });- });- return dfd.promise();- },- /** Call fn(node) for all parent nodes, bottom-up, including invisible system root.<br>- * Stop iteration, if fn() returns false.<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and children only.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visitParents: function(fn, includeSelf) {- // Visit parent nodes (bottom up)- if(includeSelf && fn(this) === false){- return false;- }- var p = this.parent;- while( p ) {- if(fn(p) === false){- return false;- }- p = p.parent;- }- return true;- },- /** Call fn(node) for all sibling nodes.<br>- * Stop iteration, if fn() returns false.<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visitSiblings: function(fn, includeSelf) {- var i, l, n,- ac = this.parent.children;-- for (i=0, l=ac.length; i<l; i++) {- n = ac[i];- if ( includeSelf || n !== this ){- if( fn(n) === false ) {- return false;- }- }- }- return true;- },- /** Write warning to browser console (prepending node info)- *- * @param {*} msg string or object or array of such- */- warn: function(msg){- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("warn", arguments);- }-};---/* *****************************************************************************- * Fancytree- */-/**- * Construct a new tree object.- *- * @class Fancytree- * @classdesc The controller behind a fancytree.- * This class also contains 'hook methods': see {@link Fancytree_Hooks}.- *- * @param {Widget} widget- *- * @property {string} _id Automatically generated unique tree instance ID, e.g. "1".- * @property {string} _ns Automatically generated unique tree namespace, e.g. ".fancytree-1".- * @property {FancytreeNode} activeNode Currently active node or null.- * @property {string} ariaPropName Property name of FancytreeNode that contains the element which will receive the aria attributes.- * Typically "li", but "tr" for table extension.- * @property {jQueryObject} $container Outer <ul> element (or <table> element for ext-table).- * @property {jQueryObject} $div A jQuery object containing the element used to instantiate the tree widget (`widget.element`)- * @property {object} data Metadata, i.e. properties that may be passed to `source` in addition to a children array.- * @property {object} ext Hash of all active plugin instances.- * @property {FancytreeNode} focusNode Currently focused node or null.- * @property {FancytreeNode} lastSelectedNode Used to implement selectMode 1 (single select)- * @property {string} nodeContainerAttrName Property name of FancytreeNode that contains the outer element of single nodes.- * Typically "li", but "tr" for table extension.- * @property {FancytreeOptions} options Current options, i.e. default options + options passed to constructor.- * @property {FancytreeNode} rootNode Invisible system root node.- * @property {string} statusClassPropName Property name of FancytreeNode that contains the element which will receive the status classes.- * Typically "span", but "tr" for table extension.- * @property {object} widget Base widget instance.- */-function Fancytree(widget) {- this.widget = widget;- this.$div = widget.element;- this.options = widget.options;- if( this.options ) {- if( $.isFunction(this.options.lazyload ) && !$.isFunction(this.options.lazyLoad) ) {- this.options.lazyLoad = function() {- FT.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead.");- return widget.options.lazyload.apply(this, arguments);- };- }- if( $.isFunction(this.options.loaderror) ) {- $.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead.");- }- if( this.options.fx !== undefined ) {- FT.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30.");- }- if( this.options.removeNode !== undefined ) {- $.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).");- }- }- this.ext = {}; // Active extension instances- // allow to init tree.data.foo from <div data-foo=''>- this.data = _getElementDataAsDict(this.$div);- // TODO: use widget.uuid instead?- this._id = $.ui.fancytree._nextId++;- // TODO: use widget.eventNamespace instead?- this._ns = ".fancytree-" + this._id; // append for namespaced events- this.activeNode = null;- this.focusNode = null;- this._hasFocus = null;- this._enableUpdate = true;- // this._dirtyRoots = null;- this.lastSelectedNode = null;- this.systemFocusElement = null;- this.lastQuicksearchTerm = "";- this.lastQuicksearchTime = 0;-- this.statusClassPropName = "span";- this.ariaPropName = "li";- this.nodeContainerAttrName = "li";-- // Remove previous markup if any- this.$div.find(">ul.fancytree-container").remove();-- // Create a node without parent.- var fakeParent = { tree: this },- $ul;- this.rootNode = new FancytreeNode(fakeParent, {- title: "root",- key: "root_" + this._id,- children: null,- expanded: true- });- this.rootNode.parent = null;-- // Create root markup- $ul = $("<ul>", {- "class": "ui-fancytree fancytree-container fancytree-plain"- }).appendTo(this.$div);- this.$container = $ul;- this.rootNode.ul = $ul[0];-- if(this.options.debugLevel == null){- this.options.debugLevel = FT.debugLevel;- }- // // Add container to the TAB chain- // // See http://www.w3.org/TR/wai-aria-practices/#focus_activedescendant- // // #577: Allow to set tabindex to "0", "-1" and ""- // this.$container.attr("tabindex", this.options.tabindex);-- // if( this.options.rtl ) {- // this.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- // // }else{- // // this.$container.attr("DIR", null).removeClass("fancytree-rtl");- // }- // if(this.options.aria){- // this.$container.attr("role", "tree");- // if( this.options.selectMode !== 1 ) {- // this.$container.attr("aria-multiselectable", true);- // }- // }-}---Fancytree.prototype = /** @lends Fancytree# */{- /* Return a context object that can be re-used for _callHook().- * @param {Fancytree | FancytreeNode | EventData} obj- * @param {Event} originalEvent- * @param {Object} extra- * @returns {EventData}- */- _makeHookContext: function(obj, originalEvent, extra) {- var ctx, tree;- if(obj.node !== undefined){- // obj is already a context object- if(originalEvent && obj.originalEvent !== originalEvent){- $.error("invalid args");- }- ctx = obj;- }else if(obj.tree){- // obj is a FancytreeNode- tree = obj.tree;- ctx = { node: obj, tree: tree, widget: tree.widget, options: tree.widget.options, originalEvent: originalEvent };- }else if(obj.widget){- // obj is a Fancytree- ctx = { node: null, tree: obj, widget: obj.widget, options: obj.widget.options, originalEvent: originalEvent };- }else{- $.error("invalid args");- }- if(extra){- $.extend(ctx, extra);- }- return ctx;- },- /* Trigger a hook function: funcName(ctx, [...]).- *- * @param {string} funcName- * @param {Fancytree|FancytreeNode|EventData} contextObject- * @param {any} [_extraArgs] optional additional arguments- * @returns {any}- */- _callHook: function(funcName, contextObject, _extraArgs) {- var ctx = this._makeHookContext(contextObject),- fn = this[funcName],- args = Array.prototype.slice.call(arguments, 2);- if(!$.isFunction(fn)){- $.error("_callHook('" + funcName + "') is not a function");- }- args.unshift(ctx);-// this.debug("_hook", funcName, ctx.node && ctx.node.toString() || ctx.tree.toString(), args);- return fn.apply(this, args);- },- /* Check if current extensions dependencies are met and throw an error if not.- *- * This method may be called inside the `treeInit` hook for custom extensions.- *- * @param {string} extension name of the required extension- * @param {boolean} [required=true] pass `false` if the extension is optional, but we want to check for order if it is present- * @param {boolean} [before] `true` if `name` must be included before this, `false` otherwise (use `null` if order doesn't matter)- * @param {string} [message] optional error message (defaults to a descriptve error message)- */- _requireExtension: function(name, required, before, message) {- before = !!before;- var thisName = this._local.name,- extList = this.options.extensions,- isBefore = $.inArray(name, extList) < $.inArray(thisName, extList),- isMissing = required && this.ext[name] == null,- badOrder = !isMissing && before != null && (before !== isBefore);-- _assert(thisName && thisName !== name, "invalid or same name");-- if( isMissing || badOrder ){- if( !message ){- if( isMissing || required ){- message = "'" + thisName + "' extension requires '" + name + "'";- if( badOrder ){- message += " to be registered " + (before ? "before" : "after") + " itself";- }- }else{- message = "If used together, `" + name + "` must be registered " + (before ? "before" : "after") + " `" + thisName + "`";- }- }- $.error(message);- return false;- }- return true;- },- /** Activate node with a given key and fire focus and activate events.- *- * A prevously activated node will be deactivated.- * If activeVisible option is set, all parents will be expanded as necessary.- * Pass key = false, to deactivate the current node only.- * @param {string} key- * @returns {FancytreeNode} activated node (null, if not found)- */- activateKey: function(key) {- var node = this.getNodeByKey(key);- if(node){- node.setActive();- }else if(this.activeNode){- this.activeNode.setActive(false);- }- return node;- },- /** (experimental) Add child status nodes that indicate 'More...', ....- * @param {boolean|object} node optional node definition. Pass `false` to remove all paging nodes.- * @param {string} [mode='append'] 'child'|firstChild'- * @since 2.15- */- addPagingNode: function(node, mode){- return this.rootNode.addPagingNode(node, mode);- },- /** (experimental) Modify existing data model.- *- * @param {Array} patchList array of [key, NodePatch] arrays- * @returns {$.Promise} resolved, when all patches have been applied- * @see TreePatch- */- applyPatch: function(patchList) {- var dfd, i, p2, key, patch, node,- patchCount = patchList.length,- deferredList = [];-- for(i=0; i<patchCount; i++){- p2 = patchList[i];- _assert(p2.length === 2, "patchList must be an array of length-2-arrays");- key = p2[0];- patch = p2[1];- node = (key === null) ? this.rootNode : this.getNodeByKey(key);- if(node){- dfd = new $.Deferred();- deferredList.push(dfd);- node.applyPatch(patch).always(_makeResolveFunc(dfd, node));- }else{- this.warn("could not find node with key '" + key + "'");- }- }- // Return a promise that is resolved, when ALL patches were applied- return $.when.apply($, deferredList).promise();- },- /* TODO: implement in dnd extension- cancelDrag: function() {- var dd = $.ui.ddmanager.current;- if(dd){- dd.cancel();- }- },- */- /** Remove all nodes.- * @since 2.14- */- clear: function(source) {- this._callHook("treeClear", this);- },- /** Return the number of nodes.- * @returns {integer}- */- count: function() {- return this.rootNode.countChildren();- },- /** Write to browser console if debugLevel >= 2 (prepending tree name)- *- * @param {*} msg string or object or array of such- */- debug: function(msg){- if( this.options.debugLevel >= 2 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("log", arguments);- }- },- // TODO: disable()- // TODO: enable()- /** Temporarily suppress rendering to improve performance on bulk-updates.- *- * @param {boolean} flag- * @returns {boolean} previous status- * @since 2.19- */- enableUpdate: function(flag) {- flag = ( flag !== false );- /*jshint -W018 */ // Confusing use of '!'- if ( !!this._enableUpdate === !!flag ) {- return flag;- }- /*jshint +W018 */- this._enableUpdate = flag;- if ( flag ) {- this.debug("enableUpdate(true): redraw "); //, this._dirtyRoots);- this.render();- } else {- // this._dirtyRoots = null;- this.debug("enableUpdate(false)...");- }- return !flag; // return previous value- },- /**Find all nodes that matches condition.- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode[]} array of nodes (may be empty)- * @see FancytreeNode#findAll- * @since 2.12- */- findAll: function(match) {- return this.rootNode.findAll(match);- },- /**Find first node that matches condition.- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode} matching node or null- * @see FancytreeNode#findFirst- * @since 2.12- */- findFirst: function(match) {- return this.rootNode.findFirst(match);- },- /** Find the next visible node that starts with `match`, starting at `startNode`- * and wrap-around at the end.- *- * @param {string|function} match- * @param {FancytreeNode} [startNode] defaults to first node- * @returns {FancytreeNode} matching node or null- */- findNextNode: function(match, startNode, visibleOnly) {- var stopNode = null,- parentChildren = startNode.parent.children,- matchingNode = null,- walkVisible = function(parent, idx, fn) {- var i, grandParent,- parentChildren = parent.children,- siblingCount = parentChildren.length,- node = parentChildren[idx];- // visit node itself- if( node && fn(node) === false ) {- return false;- }- // visit descendants- if( node && node.children && node.expanded ) {- if( walkVisible(node, 0, fn) === false ) {- return false;- }- }- // visit subsequent siblings- for( i = idx + 1; i < siblingCount; i++ ) {- if( walkVisible(parent, i, fn) === false ) {- return false;- }- }- // visit parent's subsequent siblings- grandParent = parent.parent;- if( grandParent ) {- return walkVisible(grandParent, grandParent.children.indexOf(parent) + 1, fn);- } else {- // wrap-around: restart with first node- return walkVisible(parent, 0, fn);- }- };-- match = (typeof match === "string") ? _makeNodeTitleStartMatcher(match) : match;- startNode = startNode || this.getFirstChild();-- walkVisible(startNode.parent, parentChildren.indexOf(startNode), function(node){- // Stop iteration if we see the start node a second time- if( node === stopNode ) {- return false;- }- stopNode = stopNode || node;- // Ignore nodes hidden by a filter- if( ! $(node.span).is(":visible") ) {- node.debug("quicksearch: skipping hidden node");- return;- }- // Test if we found a match, but search for a second match if this- // was the currently active node- if( match(node) ) {- // node.debug("quicksearch match " + node.title, startNode);- matchingNode = node;- if( matchingNode !== startNode ) {- return false;- }- }- });- return matchingNode;- },- // TODO: fromDict- /**- * Generate INPUT elements that can be submitted with html forms.- *- * In selectMode 3 only the topmost selected nodes are considered, unless- * `opts.stopOnParents: false` is passed.- *- * @example- * // Generate input elements for active and selected nodes- * tree.generateFormElements();- * // Generate input elements selected nodes, using a custom `name` attribute- * tree.generateFormElements("cust_sel", false);- * // Generate input elements using a custom filter- * tree.generateFormElements(true, true, { filter: function(node) {- * return node.isSelected() && node.data.yes;- * }});- *- * @param {boolean | string} [selected=true] Pass false to disable, pass a string to override the field name (default: 'ft_ID[]')- * @param {boolean | string} [active=true] Pass false to disable, pass a string to override the field name (default: 'ft_ID_active')- * @param {object} [opts] default { filter: null, stopOnParents: true }- */- generateFormElements: function(selected, active, opts) {- opts = opts || {};-- var nodeList,- selectedName = (typeof selected === "string") ? selected : "ft_" + this._id + "[]",- activeName = (typeof active === "string") ? active : "ft_" + this._id + "_active",- id = "fancytree_result_" + this._id,- $result = $("#" + id),- stopOnParents = this.options.selectMode === 3 && opts.stopOnParents !== false;-- if($result.length){- $result.empty();- }else{- $result = $("<div>", {- id: id- }).hide().insertAfter(this.$container);- }- if(active !== false && this.activeNode){- $result.append($("<input>", {- type: "radio",- name: activeName,- value: this.activeNode.key,- checked: true- }));- }- function _appender( node ) {- $result.append($("<input>", {- type: "checkbox",- name: selectedName,- value: node.key,- checked: true- }));- }- if ( opts.filter ) {- this.visit(function(node) {- var res = opts.filter(node);- if( res === "skip" ) { return res; }- if ( res !== false ) {- _appender(node);- }- });- } else if ( selected !== false ) {- nodeList = this.getSelectedNodes(stopOnParents);- $.each(nodeList, function(idx, node) {- _appender(node);- });- }- },- /**- * Return the currently active node or null.- * @returns {FancytreeNode}- */- getActiveNode: function() {- return this.activeNode;- },- /** Return the first top level node if any (not the invisible root node).- * @returns {FancytreeNode | null}- */- getFirstChild: function() {- return this.rootNode.getFirstChild();- },- /**- * Return node that has keyboard focus or null.- * @returns {FancytreeNode}- */- getFocusNode: function() {- return this.focusNode;- },- /**- * Return node with a given key or null if not found.- * @param {string} key- * @param {FancytreeNode} [searchRoot] only search below this node- * @returns {FancytreeNode | null}- */- getNodeByKey: function(key, searchRoot) {- // Search the DOM by element ID (assuming this is faster than traversing all nodes).- // $("#...") has problems, if the key contains '.', so we use getElementById()- var el, match;- if(!searchRoot){- el = document.getElementById(this.options.idPrefix + key);- if( el ){- return el.ftnode ? el.ftnode : null;- }- }- // Not found in the DOM, but still may be in an unrendered part of tree- // TODO: optimize with specialized loop- // TODO: consider keyMap?- searchRoot = searchRoot || this.rootNode;- match = null;- searchRoot.visit(function(node){-// window.console.log("getNodeByKey(" + key + "): ", node.key);- if(node.key === key) {- match = node;- return false;- }- }, true);- return match;- },- /** Return the invisible system root node.- * @returns {FancytreeNode}- */- getRootNode: function() {- return this.rootNode;- },- /**- * Return an array of selected nodes.- * @param {boolean} [stopOnParents=false] only return the topmost selected- * node (useful with selectMode 3)- * @returns {FancytreeNode[]}- */- getSelectedNodes: function(stopOnParents) {- return this.rootNode.getSelectedNodes(stopOnParents);- },- /** Return true if the tree control has keyboard focus- * @returns {boolean}- */- hasFocus: function(){- return !!this._hasFocus;- },- /** Write to browser console if debugLevel >= 1 (prepending tree name)- * @param {*} msg string or object or array of such- */- info: function(msg){- if( this.options.debugLevel >= 1 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("info", arguments);- }- },-/*- TODO: isInitializing: function() {- return ( this.phase=="init" || this.phase=="postInit" );- },- TODO: isReloading: function() {- return ( this.phase=="init" || this.phase=="postInit" ) && this.options.persist && this.persistence.cookiesFound;- },- TODO: isUserEvent: function() {- return ( this.phase=="userEvent" );- },-*/-- /**- * Make sure that a node with a given ID is loaded, by traversing - and- * loading - its parents. This method is ment for lazy hierarchies.- * A callback is executed for every node as we go.- * @example- * tree.loadKeyPath("/_3/_23/_26/_27", function(node, status){- * if(status === "loaded") {- * console.log("loaded intermiediate node " + node);- * }else if(status === "ok") {- * node.activate();- * }- * });- *- * @param {string | string[]} keyPathList one or more key paths (e.g. '/3/2_1/7')- * @param {function} callback callback(node, status) is called for every visited node ('loading', 'loaded', 'ok', 'error')- * @returns {$.Promise}- */- loadKeyPath: function(keyPathList, callback, _rootNode) {- var deferredList, dfd, i, path, key, loadMap, node, root, segList,- sep = this.options.keyPathSeparator,- self = this;-- callback = callback || $.noop;- if(!$.isArray(keyPathList)){- keyPathList = [keyPathList];- }- // Pass 1: handle all path segments for nodes that are already loaded- // Collect distinct top-most lazy nodes in a map- loadMap = {};-- for(i=0; i<keyPathList.length; i++){- root = _rootNode || this.rootNode;- path = keyPathList[i];- // strip leading slash- if(path.charAt(0) === sep){- path = path.substr(1);- }- // traverse and strip keys, until we hit a lazy, unloaded node- segList = path.split(sep);- while(segList.length){- key = segList.shift();-// node = _findDirectChild(root, key);- node = root._findDirectChild(key);- if(!node){- this.warn("loadKeyPath: key not found: " + key + " (parent: " + root + ")");- callback.call(this, key, "error");- break;- }else if(segList.length === 0){- callback.call(this, node, "ok");- break;- }else if(!node.lazy || (node.hasChildren() !== undefined )){- callback.call(this, node, "loaded");- root = node;- }else{- callback.call(this, node, "loaded");-// segList.unshift(key);- if(loadMap[key]){- loadMap[key].push(segList.join(sep));- }else{- loadMap[key] = [segList.join(sep)];- }- break;- }- }- }-// alert("loadKeyPath: loadMap=" + JSON.stringify(loadMap));- // Now load all lazy nodes and continue itearation for remaining paths- deferredList = [];- // Avoid jshint warning 'Don't make functions within a loop.':- function __lazyload(key, node, dfd){- callback.call(self, node, "loading");- node.load().done(function(){- self.loadKeyPath.call(self, loadMap[key], callback, node).always(_makeResolveFunc(dfd, self));- }).fail(function(errMsg){- self.warn("loadKeyPath: error loading: " + key + " (parent: " + root + ")");- callback.call(self, node, "error");- dfd.reject();- });- }- for(key in loadMap){- node = root._findDirectChild(key);- if (node == null) { // #576- node = self.getNodeByKey(key);- }- dfd = new $.Deferred();- deferredList.push(dfd);- __lazyload(key, node, dfd);- }- // Return a promise that is resolved, when ALL paths were loaded- return $.when.apply($, deferredList).promise();- },- /** Re-fire beforeActivate, activate, and (optional) focus events.- * Calling this method in the `init` event, will activate the node that- * was marked 'active' in the source data, and optionally set the keyboard- * focus.- * @param [setFocus=false]- */- reactivate: function(setFocus) {- var res,- node = this.activeNode;-- if( !node ) {- return _getResolvedPromise();- }- this.activeNode = null; // Force re-activating- res = node.setActive(true, {noFocus: true});- if( setFocus ){- node.setFocus();- }- return res;- },- /** Reload tree from source and return a promise.- * @param [source] optional new source (defaults to initial source data)- * @returns {$.Promise}- */- reload: function(source) {- this._callHook("treeClear", this);- return this._callHook("treeLoad", this, source);- },- /**Render tree (i.e. create DOM elements for all top-level nodes).- * @param {boolean} [force=false] create DOM elemnts, even if parent is collapsed- * @param {boolean} [deep=false]- */- render: function(force, deep) {- return this.rootNode.render(force, deep);- },- // TODO: selectKey: function(key, select)- // TODO: serializeArray: function(stopOnParents)- /**- * @param {boolean} [flag=true]- */- setFocus: function(flag) {- return this._callHook("treeSetFocus", this, flag);- },- /**- * Return all nodes as nested list of {@link NodeData}.- *- * @param {boolean} [includeRoot=false] Returns the hidden system root node (and its children)- * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications- * @returns {Array | object}- * @see FancytreeNode#toDict- */- toDict: function(includeRoot, callback){- var res = this.rootNode.toDict(true, callback);- return includeRoot ? res : res.children;- },- /* Implicitly called for string conversions.- * @returns {string}- */- toString: function(){- return "<Fancytree(#" + this._id + ")>";- },- /* _trigger a widget event with additional node ctx.- * @see EventData- */- _triggerNodeEvent: function(type, node, originalEvent, extra) {-// this.debug("_trigger(" + type + "): '" + ctx.node.title + "'", ctx);- var ctx = this._makeHookContext(node, originalEvent, extra),- res = this.widget._trigger(type, originalEvent, ctx);- if(res !== false && ctx.result !== undefined){- return ctx.result;- }- return res;- },- /* _trigger a widget event with additional tree data. */- _triggerTreeEvent: function(type, originalEvent, extra) {-// this.debug("_trigger(" + type + ")", ctx);- var ctx = this._makeHookContext(this, originalEvent, extra),- res = this.widget._trigger(type, originalEvent, ctx);-- if(res !== false && ctx.result !== undefined){- return ctx.result;- }- return res;- },- /** Call fn(node) for all nodes.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and children only.- * @returns {boolean} false, if the iterator was stopped.- */- visit: function(fn) {- return this.rootNode.visit(fn, false);- },- /** Write warning to browser console (prepending tree info)- *- * @param {*} msg string or object or array of such- */- warn: function(msg){- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("warn", arguments);- }-};--/**- * These additional methods of the {@link Fancytree} class are 'hook functions'- * that can be used and overloaded by extensions.- * (See <a href="https://github.com/mar10/fancytree/wiki/TutorialExtensions">writing extensions</a>.)- * @mixin Fancytree_Hooks- */-$.extend(Fancytree.prototype,- /** @lends Fancytree_Hooks# */- {- /** Default handling for mouse click events.- *- * @param {EventData} ctx- */- nodeClick: function(ctx) {- var activate, expand,- // event = ctx.originalEvent,- targetType = ctx.targetType,- node = ctx.node;--// this.debug("ftnode.onClick(" + event.type + "): ftnode:" + this + ", button:" + event.button + ", which: " + event.which, ctx);- // TODO: use switch- // TODO: make sure clicks on embedded <input> doesn't steal focus (see table sample)- if( targetType === "expander" ) {- if( node.isLoading() ) {- // #495: we probably got a click event while a lazy load is pending.- // The 'expanded' state is not yet set, so 'toggle' would expand- // and trigger lazyLoad again.- // It would be better to allow to collapse/expand the status node- // while loading (instead of ignoring), but that would require some- // more work.- node.debug("Got 2nd click while loading: ignored");- return;- }- // Clicking the expander icon always expands/collapses- this._callHook("nodeToggleExpanded", ctx);-- } else if( targetType === "checkbox" ) {- // Clicking the checkbox always (de)selects- this._callHook("nodeToggleSelected", ctx);- if( ctx.options.focusOnSelect ) { // #358- this._callHook("nodeSetFocus", ctx, true);- }-- } else {- // Honor `clickFolderMode` for- expand = false;- activate = true;- if( node.folder ) {- switch( ctx.options.clickFolderMode ) {- case 2: // expand only- expand = true;- activate = false;- break;- case 3: // expand and activate- activate = true;- expand = true; //!node.isExpanded();- break;- // else 1 or 4: just activate- }- }- if( activate ) {- this.nodeSetFocus(ctx);- this._callHook("nodeSetActive", ctx, true);- }- if( expand ) {- if(!activate){-// this._callHook("nodeSetFocus", ctx);- }-// this._callHook("nodeSetExpanded", ctx, true);- this._callHook("nodeToggleExpanded", ctx);- }- }- // Make sure that clicks stop, otherwise <a href='#'> jumps to the top- // if(event.target.localName === "a" && event.target.className === "fancytree-title"){- // event.preventDefault();- // }- // TODO: return promise?- },- /** Collapse all other children of same parent.- *- * @param {EventData} ctx- * @param {object} callOpts- */- nodeCollapseSiblings: function(ctx, callOpts) {- // TODO: return promise?- var ac, i, l,- node = ctx.node;-- if( node.parent ){- ac = node.parent.children;- for (i=0, l=ac.length; i<l; i++) {- if ( ac[i] !== node && ac[i].expanded ){- this._callHook("nodeSetExpanded", ac[i], false, callOpts);- }- }- }- },- /** Default handling for mouse douleclick events.- * @param {EventData} ctx- */- nodeDblclick: function(ctx) {- // TODO: return promise?- if( ctx.targetType === "title" && ctx.options.clickFolderMode === 4) {-// this.nodeSetFocus(ctx);-// this._callHook("nodeSetActive", ctx, true);- this._callHook("nodeToggleExpanded", ctx);- }- // TODO: prevent text selection on dblclicks- if( ctx.targetType === "title" ) {- ctx.originalEvent.preventDefault();- }- },- /** Default handling for mouse keydown events.- *- * NOTE: this may be called with node == null if tree (but no node) has focus.- * @param {EventData} ctx- */- nodeKeydown: function(ctx) {- // TODO: return promise?- var matchNode, stamp, res, focusNode,- event = ctx.originalEvent,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- which = event.which,- whichChar = String.fromCharCode(which),- clean = !(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey),- $target = $(event.target),- handled = true,- activate = !(event.ctrlKey || !opts.autoActivate );-- // (node || FT).debug("ftnode.nodeKeydown(" + event.type + "): ftnode:" + this + ", charCode:" + event.charCode + ", keyCode: " + event.keyCode + ", which: " + event.which);- // FT.debug("eventToString", which, '"' + String.fromCharCode(which) + '"', '"' + FT.eventToString(event) + '"');-- // Set focus to active (or first node) if no other node has the focus yet- if( !node ){- focusNode = (this.getActiveNode() || this.getFirstChild());- if (focusNode){- focusNode.setFocus();- node = ctx.node = this.focusNode;- node.debug("Keydown force focus on active node");- }- }-- if( opts.quicksearch && clean && /\w/.test(whichChar) &&- !SPECIAL_KEYCODES[which] && // #659- !$target.is(":input:enabled") ) {- // Allow to search for longer streaks if typed in quickly- stamp = new Date().getTime();- if( stamp - tree.lastQuicksearchTime > 500 ) {- tree.lastQuicksearchTerm = "";- }- tree.lastQuicksearchTime = stamp;- tree.lastQuicksearchTerm += whichChar;- // tree.debug("quicksearch find", tree.lastQuicksearchTerm);- matchNode = tree.findNextNode(tree.lastQuicksearchTerm, tree.getActiveNode());- if( matchNode ) {- matchNode.setActive();- }- event.preventDefault();- return;- }- switch( FT.eventToString(event) ) {- case "+":- case "=": // 187: '+' @ Chrome, Safari- tree.nodeSetExpanded(ctx, true);- break;- case "-":- tree.nodeSetExpanded(ctx, false);- break;- case "space":- if( node.isPagingNode() ) {- tree._triggerNodeEvent("clickPaging", ctx, event);- } else if(opts.checkbox){- tree.nodeToggleSelected(ctx);- }else{- tree.nodeSetActive(ctx, true);- }- break;- case "return":- tree.nodeSetActive(ctx, true);- break;- case "home":- case "end":- case "backspace":- case "left":- case "right":- case "up":- case "down":- res = node.navigate(event.which, activate, true);- break;- default:- handled = false;- }- if(handled){- event.preventDefault();- }- },--- // /** Default handling for mouse keypress events. */- // nodeKeypress: function(ctx) {- // var event = ctx.originalEvent;- // },-- // /** Trigger lazyLoad event (async). */- // nodeLazyLoad: function(ctx) {- // var node = ctx.node;- // if(this._triggerNodeEvent())- // },- /** Load child nodes (async).- *- * @param {EventData} ctx- * @param {object[]|object|string|$.Promise|function} source- * @returns {$.Promise} The deferred will be resolved as soon as the (ajax)- * data was rendered.- */- nodeLoadChildren: function(ctx, source) {- var ajax, delay, dfd,- tree = ctx.tree,- node = ctx.node,- requestId = new Date().getTime();-- if($.isFunction(source)){- source = source.call(tree, {type: "source"}, ctx);- _assert(!$.isFunction(source), "source callback must not return another function");- }- if(source.url){- if( node._requestId ) {- node.warn("Recursive load request #" + requestId + " while #" + node._requestId + " is pending.");- // } else {- // node.debug("Send load request #" + requestId);- }- // `source` is an Ajax options object- ajax = $.extend({}, ctx.options.ajax, source);- node._requestId = requestId;- if(ajax.debugDelay){- // simulate a slow server- delay = ajax.debugDelay;- if($.isArray(delay)){ // random delay range [min..max]- delay = delay[0] + Math.random() * (delay[1] - delay[0]);- }- node.warn("nodeLoadChildren waiting debugDelay " + Math.round(delay) + " ms ...");- ajax.debugDelay = false;- dfd = $.Deferred(function (dfd) {- setTimeout(function () {- $.ajax(ajax)- .done(function () { dfd.resolveWith(this, arguments); })- .fail(function () { dfd.rejectWith(this, arguments); });- }, delay);- });- }else{- dfd = $.ajax(ajax);- }-- // Defer the deferred: we want to be able to reject, even if ajax- // resolved ok.- source = new $.Deferred();- dfd.done(function (data, textStatus, jqXHR) {- var errorObj, res;-- if((this.dataType === "json" || this.dataType === "jsonp") && typeof data === "string"){- $.error("Ajax request returned a string (did you get the JSON dataType wrong?).");- }- if( node._requestId && node._requestId > requestId ) {- // The expected request time stamp is later than `requestId`- // (which was kept as as closure variable to this handler function)- // node.warn("Ignored load response for obsolete request #" + requestId + " (expected #" + node._requestId + ")");- source.rejectWith(this, [RECURSIVE_REQUEST_ERROR]);- return;- // } else {- // node.debug("Response returned for load request #" + requestId);- }- // postProcess is similar to the standard ajax dataFilter hook,- // but it is also called for JSONP- if( ctx.options.postProcess ){- try {- res = tree._triggerNodeEvent("postProcess", ctx, ctx.originalEvent, {- response: data, error: null, dataType: this.dataType- });- } catch(e) {- res = { error: e, message: "" + e, details: "postProcess failed"};- }- if( res.error ) {- errorObj = $.isPlainObject(res.error) ? res.error : {message: res.error};- errorObj = tree._makeHookContext(node, null, errorObj);- source.rejectWith(this, [errorObj]);- return;- }- data = $.isArray(res) ? res : data;-- } else if (data && data.hasOwnProperty("d") && ctx.options.enableAspx ) {- // Process ASPX WebMethod JSON object inside "d" property- data = (typeof data.d === "string") ? $.parseJSON(data.d) : data.d;- }- source.resolveWith(this, [data]);- }).fail(function (jqXHR, textStatus, errorThrown) {- var errorObj = tree._makeHookContext(node, null, {- error: jqXHR,- args: Array.prototype.slice.call(arguments),- message: errorThrown,- details: jqXHR.status + ": " + errorThrown- });- source.rejectWith(this, [errorObj]);- });- }- // #383: accept and convert ECMAScript 6 Promise- if( $.isFunction(source.then) && $.isFunction(source["catch"]) ) {- dfd = source;- source = new $.Deferred();- dfd.then(function(value){- source.resolve(value);- }, function(reason){- source.reject(reason);- });- }- if($.isFunction(source.promise)){- // `source` is a deferred, i.e. ajax request- // _assert(!node.isLoading(), "recursive load");- tree.nodeSetStatus(ctx, "loading");-- source.done(function (children) {- tree.nodeSetStatus(ctx, "ok");- node._requestId = null;- }).fail(function(error){- var ctxErr;-- if ( error === RECURSIVE_REQUEST_ERROR ) {- node.warn("Ignored response for obsolete load request #" + requestId + " (expected #" + node._requestId + ")");- return;- } else if (error.node && error.error && error.message) {- // error is already a context object- ctxErr = error;- } else {- ctxErr = tree._makeHookContext(node, null, {- error: error, // it can be jqXHR or any custom error- args: Array.prototype.slice.call(arguments),- message: error ? (error.message || error.toString()) : ""- });- if( ctxErr.message === "[object Object]" ) {- ctxErr.message = "";- }- }- node.warn("Load children failed (" + ctxErr.message + ")", ctxErr);- if( tree._triggerNodeEvent("loadError", ctxErr, null) !== false ) {- tree.nodeSetStatus(ctx, "error", ctxErr.message, ctxErr.details);- }- });- }- // $.when(source) resolves also for non-deferreds- return $.when(source).done(function(children){- var metaData;-- if( $.isPlainObject(children) ){- // We got {foo: 'abc', children: [...]}- // Copy extra properties to tree.data.foo- _assert(node.isRootNode(), "source may only be an object for root nodes (expecting an array of child objects otherwise)");- _assert($.isArray(children.children), "if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')");- metaData = children;- children = children.children;- delete metaData.children;- $.extend(tree.data, metaData);- }- _assert($.isArray(children), "expected array of children");- node._setChildren(children);- // trigger fancytreeloadchildren- tree._triggerNodeEvent("loadChildren", node);- });- },- /** [Not Implemented] */- nodeLoadKeyPath: function(ctx, keyPathList) {- // TODO: implement and improve- // http://code.google.com/p/dynatree/issues/detail?id=222- },- /**- * Remove a single direct child of ctx.node.- * @param {EventData} ctx- * @param {FancytreeNode} childNode dircect child of ctx.node- */- nodeRemoveChild: function(ctx, childNode) {- var idx,- node = ctx.node,- // opts = ctx.options,- subCtx = $.extend({}, ctx, {node: childNode}),- children = node.children;-- // FT.debug("nodeRemoveChild()", node.toString(), childNode.toString());-- if( children.length === 1 ) {- _assert(childNode === children[0], "invalid single child");- return this.nodeRemoveChildren(ctx);- }- if( this.activeNode && (childNode === this.activeNode || this.activeNode.isDescendantOf(childNode))){- this.activeNode.setActive(false); // TODO: don't fire events- }- if( this.focusNode && (childNode === this.focusNode || this.focusNode.isDescendantOf(childNode))){- this.focusNode = null;- }- // TODO: persist must take care to clear select and expand cookies- this.nodeRemoveMarkup(subCtx);- this.nodeRemoveChildren(subCtx);- idx = $.inArray(childNode, children);- _assert(idx >= 0, "invalid child");- // Notify listeners- node.triggerModifyChild("remove", childNode);- // Unlink to support GC- childNode.visit(function(n){- n.parent = null;- }, true);- this._callHook("treeRegisterNode", this, false, childNode);- // remove from child list- children.splice(idx, 1);- },- /**Remove HTML markup for all descendents of ctx.node.- * @param {EventData} ctx- */- nodeRemoveChildMarkup: function(ctx) {- var node = ctx.node;-- // FT.debug("nodeRemoveChildMarkup()", node.toString());- // TODO: Unlink attr.ftnode to support GC- if(node.ul){- if( node.isRootNode() ) {- $(node.ul).empty();- } else {- $(node.ul).remove();- node.ul = null;- }- node.visit(function(n){- n.li = n.ul = null;- });- }- },- /**Remove all descendants of ctx.node.- * @param {EventData} ctx- */- nodeRemoveChildren: function(ctx) {- var subCtx,- tree = ctx.tree,- node = ctx.node,- children = node.children;- // opts = ctx.options;-- // FT.debug("nodeRemoveChildren()", node.toString());- if(!children){- return;- }- if( this.activeNode && this.activeNode.isDescendantOf(node)){- this.activeNode.setActive(false); // TODO: don't fire events- }- if( this.focusNode && this.focusNode.isDescendantOf(node)){- this.focusNode = null;- }- // TODO: persist must take care to clear select and expand cookies- this.nodeRemoveChildMarkup(ctx);- // Unlink children to support GC- // TODO: also delete this.children (not possible using visit())- subCtx = $.extend({}, ctx);- node.triggerModifyChild("remove", null);- node.visit(function(n){- n.parent = null;- tree._callHook("treeRegisterNode", tree, false, n);- });- if( node.lazy ){- // 'undefined' would be interpreted as 'not yet loaded' for lazy nodes- node.children = [];- } else{- node.children = null;- }- if( !node.isRootNode() ) {- node.expanded = false; // #449, #459- }- this.nodeRenderStatus(ctx);- },- /**Remove HTML markup for ctx.node and all its descendents.- * @param {EventData} ctx- */- nodeRemoveMarkup: function(ctx) {- var node = ctx.node;- // FT.debug("nodeRemoveMarkup()", node.toString());- // TODO: Unlink attr.ftnode to support GC- if(node.li){- $(node.li).remove();- node.li = null;- }- this.nodeRemoveChildMarkup(ctx);- },- /**- * Create `<li><span>..</span> .. </li>` tags for this node.- *- * This method takes care that all HTML markup is created that is required- * to display this node in its current state.- *- * Call this method to create new nodes, or after the strucuture- * was changed (e.g. after moving this node or adding/removing children)- * nodeRenderTitle() and nodeRenderStatus() are implied.- *- * <code>- * <li id='KEY' ftnode=NODE>- * <span class='fancytree-node fancytree-expanded fancytree-has-children fancytree-lastsib fancytree-exp-el fancytree-ico-e'>- * <span class="fancytree-expander"></span>- * <span class="fancytree-checkbox"></span> // only present in checkbox mode- * <span class="fancytree-icon"></span>- * <a href="#" class="fancytree-title"> Node 1 </a>- * </span>- * <ul> // only present if node has children- * <li id='KEY' ftnode=NODE> child1 ... </li>- * <li id='KEY' ftnode=NODE> child2 ... </li>- * </ul>- * </li>- * </code>- *- * @param {EventData} ctx- * @param {boolean} [force=false] re-render, even if html markup was already created- * @param {boolean} [deep=false] also render all descendants, even if parent is collapsed- * @param {boolean} [collapsed=false] force root node to be collapsed, so we can apply animated expand later- */- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- /* This method must take care of all cases where the current data mode- * (i.e. node hierarchy) does not match the current markup.- *- * - node was not yet rendered:- * create markup- * - node was rendered: exit fast- * - children have been added- * - children have been removed- */- var childLI, childNode1, childNode2, i, l, next, subCtx,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- aria = opts.aria,- firstTime = false,- parent = node.parent,- isRootNode = !parent,- children = node.children,- successorLi = null;- // FT.debug("nodeRender(" + !!force + ", " + !!deep + ")", node.toString());-- if( tree._enableUpdate === false ) {- // tree.debug("no render", tree._enableUpdate);- return;- }- if( ! isRootNode && ! parent.ul ) {- // Calling node.collapse on a deep, unrendered node- return;- }- _assert(isRootNode || parent.ul, "parent UL must exist");-- // Render the node- if( !isRootNode ){- // Discard markup on force-mode, or if it is not linked to parent <ul>- if(node.li && (force || (node.li.parentNode !== node.parent.ul) ) ){- if( node.li.parentNode === node.parent.ul ){- // #486: store following node, so we can insert the new markup there later- successorLi = node.li.nextSibling;- }else{- // May happen, when a top-level node was dropped over another- this.debug("Unlinking " + node + " (must be child of " + node.parent + ")");- }-// this.debug("nodeRemoveMarkup...");- this.nodeRemoveMarkup(ctx);- }- // Create <li><span /> </li>-// node.debug("render...");- if( !node.li ) {-// node.debug("render... really");- firstTime = true;- node.li = document.createElement("li");- node.li.ftnode = node;-- if( node.key && opts.generateIds ){- node.li.id = opts.idPrefix + node.key;- }- node.span = document.createElement("span");- node.span.className = "fancytree-node";- if( aria && !node.tr ) {- $(node.li).attr("role", "treeitem");- }- node.li.appendChild(node.span);-- // Create inner HTML for the <span> (expander, checkbox, icon, and title)- this.nodeRenderTitle(ctx);-- // Allow tweaking and binding, after node was created for the first time- if ( opts.createNode ){- opts.createNode.call(tree, {type: "createNode"}, ctx);- }- }else{-// this.nodeRenderTitle(ctx);- this.nodeRenderStatus(ctx);- }- // Allow tweaking after node state was rendered- if ( opts.renderNode ){- opts.renderNode.call(tree, {type: "renderNode"}, ctx);- }- }-- // Visit child nodes- if( children ){- if( isRootNode || node.expanded || deep === true ) {- // Create a UL to hold the children- if( !node.ul ){- node.ul = document.createElement("ul");- if((collapsed === true && !_recursive) || !node.expanded){- // hide top UL, so we can use an animation to show it later- node.ul.style.display = "none";- }- if(aria){- $(node.ul).attr("role", "group");- }- if ( node.li ) { // issue #67- node.li.appendChild(node.ul);- } else {- node.tree.$div.append(node.ul);- }- }- // Add child markup- for(i=0, l=children.length; i<l; i++) {- subCtx = $.extend({}, ctx, {node: children[i]});- this.nodeRender(subCtx, force, deep, false, true);- }- // Remove <li> if nodes have moved to another parent- childLI = node.ul.firstChild;- while( childLI ){- childNode2 = childLI.ftnode;- if( childNode2 && childNode2.parent !== node ) {- node.debug("_fixParent: remove missing " + childNode2, childLI);- next = childLI.nextSibling;- childLI.parentNode.removeChild(childLI);- childLI = next;- }else{- childLI = childLI.nextSibling;- }- }- // Make sure, that <li> order matches node.children order.- childLI = node.ul.firstChild;- for(i=0, l=children.length-1; i<l; i++) {- childNode1 = children[i];- childNode2 = childLI.ftnode;- if( childNode1 !== childNode2 ) {- // node.debug("_fixOrder: mismatch at index " + i + ": " + childNode1 + " != " + childNode2);- node.ul.insertBefore(childNode1.li, childNode2.li);- } else {- childLI = childLI.nextSibling;- }- }- }- }else{- // No children: remove markup if any- if( node.ul ){-// alert("remove child markup for " + node);- this.warn("remove child markup for " + node);- this.nodeRemoveChildMarkup(ctx);- }- }- if( !isRootNode ){- // Update element classes according to node state- // this.nodeRenderStatus(ctx);- // Finally add the whole structure to the DOM, so the browser can render- if( firstTime ){- // #486: successorLi is set, if we re-rendered (i.e. discarded)- // existing markup, which we want to insert at the same position.- // (null is equivalent to append)-// parent.ul.appendChild(node.li);- parent.ul.insertBefore(node.li, successorLi);- }- }- },- /** Create HTML inside the node's outer <span> (i.e. expander, checkbox,- * icon, and title).- *- * nodeRenderStatus() is implied.- * @param {EventData} ctx- * @param {string} [title] optinal new title- */- nodeRenderTitle: function(ctx, title) {- // set node connector images, links and text- var checkbox, className, icon, nodeTitle, role, tabindex, tooltip,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- aria = opts.aria,- level = node.getLevel(),- ares = [];-- if(title !== undefined){- node.title = title;- }- if ( !node.span || tree._enableUpdate === false ) {- // Silently bail out if node was not rendered yet, assuming- // node.render() will be called as the node becomes visible- return;- }- // Connector (expanded, expandable or simple)- role = (aria && node.hasChildren() !== false) ? " role='button'" : "";- if( level < opts.minExpandLevel ) {- if( !node.lazy ) {- node.expanded = true;- }- if(level > 1){- ares.push("<span " + role + " class='fancytree-expander fancytree-expander-fixed'></span>");- }- // .. else (i.e. for root level) skip expander/connector alltogether- } else {- ares.push("<span " + role + " class='fancytree-expander'></span>");- }- // Checkbox mode- checkbox = FT.evalOption("checkbox", node, node, opts, false);-- if( checkbox && !node.isStatusNode() ) {- role = aria ? " role='checkbox'" : "";- className = "fancytree-checkbox";- if( checkbox === "radio" || (node.parent && node.parent.radiogroup) ) {- className += " fancytree-radio";- }- ares.push("<span " + role + " class='" + className + "'></span>");- }- // Folder or doctype icon- if( node.data.iconClass !== undefined ) { // 2015-11-16- // Handle / warn about backward compatibility- if( node.icon ) {- $.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead");- } else {- node.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead");- node.icon = node.data.iconClass;- }- }- // If opts.icon is a callback and returns something other than undefined, use that- // else if node.icon is a boolean or string, use that- // else if opts.icon is a boolean or string, use that- // else show standard icon (which may be different for folders or documents)- icon = FT.evalOption("icon", node, node, opts, true);- if( typeof icon !== "boolean" ) {- // icon is defined, but not true/false: must be a string- icon = "" + icon;- }- if( icon !== false ) {- role = aria ? " role='presentation'" : "";- if ( typeof icon === "string" ) {- if( TEST_IMG.test(icon) ) {- // node.icon is an image url. Prepend imagePath- icon = (icon.charAt(0) === "/") ? icon : ((opts.imagePath || "") + icon);- ares.push("<img src='" + icon + "' class='fancytree-icon' alt='' />");- } else {- ares.push("<span " + role + " class='fancytree-custom-icon " + icon + "'></span>");- }- } else {- // standard icon: theme css will take care of this- ares.push("<span " + role + " class='fancytree-icon'></span>");- }- }- // Node title- nodeTitle = "";- if ( opts.renderTitle ){- nodeTitle = opts.renderTitle.call(tree, {type: "renderTitle"}, ctx) || "";- }- if ( !nodeTitle ) {- tooltip = FT.evalOption("tooltip", node, node, opts, null);- if( tooltip === true ) {- tooltip = node.title;- }- // if( node.tooltip ) {- // tooltip = node.tooltip;- // } else if ( opts.tooltip ) {- // tooltip = opts.tooltip === true ? node.title : opts.tooltip.call(tree, node);- // }- tooltip = tooltip ? " title='" + _escapeTooltip(tooltip) + "'" : "";- tabindex = opts.titlesTabbable ? " tabindex='0'" : "";-- nodeTitle = "<span class='fancytree-title'" +- tooltip + tabindex + ">" +- (opts.escapeTitles ? _escapeHtml(node.title) : node.title) +- "</span>";- }- ares.push(nodeTitle);- // Note: this will trigger focusout, if node had the focus- //$(node.span).html(ares.join("")); // it will cleanup the jQuery data currently associated with SPAN (if any), but it executes more slowly- node.span.innerHTML = ares.join("");- // Update CSS classes- this.nodeRenderStatus(ctx);- if ( opts.enhanceTitle ){- ctx.$title = $(">span.fancytree-title", node.span);- nodeTitle = opts.enhanceTitle.call(tree, {type: "enhanceTitle"}, ctx) || "";- }- },- /** Update element classes according to node state.- * @param {EventData} ctx- */- nodeRenderStatus: function(ctx) {- // Set classes for current status- var $ariaElem,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,-// nodeContainer = node[tree.nodeContainerAttrName],- hasChildren = node.hasChildren(),- isLastSib = node.isLastSibling(),- aria = opts.aria,- cn = opts._classNames,- cnList = [],- statusElem = node[tree.statusClassPropName];-- if( !statusElem || tree._enableUpdate === false ){- // if this function is called for an unrendered node, ignore it (will be updated on nect render anyway)- return;- }- if( aria ) {- $ariaElem = $(node.tr || node.li);- }- // Build a list of class names that we will add to the node <span>- cnList.push(cn.node);- if( tree.activeNode === node ){- cnList.push(cn.active);-// $(">span.fancytree-title", statusElem).attr("tabindex", "0");-// tree.$container.removeAttr("tabindex");- // }else{-// $(">span.fancytree-title", statusElem).removeAttr("tabindex");-// tree.$container.attr("tabindex", "0");- }- if( tree.focusNode === node ){- cnList.push(cn.focused);- }- if( node.expanded ){- cnList.push(cn.expanded);- }- if( aria ){- if (hasChildren !== false) {- $ariaElem.attr("aria-expanded", Boolean(node.expanded));- }- else {- $ariaElem.removeAttr("aria-expanded");- }- }- if( node.folder ){- cnList.push(cn.folder);- }- if( hasChildren !== false ){- cnList.push(cn.hasChildren);- }- // TODO: required?- if( isLastSib ){- cnList.push(cn.lastsib);- }- if( node.lazy && node.children == null ){- cnList.push(cn.lazy);- }- if( node.partload ){- cnList.push(cn.partload);- }- if( node.partsel ){- cnList.push(cn.partsel);- }- if( FT.evalOption("unselectable", node, node, opts, false) ){- cnList.push(cn.unselectable);- }- if( node._isLoading ){- cnList.push(cn.loading);- }- if( node._error ){- cnList.push(cn.error);- }- if( node.statusNodeType ) {- cnList.push(cn.statusNodePrefix + node.statusNodeType);- }- if( node.selected ){- cnList.push(cn.selected);- if(aria){- $ariaElem.attr("aria-selected", true);- }- }else if(aria){- $ariaElem.attr("aria-selected", false);- }- if( node.extraClasses ){- cnList.push(node.extraClasses);- }- // IE6 doesn't correctly evaluate multiple class names,- // so we create combined class names that can be used in the CSS- if( hasChildren === false ){- cnList.push(cn.combinedExpanderPrefix + "n" +- (isLastSib ? "l" : "")- );- }else{- cnList.push(cn.combinedExpanderPrefix +- (node.expanded ? "e" : "c") +- (node.lazy && node.children == null ? "d" : "") +- (isLastSib ? "l" : "")- );- }- cnList.push(cn.combinedIconPrefix +- (node.expanded ? "e" : "c") +- (node.folder ? "f" : "")- );-// node.span.className = cnList.join(" ");- statusElem.className = cnList.join(" ");-- // TODO: we should not set this in the <span> tag also, if we set it here:- // Maybe most (all) of the classes should be set in LI instead of SPAN?- if(node.li){- // #719: we have to consider that there may be already other classes:- $(node.li).toggleClass(cn.lastsib, isLastSib);- }- },- /** Activate node.- * flag defaults to true.- * If flag is true, the node is activated (must be a synchronous operation)- * If flag is false, the node is deactivated (must be a synchronous operation)- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noEvents: false, noFocus: false}- * @returns {$.Promise}- */- nodeSetActive: function(ctx, flag, callOpts) {- // Handle user click / [space] / [enter], according to clickFolderMode.- callOpts = callOpts || {};- var subCtx,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noEvents = (callOpts.noEvents === true),- noFocus = (callOpts.noFocus === true),- isActive = (node === tree.activeNode);-- // flag defaults to true- flag = (flag !== false);- // node.debug("nodeSetActive", flag);-- if(isActive === flag){- // Nothing to do- return _getResolvedPromise(node);- }else if(flag && !noEvents && this._triggerNodeEvent("beforeActivate", node, ctx.originalEvent) === false ){- // Callback returned false- return _getRejectedPromise(node, ["rejected"]);- }- if(flag){- if(tree.activeNode){- _assert(tree.activeNode !== node, "node was active (inconsistency)");- subCtx = $.extend({}, ctx, {node: tree.activeNode});- tree.nodeSetActive(subCtx, false);- _assert(tree.activeNode === null, "deactivate was out of sync?");- }- if(opts.activeVisible){- // If no focus is set (noFocus: true) and there is no focused node, this node is made visible.- node.makeVisible({scrollIntoView: noFocus && tree.focusNode == null});- }- tree.activeNode = node;- tree.nodeRenderStatus(ctx);- if( !noFocus ) {- tree.nodeSetFocus(ctx);- }- if( !noEvents ) {- tree._triggerNodeEvent("activate", node, ctx.originalEvent);- }- }else{- _assert(tree.activeNode === node, "node was not active (inconsistency)");- tree.activeNode = null;- this.nodeRenderStatus(ctx);- if( !noEvents ) {- ctx.tree._triggerNodeEvent("deactivate", node, ctx.originalEvent);- }- }- return _getResolvedPromise(node);- },- /** Expand or collapse node, return Deferred.promise.- *- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noAnimation: false, noEvents: false}- * @returns {$.Promise} The deferred will be resolved as soon as the (lazy)- * data was retrieved, rendered, and the expand animation finshed.- */- nodeSetExpanded: function(ctx, flag, callOpts) {- callOpts = callOpts || {};- var _afterLoad, dfd, i, l, parents, prevAC,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noAnimation = (callOpts.noAnimation === true),- noEvents = (callOpts.noEvents === true);-- // flag defaults to true- flag = (flag !== false);-- // node.debug("nodeSetExpanded(" + flag + ")");-- if((node.expanded && flag) || (!node.expanded && !flag)){- // Nothing to do- // node.debug("nodeSetExpanded(" + flag + "): nothing to do");- return _getResolvedPromise(node);- }else if(flag && !node.lazy && !node.hasChildren() ){- // Prevent expanding of empty nodes- // return _getRejectedPromise(node, ["empty"]);- return _getResolvedPromise(node);- }else if( !flag && node.getLevel() < opts.minExpandLevel ) {- // Prevent collapsing locked levels- return _getRejectedPromise(node, ["locked"]);- }else if ( !noEvents && this._triggerNodeEvent("beforeExpand", node, ctx.originalEvent) === false ){- // Callback returned false- return _getRejectedPromise(node, ["rejected"]);- }- // If this node inside a collpased node, no animation and scrolling is needed- if( !noAnimation && !node.isVisible() ) {- noAnimation = callOpts.noAnimation = true;- }-- dfd = new $.Deferred();-- // Auto-collapse mode: collapse all siblings- if( flag && !node.expanded && opts.autoCollapse ) {- parents = node.getParentList(false, true);- prevAC = opts.autoCollapse;- try{- opts.autoCollapse = false;- for(i=0, l=parents.length; i<l; i++){- // TODO: should return promise?- this._callHook("nodeCollapseSiblings", parents[i], callOpts);- }- }finally{- opts.autoCollapse = prevAC;- }- }- // Trigger expand/collapse after expanding- dfd.done(function(){- var lastChild = node.getLastChild();-- if( flag && opts.autoScroll && !noAnimation && lastChild ) {- // Scroll down to last child, but keep current node visible- lastChild.scrollIntoView(true, {topNode: node}).always(function(){- if( !noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- });- } else {- if( !noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- }- });- // vvv Code below is executed after loading finished:- _afterLoad = function(callback){- var cn = opts._classNames,- isVisible, isExpanded,- effect = opts.toggleEffect;-- node.expanded = flag;- // Create required markup, but make sure the top UL is hidden, so we- // can animate later- tree._callHook("nodeRender", ctx, false, false, true);-- // Hide children, if node is collapsed- if( node.ul ) {- isVisible = (node.ul.style.display !== "none");- isExpanded = !!node.expanded;- if ( isVisible === isExpanded ) {- node.warn("nodeSetExpanded: UL.style.display already set");-- } else if ( !effect || noAnimation ) {- node.ul.style.display = ( node.expanded || !parent ) ? "" : "none";-- } else {- // The UI toggle() effect works with the ext-wide extension,- // while jQuery.animate() has problems when the title span- // has positon: absolute.- // Since jQuery UI 1.12, the blind effect requires the parent- // element to have 'position: relative'.- // See #716, #717- $(node.li).addClass(cn.animating); // #717-// node.info("fancytree-animating start: " + node.li.className);- $(node.ul)- .addClass(cn.animating) // # 716- .toggle(effect.effect, effect.options, effect.duration, function(){-// node.info("fancytree-animating end: " + node.li.className);- $(this).removeClass(cn.animating); // #716- $(node.li).removeClass(cn.animating); // #717- callback();- });- return;- }- }- callback();- };- // ^^^ Code above is executed after loading finshed.-- // Load lazy nodes, if any. Then continue with _afterLoad()- if(flag && node.lazy && node.hasChildren() === undefined){- // node.debug("nodeSetExpanded: load start...");- node.load().done(function(){- // node.debug("nodeSetExpanded: load done");- if(dfd.notifyWith){ // requires jQuery 1.6+- dfd.notifyWith(node, ["loaded"]);- }- _afterLoad(function () { dfd.resolveWith(node); });- }).fail(function(errMsg){- _afterLoad(function () { dfd.rejectWith(node, ["load failed (" + errMsg + ")"]); });- });-/*- var source = tree._triggerNodeEvent("lazyLoad", node, ctx.originalEvent);- _assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");- node.debug("nodeSetExpanded: load start...");- this._callHook("nodeLoadChildren", ctx, source).done(function(){- node.debug("nodeSetExpanded: load done");- if(dfd.notifyWith){ // requires jQuery 1.6+- dfd.notifyWith(node, ["loaded"]);- }- _afterLoad.call(tree);- }).fail(function(errMsg){- dfd.rejectWith(node, ["load failed (" + errMsg + ")"]);- });-*/- }else{- _afterLoad(function () { dfd.resolveWith(node); });- }- // node.debug("nodeSetExpanded: returns");- return dfd.promise();- },- /** Focus or blur this node.- * @param {EventData} ctx- * @param {boolean} [flag=true]- */- nodeSetFocus: function(ctx, flag) {- // ctx.node.debug("nodeSetFocus(" + flag + ")");- var ctx2,- tree = ctx.tree,- node = ctx.node,- opts = tree.options,- // et = ctx.originalEvent && ctx.originalEvent.type,- isInput = ctx.originalEvent ? $(ctx.originalEvent.target).is(":input") : false;-- flag = (flag !== false);-- // (node || tree).debug("nodeSetFocus(" + flag + "), event: " + et + ", isInput: "+ isInput);- // Blur previous node if any- if(tree.focusNode){- if(tree.focusNode === node && flag){- // node.debug("nodeSetFocus(" + flag + "): nothing to do");- return;- }- ctx2 = $.extend({}, ctx, {node: tree.focusNode});- tree.focusNode = null;- this._triggerNodeEvent("blur", ctx2);- this._callHook("nodeRenderStatus", ctx2);- }- // Set focus to container and node- if(flag){- if( !this.hasFocus() ){- node.debug("nodeSetFocus: forcing container focus");- this._callHook("treeSetFocus", ctx, true, {calledByNode: true});- }- node.makeVisible({scrollIntoView: false});- tree.focusNode = node;- if( opts.titlesTabbable ) {- if( !isInput ) { // #621- $(node.span).find(".fancytree-title").focus();- }- } else {- // We cannot set KB focus to a node, so use the tree container- // #563, #570: IE scrolls on every call to .focus(), if the container- // is partially outside the viewport. So do it only, when absolutely- // neccessary:- if( $(document.activeElement).closest(".fancytree-container").length === 0 ) {- $(tree.$container).focus();- }- }- if( opts.aria ){- // Set active descendant to node's span ID (create one, if needed)- $(tree.$container).attr("aria-activedescendant",- $( node.tr || node.li ).uniqueId().attr("id"));- // "ftal_" + opts.idPrefix + node.key);- }-// $(node.span).find(".fancytree-title").focus();- this._triggerNodeEvent("focus", ctx);-// if( opts.autoActivate ){-// tree.nodeSetActive(ctx, true);-// }- if( opts.autoScroll ){- node.scrollIntoView();- }- this._callHook("nodeRenderStatus", ctx);- }- },- /** (De)Select node, return new status (sync).- *- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noEvents: false,- * propagateDown: null, propagateUp: null,- * callback: null,- * }- * @returns {boolean} previous status- */- nodeSetSelected: function(ctx, flag, callOpts) {- callOpts = callOpts || {};- var node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noEvents = (callOpts.noEvents === true);-- // flag defaults to true- flag = (flag !== false);-- // node.debug("nodeSetSelected(" + flag + ")", ctx);-- // Cannot (de)select unselectable nodes directly (only by propagation or- // by setting the `.selected` property)- if( FT.evalOption("unselectable", node, node, opts, false) ){- return;- }-- // Remember the user's intent, in case down -> up propagation prevents- // applying it to node.selected- node._lastSelectIntent = flag;-- // Nothing to do?- /*jshint -W018 */ // Confusing use of '!'- if( !!node.selected === flag ){- if( opts.selectMode === 3 && node.partsel && !flag ){- // If propagation prevented selecting this node last time, we still- // want to allow to apply setSelected(false) now- }else{- return flag;- }- }- /*jshint +W018 */-- if( !noEvents &&- this._triggerNodeEvent("beforeSelect", node, ctx.originalEvent) === false ) {- return !!node.selected;- }- if(flag && opts.selectMode === 1){- // single selection mode (we don't uncheck all tree nodes, for performance reasons)- if(tree.lastSelectedNode){- tree.lastSelectedNode.setSelected(false);- }- node.selected = flag;- }else if(opts.selectMode === 3 && !node.parent.radiogroup && !node.radiogroup){- // multi-hierarchical selection mode- node.selected = flag;- node.fixSelection3AfterClick(callOpts);- }else if(node.parent.radiogroup){- node.visitSiblings(function(n){- n._changeSelectStatusAttrs(flag && n === node);- }, true);- }else{- // default: selectMode: 2, multi selection mode- node.selected = flag;- }- this.nodeRenderStatus(ctx);- tree.lastSelectedNode = flag ? node : null;- if( !noEvents ) {- tree._triggerNodeEvent("select", ctx);- }- },- /** Show node status (ok, loading, error, nodata) using styles and a dummy child node.- *- * @param {EventData} ctx- * @param status- * @param message- * @param details- * @since 2.3- */- nodeSetStatus: function(ctx, status, message, details) {- var node = ctx.node,- tree = ctx.tree;-- function _clearStatusNode() {- // Remove dedicated dummy node, if any- var firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- try{- // I've seen exceptions here with loadKeyPath...- if(node.ul){- node.ul.removeChild(firstChild.li);- firstChild.li = null; // avoid leaks (DT issue 215)- }- }catch(e){}- if( node.children.length === 1 ){- node.children = [];- }else{- node.children.shift();- }- }- }- function _setStatusNode(data, type) {- // Create/modify the dedicated dummy node for 'loading...' or- // 'error!' status. (only called for direct child of the invisible- // system root)- var firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- $.extend(firstChild, data);- firstChild.statusNodeType = type;- tree._callHook("nodeRenderTitle", firstChild);- } else {- node._setChildren([data]);- node.children[0].statusNodeType = type;- tree.render();- }- return node.children[0];- }-- switch( status ){- case "ok":- _clearStatusNode();- node._isLoading = false;- node._error = null;- node.renderStatus();- break;- case "loading":- if( !node.parent ) {- _setStatusNode({- title: tree.options.strings.loading + (message ? " (" + message + ")" : ""),- // icon: true, // needed for 'loding' icon- checkbox: false,- tooltip: details- }, status);- }- node._isLoading = true;- node._error = null;- node.renderStatus();- break;- case "error":- _setStatusNode({- title: tree.options.strings.loadError + (message ? " (" + message + ")" : ""),- // icon: false,- checkbox: false,- tooltip: details- }, status);- node._isLoading = false;- node._error = { message: message, details: details };- node.renderStatus();- break;- case "nodata":- _setStatusNode({- title: tree.options.strings.noData,- // icon: false,- checkbox: false,- tooltip: details- }, status);- node._isLoading = false;- node._error = null;- node.renderStatus();- break;- default:- $.error("invalid node status " + status);- }- },- /**- *- * @param {EventData} ctx- */- nodeToggleExpanded: function(ctx) {- return this.nodeSetExpanded(ctx, !ctx.node.expanded);- },- /**- * @param {EventData} ctx- */- nodeToggleSelected: function(ctx) {- var node = ctx.node,- flag = !node.selected;-- // In selectMode: 3 this node may be unselected+partsel, even if- // setSelected(true) was called before, due to `unselectable` children.- // In this case, we now toggle as `setSelected(false)`- if( node.partsel && !node.selected && node._lastSelectIntent === true ) {- flag = false;- node.selected = true; // so it is not considered 'nothing to do'- }- node._lastSelectIntent = flag;- return this.nodeSetSelected(ctx, flag);- },- /** Remove all nodes.- * @param {EventData} ctx- */- treeClear: function(ctx) {- var tree = ctx.tree;- tree.activeNode = null;- tree.focusNode = null;- tree.$div.find(">ul.fancytree-container").empty();- // TODO: call destructors and remove reference loops- tree.rootNode.children = null;- },- /** Widget was created (called only once, even it re-initialized).- * @param {EventData} ctx- */- treeCreate: function(ctx) {- },- /** Widget was destroyed.- * @param {EventData} ctx- */- treeDestroy: function(ctx) {- this.$div.find(">ul.fancytree-container").remove();- this.$source && this.$source.removeClass("ui-helper-hidden");- },- /** Widget was (re-)initialized.- * @param {EventData} ctx- */- treeInit: function(ctx) {- var tree = ctx.tree,- opts = tree.options;-- //this.debug("Fancytree.treeInit()");- // Add container to the TAB chain- // See http://www.w3.org/TR/wai-aria-practices/#focus_activedescendant- // #577: Allow to set tabindex to "0", "-1" and ""- tree.$container.attr("tabindex", opts.tabindex);-- if( opts.rtl ) {- tree.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- }else{- tree.$container.removeAttr("DIR").removeClass("fancytree-rtl");- }- if( opts.aria ){- tree.$container.attr("role", "tree");- if( opts.selectMode !== 1 ) {- tree.$container.attr("aria-multiselectable", true);- }- }- this.treeLoad(ctx);- },- /** Parse Fancytree from source, as configured in the options.- * @param {EventData} ctx- * @param {object} [source] optional new source (use last data otherwise)- */- treeLoad: function(ctx, source) {- var metaData, type, $ul,- tree = ctx.tree,- $container = ctx.widget.element,- dfd,- // calling context for root node- rootCtx = $.extend({}, ctx, {node: this.rootNode});-- if(tree.rootNode.children){- this.treeClear(ctx);- }- source = source || this.options.source;-- if(!source){- type = $container.data("type") || "html";- switch(type){- case "html":- $ul = $container.find(">ul:first");- $ul.addClass("ui-fancytree-source ui-helper-hidden");- source = $.ui.fancytree.parseHtml($ul);- // allow to init tree.data.foo from <ul data-foo=''>- this.data = $.extend(this.data, _getElementDataAsDict($ul));- break;- case "json":- source = $.parseJSON($container.text());- // $container already contains the <ul>, but we remove the plain (json) text- // $container.empty();- $container.contents().filter(function(){- return (this.nodeType === 3);- }).remove();- if( $.isPlainObject(source) ){- // We got {foo: 'abc', children: [...]}- // Copy extra properties to tree.data.foo- _assert($.isArray(source.children), "if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')");- metaData = source;- source = source.children;- delete metaData.children;- $.extend(tree.data, metaData);- }- break;- default:- $.error("Invalid data-type: " + type);- }- }else if(typeof source === "string"){- // TODO: source is an element ID- $.error("Not implemented");- }-- // Trigger fancytreeinit after nodes have been loaded- dfd = this.nodeLoadChildren(rootCtx, source).done(function(){- tree.render();- if( ctx.options.selectMode === 3 ){- tree.rootNode.fixSelection3FromEndNodes();- }- if( tree.activeNode && tree.options.activeVisible ) {- tree.activeNode.makeVisible();- }- tree._triggerTreeEvent("init", null, { status: true });- }).fail(function(){- tree.render();- tree._triggerTreeEvent("init", null, { status: false });- });- return dfd;- },- /** Node was inserted into or removed from the tree.- * @param {EventData} ctx- * @param {boolean} add- * @param {FancytreeNode} node- */- treeRegisterNode: function(ctx, add, node) {- },- /** Widget got focus.- * @param {EventData} ctx- * @param {boolean} [flag=true]- */- treeSetFocus: function(ctx, flag, callOpts) {- function ensureTreeFocus(thisTree) {- if (!thisTree.activeNode && thisTree.getFirstChild()) {- thisTree.getFirstChild().setFocus();- }- }-- flag = (flag !== false);-- // this.debug("treeSetFocus(" + flag + "), callOpts: ", callOpts, this.hasFocus());- // this.debug(" focusNode: " + this.focusNode);- // this.debug(" activeNode: " + this.activeNode);- if( flag !== this.hasFocus() ){- this._hasFocus = flag;- if( !flag && this.focusNode ) {- // Node also looses focus if widget blurs- this.focusNode.setFocus(false);- } else if ( flag && (!callOpts || !callOpts.calledByNode) ) {- $(this.$container).focus();- }- this.$container.toggleClass("fancytree-treefocus", flag);- this._triggerTreeEvent(flag ? "focusTree" : "blurTree");- if( flag ) {- // Check after timeout to ensure mousedown processing is complete- // and the clicked node is already activated- var thisTree = this;- setTimeout(function() { ensureTreeFocus(thisTree); }, 0);- }- }- },- /** Widget option was set using `$().fancytree("option", "foo", "bar")`.- * @param {EventData} ctx- * @param {string} key option name- * @param {any} value option value- */- treeSetOption: function(ctx, key, value) {- var tree = ctx.tree,- callDefault = true,- rerender = false;-- switch( key ) {- case "aria":- case "checkbox":- case "icon":- case "minExpandLevel":- case "tabindex":- tree._callHook("treeCreate", tree);- rerender = true;- break;- case "escapeTitles":- case "tooltip":- rerender = true;- break;- case "rtl":- if( value === false ) {- tree.$container.removeAttr("DIR").removeClass("fancytree-rtl");- }else{- tree.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- }- rerender = true;- break;- case "source":- callDefault = false;- tree._callHook("treeLoad", tree, value);- rerender = true;- break;- }- tree.debug("set option " + key + "=" + value + " <" + typeof(value) + ">");- if(callDefault){- if( this.widget._super ) {- // jQuery UI 1.9+- this.widget._super.call( this.widget, key, value );- } else {- // jQuery UI <= 1.8, we have to manually invoke the _setOption method from the base widget- $.Widget.prototype._setOption.call(this.widget, key, value);- }- }- if(rerender){- tree.render(true, false); // force, not-deep- }- }-});---/* ******************************************************************************- * jQuery UI widget boilerplate- */--/**- * The plugin (derrived from <a href=" http://api.jqueryui.com/jQuery.widget/">jQuery.Widget</a>).<br>- * This constructor is not called directly. Use `$(selector).fancytree({})`- * to initialize the plugin instead.<br>- * <pre class="sh_javascript sunlight-highlight-javascript">// Access widget methods and members:- * var tree = $("#tree").fancytree("getTree");- * var node = $("#tree").fancytree("getActiveNode", "1234");- * </pre>- *- * @mixin Fancytree_Widget- */--$.widget("ui.fancytree",- /** @lends Fancytree_Widget# */- {- /**These options will be used as defaults- * @type {FancytreeOptions}- */- options:- {- activeVisible: true,- ajax: {- type: "GET",- cache: false, // false: Append random '_' argument to the request url to prevent caching.-// timeout: 0, // >0: Make sure we get an ajax error if server is unreachable- dataType: "json" // Expect json format and pass json object to callbacks.- }, //- aria: true,- autoActivate: true,- autoCollapse: false,- autoScroll: false,- checkbox: false,- clickFolderMode: 4,- debugLevel: null, // 0..2 (null: use global setting $.ui.fancytree.debugInfo)- disabled: false, // TODO: required anymore?- enableAspx: true, // TODO: document- escapeTitles: false,- extensions: [],- // fx: { height: "toggle", duration: 200 },- // toggleEffect: { effect: "drop", options: {direction: "left"}, duration: 200 },- // toggleEffect: { effect: "slide", options: {direction: "up"}, duration: 200 },- toggleEffect: { effect: "blind", options: {direction: "vertical", scale: "box"}, duration: 200 },- generateIds: false,- icon: true,- idPrefix: "ft_",- focusOnSelect: false,- keyboard: true,- keyPathSeparator: "/",- minExpandLevel: 1,- quicksearch: false,- rtl: false,- scrollOfs: {top: 0, bottom: 0},- scrollParent: null,- selectMode: 2,- strings: {- loading: "Loading...", // … would be escaped when escapeTitles is true- loadError: "Load error!",- moreData: "More...",- noData: "No data."- },- tabindex: "0",- titlesTabbable: false,- tooltip: false,- _classNames: {- node: "fancytree-node",- folder: "fancytree-folder",- animating: "fancytree-animating",- combinedExpanderPrefix: "fancytree-exp-",- combinedIconPrefix: "fancytree-ico-",- hasChildren: "fancytree-has-children",- active: "fancytree-active",- selected: "fancytree-selected",- expanded: "fancytree-expanded",- lazy: "fancytree-lazy",- focused: "fancytree-focused",- partload: "fancytree-partload",- partsel: "fancytree-partsel",- radio: "fancytree-radio",- // radiogroup: "fancytree-radiogroup",- unselectable: "fancytree-unselectable",- lastsib: "fancytree-lastsib",- loading: "fancytree-loading",- error: "fancytree-error",- statusNodePrefix: "fancytree-statusnode-"- },- // events- lazyLoad: null,- postProcess: null- },- /* Set up the widget, Called on first $().fancytree() */- _create: function() {- this.tree = new Fancytree(this);-- this.$source = this.source || this.element.data("type") === "json" ? this.element- : this.element.find(">ul:first");- // Subclass Fancytree instance with all enabled extensions- var extension, extName, i,- opts = this.options,- extensions = opts.extensions,- base = this.tree;-- for(i=0; i<extensions.length; i++){- extName = extensions[i];- extension = $.ui.fancytree._extensions[extName];- if(!extension){- $.error("Could not apply extension '" + extName + "' (it is not registered, did you forget to include it?)");- }- // Add extension options as tree.options.EXTENSION-// _assert(!this.tree.options[extName], "Extension name must not exist as option name: " + extName);- this.tree.options[extName] = $.extend(true, {}, extension.options, this.tree.options[extName]);- // Add a namespace tree.ext.EXTENSION, to hold instance data- _assert(this.tree.ext[extName] === undefined, "Extension name must not exist as Fancytree.ext attribute: '" + extName + "'");-// this.tree[extName] = extension;- this.tree.ext[extName] = {};- // Subclass Fancytree methods using proxies.- _subclassObject(this.tree, base, extension, extName);- // current extension becomes base for the next extension- base = extension;- }- //- if( opts.icons !== undefined ) { // 2015-11-16- if( opts.icon !== true ) {- $.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead");- } else {- this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead");- opts.icon = opts.icons;- }- }- if( opts.iconClass !== undefined ) { // 2015-11-16- if( opts.icon ) {- $.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead");- } else {- this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead");- opts.icon = opts.iconClass;- }- }- if( opts.tabbable !== undefined ) { // 2016-04-04- opts.tabindex = opts.tabbable ? "0" : "-1";- this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='" + opts.tabindex + "' instead");- }- //- this.tree._callHook("treeCreate", this.tree);- // Note: 'fancytreecreate' event is fired by widget base class-// this.tree._triggerTreeEvent("create");- },-- /* Called on every $().fancytree() */- _init: function() {- this.tree._callHook("treeInit", this.tree);- // TODO: currently we call bind after treeInit, because treeInit- // might change tree.$container.- // It would be better, to move ebent binding into hooks altogether- this._bind();- },-- /* Use the _setOption method to respond to changes to options */- _setOption: function(key, value) {- return this.tree._callHook("treeSetOption", this.tree, key, value);- },-- /** Use the destroy method to clean up any modifications your widget has made to the DOM */- destroy: function() {- this._unbind();- this.tree._callHook("treeDestroy", this.tree);- // In jQuery UI 1.8, you must invoke the destroy method from the base widget- $.Widget.prototype.destroy.call(this);- // TODO: delete tree and nodes to make garbage collect easier?- // TODO: In jQuery UI 1.9 and above, you would define _destroy instead of destroy and not call the base method- },-- // --------------------------------------------------------------------------- /* Remove all event handlers for our namespace */- _unbind: function() {- var ns = this.tree._ns;- this.element.off(ns);- this.tree.$container.off(ns);- $(document).off(ns);- },- /* Add mouse and kyboard handlers to the container */- _bind: function() {- var that = this,- opts = this.options,- tree = this.tree,- ns = tree._ns- // selstartEvent = ( $.support.selectstart ? "selectstart" : "mousedown" )- ;-- // Remove all previuous handlers for this tree- this._unbind();-- //alert("keydown" + ns + "foc=" + tree.hasFocus() + tree.$container);- // tree.debug("bind events; container: ", tree.$container);- tree.$container.on("focusin" + ns + " focusout" + ns, function(event){- var node = FT.getNode(event),- flag = (event.type === "focusin");- // tree.debug("Tree container got event " + event.type, node, event);- // tree.treeOnFocusInOut.call(tree, event);- if(node){- // For example clicking into an <input> that is part of a node- tree._callHook("nodeSetFocus", tree._makeHookContext(node, event), flag);- // tree._callHook("nodeSetFocus", node, flag);- }else{- tree._callHook("treeSetFocus", tree, flag);- }- }).on("selectstart" + ns, "span.fancytree-title", function(event){- // prevent mouse-drags to select text ranges- // tree.debug("<span title> got event " + event.type);- event.preventDefault();- }).on("keydown" + ns, function(event){- // TODO: also bind keyup and keypress- // tree.debug("got event " + event.type + ", hasFocus:" + tree.hasFocus());- // if(opts.disabled || opts.keyboard === false || !tree.hasFocus() ){- if(opts.disabled || opts.keyboard === false ){- return true;- }- var res,- node = tree.focusNode, // node may be null- ctx = tree._makeHookContext(node || tree, event),- prevPhase = tree.phase;-- try {- tree.phase = "userEvent";- // If a 'fancytreekeydown' handler returns false, skip the default- // handling (implemented by tree.nodeKeydown()).- if(node){- res = tree._triggerNodeEvent("keydown", node, event);- }else{- res = tree._triggerTreeEvent("keydown", event);- }- if ( res === "preventNav" ){- res = true; // prevent keyboard navigation, but don't prevent default handling of embedded input controls- } else if ( res !== false ){- res = tree._callHook("nodeKeydown", ctx);- }- return res;- } finally {- tree.phase = prevPhase;- }- }).on("mousedown" + ns + " dblclick" + ns, function(event){- // that.tree.debug("event(" + event + "): !");- if(opts.disabled){- return true;- }- var ctx,- et = FT.getEventTarget(event),- node = et.node,- tree = that.tree,- prevPhase = tree.phase;-- // that.tree.debug("event(" + event.type + "): node: ", node);- if( !node ){- return true; // Allow bubbling of other events- }- ctx = tree._makeHookContext(node, event);- // that.tree.debug("event(" + event.type + "): node: ", node);- try {- tree.phase = "userEvent";- switch(event.type) {- case "mousedown":- ctx.targetType = et.type;- if( node.isPagingNode() ) {- return tree._triggerNodeEvent("clickPaging", ctx, event) === true;- }- return ( tree._triggerNodeEvent("click", ctx, event) === false ) ? false : tree._callHook("nodeClick", ctx);- case "dblclick":- ctx.targetType = et.type;- return ( tree._triggerNodeEvent("dblclick", ctx, event) === false ) ? false : tree._callHook("nodeDblclick", ctx);- }-// } catch(e) {-// // var _ = null; // DT issue 117 // TODO-// $.error(e);- } finally {- tree.phase = prevPhase;- }- });- },- /** Return the active node or null.- * @returns {FancytreeNode}- */- getActiveNode: function() {- return this.tree.activeNode;- },- /** Return the matching node or null.- * @param {string} key- * @returns {FancytreeNode}- */- getNodeByKey: function(key) {- return this.tree.getNodeByKey(key);- },- /** Return the invisible system root node.- * @returns {FancytreeNode}- */- getRootNode: function() {- return this.tree.rootNode;- },- /** Return the current tree instance.- * @returns {Fancytree}- */- getTree: function() {- return this.tree;- }-});--// $.ui.fancytree was created by the widget factory. Create a local shortcut:-FT = $.ui.fancytree;--/**- * Static members in the `$.ui.fancytree` namespace.<br>- * <br>- * <pre class="sh_javascript sunlight-highlight-javascript">// Access static members:- * var node = $.ui.fancytree.getNode(element);- * alert($.ui.fancytree.version);- * </pre>- *- * @mixin Fancytree_Static- */-$.extend($.ui.fancytree,- /** @lends Fancytree_Static# */- {- /** @type {string} */- version: "2.23.0", // Set to semver by 'grunt release'- /** @type {string} */- buildType: "production", // Set to 'production' by 'grunt build'- /** @type {int} */- debugLevel: 1, // Set to 1 by 'grunt build'- // Used by $.ui.fancytree.debug() and as default for tree.options.debugLevel-- _nextId: 1,- _nextNodeKey: 1,- _extensions: {},- // focusTree: null,-- /** Expose class object as $.ui.fancytree._FancytreeClass */- _FancytreeClass: Fancytree,- /** Expose class object as $.ui.fancytree._FancytreeNodeClass */- _FancytreeNodeClass: FancytreeNode,- /* Feature checks to provide backwards compatibility */- jquerySupports: {- // http://jqueryui.com/upgrade-guide/1.9/#deprecated-offset-option-merged-into-my-and-at- positionMyOfs: isVersionAtLeast($.ui.version, 1, 9)- },- /** Throw an error if condition fails (debug method).- * @param {boolean} cond- * @param {string} msg- */- assert: function(cond, msg){- return _assert(cond, msg);- },- /** Return a function that executes *fn* at most every *timeout* ms.- * @param {integer} timeout- * @param {function} fn- * @param {boolean} [invokeAsap=false]- * @param {any} [ctx]- */- debounce: function(timeout, fn, invokeAsap, ctx) {- var timer;- if(arguments.length === 3 && typeof invokeAsap !== "boolean") {- ctx = invokeAsap;- invokeAsap = false;- }- return function() {- var args = arguments;- ctx = ctx || this;- invokeAsap && !timer && fn.apply(ctx, args);- clearTimeout(timer);- timer = setTimeout(function() {- invokeAsap || fn.apply(ctx, args);- timer = null;- }, timeout);- };- },- /** Write message to console if debugLevel >= 2- * @param {string} msg- */- debug: function(msg){- /*jshint expr:true */- ($.ui.fancytree.debugLevel >= 2) && consoleApply("log", arguments);- },- /** Write error message to console.- * @param {string} msg- */- error: function(msg){- consoleApply("error", arguments);- },- /** Convert <, >, &, ", ', / to the equivalent entities.- *- * @param {string} s- * @returns {string}- */- escapeHtml: _escapeHtml,- /** Make jQuery.position() arguments backwards compatible, i.e. if- * jQuery UI version <= 1.8, convert- * { my: "left+3 center", at: "left bottom", of: $target }- * to- * { my: "left center", at: "left bottom", of: $target, offset: "3 0" }- *- * See http://jqueryui.com/upgrade-guide/1.9/#deprecated-offset-option-merged-into-my-and-at- * and http://jsfiddle.net/mar10/6xtu9a4e/- */- fixPositionOptions: function(opts) {- if( opts.offset || ("" + opts.my + opts.at ).indexOf("%") >= 0 ) {- $.error("expected new position syntax (but '%' is not supported)");- }- if( ! $.ui.fancytree.jquerySupports.positionMyOfs ) {- var // parse 'left+3 center' into ['left+3 center', 'left', '+3', 'center', undefined]- myParts = /(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(opts.my),- atParts = /(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(opts.at),- // convert to numbers- dx = (myParts[2] ? (+myParts[2]) : 0) + (atParts[2] ? (+atParts[2]) : 0),- dy = (myParts[4] ? (+myParts[4]) : 0) + (atParts[4] ? (+atParts[4]) : 0);-- opts = $.extend({}, opts, { // make a copy and overwrite- my: myParts[1] + " " + myParts[3],- at: atParts[1] + " " + atParts[3]- });- if( dx || dy ) {- opts.offset = "" + dx + " " + dy;- }- }- return opts;- },- /** Return a {node: FancytreeNode, type: TYPE} object for a mouse event.- *- * @param {Event} event Mouse event, e.g. click, ...- * @returns {string} 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon' | undefined- */- getEventTargetType: function(event){- return this.getEventTarget(event).type;- },- /** Return a {node: FancytreeNode, type: TYPE} object for a mouse event.- *- * @param {Event} event Mouse event, e.g. click, ...- * @returns {object} Return a {node: FancytreeNode, type: TYPE} object- * TYPE: 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon' | undefined- */- getEventTarget: function(event){- var tcn = event && event.target ? event.target.className : "",- res = {node: this.getNode(event.target), type: undefined};- // We use a fast version of $(res.node).hasClass()- // See http://jsperf.com/test-for-classname/2- if( /\bfancytree-title\b/.test(tcn) ){- res.type = "title";- }else if( /\bfancytree-expander\b/.test(tcn) ){- res.type = (res.node.hasChildren() === false ? "prefix" : "expander");- // }else if( /\bfancytree-checkbox\b/.test(tcn) || /\bfancytree-radio\b/.test(tcn) ){- }else if( /\bfancytree-checkbox\b/.test(tcn) ){- res.type = "checkbox";- }else if( /\bfancytree-icon\b/.test(tcn) ){- res.type = "icon";- }else if( /\bfancytree-node\b/.test(tcn) ){- // Somewhere near the title- res.type = "title";- }else if( event && event.target && $(event.target).closest(".fancytree-title").length ) {- // #228: clicking an embedded element inside a title- res.type = "title";- }- return res;- },- /** Return a FancytreeNode instance from element, event, or jQuery object.- *- * @param {Element | jQueryObject | Event} el- * @returns {FancytreeNode} matching node or null- */- getNode: function(el){- if(el instanceof FancytreeNode){- return el; // el already was a FancytreeNode- }else if( el instanceof jQuery ){- el = el[0]; // el was a jQuery object: use the DOM element- }else if(el.originalEvent !== undefined){- el = el.target; // el was an Event- }- while( el ) {- if(el.ftnode) {- return el.ftnode;- }- el = el.parentNode;- }- return null;- },- /** Return a Fancytree instance, from element, index, event, or jQueryObject.- *- * @param {Element | jQueryObject | Event | integer | string} [el]- * @returns {Fancytree} matching tree or null- * @example- * $.ui.fancytree.getTree(); // Get first Fancytree instance on page- * $.ui.fancytree.getTree(1); // Get second Fancytree instance on page- * $.ui.fancytree.getTree("#tree"); // Get tree for this matching element- *- * @since 2.13- */- getTree: function(el){- var widget;-- if( el instanceof Fancytree ) {- return el; // el already was a Fancytree- }- if( el === undefined ) {- el = 0; // get first tree- }- if( typeof el === "number" ) {- el = $(".fancytree-container").eq(el); // el was an integer: return nth instance- } else if( typeof el === "string" ) {- el = $(el).eq(0); // el was a selector: use first match- } else if( el.selector !== undefined ) {- el = el.eq(0); // el was a jQuery object: use the first DOM element- } else if( el.originalEvent !== undefined ) {- el = $(el.target); // el was an Event- }- el = el.closest(":ui-fancytree");- widget = el.data("ui-fancytree") || el.data("fancytree"); // the latter is required by jQuery <= 1.8- return widget ? widget.tree : null;- },- /** Return an option value that has a default, but may be overridden by a- * callback or a node instance attribute.- *- * Evaluation sequence:<br>- *- * If tree.options.<optionName> is a callback that returns something, use that.<br>- * Else if node.<optionName> is defined, use that.<br>- * Else if tree.options.<optionName> is a value, use that.<br>- * Else use `defaultValue`.- *- * @param {string} optionName name of the option property (on node and tree)- * @param {FancytreeNode} node passed to the callback- * @param {object} nodeObject where to look for the local option property, e.g. `node` or `node.data`- * @param {object} treeOption where to look for the tree option, e.g. `tree.options` or `tree.options.dnd5`- * @param {any} [defaultValue]- * @returns {any}- *- * @example- * // Check for node.foo, tree,options.foo(), and tree.options.foo:- * $.ui.fancytree.evalOption("foo", node, node, tree.options);- * // Check for node.data.bar, tree,options.qux.bar(), and tree.options.qux.bar:- * $.ui.fancytree.evalOption("bar", node, node.data, tree.options.qux);- *- * @since 2.22- */- evalOption: function(optionName, node, nodeObject, treeOptions, defaultValue) {- var ctx, res,- tree = node.tree,- treeOpt = treeOptions[optionName],- nodeOpt = nodeObject[optionName];-- if( $.isFunction(treeOpt) ) {- ctx = { node: node, tree: tree, widget: tree.widget, options: tree.widget.options };- res = treeOpt.call(tree, {type: optionName}, ctx);- if( res == null ) {- res = nodeOpt;- }- } else {- res = (nodeOpt != null) ? nodeOpt : treeOpt;- }- if( res == null ) {- res = defaultValue; // no option set at all: return default- }- return res;- },- /** Convert a keydown or mouse event to a canonical string like 'ctrl+a',- * 'ctrl+shift+f2', 'shift+leftdblclick'.- *- * This is especially handy for switch-statements in event handlers.- *- * @param {event}- * @returns {string}- *- * @example-- switch( $.ui.fancytree.eventToString(event) ) {- case "-":- tree.nodeSetExpanded(ctx, false);- break;- case "shift+return":- tree.nodeSetActive(ctx, true);- break;- case "down":- res = node.navigate(event.which, activate, true);- break;- default:- handled = false;- }- if( handled ){- event.preventDefault();- }- */- eventToString: function(event) {- // Poor-man's hotkeys. See here for a complete implementation:- // https://github.com/jeresig/jquery.hotkeys- var which = event.which,- et = event.type,- s = [];-- if( event.altKey ) { s.push("alt"); }- if( event.ctrlKey ) { s.push("ctrl"); }- if( event.metaKey ) { s.push("meta"); }- if( event.shiftKey ) { s.push("shift"); }-- if( et === "click" || et === "dblclick" ) {- s.push(MOUSE_BUTTONS[event.button] + et);- } else {- if( !IGNORE_KEYCODES[which] ) {- s.push( SPECIAL_KEYCODES[which] || String.fromCharCode(which).toLowerCase() );- }- }- return s.join("+");- },- /** Write message to console if debugLevel >= 1- * @param {string} msg- */- info: function(msg){- /*jshint expr:true */- ($.ui.fancytree.debugLevel >= 1) && consoleApply("info", arguments);- },- /* @deprecated: use eventToString(event) instead.- */- keyEventToString: function(event) {- this.warn("keyEventToString() is deprecated: use eventToString()");- return this.eventToString(event);- },- /** Return a wrapped handler method, that provides `this.super`.- *- * @example- // Implement `opts.createNode` event to add the 'draggable' attribute- $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {- // Default processing if any- this._super.apply(this, arguments);- // Add 'draggable' attribute- data.node.span.draggable = true;- });- *- * @param {object} instance- * @param {string} methodName- * @param {function} handler- */- overrideMethod: function(instance, methodName, handler){- var prevSuper,- _super = instance[methodName] || $.noop;-- // context = context || this;-- instance[methodName] = function() {- try {- prevSuper = this._super;- this._super = _super;- return handler.apply(this, arguments);- } finally {- this._super = prevSuper;- }- };- },- /**- * Parse tree data from HTML <ul> markup- *- * @param {jQueryObject} $ul- * @returns {NodeData[]}- */- parseHtml: function($ul) {- // TODO: understand this:- /*jshint validthis:true */- var classes, className, extraClasses, i, iPos, l, tmp, tmp2,- $children = $ul.find(">li"),- children = [];-- $children.each(function() {- var allData, lowerCaseAttr,- $li = $(this),- $liSpan = $li.find(">span:first", this),- $liA = $liSpan.length ? null : $li.find(">a:first"),- d = { tooltip: null, data: {} };-- if( $liSpan.length ) {- d.title = $liSpan.html();-- } else if( $liA && $liA.length ) {- // If a <li><a> tag is specified, use it literally and extract href/target.- d.title = $liA.html();- d.data.href = $liA.attr("href");- d.data.target = $liA.attr("target");- d.tooltip = $liA.attr("title");-- } else {- // If only a <li> tag is specified, use the trimmed string up to- // the next child <ul> tag.- d.title = $li.html();- iPos = d.title.search(/<ul/i);- if( iPos >= 0 ){- d.title = d.title.substring(0, iPos);- }- }- d.title = $.trim(d.title);-- // Make sure all fields exist- for(i=0, l=CLASS_ATTRS.length; i<l; i++){- d[CLASS_ATTRS[i]] = undefined;- }- // Initialize to `true`, if class is set and collect extraClasses- classes = this.className.split(" ");- extraClasses = [];- for(i=0, l=classes.length; i<l; i++){- className = classes[i];- if(CLASS_ATTR_MAP[className]){- d[className] = true;- }else{- extraClasses.push(className);- }- }- d.extraClasses = extraClasses.join(" ");-- // Parse node options from ID, title and class attributes- tmp = $li.attr("title");- if( tmp ){- d.tooltip = tmp; // overrides <a title='...'>- }- tmp = $li.attr("id");- if( tmp ){- d.key = tmp;- }- // Translate hideCheckbox -> checkbox:false- if( $li.attr("hideCheckbox") ){- d.checkbox = false;- }- // Add <li data-NAME='...'> as node.data.NAME- allData = _getElementDataAsDict($li);- if( allData && !$.isEmptyObject(allData) ) {- // #507: convert data-hidecheckbox (lower case) to hideCheckbox- for( lowerCaseAttr in NODE_ATTR_LOWERCASE_MAP ) {- if( allData.hasOwnProperty(lowerCaseAttr) ) {- allData[NODE_ATTR_LOWERCASE_MAP[lowerCaseAttr]] = allData[lowerCaseAttr];- delete allData[lowerCaseAttr];- }- }- // #56: Allow to set special node.attributes from data-...- for(i=0, l=NODE_ATTRS.length; i<l; i++){- tmp = NODE_ATTRS[i];- tmp2 = allData[tmp];- if( tmp2 != null ) {- delete allData[tmp];- d[tmp] = tmp2;- }- }- // All other data-... goes to node.data...- $.extend(d.data, allData);- }- // Recursive reading of child nodes, if LI tag contains an UL tag- $ul = $li.find(">ul:first");- if( $ul.length ) {- d.children = $.ui.fancytree.parseHtml($ul);- }else{- d.children = d.lazy ? undefined : null;- }- children.push(d);-// FT.debug("parse ", d, children);- });- return children;- },- /** Add Fancytree extension definition to the list of globally available extensions.- *- * @param {object} definition- */- registerExtension: function(definition){- _assert(definition.name != null, "extensions must have a `name` property.");- _assert(definition.version != null, "extensions must have a `version` property.");- $.ui.fancytree._extensions[definition.name] = definition;- },- /** Inverse of escapeHtml().- *- * @param {string} s- * @returns {string}- */- unescapeHtml: function(s){- var e = document.createElement("div");- e.innerHTML = s;- return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;- },- /** Write warning message to console.- * @param {string} msg- */- warn: function(msg){- consoleApply("warn", arguments);- }-});--}(jQuery, window, document));--// Extending Fancytree-// ===================-//-// See also the [live demo](http://wwwendt.de/tech/fancytree/demo/sample-ext-childcounter.html) of this code.-//-// Every extension should have a comment header containing some information-// about the author, copyright and licensing. Also a pointer to the latest-// source code.-// Prefix with `/*!` so the comment is not removed by the minifier.--/*!- * jquery.fancytree.childcounter.js- *- * Add a child counter bubble to tree nodes.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--// To keep the global namespace clean, we wrap everything in a closure--;(function($, undefined) {--// Consider to use [strict mode](http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/)-"use strict";--// The [coding guidelines](http://contribute.jquery.org/style-guide/js/)-// require jshint compliance.-// But for this sample, we want to allow unused variables for demonstration purpose.--/*jshint unused:false */---// Adding methods-// ----------------// New member functions can be added to the `Fancytree` class.-// This function will be available for every tree instance:-//-// var tree = $("#tree").fancytree("getTree");-// tree.countSelected(false);--$.ui.fancytree._FancytreeClass.prototype.countSelected = function(topOnly){- var tree = this,- treeOptions = tree.options;-- return tree.getSelectedNodes(topOnly).length;-};---// The `FancytreeNode` class can also be easily extended. This would be called-// like-// node.updateCounters();-//-// It is also good practice to add a docstring comment.-/**- * [ext-childcounter] Update counter badges for `node` and its parents.- * May be called in the `loadChildren` event, to update parents of lazy loaded- * nodes.- * @alias FancytreeNode#updateCounters- * @requires jquery.fancytree.childcounters.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.updateCounters = function(){- var node = this,- $badge = $("span.fancytree-childcounter", node.span),- extOpts = node.tree.options.childcounter,- count = node.countChildren(extOpts.deep);-- node.data.childCounter = count;- if( (count || !extOpts.hideZeros) && (!node.isExpanded() || !extOpts.hideExpanded) ) {- if( !$badge.length ) {- $badge = $("<span class='fancytree-childcounter'/>").appendTo($("span.fancytree-icon", node.span));- }- $badge.text(count);- } else {- $badge.remove();- }- if( extOpts.deep && !node.isTopLevel() && !node.isRoot() ) {- node.parent.updateCounters();- }-};---// Finally, we can extend the widget API and create functions that are called-// like so:-//-// $("#tree").fancytree("widgetMethod1", "abc");--$.ui.fancytree.prototype.widgetMethod1 = function(arg1){- var tree = this.tree;- return arg1;-};---// Register a Fancytree extension-// -------------------------------// A full blown extension, extension is available for all trees and can be-// enabled like so (see also the [live demo](http://wwwendt.de/tech/fancytree/demo/sample-ext-childcounter.html)):-//-// <script src="../src/jquery.fancytree.js"></script>-// <script src="../src/jquery.fancytree.childcounter.js"></script>-// ...-//-// $("#tree").fancytree({-// extensions: ["childcounter"],-// childcounter: {-// hideExpanded: true-// },-// ...-// });-//---/* 'childcounter' extension */-$.ui.fancytree.registerExtension({-// Every extension must be registered by a unique name.- name: "childcounter",-// Version information should be compliant with [semver](http://semver.org)- version: "2.23.0",--// Extension specific options and their defaults.-// This options will be available as `tree.options.childcounter.hideExpanded`-- options: {- deep: true,- hideZeros: true,- hideExpanded: false- },--// Attributes other than `options` (or functions) can be defined here, and-// will be added to the tree.ext.EXTNAME namespace, in this case `tree.ext.childcounter.foo`.-// They can also be accessed as `this._local.foo` from within the extension-// methods.- foo: 42,--// Local functions are prefixed with an underscore '_'.-// Callable as `this._local._appendCounter()`.-- _appendCounter: function(bar){- var tree = this;- },--// **Override virtual methods for this extension.**-//-// Fancytree implements a number of 'hook methods', prefixed by 'node...' or 'tree...'.-// with a `ctx` argument (see [EventData](http://www.wwwendt.de/tech/fancytree/doc/jsdoc/global.html#EventData)-// for details) and an extended calling context:<br>-// `this` : the Fancytree instance<br>-// `this._local`: the namespace that contains extension attributes and private methods (same as this.ext.EXTNAME)<br>-// `this._super`: the virtual function that was overridden (member of previous extension or Fancytree)-//-// See also the [complete list of available hook functions](http://www.wwwendt.de/tech/fancytree/doc/jsdoc/Fancytree_Hooks.html).-- /* Init */-// `treeInit` is triggered when a tree is initalized. We can set up classes or-// bind event handlers here...- treeInit: function(ctx){- var tree = this, // same as ctx.tree,- opts = ctx.options,- extOpts = ctx.options.childcounter;-// Optionally check for dependencies with other extensions- /* this._requireExtension("glyph", false, false); */-// Call the base implementation- this._superApply(arguments);-// Add a class to the tree container- this.$container.addClass("fancytree-ext-childcounter");- },--// Destroy this tree instance (we only call the default implementation, so-// this method could as well be omitted).-- treeDestroy: function(ctx){- this._superApply(arguments);- },--// Overload the `renderTitle` hook, to append a counter badge- nodeRenderTitle: function(ctx, title) {- var node = ctx.node,- extOpts = ctx.options.childcounter,- count = (node.data.childCounter == null) ? node.countChildren(extOpts.deep) : +node.data.childCounter;-// Let the base implementation render the title-// We use `_super()` instead of `_superApply()` here, since it is a little bit-// more performant when called often- this._super(ctx, title);-// Append a counter badge- if( (count || ! extOpts.hideZeros) && (!node.isExpanded() || !extOpts.hideExpanded) ){- $("span.fancytree-icon", node.span).append($("<span class='fancytree-childcounter'/>").text(count));- }- },-// Overload the `setExpanded` hook, so the counters are updated- nodeSetExpanded: function(ctx, flag, callOpts) {- var tree = ctx.tree,- node = ctx.node;-// Let the base implementation expand/collapse the node, then redraw the title-// after the animation has finished- return this._superApply(arguments).always(function(){- tree.nodeRenderTitle(ctx);- });- }--// End of extension definition-});-// End of namespace closure-}(jQuery));--/*!- *- * jquery.fancytree.clones.js- * Support faster lookup of nodes by key and shared ref-ids.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/*******************************************************************************- * Private functions and variables- */-function _assert(cond, msg){- // TODO: see qunit.js extractStacktrace()- if(!cond){- msg = msg ? ": " + msg : "";- $.error("Assertion failed" + msg);- }-}---/* Return first occurrence of member from array. */-function _removeArrayMember(arr, elem) {- // TODO: use Array.indexOf for IE >= 9- var i;- for (i = arr.length - 1; i >= 0; i--) {- if (arr[i] === elem) {- arr.splice(i, 1);- return true;- }- }- return false;-}---// /**-// * Calculate a 32 bit FNV-1a hash-// * Found here: https://gist.github.com/vaiorabbit/5657561-// * Ref.: http://isthe.com/chongo/tech/comp/fnv/-// *-// * @param {string} str the input value-// * @param {boolean} [asString=false] set to true to return the hash value as-// * 8-digit hex string instead of an integer-// * @param {integer} [seed] optionally pass the hash of the previous chunk-// * @returns {integer | string}-// */-// function hashFnv32a(str, asString, seed) {-// /*jshint bitwise:false */-// var i, l,-// hval = (seed === undefined) ? 0x811c9dc5 : seed;--// for (i = 0, l = str.length; i < l; i++) {-// hval ^= str.charCodeAt(i);-// hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24);-// }-// if( asString ){-// // Convert to 8 digit hex string-// return ("0000000" + (hval >>> 0).toString(16)).substr(-8);-// }-// return hval >>> 0;-// }---/**- * JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)- *- * @author <a href="mailto:[email protected]">Gary Court</a>- * @see http://github.com/garycourt/murmurhash-js- * @author <a href="mailto:[email protected]">Austin Appleby</a>- * @see http://sites.google.com/site/murmurhash/- *- * @param {string} key ASCII only- * @param {boolean} [asString=false]- * @param {number} seed Positive integer only- * @return {number} 32-bit positive integer hash- */-function hashMurmur3(key, asString, seed) {- /*jshint bitwise:false */- var h1b, k1,- remainder = key.length & 3,- bytes = key.length - remainder,- h1 = seed,- c1 = 0xcc9e2d51,- c2 = 0x1b873593,- i = 0;-- while (i < bytes) {- k1 =- ((key.charCodeAt(i) & 0xff)) |- ((key.charCodeAt(++i) & 0xff) << 8) |- ((key.charCodeAt(++i) & 0xff) << 16) |- ((key.charCodeAt(++i) & 0xff) << 24);- ++i;-- k1 = ((((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16))) & 0xffffffff;- k1 = (k1 << 15) | (k1 >>> 17);- k1 = ((((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16))) & 0xffffffff;-- h1 ^= k1;- h1 = (h1 << 13) | (h1 >>> 19);- h1b = ((((h1 & 0xffff) * 5) + ((((h1 >>> 16) * 5) & 0xffff) << 16))) & 0xffffffff;- h1 = (((h1b & 0xffff) + 0x6b64) + ((((h1b >>> 16) + 0xe654) & 0xffff) << 16));- }-- k1 = 0;-- switch (remainder) {- /*jshint -W086:true */- case 3: k1 ^= (key.charCodeAt(i + 2) & 0xff) << 16;- case 2: k1 ^= (key.charCodeAt(i + 1) & 0xff) << 8;- case 1: k1 ^= (key.charCodeAt(i) & 0xff);-- k1 = (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0xffffffff;- k1 = (k1 << 15) | (k1 >>> 17);- k1 = (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0xffffffff;- h1 ^= k1;- }-- h1 ^= key.length;-- h1 ^= h1 >>> 16;- h1 = (((h1 & 0xffff) * 0x85ebca6b) + ((((h1 >>> 16) * 0x85ebca6b) & 0xffff) << 16)) & 0xffffffff;- h1 ^= h1 >>> 13;- h1 = ((((h1 & 0xffff) * 0xc2b2ae35) + ((((h1 >>> 16) * 0xc2b2ae35) & 0xffff) << 16))) & 0xffffffff;- h1 ^= h1 >>> 16;-- if( asString ){- // Convert to 8 digit hex string- return ("0000000" + (h1 >>> 0).toString(16)).substr(-8);- }- return h1 >>> 0;-}--// console.info(hashMurmur3("costarring"));-// console.info(hashMurmur3("costarring", true));-// console.info(hashMurmur3("liquid"));-// console.info(hashMurmur3("liquid", true));---/*- * Return a unique key for node by calculationg the hash of the parents refKey-list- */-function calcUniqueKey(node) {- var key,- path = $.map(node.getParentList(false, true), function(e){ return e.refKey || e.key; });- path = path.join("/");- key = "id_" + hashMurmur3(path, true);- // node.debug(path + " -> " + key);- return key;-}---/**- * [ext-clones] Return a list of clone-nodes or null.- * @param {boolean} [includeSelf=false]- * @returns {FancytreeNode[] | null}- *- * @alias FancytreeNode#getCloneList- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.getCloneList = function(includeSelf){- var key,- tree = this.tree,- refList = tree.refMap[this.refKey] || null,- keyMap = tree.keyMap;-- if( refList ) {- key = this.key;- // Convert key list to node list- if( includeSelf ) {- refList = $.map(refList, function(val){ return keyMap[val]; });- } else {- refList = $.map(refList, function(val){ return val === key ? null : keyMap[val]; });- if( refList.length < 1 ) {- refList = null;- }- }- }- return refList;-};---/**- * [ext-clones] Return true if this node has at least another clone with same refKey.- * @returns {boolean}- *- * @alias FancytreeNode#isClone- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.isClone = function(){- var refKey = this.refKey || null,- refList = refKey && this.tree.refMap[refKey] || null;- return !!(refList && refList.length > 1);-};---/**- * [ext-clones] Update key and/or refKey for an existing node.- * @param {string} key- * @param {string} refKey- * @returns {boolean}- *- * @alias FancytreeNode#reRegister- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.reRegister = function(key, refKey){- key = (key == null) ? null : "" + key;- refKey = (refKey == null) ? null : "" + refKey;- // this.debug("reRegister", key, refKey);-- var tree = this.tree,- prevKey = this.key,- prevRefKey = this.refKey,- keyMap = tree.keyMap,- refMap = tree.refMap,- refList = refMap[prevRefKey] || null,-// curCloneKeys = refList ? node.getCloneList(true),- modified = false;-- // Key has changed: update all references- if( key != null && key !== this.key ) {- if( keyMap[key] ) {- $.error("[ext-clones] reRegister(" + key + "): already exists: " + this);- }- // Update keyMap- delete keyMap[prevKey];- keyMap[key] = this;- // Update refMap- if( refList ) {- refMap[prevRefKey] = $.map(refList, function(e){- return e === prevKey ? key : e;- });- }- this.key = key;- modified = true;- }-- // refKey has changed- if( refKey != null && refKey !== this.refKey ) {- // Remove previous refKeys- if( refList ){- if( refList.length === 1 ){- delete refMap[prevRefKey];- }else{- refMap[prevRefKey] = $.map(refList, function(e){- return e === prevKey ? null : e;- });- }- }- // Add refKey- if( refMap[refKey] ) {- refMap[refKey].append(key);- }else{- refMap[refKey] = [ this.key ];- }- this.refKey = refKey;- modified = true;- }- return modified;-};---/**- * [ext-clones] Define a refKey for an existing node.- * @param {string} refKey- * @returns {boolean}- *- * @alias FancytreeNode#setRefKey- * @requires jquery.fancytree.clones.js- * @since 2.16- */-$.ui.fancytree._FancytreeNodeClass.prototype.setRefKey = function(refKey){- return this.reRegister(null, refKey);-};---/**- * [ext-clones] Return all nodes with a given refKey (null if not found).- * @param {string} refKey- * @param {FancytreeNode} [rootNode] optionally restrict results to descendants of this node- * @returns {FancytreeNode[] | null}- * @alias Fancytree#getNodesByRef- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeClass.prototype.getNodesByRef = function(refKey, rootNode){- var keyMap = this.keyMap,- refList = this.refMap[refKey] || null;-- if( refList ) {- // Convert key list to node list- if( rootNode ) {- refList = $.map(refList, function(val){- var node = keyMap[val];- return node.isDescendantOf(rootNode) ? node : null;- });- }else{- refList = $.map(refList, function(val){ return keyMap[val]; });- }- if( refList.length < 1 ) {- refList = null;- }- }- return refList;-};---/**- * [ext-clones] Replace a refKey with a new one.- * @param {string} oldRefKey- * @param {string} newRefKey- * @alias Fancytree#changeRefKey- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeClass.prototype.changeRefKey = function(oldRefKey, newRefKey) {- var i, node,- keyMap = this.keyMap,- refList = this.refMap[oldRefKey] || null;-- if (refList) {- for (i = 0; i < refList.length; i++) {- node = keyMap[refList[i]];- node.refKey = newRefKey;- }- delete this.refMap[oldRefKey];- this.refMap[newRefKey] = refList;- }-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "clones",- version: "2.23.0",- // Default options for this extension.- options: {- highlightActiveClones: true, // set 'fancytree-active-clone' on active clones and all peers- highlightClones: false // set 'fancytree-clone' class on any node that has at least one clone- },-- treeCreate: function(ctx){- this._superApply(arguments);- ctx.tree.refMap = {};- ctx.tree.keyMap = {};- },- treeInit: function(ctx){- this.$container.addClass("fancytree-ext-clones");- _assert(ctx.options.defaultKey == null);- // Generate unique / reproducible default keys- ctx.options.defaultKey = function(node){- return calcUniqueKey(node);- };- // The default implementation loads initial data- this._superApply(arguments);- },- treeClear: function(ctx){- ctx.tree.refMap = {};- ctx.tree.keyMap = {};- return this._superApply(arguments);- },- treeRegisterNode: function(ctx, add, node) {- var refList, len,- tree = ctx.tree,- keyMap = tree.keyMap,- refMap = tree.refMap,- key = node.key,- refKey = (node && node.refKey != null) ? "" + node.refKey : null;--// ctx.tree.debug("clones.treeRegisterNode", add, node);-- if( node.isStatusNode() ){- return this._super(ctx, add, node);- }-- if( add ) {- if( keyMap[node.key] != null ) {- $.error("clones.treeRegisterNode: node.key already exists: " + node);- }- keyMap[key] = node;- if( refKey ) {- refList = refMap[refKey];- if( refList ) {- refList.push(key);- if( refList.length === 2 && ctx.options.clones.highlightClones ) {- // Mark peer node, if it just became a clone (no need to- // mark current node, since it will be rendered later anyway)- keyMap[refList[0]].renderStatus();- }- } else {- refMap[refKey] = [key];- }- // node.debug("clones.treeRegisterNode: add clone =>", refMap[refKey]);- }- }else {- if( keyMap[key] == null ) {- $.error("clones.treeRegisterNode: node.key not registered: " + node.key);- }- delete keyMap[key];- if( refKey ) {- refList = refMap[refKey];- // node.debug("clones.treeRegisterNode: remove clone BEFORE =>", refMap[refKey]);- if( refList ) {- len = refList.length;- if( len <= 1 ){- _assert(len === 1);- _assert(refList[0] === key);- delete refMap[refKey];- }else{- _removeArrayMember(refList, key);- // Unmark peer node, if this was the only clone- if( len === 2 && ctx.options.clones.highlightClones ) {-// node.debug("clones.treeRegisterNode: last =>", node.getCloneList());- keyMap[refList[0]].renderStatus();- }- }- // node.debug("clones.treeRegisterNode: remove clone =>", refMap[refKey]);- }- }- }- return this._super(ctx, add, node);- },- nodeRenderStatus: function(ctx) {- var $span, res,- node = ctx.node;-- res = this._super(ctx);-- if( ctx.options.clones.highlightClones ) {- $span = $(node[ctx.tree.statusClassPropName]);- // Only if span already exists- if( $span.length && node.isClone() ){-// node.debug("clones.nodeRenderStatus: ", ctx.options.clones.highlightClones);- $span.addClass("fancytree-clone");- }- }- return res;- },- nodeSetActive: function(ctx, flag, callOpts) {- var res,- scpn = ctx.tree.statusClassPropName,- node = ctx.node;-- res = this._superApply(arguments);-- if( ctx.options.clones.highlightActiveClones && node.isClone() ) {- $.each(node.getCloneList(true), function(idx, n){- // n.debug("clones.nodeSetActive: ", flag !== false);- $(n[scpn]).toggleClass("fancytree-active-clone", flag !== false);- });- }- return res;- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.dnd.js- *- * Drag-and-drop support (jQuery UI draggable/droppable).- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */-var didRegisterDnd = false,- classDropAccept = "fancytree-drop-accept",- classDropAfter = "fancytree-drop-after",- classDropBefore = "fancytree-drop-before",- classDropOver = "fancytree-drop-over",- classDropReject = "fancytree-drop-reject",- classDropTarget = "fancytree-drop-target";--/* Convert number to string and prepend +/-; return empty string for 0.*/-function offsetString(n){- return n === 0 ? "" : (( n > 0 ) ? ("+" + n) : ("" + n));-}--//--- Extend ui.draggable event handling ----------------------------------------function _registerDnd() {- if(didRegisterDnd){- return;- }-- // Register proxy-functions for draggable.start/drag/stop-- $.ui.plugin.add("draggable", "connectToFancytree", {- start: function(event, ui) {- // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10- var draggable = $(this).data("ui-draggable") || $(this).data("draggable"),- sourceNode = ui.helper.data("ftSourceNode") || null;-- if(sourceNode) {- // Adjust helper offset, so cursor is slightly outside top/left corner- draggable.offset.click.top = -2;- draggable.offset.click.left = + 16;- // Trigger dragStart event- // TODO: when called as connectTo..., the return value is ignored(?)- return sourceNode.tree.ext.dnd._onDragEvent("start", sourceNode, null, event, ui, draggable);- }- },- drag: function(event, ui) {- var ctx, isHelper, logObject,- // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10- draggable = $(this).data("ui-draggable") || $(this).data("draggable"),- sourceNode = ui.helper.data("ftSourceNode") || null,- prevTargetNode = ui.helper.data("ftTargetNode") || null,- targetNode = $.ui.fancytree.getNode(event.target),- dndOpts = sourceNode && sourceNode.tree.options.dnd;-- // logObject = sourceNode || prevTargetNode || $.ui.fancytree;- // logObject.debug("Drag event:", event, event.shiftKey);- if(event.target && !targetNode){- // We got a drag event, but the targetNode could not be found- // at the event location. This may happen,- // 1. if the mouse jumped over the drag helper,- // 2. or if a non-fancytree element is dragged- // We ignore it:- isHelper = $(event.target).closest("div.fancytree-drag-helper,#fancytree-drop-marker").length > 0;- if(isHelper){- logObject = sourceNode || prevTargetNode || $.ui.fancytree;- logObject.debug("Drag event over helper: ignored.");- return;- }- }- ui.helper.data("ftTargetNode", targetNode);-- if( dndOpts && dndOpts.updateHelper ) {- ctx = sourceNode.tree._makeHookContext(sourceNode, event, {- otherNode: targetNode,- ui: ui,- draggable: draggable,- dropMarker: $("#fancytree-drop-marker")- });- dndOpts.updateHelper.call(sourceNode.tree, sourceNode, ctx);- }-- // Leaving a tree node- if(prevTargetNode && prevTargetNode !== targetNode ) {- prevTargetNode.tree.ext.dnd._onDragEvent("leave", prevTargetNode, sourceNode, event, ui, draggable);- }- if(targetNode){- if(!targetNode.tree.options.dnd.dragDrop) {- // not enabled as drop target- } else if(targetNode === prevTargetNode) {- // Moving over same node- targetNode.tree.ext.dnd._onDragEvent("over", targetNode, sourceNode, event, ui, draggable);- }else{- // Entering this node first time- targetNode.tree.ext.dnd._onDragEvent("enter", targetNode, sourceNode, event, ui, draggable);- targetNode.tree.ext.dnd._onDragEvent("over", targetNode, sourceNode, event, ui, draggable);- }- }- // else go ahead with standard event handling- },- stop: function(event, ui) {- var logObject,- // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10:- draggable = $(this).data("ui-draggable") || $(this).data("draggable"),- sourceNode = ui.helper.data("ftSourceNode") || null,- targetNode = ui.helper.data("ftTargetNode") || null,- dropped = (event.type === "mouseup" && event.which === 1);-- if(!dropped){- logObject = sourceNode || targetNode || $.ui.fancytree;- logObject.debug("Drag was cancelled");- }- if(targetNode) {- if(dropped){- targetNode.tree.ext.dnd._onDragEvent("drop", targetNode, sourceNode, event, ui, draggable);- }- targetNode.tree.ext.dnd._onDragEvent("leave", targetNode, sourceNode, event, ui, draggable);- }- if(sourceNode){- sourceNode.tree.ext.dnd._onDragEvent("stop", sourceNode, null, event, ui, draggable);- }- }- });-- didRegisterDnd = true;-}---/* *****************************************************************************- * Drag and drop support- */-function _initDragAndDrop(tree) {- var dnd = tree.options.dnd || null,- glyph = tree.options.glyph || null;-- // Register 'connectToFancytree' option with ui.draggable- if( dnd ) {- _registerDnd();- }- // Attach ui.draggable to this Fancytree instance- if(dnd && dnd.dragStart ) {- tree.widget.element.draggable($.extend({- addClasses: false,- // DT issue 244: helper should be child of scrollParent:- appendTo: tree.$container,-// appendTo: "body",- containment: false,-// containment: "parent",- delay: 0,- distance: 4,- revert: false,- scroll: true, // to disable, also set css 'position: inherit' on ul.fancytree-container- scrollSpeed: 7,- scrollSensitivity: 10,- // Delegate draggable.start, drag, and stop events to our handler- connectToFancytree: true,- // Let source tree create the helper element- helper: function(event) {- var $helper, $nodeTag, opts,- sourceNode = $.ui.fancytree.getNode(event.target);-- if(!sourceNode){- // #405, DT issue 211: might happen, if dragging a table *header*- return "<div>ERROR?: helper requested but sourceNode not found</div>";- }- opts = sourceNode.tree.options.dnd;- $nodeTag = $(sourceNode.span);- // Only event and node argument is available- $helper = $("<div class='fancytree-drag-helper'><span class='fancytree-drag-helper-img' /></div>")- .css({zIndex: 3, position: "relative"}) // so it appears above ext-wide selection bar- .append($nodeTag.find("span.fancytree-title").clone());-- // Attach node reference to helper object- $helper.data("ftSourceNode", sourceNode);-- // Support glyph symbols instead of icons- if( glyph ) {- $helper.find(".fancytree-drag-helper-img")- .addClass(glyph.map.dragHelper);- }- // Allow to modify the helper, e.g. to add multi-node-drag feedback- if( opts.initHelper ) {- opts.initHelper.call(sourceNode.tree, sourceNode, {- node: sourceNode,- tree: sourceNode.tree,- originalEvent: event,- ui: { helper: $helper }- });- }- // We return an unconnected element, so `draggable` will add this- // to the parent specified as `appendTo` option- return $helper;- },- start: function(event, ui) {- var sourceNode = ui.helper.data("ftSourceNode");- return !!sourceNode; // Abort dragging if no node could be found- }- }, tree.options.dnd.draggable));- }- // Attach ui.droppable to this Fancytree instance- if(dnd && dnd.dragDrop) {- tree.widget.element.droppable($.extend({- addClasses: false,- tolerance: "intersect",- greedy: false-/*- activate: function(event, ui) {- tree.debug("droppable - activate", event, ui, this);- },- create: function(event, ui) {- tree.debug("droppable - create", event, ui);- },- deactivate: function(event, ui) {- tree.debug("droppable - deactivate", event, ui);- },- drop: function(event, ui) {- tree.debug("droppable - drop", event, ui);- },- out: function(event, ui) {- tree.debug("droppable - out", event, ui);- },- over: function(event, ui) {- tree.debug("droppable - over", event, ui);- }-*/- }, tree.options.dnd.droppable));- }-}---/* *****************************************************************************- *- */--$.ui.fancytree.registerExtension({- name: "dnd",- version: "2.23.0",- // Default options for this extension.- options: {- // Make tree nodes accept draggables- autoExpandMS: 1000, // Expand nodes after n milliseconds of hovering.- draggable: null, // Additional options passed to jQuery draggable- droppable: null, // Additional options passed to jQuery droppable- focusOnClick: false, // Focus, although draggable cancels mousedown event (#270)- preventVoidMoves: true, // Prevent dropping nodes 'before self', etc.- preventRecursiveMoves: true,// Prevent dropping nodes on own descendants- smartRevert: true, // set draggable.revert = true if drop was rejected- dropMarkerOffsetX: -24, // absolute position offset for .fancytree-drop-marker relatively to ..fancytree-title (icon/img near a node accepting drop)- dropMarkerInsertOffsetX: -16, // additional offset for drop-marker with hitMode = "before"/"after"- // Events (drag support)- dragStart: null, // Callback(sourceNode, data), return true, to enable dnd- dragStop: null, // Callback(sourceNode, data)- initHelper: null, // Callback(sourceNode, data)- updateHelper: null, // Callback(sourceNode, data)- // Events (drop support)- dragEnter: null, // Callback(targetNode, data)- dragOver: null, // Callback(targetNode, data)- dragExpand: null, // Callback(targetNode, data), return false to prevent autoExpand- dragDrop: null, // Callback(targetNode, data)- dragLeave: null // Callback(targetNode, data)- },-- treeInit: function(ctx){- var tree = ctx.tree;- this._superApply(arguments);- // issue #270: draggable eats mousedown events- if( tree.options.dnd.dragStart ){- tree.$container.on("mousedown", function(event){-// if( !tree.hasFocus() && ctx.options.dnd.focusOnClick ) {- if( ctx.options.dnd.focusOnClick ) { // #270- var node = $.ui.fancytree.getNode(event);- if (node){- node.debug("Re-enable focus that was prevented by jQuery UI draggable.");- // node.setFocus();- // $(node.span).closest(":tabbable").focus();- // $(event.target).trigger("focus");- // $(event.target).closest(":tabbable").trigger("focus");- }- setTimeout(function() { // #300- $(event.target).closest(":tabbable").focus();- }, 10);- }- });- }- _initDragAndDrop(tree);- },- /* Display drop marker according to hitMode ('after', 'before', 'over'). */- _setDndStatus: function(sourceNode, targetNode, helper, hitMode, accept) {- var markerOffsetX,- markerAt = "center",- instData = this._local,- dndOpt = this.options.dnd ,- glyphOpt = this.options.glyph,- $source = sourceNode ? $(sourceNode.span) : null,- $target = $(targetNode.span),- $targetTitle = $target.find("span.fancytree-title");-- if( !instData.$dropMarker ) {- instData.$dropMarker = $("<div id='fancytree-drop-marker'></div>")- .hide()- .css({"z-index": 1000})- .prependTo($(this.$div).parent());-// .prependTo("body");-- if( glyphOpt ) {- // instData.$dropMarker.addClass(glyph.map.dragHelper);- instData.$dropMarker- .addClass(glyphOpt.map.dropMarker);- }- }- if( hitMode === "after" || hitMode === "before" || hitMode === "over" ){- markerOffsetX = dndOpt.dropMarkerOffsetX || 0;- switch(hitMode){- case "before":- markerAt = "top";- markerOffsetX += (dndOpt.dropMarkerInsertOffsetX || 0);- break;- case "after":- markerAt = "bottom";- markerOffsetX += (dndOpt.dropMarkerInsertOffsetX || 0);- break;- }-- instData.$dropMarker- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropOver, hitMode === "over")- .toggleClass(classDropBefore, hitMode === "before")- .show()- .position($.ui.fancytree.fixPositionOptions({- my: "left" + offsetString(markerOffsetX) + " center",- at: "left " + markerAt,- of: $targetTitle- }));- } else {- instData.$dropMarker.hide();- }- if( $source ){- $source- .toggleClass(classDropAccept, accept === true)- .toggleClass(classDropReject, accept === false);- }- $target- .toggleClass(classDropTarget, hitMode === "after" || hitMode === "before" || hitMode === "over")- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropBefore, hitMode === "before")- .toggleClass(classDropAccept, accept === true)- .toggleClass(classDropReject, accept === false);-- helper- .toggleClass(classDropAccept, accept === true)- .toggleClass(classDropReject, accept === false);- },-- /*- * Handles drag'n'drop functionality.- *- * A standard jQuery drag-and-drop process may generate these calls:- *- * start:- * _onDragEvent("start", sourceNode, null, event, ui, draggable);- * drag:- * _onDragEvent("leave", prevTargetNode, sourceNode, event, ui, draggable);- * _onDragEvent("over", targetNode, sourceNode, event, ui, draggable);- * _onDragEvent("enter", targetNode, sourceNode, event, ui, draggable);- * stop:- * _onDragEvent("drop", targetNode, sourceNode, event, ui, draggable);- * _onDragEvent("leave", targetNode, sourceNode, event, ui, draggable);- * _onDragEvent("stop", sourceNode, null, event, ui, draggable);- */- _onDragEvent: function(eventName, node, otherNode, event, ui, draggable) {- // if(eventName !== "over"){- // this.debug("tree.ext.dnd._onDragEvent(%s, %o, %o) - %o", eventName, node, otherNode, this);- // }- var accept, nodeOfs, parentRect, rect, relPos, relPos2,- enterResponse, hitMode, r,- opts = this.options,- dnd = opts.dnd,- ctx = this._makeHookContext(node, event, {otherNode: otherNode, ui: ui, draggable: draggable}),- res = null,- that = this,- $nodeTag = $(node.span);-- if( dnd.smartRevert ) {- draggable.options.revert = "invalid";- }-- switch (eventName) {-- case "start":- if( node.isStatusNode() ) {- res = false;- } else if(dnd.dragStart) {- res = dnd.dragStart(node, ctx);- }- if(res === false) {- this.debug("tree.dragStart() cancelled");- //draggable._clear();- // NOTE: the return value seems to be ignored (drag is not cancelled, when false is returned)- // TODO: call this._cancelDrag()?- ui.helper.trigger("mouseup")- .hide();- } else {- if( dnd.smartRevert ) {- // #567, #593: fix revert position- // rect = node.li.getBoundingClientRect();- rect = node[ctx.tree.nodeContainerAttrName].getBoundingClientRect();- parentRect = $(draggable.options.appendTo)[0].getBoundingClientRect();- draggable.originalPosition.left = Math.max(0, rect.left - parentRect.left);- draggable.originalPosition.top = Math.max(0, rect.top - parentRect.top);- }- $nodeTag.addClass("fancytree-drag-source");- // Register global handlers to allow cancel- $(document)- .on("keydown.fancytree-dnd,mousedown.fancytree-dnd", function(event){- // node.tree.debug("dnd global event", event.type, event.which);- if( event.type === "keydown" && event.which === $.ui.keyCode.ESCAPE ) {- that.ext.dnd._cancelDrag();- } else if( event.type === "mousedown" ) {- that.ext.dnd._cancelDrag();- }- });- }- break;-- case "enter":- if(dnd.preventRecursiveMoves && node.isDescendantOf(otherNode)){- r = false;- }else{- r = dnd.dragEnter ? dnd.dragEnter(node, ctx) : null;- }- if(!r){- // convert null, undefined, false to false- res = false;- }else if ( $.isArray(r) ) {- // TODO: also accept passing an object of this format directly- res = {- over: ($.inArray("over", r) >= 0),- before: ($.inArray("before", r) >= 0),- after: ($.inArray("after", r) >= 0)- };- }else{- res = {- over: ((r === true) || (r === "over")),- before: ((r === true) || (r === "before")),- after: ((r === true) || (r === "after"))- };- }- ui.helper.data("enterResponse", res);- // this.debug("helper.enterResponse: %o", res);- break;-- case "over":- enterResponse = ui.helper.data("enterResponse");- hitMode = null;- if(enterResponse === false){- // Don't call dragOver if onEnter returned false.-// break;- } else if(typeof enterResponse === "string") {- // Use hitMode from onEnter if provided.- hitMode = enterResponse;- } else {- // Calculate hitMode from relative cursor position.- nodeOfs = $nodeTag.offset();- relPos = { x: event.pageX - nodeOfs.left,- y: event.pageY - nodeOfs.top };- relPos2 = { x: relPos.x / $nodeTag.width(),- y: relPos.y / $nodeTag.height() };-- if( enterResponse.after && relPos2.y > 0.75 ){- hitMode = "after";- } else if(!enterResponse.over && enterResponse.after && relPos2.y > 0.5 ){- hitMode = "after";- } else if(enterResponse.before && relPos2.y <= 0.25) {- hitMode = "before";- } else if(!enterResponse.over && enterResponse.before && relPos2.y <= 0.5) {- hitMode = "before";- } else if(enterResponse.over) {- hitMode = "over";- }- // Prevent no-ops like 'before source node'- // TODO: these are no-ops when moving nodes, but not in copy mode- if( dnd.preventVoidMoves ){- if(node === otherNode){- this.debug(" drop over source node prevented");- hitMode = null;- }else if(hitMode === "before" && otherNode && node === otherNode.getNextSibling()){- this.debug(" drop after source node prevented");- hitMode = null;- }else if(hitMode === "after" && otherNode && node === otherNode.getPrevSibling()){- this.debug(" drop before source node prevented");- hitMode = null;- }else if(hitMode === "over" && otherNode && otherNode.parent === node && otherNode.isLastSibling() ){- this.debug(" drop last child over own parent prevented");- hitMode = null;- }- }-// this.debug("hitMode: %s - %s - %s", hitMode, (node.parent === otherNode), node.isLastSibling());- ui.helper.data("hitMode", hitMode);- }- // Auto-expand node (only when 'over' the node, not 'before', or 'after')- if(hitMode !== "before" && hitMode !== "after" && dnd.autoExpandMS &&- node.hasChildren() !== false && !node.expanded &&- (!dnd.dragExpand || dnd.dragExpand(node, ctx) !== false)- ) {- node.scheduleAction("expand", dnd.autoExpandMS);- }- if(hitMode && dnd.dragOver){- // TODO: http://code.google.com/p/dynatree/source/detail?r=625- ctx.hitMode = hitMode;- res = dnd.dragOver(node, ctx);- }- accept = (res !== false && hitMode !== null);- if( dnd.smartRevert ) {- draggable.options.revert = !accept;- }- this._local._setDndStatus(otherNode, node, ui.helper, hitMode, accept);- break;-- case "drop":- hitMode = ui.helper.data("hitMode");- if(hitMode && dnd.dragDrop){- ctx.hitMode = hitMode;- dnd.dragDrop(node, ctx);- }- break;-- case "leave":- // Cancel pending expand request- node.scheduleAction("cancel");- ui.helper.data("enterResponse", null);- ui.helper.data("hitMode", null);- this._local._setDndStatus(otherNode, node, ui.helper, "out", undefined);- if(dnd.dragLeave){- dnd.dragLeave(node, ctx);- }- break;-- case "stop":- $nodeTag.removeClass("fancytree-drag-source");- $(document).off(".fancytree-dnd");- if(dnd.dragStop){- dnd.dragStop(node, ctx);- }- break;-- default:- $.error("Unsupported drag event: " + eventName);- }- return res;- },-- _cancelDrag: function() {- var dd = $.ui.ddmanager.current;- if(dd){- dd.cancel();- }- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.dnd5.js- *- * Drag-and-drop support (native HTML5).- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--- /*- #TODO- - glyph-- Compatiblity when dragging between *separate* windows:-- Drag from Chrome Edge FF IE11 Safari- To Chrome ok ok ok NO ?- Edge ok ok ok NO ?- FF ok ok ok NO ?- IE 11 ok ok ok ok ?- Safari ? ? ? ? ok-- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */-var- classDragSource = "fancytree-drag-source",- classDragRemove = "fancytree-drag-remove",- classDropAccept = "fancytree-drop-accept",- classDropAfter = "fancytree-drop-after",- classDropBefore = "fancytree-drop-before",- classDropOver = "fancytree-drop-over",- classDropReject = "fancytree-drop-reject",- classDropTarget = "fancytree-drop-target",- nodeMimeType = "application/x-fancytree-node",- $dropMarker = null,- SOURCE_NODE = null,- DRAG_ENTER_RESPONSE = null,- LAST_HIT_MODE = null;--/* Convert number to string and prepend +/-; return empty string for 0.*/-function offsetString(n){- return n === 0 ? "" : (( n > 0 ) ? ("+" + n) : ("" + n));-}--/* Convert a dragEnter() or dragOver() response to a canonical form.- * Return false or plain object- * @param {string|object|boolean} r- * @return {object|false}- */-function normalizeDragEnterResponse(r) {- var res;-- if( !r ){- return false;- }- if ( $.isPlainObject(r) ) {- res = {- over: !!r.over,- before: !!r.before,- after: !!r.after- };- }else if ( $.isArray(r) ) {- res = {- over: ($.inArray("over", r) >= 0),- before: ($.inArray("before", r) >= 0),- after: ($.inArray("after", r) >= 0)- };- }else{- res = {- over: ((r === true) || (r === "over")),- before: ((r === true) || (r === "before")),- after: ((r === true) || (r === "after"))- };- }- if( Object.keys(res).length === 0 ) {- return false;- }- // if( Object.keys(res).length === 1 ) {- // res.unique = res[0];- // }- return res;-}--/* Implement auto scrolling when drag cursor is in top/bottom area of scroll parent. */-function autoScroll(tree, event) {- var spOfs, scrollTop, delta,- dndOpts = tree.options.dnd5,- sp = tree.$scrollParent[0],- sensitivity = dndOpts.scrollSensitivity,- speed = dndOpts.scrollSpeed,- scrolled = 0;-- if ( sp !== document && sp.tagName !== "HTML" ) {- spOfs = tree.$scrollParent.offset();- scrollTop = sp.scrollTop;- if ( spOfs.top + sp.offsetHeight - event.pageY < sensitivity ) {- delta = (sp.scrollHeight - tree.$scrollParent.innerHeight() - scrollTop);- // console.log ("sp.offsetHeight: " + sp.offsetHeight- // + ", spOfs.top: " + spOfs.top- // + ", scrollTop: " + scrollTop- // + ", innerHeight: " + tree.$scrollParent.innerHeight()- // + ", scrollHeight: " + sp.scrollHeight- // + ", delta: " + delta- // );- if( delta > 0 ) {- sp.scrollTop = scrolled = scrollTop + speed;- }- } else if ( scrollTop > 0 && event.pageY - spOfs.top < sensitivity ) {- sp.scrollTop = scrolled = scrollTop - speed;- }- } else {- scrollTop = $(document).scrollTop();- if (scrollTop > 0 && event.pageY - scrollTop < sensitivity) {- scrolled = scrollTop - speed;- $(document).scrollTop(scrolled);- } else if ($(window).height() - (event.pageY - scrollTop) < sensitivity) {- scrolled = scrollTop + speed;- $(document).scrollTop(scrolled);- }- }- if( scrolled ) {- tree.debug("autoScroll: " + scrolled + "px");- }- return scrolled;-}--/* Handle dragover event (fired every x ms) and return hitMode. */-function handleDragOver(event, data) {- // Implement auto-scrolling- if ( data.options.dnd5.scroll ) {- autoScroll(data.tree, event);- }- // Bail out with previous response if we get an invalid dragover- if( !data.node ) {- data.tree.warn("Ignore dragover for non-node"); //, event, data);- return LAST_HIT_MODE;- }-- var markerOffsetX, nodeOfs, relPosY, //res,- // eventHash = getEventHash(event),- hitMode = null,- tree = data.tree,- options = tree.options,- dndOpts = options.dnd5,- targetNode = data.node,- sourceNode = data.otherNode,- markerAt = "center",- // glyph = options.glyph || null,- // $source = sourceNode ? $(sourceNode.span) : null,- $target = $(targetNode.span),- $targetTitle = $target.find("span.fancytree-title");-- if(DRAG_ENTER_RESPONSE === false){- tree.warn("Ignore dragover, since dragenter returned false"); //, event, data);- // $.error("assert failed: dragenter returned false");- return false;- } else if(typeof DRAG_ENTER_RESPONSE === "string") {- $.error("assert failed: dragenter returned string");- // Use hitMode from onEnter if provided.- // hitMode = DRAG_ENTER_RESPONSE;- } else {- // Calculate hitMode from relative cursor position.- nodeOfs = $target.offset();- relPosY = (event.pageY - nodeOfs.top) / $target.height();-- if( DRAG_ENTER_RESPONSE.after && relPosY > 0.75 ){- hitMode = "after";- } else if(!DRAG_ENTER_RESPONSE.over && DRAG_ENTER_RESPONSE.after && relPosY > 0.5 ){- hitMode = "after";- } else if(DRAG_ENTER_RESPONSE.before && relPosY <= 0.25) {- hitMode = "before";- } else if(!DRAG_ENTER_RESPONSE.over && DRAG_ENTER_RESPONSE.before && relPosY <= 0.5) {- hitMode = "before";- } else if(DRAG_ENTER_RESPONSE.over) {- hitMode = "over";- }- // Prevent no-ops like 'before source node'- // TODO: these are no-ops when moving nodes, but not in copy mode- if( dndOpts.preventVoidMoves ){- if(targetNode === sourceNode){- targetNode.debug("drop over source node prevented");- hitMode = null;- }else if(hitMode === "before" && sourceNode && targetNode === sourceNode.getNextSibling()){- targetNode.debug("drop after source node prevented");- hitMode = null;- }else if(hitMode === "after" && sourceNode && targetNode === sourceNode.getPrevSibling()){- targetNode.debug("drop before source node prevented");- hitMode = null;- }else if(hitMode === "over" && sourceNode && sourceNode.parent === targetNode && sourceNode.isLastSibling() ){- targetNode.debug("drop last child over own parent prevented");- hitMode = null;- }- }- }- // Let callback modify the calculated hitMode- data.hitMode = hitMode;- if(hitMode && dndOpts.dragOver){- // TODO: http://code.google.com/p/dynatree/source/detail?r=625- dndOpts.dragOver(targetNode, data);- hitMode = data.hitMode;- }- // LAST_DROP_EFFECT = data.dataTransfer.dropEffect;- // LAST_EFFECT_ALLOWED = data.dataTransfer.effectAllowed;- LAST_HIT_MODE = hitMode;- //- if( hitMode === "after" || hitMode === "before" || hitMode === "over" ){- markerOffsetX = dndOpts.dropMarkerOffsetX || 0;- switch(hitMode){- case "before":- markerAt = "top";- markerOffsetX += (dndOpts.dropMarkerInsertOffsetX || 0);- break;- case "after":- markerAt = "bottom";- markerOffsetX += (dndOpts.dropMarkerInsertOffsetX || 0);- break;- }-- $dropMarker- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropOver, hitMode === "over")- .toggleClass(classDropBefore, hitMode === "before")- .show()- .position($.ui.fancytree.fixPositionOptions({- my: "left" + offsetString(markerOffsetX) + " center",- at: "left " + markerAt,- of: $targetTitle- }));- } else {- $dropMarker.hide();- // console.log("hide dropmarker")- }- // if( $source ){- // $source.toggleClass(classDragRemove, isMove);- // }- $(targetNode.span)- .toggleClass(classDropTarget, hitMode === "after" || hitMode === "before" || hitMode === "over")- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropBefore, hitMode === "before")- .toggleClass(classDropAccept, hitMode === "over")- .toggleClass(classDropReject, hitMode === false);-- return hitMode;-}--/* *****************************************************************************- *- */--$.ui.fancytree.registerExtension({- name: "dnd5",- version: "2.23.0",- // Default options for this extension.- options: {- autoExpandMS: 1500, // Expand nodes after n milliseconds of hovering- setTextTypeJson: false, // Allow dragging of nodes to different IE windows- preventForeignNodes: false, // Prevent dropping nodes from different Fancytrees- preventNonNodes: false, // Prevent dropping items other than Fancytree nodes- preventRecursiveMoves: true, // Prevent dropping nodes on own descendants- preventVoidMoves: true, // Prevent dropping nodes 'before self', etc.- scroll: true, // Enable auto-scrolling while dragging- scrollSensitivity: 20, // Active top/bottom margin in pixel- scrollSpeed: 5, // Pixel per event- dropMarkerOffsetX: -24, // absolute position offset for .fancytree-drop-marker relatively to ..fancytree-title (icon/img near a node accepting drop)- dropMarkerInsertOffsetX: -16,// additional offset for drop-marker with hitMode = "before"/"after"- // Events (drag support)- dragStart: null, // Callback(sourceNode, data), return true, to enable dnd drag- dragDrag: $.noop, // Callback(sourceNode, data)- dragEnd: $.noop, // Callback(sourceNode, data)- // Events (drop support)- dragEnter: null, // Callback(targetNode, data), return true, to enable dnd drop- dragOver: $.noop, // Callback(targetNode, data)- dragExpand: $.noop, // Callback(targetNode, data), return false to prevent autoExpand- dragDrop: $.noop, // Callback(targetNode, data)- dragLeave: $.noop // Callback(targetNode, data)- },-- treeInit: function(ctx){- var tree = ctx.tree,- opts = ctx.options,- dndOpts = opts.dnd5,- getNode = $.ui.fancytree.getNode;-- if( $.inArray("dnd", opts.extensions) >= 0 ) {- $.error("Extensions 'dnd' and 'dnd5' are mutually exclusive.");- }- if( dndOpts.dragStop ) {- $.error("dragStop is not used by ext-dnd5. Use dragEnd instead.");- }-- // Implement `opts.createNode` event to add the 'draggable' attribute- // #680: this must happen before calling super.treeInit()- if( dndOpts.dragStart ) {- $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {- // Default processing if any- this._super.apply(this, arguments);-- data.node.span.draggable = true;- });- }- this._superApply(arguments);-- this.$container.addClass("fancytree-ext-dnd5");-- // Store the current scroll parent, which may be the tree- // container, any enclosing div, or the document- this.$scrollParent = this.$container.children(":first").scrollParent();-- $dropMarker = $("#fancytree-drop-marker");- if( !$dropMarker.length ) {- $dropMarker = $("<div id='fancytree-drop-marker'></div>")- .hide()- .css({- "z-index": 1000,- // Drop marker should not steal dragenter/dragover events:- "pointer-events": "none"- }).prependTo("body");- // if( glyph ) {- // instData.$dropMarker- // .addClass(glyph.map.dropMarker);- // }- }- // Enable drag support if dragStart() is specified:- if( dndOpts.dragStart ) {- // Bind drag event handlers- tree.$container.on("dragstart drag dragend", function(event){- var json,- node = getNode(event),- dataTransfer = event.dataTransfer || event.originalEvent.dataTransfer,- isMove = dataTransfer.dropEffect === "move",- $source = node ? $(node.span) : null,- data = {- node: node,- tree: tree,- options: tree.options,- originalEvent: event,- dataTransfer: dataTransfer,-// dropEffect: undefined, // set by dragend- isCancelled: undefined // set by dragend- };-- switch( event.type ) {-- case "dragstart":- $(node.span).addClass(classDragSource);-- // Store current source node in different formats- SOURCE_NODE = node;-- // Set payload- // Note:- // Transfer data is only accessible on dragstart and drop!- // For all other events the formats and kinds in the drag- // data store list of items representing dragged data can be- // enumerated, but the data itself is unavailable and no new- // data can be added.- json = JSON.stringify(node.toDict());- try {- dataTransfer.setData(nodeMimeType, json);- dataTransfer.setData("text/html", $(node.span).html());- dataTransfer.setData("text/plain", node.title);- } catch(ex) {- // IE only accepts 'text' type- tree.warn("Could not set data (IE only accepts 'text') - " + ex);- }- // We always need to set the 'text' type if we want to drag- // Because IE 11 only accepts this single type.- // If we pass JSON here, IE can can access all node properties,- // even when the source lives in another window. (D'n'd inside- // the same window will always work.)- // The drawback is, that in this case ALL browsers will see- // the JSON representation as 'text', so dragging- // to a text field will insert the JSON string instead of- // the node title.- if( dndOpts.setTextTypeJson ) {- dataTransfer.setData("text", json);- } else {- dataTransfer.setData("text", node.title);- }-- // Set the allowed and current drag mode (move, copy, or link)- dataTransfer.effectAllowed = "all"; // "copyMove"- // dataTransfer.dropEffect = "move";-- // Set the title as drag image (otherwise it would contain the expander)- if( dataTransfer.setDragImage ) {- // IE 11 does not support this- dataTransfer.setDragImage($(node.span).find(".fancytree-title")[0], -10, -10);- // dataTransfer.setDragImage($(node.span)[0], -10, -10);- }- // Let user modify above settings- return dndOpts.dragStart(node, data) !== false;-- case "drag":- // Called every few miliseconds- $source.toggleClass(classDragRemove, isMove);- dndOpts.dragDrag(node, data);- break;-- case "dragend":- $(node.span).removeClass(classDragSource + " " + classDragRemove);- SOURCE_NODE = null;- DRAG_ENTER_RESPONSE = null;-// data.dropEffect = dataTransfer.dropEffect;- data.isCancelled = (dataTransfer.dropEffect === "none");- $dropMarker.hide();- dndOpts.dragEnd(node, data);- break;- }- });- }- // Enable drop support if dragEnter() is specified:- if( dndOpts.dragEnter ) {- // Bind drop event handlers- tree.$container.on("dragenter dragover dragleave drop", function(event){- var json, nodeData, r, res,- allowDrop = null,- node = getNode(event),- dataTransfer = event.dataTransfer || event.originalEvent.dataTransfer,- // glyph = opts.glyph || null,- data = {- node: node,- tree: tree,- options: tree.options,- hitMode: DRAG_ENTER_RESPONSE,- originalEvent: event,- dataTransfer: dataTransfer,- otherNode: SOURCE_NODE || null,- otherNodeData: null, // set by drop event- dropEffect: undefined, // set by drop event- isCancelled: undefined // set by drop event- };-- switch( event.type ) {-- case "dragenter":- // The dragenter event is fired when a dragged element or- // text selection enters a valid drop target.-- if( !node ) {- // Sometimes we get dragenter for the container element- tree.debug("Ignore non-node " + event.type + ": " + event.target.tagName + "." + event.target.className);- DRAG_ENTER_RESPONSE = false;- break;- }-- $(node.span)- .addClass(classDropOver)- .removeClass(classDropAccept + " " + classDropReject);-- if( dndOpts.preventNonNodes && !nodeData ) {- node.debug("Reject dropping a non-node");- DRAG_ENTER_RESPONSE = false;- break;- } else if( dndOpts.preventForeignNodes && (!SOURCE_NODE || SOURCE_NODE.tree !== node.tree ) ) {- node.debug("Reject dropping a foreign node");- DRAG_ENTER_RESPONSE = false;- break;- }-- // NOTE: dragenter is fired BEFORE the dragleave event- // of the previous element!- // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19041- setTimeout(function(){- // node.info("DELAYED " + event.type, event.target, DRAG_ENTER_RESPONSE);- // Auto-expand node (only when 'over' the node, not 'before', or 'after')- if( dndOpts.autoExpandMS &&- node.hasChildren() !== false && !node.expanded &&- (!dndOpts.dragExpand || dndOpts.dragExpand(node, data) !== false)- ) {- node.scheduleAction("expand", dndOpts.autoExpandMS);- }- }, 0);-- $dropMarker.show();-- // Call dragEnter() to figure out if (and where) dropping is allowed- if( dndOpts.preventRecursiveMoves && node.isDescendantOf(data.otherNode) ){- res = false;- }else{- r = dndOpts.dragEnter(node, data);- res = normalizeDragEnterResponse(r);- }- DRAG_ENTER_RESPONSE = res;-- allowDrop = res && ( res.over || res.before || res.after );- break;-- case "dragover":- // The dragover event is fired when an element or text- // selection is being dragged over a valid drop target- // (every few hundred milliseconds).- LAST_HIT_MODE = handleDragOver(event, data);- allowDrop = !!LAST_HIT_MODE;- break;-- case "dragleave":- // NOTE: dragleave is fired AFTER the dragenter event of the- // FOLLOWING element.- if( !node ) {- tree.debug("Ignore non-node " + event.type + ": " + event.target.tagName + "." + event.target.className);- break;- }- if( !$(node.span).hasClass(classDropOver) ) {- node.debug("Ignore dragleave (multi)"); //, event.currentTarget);- break;- }- $(node.span).removeClass(classDropOver + " " + classDropAccept + " " + classDropReject);- node.scheduleAction("cancel");- dndOpts.dragLeave(node, data);- $dropMarker.hide();- break;-- case "drop":- // Data is only readable in the (dragenter and) drop event:-- if( $.inArray(nodeMimeType, dataTransfer.types) >= 0 ) {- nodeData = dataTransfer.getData(nodeMimeType);- tree.info(event.type + ": getData('application/x-fancytree-node'): '" + nodeData + "'");- }- if( !nodeData ) {- // 1. Source is not a Fancytree node, or- // 2. If the FT mime type was set, but returns '', this- // is probably IE 11 (which only supports 'text')- nodeData = dataTransfer.getData("text");- tree.info(event.type + ": getData('text'): '" + nodeData + "'");- }- if( nodeData ) {- try {- // 'text' type may contain JSON if IE is involved- // and setTextTypeJson option was set- json = JSON.parse(nodeData);- if( json.title !== undefined ) {- data.otherNodeData = json;- }- } catch(ex) {- // assume 'text' type contains plain text, so `otherNodeData`- // should not be set- }- }- tree.debug(event.type + ": nodeData: '" + nodeData + "', otherNodeData: ", data.otherNodeData);-- $(node.span).removeClass(classDropOver + " " + classDropAccept + " " + classDropReject);- $dropMarker.hide();-- data.hitMode = LAST_HIT_MODE;- data.dropEffect = dataTransfer.dropEffect;- data.isCancelled = data.dropEffect === "none";-- // Let user implement the actual drop operation- dndOpts.dragDrop(node, data);-- // Prevent browser's default drop handling- event.preventDefault();- break;- }- // Dnd API madness: we must PREVENT default handling to enable dropping- if( allowDrop ) {- event.preventDefault();- return false;- }- });- }- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.edit.js- *- * Make node titles editable.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--var isMac = /Mac/.test(navigator.platform),- escapeHtml = $.ui.fancytree.escapeHtml,- unescapeHtml = $.ui.fancytree.unescapeHtml;--/**- * [ext-edit] Start inline editing of current node title.- *- * @alias FancytreeNode#editStart- * @requires Fancytree- */-$.ui.fancytree._FancytreeNodeClass.prototype.editStart = function(){- var $input,- node = this,- tree = this.tree,- local = tree.ext.edit,- instOpts = tree.options.edit,- $title = $(".fancytree-title", node.span),- eventData = {- node: node,- tree: tree,- options: tree.options,- isNew: $(node[tree.statusClassPropName]).hasClass("fancytree-edit-new"),- orgTitle: node.title,- input: null,- dirty: false- };-- // beforeEdit may want to modify the title before editing- if( instOpts.beforeEdit.call(node, {type: "beforeEdit"}, eventData) === false ) {- return false;- }- $.ui.fancytree.assert(!local.currentNode, "recursive edit");- local.currentNode = this;- local.eventData = eventData;-- // Disable standard Fancytree mouse- and key handling- tree.widget._unbind();- // #116: ext-dnd prevents the blur event, so we have to catch outer clicks- $(document).on("mousedown.fancytree-edit", function(event){- if( ! $(event.target).hasClass("fancytree-edit-input") ){- node.editEnd(true, event);- }- });-- // Replace node with <input>- $input = $("<input />", {- "class": "fancytree-edit-input",- type: "text",- value: tree.options.escapeTitles ? eventData.orgTitle : unescapeHtml(eventData.orgTitle)- });- local.eventData.input = $input;- if ( instOpts.adjustWidthOfs != null ) {- $input.width($title.width() + instOpts.adjustWidthOfs);- }- if ( instOpts.inputCss != null ) {- $input.css(instOpts.inputCss);- }-- $title.html($input);-- // Focus <input> and bind keyboard handler- $input- .focus()- .change(function(event){- $input.addClass("fancytree-edit-dirty");- }).keydown(function(event){- switch( event.which ) {- case $.ui.keyCode.ESCAPE:- node.editEnd(false, event);- break;- case $.ui.keyCode.ENTER:- node.editEnd(true, event);- return false; // so we don't start editmode on Mac- }- event.stopPropagation();- }).blur(function(event){- return node.editEnd(true, event);- });-- instOpts.edit.call(node, {type: "edit"}, eventData);-};---/**- * [ext-edit] Stop inline editing.- * @param {Boolean} [applyChanges=false] false: cancel edit, true: save (if modified)- * @alias FancytreeNode#editEnd- * @requires jquery.fancytree.edit.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.editEnd = function(applyChanges, _event){- var newVal,- node = this,- tree = this.tree,- local = tree.ext.edit,- eventData = local.eventData,- instOpts = tree.options.edit,- $title = $(".fancytree-title", node.span),- $input = $title.find("input.fancytree-edit-input");-- if( instOpts.trim ) {- $input.val($.trim($input.val()));- }- newVal = $input.val();-- eventData.dirty = ( newVal !== node.title );- eventData.originalEvent = _event;-- // Find out, if saving is required- if( applyChanges === false ) {- // If true/false was passed, honor this (except in rename mode, if unchanged)- eventData.save = false;- } else if( eventData.isNew ) {- // In create mode, we save everyting, except for empty text- eventData.save = (newVal !== "");- } else {- // In rename mode, we save everyting, except for empty or unchanged text- eventData.save = eventData.dirty && (newVal !== "");- }- // Allow to break (keep editor open), modify input, or re-define data.save- if( instOpts.beforeClose.call(node, {type: "beforeClose"}, eventData) === false){- return false;- }- if( eventData.save && instOpts.save.call(node, {type: "save"}, eventData) === false){- return false;- }- $input- .removeClass("fancytree-edit-dirty")- .off();- // Unbind outer-click handler- $(document).off(".fancytree-edit");-- if( eventData.save ) {- // # 171: escape user input (not required if global escaping is on)- node.setTitle( tree.options.escapeTitles ? newVal : escapeHtml(newVal) );- node.setFocus();- }else{- if( eventData.isNew ) {- node.remove();- node = eventData.node = null;- local.relatedNode.setFocus();- } else {- node.renderTitle();- node.setFocus();- }- }- local.eventData = null;- local.currentNode = null;- local.relatedNode = null;- // Re-enable mouse and keyboard handling- tree.widget._bind();- // Set keyboard focus, even if setFocus() claims 'nothing to do'- $(tree.$container).focus();- eventData.input = null;- instOpts.close.call(node, {type: "close"}, eventData);- return true;-};---/**-* [ext-edit] Create a new child or sibling node and start edit mode.-*-* @param {String} [mode='child'] 'before', 'after', or 'child'-* @param {Object} [init] NodeData (or simple title string)-* @alias FancytreeNode#editCreateNode-* @requires jquery.fancytree.edit.js-* @since 2.4-*/-$.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode = function(mode, init){- var newNode,- tree = this.tree,- self = this;-- mode = mode || "child";- if( init == null ) {- init = { title: "" };- } else if( typeof init === "string" ) {- init = { title: init };- } else {- $.ui.fancytree.assert($.isPlainObject(init));- }- // Make sure node is expanded (and loaded) in 'child' mode- if( mode === "child" && !this.isExpanded() && this.hasChildren() !== false ) {- this.setExpanded().done(function(){- self.editCreateNode(mode, init);- });- return;- }- newNode = this.addNode(init, mode);-- // #644: Don't filter new nodes.- newNode.match = true;- $(newNode[tree.statusClassPropName])- .removeClass("fancytree-hide")- .addClass("fancytree-match");-- newNode.makeVisible(/*{noAnimation: true}*/).done(function(){- $(newNode[tree.statusClassPropName]).addClass("fancytree-edit-new");- self.tree.ext.edit.relatedNode = self;- newNode.editStart();- });-};---/**- * [ext-edit] Check if any node in this tree in edit mode.- *- * @returns {FancytreeNode | null}- * @alias Fancytree#isEditing- * @requires jquery.fancytree.edit.js- */-$.ui.fancytree._FancytreeClass.prototype.isEditing = function(){- return this.ext.edit ? this.ext.edit.currentNode : null;-};---/**- * [ext-edit] Check if this node is in edit mode.- * @returns {Boolean} true if node is currently beeing edited- * @alias FancytreeNode#isEditing- * @requires jquery.fancytree.edit.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.isEditing = function(){- return this.tree.ext.edit ? this.tree.ext.edit.currentNode === this : false;-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "edit",- version: "2.23.0",- // Default options for this extension.- options: {- adjustWidthOfs: 4, // null: don't adjust input size to content- allowEmpty: false, // Prevent empty input- inputCss: {minWidth: "3em"},- // triggerCancel: ["esc", "tab", "click"],- // triggerStart: ["f2", "dblclick", "shift+click", "mac+enter"],- triggerStart: ["f2", "shift+click", "mac+enter"],- trim: true, // Trim whitespace before save- // Events:- beforeClose: $.noop, // Return false to prevent cancel/save (data.input is available)- beforeEdit: $.noop, // Return false to prevent edit mode- close: $.noop, // Editor was removed- edit: $.noop, // Editor was opened (available as data.input)-// keypress: $.noop, // Not yet implemented- save: $.noop // Save data.input.val() or return false to keep editor open- },- // Local attributes- currentNode: null,-- treeInit: function(ctx){- this._superApply(arguments);- this.$container.addClass("fancytree-ext-edit");- },- nodeClick: function(ctx) {- if( $.inArray("shift+click", ctx.options.edit.triggerStart) >= 0 ){- if( ctx.originalEvent.shiftKey ){- ctx.node.editStart();- return false;- }- }- return this._superApply(arguments);- },- nodeDblclick: function(ctx) {- if( $.inArray("dblclick", ctx.options.edit.triggerStart) >= 0 ){- ctx.node.editStart();- return false;- }- return this._superApply(arguments);- },- nodeKeydown: function(ctx) {- switch( ctx.originalEvent.which ) {- case 113: // [F2]- if( $.inArray("f2", ctx.options.edit.triggerStart) >= 0 ){- ctx.node.editStart();- return false;- }- break;- case $.ui.keyCode.ENTER:- if( $.inArray("mac+enter", ctx.options.edit.triggerStart) >= 0 && isMac ){- ctx.node.editStart();- return false;- }- break;- }- return this._superApply(arguments);- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.filter.js- *- * Remove or highlight tree nodes, based on a filter.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--var KeyNoData = "__not_found__",- escapeHtml = $.ui.fancytree.escapeHtml;--function _escapeRegex(str){- /*jshint regexdash:true */- return (str + "").replace(/([.?*+\^\$\[\]\\(){}|-])/g, "\\$1");-}--function extractHtmlText(s){- if( s.indexOf(">") >= 0 ) {- return $("<div/>").html(s).text();- }- return s;-}--$.ui.fancytree._FancytreeClass.prototype._applyFilterImpl = function(filter, branchMode, _opts){- var match, statusNode, re, reHighlight,- count = 0,- treeOpts = this.options,- escapeTitles = treeOpts.escapeTitles,- prevAutoCollapse = treeOpts.autoCollapse,- opts = $.extend({}, treeOpts.filter, _opts),- hideMode = opts.mode === "hide",- leavesOnly = !!opts.leavesOnly && !branchMode;-- // Default to 'match title substring (not case sensitive)'- if(typeof filter === "string"){- // console.log("rex", filter.split('').join('\\w*').replace(/\W/, ""))- if( opts.fuzzy ) {- // See https://codereview.stackexchange.com/questions/23899/faster-javascript-fuzzy-string-matching-function/23905#23905- // and http://www.quora.com/How-is-the-fuzzy-search-algorithm-in-Sublime-Text-designed- // and http://www.dustindiaz.com/autocomplete-fuzzy-matching- match = filter.split("").reduce(function(a, b) {- return a + "[^" + b + "]*" + b;- });- } else {- match = _escapeRegex(filter); // make sure a '.' is treated literally- }- re = new RegExp(".*" + match + ".*", "i");- reHighlight = new RegExp(_escapeRegex(filter), "gi");- filter = function(node){- var display,- text = escapeTitles ? node.title : extractHtmlText(node.title),- res = !!re.test(text);-- if( res && opts.highlight ) {- display = escapeTitles ? escapeHtml(node.title) : text;- node.titleWithHighlight = display.replace(reHighlight, function(s){- return "<mark>" + s + "</mark>";- });- // node.debug("filter", escapeTitles, text, node.titleWithHighlight);- }- return res;- };- }-- this.enableFilter = true;- this.lastFilterArgs = arguments;-- this.$div.addClass("fancytree-ext-filter");- if( hideMode ){- this.$div.addClass("fancytree-ext-filter-hide");- } else {- this.$div.addClass("fancytree-ext-filter-dimm");- }- this.$div.toggleClass("fancytree-ext-filter-hide-expanders", !!opts.hideExpanders);- // Reset current filter- this.visit(function(node){- delete node.match;- delete node.titleWithHighlight;- node.subMatchCount = 0;- });- statusNode = this.getRootNode()._findDirectChild(KeyNoData);- if( statusNode ) {- statusNode.remove();- }-- // Adjust node.hide, .match, and .subMatchCount properties- treeOpts.autoCollapse = false; // #528-- this.visit(function(node){- if ( leavesOnly && node.children != null ) {- return;- }- var res = filter(node),- matchedByBranch = false;-- if( res === "skip" ) {- node.visit(function(c){- c.match = false;- }, true);- return "skip";- }- if( !res && (branchMode || res === "branch") && node.parent.match ) {- res = true;- matchedByBranch = true;- }- if( res ) {- count++;- node.match = true;- node.visitParents(function(p){- p.subMatchCount += 1;- // Expand match (unless this is no real match, but only a node in a matched branch)- if( opts.autoExpand && !matchedByBranch && !p.expanded ) {- p.setExpanded(true, {noAnimation: true, noEvents: true, scrollIntoView: false});- p._filterAutoExpanded = true;- }- });- }- });- treeOpts.autoCollapse = prevAutoCollapse;-- if( count === 0 && opts.nodata && hideMode ) {- statusNode = opts.nodata;- if( $.isFunction(statusNode) ) {- statusNode = statusNode();- }- if( statusNode === true ) {- statusNode = {};- } else if( typeof statusNode === "string" ) {- statusNode = { title: statusNode };- }- statusNode = $.extend({- statusNodeType: "nodata",- key: KeyNoData,- title: this.options.strings.noData- }, statusNode);-- this.getRootNode().addNode(statusNode).match = true;- }- // Redraw whole tree- this.render();- return count;-};--/**- * [ext-filter] Dimm or hide nodes.- *- * @param {function | string} filter- * @param {boolean} [opts={autoExpand: false, leavesOnly: false}]- * @returns {integer} count- * @alias Fancytree#filterNodes- * @requires jquery.fancytree.filter.js- */-$.ui.fancytree._FancytreeClass.prototype.filterNodes = function(filter, opts) {- if( typeof opts === "boolean" ) {- opts = { leavesOnly: opts };- this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.");- }- return this._applyFilterImpl(filter, false, opts);-};--/**- * @deprecated- */-$.ui.fancytree._FancytreeClass.prototype.applyFilter = function(filter){- this.warn("Fancytree.applyFilter() is deprecated since 2.1.0 / 2014-05-29. Use .filterNodes() instead.");- return this.filterNodes.apply(this, arguments);-};--/**- * [ext-filter] Dimm or hide whole branches.- *- * @param {function | string} filter- * @param {boolean} [opts={autoExpand: false}]- * @returns {integer} count- * @alias Fancytree#filterBranches- * @requires jquery.fancytree.filter.js- */-$.ui.fancytree._FancytreeClass.prototype.filterBranches = function(filter, opts){- return this._applyFilterImpl(filter, true, opts);-};---/**- * [ext-filter] Reset the filter.- *- * @alias Fancytree#clearFilter- * @requires jquery.fancytree.filter.js- */-$.ui.fancytree._FancytreeClass.prototype.clearFilter = function(){- var $title,- statusNode = this.getRootNode()._findDirectChild(KeyNoData),- escapeTitles = this.options.escapeTitles,- enhanceTitle = this.options.enhanceTitle;-- if( statusNode ) {- statusNode.remove();- }- this.visit(function(node){- if( node.match && node.span ) { // #491, #601- $title = $(node.span).find(">span.fancytree-title");- if( escapeTitles ) {- $title.text(node.title);- } else {- $title.html(node.title);- }- if( enhanceTitle ) {- enhanceTitle({type: "enhanceTitle"}, {node: node, $title: $title});- }- }- delete node.match;- delete node.subMatchCount;- delete node.titleWithHighlight;- if ( node.$subMatchBadge ) {- node.$subMatchBadge.remove();- delete node.$subMatchBadge;- }- if( node._filterAutoExpanded && node.expanded ) {- node.setExpanded(false, {noAnimation: true, noEvents: true, scrollIntoView: false});- }- delete node._filterAutoExpanded;- });- this.enableFilter = false;- this.lastFilterArgs = null;- this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide");- this.render();-};---/**- * [ext-filter] Return true if a filter is currently applied.- *- * @returns {Boolean}- * @alias Fancytree#isFilterActive- * @requires jquery.fancytree.filter.js- * @since 2.13- */-$.ui.fancytree._FancytreeClass.prototype.isFilterActive = function(){- return !!this.enableFilter;-};---/**- * [ext-filter] Return true if this node is matched by current filter (or no filter is active).- *- * @returns {Boolean}- * @alias FancytreeNode#isMatched- * @requires jquery.fancytree.filter.js- * @since 2.13- */-$.ui.fancytree._FancytreeNodeClass.prototype.isMatched = function(){- return !(this.tree.enableFilter && !this.match);-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "filter",- version: "2.23.0",- // Default options for this extension.- options: {- autoApply: true, // Re-apply last filter if lazy data is loaded- autoExpand: false, // Expand all branches that contain matches while filtered- counter: true, // Show a badge with number of matching child nodes near parent icons- fuzzy: false, // Match single characters in order, e.g. 'fb' will match 'FooBar'- hideExpandedCounter: true, // Hide counter badge if parent is expanded- hideExpanders: false, // Hide expanders if all child nodes are hidden by filter- highlight: true, // Highlight matches by wrapping inside <mark> tags- leavesOnly: false, // Match end nodes only- nodata: true, // Display a 'no data' status node if result is empty- mode: "dimm" // Grayout unmatched nodes (pass "hide" to remove unmatched node instead)- },- nodeLoadChildren: function(ctx, source) {- return this._superApply(arguments).done(function() {- if( ctx.tree.enableFilter && ctx.tree.lastFilterArgs && ctx.options.filter.autoApply ) {- ctx.tree._applyFilterImpl.apply(ctx.tree, ctx.tree.lastFilterArgs);- }- });- },- nodeSetExpanded: function(ctx, flag, callOpts) {- delete ctx.node._filterAutoExpanded;- // Make sure counter badge is displayed again, when node is beeing collapsed- if( !flag && ctx.options.filter.hideExpandedCounter && ctx.node.$subMatchBadge ) {- ctx.node.$subMatchBadge.show();- }- return this._superApply(arguments);- },- nodeRenderStatus: function(ctx) {- // Set classes for current status- var res,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options.filter,- $title = $(node.span).find("span.fancytree-title"),- $span = $(node[tree.statusClassPropName]),- enhanceTitle = ctx.options.enhanceTitle,- escapeTitles = ctx.options.escapeTitles;-- res = this._super(ctx);- // nothing to do, if node was not yet rendered- if( !$span.length || !tree.enableFilter ) {- return res;- }- $span- .toggleClass("fancytree-match", !!node.match)- .toggleClass("fancytree-submatch", !!node.subMatchCount)- .toggleClass("fancytree-hide", !(node.match || node.subMatchCount));- // Add/update counter badge- if( opts.counter && node.subMatchCount && (!node.isExpanded() || !opts.hideExpandedCounter) ) {- if( !node.$subMatchBadge ) {- node.$subMatchBadge = $("<span class='fancytree-childcounter'/>");- $("span.fancytree-icon, span.fancytree-custom-icon", node.span).append(node.$subMatchBadge);- }- node.$subMatchBadge.show().text(node.subMatchCount);- } else if ( node.$subMatchBadge ) {- node.$subMatchBadge.hide();- }- // node.debug("nodeRenderStatus", node.titleWithHighlight, node.title)- // #601: also chek for $title.length, because we don't need to render- // if node.span is null (i.e. not rendered)- if( node.span && (!node.isEditing || !node.isEditing.call(node)) ) {- if( node.titleWithHighlight ) {- $title.html(node.titleWithHighlight);- } else if ( escapeTitles ) {- $title.text(node.title);- } else {- $title.html(node.title);- }- if( enhanceTitle ) {- enhanceTitle({type: "enhanceTitle"}, {node: node, $title: $title});- }- }- return res;- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.glyph.js- *- * Use glyph fonts as instead of icon sprites.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */--function _getIcon(opts, type){- return opts.map[type];-}--$.ui.fancytree.registerExtension({- name: "glyph",- version: "2.23.0",- // Default options for this extension.- options: {- map: {- // Samples from Font Awesome 3.2- // http://fortawesome.github.io/Font-Awesome/3.2.1/icons/- // See here for alternatives:- // http://fortawesome.github.io/Font-Awesome/icons/- // http://getbootstrap.com/components/- checkbox: "icon-check-empty",- checkboxSelected: "icon-check",- checkboxUnknown: "icon-check icon-muted",- error: "icon-exclamation-sign",- expanderClosed: "icon-caret-right",- expanderLazy: "icon-angle-right",- expanderOpen: "icon-caret-down",- nodata: "icon-meh",- noExpander: "",- dragHelper: "icon-caret-right",- dropMarker: "icon-caret-right",- // Default node icons.- // (Use tree.options.icon callback to define custom icons- // based on node data)- doc: "icon-file-alt",- docOpen: "icon-file-alt",- loading: "icon-refresh icon-spin",- folder: "icon-folder-close-alt",- folderOpen: "icon-folder-open-alt"- }- },-- treeInit: function(ctx){- var tree = ctx.tree;- this._superApply(arguments);- tree.$container.addClass("fancytree-ext-glyph");- },- nodeRenderStatus: function(ctx) {- var icon, res, span,- node = ctx.node,- $span = $(node.span),- opts = ctx.options.glyph,- map = opts.map;-- res = this._super(ctx);-- if( node.isRoot() ){- return res;- }- span = $span.children("span.fancytree-expander").get(0);- if( span ){- // if( node.isLoading() ){- // icon = "loading";- if( node.expanded && node.hasChildren() ){- icon = "expanderOpen";- }else if( node.isUndefined() ){- icon = "expanderLazy";- }else if( node.hasChildren() ){- icon = "expanderClosed";- }else{- icon = "noExpander";- }- span.className = "fancytree-expander " + map[icon];- }-- if( node.tr ){- span = $("td", node.tr).find("span.fancytree-checkbox").get(0);- }else{- span = $span.children("span.fancytree-checkbox").get(0);- }- if( span ){- icon = node.selected ? "checkboxSelected" : (node.partsel ? "checkboxUnknown" : "checkbox");- span.className = "fancytree-checkbox " + map[icon];- }-- // Standard icon (note that this does not match .fancytree-custom-icon,- // that might be set by opts.icon callbacks)- span = $span.children("span.fancytree-icon").get(0);- if( span ){- if( node.statusNodeType ){- icon = _getIcon(opts, node.statusNodeType); // loading, error- }else if( node.folder ){- icon = node.expanded && node.hasChildren() ? _getIcon(opts, "folderOpen") : _getIcon(opts, "folder");- }else{- icon = node.expanded ? _getIcon(opts, "docOpen") : _getIcon(opts, "doc");- }- span.className = "fancytree-icon " + icon;- }- return res;- },- nodeSetStatus: function(ctx, status, message, details) {- var res, span,- opts = ctx.options.glyph,- node = ctx.node;-- res = this._superApply(arguments);-- if( status === "error" || status === "loading" || status === "nodata" ){- if(node.parent){- span = $("span.fancytree-expander", node.span).get(0);- if( span ) {- span.className = "fancytree-expander " + _getIcon(opts, status);- }- }else{ //- span = $(".fancytree-statusnode-" + status, node[this.nodeContainerAttrName])- .find("span.fancytree-icon").get(0);- if( span ) {- span.className = "fancytree-icon " + _getIcon(opts, status);- }- }- }- return res;- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.gridnav.js- *- * Support keyboard navigation for trees with embedded input controls.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--// Allow these navigation keys even when input controls are focused--var KC = $.ui.keyCode,- // which keys are *not* handled by embedded control, but passed to tree- // navigation handler:- NAV_KEYS = {- "text": [KC.UP, KC.DOWN],- "checkbox": [KC.UP, KC.DOWN, KC.LEFT, KC.RIGHT],- "link": [KC.UP, KC.DOWN, KC.LEFT, KC.RIGHT],- "radiobutton": [KC.UP, KC.DOWN, KC.LEFT, KC.RIGHT],- "select-one": [KC.LEFT, KC.RIGHT],- "select-multiple": [KC.LEFT, KC.RIGHT]- };---/* Calculate TD column index (considering colspans).*/-function getColIdx($tr, $td) {- var colspan,- td = $td.get(0),- idx = 0;-- $tr.children().each(function () {- if( this === td ) {- return false;- }- colspan = $(this).prop("colspan");- idx += colspan ? colspan : 1;- });- return idx;-}---/* Find TD at given column index (considering colspans).*/-function findTdAtColIdx($tr, colIdx) {- var colspan,- res = null,- idx = 0;-- $tr.children().each(function () {- if( idx >= colIdx ) {- res = $(this);- return false;- }- colspan = $(this).prop("colspan");- idx += colspan ? colspan : 1;- });- return res;-}---/* Find adjacent cell for a given direction. Skip empty cells and consider merged cells */-function findNeighbourTd($target, keyCode){- var $tr, colIdx,- $td = $target.closest("td"),- $tdNext = null;-- switch( keyCode ){- case KC.LEFT:- $tdNext = $td.prev();- break;- case KC.RIGHT:- $tdNext = $td.next();- break;- case KC.UP:- case KC.DOWN:- $tr = $td.parent();- colIdx = getColIdx($tr, $td);- while( true ) {- $tr = (keyCode === KC.UP) ? $tr.prev() : $tr.next();- if( !$tr.length ) {- break;- }- // Skip hidden rows- if( $tr.is(":hidden") ) {- continue;- }- // Find adjacent cell in the same column- $tdNext = findTdAtColIdx($tr, colIdx);- // Skip cells that don't conatain a focusable element- if( $tdNext && $tdNext.find(":input,a").length ) {- break;- }- }- break;- }- return $tdNext;-}---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "gridnav",- version: "2.23.0",- // Default options for this extension.- options: {- autofocusInput: false, // Focus first embedded input if node gets activated- handleCursorKeys: true // Allow UP/DOWN in inputs to move to prev/next node- },-- treeInit: function(ctx){- // gridnav requires the table extension to be loaded before itself- this._requireExtension("table", true, true);- this._superApply(arguments);-- this.$container.addClass("fancytree-ext-gridnav");-- // Activate node if embedded input gets focus (due to a click)- this.$container.on("focusin", function(event){- var ctx2,- node = $.ui.fancytree.getNode(event.target);-- if( node && !node.isActive() ){- // Call node.setActive(), but also pass the event- ctx2 = ctx.tree._makeHookContext(node, event);- ctx.tree._callHook("nodeSetActive", ctx2, true);- }- });- },- nodeSetActive: function(ctx, flag, callOpts) {- var $outer,- opts = ctx.options.gridnav,- node = ctx.node,- event = ctx.originalEvent || {},- triggeredByInput = $(event.target).is(":input");-- flag = (flag !== false);-- this._superApply(arguments);-- if( flag ){- if( ctx.options.titlesTabbable ){- if( !triggeredByInput ) {- $(node.span).find("span.fancytree-title").focus();- node.setFocus();- }- // If one node is tabbable, the container no longer needs to be- ctx.tree.$container.attr("tabindex", "-1");- // ctx.tree.$container.removeAttr("tabindex");- } else if( opts.autofocusInput && !triggeredByInput ){- // Set focus to input sub input (if node was clicked, but not- // when TAB was pressed )- $outer = $(node.tr || node.span);- $outer.find(":input:enabled:first").focus();- }- }- },- nodeKeydown: function(ctx) {- var inputType, handleKeys, $td,- opts = ctx.options.gridnav,- event = ctx.originalEvent,- $target = $(event.target);-- if( $target.is(":input:enabled") ) {- inputType = $target.prop("type");- } else if( $target.is("a") ) {- inputType = "link";- }- // ctx.tree.debug("ext-gridnav nodeKeydown", event, inputType);-- if( inputType && opts.handleCursorKeys ){- handleKeys = NAV_KEYS[inputType];- if( handleKeys && $.inArray(event.which, handleKeys) >= 0 ){- $td = findNeighbourTd($target, event.which);- if( $td && $td.length ) {- // ctx.node.debug("ignore keydown in input", event.which, handleKeys);- $td.find(":input:enabled,a").focus();- // Prevent Fancytree default navigation- return false;- }- }- return true;- }- // ctx.tree.debug("ext-gridnav NOT HANDLED", event, inputType);- return this._superApply(arguments);- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.persist.js- *- * Persist tree status in cookiesRemove or highlight tree nodes, based on a filter.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * @depends: js-cookie or jquery-cookie- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";-/* global Cookies:false */--/*******************************************************************************- * Private functions and variables- */-var cookieGetter, cookieRemover, cookieSetter,- _assert = $.ui.fancytree.assert,- ACTIVE = "active",- EXPANDED = "expanded",- FOCUS = "focus",- SELECTED = "selected";--if( typeof Cookies === "function" ) {- // Assume https://github.com/js-cookie/js-cookie- cookieSetter = Cookies.set;- cookieGetter = Cookies.get;- cookieRemover = Cookies.remove;-} else {- // Fall back to https://github.com/carhartl/jquery-cookie- cookieSetter = cookieGetter = $.cookie;- cookieRemover = $.removeCookie;-}--/* Recursively load lazy nodes- * @param {string} mode 'load', 'expand', false- */-function _loadLazyNodes(tree, local, keyList, mode, dfd) {- var i, key, l, node,- foundOne = false,- expandOpts = tree.options.persist.expandOpts,- deferredList = [],- missingKeyList = [];-- keyList = keyList || [];- dfd = dfd || $.Deferred();-- for( i=0, l=keyList.length; i<l; i++ ) {- key = keyList[i];- node = tree.getNodeByKey(key);- if( node ) {- if( mode && node.isUndefined() ) {- foundOne = true;- tree.debug("_loadLazyNodes: " + node + " is lazy: loading...");- if( mode === "expand" ) {- deferredList.push(node.setExpanded(true, expandOpts));- } else {- deferredList.push(node.load());- }- } else {- tree.debug("_loadLazyNodes: " + node + " already loaded.");- node.setExpanded(true, expandOpts);- }- } else {- missingKeyList.push(key);- tree.debug("_loadLazyNodes: " + node + " was not yet found.");- }- }-- $.when.apply($, deferredList).always(function(){- // All lazy-expands have finished- if( foundOne && missingKeyList.length > 0 ) {- // If we read new nodes from server, try to resolve yet-missing keys- _loadLazyNodes(tree, local, missingKeyList, mode, dfd);- } else {- if( missingKeyList.length ) {- tree.warn("_loadLazyNodes: could not load those keys: ", missingKeyList);- for( i=0, l=missingKeyList.length; i<l; i++ ) {- key = keyList[i];- local._appendKey(EXPANDED, keyList[i], false);- }- }- dfd.resolve();- }- });- return dfd;-}---/**- * [ext-persist] Remove persistence cookies of the given type(s).- * Called like- * $("#tree").fancytree("getTree").clearCookies("active expanded focus selected");- *- * @alias Fancytree#clearCookies- * @requires jquery.fancytree.persist.js- */-$.ui.fancytree._FancytreeClass.prototype.clearCookies = function(types){- var local = this.ext.persist,- prefix = local.cookiePrefix;-- types = types || "active expanded focus selected";- if(types.indexOf(ACTIVE) >= 0){- local._data(prefix + ACTIVE, null);- }- if(types.indexOf(EXPANDED) >= 0){- local._data(prefix + EXPANDED, null);- }- if(types.indexOf(FOCUS) >= 0){- local._data(prefix + FOCUS, null);- }- if(types.indexOf(SELECTED) >= 0){- local._data(prefix + SELECTED, null);- }-};---/**- * [ext-persist] Return persistence information from cookies- *- * Called like- * $("#tree").fancytree("getTree").getPersistData();- *- * @alias Fancytree#getPersistData- * @requires jquery.fancytree.persist.js- */-$.ui.fancytree._FancytreeClass.prototype.getPersistData = function(){- var local = this.ext.persist,- prefix = local.cookiePrefix,- delim = local.cookieDelimiter,- res = {};-- res[ACTIVE] = local._data(prefix + ACTIVE);- res[EXPANDED] = (local._data(prefix + EXPANDED) || "").split(delim);- res[SELECTED] = (local._data(prefix + SELECTED) || "").split(delim);- res[FOCUS] = local._data(prefix + FOCUS);- return res;-};---/* *****************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "persist",- version: "2.23.0",- // Default options for this extension.- options: {- cookieDelimiter: "~",- cookiePrefix: undefined, // 'fancytree-<treeId>-' by default- cookie: {- raw: false,- expires: "",- path: "",- domain: "",- secure: false- },- expandLazy: false, // true: recursively expand and load lazy nodes- expandOpts: undefined, // optional `opts` argument passed to setExpanded()- fireActivate: true, // false: suppress `activate` event after active node was restored- overrideSource: true, // true: cookie takes precedence over `source` data attributes.- store: "auto", // 'cookie': force cookie, 'local': force localStore, 'session': force sessionStore- types: "active expanded focus selected"- },-- /* Generic read/write string data to cookie, sessionStorage or localStorage. */- _data: function(key, value){- var ls = this._local.localStorage; // null, sessionStorage, or localStorage-- if( value === undefined ) {- return ls ? ls.getItem(key) : cookieGetter(key);- } else if ( value === null ) {- if( ls ) {- ls.removeItem(key);- } else {- cookieRemover(key);- }- } else {- if( ls ) {- ls.setItem(key, value);- } else {- cookieSetter(key, value, this.options.persist.cookie);- }- }- },-- /* Append `key` to a cookie. */- _appendKey: function(type, key, flag){- key = "" + key; // #90- var local = this._local,- instOpts = this.options.persist,- delim = instOpts.cookieDelimiter,- cookieName = local.cookiePrefix + type,- data = local._data(cookieName),- keyList = data ? data.split(delim) : [],- idx = $.inArray(key, keyList);- // Remove, even if we add a key, so the key is always the last entry- if(idx >= 0){- keyList.splice(idx, 1);- }- // Append key to cookie- if(flag){- keyList.push(key);- }- local._data(cookieName, keyList.join(delim));- },-- treeInit: function(ctx){- var tree = ctx.tree,- opts = ctx.options,- local = this._local,- instOpts = this.options.persist;-- // For 'auto' or 'cookie' mode, the cookie plugin must be available- _assert((instOpts.store !== "auto" && instOpts.store !== "cookie") || cookieGetter,- "Missing required plugin for 'persist' extension: js.cookie.js or jquery.cookie.js");-- local.cookiePrefix = instOpts.cookiePrefix || ("fancytree-" + tree._id + "-");- local.storeActive = instOpts.types.indexOf(ACTIVE) >= 0;- local.storeExpanded = instOpts.types.indexOf(EXPANDED) >= 0;- local.storeSelected = instOpts.types.indexOf(SELECTED) >= 0;- local.storeFocus = instOpts.types.indexOf(FOCUS) >= 0;- if( instOpts.store === "cookie" || !window.localStorage ) {- local.localStorage = null;- } else {- local.localStorage = (instOpts.store === "local") ? window.localStorage : window.sessionStorage;- }-- // Bind init-handler to apply cookie state- tree.$div.bind("fancytreeinit", function(event){- if ( tree._triggerTreeEvent("beforeRestore", null, {}) === false ) {- return;- }-- var cookie, dfd, i, keyList, node,- prevFocus = local._data(local.cookiePrefix + FOCUS), // record this before node.setActive() overrides it;- noEvents = instOpts.fireActivate === false;-- // tree.debug("document.cookie:", document.cookie);-- cookie = local._data(local.cookiePrefix + EXPANDED);- keyList = cookie && cookie.split(instOpts.cookieDelimiter);-- if( local.storeExpanded ) {- // Recursively load nested lazy nodes if expandLazy is 'expand' or 'load'- // Also remove expand-cookies for unmatched nodes- dfd = _loadLazyNodes(tree, local, keyList, instOpts.expandLazy ? "expand" : false , null);- } else {- // nothing to do- dfd = new $.Deferred().resolve();- }-- dfd.done(function(){- if(local.storeSelected){- cookie = local._data(local.cookiePrefix + SELECTED);- if(cookie){- keyList = cookie.split(instOpts.cookieDelimiter);- for(i=0; i<keyList.length; i++){- node = tree.getNodeByKey(keyList[i]);- if(node){- if(node.selected === undefined || instOpts.overrideSource && (node.selected === false)){-// node.setSelected();- node.selected = true;- node.renderStatus();- }- }else{- // node is no longer member of the tree: remove from cookie also- local._appendKey(SELECTED, keyList[i], false);- }- }- }- // In selectMode 3 we have to fix the child nodes, since we- // only stored the selected *top* nodes- if( tree.options.selectMode === 3 ){- tree.visit(function(n){- if( n.selected ) {- n.fixSelection3AfterClick();- return "skip";- }- });- }- }- if(local.storeActive){- cookie = local._data(local.cookiePrefix + ACTIVE);- if(cookie && (opts.persist.overrideSource || !tree.activeNode)){- node = tree.getNodeByKey(cookie);- if(node){- node.debug("persist: set active", cookie);- // We only want to set the focus if the container- // had the keyboard focus before- node.setActive(true, {- noFocus: true,- noEvents: noEvents- });- }- }- }- if(local.storeFocus && prevFocus){- node = tree.getNodeByKey(prevFocus);- if(node){- // node.debug("persist: set focus", cookie);- if( tree.options.titlesTabbable ) {- $(node.span).find(".fancytree-title").focus();- } else {- $(tree.$container).focus();- }- // node.setFocus();- }- }- tree._triggerTreeEvent("restore", null, {});- });- });- // Init the tree- return this._superApply(arguments);- },- nodeSetActive: function(ctx, flag, callOpts) {- var res,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if(local.storeActive){- local._data(local.cookiePrefix + ACTIVE, this.activeNode ? this.activeNode.key : null);- }- return res;- },- nodeSetExpanded: function(ctx, flag, callOpts) {- var res,- node = ctx.node,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if(local.storeExpanded){- local._appendKey(EXPANDED, node.key, flag);- }- return res;- },- nodeSetFocus: function(ctx, flag) {- var res,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if( local.storeFocus ) {- local._data(local.cookiePrefix + FOCUS, this.focusNode ? this.focusNode.key : null);- }- return res;- },- nodeSetSelected: function(ctx, flag, callOpts) {- var res, selNodes,- tree = ctx.tree,- node = ctx.node,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if(local.storeSelected){- if( tree.options.selectMode === 3 ){- // In selectMode 3 we only store the the selected *top* nodes.- // De-selecting a node may also de-select some parents, so we- // calculate the current status again- selNodes = $.map(tree.getSelectedNodes(true), function(n){- return n.key;- });- selNodes = selNodes.join(ctx.options.persist.cookieDelimiter);- local._data(local.cookiePrefix + SELECTED, selNodes);- } else {- // beforeSelect can prevent the change - flag doesn't reflect the node.selected state- local._appendKey(SELECTED, node.key, node.selected);- }- }- return res;- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.table.js- *- * Render tree as table (aka 'tree grid', 'table tree').- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */-function _assert(cond, msg){- msg = msg || "";- if(!cond){- $.error("Assertion failed " + msg);- }-}--function insertFirstChild(referenceNode, newNode) {- referenceNode.insertBefore(newNode, referenceNode.firstChild);-}--function insertSiblingAfter(referenceNode, newNode) {- referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);-}--/* Show/hide all rows that are structural descendants of `parent`. */-function setChildRowVisibility(parent, flag) {- parent.visit(function(node){- var tr = node.tr;- // currentFlag = node.hide ? false : flag; // fix for ext-filter- if(tr){- tr.style.display = (node.hide || !flag) ? "none" : "";- }- if(!node.expanded){- return "skip";- }- });-}--/* Find node that is rendered in previous row. */-function findPrevRowNode(node){- var i, last, prev,- parent = node.parent,- siblings = parent ? parent.children : null;-- if(siblings && siblings.length > 1 && siblings[0] !== node){- // use the lowest descendant of the preceeding sibling- i = $.inArray(node, siblings);- prev = siblings[i - 1];- _assert(prev.tr);- // descend to lowest child (with a <tr> tag)- while(prev.children && prev.children.length){- last = prev.children[prev.children.length - 1];- if(!last.tr){- break;- }- prev = last;- }- }else{- // if there is no preceding sibling, use the direct parent- prev = parent;- }- return prev;-}--/* Render callback for 'wide' mode. */-// function _renderStatusNodeWide(event, data) {-// var node = data.node,-// nodeColumnIdx = data.options.table.nodeColumnIdx,-// $tdList = $(node.tr).find(">td");--// $tdList.eq(nodeColumnIdx).attr("colspan", data.tree.columnCount);-// $tdList.not(":eq(" + nodeColumnIdx + ")").remove();-// }---$.ui.fancytree.registerExtension({- name: "table",- version: "2.23.0",- // Default options for this extension.- options: {- checkboxColumnIdx: null, // render the checkboxes into the this column index (default: nodeColumnIdx)- // customStatus: false, // true: generate renderColumns events for status nodes- indentation: 16, // indent every node level by 16px- nodeColumnIdx: 0 // render node expander, icon, and title to this column (default: #0)- },- // Overide virtual methods for this extension.- // `this` : is this extension object- // `this._super`: the virtual function that was overriden (member of prev. extension or Fancytree)- treeInit: function(ctx){- var i, columnCount, n, $row, $tbody,- tree = ctx.tree,- opts = ctx.options,- tableOpts = opts.table,- $table = tree.widget.element;-- if( tableOpts.customStatus != null ) {- if( opts.renderStatusColumns != null) {- $.error("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' only instead.");- } else {- tree.warn("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' instead.");- opts.renderStatusColumns = tableOpts.customStatus;- }- }- if( opts.renderStatusColumns ) {- if( opts.renderStatusColumns === true ) {- opts.renderStatusColumns = opts.renderColumns;- // } else if( opts.renderStatusColumns === "wide" ) {- // opts.renderStatusColumns = _renderStatusNodeWide;- }- }-- $table.addClass("fancytree-container fancytree-ext-table");- tree.tbody = $table.find(">tbody")[0];- $tbody = $(tree.tbody);-- // Prepare row templates:- // Determine column count from table header if any- columnCount = $("thead >tr:last >th", $table).length;- // Read TR templates from tbody if any- $row = $tbody.children("tr:first");- if( $row.length ) {- n = $row.children("td").length;- if( columnCount && n !== columnCount ) {- tree.warn("Column count mismatch between thead (" + columnCount + ") and tbody (" + n + "): using tbody.");- columnCount = n;- }- $row = $row.clone();- } else {- // Only thead is defined: create default row markup- _assert(columnCount >= 1, "Need either <thead> or <tbody> with <td> elements to determine column count.");- $row = $("<tr />");- for(i=0; i<columnCount; i++) {- $row.append("<td />");- }- }- $row.find(">td").eq(tableOpts.nodeColumnIdx)- .html("<span class='fancytree-node' />");- if( opts.aria ) {- $row.attr("role", "row");- $row.find("td").attr("role", "gridcell");- }- tree.rowFragment = document.createDocumentFragment();- tree.rowFragment.appendChild($row.get(0));-- // // If tbody contains a second row, use this as status node template- // $row = $tbody.children("tr:eq(1)");- // if( $row.length === 0 ) {- // tree.statusRowFragment = tree.rowFragment;- // } else {- // $row = $row.clone();- // tree.statusRowFragment = document.createDocumentFragment();- // tree.statusRowFragment.appendChild($row.get(0));- // }- //- $tbody.empty();-- // Make sure that status classes are set on the node's <tr> elements- tree.statusClassPropName = "tr";- tree.ariaPropName = "tr";- this.nodeContainerAttrName = "tr";-- // #489: make sure $container is set to <table>, even if ext-dnd is listed before ext-table- tree.$container = $table;-- this._superApply(arguments);-- // standard Fancytree created a root UL- $(tree.rootNode.ul).remove();- tree.rootNode.ul = null;-- // Add container to the TAB chain- // #577: Allow to set tabindex to "0", "-1" and ""- this.$container.attr("tabindex", opts.tabindex);- // this.$container.attr("tabindex", opts.tabbable ? "0" : "-1");- if(opts.aria) {- tree.$container- .attr("role", "treegrid")- .attr("aria-readonly", true);- }- },- nodeRemoveChildMarkup: function(ctx) {- var node = ctx.node;-// node.debug("nodeRemoveChildMarkup()");- node.visit(function(n){- if(n.tr){- $(n.tr).remove();- n.tr = null;- }- });- },- nodeRemoveMarkup: function(ctx) {- var node = ctx.node;-// node.debug("nodeRemoveMarkup()");- if(node.tr){- $(node.tr).remove();- node.tr = null;- }- this.nodeRemoveChildMarkup(ctx);- },- /* Override standard render. */- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- var children, firstTr, i, l, newRow, prevNode, prevTr, subCtx,- tree = ctx.tree,- node = ctx.node,- opts = ctx.options,- isRootNode = !node.parent;-- if( tree._enableUpdate === false ) {- // $.ui.fancytree.debug("*** nodeRender _enableUpdate: false");- return;- }- if( !_recursive ){- ctx.hasCollapsedParents = node.parent && !node.parent.expanded;- }- // $.ui.fancytree.debug("*** nodeRender " + node + ", isRoot=" + isRootNode, "tr=" + node.tr, "hcp=" + ctx.hasCollapsedParents, "parent.tr=" + (node.parent && node.parent.tr));- if( !isRootNode ){- if( node.tr && force ) {- this.nodeRemoveMarkup(ctx);- }- if( !node.tr ) {- if( ctx.hasCollapsedParents && !deep ) {- // #166: we assume that the parent will be (recursively) rendered- // later anyway.- // node.debug("nodeRender ignored due to unrendered parent");- return;- }- // Create new <tr> after previous row- // if( node.isStatusNode() ) {- // newRow = tree.statusRowFragment.firstChild.cloneNode(true);- // } else {- newRow = tree.rowFragment.firstChild.cloneNode(true);- // }- prevNode = findPrevRowNode(node);- // $.ui.fancytree.debug("*** nodeRender " + node + ": prev: " + prevNode.key);- _assert(prevNode);- if(collapsed === true && _recursive){- // hide all child rows, so we can use an animation to show it later- newRow.style.display = "none";- }else if(deep && ctx.hasCollapsedParents){- // also hide this row if deep === true but any parent is collapsed- newRow.style.display = "none";-// newRow.style.color = "red";- }- if(!prevNode.tr){- _assert(!prevNode.parent, "prev. row must have a tr, or be system root");- // tree.tbody.appendChild(newRow);- insertFirstChild(tree.tbody, newRow); // #675- }else{- insertSiblingAfter(prevNode.tr, newRow);- }- node.tr = newRow;- if( node.key && opts.generateIds ){- node.tr.id = opts.idPrefix + node.key;- }- node.tr.ftnode = node;- // if(opts.aria){- // $(node.tr).attr("aria-labelledby", "ftal_" + opts.idPrefix + node.key);- // }- node.span = $("span.fancytree-node", node.tr).get(0);- // Set icon, link, and title (normally this is only required on initial render)- this.nodeRenderTitle(ctx);- // Allow tweaking, binding, after node was created for the first time-// tree._triggerNodeEvent("createNode", ctx);- if ( opts.createNode ){- opts.createNode.call(tree, {type: "createNode"}, ctx);- }- } else {- if( force ) {- // Set icon, link, and title (normally this is only required on initial render)- this.nodeRenderTitle(ctx); // triggers renderColumns()- } else {- // Update element classes according to node state- this.nodeRenderStatus(ctx);- }- }- }- // Allow tweaking after node state was rendered-// tree._triggerNodeEvent("renderNode", ctx);- if ( opts.renderNode ){- opts.renderNode.call(tree, {type: "renderNode"}, ctx);- }- // Visit child nodes- // Add child markup- children = node.children;- if(children && (isRootNode || deep || node.expanded)){- for(i=0, l=children.length; i<l; i++) {- subCtx = $.extend({}, ctx, {node: children[i]});- subCtx.hasCollapsedParents = subCtx.hasCollapsedParents || !node.expanded;- this.nodeRender(subCtx, force, deep, collapsed, true);- }- }- // Make sure, that <tr> order matches node.children order.- if(children && !_recursive){ // we only have to do it once, for the root branch- prevTr = node.tr || null;- firstTr = tree.tbody.firstChild;- // Iterate over all descendants- node.visit(function(n){- if(n.tr){- if(!n.parent.expanded && n.tr.style.display !== "none"){- // fix after a node was dropped over a collapsed- n.tr.style.display = "none";- setChildRowVisibility(n, false);- }- if(n.tr.previousSibling !== prevTr){- node.debug("_fixOrder: mismatch at node: " + n);- var nextTr = prevTr ? prevTr.nextSibling : firstTr;- tree.tbody.insertBefore(n.tr, nextTr);- }- prevTr = n.tr;- }- });- }- // Update element classes according to node state- // if(!isRootNode){- // this.nodeRenderStatus(ctx);- // }- },- nodeRenderTitle: function(ctx, title) {- var $cb, res,- node = ctx.node,- opts = ctx.options,- isStatusNode = node.isStatusNode();-- res = this._super(ctx, title);-- if( node.isRootNode() ) {- return res;- }- // Move checkbox to custom column- if(opts.checkbox && !isStatusNode && opts.table.checkboxColumnIdx != null ){- $cb = $("span.fancytree-checkbox", node.span); //.detach();- $(node.tr).find("td").eq(+opts.table.checkboxColumnIdx).html($cb);- }- // Update element classes according to node state- this.nodeRenderStatus(ctx);-- if( isStatusNode ) {- if( opts.renderStatusColumns ) {- // Let user code write column content- opts.renderStatusColumns.call(ctx.tree, {type: "renderStatusColumns"}, ctx);- } // else: default rendering for status node: leave other cells empty- } else if ( opts.renderColumns ) {- opts.renderColumns.call(ctx.tree, {type: "renderColumns"}, ctx);- }- return res;- },- nodeRenderStatus: function(ctx) {- var indent,- node = ctx.node,- opts = ctx.options;-- this._super(ctx);-- $(node.tr).removeClass("fancytree-node");- // indent- indent = (node.getLevel() - 1) * opts.table.indentation;- $(node.span).css({paddingLeft: indent + "px"}); // #460- // $(node.span).css({marginLeft: indent + "px"});- },- /* Expand node, return Deferred.promise. */- nodeSetExpanded: function(ctx, flag, callOpts) {- // flag defaults to true- flag = (flag !== false);-- if((ctx.node.expanded && flag) || (!ctx.node.expanded && !flag)) {- // Expanded state isn't changed - just call base implementation- return this._superApply(arguments);- }-- var dfd = new $.Deferred(),- subOpts = $.extend({}, callOpts, {noEvents: true, noAnimation: true});-- callOpts = callOpts || {};-- function _afterExpand(ok) {- setChildRowVisibility(ctx.node, flag);- if( ok ) {- if( flag && ctx.options.autoScroll && !callOpts.noAnimation && ctx.node.hasChildren() ) {- // Scroll down to last child, but keep current node visible- ctx.node.getLastChild().scrollIntoView(true, {topNode: ctx.node}).always(function(){- if( !callOpts.noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- dfd.resolveWith(ctx.node);- });- } else {- if( !callOpts.noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- dfd.resolveWith(ctx.node);- }- } else {- if( !callOpts.noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- dfd.rejectWith(ctx.node);- }- }- // Call base-expand with disabled events and animation- this._super(ctx, flag, subOpts).done(function () {- _afterExpand(true);- }).fail(function () {- _afterExpand(false);- });- return dfd.promise();- },- nodeSetStatus: function(ctx, status, message, details) {- if(status === "ok"){- var node = ctx.node,- firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- $(firstChild.tr).remove();- }- }- return this._superApply(arguments);- },- treeClear: function(ctx) {- this.nodeRemoveChildMarkup(this._makeHookContext(this.rootNode));- return this._superApply(arguments);- },- treeDestroy: function(ctx) {- this.$container.find("tbody").empty();- this.$source && this.$source.removeClass("ui-helper-hidden");- return this._superApply(arguments);- }- /*,- treeSetFocus: function(ctx, flag) {-// alert("treeSetFocus" + ctx.tree.$container);- ctx.tree.$container.focus();- $.ui.fancytree.focusTree = ctx.tree;- }*/-});-}(jQuery, window, document));--/*!- * jquery.fancytree.themeroller.js- *- * Enable jQuery UI ThemeRoller styles.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * @see http://jqueryui.com/themeroller/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "themeroller",- version: "2.23.0",- // Default options for this extension.- options: {- activeClass: "ui-state-active", // Class added to active node- // activeClass: "ui-state-highlight",- addClass: "ui-corner-all", // Class added to all nodes- focusClass: "ui-state-focus", // Class added to focused node- hoverClass: "ui-state-hover", // Class added to hovered node- selectedClass: "ui-state-highlight" // Class added to selected nodes- // selectedClass: "ui-state-active"- },-- treeInit: function(ctx){- var $el = ctx.widget.element,- opts = ctx.options.themeroller;-- this._superApply(arguments);-- if($el[0].nodeName === "TABLE"){- $el.addClass("ui-widget ui-corner-all");- $el.find(">thead tr").addClass("ui-widget-header");- $el.find(">tbody").addClass("ui-widget-conent");- }else{- $el.addClass("ui-widget ui-widget-content ui-corner-all");- }-- $el.delegate(".fancytree-node", "mouseenter mouseleave", function(event){- var node = $.ui.fancytree.getNode(event.target),- flag = (event.type === "mouseenter");-- $(node.tr ? node.tr : node.span)- .toggleClass(opts.hoverClass + " " + opts.addClass, flag);- });- },- treeDestroy: function(ctx){- this._superApply(arguments);- ctx.widget.element.removeClass("ui-widget ui-widget-content ui-corner-all");- },- nodeRenderStatus: function(ctx){- var classes = {},- node = ctx.node,- $el = $(node.tr ? node.tr : node.span),- opts = ctx.options.themeroller;-- this._super(ctx);-/*- .ui-state-highlight: Class to be applied to highlighted or selected elements. Applies "highlight" container styles to an element and its child text, links, and icons.- .ui-state-error: Class to be applied to error messaging container elements. Applies "error" container styles to an element and its child text, links, and icons.- .ui-state-error-text: An additional class that applies just the error text color without background. Can be used on form labels for instance. Also applies error icon color to child icons.-- .ui-state-default: Class to be applied to clickable button-like elements. Applies "clickable default" container styles to an element and its child text, links, and icons.- .ui-state-hover: Class to be applied on mouseover to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.- .ui-state-focus: Class to be applied on keyboard focus to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.- .ui-state-active: Class to be applied on mousedown to clickable button-like elements. Applies "clickable active" container styles to an element and its child text, links, and icons.-*/- // Set ui-state-* class (handle the case that the same class is assigned- // to different states)- classes[opts.activeClass] = false;- classes[opts.focusClass] = false;- classes[opts.selectedClass] = false;- if( node.isActive() ) { classes[opts.activeClass] = true; }- if( node.hasFocus() ) { classes[opts.focusClass] = true; }- // activeClass takes precedence before selectedClass:- if( node.isSelected() && !node.isActive() ) { classes[opts.selectedClass] = true; }- $el.toggleClass(opts.activeClass, classes[opts.activeClass]);- $el.toggleClass(opts.focusClass, classes[opts.focusClass]);- $el.toggleClass(opts.selectedClass, classes[opts.selectedClass]);- // Additional classes (e.g. 'ui-corner-all')- $el.addClass(opts.addClass);- }-});-}(jQuery, window, document));--/*!- * jquery.fancytree.wide.js- * Support for 100% wide selection bars.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--var reNumUnit = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; // split "1.5em" to ["1.5", "em"]--/*******************************************************************************- * Private functions and variables- */-// var _assert = $.ui.fancytree.assert;--/* Calculate inner width without scrollbar */-// function realInnerWidth($el) {-// // http://blog.jquery.com/2012/08/16/jquery-1-8-box-sizing-width-csswidth-and-outerwidth/-// // inst.contWidth = parseFloat(this.$container.css("width"), 10);-// // 'Client width without scrollbar' - 'padding'-// return $el[0].clientWidth - ($el.innerWidth() - parseFloat($el.css("width"), 10));-// }--/* Create a global embedded CSS style for the tree. */-function defineHeadStyleElement(id, cssText) {- id = "fancytree-style-" + id;- var $headStyle = $("#" + id);-- if( !cssText ) {- $headStyle.remove();- return null;- }- if( !$headStyle.length ) {- $headStyle = $("<style />")- .attr("id", id)- .addClass("fancytree-style")- .prop("type", "text/css")- .appendTo("head");- }- try {- $headStyle.html(cssText);- } catch ( e ) {- // fix for IE 6-8- $headStyle[0].styleSheet.cssText = cssText;- }- return $headStyle;-}--/* Calculate the CSS rules that indent title spans. */-function renderLevelCss(containerId, depth, levelOfs, lineOfs, labelOfs, measureUnit)-{- var i,- prefix = "#" + containerId + " span.fancytree-level-",- rules = [];-- for(i = 0; i < depth; i++) {- rules.push(prefix + (i + 1) + " span.fancytree-title { padding-left: " +- (i * levelOfs + lineOfs) + measureUnit + "; }");- }- // Some UI animations wrap the UL inside a DIV and set position:relative on both.- // This breaks the left:0 and padding-left:nn settings of the title- rules.push(- "#" + containerId + " div.ui-effects-wrapper ul li span.fancytree-title, " +- "#" + containerId + " ul.fancytree-animating span.fancytree-title " + // #716- "{ padding-left: " + labelOfs + measureUnit + "; position: static; width: auto; }");- return rules.join("\n");-}---// /**-// * [ext-wide] Recalculate the width of the selection bar after the tree container-// * was resized.<br>-// * May be called explicitly on container resize, since there is no resize event-// * for DIV tags.-// *-// * @alias Fancytree#wideUpdate-// * @requires jquery.fancytree.wide.js-// */-// $.ui.fancytree._FancytreeClass.prototype.wideUpdate = function(){-// var inst = this.ext.wide,-// prevCw = inst.contWidth,-// prevLo = inst.lineOfs;--// inst.contWidth = realInnerWidth(this.$container);-// // Each title is precceeded by 2 or 3 icons (16px + 3 margin)-// // + 1px title border and 3px title padding-// // TODO: use code from treeInit() below-// inst.lineOfs = (this.options.checkbox ? 3 : 2) * 19;-// if( prevCw !== inst.contWidth || prevLo !== inst.lineOfs ) {-// this.debug("wideUpdate: " + inst.contWidth);-// this.visit(function(node){-// node.tree._callHook("nodeRenderTitle", node);-// });-// }-// };--/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "wide",- version: "2.23.0",- // Default options for this extension.- options: {- iconWidth: null, // Adjust this if @fancy-icon-width != "16px"- iconSpacing: null, // Adjust this if @fancy-icon-spacing != "3px"- labelSpacing: null, // Adjust this if padding between icon and label != "3px"- levelOfs: null // Adjust this if ul padding != "16px"- },-- treeCreate: function(ctx){- this._superApply(arguments);- this.$container.addClass("fancytree-ext-wide");-- var containerId, cssText, iconSpacingUnit, labelSpacingUnit, iconWidthUnit, levelOfsUnit,- instOpts = ctx.options.wide,- // css sniffing- $dummyLI = $("<li id='fancytreeTemp'><span class='fancytree-node'><span class='fancytree-icon' /><span class='fancytree-title' /></span><ul />")- .appendTo(ctx.tree.$container),- $dummyIcon = $dummyLI.find(".fancytree-icon"),- $dummyUL = $dummyLI.find("ul"),- // $dummyTitle = $dummyLI.find(".fancytree-title"),- iconSpacing = instOpts.iconSpacing || $dummyIcon.css("margin-left"),- iconWidth = instOpts.iconWidth || $dummyIcon.css("width"),- labelSpacing = instOpts.labelSpacing || "3px",- levelOfs = instOpts.levelOfs || $dummyUL.css("padding-left");-- $dummyLI.remove();-- iconSpacingUnit = iconSpacing.match(reNumUnit)[2];- iconSpacing = parseFloat(iconSpacing, 10);- labelSpacingUnit = labelSpacing.match(reNumUnit)[2];- labelSpacing = parseFloat(labelSpacing, 10);- iconWidthUnit = iconWidth.match(reNumUnit)[2];- iconWidth = parseFloat(iconWidth, 10);- levelOfsUnit = levelOfs.match(reNumUnit)[2];- if( iconSpacingUnit !== iconWidthUnit || levelOfsUnit !== iconWidthUnit || labelSpacingUnit !== iconWidthUnit ) {- $.error("iconWidth, iconSpacing, and levelOfs must have the same css measure unit");- }- this._local.measureUnit = iconWidthUnit;- this._local.levelOfs = parseFloat(levelOfs);- this._local.lineOfs = (1 + (ctx.options.checkbox ? 1 : 0) +- (ctx.options.icon === false ? 0 : 1)) * (iconWidth + iconSpacing) +- iconSpacing;- this._local.labelOfs = labelSpacing;- this._local.maxDepth = 10;-- // Get/Set a unique Id on the container (if not already exists)- containerId = this.$container.uniqueId().attr("id");- // Generated css rules for some levels (extended on demand)- cssText = renderLevelCss(containerId, this._local.maxDepth,- this._local.levelOfs, this._local.lineOfs, this._local.labelOfs,- this._local.measureUnit);- defineHeadStyleElement(containerId, cssText);- },- treeDestroy: function(ctx){- // Remove generated css rules- defineHeadStyleElement(this.$container.attr("id"), null);- return this._superApply(arguments);- },- nodeRenderStatus: function(ctx) {- var containerId, cssText, res,- node = ctx.node,- level = node.getLevel();-- res = this._super(ctx);- // Generate some more level-n rules if required- if( level > this._local.maxDepth ) {- containerId = this.$container.attr("id");- this._local.maxDepth *= 2;- node.debug("Define global ext-wide css up to level " + this._local.maxDepth);- cssText = renderLevelCss(containerId, this._local.maxDepth,- this._local.levelOfs, this._local.lineOfs, this._local.labelSpacing,- this._local.measureUnit);- defineHeadStyleElement(containerId, cssText);- }- // Add level-n class to apply indentation padding.- // (Setting element style would not work, since it cannot easily be- // overriden while animations run)- $(node.span).addClass("fancytree-level-" + level);- return res;- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/jquery.fancytree-all.min.js b/public/libraries/fancytree/jquery.fancytree-all.min.jsindex 48d0b9806b..41f2c37960 100644--- a/public/libraries/fancytree/jquery.fancytree-all.min.js+++ b/public/libraries/fancytree/jquery.fancytree-all.min.js@@ -1,50 +1,74 @@-/*! jQuery Fancytree Plugin - 2.23.0 - 2017-05-27T20:09:38Z+/*! jQuery Fancytree Plugin - 2.26.0 - 2017-11-04T17:52:53Z* https://github.com/mar10/fancytree- * Copyright (c) 2017 Martin Wendt; Licensed MIT */+ * Copyright (c) 2017 Martin Wendt; Licensed MIT+ */(function( factory ) {if ( typeof define === "function" && define.amd ) {- define( [ "jquery" ], factory );+ // AMD. Register as an anonymous module.+ define( [+ "jquery",+ "jquery-ui/ui/widgets/mouse",+ "jquery-ui/ui/widgets/draggable",+ "jquery-ui/ui/widgets/droppable",+ "jquery-ui/ui/effects/effect-blind",+ "jquery-ui/ui/data",+ "jquery-ui/ui/effect",+ "jquery-ui/ui/focusable",+ "jquery-ui/ui/keycode",+ "jquery-ui/ui/position",+ "jquery-ui/ui/scroll-parent",+ "jquery-ui/ui/tabbable",+ "jquery-ui/ui/unique-id",+ "jquery-ui/ui/widget"+ ], factory );+ } else if ( typeof module === "object" && module.exports ) {+ // Node/CommonJS+ module.exports = factory(require("jquery"));} else {+ // Browser globalsfactory( jQuery );}}(function( $ ) {-!function(a,b,c,d){"use strict";function e(b,c){b||(c=c?": "+c:"",a.error("Fancytree assertion failed"+c))}function f(a,c){var d,e,f=b.console?b.console[a]:null;if(f)try{f.apply(b.console,c)}catch(g){for(e="",d=0;d<c.length;d++)e+=c[d];f(e)}}function g(a){return!(!a.tree||a.statusNodeType===d)}function h(b,c,d,e){var f,g,h,i=a.map(a.trim(b).split("."),function(a){return parseInt(a,10)}),j=a.map(Array.prototype.slice.call(arguments,1),function(a){return parseInt(a,10)});for(f=0;f<j.length;f++)if(g=i[f]||0,h=j[f]||0,g!==h)return g>h;return!0}function i(a,b,c,d,e){var f=function(){var c=b[a],f=d[a],g=b.ext[e],h=function(){return c.apply(b,arguments)},i=function(a){return c.apply(b,a)};return function(){var a=b._local,c=b._super,d=b._superApply;try{return b._local=g,b._super=h,b._superApply=i,f.apply(b,arguments)}finally{b._local=a,b._super=c,b._superApply=d}}}();return f}function j(b,c,d,e){for(var f in d)"function"==typeof d[f]?"function"==typeof b[f]?b[f]=i(f,b,c,d,e):"_"===f.charAt(0)?b.ext[e][f]=i(f,b,c,d,e):a.error("Could not override tree."+f+". Use prefix '_' to create tree."+e+"._"+f):"options"!==f&&(b.ext[e][f]=d[f])}function k(b,c){return b===d?a.Deferred(function(){this.resolve()}).promise():a.Deferred(function(){this.resolveWith(b,c)}).promise()}function l(b,c){return b===d?a.Deferred(function(){this.reject()}).promise():a.Deferred(function(){this.rejectWith(b,c)}).promise()}function m(a,b){return function(){a.resolveWith(b)}}function n(b){var c=a.extend({},b.data()),d=c.json;return delete c.fancytree,delete c.uiFancytree,d&&(delete c.json,c=a.extend(c,d)),c}function o(a){return(""+a).replace(y,function(a){return B[a]})}function p(a){return(""+a).replace(z,function(a){return B[a]})}function q(a){return a=a.toLowerCase(),function(b){return b.title.toLowerCase().indexOf(a)>=0}}function r(a){var b=new RegExp("^"+a,"i");return function(a){return b.test(a.title)}}function s(b,c){var d,f,g,h;for(this.parent=b,this.tree=b.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},d=0,f=H.length;d<f;d++)g=H[d],this[g]=c[g];null==this.unselectableIgnore&&null==this.unselectableStatus||(this.unselectable=!0),c.hideCheckbox&&a.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'"),c.data&&a.extend(this.data,c.data);for(g in c)I[g]||a.isFunction(c[g])||K[g]||(this.data[g]=c[g]);null==this.key?this.tree.options.defaultKey?(this.key=this.tree.options.defaultKey(this),e(this.key,"defaultKey() must return a unique key")):this.key="_"+w._nextNodeKey++:this.key=""+this.key,c.active&&(e(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),c.selected&&(this.tree.lastSelectedNode=this),h=c.children,h?h.length?this._setChildren(h):this.children=this.lazy?[]:null:this.children=null,this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function t(b){this.widget=b,this.$div=b.element,this.options=b.options,this.options&&(a.isFunction(this.options.lazyload)&&!a.isFunction(this.options.lazyLoad)&&(this.options.lazyLoad=function(){return w.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),b.options.lazyload.apply(this,arguments)}),a.isFunction(this.options.loaderror)&&a.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),this.options.fx!==d&&w.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30."),this.options.removeNode!==d&&a.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).")),this.ext={},this.data=n(this.$div),this._id=a.ui.fancytree._nextId++,this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this._enableUpdate=!0,this.lastSelectedNode=null,this.systemFocusElement=null,this.lastQuicksearchTerm="",this.lastQuicksearchTime=0,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var c,e={tree:this};this.rootNode=new s(e,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,c=a("<ul>",{"class":"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=c,this.rootNode.ul=c[0],null==this.options.debugLevel&&(this.options.debugLevel=w.debugLevel)}if(a.ui&&a.ui.fancytree)return void a.ui.fancytree.warn("Fancytree: ignored duplicate include");var u,v,w=null,x=new RegExp(/\.|\//),y=/[&<>"'\/]/g,z=/[<>"'\/]/g,A="$recursive_request",B={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},C={16:!0,17:!0,18:!0},D={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={0:"",1:"left",2:"middle",3:"right"},F="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),G={},H="checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),I={},J={},K={active:!0,children:!0,data:!0,focus:!0};for(u=0;u<F.length;u++)G[F[u]]=!0;for(u=0;u<H.length;u++)v=H[u],I[v]=!0,v!==v.toLowerCase()&&(J[v.toLowerCase()]=v);e(a.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),s.prototype={_findDirectChild:function(a){var b,c,d=this.children;if(d)if("string"==typeof a){for(b=0,c=d.length;b<c;b++)if(d[b].key===a)return d[b]}else{if("number"==typeof a)return this.children[a];if(a.parent===this)return a}return null},_setChildren:function(a){e(a&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var b=0,c=a.length;b<c;b++)this.children.push(new s(this,a[b]))},addChildren:function(b,c){var d,f,g,h=this.getFirstChild(),i=this.getLastChild(),j=null,k=[];for(a.isPlainObject(b)&&(b=[b]),this.children||(this.children=[]),d=0,f=b.length;d<f;d++)k.push(new s(this,b[d]));if(j=k[0],null==c?this.children=this.children.concat(k):(c=this._findDirectChild(c),g=a.inArray(c,this.children),e(g>=0,"insertBefore must be an existing child"),this.children.splice.apply(this.children,[g,0].concat(k))),h&&!c){for(d=0,f=k.length;d<f;d++)k[d].render();h!==this.getFirstChild()&&h.renderStatus(),i!==this.getLastChild()&&i.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===k.length?k[0]:null),j},addClass:function(a){return this.toggleClass(a,!0)},addNode:function(a,b){switch(b!==d&&"over"!==b||(b="child"),b){case"after":return this.getParent().addChildren(a,this.getNextSibling());case"before":return this.getParent().addChildren(a,this);case"firstChild":var c=this.children?this.children[0]:null;return this.addChildren(a,c);case"child":case"over":return this.addChildren(a)}e(!1,"Invalid mode: "+b)},addPagingNode:function(b,c){var d,e;if(c=c||"child",b===!1){for(d=this.children.length-1;d>=0;d--)e=this.children[d],"paging"===e.statusNodeType&&this.removeChild(e);return void(this.partload=!1)}return b=a.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},b),this.partload=!0,this.addNode(b,c)},appendSibling:function(a){return this.addNode(a,"after")},applyPatch:function(b){if(null===b)return this.remove(),k(this);var c,d,e,f={children:!0,expanded:!0,parent:!0};for(c in b)e=b[c],f[c]||a.isFunction(e)||(I[c]?this[c]=e:this.data[c]=e);return b.hasOwnProperty("children")&&(this.removeChildren(),b.children&&this._setChildren(b.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),d=b.hasOwnProperty("expanded")?this.setExpanded(b.expanded):k(this)},collapseSiblings:function(){return this.tree._callHook("nodeCollapseSiblings",this)},copyTo:function(a,b,c){return a.addNode(this.toDict(!0,c),b)},countChildren:function(a){var b,c,d,e=this.children;if(!e)return 0;if(d=e.length,a!==!1)for(b=0,c=d;b<c;b++)d+=e[b].countChildren();return d},debug:function(a){this.tree.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),f("log",arguments))},discard:function(){return this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead."),this.resetLazy()},discardMarkup:function(a){var b=a?"nodeRemoveMarkup":"nodeRemoveChildMarkup";this.tree._callHook(b,this)},findAll:function(b){b=a.isFunction(b)?b:q(b);var c=[];return this.visit(function(a){b(a)&&c.push(a)}),c},findFirst:function(b){b=a.isFunction(b)?b:q(b);var c=null;return this.visit(function(a){if(b(a))return c=a,!1}),c},_changeSelectStatusAttrs:function(a){var b=!1,c=this.tree.options,f=w.evalOption("unselectable",this,this,c,!1),g=w.evalOption("unselectableStatus",this,this,c,d);switch(f&&null!=g&&(a=g),a){case!1:b=this.selected||this.partsel,this.selected=!1,this.partsel=!1;break;case!0:b=!this.selected||!this.partsel,this.selected=!0,this.partsel=!0;break;case d:b=this.selected||!this.partsel,this.selected=!1,this.partsel=!0;break;default:e(!1,"invalid state: "+a)}return b&&this.renderStatus(),b},fixSelection3AfterClick:function(a){var b=this.isSelected();this.visit(function(a){a._changeSelectStatusAttrs(b)}),this.fixSelection3FromEndNodes(a)},fixSelection3FromEndNodes:function(a){function b(a){var e,f,g,h,i,j,k,l,m,n=a.children;if(n&&n.length){for(j=!0,k=!1,e=0,f=n.length;e<f;e++)g=n[e],h=b(g),l=w.evalOption("unselectableIgnore",g,g,c,!1),l||(h!==!1&&(k=!0),h!==!0&&(j=!1));i=!!j||!!k&&d}else m=w.evalOption("unselectableStatus",a,a,c,d),i=null==m?!!a.selected:!!m;return a._changeSelectStatusAttrs(i),i}var c=this.tree.options;e(3===c.selectMode,"expected selectMode 3"),b(this),this.visitParents(function(a){var b,e,f,g,h,i,j=a.children,k=!0,l=!1;for(b=0,e=j.length;b<e;b++)f=j[b],h=w.evalOption("unselectableIgnore",f,f,c,!1),h||(i=w.evalOption("unselectableStatus",f,f,c,d),g=null==i?!!f.selected:!!i,(g||f.partsel)&&(l=!0),g||(k=!1));g=!!k||!!l&&d,a._changeSelectStatusAttrs(g)})},fromDict:function(b){for(var c in b)I[c]?this[c]=b[c]:"data"===c?a.extend(this.data,b.data):a.isFunction(b[c])||K[c]||(this.data[c]=b[c]);b.children&&(this.removeChildren(),this.addChildren(b.children)),this.renderTitle()},getChildren:function(){return this.hasChildren()===d?d:this.children},getFirstChild:function(){return this.children?this.children[0]:null},getIndex:function(){return a.inArray(this,this.parent.children)},getIndexHier:function(b,c){b=b||".";var d,e=[];return a.each(this.getParentList(!1,!0),function(a,b){d=""+(b.getIndex()+1),c&&(d=("0000000"+d).substr(-c)),e.push(d)}),e.join(b)},getKeyPath:function(a){var b=[],c=this.tree.options.keyPathSeparator;return this.visitParents(function(a){a.parent&&b.unshift(a.key)},!a),c+b.join(c)},getLastChild:function(){return this.children?this.children[this.children.length-1]:null},getLevel:function(){for(var a=0,b=this.parent;b;)a++,b=b.parent;return a},getNextSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=0,b=c.length-1;a<b;a++)if(c[a]===this)return c[a+1]}return null},getParent:function(){return this.parent},getParentList:function(a,b){for(var c=[],d=b?this:this.parent;d;)(a||d.parent)&&c.unshift(d),d=d.parent;return c},getPrevSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=1,b=c.length;a<b;a++)if(c[a]===this)return c[a-1]}return null},getSelectedNodes:function(a){var b=[];return this.visit(function(c){if(c.selected&&(b.push(c),a===!0))return"skip"}),b},hasChildren:function(){return this.lazy?null==this.children?d:0!==this.children.length&&(1!==this.children.length||!this.children[0].isStatusNode()||d):!(!this.children||!this.children.length)},hasFocus:function(){return this.tree.hasFocus()&&this.tree.focusNode===this},info:function(a){this.tree.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),f("info",arguments))},isActive:function(){return this.tree.activeNode===this},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a||a.tree!==this.tree)return!1;for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var a=this.parent;return!a||a.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var a=this.parent;return!a||a.children[a.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||this.hasChildren()!==d},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return this.hasChildren()===d},isVisible:function(){var a,b,c=this.getParentList(!1,!1);for(a=0,b=c.length;a<b;a++)if(!c[a].expanded)return!1;return!0},lazyLoad:function(a){return this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead."),this.load(a)},load:function(a){var b,c,d=this,f=this.isExpanded();return e(this.isLazy(),"load() requires a lazy node"),a||this.isUndefined()?(this.isLoaded()&&this.resetLazy(),c=this.tree._triggerNodeEvent("lazyLoad",this),c===!1?k(this):(e("boolean"!=typeof c,"lazyLoad event must return source in data.result"),b=this.tree._callHook("nodeLoadChildren",this,c),f?(this.expanded=!0,b.always(function(){d.render()})):b.always(function(){d.renderStatus()}),b)):k(this)},makeVisible:function(b){var c,d=this,e=[],f=new a.Deferred,g=this.getParentList(!1,!1),h=g.length,i=!(b&&b.noAnimation===!0),j=!(b&&b.scrollIntoView===!1);for(c=h-1;c>=0;c--)e.push(g[c].setExpanded(!0,b));return a.when.apply(a,e).done(function(){j?d.scrollIntoView(i).done(function(){f.resolve()}):f.resolve()}),f.promise()},moveTo:function(b,c,f){c===d||"over"===c?c="child":"firstChild"===c&&(b.children&&b.children.length?(c="before",b=b.children[0]):c="child");var g,h=this.parent,i="child"===c?b:b.parent;if(this!==b){if(this.parent?i.isDescendantOf(this)&&a.error("Cannot move a node to its own descendant"):a.error("Cannot move system root"),i!==h&&h.triggerModifyChild("remove",this),1===this.parent.children.length){if(this.parent===i)return;this.parent.children=this.parent.lazy?[]:null,this.parent.expanded=!1}else g=a.inArray(this,this.parent.children),e(g>=0,"invalid source parent"),this.parent.children.splice(g,1);if(this.parent=i,i.hasChildren())switch(c){case"child":i.children.push(this);break;case"before":g=a.inArray(b,i.children),e(g>=0,"invalid target parent"),i.children.splice(g,0,this);break;case"after":g=a.inArray(b,i.children),e(g>=0,"invalid target parent"),i.children.splice(g+1,0,this);break;default:a.error("Invalid mode "+c)}else i.children=[this];f&&b.visit(f,!0),i===h?i.triggerModifyChild("move",this):i.triggerModifyChild("add",this),this.tree!==b.tree&&(this.warn("Cross-tree moveTo is experimantal!"),this.visit(function(a){a.tree=b.tree},!0)),h.isDescendantOf(i)||h.render(),i.isDescendantOf(h)||i===h||i.render()}},navigate:function(b,c){function d(d){if(d){try{d.makeVisible({scrollIntoView:!1})}catch(e){}return a(d.span).is(":visible")?c===!1?d.setFocus():d.setActive():(d.debug("Navigate: skipping hidden node"),void d.navigate(b,c))}}var e,f,g,h=!0,i=a.ui.keyCode,j=null;switch(b){case i.BACKSPACE:this.parent&&this.parent.parent&&(g=d(this.parent));break;case i.HOME:this.tree.visit(function(b){if(a(b.span).is(":visible"))return g=d(b),!1});break;case i.END:this.tree.visit(function(b){a(b.span).is(":visible")&&(g=b)}),g&&(g=d(g));break;case i.LEFT:this.expanded?(this.setExpanded(!1),g=d(this)):this.parent&&this.parent.parent&&(g=d(this.parent));break;case i.RIGHT:this.expanded||!this.children&&!this.lazy?this.children&&this.children.length&&(g=d(this.children[0])):(this.setExpanded(),g=d(this));break;case i.UP:for(j=this.getPrevSibling();j&&!a(j.span).is(":visible");)j=j.getPrevSibling();for(;j&&j.expanded&&j.children&&j.children.length;)j=j.children[j.children.length-1];!j&&this.parent&&this.parent.parent&&(j=this.parent),g=d(j);break;case i.DOWN:if(this.expanded&&this.children&&this.children.length)j=this.children[0];else for(f=this.getParentList(!1,!0),e=f.length-1;e>=0;e--){for(j=f[e].getNextSibling();j&&!a(j.span).is(":visible");)j=j.getNextSibling();if(j)break}g=d(j);break;default:h=!1}return g||k()},remove:function(){return this.parent.removeChild(this)},removeChild:function(a){return this.tree._callHook("nodeRemoveChild",this,a)},removeChildren:function(){return this.tree._callHook("nodeRemoveChildren",this)},removeClass:function(a){return this.toggleClass(a,!1)},render:function(a,b){return this.tree._callHook("nodeRender",this,a,b)},renderTitle:function(){return this.tree._callHook("nodeRenderTitle",this)},renderStatus:function(){return this.tree._callHook("nodeRenderStatus",this)},replaceWith:function(b){var c,d=this.parent,f=a.inArray(this,d.children),g=this;return e(this.isPagingNode(),"replaceWith() currently requires a paging status node"),c=this.tree._callHook("nodeLoadChildren",this,b),c.done(function(a){var b=g.children;for(u=0;u<b.length;u++)b[u].parent=d;d.children.splice.apply(d.children,[f+1,0].concat(b)),g.children=null,g.remove(),d.render()}).fail(function(){g.setExpanded()}),c},resetLazy:function(){this.removeChildren(),this.expanded=!1,this.lazy=!0,this.children=d,this.renderStatus()},scheduleAction:function(b,c){this.tree.timer&&clearTimeout(this.tree.timer),this.tree.timer=null;var d=this;switch(b){case"cancel":break;case"expand":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger expand"),d.setExpanded(!0)},c);break;case"activate":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger activate"),d.setActive(!0)},c);break;default:a.error("Invalid mode "+b)}},scrollIntoView:function(f,h){h!==d&&g(h)&&(this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."),h={topNode:h});var i,j,l,m,n=a.extend({effects:f===!0?{duration:200,queue:!1}:f,scrollOfs:this.tree.options.scrollOfs,scrollParent:this.tree.options.scrollParent||this.tree.$container,topNode:null},h),o=new a.Deferred,p=this,q=a(this.span).height(),r=a(n.scrollParent),s=n.scrollOfs.top||0,t=n.scrollOfs.bottom||0,u=r.height(),v=r.scrollTop(),w=r,x=r[0]===b,y=n.topNode||null,z=null;return a(this.span).is(":visible")?(x?(j=a(this.span).offset().top,i=y&&y.span?a(y.span).offset().top:0,w=a("html,body")):(e(r[0]!==c&&r[0]!==c.body,"scrollParent should be a simple element or `window`, not document or body."),m=r.offset().top,j=a(this.span).offset().top-m+v,i=y?a(y.span).offset().top-m+v:0,l=Math.max(0,r.innerHeight()-r[0].clientHeight),u-=l),j<v+s?z=j-s:j+q>v+u-t&&(z=j+q-u+t,y&&(e(y.isRootNode()||a(y.span).is(":visible"),"topNode must be visible"),i<z&&(z=i-s))),null!==z?n.effects?(n.effects.complete=function(){o.resolveWith(p)},w.stop(!0).animate({scrollTop:z},n.effects)):(w[0].scrollTop=z,o.resolveWith(this)):o.resolveWith(this),o.promise()):(this.warn("scrollIntoView(): node is invisible."),k())},setActive:function(a,b){return this.tree._callHook("nodeSetActive",this,a,b)},setExpanded:function(a,b){return this.tree._callHook("nodeSetExpanded",this,a,b)},setFocus:function(a){return this.tree._callHook("nodeSetFocus",this,a)},setSelected:function(a,b){return this.tree._callHook("nodeSetSelected",this,a,b)},setStatus:function(a,b,c){return this.tree._callHook("nodeSetStatus",this,a,b,c)},setTitle:function(a){this.title=a,this.renderTitle(),this.triggerModify("rename")},sortChildren:function(a,b){var c,d,e=this.children;if(e){if(a=a||function(a,b){var c=a.title.toLowerCase(),d=b.title.toLowerCase();return c===d?0:c>d?1:-1},e.sort(a),b)for(c=0,d=e.length;c<d;c++)e[c].children&&e[c].sortChildren(a,"$norender$");"$norender$"!==b&&this.render(),this.triggerModifyChild("sort")}},toDict:function(b,c){var d,e,f,g={},h=this;if(a.each(H,function(a,b){(h[b]||h[b]===!1)&&(g[b]=h[b])}),a.isEmptyObject(this.data)||(g.data=a.extend({},this.data),a.isEmptyObject(g.data)&&delete g.data),c&&c(g,h),b&&this.hasChildren())for(g.children=[],d=0,e=this.children.length;d<e;d++)f=this.children[d],f.isStatusNode()||g.children.push(f.toDict(!0,c));return g},toggleClass:function(b,c){var e,f,g=/\S+/g,h=b.match(g)||[],i=0,j=!1,k=this[this.tree.statusClassPropName],l=" "+(this.extraClasses||"")+" ";for(k&&a(k).toggleClass(b,c);e=h[i++];)if(f=l.indexOf(" "+e+" ")>=0,c=c===d?!f:!!c)f||(l+=e+" ",j=!0);else for(;l.indexOf(" "+e+" ")>-1;)l=l.replace(" "+e+" "," ");return this.extraClasses=a.trim(l),j},toggleExpanded:function(){return this.tree._callHook("nodeToggleExpanded",this)},toggleSelected:function(){return this.tree._callHook("nodeToggleSelected",this)},toString:function(){return"<FancytreeNode(#"+this.key+", '"+this.title+"')>"},triggerModifyChild:function(b,c,d){var e,f=this.tree.options.modifyChild;f&&(c&&c.parent!==this&&a.error("childNode "+c+" is not a child of "+this),e={node:this,tree:this.tree,operation:b,childNode:c||null},d&&a.extend(e,d),f({type:"modifyChild"},e))},triggerModify:function(a,b){this.parent.triggerModifyChild(a,this,b)},visit:function(a,b){var c,d,e=!0,f=this.children;if(b===!0&&(e=a(this),e===!1||"skip"===e))return e;if(f)for(c=0,d=f.length;c<d&&(e=f[c].visit(a,!0),e!==!1);c++);return e},visitAndLoad:function(b,c,d){var e,f,g,h=this;return b&&c===!0&&(f=b(h),f===!1||"skip"===f)?d?f:k():h.children||h.lazy?(e=new a.Deferred,g=[],h.load().done(function(){for(var c=0,d=h.children.length;c<d;c++){if(f=h.children[c].visitAndLoad(b,!0,!0),f===!1){e.reject();break}"skip"!==f&&g.push(f)}a.when.apply(this,g).then(function(){e.resolve()})}),e.promise()):k()},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},visitSiblings:function(a,b){var c,d,e,f=this.parent.children;for(c=0,d=f.length;c<d;c++)if(e=f[c],(b||e!==this)&&a(e)===!1)return!1;return!0},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),f("warn",arguments)}},t.prototype={_makeHookContext:function(b,c,e){var f,g;return b.node!==d?(c&&b.originalEvent!==c&&a.error("invalid args"),f=b):b.tree?(g=b.tree,f={node:b,tree:g,widget:g.widget,options:g.widget.options,originalEvent:c}):b.widget?f={node:null,tree:b,widget:b.widget,options:b.widget.options,originalEvent:c}:a.error("invalid args"),e&&a.extend(f,e),f},_callHook:function(b,c,d){var e=this._makeHookContext(c),f=this[b],g=Array.prototype.slice.call(arguments,2);return a.isFunction(f)||a.error("_callHook('"+b+"') is not a function"),g.unshift(e),f.apply(this,g)},_requireExtension:function(b,c,d,f){d=!!d;var g=this._local.name,h=this.options.extensions,i=a.inArray(b,h)<a.inArray(g,h),j=c&&null==this.ext[b],k=!j&&null!=d&&d!==i;return e(g&&g!==b,"invalid or same name"),!j&&!k||(f||(j||c?(f="'"+g+"' extension requires '"+b+"'",k&&(f+=" to be registered "+(d?"before":"after")+" itself")):f="If used together, `"+b+"` must be registered "+(d?"before":"after")+" `"+g+"`"),a.error(f),!1)},activateKey:function(a){var b=this.getNodeByKey(a);return b?b.setActive():this.activeNode&&this.activeNode.setActive(!1),b},addPagingNode:function(a,b){return this.rootNode.addPagingNode(a,b)},applyPatch:function(b){var c,d,f,g,h,i,j=b.length,k=[];for(d=0;d<j;d++)f=b[d],e(2===f.length,"patchList must be an array of length-2-arrays"),g=f[0],h=f[1],i=null===g?this.rootNode:this.getNodeByKey(g),i?(c=new a.Deferred,k.push(c),i.applyPatch(h).always(m(c,i))):this.warn("could not find node with key '"+g+"'");return a.when.apply(a,k).promise()},clear:function(a){this._callHook("treeClear",this)},count:function(){return this.rootNode.countChildren()},debug:function(a){this.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),f("log",arguments))},enableUpdate:function(a){return a=a!==!1,!!this._enableUpdate==!!a?a:(this._enableUpdate=a,a?(this.debug("enableUpdate(true): redraw "),this.render()):this.debug("enableUpdate(false)..."),!a)},findAll:function(a){return this.rootNode.findAll(a)},findFirst:function(a){return this.rootNode.findFirst(a)},findNextNode:function(b,c,d){var e=null,f=c.parent.children,g=null,h=function(a,b,c){var d,e,f=a.children,g=f.length,i=f[b];if(i&&c(i)===!1)return!1;if(i&&i.children&&i.expanded&&h(i,0,c)===!1)return!1;for(d=b+1;d<g;d++)if(h(a,d,c)===!1)return!1;return e=a.parent,e?h(e,e.children.indexOf(a)+1,c):h(a,0,c)};return b="string"==typeof b?r(b):b,c=c||this.getFirstChild(),h(c.parent,f.indexOf(c),function(d){return d!==e&&(e=e||d,a(d.span).is(":visible")?(!b(d)||(g=d,g===c))&&void 0:void d.debug("quicksearch: skipping hidden node"))}),g},generateFormElements:function(b,c,d){function e(b){j.append(a("<input>",{type:"checkbox",name:g,value:b.key,checked:!0}))}d=d||{};var f,g="string"==typeof b?b:"ft_"+this._id+"[]",h="string"==typeof c?c:"ft_"+this._id+"_active",i="fancytree_result_"+this._id,j=a("#"+i),k=3===this.options.selectMode&&d.stopOnParents!==!1;j.length?j.empty():j=a("<div>",{id:i}).hide().insertAfter(this.$container),c!==!1&&this.activeNode&&j.append(a("<input>",{type:"radio",name:h,value:this.activeNode.key,checked:!0})),d.filter?this.visit(function(a){var b=d.filter(a);return"skip"===b?b:void(b!==!1&&e(a))}):b!==!1&&(f=this.getSelectedNodes(k),a.each(f,function(a,b){e(b)}))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getNodeByKey:function(a,b){var d,e;return!b&&(d=c.getElementById(this.options.idPrefix+a))?d.ftnode?d.ftnode:null:(b=b||this.rootNode,e=null,b.visit(function(b){if(b.key===a)return e=b,!1},!0),e)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(a){return this.rootNode.getSelectedNodes(a)},hasFocus:function(){return!!this._hasFocus},info:function(a){this.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),f("info",arguments))},loadKeyPath:function(b,c,e){function f(a,b,d){c.call(r,b,"loading"),b.load().done(function(){r.loadKeyPath.call(r,l[a],c,b).always(m(d,r))}).fail(function(e){r.warn("loadKeyPath: error loading: "+a+" (parent: "+o+")"),c.call(r,b,"error"),d.reject()})}var g,h,i,j,k,l,n,o,p,q=this.options.keyPathSeparator,r=this;for(c=c||a.noop,a.isArray(b)||(b=[b]),l={},i=0;i<b.length;i++)for(o=e||this.rootNode,j=b[i],j.charAt(0)===q&&(j=j.substr(1)),p=j.split(q);p.length;){if(k=p.shift(),n=o._findDirectChild(k),!n){this.warn("loadKeyPath: key not found: "+k+" (parent: "+o+")"),c.call(this,k,"error");break}if(0===p.length){c.call(this,n,"ok");break}if(n.lazy&&n.hasChildren()===d){c.call(this,n,"loaded"),l[k]?l[k].push(p.join(q)):l[k]=[p.join(q)];break}c.call(this,n,"loaded"),o=n}g=[];for(k in l)n=o._findDirectChild(k),null==n&&(n=r.getNodeByKey(k)),h=new a.Deferred,g.push(h),f(k,n,h);return a.when.apply(a,g).promise()},reactivate:function(a){var b,c=this.activeNode;return c?(this.activeNode=null,b=c.setActive(!0,{noFocus:!0}),a&&c.setFocus(),b):k()},reload:function(a){return this._callHook("treeClear",this),this._callHook("treeLoad",this,a)},render:function(a,b){return this.rootNode.render(a,b)},setFocus:function(a){return this._callHook("treeSetFocus",this,a)},toDict:function(a,b){var c=this.rootNode.toDict(!0,b);return a?c:c.children},toString:function(){return"<Fancytree(#"+this._id+")>"},_triggerNodeEvent:function(a,b,c,e){var f=this._makeHookContext(b,c,e),g=this.widget._trigger(a,c,f);return g!==!1&&f.result!==d?f.result:g},_triggerTreeEvent:function(a,b,c){var e=this._makeHookContext(this,b,c),f=this.widget._trigger(a,b,e);return f!==!1&&e.result!==d?e.result:f},visit:function(a){return this.rootNode.visit(a,!1)},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),f("warn",arguments)}},a.extend(t.prototype,{nodeClick:function(a){var b,c,d=a.targetType,e=a.node;if("expander"===d){if(e.isLoading())return void e.debug("Got 2nd click while loading: ignored");this._callHook("nodeToggleExpanded",a)}else if("checkbox"===d)this._callHook("nodeToggleSelected",a),a.options.focusOnSelect&&this._callHook("nodeSetFocus",a,!0);else{if(c=!1,b=!0,e.folder)switch(a.options.clickFolderMode){case 2:c=!0,b=!1;break;case 3:b=!0,c=!0}b&&(this.nodeSetFocus(a),this._callHook("nodeSetActive",a,!0)),c&&this._callHook("nodeToggleExpanded",a)}},nodeCollapseSiblings:function(a,b){var c,d,e,f=a.node;if(f.parent)for(c=f.parent.children,d=0,e=c.length;d<e;d++)c[d]!==f&&c[d].expanded&&this._callHook("nodeSetExpanded",c[d],!1,b)},nodeDblclick:function(a){"title"===a.targetType&&4===a.options.clickFolderMode&&this._callHook("nodeToggleExpanded",a),"title"===a.targetType&&a.originalEvent.preventDefault()},nodeKeydown:function(b){var c,d,e,f,g=b.originalEvent,h=b.node,i=b.tree,j=b.options,k=g.which,l=String.fromCharCode(k),m=!(g.altKey||g.ctrlKey||g.metaKey||g.shiftKey),n=a(g.target),o=!0,p=!(g.ctrlKey||!j.autoActivate);if(h||(f=this.getActiveNode()||this.getFirstChild(),f&&(f.setFocus(),h=b.node=this.focusNode,h.debug("Keydown force focus on active node"))),j.quicksearch&&m&&/\w/.test(l)&&!D[k]&&!n.is(":input:enabled"))return d=(new Date).getTime(),d-i.lastQuicksearchTime>500&&(i.lastQuicksearchTerm=""),i.lastQuicksearchTime=d,i.lastQuicksearchTerm+=l,c=i.findNextNode(i.lastQuicksearchTerm,i.getActiveNode()),c&&c.setActive(),void g.preventDefault();switch(w.eventToString(g)){case"+":case"=":i.nodeSetExpanded(b,!0);break;case"-":i.nodeSetExpanded(b,!1);break;case"space":h.isPagingNode()?i._triggerNodeEvent("clickPaging",b,g):j.checkbox?i.nodeToggleSelected(b):i.nodeSetActive(b,!0);break;case"return":i.nodeSetActive(b,!0);break;case"home":case"end":case"backspace":case"left":case"right":case"up":case"down":e=h.navigate(g.which,p,!0);break;default:o=!1}o&&g.preventDefault()},nodeLoadChildren:function(b,c){var d,f,g,h=b.tree,i=b.node,j=(new Date).getTime();return a.isFunction(c)&&(c=c.call(h,{type:"source"},b),e(!a.isFunction(c),"source callback must not return another function")),c.url&&(i._requestId&&i.warn("Recursive load request #"+j+" while #"+i._requestId+" is pending."),d=a.extend({},b.options.ajax,c),i._requestId=j,d.debugDelay?(f=d.debugDelay,a.isArray(f)&&(f=f[0]+Math.random()*(f[1]-f[0])),i.warn("nodeLoadChildren waiting debugDelay "+Math.round(f)+" ms ..."),d.debugDelay=!1,g=a.Deferred(function(b){setTimeout(function(){a.ajax(d).done(function(){b.resolveWith(this,arguments)}).fail(function(){b.rejectWith(this,arguments)})},f)})):g=a.ajax(d),c=new a.Deferred,g.done(function(d,e,f){var g,k;if("json"!==this.dataType&&"jsonp"!==this.dataType||"string"!=typeof d||a.error("Ajax request returned a string (did you get the JSON dataType wrong?)."),i._requestId&&i._requestId>j)return void c.rejectWith(this,[A]);if(b.options.postProcess){try{k=h._triggerNodeEvent("postProcess",b,b.originalEvent,{response:d,error:null,dataType:this.dataType})}catch(l){k={error:l,message:""+l,details:"postProcess failed"}}if(k.error)return g=a.isPlainObject(k.error)?k.error:{message:k.error},g=h._makeHookContext(i,null,g),void c.rejectWith(this,[g]);d=a.isArray(k)?k:d}else d&&d.hasOwnProperty("d")&&b.options.enableAspx&&(d="string"==typeof d.d?a.parseJSON(d.d):d.d);c.resolveWith(this,[d])}).fail(function(a,b,d){var e=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:d,details:a.status+": "+d});c.rejectWith(this,[e])})),a.isFunction(c.then)&&a.isFunction(c["catch"])&&(g=c,-c=new a.Deferred,g.then(function(a){c.resolve(a)},function(a){c.reject(a)})),a.isFunction(c.promise)&&(h.nodeSetStatus(b,"loading"),c.done(function(a){h.nodeSetStatus(b,"ok"),i._requestId=null}).fail(function(a){var c;return a===A?void i.warn("Ignored response for obsolete load request #"+j+" (expected #"+i._requestId+")"):(a.node&&a.error&&a.message?c=a:(c=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:a?a.message||a.toString():""}),"[object Object]"===c.message&&(c.message="")),i.warn("Load children failed ("+c.message+")",c),void(h._triggerNodeEvent("loadError",c,null)!==!1&&h.nodeSetStatus(b,"error",c.message,c.details)))})),a.when(c).done(function(b){var c;a.isPlainObject(b)&&(e(i.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),e(a.isArray(b.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),c=b,b=b.children,delete c.children,a.extend(h.data,c)),e(a.isArray(b),"expected array of children"),i._setChildren(b),h._triggerNodeEvent("loadChildren",i)})},nodeLoadKeyPath:function(a,b){},nodeRemoveChild:function(b,c){var d,f=b.node,g=a.extend({},b,{node:c}),h=f.children;return 1===h.length?(e(c===h[0],"invalid single child"),this.nodeRemoveChildren(b)):(this.activeNode&&(c===this.activeNode||this.activeNode.isDescendantOf(c))&&this.activeNode.setActive(!1),this.focusNode&&(c===this.focusNode||this.focusNode.isDescendantOf(c))&&(this.focusNode=null),this.nodeRemoveMarkup(g),this.nodeRemoveChildren(g),d=a.inArray(c,h),e(d>=0,"invalid child"),f.triggerModifyChild("remove",c),c.visit(function(a){a.parent=null},!0),this._callHook("treeRegisterNode",this,!1,c),void h.splice(d,1))},nodeRemoveChildMarkup:function(b){var c=b.node;c.ul&&(c.isRootNode()?a(c.ul).empty():(a(c.ul).remove(),c.ul=null),c.visit(function(a){a.li=a.ul=null}))},nodeRemoveChildren:function(b){var c,d=b.tree,e=b.node,f=e.children;f&&(this.activeNode&&this.activeNode.isDescendantOf(e)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(e)&&(this.focusNode=null),this.nodeRemoveChildMarkup(b),c=a.extend({},b),e.triggerModifyChild("remove",null),e.visit(function(a){a.parent=null,d._callHook("treeRegisterNode",d,!1,a)}),e.lazy?e.children=[]:e.children=null,e.isRootNode()||(e.expanded=!1),this.nodeRenderStatus(b))},nodeRemoveMarkup:function(b){var c=b.node;c.li&&(a(c.li).remove(),c.li=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(b,d,f,g,h){var i,j,k,l,m,n,o,p=b.node,q=b.tree,r=b.options,s=r.aria,t=!1,u=p.parent,v=!u,w=p.children,x=null;if(q._enableUpdate!==!1&&(v||u.ul)){if(e(v||u.ul,"parent UL must exist"),v||(p.li&&(d||p.li.parentNode!==p.parent.ul)&&(p.li.parentNode===p.parent.ul?x=p.li.nextSibling:this.debug("Unlinking "+p+" (must be child of "+p.parent+")"),this.nodeRemoveMarkup(b)),p.li?this.nodeRenderStatus(b):(t=!0,p.li=c.createElement("li"),p.li.ftnode=p,p.key&&r.generateIds&&(p.li.id=r.idPrefix+p.key),p.span=c.createElement("span"),p.span.className="fancytree-node",s&&!p.tr&&a(p.li).attr("role","treeitem"),p.li.appendChild(p.span),this.nodeRenderTitle(b),r.createNode&&r.createNode.call(q,{type:"createNode"},b)),r.renderNode&&r.renderNode.call(q,{type:"renderNode"},b)),w){if(v||p.expanded||f===!0){for(p.ul||(p.ul=c.createElement("ul"),(g!==!0||h)&&p.expanded||(p.ul.style.display="none"),s&&a(p.ul).attr("role","group"),p.li?p.li.appendChild(p.ul):p.tree.$div.append(p.ul)),l=0,m=w.length;l<m;l++)o=a.extend({},b,{node:w[l]}),this.nodeRender(o,d,f,!1,!0);for(i=p.ul.firstChild;i;)k=i.ftnode,k&&k.parent!==p?(p.debug("_fixParent: remove missing "+k,i),n=i.nextSibling,i.parentNode.removeChild(i),i=n):i=i.nextSibling;for(i=p.ul.firstChild,l=0,m=w.length-1;l<m;l++)j=w[l],k=i.ftnode,j!==k?p.ul.insertBefore(j.li,k.li):i=i.nextSibling}}else p.ul&&(this.warn("remove child markup for "+p),this.nodeRemoveChildMarkup(b));v||t&&u.ul.insertBefore(p.li,x)}},nodeRenderTitle:function(b,c){var e,f,g,h,i,j,k,l=b.node,m=b.tree,n=b.options,q=n.aria,r=l.getLevel(),s=[];c!==d&&(l.title=c),l.span&&m._enableUpdate!==!1&&(i=q&&l.hasChildren()!==!1?" role='button'":"",r<n.minExpandLevel?(l.lazy||(l.expanded=!0),r>1&&s.push("<span "+i+" class='fancytree-expander fancytree-expander-fixed'></span>")):s.push("<span "+i+" class='fancytree-expander'></span>"),e=w.evalOption("checkbox",l,l,n,!1),e&&!l.isStatusNode()&&(i=q?" role='checkbox'":"",f="fancytree-checkbox",("radio"===e||l.parent&&l.parent.radiogroup)&&(f+=" fancytree-radio"),s.push("<span "+i+" class='"+f+"'></span>")),l.data.iconClass!==d&&(l.icon?a.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(l.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),l.icon=l.data.iconClass)),g=w.evalOption("icon",l,l,n,!0),"boolean"!=typeof g&&(g=""+g),g!==!1&&(i=q?" role='presentation'":"","string"==typeof g?x.test(g)?(g="/"===g.charAt(0)?g:(n.imagePath||"")+g,s.push("<img src='"+g+"' class='fancytree-icon' alt='' />")):s.push("<span "+i+" class='fancytree-custom-icon "+g+"'></span>"):s.push("<span "+i+" class='fancytree-icon'></span>")),h="",n.renderTitle&&(h=n.renderTitle.call(m,{type:"renderTitle"},b)||""),h||(k=w.evalOption("tooltip",l,l,n,null),k===!0&&(k=l.title),k=k?" title='"+p(k)+"'":"",j=n.titlesTabbable?" tabindex='0'":"",h="<span class='fancytree-title'"+k+j+">"+(n.escapeTitles?o(l.title):l.title)+"</span>"),s.push(h),l.span.innerHTML=s.join(""),this.nodeRenderStatus(b),n.enhanceTitle&&(b.$title=a(">span.fancytree-title",l.span),h=n.enhanceTitle.call(m,{type:"enhanceTitle"},b)||""))},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options,g=d.hasChildren(),h=d.isLastSibling(),i=f.aria,j=f._classNames,k=[],l=d[e.statusClassPropName];l&&e._enableUpdate!==!1&&(i&&(c=a(d.tr||d.li)),k.push(j.node),e.activeNode===d&&k.push(j.active),e.focusNode===d&&k.push(j.focused),d.expanded&&k.push(j.expanded),i&&(g!==!1?c.attr("aria-expanded",Boolean(d.expanded)):c.removeAttr("aria-expanded")),d.folder&&k.push(j.folder),g!==!1&&k.push(j.hasChildren),h&&k.push(j.lastsib),d.lazy&&null==d.children&&k.push(j.lazy),d.partload&&k.push(j.partload),d.partsel&&k.push(j.partsel),w.evalOption("unselectable",d,d,f,!1)&&k.push(j.unselectable),d._isLoading&&k.push(j.loading),d._error&&k.push(j.error),d.statusNodeType&&k.push(j.statusNodePrefix+d.statusNodeType),d.selected?(k.push(j.selected),i&&c.attr("aria-selected",!0)):i&&c.attr("aria-selected",!1),d.extraClasses&&k.push(d.extraClasses),g===!1?k.push(j.combinedExpanderPrefix+"n"+(h?"l":"")):k.push(j.combinedExpanderPrefix+(d.expanded?"e":"c")+(d.lazy&&null==d.children?"d":"")+(h?"l":"")),k.push(j.combinedIconPrefix+(d.expanded?"e":"c")+(d.folder?"f":"")),l.className=k.join(" "),d.li&&a(d.li).toggleClass(j.lastsib,h))},nodeSetActive:function(b,c,d){d=d||{};var f,g=b.node,h=b.tree,i=b.options,j=d.noEvents===!0,m=d.noFocus===!0,n=g===h.activeNode;return c=c!==!1,n===c?k(g):c&&!j&&this._triggerNodeEvent("beforeActivate",g,b.originalEvent)===!1?l(g,["rejected"]):(c?(h.activeNode&&(e(h.activeNode!==g,"node was active (inconsistency)"),f=a.extend({},b,{node:h.activeNode}),h.nodeSetActive(f,!1),e(null===h.activeNode,"deactivate was out of sync?")),i.activeVisible&&g.makeVisible({scrollIntoView:m&&null==h.focusNode}),h.activeNode=g,h.nodeRenderStatus(b),m||h.nodeSetFocus(b),j||h._triggerNodeEvent("activate",g,b.originalEvent)):(e(h.activeNode===g,"node was not active (inconsistency)"),h.activeNode=null,this.nodeRenderStatus(b),j||b.tree._triggerNodeEvent("deactivate",g,b.originalEvent)),k(g))},nodeSetExpanded:function(b,c,e){e=e||{};var f,g,h,i,j,m,n=b.node,o=b.tree,p=b.options,q=e.noAnimation===!0,r=e.noEvents===!0;if(c=c!==!1,n.expanded&&c||!n.expanded&&!c)return k(n);if(c&&!n.lazy&&!n.hasChildren())return k(n);if(!c&&n.getLevel()<p.minExpandLevel)return l(n,["locked"]);if(!r&&this._triggerNodeEvent("beforeExpand",n,b.originalEvent)===!1)return l(n,["rejected"]);if(q||n.isVisible()||(q=e.noAnimation=!0),g=new a.Deferred,c&&!n.expanded&&p.autoCollapse){j=n.getParentList(!1,!0),m=p.autoCollapse;try{for(p.autoCollapse=!1,h=0,i=j.length;h<i;h++)this._callHook("nodeCollapseSiblings",j[h],e)}finally{p.autoCollapse=m}}return g.done(function(){var a=n.getLastChild();c&&p.autoScroll&&!q&&a?a.scrollIntoView(!0,{topNode:n}).always(function(){r||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}):r||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}),f=function(d){var e,f,g=p._classNames,h=p.toggleEffect;if(n.expanded=c,o._callHook("nodeRender",b,!1,!1,!0),n.ul)if(e="none"!==n.ul.style.display,f=!!n.expanded,e===f)n.warn("nodeSetExpanded: UL.style.display already set");else{if(h&&!q)return a(n.li).addClass(g.animating),void a(n.ul).addClass(g.animating).toggle(h.effect,h.options,h.duration,function(){a(this).removeClass(g.animating),a(n.li).removeClass(g.animating),d()});n.ul.style.display=n.expanded||!parent?"":"none"}d()},c&&n.lazy&&n.hasChildren()===d?n.load().done(function(){g.notifyWith&&g.notifyWith(n,["loaded"]),f(function(){g.resolveWith(n)})}).fail(function(a){f(function(){g.rejectWith(n,["load failed ("+a+")"])})}):f(function(){g.resolveWith(n)}),g.promise()},nodeSetFocus:function(b,d){var e,f=b.tree,g=b.node,h=f.options,i=!!b.originalEvent&&a(b.originalEvent.target).is(":input");if(d=d!==!1,f.focusNode){if(f.focusNode===g&&d)return;e=a.extend({},b,{node:f.focusNode}),f.focusNode=null,this._triggerNodeEvent("blur",e),this._callHook("nodeRenderStatus",e)}d&&(this.hasFocus()||(g.debug("nodeSetFocus: forcing container focus"),this._callHook("treeSetFocus",b,!0,{calledByNode:!0})),g.makeVisible({scrollIntoView:!1}),f.focusNode=g,h.titlesTabbable?i||a(g.span).find(".fancytree-title").focus():0===a(c.activeElement).closest(".fancytree-container").length&&a(f.$container).focus(),h.aria&&a(f.$container).attr("aria-activedescendant",a(g.tr||g.li).uniqueId().attr("id")),this._triggerNodeEvent("focus",b),h.autoScroll&&g.scrollIntoView(),this._callHook("nodeRenderStatus",b))},nodeSetSelected:function(a,b,c){c=c||{};var d=a.node,e=a.tree,f=a.options,g=c.noEvents===!0;if(b=b!==!1,!w.evalOption("unselectable",d,d,f,!1)){if(d._lastSelectIntent=b,!!d.selected===b&&(3!==f.selectMode||!d.partsel||b))return b;if(!g&&this._triggerNodeEvent("beforeSelect",d,a.originalEvent)===!1)return!!d.selected;b&&1===f.selectMode?(e.lastSelectedNode&&e.lastSelectedNode.setSelected(!1),d.selected=b):3!==f.selectMode||d.parent.radiogroup||d.radiogroup?d.parent.radiogroup?d.visitSiblings(function(a){a._changeSelectStatusAttrs(b&&a===d)},!0):d.selected=b:(d.selected=b,d.fixSelection3AfterClick(c)),this.nodeRenderStatus(a),e.lastSelectedNode=b?d:null,g||e._triggerNodeEvent("select",a)}},nodeSetStatus:function(b,c,d,e){function f(){var a=h.children?h.children[0]:null;if(a&&a.isStatusNode()){try{h.ul&&(h.ul.removeChild(a.li),a.li=null)}catch(b){}1===h.children.length?h.children=[]:h.children.shift()}}function g(b,c){var d=h.children?h.children[0]:null;return d&&d.isStatusNode()?(a.extend(d,b),d.statusNodeType=c,i._callHook("nodeRenderTitle",d)):(h._setChildren([b]),h.children[0].statusNodeType=c,i.render()),h.children[0]}var h=b.node,i=b.tree;switch(c){case"ok":f(),h._isLoading=!1,h._error=null,h.renderStatus();break;case"loading":h.parent||g({title:i.options.strings.loading+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!0,h._error=null,h.renderStatus();break;case"error":g({title:i.options.strings.loadError+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error={message:d,details:e},h.renderStatus();break;case"nodata":g({title:i.options.strings.noData,checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error=null,h.renderStatus();break;default:a.error("invalid node status "+c)}},nodeToggleExpanded:function(a){return this.nodeSetExpanded(a,!a.node.expanded)},nodeToggleSelected:function(a){var b=a.node,c=!b.selected;return b.partsel&&!b.selected&&b._lastSelectIntent===!0&&(c=!1,b.selected=!0),b._lastSelectIntent=c,this.nodeSetSelected(a,c)},treeClear:function(a){var b=a.tree;b.activeNode=null,b.focusNode=null,b.$div.find(">ul.fancytree-container").empty(),b.rootNode.children=null},treeCreate:function(a){},treeDestroy:function(a){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("ui-helper-hidden")},treeInit:function(a){var b=a.tree,c=b.options;b.$container.attr("tabindex",c.tabindex),c.rtl?b.$container.attr("DIR","RTL").addClass("fancytree-rtl"):b.$container.removeAttr("DIR").removeClass("fancytree-rtl"),c.aria&&(b.$container.attr("role","tree"),1!==c.selectMode&&b.$container.attr("aria-multiselectable",!0)),this.treeLoad(a)},treeLoad:function(b,c){var d,f,g,h,i=b.tree,j=b.widget.element,k=a.extend({},b,{node:this.rootNode});if(i.rootNode.children&&this.treeClear(b),c=c||this.options.source)"string"==typeof c&&a.error("Not implemented");else switch(f=j.data("type")||"html"){case"html":g=j.find(">ul:first"),g.addClass("ui-fancytree-source ui-helper-hidden"),c=a.ui.fancytree.parseHtml(g),this.data=a.extend(this.data,n(g));break;case"json":c=a.parseJSON(j.text()),j.contents().filter(function(){return 3===this.nodeType}).remove(),a.isPlainObject(c)&&(e(a.isArray(c.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),d=c,c=c.children,delete d.children,a.extend(i.data,d));break;default:a.error("Invalid data-type: "+f)}return h=this.nodeLoadChildren(k,c).done(function(){i.render(),3===b.options.selectMode&&i.rootNode.fixSelection3FromEndNodes(),i.activeNode&&i.options.activeVisible&&i.activeNode.makeVisible(),i._triggerTreeEvent("init",null,{status:!0})}).fail(function(){i.render(),i._triggerTreeEvent("init",null,{status:!1})})},treeRegisterNode:function(a,b,c){},treeSetFocus:function(b,c,d){function e(a){!a.activeNode&&a.getFirstChild()&&a.getFirstChild().setFocus()}if(c=c!==!1,c!==this.hasFocus()&&(this._hasFocus=c,!c&&this.focusNode?this.focusNode.setFocus(!1):!c||d&&d.calledByNode||a(this.$container).focus(),this.$container.toggleClass("fancytree-treefocus",c),this._triggerTreeEvent(c?"focusTree":"blurTree"),c)){var f=this;setTimeout(function(){e(f)},0)}},treeSetOption:function(b,c,d){var e=b.tree,f=!0,g=!1;switch(c){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":e._callHook("treeCreate",e),g=!0;break;case"escapeTitles":case"tooltip":g=!0;break;case"rtl":d===!1?e.$container.removeAttr("DIR").removeClass("fancytree-rtl"):e.$container.attr("DIR","RTL").addClass("fancytree-rtl"),g=!0;break;case"source":f=!1,e._callHook("treeLoad",e,d),g=!0}e.debug("set option "+c+"="+d+" <"+typeof d+">"),f&&(this.widget._super?this.widget._super.call(this.widget,c,d):a.Widget.prototype._setOption.call(this.widget,c,d)),g&&e.render(!0,!1)}}),a.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,debugLevel:null,disabled:!1,enableAspx:!0,escapeTitles:!1,extensions:[],toggleEffect:{effect:"blind",options:{direction:"vertical",scale:"box"},duration:200},generateIds:!1,icon:!0,idPrefix:"ft_",focusOnSelect:!1,keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,tooltip:!1,_classNames:{node:"fancytree-node",folder:"fancytree-folder",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",hasChildren:"fancytree-has-children",active:"fancytree-active",selected:"fancytree-selected",expanded:"fancytree-expanded",lazy:"fancytree-lazy",focused:"fancytree-focused",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",unselectable:"fancytree-unselectable",lastsib:"fancytree-lastsib",loading:"fancytree-loading",error:"fancytree-error",statusNodePrefix:"fancytree-statusnode-"},lazyLoad:null,postProcess:null},_create:function(){this.tree=new t(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul:first");var b,c,f,g=this.options,h=g.extensions,i=this.tree;for(f=0;f<h.length;f++)c=h[f],b=a.ui.fancytree._extensions[c],b||a.error("Could not apply extension '"+c+"' (it is not registered, did you forget to include it?)"),this.tree.options[c]=a.extend(!0,{},b.options,this.tree.options[c]),e(this.tree.ext[c]===d,"Extension name must not exist as Fancytree.ext attribute: '"+c+"'"),this.tree.ext[c]={},j(this.tree,i,b,c),i=b;g.icons!==d&&(g.icon!==!0?a.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead"),g.icon=g.icons)),g.iconClass!==d&&(g.icon?a.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead"),g.icon=g.iconClass)),g.tabbable!==d&&(g.tabindex=g.tabbable?"0":"-1",this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='"+g.tabindex+"' instead")),this.tree._callHook("treeCreate",this.tree)},_init:function(){this.tree._callHook("treeInit",this.tree),this._bind()},_setOption:function(a,b){return this.tree._callHook("treeSetOption",this.tree,a,b)},destroy:function(){this._unbind(),this.tree._callHook("treeDestroy",this.tree),a.Widget.prototype.destroy.call(this)},_unbind:function(){var b=this.tree._ns;this.element.off(b),this.tree.$container.off(b),a(c).off(b)},_bind:function(){var a=this,b=this.options,c=this.tree,d=c._ns;this._unbind(),c.$container.on("focusin"+d+" focusout"+d,function(a){var b=w.getNode(a),d="focusin"===a.type;b?c._callHook("nodeSetFocus",c._makeHookContext(b,a),d):c._callHook("treeSetFocus",c,d)}).on("selectstart"+d,"span.fancytree-title",function(a){a.preventDefault()}).on("keydown"+d,function(a){if(b.disabled||b.keyboard===!1)return!0;var d,e=c.focusNode,f=c._makeHookContext(e||c,a),g=c.phase;try{return c.phase="userEvent",d=e?c._triggerNodeEvent("keydown",e,a):c._triggerTreeEvent("keydown",a),"preventNav"===d?d=!0:d!==!1&&(d=c._callHook("nodeKeydown",f)),d}finally{c.phase=g}}).on("mousedown"+d+" dblclick"+d,function(c){if(b.disabled)return!0;var d,e=w.getEventTarget(c),f=e.node,g=a.tree,h=g.phase;if(!f)return!0;d=g._makeHookContext(f,c);try{switch(g.phase="userEvent",c.type){case"mousedown":return d.targetType=e.type,f.isPagingNode()?g._triggerNodeEvent("clickPaging",d,c)===!0:g._triggerNodeEvent("click",d,c)!==!1&&g._callHook("nodeClick",d);case"dblclick":return d.targetType=e.type,g._triggerNodeEvent("dblclick",d,c)!==!1&&g._callHook("nodeDblclick",d)}}finally{g.phase=h}})},getActiveNode:function(){return this.tree.activeNode},getNodeByKey:function(a){return this.tree.getNodeByKey(a)},getRootNode:function(){return this.tree.rootNode},getTree:function(){return this.tree}}),w=a.ui.fancytree,a.extend(a.ui.fancytree,{version:"2.23.0",buildType: "production",debugLevel: 1,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:t,_FancytreeNodeClass:s,jquerySupports:{positionMyOfs:h(a.ui.version,1,9)},assert:function(a,b){return e(a,b)},debounce:function(a,b,c,d){var e;return 3===arguments.length&&"boolean"!=typeof c&&(d=c,c=!1),function(){var f=arguments;d=d||this,c&&!e&&b.apply(d,f),clearTimeout(e),e=setTimeout(function(){c||b.apply(d,f),e=null},a)}},debug:function(b){a.ui.fancytree.debugLevel>=2&&f("log",arguments)},error:function(a){f("error",arguments)},escapeHtml:o,fixPositionOptions:function(b){if((b.offset||(""+b.my+b.at).indexOf("%")>=0)&&a.error("expected new position syntax (but '%' is not supported)"),!a.ui.fancytree.jquerySupports.positionMyOfs){var c=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.my),d=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.at),e=(c[2]?+c[2]:0)+(d[2]?+d[2]:0),f=(c[4]?+c[4]:0)+(d[4]?+d[4]:0);b=a.extend({},b,{my:c[1]+" "+c[3],at:d[1]+" "+d[3]}),(e||f)&&(b.offset=""+e+" "+f)}return b},getEventTargetType:function(a){return this.getEventTarget(a).type},getEventTarget:function(b){var c=b&&b.target?b.target.className:"",e={node:this.getNode(b.target),type:d};return/\bfancytree-title\b/.test(c)?e.type="title":/\bfancytree-expander\b/.test(c)?e.type=e.node.hasChildren()===!1?"prefix":"expander":/\bfancytree-checkbox\b/.test(c)?e.type="checkbox":/\bfancytree-icon\b/.test(c)?e.type="icon":/\bfancytree-node\b/.test(c)?e.type="title":b&&b.target&&a(b.target).closest(".fancytree-title").length&&(e.type="title"),e},getNode:function(a){if(a instanceof s)return a;for(a instanceof jQuery?a=a[0]:a.originalEvent!==d&&(a=a.target);a;){if(a.ftnode)return a.ftnode;a=a.parentNode}return null},getTree:function(b){var c;return b instanceof t?b:(b===d&&(b=0),"number"==typeof b?b=a(".fancytree-container").eq(b):"string"==typeof b?b=a(b).eq(0):b.selector!==d?b=b.eq(0):b.originalEvent!==d&&(b=a(b.target)),b=b.closest(":ui-fancytree"),c=b.data("ui-fancytree")||b.data("fancytree"),c?c.tree:null)},evalOption:function(b,c,d,e,f){var g,h,i=c.tree,j=e[b],k=d[b];return a.isFunction(j)?(g={node:c,tree:i,widget:i.widget,options:i.widget.options},h=j.call(i,{type:b},g),null==h&&(h=k)):h=null!=k?k:j,null==h&&(h=f),h},eventToString:function(a){var b=a.which,c=a.type,d=[];return a.altKey&&d.push("alt"),a.ctrlKey&&d.push("ctrl"),a.metaKey&&d.push("meta"),a.shiftKey&&d.push("shift"),"click"===c||"dblclick"===c?d.push(E[a.button]+c):C[b]||d.push(D[b]||String.fromCharCode(b).toLowerCase()),d.join("+")},info:function(b){a.ui.fancytree.debugLevel>=1&&f("info",arguments)},keyEventToString:function(a){return this.warn("keyEventToString() is deprecated: use eventToString()"),this.eventToString(a)},overrideMethod:function(b,c,d){var e,f=b[c]||a.noop;b[c]=function(){try{return e=this._super,this._super=f,d.apply(this,arguments)}finally{this._super=e}}},parseHtml:function(b){var c,e,f,g,h,i,j,k,l=b.find(">li"),m=[];return l.each(function(){var l,o,p=a(this),q=p.find(">span:first",this),r=q.length?null:p.find(">a:first"),s={tooltip:null,data:{}};for(q.length?s.title=q.html():r&&r.length?(s.title=r.html(),s.data.href=r.attr("href"),s.data.target=r.attr("target"),s.tooltip=r.attr("title")):(s.title=p.html(),h=s.title.search(/<ul/i),h>=0&&(s.title=s.title.substring(0,h))),s.title=a.trim(s.title),g=0,i=F.length;g<i;g++)s[F[g]]=d;for(c=this.className.split(" "),f=[],g=0,i=c.length;g<i;g++)e=c[g],G[e]?s[e]=!0:f.push(e);if(s.extraClasses=f.join(" "),j=p.attr("title"),j&&(s.tooltip=j),j=p.attr("id"),j&&(s.key=j),p.attr("hideCheckbox")&&(s.checkbox=!1),l=n(p),l&&!a.isEmptyObject(l)){for(o in J)l.hasOwnProperty(o)&&(l[J[o]]=l[o],delete l[o]);for(g=0,i=H.length;g<i;g++)j=H[g],k=l[j],null!=k&&(delete l[j],s[j]=k);a.extend(s.data,l)}b=p.find(">ul:first"),b.length?s.children=a.ui.fancytree.parseHtml(b):s.children=s.lazy?d:null,m.push(s)}),m},registerExtension:function(b){e(null!=b.name,"extensions must have a `name` property."),e(null!=b.version,"extensions must have a `version` property."),a.ui.fancytree._extensions[b.name]=b},unescapeHtml:function(a){var b=c.createElement("div");return b.innerHTML=a,0===b.childNodes.length?"":b.childNodes[0].nodeValue},warn:function(a){f("warn",arguments)}})}(jQuery,window,document);++!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree.ui-deps"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree.ui-deps"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(b,c){b||(c=c?": "+c:"",a.error("Fancytree assertion failed"+c))}function c(a,b){var c,d,e=window.console?window.console[a]:null;if(e)try{e.apply(window.console,b)}catch(f){for(d="",c=0;c<b.length;c++)d+=b[c];e(d)}}function d(a){return!(!a.tree||void 0===a.statusNodeType)}function e(b,c,d,e){var f,g,h,i=a.map(a.trim(b).split("."),function(a){return parseInt(a,10)}),j=a.map(Array.prototype.slice.call(arguments,1),function(a){return parseInt(a,10)});for(f=0;f<j.length;f++)if(g=i[f]||0,h=j[f]||0,g!==h)return g>h;return!0}function f(a,b,c,d,e){var f=function(){var c=b[a],f=d[a],g=b.ext[e],h=function(){return c.apply(b,arguments)},i=function(a){return c.apply(b,a)};return function(){var a=b._local,c=b._super,d=b._superApply;try{return b._local=g,b._super=h,b._superApply=i,f.apply(b,arguments)}finally{b._local=a,b._super=c,b._superApply=d}}}();return f}function g(b,c,d,e){for(var g in d)"function"==typeof d[g]?"function"==typeof b[g]?b[g]=f(g,b,c,d,e):"_"===g.charAt(0)?b.ext[e][g]=f(g,b,c,d,e):a.error("Could not override tree."+g+". Use prefix '_' to create tree."+e+"._"+g):"options"!==g&&(b.ext[e][g]=d[g])}function h(b,c){return void 0===b?a.Deferred(function(){this.resolve()}).promise():a.Deferred(function(){this.resolveWith(b,c)}).promise()}function i(b,c){return void 0===b?a.Deferred(function(){this.reject()}).promise():a.Deferred(function(){this.rejectWith(b,c)}).promise()}function j(a,b){return function(){a.resolveWith(b)}}function k(b){var c=a.extend({},b.data()),d=c.json;return delete c.fancytree,delete c.uiFancytree,d&&(delete c.json,c=a.extend(c,d)),c}function l(a){return(""+a).replace(v,function(a){return x[a]})}function m(a){return a=a.toLowerCase(),function(b){return b.title.toLowerCase().indexOf(a)>=0}}function n(a){var b=new RegExp("^"+a,"i");return function(a){return b.test(a.title)}}function o(c,d){var e,f,g,h;for(this.parent=c,this.tree=c.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},e=0,f=D.length;e<f;e++)g=D[e],this[g]=d[g];null==this.unselectableIgnore&&null==this.unselectableStatus||(this.unselectable=!0),d.hideCheckbox&&a.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'"),d.data&&a.extend(this.data,d.data);for(g in d)E[g]||a.isFunction(d[g])||G[g]||(this.data[g]=d[g]);null==this.key?this.tree.options.defaultKey?(this.key=this.tree.options.defaultKey(this),b(this.key,"defaultKey() must return a unique key")):this.key="_"+s._nextNodeKey++:this.key=""+this.key,d.active&&(b(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),d.selected&&(this.tree.lastSelectedNode=this),h=d.children,h?h.length?this._setChildren(h):this.children=this.lazy?[]:null:this.children=null,this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function p(b){this.widget=b,this.$div=b.element,this.options=b.options,this.options&&(a.isFunction(this.options.lazyload)&&!a.isFunction(this.options.lazyLoad)&&(this.options.lazyLoad=function(){return s.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),b.options.lazyload.apply(this,arguments)}),a.isFunction(this.options.loaderror)&&a.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),void 0!==this.options.fx&&s.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30."),void 0!==this.options.removeNode&&a.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).")),this.ext={},this.data=k(this.$div),this._id=a.ui.fancytree._nextId++,this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this._tempCache={},this._lastMousedownNode=null,this._enableUpdate=!0,this.lastSelectedNode=null,this.systemFocusElement=null,this.lastQuicksearchTerm="",this.lastQuicksearchTime=0,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var c,d={tree:this};this.rootNode=new o(d,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,c=a("<ul>",{"class":"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=c,this.rootNode.ul=c[0],null==this.options.debugLevel&&(this.options.debugLevel=s.debugLevel)}if(a.ui&&a.ui.fancytree)return void a.ui.fancytree.warn("Fancytree: ignored duplicate include");var q,r,s=null,t=new RegExp(/\.|\//),u=/[&<>"'\/]/g,v=/[<>"'\/]/g,w="$recursive_request",x={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},y={16:!0,17:!0,18:!0},z={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},A={0:"",1:"left",2:"middle",3:"right"},B="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),C={},D="checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),E={},F={},G={active:!0,children:!0,data:!0,focus:!0};for(q=0;q<B.length;q++)C[B[q]]=!0;for(q=0;q<D.length;q++)r=D[q],E[r]=!0,r!==r.toLowerCase()&&(F[r.toLowerCase()]=r);return b(a.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),o.prototype={_findDirectChild:function(a){var b,c,d=this.children;if(d)if("string"==typeof a){for(b=0,c=d.length;b<c;b++)if(d[b].key===a)return d[b]}else{if("number"==typeof a)return this.children[a];if(a.parent===this)return a}return null},_setChildren:function(a){b(a&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var c=0,d=a.length;c<d;c++)this.children.push(new o(this,a[c]))},addChildren:function(c,d){var e,f,g,h=this.getFirstChild(),i=this.getLastChild(),j=null,k=[];for(a.isPlainObject(c)&&(c=[c]),this.children||(this.children=[]),e=0,f=c.length;e<f;e++)k.push(new o(this,c[e]));if(j=k[0],null==d?this.children=this.children.concat(k):(d=this._findDirectChild(d),g=a.inArray(d,this.children),b(g>=0,"insertBefore must be an existing child"),this.children.splice.apply(this.children,[g,0].concat(k))),h&&!d){for(e=0,f=k.length;e<f;e++)k[e].render();h!==this.getFirstChild()&&h.renderStatus(),i!==this.getLastChild()&&i.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===k.length?k[0]:null),j},addClass:function(a){return this.toggleClass(a,!0)},addNode:function(a,c){switch(void 0!==c&&"over"!==c||(c="child"),c){case"after":return this.getParent().addChildren(a,this.getNextSibling());case"before":return this.getParent().addChildren(a,this);case"firstChild":var d=this.children?this.children[0]:null;return this.addChildren(a,d);case"child":case"over":return this.addChildren(a)}b(!1,"Invalid mode: "+c)},addPagingNode:function(b,c){var d,e;if(c=c||"child",b===!1){for(d=this.children.length-1;d>=0;d--)e=this.children[d],"paging"===e.statusNodeType&&this.removeChild(e);return void(this.partload=!1)}return b=a.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},b),this.partload=!0,this.addNode(b,c)},appendSibling:function(a){return this.addNode(a,"after")},applyPatch:function(b){if(null===b)return this.remove(),h(this);var c,d,e,f={children:!0,expanded:!0,parent:!0};for(c in b)e=b[c],f[c]||a.isFunction(e)||(E[c]?this[c]=e:this.data[c]=e);return b.hasOwnProperty("children")&&(this.removeChildren(),b.children&&this._setChildren(b.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),d=b.hasOwnProperty("expanded")?this.setExpanded(b.expanded):h(this)},collapseSiblings:function(){return this.tree._callHook("nodeCollapseSiblings",this)},copyTo:function(a,b,c){return a.addNode(this.toDict(!0,c),b)},countChildren:function(a){var b,c,d,e=this.children;if(!e)return 0;if(d=e.length,a!==!1)for(b=0,c=d;b<c;b++)d+=e[b].countChildren();return d},debug:function(a){this.tree.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),c("log",arguments))},discard:function(){return this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead."),this.resetLazy()},discardMarkup:function(a){var b=a?"nodeRemoveMarkup":"nodeRemoveChildMarkup";this.tree._callHook(b,this)},findAll:function(b){b=a.isFunction(b)?b:m(b);var c=[];return this.visit(function(a){b(a)&&c.push(a)}),c},findFirst:function(b){b=a.isFunction(b)?b:m(b);var c=null;return this.visit(function(a){if(b(a))return c=a,!1}),c},_changeSelectStatusAttrs:function(a){var c=!1,d=this.tree.options,e=s.evalOption("unselectable",this,this,d,!1),f=s.evalOption("unselectableStatus",this,this,d,void 0);switch(e&&null!=f&&(a=f),a){case!1:c=this.selected||this.partsel,this.selected=!1,this.partsel=!1;break;case!0:c=!this.selected||!this.partsel,this.selected=!0,this.partsel=!0;break;case void 0:c=this.selected||!this.partsel,this.selected=!1,this.partsel=!0;break;default:b(!1,"invalid state: "+a)}return c&&this.renderStatus(),c},fixSelection3AfterClick:function(a){var b=this.isSelected();this.visit(function(a){a._changeSelectStatusAttrs(b)}),this.fixSelection3FromEndNodes(a)},fixSelection3FromEndNodes:function(a){function c(a){var b,e,f,g,h,i,j,k,l,m=a.children;if(m&&m.length){for(i=!0,j=!1,b=0,e=m.length;b<e;b++)f=m[b],g=c(f),k=s.evalOption("unselectableIgnore",f,f,d,!1),k||(g!==!1&&(j=!0),g!==!0&&(i=!1));h=!!i||!!j&&void 0}else l=s.evalOption("unselectableStatus",a,a,d,void 0),h=null==l?!!a.selected:!!l;return a._changeSelectStatusAttrs(h),h}var d=this.tree.options;b(3===d.selectMode,"expected selectMode 3"),c(this),this.visitParents(function(a){var b,c,e,f,g,h,i=a.children,j=!0,k=!1;for(b=0,c=i.length;b<c;b++)e=i[b],g=s.evalOption("unselectableIgnore",e,e,d,!1),g||(h=s.evalOption("unselectableStatus",e,e,d,void 0),f=null==h?!!e.selected:!!h,(f||e.partsel)&&(k=!0),f||(j=!1));f=!!j||!!k&&void 0,a._changeSelectStatusAttrs(f)})},fromDict:function(b){for(var c in b)E[c]?this[c]=b[c]:"data"===c?a.extend(this.data,b.data):a.isFunction(b[c])||G[c]||(this.data[c]=b[c]);b.children&&(this.removeChildren(),this.addChildren(b.children)),this.renderTitle()},getChildren:function(){if(void 0!==this.hasChildren())return this.children},getFirstChild:function(){return this.children?this.children[0]:null},getIndex:function(){return a.inArray(this,this.parent.children)},getIndexHier:function(b,c){b=b||".";var d,e=[];return a.each(this.getParentList(!1,!0),function(a,b){d=""+(b.getIndex()+1),c&&(d=("0000000"+d).substr(-c)),e.push(d)}),e.join(b)},getKeyPath:function(a){var b=[],c=this.tree.options.keyPathSeparator;return this.visitParents(function(a){a.parent&&b.unshift(a.key)},!a),c+b.join(c)},getLastChild:function(){return this.children?this.children[this.children.length-1]:null},getLevel:function(){for(var a=0,b=this.parent;b;)a++,b=b.parent;return a},getNextSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=0,b=c.length-1;a<b;a++)if(c[a]===this)return c[a+1]}return null},getParent:function(){return this.parent},getParentList:function(a,b){for(var c=[],d=b?this:this.parent;d;)(a||d.parent)&&c.unshift(d),d=d.parent;return c},getPrevSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=1,b=c.length;a<b;a++)if(c[a]===this)return c[a-1]}return null},getSelectedNodes:function(a){var b=[];return this.visit(function(c){if(c.selected&&(b.push(c),a===!0))return"skip"}),b},hasChildren:function(){if(this.lazy){if(null==this.children)return;if(0===this.children.length)return!1;if(1===this.children.length&&this.children[0].isStatusNode())return;return!0}return!(!this.children||!this.children.length)},hasFocus:function(){return this.tree.hasFocus()&&this.tree.focusNode===this},info:function(a){this.tree.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),c("info",arguments))},isActive:function(){return this.tree.activeNode===this},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(b){if(!b||b.tree!==this.tree)return!1;for(var c=this.parent;c;){if(c===b)return!0;c===c.parent&&a.error("Recursive parent link: "+c),c=c.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var a=this.parent;return!a||a.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var a=this.parent;return!a||a.children[a.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||void 0!==this.hasChildren()},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return void 0===this.hasChildren()},isVisible:function(){var a,b,c=this.getParentList(!1,!1);for(a=0,b=c.length;a<b;a++)if(!c[a].expanded)return!1;return!0},lazyLoad:function(a){return this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead."),this.load(a)},load:function(a){var c,d,e=this,f=this.isExpanded();return b(this.isLazy(),"load() requires a lazy node"),a||this.isUndefined()?(this.isLoaded()&&this.resetLazy(),d=this.tree._triggerNodeEvent("lazyLoad",this),d===!1?h(this):(b("boolean"!=typeof d,"lazyLoad event must return source in data.result"),c=this.tree._callHook("nodeLoadChildren",this,d),f?(this.expanded=!0,c.always(function(){e.render()})):c.always(function(){e.renderStatus()}),c)):h(this)},makeVisible:function(b){var c,d=this,e=[],f=new a.Deferred,g=this.getParentList(!1,!1),h=g.length,i=!(b&&b.noAnimation===!0),j=!(b&&b.scrollIntoView===!1);for(c=h-1;c>=0;c--)e.push(g[c].setExpanded(!0,b));return a.when.apply(a,e).done(function(){j?d.scrollIntoView(i).done(function(){f.resolve()}):f.resolve()}),f.promise()},moveTo:function(c,d,e){void 0===d||"over"===d?d="child":"firstChild"===d&&(c.children&&c.children.length?(d="before",c=c.children[0]):d="child");var f,g=this.parent,h="child"===d?c:c.parent;if(this!==c){if(this.parent?h.isDescendantOf(this)&&a.error("Cannot move a node to its own descendant"):a.error("Cannot move system root"),h!==g&&g.triggerModifyChild("remove",this),1===this.parent.children.length){if(this.parent===h)return;this.parent.children=this.parent.lazy?[]:null,this.parent.expanded=!1}else f=a.inArray(this,this.parent.children),b(f>=0,"invalid source parent"),this.parent.children.splice(f,1);if(this.parent=h,h.hasChildren())switch(d){case"child":h.children.push(this);break;case"before":f=a.inArray(c,h.children),b(f>=0,"invalid target parent"),h.children.splice(f,0,this);break;case"after":f=a.inArray(c,h.children),b(f>=0,"invalid target parent"),h.children.splice(f+1,0,this);break;default:a.error("Invalid mode "+d)}else h.children=[this];e&&c.visit(e,!0),h===g?h.triggerModifyChild("move",this):h.triggerModifyChild("add",this),this.tree!==c.tree&&(this.warn("Cross-tree moveTo is experimantal!"),this.visit(function(a){a.tree=c.tree},!0)),g.isDescendantOf(h)||g.render(),h.isDescendantOf(g)||h===g||h.render()}},navigate:function(b,c){function d(d){if(d){try{d.makeVisible({scrollIntoView:!1})}catch(e){}return a(d.span).is(":visible")?c===!1?d.setFocus():d.setActive():(d.debug("Navigate: skipping hidden node"),void d.navigate(b,c))}}var e,f,g,i=!0,j=a.ui.keyCode,k=null;switch(b){case j.BACKSPACE:this.parent&&this.parent.parent&&(g=d(this.parent));break;case j.HOME:this.tree.visit(function(b){if(a(b.span).is(":visible"))return g=d(b),!1});break;case j.END:this.tree.visit(function(b){a(b.span).is(":visible")&&(g=b)}),g&&(g=d(g));break;case j.LEFT:this.expanded?(this.setExpanded(!1),g=d(this)):this.parent&&this.parent.parent&&(g=d(this.parent));break;case j.RIGHT:this.expanded||!this.children&&!this.lazy?this.children&&this.children.length&&(g=d(this.children[0])):(this.setExpanded(),g=d(this));break;case j.UP:for(k=this.getPrevSibling();k&&!a(k.span).is(":visible");)k=k.getPrevSibling();for(;k&&k.expanded&&k.children&&k.children.length;)k=k.children[k.children.length-1];!k&&this.parent&&this.parent.parent&&(k=this.parent),g=d(k);break;case j.DOWN:if(this.expanded&&this.children&&this.children.length)k=this.children[0];else for(f=this.getParentList(!1,!0),e=f.length-1;e>=0;e--){for(k=f[e].getNextSibling();k&&!a(k.span).is(":visible");)k=k.getNextSibling();if(k)break}g=d(k);break;default:i=!1}return g||h()},remove:function(){return this.parent.removeChild(this)},removeChild:function(a){return this.tree._callHook("nodeRemoveChild",this,a)},removeChildren:function(){return this.tree._callHook("nodeRemoveChildren",this)},removeClass:function(a){return this.toggleClass(a,!1)},render:function(a,b){return this.tree._callHook("nodeRender",this,a,b)},renderTitle:function(){return this.tree._callHook("nodeRenderTitle",this)},renderStatus:function(){return this.tree._callHook("nodeRenderStatus",this)},replaceWith:function(c){var d,e=this.parent,f=a.inArray(this,e.children),g=this;return b(this.isPagingNode(),"replaceWith() currently requires a paging status node"),d=this.tree._callHook("nodeLoadChildren",this,c),d.done(function(a){var b=g.children;for(q=0;q<b.length;q++)b[q].parent=e;e.children.splice.apply(e.children,[f+1,0].concat(b)),g.children=null,g.remove(),e.render()}).fail(function(){g.setExpanded()}),d},resetLazy:function(){this.removeChildren(),this.expanded=!1,this.lazy=!0,this.children=void 0,this.renderStatus()},scheduleAction:function(b,c){this.tree.timer&&clearTimeout(this.tree.timer),this.tree.timer=null;var d=this;switch(b){case"cancel":break;case"expand":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger expand"),d.setExpanded(!0)},c);break;case"activate":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger activate"),d.setActive(!0)},c);break;default:a.error("Invalid mode "+b)}},scrollIntoView:function(c,e){void 0!==e&&d(e)&&(this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."),e={topNode:e});var f,g,i,j,k=a.extend({effects:c===!0?{duration:200,queue:!1}:c,scrollOfs:this.tree.options.scrollOfs,scrollParent:this.tree.options.scrollParent||this.tree.$container,topNode:null},e),l=new a.Deferred,m=this,n=a(this.span).height(),o=a(k.scrollParent),p=k.scrollOfs.top||0,q=k.scrollOfs.bottom||0,r=o.height(),s=o.scrollTop(),t=o,u=o[0]===window,v=k.topNode||null,w=null;return a(this.span).is(":visible")?(u?(g=a(this.span).offset().top,f=v&&v.span?a(v.span).offset().top:0,t=a("html,body")):(b(o[0]!==document&&o[0]!==document.body,"scrollParent should be a simple element or `window`, not document or body."),j=o.offset().top,g=a(this.span).offset().top-j+s,f=v?a(v.span).offset().top-j+s:0,i=Math.max(0,o.innerHeight()-o[0].clientHeight),r-=i),g<s+p?w=g-p:g+n>s+r-q&&(w=g+n-r+q,v&&(b(v.isRootNode()||a(v.span).is(":visible"),"topNode must be visible"),f<w&&(w=f-p))),null!==w?k.effects?(k.effects.complete=function(){l.resolveWith(m)},t.stop(!0).animate({scrollTop:w},k.effects)):(t[0].scrollTop=w,l.resolveWith(this)):l.resolveWith(this),l.promise()):(this.warn("scrollIntoView(): node is invisible."),h())},setActive:function(a,b){return this.tree._callHook("nodeSetActive",this,a,b)},setExpanded:function(a,b){return this.tree._callHook("nodeSetExpanded",this,a,b)},setFocus:function(a){return this.tree._callHook("nodeSetFocus",this,a)},setSelected:function(a,b){return this.tree._callHook("nodeSetSelected",this,a,b)},setStatus:function(a,b,c){return this.tree._callHook("nodeSetStatus",this,a,b,c)},setTitle:function(a){this.title=a,this.renderTitle(),this.triggerModify("rename")},sortChildren:function(a,b){var c,d,e=this.children;if(e){if(a=a||function(a,b){var c=a.title.toLowerCase(),d=b.title.toLowerCase();return c===d?0:c>d?1:-1},e.sort(a),b)for(c=0,d=e.length;c<d;c++)e[c].children&&e[c].sortChildren(a,"$norender$");"$norender$"!==b&&this.render(),this.triggerModifyChild("sort")}},toDict:function(b,c){var d,e,f,g={},h=this;if(a.each(D,function(a,b){(h[b]||h[b]===!1)&&(g[b]=h[b])}),a.isEmptyObject(this.data)||(g.data=a.extend({},this.data),a.isEmptyObject(g.data)&&delete g.data),c&&c(g,h),b&&this.hasChildren())for(g.children=[],d=0,e=this.children.length;d<e;d++)f=this.children[d],f.isStatusNode()||g.children.push(f.toDict(!0,c));return g},toggleClass:function(b,c){var d,e,f=/\S+/g,g=b.match(f)||[],h=0,i=!1,j=this[this.tree.statusClassPropName],k=" "+(this.extraClasses||"")+" ";for(j&&a(j).toggleClass(b,c);d=g[h++];)if(e=k.indexOf(" "+d+" ")>=0,c=void 0===c?!e:!!c)e||(k+=d+" ",i=!0);else for(;k.indexOf(" "+d+" ")>-1;)k=k.replace(" "+d+" "," ");return this.extraClasses=a.trim(k),i},toggleExpanded:function(){return this.tree._callHook("nodeToggleExpanded",this)},toggleSelected:function(){return this.tree._callHook("nodeToggleSelected",this)},toString:function(){return"<FancytreeNode(#"+this.key+", '"+this.title+"')>"},triggerModifyChild:function(b,c,d){var e,f=this.tree.options.modifyChild;f&&(c&&c.parent!==this&&a.error("childNode "+c+" is not a child of "+this),e={node:this,tree:this.tree,operation:b,childNode:c||null},d&&a.extend(e,d),f({type:"modifyChild"},e))},triggerModify:function(a,b){this.parent.triggerModifyChild(a,this,b)},visit:function(a,b){var c,d,e=!0,f=this.children;if(b===!0&&(e=a(this),e===!1||"skip"===e))return e;if(f)for(c=0,d=f.length;c<d&&(e=f[c].visit(a,!0),e!==!1);c++);return e},visitAndLoad:function(b,c,d){var e,f,g,i=this;return b&&c===!0&&(f=b(i),f===!1||"skip"===f)?d?f:h():i.children||i.lazy?(e=new a.Deferred,g=[],i.load().done(function(){for(var c=0,d=i.children.length;c<d;c++){if(f=i.children[c].visitAndLoad(b,!0,!0),f===!1){e.reject();break}"skip"!==f&&g.push(f)}a.when.apply(this,g).then(function(){e.resolve()})}),e.promise()):h()},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},visitSiblings:function(a,b){var c,d,e,f=this.parent.children;for(c=0,d=f.length;c<d;c++)if(e=f[c],(b||e!==this)&&a(e)===!1)return!1;return!0},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),c("warn",arguments)}},p.prototype={_makeHookContext:function(b,c,d){var e,f;return void 0!==b.node?(c&&b.originalEvent!==c&&a.error("invalid args"),e=b):b.tree?(f=b.tree,e={node:b,tree:f,widget:f.widget,options:f.widget.options,originalEvent:c}):b.widget?e={node:null,tree:b,widget:b.widget,options:b.widget.options,originalEvent:c}:a.error("invalid args"),d&&a.extend(e,d),e},_callHook:function(b,c,d){var e=this._makeHookContext(c),f=this[b],g=Array.prototype.slice.call(arguments,2);return a.isFunction(f)||a.error("_callHook('"+b+"') is not a function"),g.unshift(e),f.apply(this,g)},_setExpiringValue:function(a,b,c){this._tempCache[a]={value:b,expire:Date.now()+(+c||50)}},_getExpiringValue:function(a){var b=this._tempCache[a];return b&&b.expire<Date.now()?b.value:(delete this._tempCache[a],null)},_requireExtension:function(c,d,e,f){e=!!e;var g=this._local.name,h=this.options.extensions,i=a.inArray(c,h)<a.inArray(g,h),j=d&&null==this.ext[c],k=!j&&null!=e&&e!==i;return b(g&&g!==c,"invalid or same name"),!j&&!k||(f||(j||d?(f="'"+g+"' extension requires '"+c+"'",k&&(f+=" to be registered "+(e?"before":"after")+" itself")):f="If used together, `"+c+"` must be registered "+(e?"before":"after")+" `"+g+"`"),a.error(f),!1)},activateKey:function(a){var b=this.getNodeByKey(a);return b?b.setActive():this.activeNode&&this.activeNode.setActive(!1),b},addPagingNode:function(a,b){return this.rootNode.addPagingNode(a,b)},applyPatch:function(c){var d,e,f,g,h,i,k=c.length,l=[];for(e=0;e<k;e++)f=c[e],b(2===f.length,"patchList must be an array of length-2-arrays"),g=f[0],h=f[1],i=null===g?this.rootNode:this.getNodeByKey(g),i?(d=new a.Deferred,l.push(d),i.applyPatch(h).always(j(d,i))):this.warn("could not find node with key '"+g+"'");return a.when.apply(a,l).promise()},clear:function(a){this._callHook("treeClear",this)},count:function(){return this.rootNode.countChildren()},debug:function(a){this.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),c("log",arguments))},enableUpdate:function(a){return a=a!==!1,!!this._enableUpdate==!!a?a:(this._enableUpdate=a,a?(this.debug("enableUpdate(true): redraw "),this.render()):this.debug("enableUpdate(false)..."),!a)},findAll:function(a){return this.rootNode.findAll(a)},findFirst:function(a){return this.rootNode.findFirst(a)},findNextNode:function(b,c,d){var e=null,f=c.parent.children,g=null,h=function(a,b,c){var d,e,f=a.children,g=f.length,i=f[b];if(i&&c(i)===!1)return!1;if(i&&i.children&&i.expanded&&h(i,0,c)===!1)return!1;for(d=b+1;d<g;d++)if(h(a,d,c)===!1)return!1;return e=a.parent,e?h(e,e.children.indexOf(a)+1,c):h(a,0,c)};return b="string"==typeof b?n(b):b,c=c||this.getFirstChild(),h(c.parent,f.indexOf(c),function(d){return d!==e&&(e=e||d,a(d.span).is(":visible")?(!b(d)||(g=d,g===c))&&void 0:void d.debug("quicksearch: skipping hidden node"))}),g},generateFormElements:function(b,c,d){function e(b){j.append(a("<input>",{type:"checkbox",name:g,value:b.key,checked:!0}))}d=d||{};var f,g="string"==typeof b?b:"ft_"+this._id+"[]",h="string"==typeof c?c:"ft_"+this._id+"_active",i="fancytree_result_"+this._id,j=a("#"+i),k=3===this.options.selectMode&&d.stopOnParents!==!1;j.length?j.empty():j=a("<div>",{id:i}).hide().insertAfter(this.$container),c!==!1&&this.activeNode&&j.append(a("<input>",{type:"radio",name:h,value:this.activeNode.key,checked:!0})),d.filter?this.visit(function(a){var b=d.filter(a);return"skip"===b?b:void(b!==!1&&e(a))}):b!==!1&&(f=this.getSelectedNodes(k),a.each(f,function(a,b){e(b)}))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getNodeByKey:function(a,b){var c,d;return!b&&(c=document.getElementById(this.options.idPrefix+a))?c.ftnode?c.ftnode:null:(b=b||this.rootNode,d=null,b.visit(function(b){if(b.key===a)return d=b,!1},!0),d)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(a){return this.rootNode.getSelectedNodes(a)},hasFocus:function(){return!!this._hasFocus},info:function(a){this.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),c("info",arguments))},loadKeyPath:function(b,c,d){function e(a,b,d){c.call(q,b,"loading"),b.load().done(function(){q.loadKeyPath.call(q,l[a],c,b).always(j(d,q))}).fail(function(e){q.warn("loadKeyPath: error loading: "+a+" (parent: "+n+")"),c.call(q,b,"error"),d.reject()})}var f,g,h,i,k,l,m,n,o,p=this.options.keyPathSeparator,q=this;for(c=c||a.noop,a.isArray(b)||(b=[b]),l={},h=0;h<b.length;h++)for(n=d||this.rootNode,i=b[h],i.charAt(0)===p&&(i=i.substr(1)),o=i.split(p);o.length;){if(k=o.shift(),m=n._findDirectChild(k),!m){this.warn("loadKeyPath: key not found: "+k+" (parent: "+n+")"),c.call(this,k,"error");break}if(0===o.length){c.call(this,m,"ok");break}if(m.lazy&&void 0===m.hasChildren()){c.call(this,m,"loaded"),l[k]?l[k].push(o.join(p)):l[k]=[o.join(p)];break}c.call(this,m,"loaded"),n=m}f=[];for(k in l)m=n._findDirectChild(k),null==m&&(m=q.getNodeByKey(k)),g=new a.Deferred,f.push(g),e(k,m,g);return a.when.apply(a,f).promise()},reactivate:function(a){var b,c=this.activeNode;return c?(this.activeNode=null,b=c.setActive(!0,{noFocus:!0}),a&&c.setFocus(),b):h()},reload:function(a){return this._callHook("treeClear",this),this._callHook("treeLoad",this,a)},render:function(a,b){return this.rootNode.render(a,b)},setFocus:function(a){return this._callHook("treeSetFocus",this,a)},toDict:function(a,b){var c=this.rootNode.toDict(!0,b);return a?c:c.children},toString:function(){return"<Fancytree(#"+this._id+")>"},_triggerNodeEvent:function(a,b,c,d){var e=this._makeHookContext(b,c,d),f=this.widget._trigger(a,c,e);return f!==!1&&void 0!==e.result?e.result:f},_triggerTreeEvent:function(a,b,c){var d=this._makeHookContext(this,b,c),e=this.widget._trigger(a,b,d);return e!==!1&&void 0!==d.result?d.result:e},visit:function(a){return this.rootNode.visit(a,!1)},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),c("warn",arguments)}},a.extend(p.prototype,{nodeClick:function(a){var b,c,d=a.targetType,e=a.node;if("expander"===d){if(e.isLoading())return void e.debug("Got 2nd click while loading: ignored");this._callHook("nodeToggleExpanded",a)}else if("checkbox"===d)this._callHook("nodeToggleSelected",a),a.options.focusOnSelect&&this._callHook("nodeSetFocus",a,!0);else{if(c=!1,b=!0,e.folder)switch(a.options.clickFolderMode){case 2:c=!0,b=!1;break;case 3:b=!0,c=!0}b&&(this.nodeSetFocus(a),this._callHook("nodeSetActive",a,!0)),c&&this._callHook("nodeToggleExpanded",a)}},nodeCollapseSiblings:function(a,b){var c,d,e,f=a.node;if(f.parent)for(c=f.parent.children,d=0,e=c.length;d<e;d++)c[d]!==f&&c[d].expanded&&this._callHook("nodeSetExpanded",c[d],!1,b)},nodeDblclick:function(a){"title"===a.targetType&&4===a.options.clickFolderMode&&this._callHook("nodeToggleExpanded",a),"title"===a.targetType&&a.originalEvent.preventDefault()},nodeKeydown:function(b){var c,d,e,f,g=b.originalEvent,h=b.node,i=b.tree,j=b.options,k=g.which,l=String.fromCharCode(k),m=!(g.altKey||g.ctrlKey||g.metaKey||g.shiftKey),n=a(g.target),o=!0,p=!(g.ctrlKey||!j.autoActivate);if(h||(f=this.getActiveNode()||this.getFirstChild(),f&&(f.setFocus(),h=b.node=this.focusNode,h.debug("Keydown force focus on active node"))),j.quicksearch&&m&&/\w/.test(l)&&!z[k]&&!n.is(":input:enabled"))return d=(new Date).getTime(),d-i.lastQuicksearchTime>500&&(i.lastQuicksearchTerm=""),i.lastQuicksearchTime=d,i.lastQuicksearchTerm+=l,c=i.findNextNode(i.lastQuicksearchTerm,i.getActiveNode()),c&&c.setActive(),void g.preventDefault();switch(s.eventToString(g)){case"+":case"=":i.nodeSetExpanded(b,!0);break;case"-":i.nodeSetExpanded(b,!1);break;case"space":h.isPagingNode()?i._triggerNodeEvent("clickPaging",b,g):s.evalOption("checkbox",h,h,j,!1)?i.nodeToggleSelected(b):i.nodeSetActive(b,!0);break;case"return":i.nodeSetActive(b,!0);break;case"home":case"end":case"backspace":case"left":case"right":case"up":case"down":e=h.navigate(g.which,p,!0);break;default:o=!1}o&&g.preventDefault()},nodeLoadChildren:function(c,d){var e,f,g,h=c.tree,i=c.node,j=(new Date).getTime();return a.isFunction(d)&&(d=d.call(h,{type:"source"},c),b(!a.isFunction(d),"source callback must not return another function")),d.url&&(i._requestId&&i.warn("Recursive load request #"+j+" while #"+i._requestId+" is pending."),e=a.extend({},c.options.ajax,d),i._requestId=j,e.debugDelay?(f=e.debugDelay,a.isArray(f)&&(f=f[0]+Math.random()*(f[1]-f[0])),i.warn("nodeLoadChildren waiting debugDelay "+Math.round(f)+" ms ..."),e.debugDelay=!1,g=a.Deferred(function(b){setTimeout(function(){a.ajax(e).done(function(){b.resolveWith(this,arguments)}).fail(function(){b.rejectWith(this,arguments)})},f)})):g=a.ajax(e),d=new a.Deferred,g.done(function(b,e,f){var g,k;if("json"!==this.dataType&&"jsonp"!==this.dataType||"string"!=typeof b||a.error("Ajax request returned a string (did you get the JSON dataType wrong?)."),i._requestId&&i._requestId>j)return void d.rejectWith(this,[w]);+if(c.options.postProcess){try{k=h._triggerNodeEvent("postProcess",c,c.originalEvent,{response:b,error:null,dataType:this.dataType})}catch(l){k={error:l,message:""+l,details:"postProcess failed"}}if(k.error)return g=a.isPlainObject(k.error)?k.error:{message:k.error},g=h._makeHookContext(i,null,g),void d.rejectWith(this,[g]);b=a.isArray(k)?k:b}else b&&b.hasOwnProperty("d")&&c.options.enableAspx&&(b="string"==typeof b.d?a.parseJSON(b.d):b.d);d.resolveWith(this,[b])}).fail(function(a,b,c){var e=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:c,details:a.status+": "+c});d.rejectWith(this,[e])})),a.isFunction(d.then)&&a.isFunction(d["catch"])&&(g=d,d=new a.Deferred,g.then(function(a){d.resolve(a)},function(a){d.reject(a)})),a.isFunction(d.promise)?(h.nodeSetStatus(c,"loading"),d.done(function(a){h.nodeSetStatus(c,"ok"),i._requestId=null}).fail(function(a){var b;return a===w?void i.warn("Ignored response for obsolete load request #"+j+" (expected #"+i._requestId+")"):(a.node&&a.error&&a.message?b=a:(b=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:a?a.message||a.toString():""}),"[object Object]"===b.message&&(b.message="")),i.warn("Load children failed ("+b.message+")",b),void(h._triggerNodeEvent("loadError",b,null)!==!1&&h.nodeSetStatus(c,"error",b.message,b.details)))})):c.options.postProcess&&h._triggerNodeEvent("postProcess",c,c.originalEvent,{response:d,error:null,dataType:typeof d}),a.when(d).done(function(c){var d;a.isPlainObject(c)&&(b(i.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),b(a.isArray(c.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),d=c,c=c.children,delete d.children,a.extend(h.data,d)),b(a.isArray(c),"expected array of children"),i._setChildren(c),h._triggerNodeEvent("loadChildren",i)})},nodeLoadKeyPath:function(a,b){},nodeRemoveChild:function(c,d){var e,f=c.node,g=a.extend({},c,{node:d}),h=f.children;return 1===h.length?(b(d===h[0],"invalid single child"),this.nodeRemoveChildren(c)):(this.activeNode&&(d===this.activeNode||this.activeNode.isDescendantOf(d))&&this.activeNode.setActive(!1),this.focusNode&&(d===this.focusNode||this.focusNode.isDescendantOf(d))&&(this.focusNode=null),this.nodeRemoveMarkup(g),this.nodeRemoveChildren(g),e=a.inArray(d,h),b(e>=0,"invalid child"),f.triggerModifyChild("remove",d),d.visit(function(a){a.parent=null},!0),this._callHook("treeRegisterNode",this,!1,d),void h.splice(e,1))},nodeRemoveChildMarkup:function(b){var c=b.node;c.ul&&(c.isRootNode()?a(c.ul).empty():(a(c.ul).remove(),c.ul=null),c.visit(function(a){a.li=a.ul=null}))},nodeRemoveChildren:function(b){var c,d=b.tree,e=b.node,f=e.children;f&&(this.activeNode&&this.activeNode.isDescendantOf(e)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(e)&&(this.focusNode=null),this.nodeRemoveChildMarkup(b),c=a.extend({},b),e.triggerModifyChild("remove",null),e.visit(function(a){a.parent=null,d._callHook("treeRegisterNode",d,!1,a)}),e.lazy?e.children=[]:e.children=null,e.isRootNode()||(e.expanded=!1),this.nodeRenderStatus(b))},nodeRemoveMarkup:function(b){var c=b.node;c.li&&(a(c.li).remove(),c.li=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(c,d,e,f,g){var h,i,j,k,l,m,n,o=c.node,p=c.tree,q=c.options,r=q.aria,s=!1,t=o.parent,u=!t,v=o.children,w=null;if(p._enableUpdate!==!1&&(u||t.ul)){if(b(u||t.ul,"parent UL must exist"),u||(o.li&&(d||o.li.parentNode!==o.parent.ul)&&(o.li.parentNode===o.parent.ul?w=o.li.nextSibling:this.debug("Unlinking "+o+" (must be child of "+o.parent+")"),this.nodeRemoveMarkup(c)),o.li?this.nodeRenderStatus(c):(s=!0,o.li=document.createElement("li"),o.li.ftnode=o,o.key&&q.generateIds&&(o.li.id=q.idPrefix+o.key),o.span=document.createElement("span"),o.span.className="fancytree-node",r&&!o.tr&&a(o.li).attr("role","treeitem"),o.li.appendChild(o.span),this.nodeRenderTitle(c),q.createNode&&q.createNode.call(p,{type:"createNode"},c)),q.renderNode&&q.renderNode.call(p,{type:"renderNode"},c)),v){if(u||o.expanded||e===!0){for(o.ul||(o.ul=document.createElement("ul"),(f!==!0||g)&&o.expanded||(o.ul.style.display="none"),r&&a(o.ul).attr("role","group"),o.li?o.li.appendChild(o.ul):o.tree.$div.append(o.ul)),k=0,l=v.length;k<l;k++)n=a.extend({},c,{node:v[k]}),this.nodeRender(n,d,e,!1,!0);for(h=o.ul.firstChild;h;)j=h.ftnode,j&&j.parent!==o?(o.debug("_fixParent: remove missing "+j,h),m=h.nextSibling,h.parentNode.removeChild(h),h=m):h=h.nextSibling;for(h=o.ul.firstChild,k=0,l=v.length-1;k<l;k++)i=v[k],j=h.ftnode,i!==j?o.ul.insertBefore(i.li,j.li):h=h.nextSibling}}else o.ul&&(this.warn("remove child markup for "+o),this.nodeRemoveChildMarkup(c));u||s&&t.ul.insertBefore(o.li,w)}},nodeRenderTitle:function(b,c){var d,e,f,g,h,i,j,k=b.node,m=b.tree,n=b.options,o=n.aria,p=k.getLevel(),q=[];void 0!==c&&(k.title=c),k.span&&m._enableUpdate!==!1&&(h=o&&k.hasChildren()!==!1?" role='button'":"",p<n.minExpandLevel?(k.lazy||(k.expanded=!0),p>1&&q.push("<span "+h+" class='fancytree-expander fancytree-expander-fixed'></span>")):q.push("<span "+h+" class='fancytree-expander'></span>"),d=s.evalOption("checkbox",k,k,n,!1),d&&!k.isStatusNode()&&(h=o?" role='checkbox'":"",e="fancytree-checkbox",("radio"===d||k.parent&&k.parent.radiogroup)&&(e+=" fancytree-radio"),q.push("<span "+h+" class='"+e+"'></span>")),void 0!==k.data.iconClass&&(k.icon?a.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(k.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),k.icon=k.data.iconClass)),f=s.evalOption("icon",k,k,n,!0),"boolean"!=typeof f&&(f=""+f),f!==!1&&(h=o?" role='presentation'":"","string"==typeof f?t.test(f)?(f="/"===f.charAt(0)?f:(n.imagePath||"")+f,q.push("<img src='"+f+"' class='fancytree-icon' alt='' />")):q.push("<span "+h+" class='fancytree-custom-icon "+f+"'></span>"):q.push("<span "+h+" class='fancytree-icon'></span>")),g="",n.renderTitle&&(g=n.renderTitle.call(m,{type:"renderTitle"},b)||""),g||(j=s.evalOption("tooltip",k,k,n,null),j===!0&&(j=k.title),j=j?" title='"+l(j)+"'":"",i=n.titlesTabbable?" tabindex='0'":"",g="<span class='fancytree-title'"+j+i+">"+(n.escapeTitles?s.escapeHtml(k.title):k.title)+"</span>"),q.push(g),k.span.innerHTML=q.join(""),this.nodeRenderStatus(b),n.enhanceTitle&&(b.$title=a(">span.fancytree-title",k.span),g=n.enhanceTitle.call(m,{type:"enhanceTitle"},b)||""))},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options,g=d.hasChildren(),h=d.isLastSibling(),i=f.aria,j=f._classNames,k=[],l=d[e.statusClassPropName];l&&e._enableUpdate!==!1&&(i&&(c=a(d.tr||d.li)),k.push(j.node),e.activeNode===d&&k.push(j.active),e.focusNode===d&&k.push(j.focused),d.expanded&&k.push(j.expanded),i&&(g!==!1?c.attr("aria-expanded",Boolean(d.expanded)):c.removeAttr("aria-expanded")),d.folder&&k.push(j.folder),g!==!1&&k.push(j.hasChildren),h&&k.push(j.lastsib),d.lazy&&null==d.children&&k.push(j.lazy),d.partload&&k.push(j.partload),d.partsel&&k.push(j.partsel),s.evalOption("unselectable",d,d,f,!1)&&k.push(j.unselectable),d._isLoading&&k.push(j.loading),d._error&&k.push(j.error),d.statusNodeType&&k.push(j.statusNodePrefix+d.statusNodeType),d.selected?(k.push(j.selected),i&&c.attr("aria-selected",!0)):i&&c.attr("aria-selected",!1),d.extraClasses&&k.push(d.extraClasses),g===!1?k.push(j.combinedExpanderPrefix+"n"+(h?"l":"")):k.push(j.combinedExpanderPrefix+(d.expanded?"e":"c")+(d.lazy&&null==d.children?"d":"")+(h?"l":"")),k.push(j.combinedIconPrefix+(d.expanded?"e":"c")+(d.folder?"f":"")),l.className=k.join(" "),d.li&&a(d.li).toggleClass(j.lastsib,h))},nodeSetActive:function(c,d,e){e=e||{};var f,g=c.node,j=c.tree,k=c.options,l=e.noEvents===!0,m=e.noFocus===!0,n=g===j.activeNode;return d=d!==!1,n===d?h(g):d&&!l&&this._triggerNodeEvent("beforeActivate",g,c.originalEvent)===!1?i(g,["rejected"]):(d?(j.activeNode&&(b(j.activeNode!==g,"node was active (inconsistency)"),f=a.extend({},c,{node:j.activeNode}),j.nodeSetActive(f,!1),b(null===j.activeNode,"deactivate was out of sync?")),k.activeVisible&&g.makeVisible({scrollIntoView:m&&null==j.focusNode}),j.activeNode=g,j.nodeRenderStatus(c),m||j.nodeSetFocus(c),l||j._triggerNodeEvent("activate",g,c.originalEvent)):(b(j.activeNode===g,"node was not active (inconsistency)"),j.activeNode=null,this.nodeRenderStatus(c),l||c.tree._triggerNodeEvent("deactivate",g,c.originalEvent)),h(g))},nodeSetExpanded:function(b,c,d){d=d||{};var e,f,g,j,k,l,m=b.node,n=b.tree,o=b.options,p=d.noAnimation===!0,q=d.noEvents===!0;if(c=c!==!1,m.expanded&&c||!m.expanded&&!c)return h(m);if(c&&!m.lazy&&!m.hasChildren())return h(m);if(!c&&m.getLevel()<o.minExpandLevel)return i(m,["locked"]);if(!q&&this._triggerNodeEvent("beforeExpand",m,b.originalEvent)===!1)return i(m,["rejected"]);if(p||m.isVisible()||(p=d.noAnimation=!0),f=new a.Deferred,c&&!m.expanded&&o.autoCollapse){k=m.getParentList(!1,!0),l=o.autoCollapse;try{for(o.autoCollapse=!1,g=0,j=k.length;g<j;g++)this._callHook("nodeCollapseSiblings",k[g],d)}finally{o.autoCollapse=l}}return f.done(function(){var a=m.getLastChild();c&&o.autoScroll&&!p&&a?a.scrollIntoView(!0,{topNode:m}).always(function(){q||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}):q||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}),e=function(d){var e,f,g=o._classNames,h=o.toggleEffect;if(m.expanded=c,n._callHook("nodeRender",b,!1,!1,!0),m.ul)if(e="none"!==m.ul.style.display,f=!!m.expanded,e===f)m.warn("nodeSetExpanded: UL.style.display already set");else{if(h&&!p)return a(m.li).addClass(g.animating),void a(m.ul).addClass(g.animating).toggle(h.effect,h.options,h.duration,function(){a(this).removeClass(g.animating),a(m.li).removeClass(g.animating),d()});m.ul.style.display=m.expanded||!parent?"":"none"}d()},c&&m.lazy&&void 0===m.hasChildren()?m.load().done(function(){f.notifyWith&&f.notifyWith(m,["loaded"]),e(function(){f.resolveWith(m)})}).fail(function(a){e(function(){f.rejectWith(m,["load failed ("+a+")"])})}):e(function(){f.resolveWith(m)}),f.promise()},nodeSetFocus:function(b,c){var d,e=b.tree,f=b.node,g=e.options,h=!!b.originalEvent&&a(b.originalEvent.target).is(":input");if(c=c!==!1,e.focusNode){if(e.focusNode===f&&c)return;d=a.extend({},b,{node:e.focusNode}),e.focusNode=null,this._triggerNodeEvent("blur",d),this._callHook("nodeRenderStatus",d)}c&&(this.hasFocus()||(f.debug("nodeSetFocus: forcing container focus"),this._callHook("treeSetFocus",b,!0,{calledByNode:!0})),f.makeVisible({scrollIntoView:!1}),e.focusNode=f,g.titlesTabbable?h||a(f.span).find(".fancytree-title").focus():0===a(document.activeElement).closest(".fancytree-container").length&&a(e.$container).focus(),g.aria&&a(e.$container).attr("aria-activedescendant",a(f.tr||f.li).uniqueId().attr("id")),this._triggerNodeEvent("focus",b),g.autoScroll&&f.scrollIntoView(),this._callHook("nodeRenderStatus",b))},nodeSetSelected:function(a,b,c){c=c||{};var d=a.node,e=a.tree,f=a.options,g=c.noEvents===!0,h=d.parent;if(b=b!==!1,!s.evalOption("unselectable",d,d,f,!1)){if(d._lastSelectIntent=b,!!d.selected===b&&(3!==f.selectMode||!d.partsel||b))return b;if(!g&&this._triggerNodeEvent("beforeSelect",d,a.originalEvent)===!1)return!!d.selected;b&&1===f.selectMode?(e.lastSelectedNode&&e.lastSelectedNode.setSelected(!1),d.selected=b):3!==f.selectMode||!h||h.radiogroup||d.radiogroup?h&&h.radiogroup?d.visitSiblings(function(a){a._changeSelectStatusAttrs(b&&a===d)},!0):d.selected=b:(d.selected=b,d.fixSelection3AfterClick(c)),this.nodeRenderStatus(a),e.lastSelectedNode=b?d:null,g||e._triggerNodeEvent("select",a)}},nodeSetStatus:function(b,c,d,e){function f(){var a=h.children?h.children[0]:null;if(a&&a.isStatusNode()){try{h.ul&&(h.ul.removeChild(a.li),a.li=null)}catch(b){}1===h.children.length?h.children=[]:h.children.shift()}}function g(b,c){var d=h.children?h.children[0]:null;return d&&d.isStatusNode()?(a.extend(d,b),d.statusNodeType=c,i._callHook("nodeRenderTitle",d)):(h._setChildren([b]),h.children[0].statusNodeType=c,i.render()),h.children[0]}var h=b.node,i=b.tree;switch(c){case"ok":f(),h._isLoading=!1,h._error=null,h.renderStatus();break;case"loading":h.parent||g({title:i.options.strings.loading+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!0,h._error=null,h.renderStatus();break;case"error":g({title:i.options.strings.loadError+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error={message:d,details:e},h.renderStatus();break;case"nodata":g({title:i.options.strings.noData,checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error=null,h.renderStatus();break;default:a.error("invalid node status "+c)}},nodeToggleExpanded:function(a){return this.nodeSetExpanded(a,!a.node.expanded)},nodeToggleSelected:function(a){var b=a.node,c=!b.selected;return b.partsel&&!b.selected&&b._lastSelectIntent===!0&&(c=!1,b.selected=!0),b._lastSelectIntent=c,this.nodeSetSelected(a,c)},treeClear:function(a){var b=a.tree;b.activeNode=null,b.focusNode=null,b.$div.find(">ul.fancytree-container").empty(),b.rootNode.children=null},treeCreate:function(a){},treeDestroy:function(a){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("ui-helper-hidden")},treeInit:function(a){var b=a.tree,c=b.options;b.$container.attr("tabindex",c.tabindex),c.rtl?b.$container.attr("DIR","RTL").addClass("fancytree-rtl"):b.$container.removeAttr("DIR").removeClass("fancytree-rtl"),c.aria&&(b.$container.attr("role","tree"),1!==c.selectMode&&b.$container.attr("aria-multiselectable",!0)),this.treeLoad(a)},treeLoad:function(c,d){var e,f,g,h,i=c.tree,j=c.widget.element,l=a.extend({},c,{node:this.rootNode});if(i.rootNode.children&&this.treeClear(c),d=d||this.options.source)"string"==typeof d&&a.error("Not implemented");else switch(f=j.data("type")||"html"){case"html":g=j.find(">ul:first"),g.addClass("ui-fancytree-source ui-helper-hidden"),d=a.ui.fancytree.parseHtml(g),this.data=a.extend(this.data,k(g));break;case"json":d=a.parseJSON(j.text()),j.contents().filter(function(){return 3===this.nodeType}).remove(),a.isPlainObject(d)&&(b(a.isArray(d.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),e=d,d=d.children,delete e.children,a.extend(i.data,e));break;default:a.error("Invalid data-type: "+f)}return h=this.nodeLoadChildren(l,d).done(function(){i.render(),3===c.options.selectMode&&i.rootNode.fixSelection3FromEndNodes(),i.activeNode&&i.options.activeVisible&&i.activeNode.makeVisible(),i._triggerTreeEvent("init",null,{status:!0})}).fail(function(){i.render(),i._triggerTreeEvent("init",null,{status:!1})})},treeRegisterNode:function(a,b,c){},treeSetFocus:function(b,c,d){var e;c=c!==!1,c!==this.hasFocus()&&(this._hasFocus=c,!c&&this.focusNode?this.focusNode.setFocus(!1):!c||d&&d.calledByNode||a(this.$container).focus(),this.$container.toggleClass("fancytree-treefocus",c),this._triggerTreeEvent(c?"focusTree":"blurTree"),c&&!this.activeNode&&(e=this._lastMousedownNode||this.getFirstChild(),e&&e.setFocus()))},treeSetOption:function(b,c,d){var e=b.tree,f=!0,g=!1,h=!1;switch(c){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":g=!0,h=!0;break;case"escapeTitles":case"tooltip":h=!0;break;case"rtl":d===!1?e.$container.removeAttr("DIR").removeClass("fancytree-rtl"):e.$container.attr("DIR","RTL").addClass("fancytree-rtl"),h=!0;break;case"source":f=!1,e._callHook("treeLoad",e,d),h=!0}e.debug("set option "+c+"="+d+" <"+typeof d+">"),f&&(this.widget._super?this.widget._super.call(this.widget,c,d):a.Widget.prototype._setOption.call(this.widget,c,d)),g&&e._callHook("treeCreate",e),h&&e.render(!0,!1)}}),a.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,debugLevel:null,disabled:!1,enableAspx:!0,escapeTitles:!1,extensions:[],toggleEffect:{effect:"blind",options:{direction:"vertical",scale:"box"},duration:200},generateIds:!1,icon:!0,idPrefix:"ft_",focusOnSelect:!1,keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,tooltip:!1,_classNames:{node:"fancytree-node",folder:"fancytree-folder",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",hasChildren:"fancytree-has-children",active:"fancytree-active",selected:"fancytree-selected",expanded:"fancytree-expanded",lazy:"fancytree-lazy",focused:"fancytree-focused",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",unselectable:"fancytree-unselectable",lastsib:"fancytree-lastsib",loading:"fancytree-loading",error:"fancytree-error",statusNodePrefix:"fancytree-statusnode-"},lazyLoad:null,postProcess:null},_create:function(){this.tree=new p(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul:first");var c,d,e,f=this.options,h=f.extensions,i=this.tree;for(e=0;e<h.length;e++)d=h[e],c=a.ui.fancytree._extensions[d],c||a.error("Could not apply extension '"+d+"' (it is not registered, did you forget to include it?)"),this.tree.options[d]=a.extend(!0,{},c.options,this.tree.options[d]),b(void 0===this.tree.ext[d],"Extension name must not exist as Fancytree.ext attribute: '"+d+"'"),this.tree.ext[d]={},g(this.tree,i,c,d),i=c;void 0!==f.icons&&(f.icon!==!0?a.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead"),f.icon=f.icons)),void 0!==f.iconClass&&(f.icon?a.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead"),f.icon=f.iconClass)),void 0!==f.tabbable&&(f.tabindex=f.tabbable?"0":"-1",this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='"+f.tabindex+"' instead")),this.tree._callHook("treeCreate",this.tree)},_init:function(){this.tree._callHook("treeInit",this.tree),this._bind()},_setOption:function(a,b){return this.tree._callHook("treeSetOption",this.tree,a,b)},destroy:function(){this._unbind(),this.tree._callHook("treeDestroy",this.tree),a.Widget.prototype.destroy.call(this)},_unbind:function(){var b=this.tree._ns;this.element.off(b),this.tree.$container.off(b),a(document).off(b)},_bind:function(){var b=this,c=this.options,d=this.tree,e=d._ns;this._unbind(),d.$container.on("focusin"+e+" focusout"+e,function(b){var c=s.getNode(b),e="focusin"===b.type;return e&&d._getExpiringValue("focusin")?void s.info("Ignored double focusin."):(d._setExpiringValue("focusin",!0,50),e&&!c&&(c=d._getExpiringValue("mouseDownNode"),c&&s.info("Reconstruct mouse target for focusin from recent event.")),void(c?d._callHook("nodeSetFocus",d._makeHookContext(c,b),e):d.tbody&&a(b.target).parents("table.fancytree-container > thead").length?d.debug("Ignore focus event outside table body.",b):d._callHook("treeSetFocus",d,e)))}).on("selectstart"+e,"span.fancytree-title",function(a){a.preventDefault()}).on("keydown"+e,function(a){if(c.disabled||c.keyboard===!1)return!0;var b,e=d.focusNode,f=d._makeHookContext(e||d,a),g=d.phase;try{return d.phase="userEvent",b=e?d._triggerNodeEvent("keydown",e,a):d._triggerTreeEvent("keydown",a),"preventNav"===b?b=!0:b!==!1&&(b=d._callHook("nodeKeydown",f)),b}finally{d.phase=g}}).on("mousedown"+e,function(a){var b=s.getEventTarget(a);d._lastMousedownNode=b?b.node:null,d._setExpiringValue("mouseDownNode",d._lastMousedownNode)}).on("click"+e+" dblclick"+e,function(a){if(c.disabled)return!0;var d,e=s.getEventTarget(a),f=e.node,g=b.tree,h=g.phase;if(!f)return!0;d=g._makeHookContext(f,a);try{switch(g.phase="userEvent",a.type){case"click":return d.targetType=e.type,f.isPagingNode()?g._triggerNodeEvent("clickPaging",d,a)===!0:g._triggerNodeEvent("click",d,a)!==!1&&g._callHook("nodeClick",d);case"dblclick":return d.targetType=e.type,g._triggerNodeEvent("dblclick",d,a)!==!1&&g._callHook("nodeDblclick",d)}}finally{g.phase=h}})},getActiveNode:function(){return this.tree.activeNode},getNodeByKey:function(a){return this.tree.getNodeByKey(a)},getRootNode:function(){return this.tree.rootNode},getTree:function(){return this.tree}}),s=a.ui.fancytree,a.extend(a.ui.fancytree,{version:"2.26.0",buildType: "production",debugLevel: 1,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:p,_FancytreeNodeClass:o,jquerySupports:{positionMyOfs:e(a.ui.version,1,9)},assert:function(a,c){return b(a,c)},createTree:function(b,c){var d=a(b).fancytree(c).fancytree("getTree");return d},debounce:function(a,b,c,d){var e;return 3===arguments.length&&"boolean"!=typeof c&&(d=c,c=!1),function(){var f=arguments;d=d||this,c&&!e&&b.apply(d,f),clearTimeout(e),e=setTimeout(function(){c||b.apply(d,f),e=null},a)}},debug:function(b){a.ui.fancytree.debugLevel>=2&&c("log",arguments)},error:function(a){c("error",arguments)},escapeHtml:function(a){return(""+a).replace(u,function(a){return x[a]})},fixPositionOptions:function(b){if((b.offset||(""+b.my+b.at).indexOf("%")>=0)&&a.error("expected new position syntax (but '%' is not supported)"),!a.ui.fancytree.jquerySupports.positionMyOfs){var c=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.my),d=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.at),e=(c[2]?+c[2]:0)+(d[2]?+d[2]:0),f=(c[4]?+c[4]:0)+(d[4]?+d[4]:0);b=a.extend({},b,{my:c[1]+" "+c[3],at:d[1]+" "+d[3]}),(e||f)&&(b.offset=""+e+" "+f)}return b},getEventTarget:function(b){var c=b&&b.target?b.target.className:"",d={node:this.getNode(b.target),type:void 0};return/\bfancytree-title\b/.test(c)?d.type="title":/\bfancytree-expander\b/.test(c)?d.type=d.node.hasChildren()===!1?"prefix":"expander":/\bfancytree-checkbox\b/.test(c)?d.type="checkbox":/\bfancytree(-custom)?-icon\b/.test(c)?d.type="icon":/\bfancytree-node\b/.test(c)?d.type="title":b&&a(b.target).is("ul[role=group]")?(s.info("Ignoring click on outer UL."),d.node=null):b&&b.target&&a(b.target).closest(".fancytree-title").length&&(d.type="title"),d},getEventTargetType:function(a){return this.getEventTarget(a).type},getNode:function(b){if(b instanceof o)return b;for(b instanceof a?b=b[0]:void 0!==b.originalEvent&&(b=b.target);b;){if(b.ftnode)return b.ftnode;b=b.parentNode}return null},getTree:function(b){var c;return b instanceof p?b:(void 0===b&&(b=0),"number"==typeof b?b=a(".fancytree-container").eq(b):"string"==typeof b?b=a(b).eq(0):void 0!==b.selector?b=b.eq(0):void 0!==b.originalEvent&&(b=a(b.target)),b=b.closest(":ui-fancytree"),c=b.data("ui-fancytree")||b.data("fancytree"),c?c.tree:null)},evalOption:function(b,c,d,e,f){var g,h,i=c.tree,j=e[b],k=d[b];return a.isFunction(j)?(g={node:c,tree:i,widget:i.widget,options:i.widget.options},h=j.call(i,{type:b},g),null==h&&(h=k)):h=null!=k?k:j,null==h&&(h=f),h},eventToString:function(a){var b=a.which,c=a.type,d=[];return a.altKey&&d.push("alt"),a.ctrlKey&&d.push("ctrl"),a.metaKey&&d.push("meta"),a.shiftKey&&d.push("shift"),"click"===c||"dblclick"===c?d.push(A[a.button]+c):y[b]||d.push(z[b]||String.fromCharCode(b).toLowerCase()),d.join("+")},info:function(b){a.ui.fancytree.debugLevel>=1&&c("info",arguments)},keyEventToString:function(a){return this.warn("keyEventToString() is deprecated: use eventToString()"),this.eventToString(a)},overrideMethod:function(b,c,d){var e,f=b[c]||a.noop;b[c]=function(){try{return e=this._super,this._super=f,d.apply(this,arguments)}finally{this._super=e}}},parseHtml:function(b){var c,d,e,f,g,h,i,j,l=b.find(">li"),m=[];return l.each(function(){var l,n,o=a(this),p=o.find(">span:first",this),q=p.length?null:o.find(">a:first"),r={tooltip:null,data:{}};for(p.length?r.title=p.html():q&&q.length?(r.title=q.html(),r.data.href=q.attr("href"),r.data.target=q.attr("target"),r.tooltip=q.attr("title")):(r.title=o.html(),g=r.title.search(/<ul/i),g>=0&&(r.title=r.title.substring(0,g))),r.title=a.trim(r.title),f=0,h=B.length;f<h;f++)r[B[f]]=void 0;for(c=this.className.split(" "),e=[],f=0,h=c.length;f<h;f++)d=c[f],C[d]?r[d]=!0:e.push(d);if(r.extraClasses=e.join(" "),i=o.attr("title"),i&&(r.tooltip=i),i=o.attr("id"),i&&(r.key=i),o.attr("hideCheckbox")&&(r.checkbox=!1),l=k(o),l&&!a.isEmptyObject(l)){for(n in F)l.hasOwnProperty(n)&&(l[F[n]]=l[n],delete l[n]);for(f=0,h=D.length;f<h;f++)i=D[f],j=l[i],null!=j&&(delete l[i],r[i]=j);a.extend(r.data,l)}b=o.find(">ul:first"),b.length?r.children=a.ui.fancytree.parseHtml(b):r.children=r.lazy?void 0:null,m.push(r)}),m},registerExtension:function(c){b(null!=c.name,"extensions must have a `name` property."),b(null!=c.version,"extensions must have a `version` property."),a.ui.fancytree._extensions[c.name]=c},unescapeHtml:function(a){var b=document.createElement("div");return b.innerHTML=a,0===b.childNodes.length?"":b.childNodes[0].nodeValue},warn:function(a){c("warn",arguments)}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.childcounter.min.js' */-!function(a,b){"use strict";a.ui.fancytree._FancytreeClass.prototype.countSelected=function(a){var b=this;b.options;return b.getSelectedNodes(a).length},a.ui.fancytree._FancytreeNodeClass.prototype.updateCounters=function(){var b=this,c=a("span.fancytree-childcounter",b.span),d=b.tree.options.childcounter,e=b.countChildren(d.deep);b.data.childCounter=e,!e&&d.hideZeros||b.isExpanded()&&d.hideExpanded?c.remove():(c.length||(c=a("<span class='fancytree-childcounter'/>").appendTo(a("span.fancytree-icon",b.span))),c.text(e)),!d.deep||b.isTopLevel()||b.isRoot()||b.parent.updateCounters()},a.ui.fancytree.prototype.widgetMethod1=function(a){this.tree;return a},a.ui.fancytree.registerExtension({name:"childcounter",version:"2.23.0",options:{deep:!0,hideZeros:!0,hideExpanded:!1},foo:42,_appendCounter:function(a){},treeInit:function(a){a.options,a.options.childcounter;this._superApply(arguments),this.$container.addClass("fancytree-ext-childcounter")},treeDestroy:function(a){this._superApply(arguments)},nodeRenderTitle:function(b,c){var d=b.node,e=b.options.childcounter,f=null==d.data.childCounter?d.countChildren(e.deep):+d.data.childCounter;this._super(b,c),!f&&e.hideZeros||d.isExpanded()&&e.hideExpanded||a("span.fancytree-icon",d.span).append(a("<span class='fancytree-childcounter'/>").text(f))},nodeSetExpanded:function(a,b,c){var d=a.tree;a.node;return this._superApply(arguments).always(function(){d.nodeRenderTitle(a)})}})}(jQuery);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";return a.ui.fancytree._FancytreeClass.prototype.countSelected=function(a){var b=this;b.options;return b.getSelectedNodes(a).length},a.ui.fancytree._FancytreeNodeClass.prototype.updateCounters=function(){var b=this,c=a("span.fancytree-childcounter",b.span),d=b.tree.options.childcounter,e=b.countChildren(d.deep);b.data.childCounter=e,!e&&d.hideZeros||b.isExpanded()&&d.hideExpanded?c.remove():(c.length||(c=a("<span class='fancytree-childcounter'/>").appendTo(a("span.fancytree-icon",b.span))),c.text(e)),!d.deep||b.isTopLevel()||b.isRoot()||b.parent.updateCounters()},a.ui.fancytree.prototype.widgetMethod1=function(a){this.tree;return a},a.ui.fancytree.registerExtension({name:"childcounter",version:"2.26.0",options:{deep:!0,hideZeros:!0,hideExpanded:!1},foo:42,_appendCounter:function(a){},treeInit:function(a){a.options,a.options.childcounter;this._superApply(arguments),this.$container.addClass("fancytree-ext-childcounter")},treeDestroy:function(a){this._superApply(arguments)},nodeRenderTitle:function(b,c){var d=b.node,e=b.options.childcounter,f=null==d.data.childCounter?d.countChildren(e.deep):+d.data.childCounter;this._super(b,c),!f&&e.hideZeros||d.isExpanded()&&e.hideExpanded||a("span.fancytree-icon",d.span).append(a("<span class='fancytree-childcounter'/>").text(f))},nodeSetExpanded:function(a,b,c){var d=a.tree;a.node;return this._superApply(arguments).always(function(){d.nodeRenderTitle(a)})}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.clones.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){b||(c=c?": "+c:"",a.error("Assertion failed"+c))}function f(a,b){var c;for(c=a.length-1;c>=0;c--)if(a[c]===b)return a.splice(c,1),!0;return!1}function g(a,b,c){for(var d,e,f=3&a.length,g=a.length-f,h=c,i=3432918353,j=461845907,k=0;k<g;)e=255&a.charCodeAt(k)|(255&a.charCodeAt(++k))<<8|(255&a.charCodeAt(++k))<<16|(255&a.charCodeAt(++k))<<24,++k,e=(65535&e)*i+(((e>>>16)*i&65535)<<16)&4294967295,e=e<<15|e>>>17,e=(65535&e)*j+(((e>>>16)*j&65535)<<16)&4294967295,h^=e,h=h<<13|h>>>19,d=5*(65535&h)+((5*(h>>>16)&65535)<<16)&4294967295,h=(65535&d)+27492+(((d>>>16)+58964&65535)<<16);switch(e=0,f){case 3:e^=(255&a.charCodeAt(k+2))<<16;case 2:e^=(255&a.charCodeAt(k+1))<<8;case 1:e^=255&a.charCodeAt(k),e=(65535&e)*i+(((e>>>16)*i&65535)<<16)&4294967295,e=e<<15|e>>>17,e=(65535&e)*j+(((e>>>16)*j&65535)<<16)&4294967295,h^=e}return h^=a.length,h^=h>>>16,h=2246822507*(65535&h)+((2246822507*(h>>>16)&65535)<<16)&4294967295,h^=h>>>13,h=3266489909*(65535&h)+((3266489909*(h>>>16)&65535)<<16)&4294967295,h^=h>>>16,b?("0000000"+(h>>>0).toString(16)).substr(-8):h>>>0}function h(b){var c,d=a.map(b.getParentList(!1,!0),function(a){return a.refKey||a.key});return d=d.join("/"),c="id_"+g(d,!0)}a.ui.fancytree._FancytreeNodeClass.prototype.getCloneList=function(b){var c,d=this.tree,e=d.refMap[this.refKey]||null,f=d.keyMap;return e&&(c=this.key,b?e=a.map(e,function(a){return f[a]}):(e=a.map(e,function(a){return a===c?null:f[a]}),e.length<1&&(e=null))),e},a.ui.fancytree._FancytreeNodeClass.prototype.isClone=function(){var a=this.refKey||null,b=a&&this.tree.refMap[a]||null;return!!(b&&b.length>1)},a.ui.fancytree._FancytreeNodeClass.prototype.reRegister=function(b,c){b=null==b?null:""+b,c=null==c?null:""+c;var d=this.tree,e=this.key,f=this.refKey,g=d.keyMap,h=d.refMap,i=h[f]||null,j=!1;return null!=b&&b!==this.key&&(g[b]&&a.error("[ext-clones] reRegister("+b+"): already exists: "+this),delete g[e],g[b]=this,i&&(h[f]=a.map(i,function(a){return a===e?b:a})),this.key=b,j=!0),null!=c&&c!==this.refKey&&(i&&(1===i.length?delete h[f]:h[f]=a.map(i,function(a){return a===e?null:a})),h[c]?h[c].append(b):h[c]=[this.key],this.refKey=c,j=!0),j},a.ui.fancytree._FancytreeNodeClass.prototype.setRefKey=function(a){return this.reRegister(null,a)},a.ui.fancytree._FancytreeClass.prototype.getNodesByRef=function(b,c){var d=this.keyMap,e=this.refMap[b]||null;return e&&(e=c?a.map(e,function(a){var b=d[a];return b.isDescendantOf(c)?b:null}):a.map(e,function(a){return d[a]}),e.length<1&&(e=null)),e},a.ui.fancytree._FancytreeClass.prototype.changeRefKey=function(a,b){var c,d,e=this.keyMap,f=this.refMap[a]||null;if(f){for(c=0;c<f.length;c++)d=e[f[c]],d.refKey=b;delete this.refMap[a],this.refMap[b]=f}},a.ui.fancytree.registerExtension({name:"clones",version:"2.23.0",options:{highlightActiveClones:!0,highlightClones:!1},treeCreate:function(a){this._superApply(arguments),a.tree.refMap={},a.tree.keyMap={}},treeInit:function(a){this.$container.addClass("fancytree-ext-clones"),e(null==a.options.defaultKey),a.options.defaultKey=function(a){return h(a)},this._superApply(arguments)},treeClear:function(a){return a.tree.refMap={},a.tree.keyMap={},this._superApply(arguments)},treeRegisterNode:function(b,c,d){var g,h,i=b.tree,j=i.keyMap,k=i.refMap,l=d.key,m=d&&null!=d.refKey?""+d.refKey:null;return d.isStatusNode()?this._super(b,c,d):(c?(null!=j[d.key]&&a.error("clones.treeRegisterNode: node.key already exists: "+d),j[l]=d,m&&(g=k[m],g?(g.push(l),2===g.length&&b.options.clones.highlightClones&&j[g[0]].renderStatus()):k[m]=[l])):(null==j[l]&&a.error("clones.treeRegisterNode: node.key not registered: "+d.key),delete j[l],m&&(g=k[m],g&&(h=g.length,h<=1?(e(1===h),e(g[0]===l),delete k[m]):(f(g,l),2===h&&b.options.clones.highlightClones&&j[g[0]].renderStatus())))),this._super(b,c,d))},nodeRenderStatus:function(b){var c,d,e=b.node;return d=this._super(b),b.options.clones.highlightClones&&(c=a(e[b.tree.statusClassPropName]),c.length&&e.isClone()&&c.addClass("fancytree-clone")),d},nodeSetActive:function(b,c,d){var e,f=b.tree.statusClassPropName,g=b.node;return e=this._superApply(arguments),b.options.clones.highlightActiveClones&&g.isClone()&&a.each(g.getCloneList(!0),function(b,d){a(d[f]).toggleClass("fancytree-active-clone",c!==!1)}),e}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(b,c){b||(c=c?": "+c:"",a.error("Assertion failed"+c))}function c(a,b){var c;for(c=a.length-1;c>=0;c--)if(a[c]===b)return a.splice(c,1),!0;return!1}function d(a,b,c){for(var d,e,f=3&a.length,g=a.length-f,h=c,i=3432918353,j=461845907,k=0;k<g;)e=255&a.charCodeAt(k)|(255&a.charCodeAt(++k))<<8|(255&a.charCodeAt(++k))<<16|(255&a.charCodeAt(++k))<<24,++k,e=(65535&e)*i+(((e>>>16)*i&65535)<<16)&4294967295,e=e<<15|e>>>17,e=(65535&e)*j+(((e>>>16)*j&65535)<<16)&4294967295,h^=e,h=h<<13|h>>>19,d=5*(65535&h)+((5*(h>>>16)&65535)<<16)&4294967295,h=(65535&d)+27492+(((d>>>16)+58964&65535)<<16);switch(e=0,f){case 3:e^=(255&a.charCodeAt(k+2))<<16;case 2:e^=(255&a.charCodeAt(k+1))<<8;case 1:e^=255&a.charCodeAt(k),e=(65535&e)*i+(((e>>>16)*i&65535)<<16)&4294967295,e=e<<15|e>>>17,e=(65535&e)*j+(((e>>>16)*j&65535)<<16)&4294967295,h^=e}return h^=a.length,h^=h>>>16,h=2246822507*(65535&h)+((2246822507*(h>>>16)&65535)<<16)&4294967295,h^=h>>>13,h=3266489909*(65535&h)+((3266489909*(h>>>16)&65535)<<16)&4294967295,h^=h>>>16,b?("0000000"+(h>>>0).toString(16)).substr(-8):h>>>0}function e(b){var c,e=a.map(b.getParentList(!1,!0),function(a){return a.refKey||a.key});return e=e.join("/"),c="id_"+d(e,!0)}return a.ui.fancytree._FancytreeNodeClass.prototype.getCloneList=function(b){var c,d=this.tree,e=d.refMap[this.refKey]||null,f=d.keyMap;return e&&(c=this.key,b?e=a.map(e,function(a){return f[a]}):(e=a.map(e,function(a){return a===c?null:f[a]}),e.length<1&&(e=null))),e},a.ui.fancytree._FancytreeNodeClass.prototype.isClone=function(){var a=this.refKey||null,b=a&&this.tree.refMap[a]||null;return!!(b&&b.length>1)},a.ui.fancytree._FancytreeNodeClass.prototype.reRegister=function(b,c){b=null==b?null:""+b,c=null==c?null:""+c;var d=this.tree,e=this.key,f=this.refKey,g=d.keyMap,h=d.refMap,i=h[f]||null,j=!1;return null!=b&&b!==this.key&&(g[b]&&a.error("[ext-clones] reRegister("+b+"): already exists: "+this),delete g[e],g[b]=this,i&&(h[f]=a.map(i,function(a){return a===e?b:a})),this.key=b,j=!0),null!=c&&c!==this.refKey&&(i&&(1===i.length?delete h[f]:h[f]=a.map(i,function(a){return a===e?null:a})),h[c]?h[c].append(b):h[c]=[this.key],this.refKey=c,j=!0),j},a.ui.fancytree._FancytreeNodeClass.prototype.setRefKey=function(a){return this.reRegister(null,a)},a.ui.fancytree._FancytreeClass.prototype.getNodesByRef=function(b,c){var d=this.keyMap,e=this.refMap[b]||null;return e&&(e=c?a.map(e,function(a){var b=d[a];return b.isDescendantOf(c)?b:null}):a.map(e,function(a){return d[a]}),e.length<1&&(e=null)),e},a.ui.fancytree._FancytreeClass.prototype.changeRefKey=function(a,b){var c,d,e=this.keyMap,f=this.refMap[a]||null;if(f){for(c=0;c<f.length;c++)d=e[f[c]],d.refKey=b;delete this.refMap[a],this.refMap[b]=f}},a.ui.fancytree.registerExtension({name:"clones",version:"2.26.0",options:{highlightActiveClones:!0,highlightClones:!1},treeCreate:function(a){this._superApply(arguments),a.tree.refMap={},a.tree.keyMap={}},treeInit:function(a){this.$container.addClass("fancytree-ext-clones"),b(null==a.options.defaultKey),a.options.defaultKey=function(a){return e(a)},this._superApply(arguments)},treeClear:function(a){return a.tree.refMap={},a.tree.keyMap={},this._superApply(arguments)},treeRegisterNode:function(d,e,f){var g,h,i=d.tree,j=i.keyMap,k=i.refMap,l=f.key,m=f&&null!=f.refKey?""+f.refKey:null;return f.isStatusNode()?this._super(d,e,f):(e?(null!=j[f.key]&&a.error("clones.treeRegisterNode: node.key already exists: "+f),j[l]=f,m&&(g=k[m],g?(g.push(l),2===g.length&&d.options.clones.highlightClones&&j[g[0]].renderStatus()):k[m]=[l])):(null==j[l]&&a.error("clones.treeRegisterNode: node.key not registered: "+f.key),delete j[l],m&&(g=k[m],g&&(h=g.length,h<=1?(b(1===h),b(g[0]===l),delete k[m]):(c(g,l),2===h&&d.options.clones.highlightClones&&j[g[0]].renderStatus())))),this._super(d,e,f))},nodeRenderStatus:function(b){var c,d,e=b.node;return d=this._super(b),b.options.clones.highlightClones&&(c=a(e[b.tree.statusClassPropName]),c.length&&e.isClone()&&c.addClass("fancytree-clone")),d},nodeSetActive:function(b,c,d){var e,f=b.tree.statusClassPropName,g=b.node;return e=this._superApply(arguments),b.options.clones.highlightActiveClones&&g.isClone()&&a.each(g.getCloneList(!0),function(b,d){a(d[f]).toggleClass("fancytree-active-clone",c!==!1)}),e}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.dnd.min.js' */-!function(a,b,c,d){"use strict";function e(a){return 0===a?"":a>0?"+"+a:""+a}function f(){h||(a.ui.plugin.add("draggable","connectToFancytree",{start:function(b,c){var d=a(this).data("ui-draggable")||a(this).data("draggable"),e=c.helper.data("ftSourceNode")||null;if(e)return d.offset.click.top=-2,d.offset.click.left=16,e.tree.ext.dnd._onDragEvent("start",e,null,b,c,d)},drag:function(b,c){var d,e,f,g=a(this).data("ui-draggable")||a(this).data("draggable"),h=c.helper.data("ftSourceNode")||null,i=c.helper.data("ftTargetNode")||null,j=a.ui.fancytree.getNode(b.target),k=h&&h.tree.options.dnd;return b.target&&!j&&(e=a(b.target).closest("div.fancytree-drag-helper,#fancytree-drop-marker").length>0)?(f=h||i||a.ui.fancytree,void f.debug("Drag event over helper: ignored.")):(c.helper.data("ftTargetNode",j),k&&k.updateHelper&&(d=h.tree._makeHookContext(h,b,{otherNode:j,ui:c,draggable:g,dropMarker:a("#fancytree-drop-marker")}),k.updateHelper.call(h.tree,h,d)),i&&i!==j&&i.tree.ext.dnd._onDragEvent("leave",i,h,b,c,g),void(j&&j.tree.options.dnd.dragDrop&&(j===i?j.tree.ext.dnd._onDragEvent("over",j,h,b,c,g):(j.tree.ext.dnd._onDragEvent("enter",j,h,b,c,g),j.tree.ext.dnd._onDragEvent("over",j,h,b,c,g)))))},stop:function(b,c){var d,e=a(this).data("ui-draggable")||a(this).data("draggable"),f=c.helper.data("ftSourceNode")||null,g=c.helper.data("ftTargetNode")||null,h="mouseup"===b.type&&1===b.which;h||(d=f||g||a.ui.fancytree,d.debug("Drag was cancelled")),g&&(h&&g.tree.ext.dnd._onDragEvent("drop",g,f,b,c,e),g.tree.ext.dnd._onDragEvent("leave",g,f,b,c,e)),f&&f.tree.ext.dnd._onDragEvent("stop",f,null,b,c,e)}}),h=!0)}function g(b){var c=b.options.dnd||null,d=b.options.glyph||null;c&&f(),c&&c.dragStart&&b.widget.element.draggable(a.extend({addClasses:!1,appendTo:b.$container,containment:!1,delay:0,distance:4,revert:!1,scroll:!0,scrollSpeed:7,scrollSensitivity:10,connectToFancytree:!0,helper:function(b){var c,e,f,g=a.ui.fancytree.getNode(b.target);return g?(f=g.tree.options.dnd,e=a(g.span),c=a("<div class='fancytree-drag-helper'><span class='fancytree-drag-helper-img' /></div>").css({zIndex:3,position:"relative"}).append(e.find("span.fancytree-title").clone()),c.data("ftSourceNode",g),d&&c.find(".fancytree-drag-helper-img").addClass(d.map.dragHelper),f.initHelper&&f.initHelper.call(g.tree,g,{node:g,tree:g.tree,originalEvent:b,ui:{helper:c}}),c):"<div>ERROR?: helper requested but sourceNode not found</div>"},start:function(a,b){var c=b.helper.data("ftSourceNode");return!!c}},b.options.dnd.draggable)),c&&c.dragDrop&&b.widget.element.droppable(a.extend({addClasses:!1,tolerance:"intersect",greedy:!1},b.options.dnd.droppable))}var h=!1,i="fancytree-drop-accept",j="fancytree-drop-after",k="fancytree-drop-before",l="fancytree-drop-over",m="fancytree-drop-reject",n="fancytree-drop-target";a.ui.fancytree.registerExtension({name:"dnd",version:"2.23.0",options:{autoExpandMS:1e3,draggable:null,droppable:null,focusOnClick:!1,preventVoidMoves:!0,preventRecursiveMoves:!0,smartRevert:!0,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragStop:null,initHelper:null,updateHelper:null,dragEnter:null,dragOver:null,dragExpand:null,dragDrop:null,dragLeave:null},treeInit:function(b){var c=b.tree;this._superApply(arguments),c.options.dnd.dragStart&&c.$container.on("mousedown",function(c){if(b.options.dnd.focusOnClick){var d=a.ui.fancytree.getNode(c);d&&d.debug("Re-enable focus that was prevented by jQuery UI draggable."),setTimeout(function(){a(c.target).closest(":tabbable").focus()},10)}}),g(c)},_setDndStatus:function(b,c,d,f,g){var h,o="center",p=this._local,q=this.options.dnd,r=this.options.glyph,s=b?a(b.span):null,t=a(c.span),u=t.find("span.fancytree-title");if(p.$dropMarker||(p.$dropMarker=a("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3}).prependTo(a(this.$div).parent()),r&&p.$dropMarker.addClass(r.map.dropMarker)),"after"===f||"before"===f||"over"===f){switch(h=q.dropMarkerOffsetX||0,f){case"before":o="top",h+=q.dropMarkerInsertOffsetX||0;break;case"after":o="bottom",h+=q.dropMarkerInsertOffsetX||0}p.$dropMarker.toggleClass(j,"after"===f).toggleClass(l,"over"===f).toggleClass(k,"before"===f).show().position(a.ui.fancytree.fixPositionOptions({my:"left"+e(h)+" center",at:"left "+o,of:u}))}else p.$dropMarker.hide();s&&s.toggleClass(i,g===!0).toggleClass(m,g===!1),t.toggleClass(n,"after"===f||"before"===f||"over"===f).toggleClass(j,"after"===f).toggleClass(k,"before"===f).toggleClass(i,g===!0).toggleClass(m,g===!1),d.toggleClass(i,g===!0).toggleClass(m,g===!1)},_onDragEvent:function(b,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s=this.options,t=s.dnd,u=this._makeHookContext(e,g,{otherNode:f,ui:h,draggable:i}),v=null,w=this,x=a(e.span);switch(t.smartRevert&&(i.options.revert="invalid"),b){case"start":e.isStatusNode()?v=!1:t.dragStart&&(v=t.dragStart(e,u)),v===!1?(this.debug("tree.dragStart() cancelled"),h.helper.trigger("mouseup").hide()):(t.smartRevert&&(m=e[u.tree.nodeContainerAttrName].getBoundingClientRect(),l=a(i.options.appendTo)[0].getBoundingClientRect(),i.originalPosition.left=Math.max(0,m.left-l.left),i.originalPosition.top=Math.max(0,m.top-l.top)),x.addClass("fancytree-drag-source"),a(c).on("keydown.fancytree-dnd,mousedown.fancytree-dnd",function(b){"keydown"===b.type&&b.which===a.ui.keyCode.ESCAPE?w.ext.dnd._cancelDrag():"mousedown"===b.type&&w.ext.dnd._cancelDrag()}));break;case"enter":r=(!t.preventRecursiveMoves||!e.isDescendantOf(f))&&(t.dragEnter?t.dragEnter(e,u):null),v=!!r&&(a.isArray(r)?{over:a.inArray("over",r)>=0,before:a.inArray("before",r)>=0,after:a.inArray("after",r)>=0}:{over:r===!0||"over"===r,before:r===!0||"before"===r,after:r===!0||"after"===r}),h.helper.data("enterResponse",v);break;case"over":p=h.helper.data("enterResponse"),q=null,p===!1||("string"==typeof p?q=p:(k=x.offset(),n={x:g.pageX-k.left,y:g.pageY-k.top},o={x:n.x/x.width(),y:n.y/x.height()},p.after&&o.y>.75?q="after":!p.over&&p.after&&o.y>.5?q="after":p.before&&o.y<=.25?q="before":!p.over&&p.before&&o.y<=.5?q="before":p.over&&(q="over"),t.preventVoidMoves&&(e===f?(this.debug(" drop over source node prevented"),q=null):"before"===q&&f&&e===f.getNextSibling()?(this.debug(" drop after source node prevented"),q=null):"after"===q&&f&&e===f.getPrevSibling()?(this.debug(" drop before source node prevented"),q=null):"over"===q&&f&&f.parent===e&&f.isLastSibling()&&(this.debug(" drop last child over own parent prevented"),q=null)),h.helper.data("hitMode",q))),"before"===q||"after"===q||!t.autoExpandMS||e.hasChildren()===!1||e.expanded||t.dragExpand&&t.dragExpand(e,u)===!1||e.scheduleAction("expand",t.autoExpandMS),q&&t.dragOver&&(u.hitMode=q,v=t.dragOver(e,u)),j=v!==!1&&null!==q,t.smartRevert&&(i.options.revert=!j),this._local._setDndStatus(f,e,h.helper,q,j);break;case"drop":q=h.helper.data("hitMode"),q&&t.dragDrop&&(u.hitMode=q,t.dragDrop(e,u));break;case"leave":e.scheduleAction("cancel"),h.helper.data("enterResponse",null),h.helper.data("hitMode",null),this._local._setDndStatus(f,e,h.helper,"out",d),t.dragLeave&&t.dragLeave(e,u);break;case"stop":x.removeClass("fancytree-drag-source"),a(c).off(".fancytree-dnd"),t.dragStop&&t.dragStop(e,u);break;default:a.error("Unsupported drag event: "+b)}return v},_cancelDrag:function(){var b=a.ui.ddmanager.current;b&&b.cancel()}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","jquery-ui/ui/widgets/draggable","jquery-ui/ui/widgets/droppable","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(a){return 0===a?"":a>0?"+"+a:""+a}function c(){e||(a.ui.plugin.add("draggable","connectToFancytree",{start:function(b,c){var d=a(this).data("ui-draggable")||a(this).data("draggable"),e=c.helper.data("ftSourceNode")||null;if(e)return d.offset.click.top=-2,d.offset.click.left=16,e.tree.ext.dnd._onDragEvent("start",e,null,b,c,d)},drag:function(b,c){var d,e,f,g=a(this).data("ui-draggable")||a(this).data("draggable"),h=c.helper.data("ftSourceNode")||null,i=c.helper.data("ftTargetNode")||null,j=a.ui.fancytree.getNode(b.target),k=h&&h.tree.options.dnd;return b.target&&!j&&(e=a(b.target).closest("div.fancytree-drag-helper,#fancytree-drop-marker").length>0)?(f=h||i||a.ui.fancytree,void f.debug("Drag event over helper: ignored.")):(c.helper.data("ftTargetNode",j),k&&k.updateHelper&&(d=h.tree._makeHookContext(h,b,{otherNode:j,ui:c,draggable:g,dropMarker:a("#fancytree-drop-marker")}),k.updateHelper.call(h.tree,h,d)),i&&i!==j&&i.tree.ext.dnd._onDragEvent("leave",i,h,b,c,g),void(j&&j.tree.options.dnd.dragDrop&&(j===i?j.tree.ext.dnd._onDragEvent("over",j,h,b,c,g):(j.tree.ext.dnd._onDragEvent("enter",j,h,b,c,g),j.tree.ext.dnd._onDragEvent("over",j,h,b,c,g)))))},stop:function(b,c){var d,e=a(this).data("ui-draggable")||a(this).data("draggable"),f=c.helper.data("ftSourceNode")||null,g=c.helper.data("ftTargetNode")||null,h="mouseup"===b.type&&1===b.which;h||(d=f||g||a.ui.fancytree,d.debug("Drag was cancelled")),g&&(h&&g.tree.ext.dnd._onDragEvent("drop",g,f,b,c,e),g.tree.ext.dnd._onDragEvent("leave",g,f,b,c,e)),f&&f.tree.ext.dnd._onDragEvent("stop",f,null,b,c,e)}}),e=!0)}function d(b){var d=b.options.dnd||null,e=b.options.glyph||null;d&&c(),d&&d.dragStart&&b.widget.element.draggable(a.extend({addClasses:!1,appendTo:b.$container,containment:!1,delay:0,distance:4,revert:!1,scroll:!0,scrollSpeed:7,scrollSensitivity:10,connectToFancytree:!0,helper:function(b){var c,d,f,g=a.ui.fancytree.getNode(b.target);return g?(f=g.tree.options.dnd,d=a(g.span),c=a("<div class='fancytree-drag-helper'><span class='fancytree-drag-helper-img' /></div>").css({zIndex:3,position:"relative"}).append(d.find("span.fancytree-title").clone()),c.data("ftSourceNode",g),e&&c.find(".fancytree-drag-helper-img").addClass(e.map.dragHelper),f.initHelper&&f.initHelper.call(g.tree,g,{node:g,tree:g.tree,originalEvent:b,ui:{helper:c}}),c):"<div>ERROR?: helper requested but sourceNode not found</div>"},start:function(a,b){var c=b.helper.data("ftSourceNode");return!!c}},b.options.dnd.draggable)),d&&d.dragDrop&&b.widget.element.droppable(a.extend({addClasses:!1,tolerance:"intersect",greedy:!1},b.options.dnd.droppable))}var e=!1,f="fancytree-drop-accept",g="fancytree-drop-after",h="fancytree-drop-before",i="fancytree-drop-over",j="fancytree-drop-reject",k="fancytree-drop-target";return a.ui.fancytree.registerExtension({name:"dnd",version:"2.26.0",options:{autoExpandMS:1e3,draggable:null,droppable:null,focusOnClick:!1,preventVoidMoves:!0,preventRecursiveMoves:!0,smartRevert:!0,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragStop:null,initHelper:null,updateHelper:null,dragEnter:null,dragOver:null,dragExpand:null,dragDrop:null,dragLeave:null},treeInit:function(b){var c=b.tree;this._superApply(arguments),c.options.dnd.dragStart&&c.$container.on("mousedown",function(c){if(b.options.dnd.focusOnClick){var d=a.ui.fancytree.getNode(c);d&&d.debug("Re-enable focus that was prevented by jQuery UI draggable."),setTimeout(function(){a(c.target).closest(":tabbable").focus()},10)}}),d(c)},_setDndStatus:function(c,d,e,l,m){var n,o="center",p=this._local,q=this.options.dnd,r=this.options.glyph,s=c?a(c.span):null,t=a(d.span),u=t.find("span.fancytree-title");if(p.$dropMarker||(p.$dropMarker=a("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3}).prependTo(a(this.$div).parent()),r&&p.$dropMarker.addClass(r.map.dropMarker)),"after"===l||"before"===l||"over"===l){switch(n=q.dropMarkerOffsetX||0,l){case"before":o="top",n+=q.dropMarkerInsertOffsetX||0;break;case"after":o="bottom",n+=q.dropMarkerInsertOffsetX||0}p.$dropMarker.toggleClass(g,"after"===l).toggleClass(i,"over"===l).toggleClass(h,"before"===l).show().position(a.ui.fancytree.fixPositionOptions({my:"left"+b(n)+" center",at:"left "+o,of:u}))}else p.$dropMarker.hide();s&&s.toggleClass(f,m===!0).toggleClass(j,m===!1),t.toggleClass(k,"after"===l||"before"===l||"over"===l).toggleClass(g,"after"===l).toggleClass(h,"before"===l).toggleClass(f,m===!0).toggleClass(j,m===!1),e.toggleClass(f,m===!0).toggleClass(j,m===!1)},_onDragEvent:function(b,c,d,e,f,g){var h,i,j,k,l,m,n,o,p,q=this.options,r=q.dnd,s=this._makeHookContext(c,e,{otherNode:d,ui:f,draggable:g}),t=null,u=this,v=a(c.span);switch(r.smartRevert&&(g.options.revert="invalid"),b){case"start":c.isStatusNode()?t=!1:r.dragStart&&(t=r.dragStart(c,s)),t===!1?(this.debug("tree.dragStart() cancelled"),f.helper.trigger("mouseup").hide()):(r.smartRevert&&(k=c[s.tree.nodeContainerAttrName].getBoundingClientRect(),j=a(g.options.appendTo)[0].getBoundingClientRect(),g.originalPosition.left=Math.max(0,k.left-j.left),g.originalPosition.top=Math.max(0,k.top-j.top)),v.addClass("fancytree-drag-source"),a(document).on("keydown.fancytree-dnd,mousedown.fancytree-dnd",function(b){"keydown"===b.type&&b.which===a.ui.keyCode.ESCAPE?u.ext.dnd._cancelDrag():"mousedown"===b.type&&u.ext.dnd._cancelDrag()}));break;case"enter":p=(!r.preventRecursiveMoves||!c.isDescendantOf(d))&&(r.dragEnter?r.dragEnter(c,s):null),t=!!p&&(a.isArray(p)?{over:a.inArray("over",p)>=0,before:a.inArray("before",p)>=0,after:a.inArray("after",p)>=0}:{over:p===!0||"over"===p,before:p===!0||"before"===p,after:p===!0||"after"===p}),f.helper.data("enterResponse",t);break;case"over":n=f.helper.data("enterResponse"),o=null,n===!1||("string"==typeof n?o=n:(i=v.offset(),l={x:e.pageX-i.left,y:e.pageY-i.top},m={x:l.x/v.width(),y:l.y/v.height()},n.after&&m.y>.75?o="after":!n.over&&n.after&&m.y>.5?o="after":n.before&&m.y<=.25?o="before":!n.over&&n.before&&m.y<=.5?o="before":n.over&&(o="over"),r.preventVoidMoves&&(c===d?(this.debug(" drop over source node prevented"),o=null):"before"===o&&d&&c===d.getNextSibling()?(this.debug(" drop after source node prevented"),o=null):"after"===o&&d&&c===d.getPrevSibling()?(this.debug(" drop before source node prevented"),o=null):"over"===o&&d&&d.parent===c&&d.isLastSibling()&&(this.debug(" drop last child over own parent prevented"),o=null)),f.helper.data("hitMode",o))),"before"===o||"after"===o||!r.autoExpandMS||c.hasChildren()===!1||c.expanded||r.dragExpand&&r.dragExpand(c,s)===!1||c.scheduleAction("expand",r.autoExpandMS),o&&r.dragOver&&(s.hitMode=o,t=r.dragOver(c,s)),h=t!==!1&&null!==o,r.smartRevert&&(g.options.revert=!h),this._local._setDndStatus(d,c,f.helper,o,h);break;case"drop":o=f.helper.data("hitMode"),o&&r.dragDrop&&(s.hitMode=o,r.dragDrop(c,s));break;case"leave":c.scheduleAction("cancel"),f.helper.data("enterResponse",null),f.helper.data("hitMode",null),this._local._setDndStatus(d,c,f.helper,"out",void 0),r.dragLeave&&r.dragLeave(c,s);break;case"stop":v.removeClass("fancytree-drag-source"),a(document).off(".fancytree-dnd"),r.dragStop&&r.dragStop(c,s);break;default:a.error("Unsupported drag event: "+b)}return t},_cancelDrag:function(){var b=a.ui.ddmanager.current;b&&b.cancel()}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.dnd5.min.js' */-!function(a,b,c,d){"use strict";function e(a){return 0===a?"":a>0?"+"+a:""+a}function f(b){var c;return!!b&&(c=a.isPlainObject(b)?{over:!!b.over,before:!!b.before,after:!!b.after}:a.isArray(b)?{over:a.inArray("over",b)>=0,before:a.inArray("before",b)>=0,after:a.inArray("after",b)>=0}:{over:b===!0||"over"===b,before:b===!0||"before"===b,after:b===!0||"after"===b},0!==Object.keys(c).length&&c)}function g(d,e){var f,g,h,i=d.options.dnd5,j=d.$scrollParent[0],k=i.scrollSensitivity,l=i.scrollSpeed,m=0;return j!==c&&"HTML"!==j.tagName?(f=d.$scrollParent.offset(),g=j.scrollTop,f.top+j.offsetHeight-e.pageY<k?(h=j.scrollHeight-d.$scrollParent.innerHeight()-g,h>0&&(j.scrollTop=m=g+l)):g>0&&e.pageY-f.top<k&&(j.scrollTop=m=g-l)):(g=a(c).scrollTop(),g>0&&e.pageY-g<k?(m=g-l,a(c).scrollTop(m)):a(b).height()-(e.pageY-g)<k&&(m=g+l,a(c).scrollTop(m))),m&&d.debug("autoScroll: "+m+"px"),m}function h(b,c){if(c.options.dnd5.scroll&&g(c.tree,b),!c.node)return c.tree.warn("Ignore dragover for non-node"),u;var d,f,h,i=null,j=c.tree,q=j.options,s=q.dnd5,v=c.node,w=c.otherNode,x="center",y=a(v.span),z=y.find("span.fancytree-title");if(t===!1)return j.warn("Ignore dragover, since dragenter returned false"),!1;if("string"==typeof t?a.error("assert failed: dragenter returned string"):(f=y.offset(),h=(b.pageY-f.top)/y.height(),t.after&&h>.75?i="after":!t.over&&t.after&&h>.5?i="after":t.before&&h<=.25?i="before":!t.over&&t.before&&h<=.5?i="before":t.over&&(i="over"),s.preventVoidMoves&&(v===w?(v.debug("drop over source node prevented"),i=null):"before"===i&&w&&v===w.getNextSibling()?(v.debug("drop after source node prevented"),i=null):"after"===i&&w&&v===w.getPrevSibling()?(v.debug("drop before source node prevented"),i=null):"over"===i&&w&&w.parent===v&&w.isLastSibling()&&(v.debug("drop last child over own parent prevented"),i=null))),c.hitMode=i,i&&s.dragOver&&(s.dragOver(v,c),i=c.hitMode),u=i,"after"===i||"before"===i||"over"===i){switch(d=s.dropMarkerOffsetX||0,i){case"before":x="top",d+=s.dropMarkerInsertOffsetX||0;break;case"after":x="bottom",d+=s.dropMarkerInsertOffsetX||0}r.toggleClass(l,"after"===i).toggleClass(n,"over"===i).toggleClass(m,"before"===i).show().position(a.ui.fancytree.fixPositionOptions({my:"left"+e(d)+" center",at:"left "+x,of:z}))}else r.hide();return a(v.span).toggleClass(p,"after"===i||"before"===i||"over"===i).toggleClass(l,"after"===i).toggleClass(m,"before"===i).toggleClass(k,"over"===i).toggleClass(o,i===!1),i}var i="fancytree-drag-source",j="fancytree-drag-remove",k="fancytree-drop-accept",l="fancytree-drop-after",m="fancytree-drop-before",n="fancytree-drop-over",o="fancytree-drop-reject",p="fancytree-drop-target",q="application/x-fancytree-node",r=null,s=null,t=null,u=null;a.ui.fancytree.registerExtension({name:"dnd5",version:"2.23.0",options:{autoExpandMS:1500,setTextTypeJson:!1,preventForeignNodes:!1,preventNonNodes:!1,preventRecursiveMoves:!0,preventVoidMoves:!0,scroll:!0,scrollSensitivity:20,scrollSpeed:5,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragDrag:a.noop,dragEnd:a.noop,dragEnter:null,dragOver:a.noop,dragExpand:a.noop,dragDrop:a.noop,dragLeave:a.noop},treeInit:function(b){var c=b.tree,e=b.options,g=e.dnd5,l=a.ui.fancytree.getNode;a.inArray("dnd",e.extensions)>=0&&a.error("Extensions 'dnd' and 'dnd5' are mutually exclusive."),g.dragStop&&a.error("dragStop is not used by ext-dnd5. Use dragEnd instead."),g.dragStart&&a.ui.fancytree.overrideMethod(b.options,"createNode",function(a,b){this._super.apply(this,arguments),b.node.span.draggable=!0}),this._superApply(arguments),this.$container.addClass("fancytree-ext-dnd5"),this.$scrollParent=this.$container.children(":first").scrollParent(),r=a("#fancytree-drop-marker"),r.length||(r=a("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3,"pointer-events":"none"}).prependTo("body")),g.dragStart&&c.$container.on("dragstart drag dragend",function(b){var e,f=l(b),h=b.dataTransfer||b.originalEvent.dataTransfer,k="move"===h.dropEffect,m=f?a(f.span):null,n={node:f,tree:c,options:c.options,originalEvent:b,dataTransfer:h,isCancelled:d};switch(b.type){case"dragstart":a(f.span).addClass(i),s=f,e=JSON.stringify(f.toDict());try{h.setData(q,e),h.setData("text/html",a(f.span).html()),h.setData("text/plain",f.title)}catch(o){c.warn("Could not set data (IE only accepts 'text') - "+o)}return g.setTextTypeJson?h.setData("text",e):h.setData("text",f.title),h.effectAllowed="all",h.setDragImage&&h.setDragImage(a(f.span).find(".fancytree-title")[0],-10,-10),g.dragStart(f,n)!==!1;case"drag":m.toggleClass(j,k),g.dragDrag(f,n);break;case"dragend":a(f.span).removeClass(i+" "+j),s=null,t=null,n.isCancelled="none"===h.dropEffect,r.hide(),g.dragEnd(f,n)}}),g.dragEnter&&c.$container.on("dragenter dragover dragleave drop",function(b){var e,i,j,m,p=null,v=l(b),w=b.dataTransfer||b.originalEvent.dataTransfer,x={node:v,tree:c,options:c.options,hitMode:t,originalEvent:b,dataTransfer:w,otherNode:s||null,otherNodeData:null,dropEffect:d,isCancelled:d};switch(b.type){case"dragenter":if(!v){c.debug("Ignore non-node "+b.type+": "+b.target.tagName+"."+b.target.className),t=!1;break}if(a(v.span).addClass(n).removeClass(k+" "+o),g.preventNonNodes&&!i){v.debug("Reject dropping a non-node"),t=!1;break}if(g.preventForeignNodes&&(!s||s.tree!==v.tree)){v.debug("Reject dropping a foreign node"),t=!1;break}setTimeout(function(){!g.autoExpandMS||v.hasChildren()===!1||v.expanded||g.dragExpand&&g.dragExpand(v,x)===!1||v.scheduleAction("expand",g.autoExpandMS)},0),r.show(),g.preventRecursiveMoves&&v.isDescendantOf(x.otherNode)?m=!1:(j=g.dragEnter(v,x),m=f(j)),t=m,p=m&&(m.over||m.before||m.after);break;case"dragover":u=h(b,x),p=!!u;break;case"dragleave":if(!v){c.debug("Ignore non-node "+b.type+": "+b.target.tagName+"."+b.target.className);break}if(!a(v.span).hasClass(n)){v.debug("Ignore dragleave (multi)");break}a(v.span).removeClass(n+" "+k+" "+o),v.scheduleAction("cancel"),g.dragLeave(v,x),r.hide();break;case"drop":if(a.inArray(q,w.types)>=0&&(i=w.getData(q),c.info(b.type+": getData('application/x-fancytree-node'): '"+i+"'")),i||(i=w.getData("text"),c.info(b.type+": getData('text'): '"+i+"'")),i)try{e=JSON.parse(i),e.title!==d&&(x.otherNodeData=e)}catch(y){}c.debug(b.type+": nodeData: '"+i+"', otherNodeData: ",x.otherNodeData),a(v.span).removeClass(n+" "+k+" "+o),r.hide(),x.hitMode=u,x.dropEffect=w.dropEffect,x.isCancelled="none"===x.dropEffect,g.dragDrop(v,x),b.preventDefault()}if(p)return b.preventDefault(),!1})}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(a){return 0===a?"":a>0?"+"+a:""+a}function c(b){var c;return!!b&&(c=a.isPlainObject(b)?{over:!!b.over,before:!!b.before,after:!!b.after}:a.isArray(b)?{over:a.inArray("over",b)>=0,before:a.inArray("before",b)>=0,after:a.inArray("after",b)>=0}:{over:b===!0||"over"===b,before:b===!0||"before"===b,after:b===!0||"after"===b},0!==Object.keys(c).length&&c)}function d(b,c){var d,e,f,g=b.options.dnd5,h=b.$scrollParent[0],i=g.scrollSensitivity,j=g.scrollSpeed,k=0;return h!==document&&"HTML"!==h.tagName?(d=b.$scrollParent.offset(),e=h.scrollTop,d.top+h.offsetHeight-c.pageY<i?(f=h.scrollHeight-b.$scrollParent.innerHeight()-e,f>0&&(h.scrollTop=k=e+j)):e>0&&c.pageY-d.top<i&&(h.scrollTop=k=e-j)):(e=a(document).scrollTop(),e>0&&c.pageY-e<i?(k=e-j,a(document).scrollTop(k)):a(window).height()-(c.pageY-e)<i&&(k=e+j,a(document).scrollTop(k))),k&&b.debug("autoScroll: "+k+"px"),k}function e(c,e){if(e.options.dnd5.scroll&&d(e.tree,c),!e.node)return e.tree.warn("Ignore dragover for non-node"),r;var f,g,n,p=null,s=e.tree,t=s.options,u=t.dnd5,v=e.node,w=e.otherNode,x="center",y=a(v.span),z=y.find("span.fancytree-title");if(q===!1)return s.info("Ignore dragover, since dragenter returned false"),!1;if("string"==typeof q?a.error("assert failed: dragenter returned string"):(g=y.offset(),n=(c.pageY-g.top)/y.height(),q.after&&n>.75?p="after":!q.over&&q.after&&n>.5?p="after":q.before&&n<=.25?p="before":!q.over&&q.before&&n<=.5?p="before":q.over&&(p="over"),u.preventVoidMoves&&(v===w?(v.debug("drop over source node prevented"),p=null):"before"===p&&w&&v===w.getNextSibling()?(v.debug("drop after source node prevented"),p=null):"after"===p&&w&&v===w.getPrevSibling()?(v.debug("drop before source node prevented"),p=null):"over"===p&&w&&w.parent===v&&w.isLastSibling()&&(v.debug("drop last child over own parent prevented"),p=null))),e.hitMode=p,p&&u.dragOver&&(u.dragOver(v,e),p=e.hitMode),r=p,"after"===p||"before"===p||"over"===p){switch(f=u.dropMarkerOffsetX||0,p){case"before":x="top",f+=u.dropMarkerInsertOffsetX||0;break;case"after":x="bottom",f+=u.dropMarkerInsertOffsetX||0}o.toggleClass(i,"after"===p).toggleClass(k,"over"===p).toggleClass(j,"before"===p).show().position(a.ui.fancytree.fixPositionOptions({my:"left"+b(f)+" center",at:"left "+x,of:z}))}else o.hide();return a(v.span).toggleClass(m,"after"===p||"before"===p||"over"===p).toggleClass(i,"after"===p).toggleClass(j,"before"===p).toggleClass(h,"over"===p).toggleClass(l,p===!1),p}var f="fancytree-drag-source",g="fancytree-drag-remove",h="fancytree-drop-accept",i="fancytree-drop-after",j="fancytree-drop-before",k="fancytree-drop-over",l="fancytree-drop-reject",m="fancytree-drop-target",n="application/x-fancytree-node",o=null,p=null,q=null,r=null;return a.ui.fancytree.registerExtension({name:"dnd5",version:"2.26.0",options:{autoExpandMS:1500,setTextTypeJson:!1,preventForeignNodes:!1,preventNonNodes:!1,preventRecursiveMoves:!0,preventVoidMoves:!0,scroll:!0,scrollSensitivity:20,scrollSpeed:5,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragDrag:a.noop,dragEnd:a.noop,dragEnter:null,dragOver:a.noop,dragExpand:a.noop,dragDrop:a.noop,dragLeave:a.noop},treeInit:function(b){var d,i=b.tree,j=b.options,m=j.glyph||null,s=j.dnd5,t=a.ui.fancytree.getNode;a.inArray("dnd",j.extensions)>=0&&a.error("Extensions 'dnd' and 'dnd5' are mutually exclusive."),s.dragStop&&a.error("dragStop is not used by ext-dnd5. Use dragEnd instead."),s.dragStart&&a.ui.fancytree.overrideMethod(b.options,"createNode",function(a,b){this._super.apply(this,arguments),b.node.span.draggable=!0}),this._superApply(arguments),this.$container.addClass("fancytree-ext-dnd5"),d=a("<span>").appendTo(this.$container),this.$scrollParent=d.scrollParent(),d.remove(),o=a("#fancytree-drop-marker"),o.length||(o=a("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3,"pointer-events":"none"}).prependTo("body"),m&&o.addClass(m.map.dropMarker)),s.dragStart&&i.$container.on("dragstart drag dragend",function(b){var c,d=t(b),e=b.dataTransfer||b.originalEvent.dataTransfer,h="move"===e.dropEffect,j=d?a(d.span):null,k={node:d,tree:i,options:i.options,originalEvent:b,dataTransfer:e,isCancelled:void 0};switch(b.type){case"dragstart":a(d.span).addClass(f),p=d,c=JSON.stringify(d.toDict());try{e.setData(n,c),e.setData("text/html",a(d.span).html()),e.setData("text/plain",d.title)}catch(l){i.warn("Could not set data (IE only accepts 'text') - "+l)}return s.setTextTypeJson?e.setData("text",c):e.setData("text",d.title),e.effectAllowed="all",e.setDragImage&&e.setDragImage(a(d.span).find(".fancytree-title")[0],-10,-10),s.dragStart(d,k)!==!1;case"drag":j.toggleClass(g,h),s.dragDrag(d,k);break;case"dragend":a(d.span).removeClass(f+" "+g),p=null,q=null,k.isCancelled="none"===e.dropEffect,o.hide(),s.dragEnd(d,k)}}),s.dragEnter&&i.$container.on("dragenter dragover dragleave drop",function(b){var d,f,g,j,m=null,u=t(b),v=b.dataTransfer||b.originalEvent.dataTransfer,w={node:u,tree:i,options:i.options,hitMode:q,originalEvent:b,dataTransfer:v,otherNode:p||null,otherNodeData:null,dropEffect:void 0,isCancelled:void 0};switch(b.type){case"dragenter":if(!u){i.debug("Ignore non-node "+b.type+": "+b.target.tagName+"."+b.target.className),q=!1;break}if(a(u.span).addClass(k).removeClass(h+" "+l),s.preventNonNodes&&!f){u.debug("Reject dropping a non-node"),q=!1;break}if(s.preventForeignNodes&&(!p||p.tree!==u.tree)){u.debug("Reject dropping a foreign node"),q=!1;break}setTimeout(function(){!s.autoExpandMS||u.hasChildren()===!1||u.expanded||s.dragExpand&&s.dragExpand(u,w)===!1||u.scheduleAction("expand",s.autoExpandMS)},0),o.show(),s.preventRecursiveMoves&&u.isDescendantOf(w.otherNode)?j=!1:(g=s.dragEnter(u,w),j=c(g)),q=j,m=j&&(j.over||j.before||j.after);break;case"dragover":r=e(b,w),m=!!r;break;case"dragleave":if(!u){i.debug("Ignore non-node "+b.type+": "+b.target.tagName+"."+b.target.className);break}if(!a(u.span).hasClass(k)){u.debug("Ignore dragleave (multi)");break}a(u.span).removeClass(k+" "+h+" "+l),u.scheduleAction("cancel"),s.dragLeave(u,w),o.hide();break;case"drop":if(a.inArray(n,v.types)>=0&&(f=v.getData(n),i.info(b.type+": getData('application/x-fancytree-node'): '"+f+"'")),f||(f=v.getData("text"),i.info(b.type+": getData('text'): '"+f+"'")),f)try{d=JSON.parse(f),void 0!==d.title&&(w.otherNodeData=d)}catch(x){}i.debug(b.type+": nodeData: '"+f+"', otherNodeData: ",w.otherNodeData),a(u.span).removeClass(k+" "+h+" "+l),o.hide(),w.hitMode=r,w.dropEffect=v.dropEffect,w.isCancelled="none"===w.dropEffect,s.dragDrop(u,w),b.preventDefault()}if(m)return b.preventDefault(),!1})}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.edit.min.js' */-!function(a,b,c,d){"use strict";var e=/Mac/.test(navigator.platform),f=a.ui.fancytree.escapeHtml,g=a.ui.fancytree.unescapeHtml;a.ui.fancytree._FancytreeNodeClass.prototype.editStart=function(){var b,d=this,e=this.tree,f=e.ext.edit,h=e.options.edit,i=a(".fancytree-title",d.span),j={node:d,tree:e,options:e.options,isNew:a(d[e.statusClassPropName]).hasClass("fancytree-edit-new"),orgTitle:d.title,input:null,dirty:!1};return h.beforeEdit.call(d,{type:"beforeEdit"},j)!==!1&&(a.ui.fancytree.assert(!f.currentNode,"recursive edit"),f.currentNode=this,f.eventData=j,e.widget._unbind(),a(c).on("mousedown.fancytree-edit",function(b){a(b.target).hasClass("fancytree-edit-input")||d.editEnd(!0,b)}),b=a("<input />",{"class":"fancytree-edit-input",type:"text",value:e.options.escapeTitles?j.orgTitle:g(j.orgTitle)}),f.eventData.input=b,null!=h.adjustWidthOfs&&b.width(i.width()+h.adjustWidthOfs),null!=h.inputCss&&b.css(h.inputCss),i.html(b),b.focus().change(function(a){b.addClass("fancytree-edit-dirty")}).keydown(function(b){switch(b.which){case a.ui.keyCode.ESCAPE:d.editEnd(!1,b);break;case a.ui.keyCode.ENTER:return d.editEnd(!0,b),!1}b.stopPropagation()}).blur(function(a){return d.editEnd(!0,a)}),void h.edit.call(d,{type:"edit"},j))},a.ui.fancytree._FancytreeNodeClass.prototype.editEnd=function(b,d){var e,g=this,h=this.tree,i=h.ext.edit,j=i.eventData,k=h.options.edit,l=a(".fancytree-title",g.span),m=l.find("input.fancytree-edit-input");return k.trim&&m.val(a.trim(m.val())),e=m.val(),j.dirty=e!==g.title,j.originalEvent=d,b===!1?j.save=!1:j.isNew?j.save=""!==e:j.save=j.dirty&&""!==e,k.beforeClose.call(g,{type:"beforeClose"},j)!==!1&&((!j.save||k.save.call(g,{type:"save"},j)!==!1)&&(m.removeClass("fancytree-edit-dirty").off(),a(c).off(".fancytree-edit"),j.save?(g.setTitle(h.options.escapeTitles?e:f(e)),g.setFocus()):j.isNew?(g.remove(),g=j.node=null,i.relatedNode.setFocus()):(g.renderTitle(),g.setFocus()),i.eventData=null,i.currentNode=null,i.relatedNode=null,h.widget._bind(),a(h.$container).focus(),j.input=null,k.close.call(g,{type:"close"},j),!0))},a.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode=function(b,c){var d,e=this.tree,f=this;return b=b||"child",null==c?c={title:""}:"string"==typeof c?c={title:c}:a.ui.fancytree.assert(a.isPlainObject(c)),"child"!==b||this.isExpanded()||this.hasChildren()===!1?(d=this.addNode(c,b),d.match=!0,a(d[e.statusClassPropName]).removeClass("fancytree-hide").addClass("fancytree-match"),void d.makeVisible().done(function(){a(d[e.statusClassPropName]).addClass("fancytree-edit-new"),f.tree.ext.edit.relatedNode=f,d.editStart()})):void this.setExpanded().done(function(){f.editCreateNode(b,c)})},a.ui.fancytree._FancytreeClass.prototype.isEditing=function(){return this.ext.edit?this.ext.edit.currentNode:null},a.ui.fancytree._FancytreeNodeClass.prototype.isEditing=function(){return!!this.tree.ext.edit&&this.tree.ext.edit.currentNode===this},a.ui.fancytree.registerExtension({name:"edit",version:"2.23.0",options:{adjustWidthOfs:4,allowEmpty:!1,inputCss:{minWidth:"3em"},triggerStart:["f2","shift+click","mac+enter"],trim:!0,beforeClose:a.noop,beforeEdit:a.noop,close:a.noop,edit:a.noop,save:a.noop},currentNode:null,treeInit:function(a){this._superApply(arguments),this.$container.addClass("fancytree-ext-edit")},nodeClick:function(b){return a.inArray("shift+click",b.options.edit.triggerStart)>=0&&b.originalEvent.shiftKey?(b.node.editStart(),!1):this._superApply(arguments)},nodeDblclick:function(b){return a.inArray("dblclick",b.options.edit.triggerStart)>=0?(b.node.editStart(),!1):this._superApply(arguments)},nodeKeydown:function(b){switch(b.originalEvent.which){case 113:if(a.inArray("f2",b.options.edit.triggerStart)>=0)return b.node.editStart(),!1;break;case a.ui.keyCode.ENTER:if(a.inArray("mac+enter",b.options.edit.triggerStart)>=0&&e)return b.node.editStart(),!1}return this._superApply(arguments)}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";var b=/Mac/.test(navigator.platform),c=a.ui.fancytree.escapeHtml,d=a.ui.fancytree.unescapeHtml;return a.ui.fancytree._FancytreeNodeClass.prototype.editStart=function(){var b,c=this,e=this.tree,f=e.ext.edit,g=e.options.edit,h=a(".fancytree-title",c.span),i={node:c,tree:e,options:e.options,isNew:a(c[e.statusClassPropName]).hasClass("fancytree-edit-new"),orgTitle:c.title,input:null,dirty:!1};return g.beforeEdit.call(c,{type:"beforeEdit"},i)!==!1&&(a.ui.fancytree.assert(!f.currentNode,"recursive edit"),f.currentNode=this,f.eventData=i,e.widget._unbind(),a(document).on("mousedown.fancytree-edit",function(b){a(b.target).hasClass("fancytree-edit-input")||c.editEnd(!0,b)}),b=a("<input />",{"class":"fancytree-edit-input",type:"text",value:e.options.escapeTitles?i.orgTitle:d(i.orgTitle)}),f.eventData.input=b,null!=g.adjustWidthOfs&&b.width(h.width()+g.adjustWidthOfs),null!=g.inputCss&&b.css(g.inputCss),h.html(b),b.focus().change(function(a){b.addClass("fancytree-edit-dirty")}).keydown(function(b){switch(b.which){case a.ui.keyCode.ESCAPE:c.editEnd(!1,b);break;case a.ui.keyCode.ENTER:return c.editEnd(!0,b),!1}b.stopPropagation()}).blur(function(a){return c.editEnd(!0,a)}),void g.edit.call(c,{type:"edit"},i))},a.ui.fancytree._FancytreeNodeClass.prototype.editEnd=function(b,d){var e,f=this,g=this.tree,h=g.ext.edit,i=h.eventData,j=g.options.edit,k=a(".fancytree-title",f.span),l=k.find("input.fancytree-edit-input");return j.trim&&l.val(a.trim(l.val())),e=l.val(),i.dirty=e!==f.title,i.originalEvent=d,b===!1?i.save=!1:i.isNew?i.save=""!==e:i.save=i.dirty&&""!==e,j.beforeClose.call(f,{type:"beforeClose"},i)!==!1&&((!i.save||j.save.call(f,{type:"save"},i)!==!1)&&(l.removeClass("fancytree-edit-dirty").off(),a(document).off(".fancytree-edit"),i.save?(f.setTitle(g.options.escapeTitles?e:c(e)),f.setFocus()):i.isNew?(f.remove(),f=i.node=null,h.relatedNode.setFocus()):(f.renderTitle(),f.setFocus()),h.eventData=null,h.currentNode=null,h.relatedNode=null,g.widget._bind(),a(g.$container).focus(),i.input=null,j.close.call(f,{type:"close"},i),!0))},a.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode=function(b,c){var d,e=this.tree,f=this;return b=b||"child",null==c?c={title:""}:"string"==typeof c?c={title:c}:a.ui.fancytree.assert(a.isPlainObject(c)),"child"!==b||this.isExpanded()||this.hasChildren()===!1?(d=this.addNode(c,b),d.match=!0,a(d[e.statusClassPropName]).removeClass("fancytree-hide").addClass("fancytree-match"),void d.makeVisible().done(function(){a(d[e.statusClassPropName]).addClass("fancytree-edit-new"),f.tree.ext.edit.relatedNode=f,d.editStart()})):void this.setExpanded().done(function(){f.editCreateNode(b,c)})},a.ui.fancytree._FancytreeClass.prototype.isEditing=function(){return this.ext.edit?this.ext.edit.currentNode:null},a.ui.fancytree._FancytreeNodeClass.prototype.isEditing=function(){return!!this.tree.ext.edit&&this.tree.ext.edit.currentNode===this},a.ui.fancytree.registerExtension({name:"edit",version:"2.26.0",options:{adjustWidthOfs:4,allowEmpty:!1,inputCss:{minWidth:"3em"},triggerStart:["f2","shift+click","mac+enter"],trim:!0,beforeClose:a.noop,beforeEdit:a.noop,close:a.noop,edit:a.noop,save:a.noop},currentNode:null,treeInit:function(a){this._superApply(arguments),this.$container.addClass("fancytree-ext-edit")},nodeClick:function(b){return a.inArray("shift+click",b.options.edit.triggerStart)>=0&&b.originalEvent.shiftKey?(b.node.editStart(),!1):this._superApply(arguments)},nodeDblclick:function(b){return a.inArray("dblclick",b.options.edit.triggerStart)>=0?(b.node.editStart(),!1):this._superApply(arguments)},nodeKeydown:function(c){switch(c.originalEvent.which){case 113:if(a.inArray("f2",c.options.edit.triggerStart)>=0)return c.node.editStart(),!1;break;case a.ui.keyCode.ENTER:if(a.inArray("mac+enter",c.options.edit.triggerStart)>=0&&b)return c.node.editStart(),!1}return this._superApply(arguments)}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.filter.min.js' */-!function(a,b,c,d){"use strict";function e(a){return(a+"").replace(/([.?*+\^\$\[\]\\(){}|-])/g,"\\$1")}function f(b){return b.indexOf(">")>=0?a("<div/>").html(b).text():b}var g="__not_found__",h=a.ui.fancytree.escapeHtml;a.ui.fancytree._FancytreeClass.prototype._applyFilterImpl=function(b,c,d){var i,j,k,l,m=0,n=this.options,o=n.escapeTitles,p=n.autoCollapse,q=a.extend({},n.filter,d),r="hide"===q.mode,s=!!q.leavesOnly&&!c;return"string"==typeof b&&(i=q.fuzzy?b.split("").reduce(function(a,b){return a+"[^"+b+"]*"+b}):e(b),k=new RegExp(".*"+i+".*","i"),l=new RegExp(e(b),"gi"),b=function(a){var b,c=o?a.title:f(a.title),d=!!k.test(c);return d&&q.highlight&&(b=o?h(a.title):c,a.titleWithHighlight=b.replace(l,function(a){return"<mark>"+a+"</mark>"})),d}),this.enableFilter=!0,this.lastFilterArgs=arguments,this.$div.addClass("fancytree-ext-filter"),r?this.$div.addClass("fancytree-ext-filter-hide"):this.$div.addClass("fancytree-ext-filter-dimm"),this.$div.toggleClass("fancytree-ext-filter-hide-expanders",!!q.hideExpanders),this.visit(function(a){delete a.match,delete a.titleWithHighlight,a.subMatchCount=0}),j=this.getRootNode()._findDirectChild(g),j&&j.remove(),n.autoCollapse=!1,this.visit(function(a){if(!s||null==a.children){var d=b(a),e=!1;if("skip"===d)return a.visit(function(a){a.match=!1},!0),"skip";d||!c&&"branch"!==d||!a.parent.match||(d=!0,e=!0),d&&(m++,a.match=!0,a.visitParents(function(a){a.subMatchCount+=1,!q.autoExpand||e||a.expanded||(a.setExpanded(!0,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),a._filterAutoExpanded=!0)}))}}),n.autoCollapse=p,0===m&&q.nodata&&r&&(j=q.nodata,a.isFunction(j)&&(j=j()),j===!0?j={}:"string"==typeof j&&(j={title:j}),j=a.extend({statusNodeType:"nodata",key:g,title:this.options.strings.noData},j),this.getRootNode().addNode(j).match=!0),this.render(),m},a.ui.fancytree._FancytreeClass.prototype.filterNodes=function(a,b){return"boolean"==typeof b&&(b={leavesOnly:b},this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.")),this._applyFilterImpl(a,!1,b)},a.ui.fancytree._FancytreeClass.prototype.applyFilter=function(a){return this.warn("Fancytree.applyFilter() is deprecated since 2.1.0 / 2014-05-29. Use .filterNodes() instead."),this.filterNodes.apply(this,arguments)},a.ui.fancytree._FancytreeClass.prototype.filterBranches=function(a,b){return this._applyFilterImpl(a,!0,b)},a.ui.fancytree._FancytreeClass.prototype.clearFilter=function(){var b,c=this.getRootNode()._findDirectChild(g),d=this.options.escapeTitles,e=this.options.enhanceTitle;c&&c.remove(),this.visit(function(c){c.match&&c.span&&(b=a(c.span).find(">span.fancytree-title"),d?b.text(c.title):b.html(c.title),e&&e({type:"enhanceTitle"},{node:c,$title:b})),delete c.match,delete c.subMatchCount,delete c.titleWithHighlight,c.$subMatchBadge&&(c.$subMatchBadge.remove(),delete c.$subMatchBadge),c._filterAutoExpanded&&c.expanded&&c.setExpanded(!1,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),delete c._filterAutoExpanded}),this.enableFilter=!1,this.lastFilterArgs=null,this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide"),this.render()},a.ui.fancytree._FancytreeClass.prototype.isFilterActive=function(){return!!this.enableFilter},a.ui.fancytree._FancytreeNodeClass.prototype.isMatched=function(){return!(this.tree.enableFilter&&!this.match)},a.ui.fancytree.registerExtension({name:"filter",version:"2.23.0",options:{autoApply:!0,autoExpand:!1,counter:!0,fuzzy:!1,hideExpandedCounter:!0,hideExpanders:!1,highlight:!0,leavesOnly:!1,nodata:!0,mode:"dimm"},nodeLoadChildren:function(a,b){return this._superApply(arguments).done(function(){a.tree.enableFilter&&a.tree.lastFilterArgs&&a.options.filter.autoApply&&a.tree._applyFilterImpl.apply(a.tree,a.tree.lastFilterArgs)})},nodeSetExpanded:function(a,b,c){return delete a.node._filterAutoExpanded,!b&&a.options.filter.hideExpandedCounter&&a.node.$subMatchBadge&&a.node.$subMatchBadge.show(),this._superApply(arguments)},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options.filter,g=a(d.span).find("span.fancytree-title"),h=a(d[e.statusClassPropName]),i=b.options.enhanceTitle,j=b.options.escapeTitles;return c=this._super(b),h.length&&e.enableFilter?(h.toggleClass("fancytree-match",!!d.match).toggleClass("fancytree-submatch",!!d.subMatchCount).toggleClass("fancytree-hide",!(d.match||d.subMatchCount)),!f.counter||!d.subMatchCount||d.isExpanded()&&f.hideExpandedCounter?d.$subMatchBadge&&d.$subMatchBadge.hide():(d.$subMatchBadge||(d.$subMatchBadge=a("<span class='fancytree-childcounter'/>"),a("span.fancytree-icon, span.fancytree-custom-icon",d.span).append(d.$subMatchBadge)),d.$subMatchBadge.show().text(d.subMatchCount)),!d.span||d.isEditing&&d.isEditing.call(d)||(d.titleWithHighlight?g.html(d.titleWithHighlight):j?g.text(d.title):g.html(d.title),i&&i({type:"enhanceTitle"},{node:d,$title:g})),c):c}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(a){return(a+"").replace(/([.?*+\^\$\[\]\\(){}|-])/g,"\\$1")}function c(b){return b.indexOf(">")>=0?a("<div/>").html(b).text():b}var d="__not_found__",e=a.ui.fancytree.escapeHtml;return a.ui.fancytree._FancytreeClass.prototype._applyFilterImpl=function(f,g,h){var i,j,k,l,m,n=0,o=this.options,p=o.escapeTitles,q=o.autoCollapse,r=a.extend({},o.filter,h),s="hide"===r.mode,t=!!r.leavesOnly&&!g;if("string"==typeof f){if(""===f)return this.warn("Fancytree passing an empty string as a filter is handled as clearFilter()."),void this.clearFilter();i=r.fuzzy?f.split("").reduce(function(a,b){return a+"[^"+b+"]*"+b}):b(f),k=new RegExp(".*"+i+".*","i"),l=new RegExp(b(f),"gi"),f=function(a){var b=p?a.title:c(a.title),d=!!k.test(b);return d&&r.highlight&&(p?(m=b.replace(l,function(a){return""+a+""}),a.titleWithHighlight=e(m).replace(/\uFFF7/g,"<mark>").replace(/\uFFF8/g,"</mark>")):a.titleWithHighlight=b.replace(l,function(a){return"<mark>"+a+"</mark>"})),d}}return this.enableFilter=!0,this.lastFilterArgs=arguments,this.$div.addClass("fancytree-ext-filter"),s?this.$div.addClass("fancytree-ext-filter-hide"):this.$div.addClass("fancytree-ext-filter-dimm"),this.$div.toggleClass("fancytree-ext-filter-hide-expanders",!!r.hideExpanders),this.visit(function(a){delete a.match,delete a.titleWithHighlight,a.subMatchCount=0}),j=this.getRootNode()._findDirectChild(d),j&&j.remove(),o.autoCollapse=!1,this.visit(function(a){if(!t||null==a.children){var b=f(a),c=!1;if("skip"===b)return a.visit(function(a){a.match=!1},!0),"skip";b||!g&&"branch"!==b||!a.parent.match||(b=!0,c=!0),b&&(n++,a.match=!0,a.visitParents(function(a){a.subMatchCount+=1,!r.autoExpand||c||a.expanded||(a.setExpanded(!0,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),a._filterAutoExpanded=!0)}))}}),o.autoCollapse=q,0===n&&r.nodata&&s&&(j=r.nodata,a.isFunction(j)&&(j=j()),j===!0?j={}:"string"==typeof j&&(j={title:j}),j=a.extend({statusNodeType:"nodata",key:d,title:this.options.strings.noData},j),this.getRootNode().addNode(j).match=!0),this.render(),n},a.ui.fancytree._FancytreeClass.prototype.filterNodes=function(a,b){return"boolean"==typeof b&&(b={leavesOnly:b},this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.")),this._applyFilterImpl(a,!1,b)},a.ui.fancytree._FancytreeClass.prototype.applyFilter=function(a){return this.warn("Fancytree.applyFilter() is deprecated since 2.1.0 / 2014-05-29. Use .filterNodes() instead."),this.filterNodes.apply(this,arguments)},a.ui.fancytree._FancytreeClass.prototype.filterBranches=function(a,b){return this._applyFilterImpl(a,!0,b)},a.ui.fancytree._FancytreeClass.prototype.clearFilter=function(){var b,c=this.getRootNode()._findDirectChild(d),e=this.options.escapeTitles,f=this.options.enhanceTitle;c&&c.remove(),this.visit(function(c){c.match&&c.span&&(b=a(c.span).find(">span.fancytree-title"),e?b.text(c.title):b.html(c.title),f&&f({type:"enhanceTitle"},{node:c,$title:b})),delete c.match,delete c.subMatchCount,delete c.titleWithHighlight,c.$subMatchBadge&&(c.$subMatchBadge.remove(),delete c.$subMatchBadge),c._filterAutoExpanded&&c.expanded&&c.setExpanded(!1,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),delete c._filterAutoExpanded}),this.enableFilter=!1,this.lastFilterArgs=null,this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide"),this.render()},a.ui.fancytree._FancytreeClass.prototype.isFilterActive=function(){return!!this.enableFilter},a.ui.fancytree._FancytreeNodeClass.prototype.isMatched=function(){return!(this.tree.enableFilter&&!this.match)},a.ui.fancytree.registerExtension({name:"filter",version:"2.26.0",options:{autoApply:!0,autoExpand:!1,counter:!0,fuzzy:!1,hideExpandedCounter:!0,hideExpanders:!1,highlight:!0,leavesOnly:!1,nodata:!0,mode:"dimm"},nodeLoadChildren:function(a,b){return this._superApply(arguments).done(function(){a.tree.enableFilter&&a.tree.lastFilterArgs&&a.options.filter.autoApply&&a.tree._applyFilterImpl.apply(a.tree,a.tree.lastFilterArgs)})},nodeSetExpanded:function(a,b,c){return delete a.node._filterAutoExpanded,!b&&a.options.filter.hideExpandedCounter&&a.node.$subMatchBadge&&a.node.$subMatchBadge.show(),this._superApply(arguments)},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options.filter,g=a(d.span).find("span.fancytree-title"),h=a(d[e.statusClassPropName]),i=b.options.enhanceTitle,j=b.options.escapeTitles;return c=this._super(b),h.length&&e.enableFilter?(h.toggleClass("fancytree-match",!!d.match).toggleClass("fancytree-submatch",!!d.subMatchCount).toggleClass("fancytree-hide",!(d.match||d.subMatchCount)),!f.counter||!d.subMatchCount||d.isExpanded()&&f.hideExpandedCounter?d.$subMatchBadge&&d.$subMatchBadge.hide():(d.$subMatchBadge||(d.$subMatchBadge=a("<span class='fancytree-childcounter'/>"),a("span.fancytree-icon, span.fancytree-custom-icon",d.span).append(d.$subMatchBadge)),d.$subMatchBadge.show().text(d.subMatchCount)),!d.span||d.isEditing&&d.isEditing.call(d)||(d.titleWithHighlight?g.html(d.titleWithHighlight):j?g.text(d.title):g.html(d.title),i&&i({type:"enhanceTitle"},{node:d,$title:g})),c):c}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.glyph.min.js' */-!function(a,b,c,d){"use strict";function e(a,b){return a.map[b]}a.ui.fancytree.registerExtension({name:"glyph",version:"2.23.0",options:{map:{checkbox:"icon-check-empty",checkboxSelected:"icon-check",checkboxUnknown:"icon-check icon-muted",error:"icon-exclamation-sign",expanderClosed:"icon-caret-right",expanderLazy:"icon-angle-right",expanderOpen:"icon-caret-down",nodata:"icon-meh",noExpander:"",dragHelper:"icon-caret-right",dropMarker:"icon-caret-right",doc:"icon-file-alt",docOpen:"icon-file-alt",loading:"icon-refresh icon-spin",folder:"icon-folder-close-alt",folderOpen:"icon-folder-open-alt"}},treeInit:function(a){var b=a.tree;this._superApply(arguments),b.$container.addClass("fancytree-ext-glyph")},nodeRenderStatus:function(b){var c,d,f,g=b.node,h=a(g.span),i=b.options.glyph,j=i.map;return d=this._super(b),g.isRoot()?d:(f=h.children("span.fancytree-expander").get(0),f&&(c=g.expanded&&g.hasChildren()?"expanderOpen":g.isUndefined()?"expanderLazy":g.hasChildren()?"expanderClosed":"noExpander",f.className="fancytree-expander "+j[c]),f=g.tr?a("td",g.tr).find("span.fancytree-checkbox").get(0):h.children("span.fancytree-checkbox").get(0),f&&(c=g.selected?"checkboxSelected":g.partsel?"checkboxUnknown":"checkbox",f.className="fancytree-checkbox "+j[c]),f=h.children("span.fancytree-icon").get(0),f&&(c=g.statusNodeType?e(i,g.statusNodeType):g.folder?g.expanded&&g.hasChildren()?e(i,"folderOpen"):e(i,"folder"):g.expanded?e(i,"docOpen"):e(i,"doc"),f.className="fancytree-icon "+c),d)},nodeSetStatus:function(b,c,d,f){var g,h,i=b.options.glyph,j=b.node;return g=this._superApply(arguments),"error"!==c&&"loading"!==c&&"nodata"!==c||(j.parent?(h=a("span.fancytree-expander",j.span).get(0),h&&(h.className="fancytree-expander "+e(i,c))):(h=a(".fancytree-statusnode-"+c,j[this.nodeContainerAttrName]).find("span.fancytree-icon").get(0),h&&(h.className="fancytree-icon "+e(i,c)))),g}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(a,b){return a.map[b]}var c=a.ui.fancytree,d={awesome3:{checkbox:"icon-check-empty",checkboxSelected:"icon-check",checkboxUnknown:"icon-check icon-muted",radio:"icon-circle-blank",radioSelected:"icon-circle",radioUnknown:"icon-circle icon-muted",dragHelper:"icon-caret-right",dropMarker:"icon-caret-right",error:"icon-exclamation-sign",expanderClosed:"icon-caret-right",expanderLazy:"icon-angle-right",expanderOpen:"icon-caret-down",loading:"icon-refresh icon-spin",nodata:"icon-meh",noExpander:"",doc:"icon-file-alt",docOpen:"icon-file-alt",folder:"icon-folder-close-alt",folderOpen:"icon-folder-open-alt"},awesome4:{checkbox:"fa fa-square-o",checkboxSelected:"fa fa-check-square-o",checkboxUnknown:"fa fa-square",radio:"fa fa-circle-o",radioSelected:"fa fa-circle",radioUnknown:"fa fa-dot-circle-o",dragHelper:"fa fa-arrow-right",dropMarker:"fa fa-long-arrow-right",error:"fa fa-warning",expanderClosed:"fa fa-caret-right",expanderLazy:"fa fa-angle-right",expanderOpen:"fa fa-caret-down",loading:"fa fa-spinner fa-pulse",nodata:"fa fa-meh-o",noExpander:"",doc:"fa fa-file-o",docOpen:"fa fa-file-o",folder:"fa fa-folder-o",folderOpen:"fa fa-folder-open-o"},bootstrap3:{checkbox:"glyphicon glyphicon-unchecked",checkboxSelected:"glyphicon glyphicon-check",checkboxUnknown:"glyphicon glyphicon-expand",radio:"glyphicon glyphicon-remove-circle",radioSelected:"glyphicon glyphicon-ok-circle",radioUnknown:"glyphicon glyphicon-ban-circle",dragHelper:"glyphicon glyphicon-play",dropMarker:"glyphicon glyphicon-arrow-right",error:"glyphicon glyphicon-warning-sign",expanderClosed:"glyphicon glyphicon-menu-right",expanderLazy:"glyphicon glyphicon-menu-right",expanderOpen:"glyphicon glyphicon-menu-down",loading:"glyphicon glyphicon-refresh glyphicon-spin",nodata:"glyphicon glyphicon-info-sign",noExpander:"",doc:"glyphicon glyphicon-file",docOpen:"glyphicon glyphicon-file",folder:"glyphicon glyphicon-folder-close",folderOpen:"glyphicon glyphicon-folder-open"}};return a.ui.fancytree.registerExtension({name:"glyph",version:"2.26.0",options:{preset:null,map:{}},treeInit:function(b){var e=b.tree,f=b.options.glyph;f.preset?(c.assert(!!d[f.preset],"Invalid value for `options.glyph.preset`: "+f.preset),f.map=a.extend({},d[f.preset],f.map)):e.warn("ext-glyph: missing `preset` option."),this._superApply(arguments),e.$container.addClass("fancytree-ext-glyph")},nodeRenderStatus:function(d){var e,f,g,h,i,j=d.node,k=a(j.span),l=d.options.glyph,m=l.map;return h=this._super(d),j.isRoot()?h:(i=k.children("span.fancytree-expander").get(0),i&&(g=j.expanded&&j.hasChildren()?"expanderOpen":j.isUndefined()?"expanderLazy":j.hasChildren()?"expanderClosed":"noExpander",i.className="fancytree-expander "+m[g]),i=j.tr?a("td",j.tr).find("span.fancytree-checkbox").get(0):k.children("span.fancytree-checkbox").get(0),i&&(e=c.evalOption("checkbox",j,j,d.options,!1),e&&!j.isStatusNode()&&(f="fancytree-checkbox ","radio"===e||j.parent&&j.parent.radiogroup?(f+="fancytree-radio ",g=j.selected?"radioSelected":j.partsel?"radioUnknown":"radio"):g=j.selected?"checkboxSelected":j.partsel?"checkboxUnknown":"checkbox",i.className=f+m[g])),i=k.children("span.fancytree-icon").get(0),i&&(g=j.statusNodeType?b(l,j.statusNodeType):j.folder?j.expanded&&j.hasChildren()?b(l,"folderOpen"):b(l,"folder"):j.expanded?b(l,"docOpen"):b(l,"doc"),i.className="fancytree-icon "+g),h)},nodeSetStatus:function(c,d,e,f){var g,h,i=c.options.glyph,j=c.node;return g=this._superApply(arguments),"error"!==d&&"loading"!==d&&"nodata"!==d||(j.parent?(h=a("span.fancytree-expander",j.span).get(0),h&&(h.className="fancytree-expander "+b(i,d))):(h=a(".fancytree-statusnode-"+d,j[this.nodeContainerAttrName]).find("span.fancytree-icon").get(0),h&&(h.className="fancytree-icon "+b(i,d)))),g}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.gridnav.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){var d,e=c.get(0),f=0;return b.children().each(function(){return this!==e&&(d=a(this).prop("colspan"),void(f+=d?d:1))}),f}function f(b,c){var d,e=null,f=0;return b.children().each(function(){return f>=c?(e=a(this),!1):(d=a(this).prop("colspan"),void(f+=d?d:1))}),e}function g(a,b){var c,d,g=a.closest("td"),i=null;switch(b){case h.LEFT:i=g.prev();break;case h.RIGHT:i=g.next();break;case h.UP:case h.DOWN:for(c=g.parent(),d=e(c,g);;){if(c=b===h.UP?c.prev():c.next(),!c.length)break;if(!c.is(":hidden")&&(i=f(c,d),i&&i.find(":input,a").length))break}}return i}var h=a.ui.keyCode,i={text:[h.UP,h.DOWN],checkbox:[h.UP,h.DOWN,h.LEFT,h.RIGHT],link:[h.UP,h.DOWN,h.LEFT,h.RIGHT],radiobutton:[h.UP,h.DOWN,h.LEFT,h.RIGHT],"select-one":[h.LEFT,h.RIGHT],"select-multiple":[h.LEFT,h.RIGHT]};a.ui.fancytree.registerExtension({name:"gridnav",version:"2.23.0",options:{autofocusInput:!1,handleCursorKeys:!0},treeInit:function(b){this._requireExtension("table",!0,!0),this._superApply(arguments),this.$container.addClass("fancytree-ext-gridnav"),this.$container.on("focusin",function(c){var d,e=a.ui.fancytree.getNode(c.target);e&&!e.isActive()&&(d=b.tree._makeHookContext(e,c),b.tree._callHook("nodeSetActive",d,!0))})},nodeSetActive:function(b,c,d){var e,f=b.options.gridnav,g=b.node,h=b.originalEvent||{},i=a(h.target).is(":input");c=c!==!1,this._superApply(arguments),c&&(b.options.titlesTabbable?(i||(a(g.span).find("span.fancytree-title").focus(),g.setFocus()),b.tree.$container.attr("tabindex","-1")):f.autofocusInput&&!i&&(e=a(g.tr||g.span),e.find(":input:enabled:first").focus()))},nodeKeydown:function(b){var c,d,e,f=b.options.gridnav,h=b.originalEvent,j=a(h.target);return j.is(":input:enabled")?c=j.prop("type"):j.is("a")&&(c="link"),c&&f.handleCursorKeys?(d=i[c],!(d&&a.inArray(h.which,d)>=0&&(e=g(j,h.which),e&&e.length))||(e.find(":input:enabled,a").focus(),!1)):this._superApply(arguments)}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree","./jquery.fancytree.table"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree.table"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(b,c){var d,e=c.get(0),f=0;return b.children().each(function(){return this!==e&&(d=a(this).prop("colspan"),void(f+=d?d:1))}),f}function c(b,c){var d,e=null,f=0;return b.children().each(function(){return f>=c?(e=a(this),!1):(d=a(this).prop("colspan"),void(f+=d?d:1))}),e}function d(a,d){var f,g,h=a.closest("td"),i=null;switch(d){case e.LEFT:i=h.prev();break;case e.RIGHT:i=h.next();break;case e.UP:case e.DOWN:for(f=h.parent(),g=b(f,h);;){if(f=d===e.UP?f.prev():f.next(),!f.length)break;if(!f.is(":hidden")&&(i=c(f,g),i&&i.find(":input,a").length))break}}return i}var e=a.ui.keyCode,f={text:[e.UP,e.DOWN],checkbox:[e.UP,e.DOWN,e.LEFT,e.RIGHT],link:[e.UP,e.DOWN,e.LEFT,e.RIGHT],radiobutton:[e.UP,e.DOWN,e.LEFT,e.RIGHT],"select-one":[e.LEFT,e.RIGHT],"select-multiple":[e.LEFT,e.RIGHT]};return a.ui.fancytree.registerExtension({name:"gridnav",version:"2.26.0",options:{autofocusInput:!1,handleCursorKeys:!0},treeInit:function(b){this._requireExtension("table",!0,!0),this._superApply(arguments),this.$container.addClass("fancytree-ext-gridnav"),this.$container.on("focusin",function(c){var d,e=a.ui.fancytree.getNode(c.target);e&&!e.isActive()&&(d=b.tree._makeHookContext(e,c),b.tree._callHook("nodeSetActive",d,!0))})},nodeSetActive:function(b,c,d){var e,f=b.options.gridnav,g=b.node,h=b.originalEvent||{},i=a(h.target).is(":input");c=c!==!1,this._superApply(arguments),c&&(b.options.titlesTabbable?(i||(a(g.span).find("span.fancytree-title").focus(),g.setFocus()),b.tree.$container.attr("tabindex","-1")):f.autofocusInput&&!i&&(e=a(g.tr||g.span),e.find(":input:enabled:first").focus()))},nodeKeydown:function(b){var c,e,g,h=b.options.gridnav,i=b.originalEvent,j=a(i.target);return j.is(":input:enabled")?c=j.prop("type"):j.is("a")&&(c="link"),c&&h.handleCursorKeys?(e=f[c],!(e&&a.inArray(i.which,e)>=0&&(g=d(j,i.which),g&&g.length))||(g.find(":input:enabled,a").focus(),!1)):this._superApply(arguments)}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.persist.min.js' */-!function(a,b,c,d){"use strict";function e(b,c,d,f,g){var h,i,j,l,m=!1,n=b.options.persist.expandOpts,o=[],p=[];for(d=d||[],g=g||a.Deferred(),h=0,j=d.length;h<j;h++)i=d[h],l=b.getNodeByKey(i),l?f&&l.isUndefined()?(m=!0,b.debug("_loadLazyNodes: "+l+" is lazy: loading..."),"expand"===f?o.push(l.setExpanded(!0,n)):o.push(l.load())):(b.debug("_loadLazyNodes: "+l+" already loaded."),l.setExpanded(!0,n)):(p.push(i),b.debug("_loadLazyNodes: "+l+" was not yet found."));return a.when.apply(a,o).always(function(){if(m&&p.length>0)e(b,c,p,f,g);else{if(p.length)for(b.warn("_loadLazyNodes: could not load those keys: ",p),h=0,j=p.length;h<j;h++)i=d[h],c._appendKey(k,d[h],!1);g.resolve()}}),g}var f,g,h,i=a.ui.fancytree.assert,j="active",k="expanded",l="focus",m="selected";"function"==typeof Cookies?(h=Cookies.set,f=Cookies.get,g=Cookies.remove):(h=f=a.cookie,g=a.removeCookie),a.ui.fancytree._FancytreeClass.prototype.clearCookies=function(a){var b=this.ext.persist,c=b.cookiePrefix;a=a||"active expanded focus selected",a.indexOf(j)>=0&&b._data(c+j,null),a.indexOf(k)>=0&&b._data(c+k,null),a.indexOf(l)>=0&&b._data(c+l,null),a.indexOf(m)>=0&&b._data(c+m,null)},a.ui.fancytree._FancytreeClass.prototype.getPersistData=function(){var a=this.ext.persist,b=a.cookiePrefix,c=a.cookieDelimiter,d={};return d[j]=a._data(b+j),d[k]=(a._data(b+k)||"").split(c),d[m]=(a._data(b+m)||"").split(c),d[l]=a._data(b+l),d},a.ui.fancytree.registerExtension({name:"persist",version:"2.23.0",options:{cookieDelimiter:"~",cookiePrefix:d,cookie:{raw:!1,expires:"",path:"",domain:"",secure:!1},expandLazy:!1,expandOpts:d,fireActivate:!0,overrideSource:!0,store:"auto",types:"active expanded focus selected"},_data:function(a,b){var c=this._local.localStorage;return b===d?c?c.getItem(a):f(a):void(null===b?c?c.removeItem(a):g(a):c?c.setItem(a,b):h(a,b,this.options.persist.cookie))},_appendKey:function(b,c,d){c=""+c;var e=this._local,f=this.options.persist,g=f.cookieDelimiter,h=e.cookiePrefix+b,i=e._data(h),j=i?i.split(g):[],k=a.inArray(c,j);k>=0&&j.splice(k,1),d&&j.push(c),e._data(h,j.join(g))},treeInit:function(c){var g=c.tree,h=c.options,n=this._local,o=this.options.persist;return i("auto"!==o.store&&"cookie"!==o.store||f,"Missing required plugin for 'persist' extension: js.cookie.js or jquery.cookie.js"),n.cookiePrefix=o.cookiePrefix||"fancytree-"+g._id+"-",n.storeActive=o.types.indexOf(j)>=0,n.storeExpanded=o.types.indexOf(k)>=0,n.storeSelected=o.types.indexOf(m)>=0,n.storeFocus=o.types.indexOf(l)>=0,"cookie"!==o.store&&b.localStorage?n.localStorage="local"===o.store?b.localStorage:b.sessionStorage:n.localStorage=null,g.$div.bind("fancytreeinit",function(b){if(g._triggerTreeEvent("beforeRestore",null,{})!==!1){var c,f,i,p,q,r=n._data(n.cookiePrefix+l),s=o.fireActivate===!1;c=n._data(n.cookiePrefix+k),p=c&&c.split(o.cookieDelimiter),f=n.storeExpanded?e(g,n,p,!!o.expandLazy&&"expand",null):(new a.Deferred).resolve(),f.done(function(){if(n.storeSelected){if(c=n._data(n.cookiePrefix+m))for(p=c.split(o.cookieDelimiter),i=0;i<p.length;i++)q=g.getNodeByKey(p[i]),q?(q.selected===d||o.overrideSource&&q.selected===!1)&&(q.selected=!0,q.renderStatus()):n._appendKey(m,p[i],!1);3===g.options.selectMode&&g.visit(function(a){if(a.selected)return a.fixSelection3AfterClick(),"skip"})}n.storeActive&&(c=n._data(n.cookiePrefix+j),!c||!h.persist.overrideSource&&g.activeNode||(q=g.getNodeByKey(c),q&&(q.debug("persist: set active",c),q.setActive(!0,{noFocus:!0,noEvents:s})))),n.storeFocus&&r&&(q=g.getNodeByKey(r),q&&(g.options.titlesTabbable?a(q.span).find(".fancytree-title").focus():a(g.$container).focus())),g._triggerTreeEvent("restore",null,{})})}}),this._superApply(arguments)},nodeSetActive:function(a,b,c){var d,e=this._local;return b=b!==!1,d=this._superApply(arguments),e.storeActive&&e._data(e.cookiePrefix+j,this.activeNode?this.activeNode.key:null),d},nodeSetExpanded:function(a,b,c){var d,e=a.node,f=this._local;return b=b!==!1,d=this._superApply(arguments),f.storeExpanded&&f._appendKey(k,e.key,b),d},nodeSetFocus:function(a,b){var c,d=this._local;return b=b!==!1,c=this._superApply(arguments),d.storeFocus&&d._data(d.cookiePrefix+l,this.focusNode?this.focusNode.key:null),c},nodeSetSelected:function(b,c,d){var e,f,g=b.tree,h=b.node,i=this._local;return c=c!==!1,e=this._superApply(arguments),i.storeSelected&&(3===g.options.selectMode?(f=a.map(g.getSelectedNodes(!0),function(a){return a.key}),f=f.join(b.options.persist.cookieDelimiter),i._data(i.cookiePrefix+m,f)):i._appendKey(m,h.key,h.selected)),e}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(c,d,e,f,g){var i,j,k,l,m=!1,n=c.options.persist.expandOpts,o=[],p=[];for(e=e||[],g=g||a.Deferred(),i=0,k=e.length;i<k;i++)j=e[i],l=c.getNodeByKey(j),l?f&&l.isUndefined()?(m=!0,c.debug("_loadLazyNodes: "+l+" is lazy: loading..."),"expand"===f?o.push(l.setExpanded(!0,n)):o.push(l.load())):(c.debug("_loadLazyNodes: "+l+" already loaded."),l.setExpanded(!0,n)):(p.push(j),c.debug("_loadLazyNodes: "+l+" was not yet found."));return a.when.apply(a,o).always(function(){if(m&&p.length>0)b(c,d,p,f,g);else{if(p.length)for(c.warn("_loadLazyNodes: could not load those keys: ",p),i=0,k=p.length;i<k;i++)j=e[i],d._appendKey(h,e[i],!1);g.resolve()}}),g}var c,d,e,f=a.ui.fancytree.assert,g="active",h="expanded",i="focus",j="selected";return"function"==typeof Cookies?(e=Cookies.set,c=Cookies.get,d=Cookies.remove):(e=c=a.cookie,d=a.removeCookie),a.ui.fancytree._FancytreeClass.prototype.clearCookies=function(a){var b=this.ext.persist,c=b.cookiePrefix;a=a||"active expanded focus selected",a.indexOf(g)>=0&&b._data(c+g,null),a.indexOf(h)>=0&&b._data(c+h,null),a.indexOf(i)>=0&&b._data(c+i,null),a.indexOf(j)>=0&&b._data(c+j,null)},a.ui.fancytree._FancytreeClass.prototype.getPersistData=function(){var a=this.ext.persist,b=a.cookiePrefix,c=a.cookieDelimiter,d={};return d[g]=a._data(b+g),d[h]=(a._data(b+h)||"").split(c),d[j]=(a._data(b+j)||"").split(c),d[i]=a._data(b+i),d},a.ui.fancytree.registerExtension({name:"persist",version:"2.26.0",options:{cookieDelimiter:"~",cookiePrefix:void 0,cookie:{raw:!1,expires:"",path:"",domain:"",secure:!1},expandLazy:!1,expandOpts:void 0,fireActivate:!0,overrideSource:!0,store:"auto",types:"active expanded focus selected"},_data:function(a,b){var f=this._local.localStorage;return void 0===b?f?f.getItem(a):c(a):void(null===b?f?f.removeItem(a):d(a):f?f.setItem(a,b):e(a,b,this.options.persist.cookie))},_appendKey:function(b,c,d){c=""+c;var e=this._local,f=this.options.persist,g=f.cookieDelimiter,h=e.cookiePrefix+b,i=e._data(h),j=i?i.split(g):[],k=a.inArray(c,j);k>=0&&j.splice(k,1),d&&j.push(c),e._data(h,j.join(g))},treeInit:function(d){var e=d.tree,k=d.options,l=this._local,m=this.options.persist;return f("auto"!==m.store&&"cookie"!==m.store||c,"Missing required plugin for 'persist' extension: js.cookie.js or jquery.cookie.js"),l.cookiePrefix=m.cookiePrefix||"fancytree-"+e._id+"-",l.storeActive=m.types.indexOf(g)>=0,l.storeExpanded=m.types.indexOf(h)>=0,l.storeSelected=m.types.indexOf(j)>=0,l.storeFocus=m.types.indexOf(i)>=0,"cookie"!==m.store&&window.localStorage?l.localStorage="local"===m.store?window.localStorage:window.sessionStorage:l.localStorage=null,e.$div.on("fancytreeinit",function(c){if(e._triggerTreeEvent("beforeRestore",null,{})!==!1){var d,f,n,o,p,q=l._data(l.cookiePrefix+i),r=m.fireActivate===!1;d=l._data(l.cookiePrefix+h),o=d&&d.split(m.cookieDelimiter),f=l.storeExpanded?b(e,l,o,!!m.expandLazy&&"expand",null):(new a.Deferred).resolve(),f.done(function(){if(l.storeSelected){if(d=l._data(l.cookiePrefix+j))for(o=d.split(m.cookieDelimiter),n=0;n<o.length;n++)p=e.getNodeByKey(o[n]),p?(void 0===p.selected||m.overrideSource&&p.selected===!1)&&(p.selected=!0,p.renderStatus()):l._appendKey(j,o[n],!1);3===e.options.selectMode&&e.visit(function(a){if(a.selected)return a.fixSelection3AfterClick(),"skip"})}l.storeActive&&(d=l._data(l.cookiePrefix+g),!d||!k.persist.overrideSource&&e.activeNode||(p=e.getNodeByKey(d),p&&(p.debug("persist: set active",d),p.setActive(!0,{noFocus:!0,noEvents:r})))),l.storeFocus&&q&&(p=e.getNodeByKey(q),p&&(e.options.titlesTabbable?a(p.span).find(".fancytree-title").focus():a(e.$container).focus())),e._triggerTreeEvent("restore",null,{})})}}),this._superApply(arguments)},nodeSetActive:function(a,b,c){var d,e=this._local;return b=b!==!1,d=this._superApply(arguments),e.storeActive&&e._data(e.cookiePrefix+g,this.activeNode?this.activeNode.key:null),d},nodeSetExpanded:function(a,b,c){var d,e=a.node,f=this._local;return b=b!==!1,d=this._superApply(arguments),f.storeExpanded&&f._appendKey(h,e.key,b),d},nodeSetFocus:function(a,b){var c,d=this._local;return b=b!==!1,c=this._superApply(arguments),d.storeFocus&&d._data(d.cookiePrefix+i,this.focusNode?this.focusNode.key:null),c},nodeSetSelected:function(b,c,d){var e,f,g=b.tree,h=b.node,i=this._local;return c=c!==!1,e=this._superApply(arguments),i.storeSelected&&(3===g.options.selectMode?(f=a.map(g.getSelectedNodes(!0),function(a){return a.key}),f=f.join(b.options.persist.cookieDelimiter),i._data(i.cookiePrefix+j,f)):i._appendKey(j,h.key,h.selected)),e}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.table.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){c=c||"",b||a.error("Assertion failed "+c)}function f(a,b){a.insertBefore(b,a.firstChild)}function g(a,b){a.parentNode.insertBefore(b,a.nextSibling)}function h(a,b){a.visit(function(a){var c=a.tr;if(c&&(c.style.display=a.hide||!b?"none":""),!a.expanded)return"skip"})}function i(b){var c,d,f,g=b.parent,h=g?g.children:null;if(h&&h.length>1&&h[0]!==b)for(c=a.inArray(b,h),f=h[c-1],e(f.tr);f.children&&f.children.length&&(d=f.children[f.children.length-1],d.tr);)f=d;else f=g;return f}a.ui.fancytree.registerExtension({name:"table",version:"2.23.0",options:{checkboxColumnIdx:null,indentation:16,nodeColumnIdx:0},treeInit:function(b){var d,f,g,h,i,j=b.tree,k=b.options,l=k.table,m=j.widget.element;if(null!=l.customStatus&&(null!=k.renderStatusColumns?a.error("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' only instead."):(j.warn("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' instead."),k.renderStatusColumns=l.customStatus)),k.renderStatusColumns&&k.renderStatusColumns===!0&&(k.renderStatusColumns=k.renderColumns),m.addClass("fancytree-container fancytree-ext-table"),j.tbody=m.find(">tbody")[0],i=a(j.tbody),f=a("thead >tr:last >th",m).length,h=i.children("tr:first"),h.length)g=h.children("td").length,f&&g!==f&&(j.warn("Column count mismatch between thead ("+f+") and tbody ("+g+"): using tbody."),f=g),h=h.clone();else for(e(f>=1,"Need either <thead> or <tbody> with <td> elements to determine column count."),h=a("<tr />"),d=0;d<f;d++)h.append("<td />");h.find(">td").eq(l.nodeColumnIdx).html("<span class='fancytree-node' />"),k.aria&&(h.attr("role","row"),h.find("td").attr("role","gridcell")),j.rowFragment=c.createDocumentFragment(),j.rowFragment.appendChild(h.get(0)),i.empty(),j.statusClassPropName="tr",j.ariaPropName="tr",this.nodeContainerAttrName="tr",j.$container=m,this._superApply(arguments),a(j.rootNode.ul).remove(),j.rootNode.ul=null,this.$container.attr("tabindex",k.tabindex),k.aria&&j.$container.attr("role","treegrid").attr("aria-readonly",!0)},nodeRemoveChildMarkup:function(b){var c=b.node;c.visit(function(b){b.tr&&(a(b.tr).remove(),b.tr=null)})},nodeRemoveMarkup:function(b){var c=b.node;c.tr&&(a(c.tr).remove(),c.tr=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(b,c,d,j,k){var l,m,n,o,p,q,r,s,t=b.tree,u=b.node,v=b.options,w=!u.parent;if(t._enableUpdate!==!1){if(k||(b.hasCollapsedParents=u.parent&&!u.parent.expanded),!w)if(u.tr&&c&&this.nodeRemoveMarkup(b),u.tr)c?this.nodeRenderTitle(b):this.nodeRenderStatus(b);else{if(b.hasCollapsedParents&&!d)return;p=t.rowFragment.firstChild.cloneNode(!0),q=i(u),e(q),j===!0&&k?p.style.display="none":d&&b.hasCollapsedParents&&(p.style.display="none"),q.tr?g(q.tr,p):(e(!q.parent,"prev. row must have a tr, or be system root"),f(t.tbody,p)),u.tr=p,u.key&&v.generateIds&&(u.tr.id=v.idPrefix+u.key),u.tr.ftnode=u,u.span=a("span.fancytree-node",u.tr).get(0),this.nodeRenderTitle(b),v.createNode&&v.createNode.call(t,{type:"createNode"},b)}if(v.renderNode&&v.renderNode.call(t,{type:"renderNode"},b),l=u.children,l&&(w||d||u.expanded))for(n=0,o=l.length;n<o;n++)s=a.extend({},b,{node:l[n]}),s.hasCollapsedParents=s.hasCollapsedParents||!u.expanded,this.nodeRender(s,c,d,j,!0);l&&!k&&(r=u.tr||null,m=t.tbody.firstChild,u.visit(function(a){if(a.tr){if(a.parent.expanded||"none"===a.tr.style.display||(a.tr.style.display="none",h(a,!1)),a.tr.previousSibling!==r){u.debug("_fixOrder: mismatch at node: "+a);var b=r?r.nextSibling:m;t.tbody.insertBefore(a.tr,b)}r=a.tr}}))}},nodeRenderTitle:function(b,c){var d,e,f=b.node,g=b.options,h=f.isStatusNode();return e=this._super(b,c),f.isRootNode()?e:(g.checkbox&&!h&&null!=g.table.checkboxColumnIdx&&(d=a("span.fancytree-checkbox",f.span),a(f.tr).find("td").eq(+g.table.checkboxColumnIdx).html(d)),this.nodeRenderStatus(b),h?g.renderStatusColumns&&g.renderStatusColumns.call(b.tree,{type:"renderStatusColumns"},b):g.renderColumns&&g.renderColumns.call(b.tree,{type:"renderColumns"},b),e)},nodeRenderStatus:function(b){var c,d=b.node,e=b.options;this._super(b),a(d.tr).removeClass("fancytree-node"),c=(d.getLevel()-1)*e.table.indentation,a(d.span).css({paddingLeft:c+"px"})},nodeSetExpanded:function(b,c,d){function e(a){h(b.node,c),a?c&&b.options.autoScroll&&!d.noAnimation&&b.node.hasChildren()?b.node.getLastChild().scrollIntoView(!0,{topNode:b.node}).always(function(){d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),f.resolveWith(b.node)}):(d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),f.resolveWith(b.node)):(d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),f.rejectWith(b.node))}if(c=c!==!1,b.node.expanded&&c||!b.node.expanded&&!c)return this._superApply(arguments);var f=new a.Deferred,g=a.extend({},d,{noEvents:!0,noAnimation:!0});return d=d||{},this._super(b,c,g).done(function(){e(!0)}).fail(function(){e(!1)}),f.promise()},nodeSetStatus:function(b,c,d,e){if("ok"===c){var f=b.node,g=f.children?f.children[0]:null;g&&g.isStatusNode()&&a(g.tr).remove()}return this._superApply(arguments)},treeClear:function(a){return this.nodeRemoveChildMarkup(this._makeHookContext(this.rootNode)),this._superApply(arguments)},treeDestroy:function(a){return this.$container.find("tbody").empty(),this.$source&&this.$source.removeClass("ui-helper-hidden"),this._superApply(arguments)}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(b,c){c=c||"",b||a.error("Assertion failed "+c)}function c(a,b){a.insertBefore(b,a.firstChild)}function d(a,b){a.parentNode.insertBefore(b,a.nextSibling)}function e(a,b){a.visit(function(a){var c=a.tr;if(c&&(c.style.display=a.hide||!b?"none":""),!a.expanded)return"skip"})}function f(c){var d,e,f,g=c.parent,h=g?g.children:null;if(h&&h.length>1&&h[0]!==c)for(d=a.inArray(c,h),f=h[d-1],b(f.tr);f.children&&f.children.length&&(e=f.children[f.children.length-1],e.tr);)f=e;else f=g;return f}return a.ui.fancytree.registerExtension({name:"table",version:"2.26.0",options:{checkboxColumnIdx:null,indentation:16,nodeColumnIdx:0},treeInit:function(c){var d,e,f,g,h,i=c.tree,j=c.options,k=j.table,l=i.widget.element;if(null!=k.customStatus&&(null!=j.renderStatusColumns?a.error("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' only instead."):(i.warn("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' instead."),j.renderStatusColumns=k.customStatus)),j.renderStatusColumns&&j.renderStatusColumns===!0&&(j.renderStatusColumns=j.renderColumns),l.addClass("fancytree-container fancytree-ext-table"),i.tbody=l.find(">tbody")[0],h=a(i.tbody),e=a("thead >tr:last >th",l).length,g=h.children("tr:first"),g.length)f=g.children("td").length,e&&f!==e&&(i.warn("Column count mismatch between thead ("+e+") and tbody ("+f+"): using tbody."),e=f),g=g.clone();else for(b(e>=1,"Need either <thead> or <tbody> with <td> elements to determine column count."),g=a("<tr />"),d=0;d<e;d++)g.append("<td />");g.find(">td").eq(k.nodeColumnIdx).html("<span class='fancytree-node' />"),j.aria&&(g.attr("role","row"),g.find("td").attr("role","gridcell")),i.rowFragment=document.createDocumentFragment(),i.rowFragment.appendChild(g.get(0)),h.empty(),i.statusClassPropName="tr",i.ariaPropName="tr",this.nodeContainerAttrName="tr",i.$container=l,this._superApply(arguments),a(i.rootNode.ul).remove(),i.rootNode.ul=null,this.$container.attr("tabindex",j.tabindex),j.aria&&i.$container.attr("role","treegrid").attr("aria-readonly",!0)},nodeRemoveChildMarkup:function(b){var c=b.node;c.visit(function(b){b.tr&&(a(b.tr).remove(),b.tr=null)})},nodeRemoveMarkup:function(b){var c=b.node;c.tr&&(a(c.tr).remove(),c.tr=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(g,h,i,j,k){var l,m,n,o,p,q,r,s,t=g.tree,u=g.node,v=g.options,w=!u.parent;if(t._enableUpdate!==!1){if(k||(g.hasCollapsedParents=u.parent&&!u.parent.expanded),!w)if(u.tr&&h&&this.nodeRemoveMarkup(g),u.tr)h?this.nodeRenderTitle(g):this.nodeRenderStatus(g);else{if(g.hasCollapsedParents&&!i)return;p=t.rowFragment.firstChild.cloneNode(!0),q=f(u),b(q),j===!0&&k?p.style.display="none":i&&g.hasCollapsedParents&&(p.style.display="none"),q.tr?d(q.tr,p):(b(!q.parent,"prev. row must have a tr, or be system root"),c(t.tbody,p)),u.tr=p,u.key&&v.generateIds&&(u.tr.id=v.idPrefix+u.key),u.tr.ftnode=u,u.span=a("span.fancytree-node",u.tr).get(0),this.nodeRenderTitle(g),v.createNode&&v.createNode.call(t,{type:"createNode"},g)}if(v.renderNode&&v.renderNode.call(t,{type:"renderNode"},g),l=u.children,l&&(w||i||u.expanded))for(n=0,o=l.length;n<o;n++)s=a.extend({},g,{node:l[n]}),s.hasCollapsedParents=s.hasCollapsedParents||!u.expanded,this.nodeRender(s,h,i,j,!0);l&&!k&&(r=u.tr||null,m=t.tbody.firstChild,u.visit(function(a){if(a.tr){if(a.parent.expanded||"none"===a.tr.style.display||(a.tr.style.display="none",e(a,!1)),a.tr.previousSibling!==r){u.debug("_fixOrder: mismatch at node: "+a);var b=r?r.nextSibling:m;t.tbody.insertBefore(a.tr,b)}r=a.tr}}))}},nodeRenderTitle:function(b,c){var d,e,f=b.node,g=b.options,h=f.isStatusNode();return e=this._super(b,c),f.isRootNode()?e:(g.checkbox&&!h&&null!=g.table.checkboxColumnIdx&&(d=a("span.fancytree-checkbox",f.span),a(f.tr).find("td").eq(+g.table.checkboxColumnIdx).html(d)),this.nodeRenderStatus(b),h?g.renderStatusColumns&&g.renderStatusColumns.call(b.tree,{type:"renderStatusColumns"},b):g.renderColumns&&g.renderColumns.call(b.tree,{type:"renderColumns"},b),e)},nodeRenderStatus:function(b){var c,d=b.node,e=b.options;this._super(b),a(d.tr).removeClass("fancytree-node"),c=(d.getLevel()-1)*e.table.indentation,a(d.span).css({paddingLeft:c+"px"})},nodeSetExpanded:function(b,c,d){function f(a){e(b.node,c),a?c&&b.options.autoScroll&&!d.noAnimation&&b.node.hasChildren()?b.node.getLastChild().scrollIntoView(!0,{topNode:b.node}).always(function(){d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),g.resolveWith(b.node)}):(d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),g.resolveWith(b.node)):(d.noEvents||b.tree._triggerNodeEvent(c?"expand":"collapse",b),g.rejectWith(b.node))}if(c=c!==!1,b.node.expanded&&c||!b.node.expanded&&!c)return this._superApply(arguments);var g=new a.Deferred,h=a.extend({},d,{noEvents:!0,noAnimation:!0});return d=d||{},this._super(b,c,h).done(function(){f(!0)}).fail(function(){f(!1)}),g.promise()},nodeSetStatus:function(b,c,d,e){if("ok"===c){var f=b.node,g=f.children?f.children[0]:null;g&&g.isStatusNode()&&a(g.tr).remove()}return this._superApply(arguments)},treeClear:function(a){return this.nodeRemoveChildMarkup(this._makeHookContext(this.rootNode)),this._superApply(arguments)},treeDestroy:function(a){return this.$container.find("tbody").empty(),this.$source&&this.$source.removeClass("ui-helper-hidden"),this._superApply(arguments)}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.themeroller.min.js' */-!function(a,b,c,d){"use strict";a.ui.fancytree.registerExtension({name:"themeroller",version:"2.23.0",options:{activeClass:"ui-state-active",addClass:"ui-corner-all",focusClass:"ui-state-focus",hoverClass:"ui-state-hover",selectedClass:"ui-state-highlight"},treeInit:function(b){var c=b.widget.element,d=b.options.themeroller;this._superApply(arguments),"TABLE"===c[0].nodeName?(c.addClass("ui-widget ui-corner-all"),c.find(">thead tr").addClass("ui-widget-header"),c.find(">tbody").addClass("ui-widget-conent")):c.addClass("ui-widget ui-widget-content ui-corner-all"),c.delegate(".fancytree-node","mouseenter mouseleave",function(b){var c=a.ui.fancytree.getNode(b.target),e="mouseenter"===b.type;a(c.tr?c.tr:c.span).toggleClass(d.hoverClass+" "+d.addClass,e)})},treeDestroy:function(a){this._superApply(arguments),a.widget.element.removeClass("ui-widget ui-widget-content ui-corner-all")},nodeRenderStatus:function(b){var c={},d=b.node,e=a(d.tr?d.tr:d.span),f=b.options.themeroller;this._super(b),c[f.activeClass]=!1,c[f.focusClass]=!1,c[f.selectedClass]=!1,d.isActive()&&(c[f.activeClass]=!0),d.hasFocus()&&(c[f.focusClass]=!0),d.isSelected()&&!d.isActive()&&(c[f.selectedClass]=!0),e.toggleClass(f.activeClass,c[f.activeClass]),e.toggleClass(f.focusClass,c[f.focusClass]),e.toggleClass(f.selectedClass,c[f.selectedClass]),e.addClass(f.addClass)}})}(jQuery,window,document);+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";return a.ui.fancytree.registerExtension({name:"themeroller",version:"2.26.0",options:{activeClass:"ui-state-active",addClass:"ui-corner-all",focusClass:"ui-state-focus",hoverClass:"ui-state-hover",selectedClass:"ui-state-highlight"},treeInit:function(b){var c=b.widget.element,d=b.options.themeroller;this._superApply(arguments),"TABLE"===c[0].nodeName?(c.addClass("ui-widget ui-corner-all"),c.find(">thead tr").addClass("ui-widget-header"),c.find(">tbody").addClass("ui-widget-conent")):c.addClass("ui-widget ui-widget-content ui-corner-all"),c.delegate(".fancytree-node","mouseenter mouseleave",function(b){var c=a.ui.fancytree.getNode(b.target),e="mouseenter"===b.type;a(c.tr?c.tr:c.span).toggleClass(d.hoverClass+" "+d.addClass,e)})},treeDestroy:function(a){this._superApply(arguments),a.widget.element.removeClass("ui-widget ui-widget-content ui-corner-all")},nodeRenderStatus:function(b){var c={},d=b.node,e=a(d.tr?d.tr:d.span),f=b.options.themeroller;this._super(b),c[f.activeClass]=!1,c[f.focusClass]=!1,c[f.selectedClass]=!1,d.isActive()&&(c[f.activeClass]=!0),d.hasFocus()&&(c[f.focusClass]=!0),d.isSelected()&&!d.isActive()&&(c[f.selectedClass]=!0),e.toggleClass(f.activeClass,c[f.activeClass]),e.toggleClass(f.focusClass,c[f.focusClass]),e.toggleClass(f.selectedClass,c[f.selectedClass]),e.addClass(f.addClass)}}),a.ui.fancytree});/*! Extension 'jquery.fancytree.wide.min.js' */-!function(a,b,c,d){"use strict";function e(b,c){b="fancytree-style-"+b;var d=a("#"+b);if(!c)return d.remove(),null;d.length||(d=a("<style />").attr("id",b).addClass("fancytree-style").prop("type","text/css").appendTo("head"));try{d.html(c)}catch(e){d[0].styleSheet.cssText=c}return d}function f(a,b,c,d,e,f){var g,h="#"+a+" span.fancytree-level-",i=[];for(g=0;g<b;g++)i.push(h+(g+1)+" span.fancytree-title { padding-left: "+(g*c+d)+f+"; }");return i.push("#"+a+" div.ui-effects-wrapper ul li span.fancytree-title, #"+a+" ul.fancytree-animating span.fancytree-title { padding-left: "+e+f+"; position: static; width: auto; }"),i.join("\n")}var g=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;a.ui.fancytree.registerExtension({name:"wide",version:"2.23.0",options:{iconWidth:null,iconSpacing:null,labelSpacing:null,levelOfs:null},treeCreate:function(b){this._superApply(arguments),this.$container.addClass("fancytree-ext-wide");var c,d,h,i,j,k,l=b.options.wide,m=a("<li id='fancytreeTemp'><span class='fancytree-node'><span class='fancytree-icon' /><span class='fancytree-title' /></span><ul />").appendTo(b.tree.$container),n=m.find(".fancytree-icon"),o=m.find("ul"),p=l.iconSpacing||n.css("margin-left"),q=l.iconWidth||n.css("width"),r=l.labelSpacing||"3px",s=l.levelOfs||o.css("padding-left");m.remove(),h=p.match(g)[2],p=parseFloat(p,10),i=r.match(g)[2],r=parseFloat(r,10),j=q.match(g)[2],q=parseFloat(q,10),k=s.match(g)[2],h===j&&k===j&&i===j||a.error("iconWidth, iconSpacing, and levelOfs must have the same css measure unit"),this._local.measureUnit=j,this._local.levelOfs=parseFloat(s),this._local.lineOfs=(1+(b.options.checkbox?1:0)+(b.options.icon===!1?0:1))*(q+p)+p,this._local.labelOfs=r,this._local.maxDepth=10,c=this.$container.uniqueId().attr("id"),d=f(c,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelOfs,this._local.measureUnit),e(c,d)},treeDestroy:function(a){return e(this.$container.attr("id"),null),this._superApply(arguments)},nodeRenderStatus:function(b){var c,d,g,h=b.node,i=h.getLevel();return g=this._super(b),i>this._local.maxDepth&&(c=this.$container.attr("id"),this._local.maxDepth*=2,h.debug("Define global ext-wide css up to level "+this._local.maxDepth),d=f(c,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelSpacing,this._local.measureUnit),e(c,d)),a(h.span).addClass("fancytree-level-"+i),g}})}(jQuery,window,document);-}));+!function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],a):"object"==typeof module&&module.exports?(require("jquery.fancytree"),module.exports=a(require("jquery"))):a(jQuery)}(function(a){"use strict";function b(b,c){b="fancytree-style-"+b;var d=a("#"+b);if(!c)return d.remove(),null;d.length||(d=a("<style />").attr("id",b).addClass("fancytree-style").prop("type","text/css").appendTo("head"));try{d.html(c)}catch(e){d[0].styleSheet.cssText=c}return d}function c(a,b,c,d,e,f){var g,h="#"+a+" span.fancytree-level-",i=[];for(g=0;g<b;g++)i.push(h+(g+1)+" span.fancytree-title { padding-left: "+(g*c+d)+f+"; }");return i.push("#"+a+" div.ui-effects-wrapper ul li span.fancytree-title, #"+a+" ul.fancytree-animating span.fancytree-title { padding-left: "+e+f+"; position: static; width: auto; }"),i.join("\n")}var d=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;return a.ui.fancytree.registerExtension({name:"wide",version:"2.26.0",options:{iconWidth:null,iconSpacing:null,labelSpacing:null,levelOfs:null},treeCreate:function(e){this._superApply(arguments),this.$container.addClass("fancytree-ext-wide");var f,g,h,i,j,k,l=e.options.wide,m=a("<li id='fancytreeTemp'><span class='fancytree-node'><span class='fancytree-icon' /><span class='fancytree-title' /></span><ul />").appendTo(e.tree.$container),n=m.find(".fancytree-icon"),o=m.find("ul"),p=l.iconSpacing||n.css("margin-left"),q=l.iconWidth||n.css("width"),r=l.labelSpacing||"3px",s=l.levelOfs||o.css("padding-left");m.remove(),h=p.match(d)[2],p=parseFloat(p,10),i=r.match(d)[2],r=parseFloat(r,10),j=q.match(d)[2],q=parseFloat(q,10),k=s.match(d)[2],h===j&&k===j&&i===j||a.error("iconWidth, iconSpacing, and levelOfs must have the same css measure unit"),this._local.measureUnit=j,this._local.levelOfs=parseFloat(s),this._local.lineOfs=(1+(e.options.checkbox?1:0)+(e.options.icon===!1?0:1))*(q+p)+p,this._local.labelOfs=r,this._local.maxDepth=10,f=this.$container.uniqueId().attr("id"),g=c(f,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelOfs,this._local.measureUnit),b(f,g)},treeDestroy:function(a){return b(this.$container.attr("id"),null),this._superApply(arguments)},nodeRenderStatus:function(d){var e,f,g,h=d.node,i=h.getLevel();return g=this._super(d),i>this._local.maxDepth&&(e=this.$container.attr("id"),this._local.maxDepth*=2,h.debug("Define global ext-wide css up to level "+this._local.maxDepth),f=c(e,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelSpacing,this._local.measureUnit),b(e,f)),a(h.span).addClass("fancytree-level-"+i),g}}),a.ui.fancytree});+// Value returned by `require('jquery.fancytree')`+return $.ui.fancytree;+})); // End of closurediff --git a/public/libraries/fancytree/jquery.fancytree.js b/public/libraries/fancytree/jquery.fancytree.jsdeleted file mode 100644index b2c14c9304..0000000000--- a/public/libraries/fancytree/jquery.fancytree.js+++ /dev/null@@ -1,5246 +0,0 @@-/*!- * jquery.fancytree.js- * Tree view control with support for lazy loading and much more.- * https://github.com/mar10/fancytree/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--/** Core Fancytree module.- */---// Start of local namespace-;(function($, window, document, undefined) {-"use strict";--// prevent duplicate loading-if ( $.ui && $.ui.fancytree ) {- $.ui.fancytree.warn("Fancytree: ignored duplicate include");- return;-}---/* *****************************************************************************- * Private functions and variables- */--var i, attr,- FT = null, // initialized below- TEST_IMG = new RegExp(/\.|\//), // strings are considered image urls if they contain '.' or '/'- REX_HTML = /[&<>"'\/]/g,- REX_TOOLTIP = /[<>"'\/]/g,- RECURSIVE_REQUEST_ERROR = "$recursive_request",- ENTITY_MAP = {"&": "&", "<": "<", ">": ">", "\"": """, "'": "'", "/": "/"},- IGNORE_KEYCODES = { 16: true, 17: true, 18: true },- SPECIAL_KEYCODES = {- 8: "backspace", 9: "tab", 10: "return", 13: "return",- // 16: null, 17: null, 18: null, // ignore shift, ctrl, alt- 19: "pause", 20: "capslock", 27: "esc", 32: "space", 33: "pageup",- 34: "pagedown", 35: "end", 36: "home", 37: "left", 38: "up",- 39: "right", 40: "down", 45: "insert", 46: "del", 59: ";", 61: "=",- 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6",- 103: "7", 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".",- 111: "/", 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5",- 117: "f6", 118: "f7", 119: "f8", 120: "f9", 121: "f10", 122: "f11",- 123: "f12", 144: "numlock", 145: "scroll", 173: "-", 186: ";", 187: "=",- 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",- 221: "]", 222: "'"},- MOUSE_BUTTONS = { 0: "", 1: "left", 2: "middle", 3: "right" },- // Boolean attributes that can be set with equivalent class names in the LI tags- // Note: v2.23: checkbox and hideCheckbox are *not* in this list- CLASS_ATTRS = "active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),- CLASS_ATTR_MAP = {},- // Top-level Fancytree node attributes, that can be set by dict- NODE_ATTRS = "checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),- NODE_ATTR_MAP = {},- // Mapping of lowercase -> real name (because HTML5 data-... attribute only supports lowercase)- NODE_ATTR_LOWERCASE_MAP = {},- // Attribute names that should NOT be added to node.data- NONE_NODE_DATA_MAP = {"active": true, "children": true, "data": true, "focus": true};--for(i=0; i<CLASS_ATTRS.length; i++){ CLASS_ATTR_MAP[CLASS_ATTRS[i]] = true; }-for(i=0; i<NODE_ATTRS.length; i++) {- attr = NODE_ATTRS[i];- NODE_ATTR_MAP[attr] = true;- if( attr !== attr.toLowerCase() ) {- NODE_ATTR_LOWERCASE_MAP[attr.toLowerCase()] = attr;- }-}---function _assert(cond, msg){- // TODO: see qunit.js extractStacktrace()- if(!cond){- msg = msg ? ": " + msg : "";- // consoleApply("assert", [!!cond, msg]);- $.error("Fancytree assertion failed" + msg);- }-}--_assert($.ui, "Fancytree requires jQuery UI (http://jqueryui.com)");--function consoleApply(method, args){- var i, s,- fn = window.console ? window.console[method] : null;-- if(fn){- try{- fn.apply(window.console, args);- } catch(e) {- // IE 8?- s = "";- for( i=0; i<args.length; i++ ) {- s += args[i];- }- fn(s);- }- }-}--/*Return true if x is a FancytreeNode.*/-function _isNode(x){- return !!(x.tree && x.statusNodeType !== undefined);-}--/** Return true if dotted version string is equal or higher than requested version.- *- * See http://jsfiddle.net/mar10/FjSAN/- */-function isVersionAtLeast(dottedVersion, major, minor, patch){- var i, v, t,- verParts = $.map($.trim(dottedVersion).split("."), function(e){ return parseInt(e, 10); }),- testParts = $.map(Array.prototype.slice.call(arguments, 1), function(e){ return parseInt(e, 10); });-- for( i = 0; i < testParts.length; i++ ){- v = verParts[i] || 0;- t = testParts[i] || 0;- if( v !== t ){- return ( v > t );- }- }- return true;-}--/** Return a wrapper that calls sub.methodName() and exposes- * this : tree- * this._local : tree.ext.EXTNAME- * this._super : base.methodName.call()- * this._superApply : base.methodName.apply()- */-function _makeVirtualFunction(methodName, tree, base, extension, extName){- // $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);- // if(rexTestSuper && !rexTestSuper.test(func)){- // // extension.methodName() doesn't call _super(), so no wrapper required- // return func;- // }- // Use an immediate function as closure- var proxy = (function(){- var prevFunc = tree[methodName], // org. tree method or prev. proxy- baseFunc = extension[methodName], //- _local = tree.ext[extName],- _super = function(){- return prevFunc.apply(tree, arguments);- },- _superApply = function(args){- return prevFunc.apply(tree, args);- };-- // Return the wrapper function- return function(){- var prevLocal = tree._local,- prevSuper = tree._super,- prevSuperApply = tree._superApply;-- try{- tree._local = _local;- tree._super = _super;- tree._superApply = _superApply;- return baseFunc.apply(tree, arguments);- }finally{- tree._local = prevLocal;- tree._super = prevSuper;- tree._superApply = prevSuperApply;- }- };- })(); // end of Immediate Function- return proxy;-}--/**- * Subclass `base` by creating proxy functions- */-function _subclassObject(tree, base, extension, extName){- // $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);- for(var attrName in extension){- if(typeof extension[attrName] === "function"){- if(typeof tree[attrName] === "function"){- // override existing method- tree[attrName] = _makeVirtualFunction(attrName, tree, base, extension, extName);- }else if(attrName.charAt(0) === "_"){- // Create private methods in tree.ext.EXTENSION namespace- tree.ext[extName][attrName] = _makeVirtualFunction(attrName, tree, base, extension, extName);- }else{- $.error("Could not override tree." + attrName + ". Use prefix '_' to create tree." + extName + "._" + attrName);- }- }else{- // Create member variables in tree.ext.EXTENSION namespace- if(attrName !== "options"){- tree.ext[extName][attrName] = extension[attrName];- }- }- }-}---function _getResolvedPromise(context, argArray){- if(context === undefined){- return $.Deferred(function(){this.resolve();}).promise();- }else{- return $.Deferred(function(){this.resolveWith(context, argArray);}).promise();- }-}---function _getRejectedPromise(context, argArray){- if(context === undefined){- return $.Deferred(function(){this.reject();}).promise();- }else{- return $.Deferred(function(){this.rejectWith(context, argArray);}).promise();- }-}---function _makeResolveFunc(deferred, context){- return function(){- deferred.resolveWith(context);- };-}---function _getElementDataAsDict($el){- // Evaluate 'data-NAME' attributes with special treatment for 'data-json'.- var d = $.extend({}, $el.data()),- json = d.json;-- delete d.fancytree; // added to container by widget factory (old jQuery UI)- delete d.uiFancytree; // added to container by widget factory-- if( json ) {- delete d.json;- // <li data-json='...'> is already returned as object (http://api.jquery.com/data/#data-html5)- d = $.extend(d, json);- }- return d;-}---function _escapeHtml(s){- return ("" + s).replace(REX_HTML, function(s) {- return ENTITY_MAP[s];- });-}---function _escapeTooltip(s){- return ("" + s).replace(REX_TOOLTIP, function(s) {- return ENTITY_MAP[s];- });-}---// TODO: use currying-function _makeNodeTitleMatcher(s){- s = s.toLowerCase();- return function(node){- return node.title.toLowerCase().indexOf(s) >= 0;- };-}---function _makeNodeTitleStartMatcher(s){- var reMatch = new RegExp("^" + s, "i");- return function(node){- return reMatch.test(node.title);- };-}---/* *****************************************************************************- * FancytreeNode- */---/**- * Creates a new FancytreeNode- *- * @class FancytreeNode- * @classdesc A FancytreeNode represents the hierarchical data model and operations.- *- * @param {FancytreeNode} parent- * @param {NodeData} obj- *- * @property {Fancytree} tree The tree instance- * @property {FancytreeNode} parent The parent node- * @property {string} key Node id (must be unique inside the tree)- * @property {string} title Display name (may contain HTML)- * @property {object} data Contains all extra data that was passed on node creation- * @property {FancytreeNode[] | null | undefined} children Array of child nodes.<br>- * For lazy nodes, null or undefined means 'not yet loaded'. Use an empty array- * to define a node that has no children.- * @property {boolean} expanded Use isExpanded(), setExpanded() to access this property.- * @property {string} extraClasses Additional CSS classes, added to the node's `<span>`.<br>- * Note: use `node.add/remove/toggleClass()` to modify.- * @property {boolean} folder Folder nodes have different default icons and click behavior.<br>- * Note: Also non-folders may have children.- * @property {string} statusNodeType null for standard nodes. Otherwise type of special system node: 'error', 'loading', 'nodata', or 'paging'.- * @property {boolean} lazy True if this node is loaded on demand, i.e. on first expansion.- * @property {boolean} selected Use isSelected(), setSelected() to access this property.- * @property {string} tooltip Alternative description used as hover popup- */-function FancytreeNode(parent, obj){- var i, l, name, cl;-- this.parent = parent;- this.tree = parent.tree;- this.ul = null;- this.li = null; // <li id='key' ftnode=this> tag- this.statusNodeType = null; // if this is a temp. node to display the status of its parent- this._isLoading = false; // if this node itself is loading- this._error = null; // {message: '...'} if a load error occurred- this.data = {};-- // TODO: merge this code with node.toDict()- // copy attributes from obj object- for(i=0, l=NODE_ATTRS.length; i<l; i++){- name = NODE_ATTRS[i];- this[name] = obj[name];- }- // unselectableIgnore and unselectableStatus imply unselectable- if( this.unselectableIgnore != null || this.unselectableStatus != null ) {- this.unselectable = true;- }- if( obj.hideCheckbox ) {- $.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'");- }- // node.data += obj.data- if(obj.data){- $.extend(this.data, obj.data);- }- // copy all other attributes to this.data.NAME- for(name in obj){- if(!NODE_ATTR_MAP[name] && !$.isFunction(obj[name]) && !NONE_NODE_DATA_MAP[name]){- // node.data.NAME = obj.NAME- this.data[name] = obj[name];- }- }-- // Fix missing key- if( this.key == null ){ // test for null OR undefined- if( this.tree.options.defaultKey ) {- this.key = this.tree.options.defaultKey(this);- _assert(this.key, "defaultKey() must return a unique key");- } else {- this.key = "_" + (FT._nextNodeKey++);- }- } else {- this.key = "" + this.key; // Convert to string (#217)- }-- // Fix tree.activeNode- // TODO: not elegant: we use obj.active as marker to set tree.activeNode- // when loading from a dictionary.- if(obj.active){- _assert(this.tree.activeNode === null, "only one active node allowed");- this.tree.activeNode = this;- }- if( obj.selected ){ // #186- this.tree.lastSelectedNode = this;- }- // TODO: handle obj.focus = true-- // Create child nodes- cl = obj.children;- if( cl ){- if( cl.length ){- this._setChildren(cl);- } else {- // if an empty array was passed for a lazy node, keep it, in order to mark it 'loaded'- this.children = this.lazy ? [] : null;- }- } else {- this.children = null;- }- // Add to key/ref map (except for root node)-// if( parent ) {- this.tree._callHook("treeRegisterNode", this.tree, true, this);-// }-}---FancytreeNode.prototype = /** @lends FancytreeNode# */{- /* Return the direct child FancytreeNode with a given key, index. */- _findDirectChild: function(ptr){- var i, l,- cl = this.children;-- if(cl){- if(typeof ptr === "string"){- for(i=0, l=cl.length; i<l; i++){- if(cl[i].key === ptr){- return cl[i];- }- }- }else if(typeof ptr === "number"){- return this.children[ptr];- }else if(ptr.parent === this){- return ptr;- }- }- return null;- },- // TODO: activate()- // TODO: activateSilently()- /* Internal helper called in recursive addChildren sequence.*/- _setChildren: function(children){- _assert(children && (!this.children || this.children.length === 0), "only init supported");- this.children = [];- for(var i=0, l=children.length; i<l; i++){- this.children.push(new FancytreeNode(this, children[i]));- }- },- /**- * Append (or insert) a list of child nodes.- *- * @param {NodeData[]} children array of child node definitions (also single child accepted)- * @param {FancytreeNode | string | Integer} [insertBefore] child node (or key or index of such).- * If omitted, the new children are appended.- * @returns {FancytreeNode} first child added- *- * @see FancytreeNode#applyPatch- */- addChildren: function(children, insertBefore){- var i, l, pos,- origFirstChild = this.getFirstChild(),- origLastChild = this.getLastChild(),- firstNode = null,- nodeList = [];-- if($.isPlainObject(children) ){- children = [children];- }- if(!this.children){- this.children = [];- }- for(i=0, l=children.length; i<l; i++){- nodeList.push(new FancytreeNode(this, children[i]));- }- firstNode = nodeList[0];- if(insertBefore == null){- this.children = this.children.concat(nodeList);- }else{- insertBefore = this._findDirectChild(insertBefore);- pos = $.inArray(insertBefore, this.children);- _assert(pos >= 0, "insertBefore must be an existing child");- // insert nodeList after children[pos]- this.children.splice.apply(this.children, [pos, 0].concat(nodeList));- }- if ( origFirstChild && !insertBefore ) {- // #708: Fast path -- don't render every child of root, just the new ones!- // #723, #729: but only if it's appended to an existing child list- for(i=0, l=nodeList.length; i<l; i++) {- nodeList[i].render(); // New nodes were never rendered before- }- // Adjust classes where status may have changed- // Has a first child- if (origFirstChild !== this.getFirstChild()) {- // Different first child -- recompute classes- origFirstChild.renderStatus();- }- if (origLastChild !== this.getLastChild()) {- // Different last child -- recompute classes- origLastChild.renderStatus();- }- } else if( !this.parent || this.parent.ul || this.tr ){- // render if the parent was rendered (or this is a root node)- this.render();- }- if( this.tree.options.selectMode === 3 ){- this.fixSelection3FromEndNodes();- }- this.triggerModifyChild("add", nodeList.length === 1 ? nodeList[0] : null);- return firstNode;- },- /**- * Add class to node's span tag and to .extraClasses.- *- * @param {string} className class name- *- * @since 2.17- */- addClass: function(className){- return this.toggleClass(className, true);- },- /**- * Append or prepend a node, or append a child node.- *- * This a convenience function that calls addChildren()- *- * @param {NodeData} node node definition- * @param {string} [mode=child] 'before', 'after', 'firstChild', or 'child' ('over' is a synonym for 'child')- * @returns {FancytreeNode} new node- */- addNode: function(node, mode){- if(mode === undefined || mode === "over"){- mode = "child";- }- switch(mode){- case "after":- return this.getParent().addChildren(node, this.getNextSibling());- case "before":- return this.getParent().addChildren(node, this);- case "firstChild":- // Insert before the first child if any- var insertBefore = (this.children ? this.children[0] : null);- return this.addChildren(node, insertBefore);- case "child":- case "over":- return this.addChildren(node);- }- _assert(false, "Invalid mode: " + mode);- },- /**Add child status nodes that indicate 'More...', etc.- *- * This also maintains the node's `partload` property.- * @param {boolean|object} node optional node definition. Pass `false` to remove all paging nodes.- * @param {string} [mode='child'] 'child'|firstChild'- * @since 2.15- */- addPagingNode: function(node, mode){- var i, n;-- mode = mode || "child";- if( node === false ) {- for(i=this.children.length-1; i >= 0; i--) {- n = this.children[i];- if( n.statusNodeType === "paging" ) {- this.removeChild(n);- }- }- this.partload = false;- return;- }- node = $.extend({- title: this.tree.options.strings.moreData,- statusNodeType: "paging",- icon: false- }, node);- this.partload = true;- return this.addNode(node, mode);- },- /**- * Append new node after this.- *- * This a convenience function that calls addNode(node, 'after')- *- * @param {NodeData} node node definition- * @returns {FancytreeNode} new node- */- appendSibling: function(node){- return this.addNode(node, "after");- },- /**- * Modify existing child nodes.- *- * @param {NodePatch} patch- * @returns {$.Promise}- * @see FancytreeNode#addChildren- */- applyPatch: function(patch) {- // patch [key, null] means 'remove'- if(patch === null){- this.remove();- return _getResolvedPromise(this);- }- // TODO: make sure that root node is not collapsed or modified- // copy (most) attributes to node.ATTR or node.data.ATTR- var name, promise, v,- IGNORE_MAP = { children: true, expanded: true, parent: true }; // TODO: should be global-- for(name in patch){- v = patch[name];- if( !IGNORE_MAP[name] && !$.isFunction(v)){- if(NODE_ATTR_MAP[name]){- this[name] = v;- }else{- this.data[name] = v;- }- }- }- // Remove and/or create children- if(patch.hasOwnProperty("children")){- this.removeChildren();- if(patch.children){ // only if not null and not empty list- // TODO: addChildren instead?- this._setChildren(patch.children);- }- // TODO: how can we APPEND or INSERT child nodes?- }- if(this.isVisible()){- this.renderTitle();- this.renderStatus();- }- // Expand collapse (final step, since this may be async)- if(patch.hasOwnProperty("expanded")){- promise = this.setExpanded(patch.expanded);- }else{- promise = _getResolvedPromise(this);- }- return promise;- },- /** Collapse all sibling nodes.- * @returns {$.Promise}- */- collapseSiblings: function() {- return this.tree._callHook("nodeCollapseSiblings", this);- },- /** Copy this node as sibling or child of `node`.- *- * @param {FancytreeNode} node source node- * @param {string} [mode=child] 'before' | 'after' | 'child'- * @param {Function} [map] callback function(NodeData) that could modify the new node- * @returns {FancytreeNode} new- */- copyTo: function(node, mode, map) {- return node.addNode(this.toDict(true, map), mode);- },- /** Count direct and indirect children.- *- * @param {boolean} [deep=true] pass 'false' to only count direct children- * @returns {int} number of child nodes- */- countChildren: function(deep) {- var cl = this.children, i, l, n;- if( !cl ){- return 0;- }- n = cl.length;- if(deep !== false){- for(i=0, l=n; i<l; i++){- n += cl[i].countChildren();- }- }- return n;- },- // TODO: deactivate()- /** Write to browser console if debugLevel >= 2 (prepending node info)- *- * @param {*} msg string or object or array of such- */- debug: function(msg){- if( this.tree.options.debugLevel >= 2 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("log", arguments);- }- },- /** Deprecated.- * @deprecated since 2014-02-16. Use resetLazy() instead.- */- discard: function(){- this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead.");- return this.resetLazy();- },- /** Remove DOM elements for all descendents. May be called on .collapse event- * to keep the DOM small.- * @param {boolean} [includeSelf=false]- */- discardMarkup: function(includeSelf){- var fn = includeSelf ? "nodeRemoveMarkup" : "nodeRemoveChildMarkup";- this.tree._callHook(fn, this);- },- /**Find all nodes that match condition (excluding self).- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode[]} array of nodes (may be empty)- */- findAll: function(match) {- match = $.isFunction(match) ? match : _makeNodeTitleMatcher(match);- var res = [];- this.visit(function(n){- if(match(n)){- res.push(n);- }- });- return res;- },- /**Find first node that matches condition (excluding self).- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode} matching node or null- * @see FancytreeNode#findAll- */- findFirst: function(match) {- match = $.isFunction(match) ? match : _makeNodeTitleMatcher(match);- var res = null;- this.visit(function(n){- if(match(n)){- res = n;- return false;- }- });- return res;- },- /* Apply selection state (internal use only) */- _changeSelectStatusAttrs: function(state) {- var changed = false,- opts = this.tree.options,- unselectable = FT.evalOption("unselectable", this, this, opts, false),- unselectableStatus = FT.evalOption("unselectableStatus", this, this, opts, undefined);-- if( unselectable && unselectableStatus != null ) {- state = unselectableStatus;- }- switch(state){- case false:- changed = ( this.selected || this.partsel );- this.selected = false;- this.partsel = false;- break;- case true:- changed = ( !this.selected || !this.partsel );- this.selected = true;- this.partsel = true;- break;- case undefined:- changed = ( this.selected || !this.partsel );- this.selected = false;- this.partsel = true;- break;- default:- _assert(false, "invalid state: " + state);- }- // this.debug("fixSelection3AfterLoad() _changeSelectStatusAttrs()", state, changed);- if( changed ){- this.renderStatus();- }- return changed;- },- /**- * Fix selection status, after this node was (de)selected in multi-hier mode.- * This includes (de)selecting all children.- */- fixSelection3AfterClick: function(callOpts) {- var flag = this.isSelected();--// this.debug("fixSelection3AfterClick()");-- this.visit(function(node){- node._changeSelectStatusAttrs(flag);- });- this.fixSelection3FromEndNodes(callOpts);- },- /**- * Fix selection status for multi-hier mode.- * Only end-nodes are considered to update the descendants branch and parents.- * Should be called after this node has loaded new children or after- * children have been modified using the API.- */- fixSelection3FromEndNodes: function(callOpts) {- var opts = this.tree.options;--// this.debug("fixSelection3FromEndNodes()");- _assert(opts.selectMode === 3, "expected selectMode 3");-- // Visit all end nodes and adjust their parent's `selected` and `partsel`- // attributes. Return selection state true, false, or undefined.- function _walk(node){- var i, l, child, s, state, allSelected, someSelected, unselIgnore, unselState,- children = node.children;-- if( children && children.length ){- // check all children recursively- allSelected = true;- someSelected = false;-- for( i=0, l=children.length; i<l; i++ ){- child = children[i];- // the selection state of a node is not relevant; we need the end-nodes- s = _walk(child);- // if( !child.unselectableIgnore ) {- unselIgnore = FT.evalOption("unselectableIgnore", child, child, opts, false);- if( !unselIgnore ) {- if( s !== false ) {- someSelected = true;- }- if( s !== true ) {- allSelected = false;- }- }- }- state = allSelected ? true : (someSelected ? undefined : false);- }else{- // This is an end-node: simply report the status- unselState = FT.evalOption("unselectableStatus", node, node, opts, undefined);- state = ( unselState == null ) ? !!node.selected : !!unselState;- }- node._changeSelectStatusAttrs(state);- return state;- }- _walk(this);-- // Update parent's state- this.visitParents(function(node){- var i, l, child, state, unselIgnore, unselState,- children = node.children,- allSelected = true,- someSelected = false;-- for( i=0, l=children.length; i<l; i++ ){- child = children[i];- unselIgnore = FT.evalOption("unselectableIgnore", child, child, opts, false);- if( !unselIgnore ) {- unselState = FT.evalOption("unselectableStatus", child, child, opts, undefined);- state = ( unselState == null ) ? !!child.selected : !!unselState;- // When fixing the parents, we trust the sibling status (i.e.- // we don't recurse)- if( state || child.partsel ) {- someSelected = true;- }- if( !state ) {- allSelected = false;- }- }- }- state = allSelected ? true : (someSelected ? undefined : false);- node._changeSelectStatusAttrs(state);- });- },- // TODO: focus()- /**- * Update node data. If dict contains 'children', then also replace- * the hole sub tree.- * @param {NodeData} dict- *- * @see FancytreeNode#addChildren- * @see FancytreeNode#applyPatch- */- fromDict: function(dict) {- // copy all other attributes to this.data.xxx- for(var name in dict){- if(NODE_ATTR_MAP[name]){- // node.NAME = dict.NAME- this[name] = dict[name];- }else if(name === "data"){- // node.data += dict.data- $.extend(this.data, dict.data);- }else if(!$.isFunction(dict[name]) && !NONE_NODE_DATA_MAP[name]){- // node.data.NAME = dict.NAME- this.data[name] = dict[name];- }- }- if(dict.children){- // recursively set children and render- this.removeChildren();- this.addChildren(dict.children);- }- this.renderTitle();-/*- var children = dict.children;- if(children === undefined){- this.data = $.extend(this.data, dict);- this.render();- return;- }- dict = $.extend({}, dict);- dict.children = undefined;- this.data = $.extend(this.data, dict);- this.removeChildren();- this.addChild(children);-*/- },- /** Return the list of child nodes (undefined for unexpanded lazy nodes).- * @returns {FancytreeNode[] | undefined}- */- getChildren: function() {- if(this.hasChildren() === undefined){ // TODO: only required for lazy nodes?- return undefined; // Lazy node: unloaded, currently loading, or load error- }- return this.children;- },- /** Return the first child node or null.- * @returns {FancytreeNode | null}- */- getFirstChild: function() {- return this.children ? this.children[0] : null;- },- /** Return the 0-based child index.- * @returns {int}- */- getIndex: function() {-// return this.parent.children.indexOf(this);- return $.inArray(this, this.parent.children); // indexOf doesn't work in IE7- },- /** Return the hierarchical child index (1-based, e.g. '3.2.4').- * @param {string} [separator="."]- * @param {int} [digits=1]- * @returns {string}- */- getIndexHier: function(separator, digits) {- separator = separator || ".";- var s,- res = [];- $.each(this.getParentList(false, true), function(i, o){- s = "" + (o.getIndex() + 1);- if( digits ){- // prepend leading zeroes- s = ("0000000" + s).substr(-digits);- }- res.push(s);- });- return res.join(separator);- },- /** Return the parent keys separated by options.keyPathSeparator, e.g. "id_1/id_17/id_32".- * @param {boolean} [excludeSelf=false]- * @returns {string}- */- getKeyPath: function(excludeSelf) {- var path = [],- sep = this.tree.options.keyPathSeparator;- this.visitParents(function(n){- if(n.parent){- path.unshift(n.key);- }- }, !excludeSelf);- return sep + path.join(sep);- },- /** Return the last child of this node or null.- * @returns {FancytreeNode | null}- */- getLastChild: function() {- return this.children ? this.children[this.children.length - 1] : null;- },- /** Return node depth. 0: System root node, 1: visible top-level node, 2: first sub-level, ... .- * @returns {int}- */- getLevel: function() {- var level = 0,- dtn = this.parent;- while( dtn ) {- level++;- dtn = dtn.parent;- }- return level;- },- /** Return the successor node (under the same parent) or null.- * @returns {FancytreeNode | null}- */- getNextSibling: function() {- // TODO: use indexOf, if available: (not in IE6)- if( this.parent ){- var i, l,- ac = this.parent.children;-- for(i=0, l=ac.length-1; i<l; i++){ // up to length-2, so next(last) = null- if( ac[i] === this ){- return ac[i+1];- }- }- }- return null;- },- /** Return the parent node (null for the system root node).- * @returns {FancytreeNode | null}- */- getParent: function() {- // TODO: return null for top-level nodes?- return this.parent;- },- /** Return an array of all parent nodes (top-down).- * @param {boolean} [includeRoot=false] Include the invisible system root node.- * @param {boolean} [includeSelf=false] Include the node itself.- * @returns {FancytreeNode[]}- */- getParentList: function(includeRoot, includeSelf) {- var l = [],- dtn = includeSelf ? this : this.parent;- while( dtn ) {- if( includeRoot || dtn.parent ){- l.unshift(dtn);- }- dtn = dtn.parent;- }- return l;- },- /** Return the predecessor node (under the same parent) or null.- * @returns {FancytreeNode | null}- */- getPrevSibling: function() {- if( this.parent ){- var i, l,- ac = this.parent.children;-- for(i=1, l=ac.length; i<l; i++){ // start with 1, so prev(first) = null- if( ac[i] === this ){- return ac[i-1];- }- }- }- return null;- },- /**- * Return an array of selected descendant nodes.- * @param {boolean} [stopOnParents=false] only return the topmost selected- * node (useful with selectMode 3)- * @returns {FancytreeNode[]}- */- getSelectedNodes: function(stopOnParents) {- var nodeList = [];- this.visit(function(node){- if( node.selected ) {- nodeList.push(node);- if( stopOnParents === true ){- return "skip"; // stop processing this branch- }- }- });- return nodeList;- },- /** Return true if node has children. Return undefined if not sure, i.e. the node is lazy and not yet loaded).- * @returns {boolean | undefined}- */- hasChildren: function() {- if(this.lazy){- if(this.children == null ){- // null or undefined: Not yet loaded- return undefined;- }else if(this.children.length === 0){- // Loaded, but response was empty- return false;- }else if(this.children.length === 1 && this.children[0].isStatusNode() ){- // Currently loading or load error- return undefined;- }- return true;- }- return !!( this.children && this.children.length );- },- /** Return true if node has keyboard focus.- * @returns {boolean}- */- hasFocus: function() {- return (this.tree.hasFocus() && this.tree.focusNode === this);- },- /** Write to browser console if debugLevel >= 1 (prepending node info)- *- * @param {*} msg string or object or array of such- */- info: function(msg){- if( this.tree.options.debugLevel >= 1 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("info", arguments);- }- },- /** Return true if node is active (see also FancytreeNode#isSelected).- * @returns {boolean}- */- isActive: function() {- return (this.tree.activeNode === this);- },- /** Return true if node is a direct child of otherNode.- * @param {FancytreeNode} otherNode- * @returns {boolean}- */- isChildOf: function(otherNode) {- return (this.parent && this.parent === otherNode);- },- /** Return true, if node is a direct or indirect sub node of otherNode.- * @param {FancytreeNode} otherNode- * @returns {boolean}- */- isDescendantOf: function(otherNode) {- if(!otherNode || otherNode.tree !== this.tree){- return false;- }- var p = this.parent;- while( p ) {- if( p === otherNode ){- return true;- }- p = p.parent;- }- return false;- },- /** Return true if node is expanded.- * @returns {boolean}- */- isExpanded: function() {- return !!this.expanded;- },- /** Return true if node is the first node of its parent's children.- * @returns {boolean}- */- isFirstSibling: function() {- var p = this.parent;- return !p || p.children[0] === this;- },- /** Return true if node is a folder, i.e. has the node.folder attribute set.- * @returns {boolean}- */- isFolder: function() {- return !!this.folder;- },- /** Return true if node is the last node of its parent's children.- * @returns {boolean}- */- isLastSibling: function() {- var p = this.parent;- return !p || p.children[p.children.length-1] === this;- },- /** Return true if node is lazy (even if data was already loaded)- * @returns {boolean}- */- isLazy: function() {- return !!this.lazy;- },- /** Return true if node is lazy and loaded. For non-lazy nodes always return true.- * @returns {boolean}- */- isLoaded: function() {- return !this.lazy || this.hasChildren() !== undefined; // Also checks if the only child is a status node- },- /** Return true if children are currently beeing loaded, i.e. a Ajax request is pending.- * @returns {boolean}- */- isLoading: function() {- return !!this._isLoading;- },- /*- * @deprecated since v2.4.0: Use isRootNode() instead- */- isRoot: function() {- return this.isRootNode();- },- /** Return true if node is partially selected (tri-state).- * @returns {boolean}- * @since 2.23- */- isPartsel: function() {- return !this.selected && !!this.partsel;- },- /** (experimental) Return true if this is partially loaded.- * @returns {boolean}- * @since 2.15- */- isPartload: function() {- return !!this.partload;- },- /** Return true if this is the (invisible) system root node.- * @returns {boolean}- * @since 2.4- */- isRootNode: function() {- return (this.tree.rootNode === this);- },- /** Return true if node is selected, i.e. has a checkmark set (see also FancytreeNode#isActive).- * @returns {boolean}- */- isSelected: function() {- return !!this.selected;- },- /** Return true if this node is a temporarily generated system node like- * 'loading', 'paging', or 'error' (node.statusNodeType contains the type).- * @returns {boolean}- */- isStatusNode: function() {- return !!this.statusNodeType;- },- /** Return true if this node is a status node of type 'paging'.- * @returns {boolean}- * @since 2.15- */- isPagingNode: function() {- return this.statusNodeType === "paging";- },- /** Return true if this a top level node, i.e. a direct child of the (invisible) system root node.- * @returns {boolean}- * @since 2.4- */- isTopLevel: function() {- return (this.tree.rootNode === this.parent);- },- /** Return true if node is lazy and not yet loaded. For non-lazy nodes always return false.- * @returns {boolean}- */- isUndefined: function() {- return this.hasChildren() === undefined; // also checks if the only child is a status node- },- /** Return true if all parent nodes are expanded. Note: this does not check- * whether the node is scrolled into the visible part of the screen.- * @returns {boolean}- */- isVisible: function() {- var i, l,- parents = this.getParentList(false, false);-- for(i=0, l=parents.length; i<l; i++){- if( ! parents[i].expanded ){ return false; }- }- return true;- },- /** Deprecated.- * @deprecated since 2014-02-16: use load() instead.- */- lazyLoad: function(discard) {- this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead.");- return this.load(discard);- },- /**- * Load all children of a lazy node if neccessary. The <i>expanded</i> state is maintained.- * @param {boolean} [forceReload=false] Pass true to discard any existing nodes before. Otherwise this method does nothing if the node was already loaded.- * @returns {$.Promise}- */- load: function(forceReload) {- var res, source,- that = this,- wasExpanded = this.isExpanded();-- _assert( this.isLazy(), "load() requires a lazy node" );- // _assert( forceReload || this.isUndefined(), "Pass forceReload=true to re-load a lazy node" );- if( !forceReload && !this.isUndefined() ) {- return _getResolvedPromise(this);- }- if( this.isLoaded() ){- this.resetLazy(); // also collapses- }- // This method is also called by setExpanded() and loadKeyPath(), so we- // have to avoid recursion.- source = this.tree._triggerNodeEvent("lazyLoad", this);- if( source === false ) { // #69- return _getResolvedPromise(this);- }- _assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");- res = this.tree._callHook("nodeLoadChildren", this, source);- if( wasExpanded ) {- this.expanded = true;- res.always(function(){- that.render();- });- } else {- res.always(function(){- that.renderStatus(); // fix expander icon to 'loaded'- });- }- return res;- },- /** Expand all parents and optionally scroll into visible area as neccessary.- * Promise is resolved, when lazy loading and animations are done.- * @param {object} [opts] passed to `setExpanded()`.- * Defaults to {noAnimation: false, noEvents: false, scrollIntoView: true}- * @returns {$.Promise}- */- makeVisible: function(opts) {- var i,- that = this,- deferreds = [],- dfd = new $.Deferred(),- parents = this.getParentList(false, false),- len = parents.length,- effects = !(opts && opts.noAnimation === true),- scroll = !(opts && opts.scrollIntoView === false);-- // Expand bottom-up, so only the top node is animated- for(i = len - 1; i >= 0; i--){- // that.debug("pushexpand" + parents[i]);- deferreds.push(parents[i].setExpanded(true, opts));- }- $.when.apply($, deferreds).done(function(){- // All expands have finished- // that.debug("expand DONE", scroll);- if( scroll ){- that.scrollIntoView(effects).done(function(){- // that.debug("scroll DONE");- dfd.resolve();- });- } else {- dfd.resolve();- }- });- return dfd.promise();- },- /** Move this node to targetNode.- * @param {FancytreeNode} targetNode- * @param {string} mode <pre>- * 'child': append this node as last child of targetNode.- * This is the default. To be compatble with the D'n'd- * hitMode, we also accept 'over'.- * 'firstChild': add this node as first child of targetNode.- * 'before': add this node as sibling before targetNode.- * 'after': add this node as sibling after targetNode.</pre>- * @param {function} [map] optional callback(FancytreeNode) to allow modifcations- */- moveTo: function(targetNode, mode, map) {- if(mode === undefined || mode === "over"){- mode = "child";- } else if ( mode === "firstChild" ) {- if( targetNode.children && targetNode.children.length ) {- mode = "before";- targetNode = targetNode.children[0];- } else {- mode = "child";- }- }- var pos,- prevParent = this.parent,- targetParent = (mode === "child") ? targetNode : targetNode.parent;-- if(this === targetNode){- return;- }else if( !this.parent ){- $.error("Cannot move system root");- }else if( targetParent.isDescendantOf(this) ){- $.error("Cannot move a node to its own descendant");- }- if( targetParent !== prevParent ) {- prevParent.triggerModifyChild("remove", this);- }- // Unlink this node from current parent- if( this.parent.children.length === 1 ) {- if( this.parent === targetParent ){- return; // #258- }- this.parent.children = this.parent.lazy ? [] : null;- this.parent.expanded = false;- } else {- pos = $.inArray(this, this.parent.children);- _assert(pos >= 0, "invalid source parent");- this.parent.children.splice(pos, 1);- }- // Remove from source DOM parent-// if(this.parent.ul){-// this.parent.ul.removeChild(this.li);-// }-- // Insert this node to target parent's child list- this.parent = targetParent;- if( targetParent.hasChildren() ) {- switch(mode) {- case "child":- // Append to existing target children- targetParent.children.push(this);- break;- case "before":- // Insert this node before target node- pos = $.inArray(targetNode, targetParent.children);- _assert(pos >= 0, "invalid target parent");- targetParent.children.splice(pos, 0, this);- break;- case "after":- // Insert this node after target node- pos = $.inArray(targetNode, targetParent.children);- _assert(pos >= 0, "invalid target parent");- targetParent.children.splice(pos+1, 0, this);- break;- default:- $.error("Invalid mode " + mode);- }- } else {- targetParent.children = [ this ];- }- // Parent has no <ul> tag yet:-// if( !targetParent.ul ) {-// // This is the parent's first child: create UL tag-// // (Hidden, because it will be-// targetParent.ul = document.createElement("ul");-// targetParent.ul.style.display = "none";-// targetParent.li.appendChild(targetParent.ul);-// }-// // Issue 319: Add to target DOM parent (only if node was already rendered(expanded))-// if(this.li){-// targetParent.ul.appendChild(this.li);-// }^-- // Let caller modify the nodes- if( map ){- targetNode.visit(map, true);- }- if( targetParent === prevParent ) {- targetParent.triggerModifyChild("move", this);- } else {- // prevParent.triggerModifyChild("remove", this);- targetParent.triggerModifyChild("add", this);- }- // Handle cross-tree moves- if( this.tree !== targetNode.tree ) {- // Fix node.tree for all source nodes-// _assert(false, "Cross-tree move is not yet implemented.");- this.warn("Cross-tree moveTo is experimantal!");- this.visit(function(n){- // TODO: fix selection state and activation, ...- n.tree = targetNode.tree;- }, true);- }-- // A collaposed node won't re-render children, so we have to remove it manually- // if( !targetParent.expanded ){- // prevParent.ul.removeChild(this.li);- // }-- // Update HTML markup- if( !prevParent.isDescendantOf(targetParent)) {- prevParent.render();- }- if( !targetParent.isDescendantOf(prevParent) && targetParent !== prevParent) {- targetParent.render();- }- // TODO: fix selection state- // TODO: fix active state--/*- var tree = this.tree;- var opts = tree.options;- var pers = tree.persistence;--- // Always expand, if it's below minExpandLevel-// tree.logDebug ("%s._addChildNode(%o), l=%o", this, ftnode, ftnode.getLevel());- if ( opts.minExpandLevel >= ftnode.getLevel() ) {-// tree.logDebug ("Force expand for %o", ftnode);- this.bExpanded = true;- }-- // In multi-hier mode, update the parents selection state- // DT issue #82: only if not initializing, because the children may not exist yet-// if( !ftnode.data.isStatusNode() && opts.selectMode==3 && !isInitializing )-// ftnode._fixSelectionState();-- // In multi-hier mode, update the parents selection state- if( ftnode.bSelected && opts.selectMode==3 ) {- var p = this;- while( p ) {- if( !p.hasSubSel )- p._setSubSel(true);- p = p.parent;- }- }- // render this node and the new child- if ( tree.bEnableUpdate )- this.render();-- return ftnode;--*/- },- /** Set focus relative to this node and optionally activate.- *- * @param {number} where The keyCode that would normally trigger this move,- * e.g. `$.ui.keyCode.LEFT` would collapse the node if it- * is expanded or move to the parent oterwise.- * @param {boolean} [activate=true]- * @returns {$.Promise}- */- navigate: function(where, activate) {- var i, parents, res,- handled = true,- KC = $.ui.keyCode,- sib = null;-- // Navigate to node- function _goto(n){- if( n ){- // setFocus/setActive will scroll later (if autoScroll is specified)- try { n.makeVisible({scrollIntoView: false}); } catch(e) {} // #272- // Node may still be hidden by a filter- if( ! $(n.span).is(":visible") ) {- n.debug("Navigate: skipping hidden node");- n.navigate(where, activate);- return;- }- return activate === false ? n.setFocus() : n.setActive();- }- }-- switch( where ) {- case KC.BACKSPACE:- if( this.parent && this.parent.parent ) {- res = _goto(this.parent);- }- break;- case KC.HOME:- this.tree.visit(function(n){ // goto first visible node- if( $(n.span).is(":visible") ) {- res = _goto(n);- return false;- }- });- break;- case KC.END:- this.tree.visit(function(n){ // goto last visible node- if( $(n.span).is(":visible") ) {- res = n;- }- });- if( res ) {- res = _goto(res);- }- break;- case KC.LEFT:- if( this.expanded ) {- this.setExpanded(false);- res = _goto(this);- } else if( this.parent && this.parent.parent ) {- res = _goto(this.parent);- }- break;- case KC.RIGHT:- if( !this.expanded && (this.children || this.lazy) ) {- this.setExpanded();- res = _goto(this);- } else if( this.children && this.children.length ) {- res = _goto(this.children[0]);- }- break;- case KC.UP:- sib = this.getPrevSibling();- // #359: skip hidden sibling nodes, preventing a _goto() recursion- while( sib && !$(sib.span).is(":visible") ) {- sib = sib.getPrevSibling();- }- while( sib && sib.expanded && sib.children && sib.children.length ) {- sib = sib.children[sib.children.length - 1];- }- if( !sib && this.parent && this.parent.parent ){- sib = this.parent;- }- res = _goto(sib);- break;- case KC.DOWN:- if( this.expanded && this.children && this.children.length ) {- sib = this.children[0];- } else {- parents = this.getParentList(false, true);- for(i=parents.length-1; i>=0; i--) {- sib = parents[i].getNextSibling();- // #359: skip hidden sibling nodes, preventing a _goto() recursion- while( sib && !$(sib.span).is(":visible") ) {- sib = sib.getNextSibling();- }- if( sib ){ break; }- }- }- res = _goto(sib);- break;- default:- handled = false;- }- return res || _getResolvedPromise();- },- /**- * Remove this node (not allowed for system root).- */- remove: function() {- return this.parent.removeChild(this);- },- /**- * Remove childNode from list of direct children.- * @param {FancytreeNode} childNode- */- removeChild: function(childNode) {- return this.tree._callHook("nodeRemoveChild", this, childNode);- },- /**- * Remove all child nodes and descendents. This converts the node into a leaf.<br>- * If this was a lazy node, it is still considered 'loaded'; call node.resetLazy()- * in order to trigger lazyLoad on next expand.- */- removeChildren: function() {- return this.tree._callHook("nodeRemoveChildren", this);- },- /**- * Remove class from node's span tag and .extraClasses.- *- * @param {string} className class name- *- * @since 2.17- */- removeClass: function(className){- return this.toggleClass(className, false);- },- /**- * This method renders and updates all HTML markup that is required- * to display this node in its current state.<br>- * Note:- * <ul>- * <li>It should only be neccessary to call this method after the node object- * was modified by direct access to its properties, because the common- * API methods (node.setTitle(), moveTo(), addChildren(), remove(), ...)- * already handle this.- * <li> {@link FancytreeNode#renderTitle} and {@link FancytreeNode#renderStatus}- * are implied. If changes are more local, calling only renderTitle() or- * renderStatus() may be sufficient and faster.- * </ul>- *- * @param {boolean} [force=false] re-render, even if html markup was already created- * @param {boolean} [deep=false] also render all descendants, even if parent is collapsed- */- render: function(force, deep) {- return this.tree._callHook("nodeRender", this, force, deep);- },- /** Create HTML markup for the node's outer <span> (expander, checkbox, icon, and title).- * Implies {@link FancytreeNode#renderStatus}.- * @see Fancytree_Hooks#nodeRenderTitle- */- renderTitle: function() {- return this.tree._callHook("nodeRenderTitle", this);- },- /** Update element's CSS classes according to node state.- * @see Fancytree_Hooks#nodeRenderStatus- */- renderStatus: function() {- return this.tree._callHook("nodeRenderStatus", this);- },- /**- * (experimental) Replace this node with `source`.- * (Currently only available for paging nodes.)- * @param {NodeData[]} source List of child node definitions- * @since 2.15- */- replaceWith: function(source) {- var res,- parent = this.parent,- pos = $.inArray(this, parent.children),- that = this;-- _assert( this.isPagingNode(), "replaceWith() currently requires a paging status node" );-- res = this.tree._callHook("nodeLoadChildren", this, source);- res.done(function(data){- // New nodes are currently children of `this`.- var children = that.children;- // Prepend newly loaded child nodes to `this`- // Move new children after self- for( i=0; i<children.length; i++ ) {- children[i].parent = parent;- }- parent.children.splice.apply(parent.children, [pos + 1, 0].concat(children));-- // Remove self- that.children = null;- that.remove();- // Redraw new nodes- parent.render();- // TODO: set node.partload = false if this was tha last paging node?- // parent.addPagingNode(false);- }).fail(function(){- that.setExpanded();- });- return res;- // $.error("Not implemented: replaceWith()");- },- /**- * Remove all children, collapse, and set the lazy-flag, so that the lazyLoad- * event is triggered on next expand.- */- resetLazy: function() {- this.removeChildren();- this.expanded = false;- this.lazy = true;- this.children = undefined;- this.renderStatus();- },- /** Schedule activity for delayed execution (cancel any pending request).- * scheduleAction('cancel') will only cancel a pending request (if any).- * @param {string} mode- * @param {number} ms- */- scheduleAction: function(mode, ms) {- if( this.tree.timer ) {- clearTimeout(this.tree.timer);-// this.tree.debug("clearTimeout(%o)", this.tree.timer);- }- this.tree.timer = null;- var self = this; // required for closures- switch (mode) {- case "cancel":- // Simply made sure that timer was cleared- break;- case "expand":- this.tree.timer = setTimeout(function(){- self.tree.debug("setTimeout: trigger expand");- self.setExpanded(true);- }, ms);- break;- case "activate":- this.tree.timer = setTimeout(function(){- self.tree.debug("setTimeout: trigger activate");- self.setActive(true);- }, ms);- break;- default:- $.error("Invalid mode " + mode);- }-// this.tree.debug("setTimeout(%s, %s): %s", mode, ms, this.tree.timer);- },- /**- *- * @param {boolean | PlainObject} [effects=false] animation options.- * @param {object} [options=null] {topNode: null, effects: ..., parent: ...} this node will remain visible in- * any case, even if `this` is outside the scroll pane.- * @returns {$.Promise}- */- scrollIntoView: function(effects, options) {- if( options !== undefined && _isNode(options) ) {- this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead.");- options = {topNode: options};- }- // this.$scrollParent = (this.options.scrollParent === "auto") ? $ul.scrollParent() : $(this.options.scrollParent);- // this.$scrollParent = this.$scrollParent.length ? this.$scrollParent || this.$container;-- var topNodeY, nodeY, horzScrollbarHeight, containerOffsetTop,- opts = $.extend({- effects: (effects === true) ? {duration: 200, queue: false} : effects,- scrollOfs: this.tree.options.scrollOfs,- scrollParent: this.tree.options.scrollParent || this.tree.$container,- topNode: null- }, options),- dfd = new $.Deferred(),- that = this,- nodeHeight = $(this.span).height(),- $container = $(opts.scrollParent),- topOfs = opts.scrollOfs.top || 0,- bottomOfs = opts.scrollOfs.bottom || 0,- containerHeight = $container.height(),// - topOfs - bottomOfs,- scrollTop = $container.scrollTop(),- $animateTarget = $container,- isParentWindow = $container[0] === window,- topNode = opts.topNode || null,- newScrollTop = null;-- // this.debug("scrollIntoView(), scrollTop=" + scrollTop, opts.scrollOfs);-// _assert($(this.span).is(":visible"), "scrollIntoView node is invisible"); // otherwise we cannot calc offsets- if( !$(this.span).is(":visible") ) {- // We cannot calc offsets for hidden elements- this.warn("scrollIntoView(): node is invisible.");- return _getResolvedPromise();- }- if( isParentWindow ) {- nodeY = $(this.span).offset().top;- topNodeY = (topNode && topNode.span) ? $(topNode.span).offset().top : 0;- $animateTarget = $("html,body");-- } else {- _assert($container[0] !== document && $container[0] !== document.body,- "scrollParent should be a simple element or `window`, not document or body.");-- containerOffsetTop = $container.offset().top,- nodeY = $(this.span).offset().top - containerOffsetTop + scrollTop; // relative to scroll parent- topNodeY = topNode ? $(topNode.span).offset().top - containerOffsetTop + scrollTop : 0;- horzScrollbarHeight = Math.max(0, ($container.innerHeight() - $container[0].clientHeight));- containerHeight -= horzScrollbarHeight;- }-- // this.debug(" scrollIntoView(), nodeY=" + nodeY + ", containerHeight=" + containerHeight);- if( nodeY < (scrollTop + topOfs) ){- // Node is above visible container area- newScrollTop = nodeY - topOfs;- // this.debug(" scrollIntoView(), UPPER newScrollTop=" + newScrollTop);-- }else if((nodeY + nodeHeight) > (scrollTop + containerHeight - bottomOfs)){- newScrollTop = nodeY + nodeHeight - containerHeight + bottomOfs;- // this.debug(" scrollIntoView(), LOWER newScrollTop=" + newScrollTop);- // If a topNode was passed, make sure that it is never scrolled- // outside the upper border- if(topNode){- _assert(topNode.isRootNode() || $(topNode.span).is(":visible"), "topNode must be visible");- if( topNodeY < newScrollTop ){- newScrollTop = topNodeY - topOfs;- // this.debug(" scrollIntoView(), TOP newScrollTop=" + newScrollTop);- }- }- }-- if(newScrollTop !== null){- // this.debug(" scrollIntoView(), SET newScrollTop=" + newScrollTop);- if(opts.effects){- opts.effects.complete = function(){- dfd.resolveWith(that);- };- $animateTarget.stop(true).animate({- scrollTop: newScrollTop- }, opts.effects);- }else{- $animateTarget[0].scrollTop = newScrollTop;- dfd.resolveWith(this);- }- }else{- dfd.resolveWith(this);- }- return dfd.promise();- },-- /**Activate this node.- * @param {boolean} [flag=true] pass false to deactivate- * @param {object} [opts] additional options. Defaults to {noEvents: false, noFocus: false}- * @returns {$.Promise}- */- setActive: function(flag, opts){- return this.tree._callHook("nodeSetActive", this, flag, opts);- },- /**Expand or collapse this node. Promise is resolved, when lazy loading and animations are done.- * @param {boolean} [flag=true] pass false to collapse- * @param {object} [opts] additional options. Defaults to {noAnimation: false, noEvents: false}- * @returns {$.Promise}- */- setExpanded: function(flag, opts){- return this.tree._callHook("nodeSetExpanded", this, flag, opts);- },- /**Set keyboard focus to this node.- * @param {boolean} [flag=true] pass false to blur- * @see Fancytree#setFocus- */- setFocus: function(flag){- return this.tree._callHook("nodeSetFocus", this, flag);- },- /**Select this node, i.e. check the checkbox.- * @param {boolean} [flag=true] pass false to deselect- * @param {object} [opts] additional options. Defaults to {noEvents: false, p- * propagateDown: null, propagateUp: null, callback: null }- */- setSelected: function(flag, opts){- return this.tree._callHook("nodeSetSelected", this, flag, opts);- },- /**Mark a lazy node as 'error', 'loading', 'nodata', or 'ok'.- * @param {string} status 'error'|'empty'|'ok'- * @param {string} [message]- * @param {string} [details]- */- setStatus: function(status, message, details){- return this.tree._callHook("nodeSetStatus", this, status, message, details);- },- /**Rename this node.- * @param {string} title- */- setTitle: function(title){- this.title = title;- this.renderTitle();- this.triggerModify("rename");- },- /**Sort child list by title.- * @param {function} [cmp] custom compare function(a, b) that returns -1, 0, or 1 (defaults to sort by title).- * @param {boolean} [deep=false] pass true to sort all descendant nodes- */- sortChildren: function(cmp, deep) {- var i,l,- cl = this.children;-- if( !cl ){- return;- }- cmp = cmp || function(a, b) {- var x = a.title.toLowerCase(),- y = b.title.toLowerCase();- return x === y ? 0 : x > y ? 1 : -1;- };- cl.sort(cmp);- if( deep ){- for(i=0, l=cl.length; i<l; i++){- if( cl[i].children ){- cl[i].sortChildren(cmp, "$norender$");- }- }- }- if( deep !== "$norender$" ){- this.render();- }- this.triggerModifyChild("sort");- },- /** Convert node (or whole branch) into a plain object.- *- * The result is compatible with node.addChildren().- *- * @param {boolean} [recursive=false] include child nodes- * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications- * @returns {NodeData}- */- toDict: function(recursive, callback) {- var i, l, node,- dict = {},- self = this;-- $.each(NODE_ATTRS, function(i, a){- if(self[a] || self[a] === false){- dict[a] = self[a];- }- });- if(!$.isEmptyObject(this.data)){- dict.data = $.extend({}, this.data);- if($.isEmptyObject(dict.data)){- delete dict.data;- }- }- if( callback ){- callback(dict, self);- }- if( recursive ) {- if(this.hasChildren()){- dict.children = [];- for(i=0, l=this.children.length; i<l; i++ ){- node = this.children[i];- if( !node.isStatusNode() ){- dict.children.push(node.toDict(true, callback));- }- }- }else{-// dict.children = null;- }- }- return dict;- },- /**- * Set, clear, or toggle class of node's span tag and .extraClasses.- *- * @param {string} className class name (separate multiple classes by space)- * @param {boolean} [flag] true/false to add/remove class. If omitted, class is toggled.- * @returns {boolean} true if a class was added- *- * @since 2.17- */- toggleClass: function(value, flag){- var className, hasClass,- rnotwhite = ( /\S+/g ),- classNames = value.match( rnotwhite ) || [],- i = 0,- wasAdded = false,- statusElem = this[this.tree.statusClassPropName],- curClasses = (" " + (this.extraClasses || "") + " ");-- // this.info("toggleClass('" + value + "', " + flag + ")", curClasses);- // Modify DOM element directly if it already exists- if( statusElem ) {- $(statusElem).toggleClass(value, flag);- }- // Modify node.extraClasses to make this change persistent- // Toggle if flag was not passed- while ( className = classNames[ i++ ] ) {- hasClass = curClasses.indexOf(" " + className + " ") >= 0;- flag = (flag === undefined) ? (!hasClass) : !!flag;- if ( flag ) {- if( !hasClass ) {- curClasses += className + " ";- wasAdded = true;- }- } else {- while ( curClasses.indexOf( " " + className + " " ) > -1 ) {- curClasses = curClasses.replace( " " + className + " ", " " );- }- }- }- this.extraClasses = $.trim(curClasses);- // this.info("-> toggleClass('" + value + "', " + flag + "): '" + this.extraClasses + "'");- return wasAdded;- },- /** Flip expanded status. */- toggleExpanded: function(){- return this.tree._callHook("nodeToggleExpanded", this);- },- /** Flip selection status. */- toggleSelected: function(){- return this.tree._callHook("nodeToggleSelected", this);- },- toString: function() {- return "<FancytreeNode(#" + this.key + ", '" + this.title + "')>";- },- /**- * Trigger `modifyChild` event on a parent to signal that a child was modified.- * @param {string} operation Type of change: 'add', 'remove', 'rename', 'move', 'data', ...- * @param {FancytreeNode} [childNode]- * @param {object} [extra]- */- triggerModifyChild: function(operation, childNode, extra){- var data,- modifyChild = this.tree.options.modifyChild;-- if ( modifyChild ){- if( childNode && childNode.parent !== this ) {- $.error("childNode " + childNode + " is not a child of " + this);- }- data = {- node: this,- tree: this.tree,- operation: operation,- childNode: childNode || null- };- if( extra ) {- $.extend(data, extra);- }- modifyChild({type: "modifyChild"}, data);- }- },- /**- * Trigger `modifyChild` event on node.parent(!).- * @param {string} operation Type of change: 'add', 'remove', 'rename', 'move', 'data', ...- * @param {object} [extra]- */- triggerModify: function(operation, extra){- this.parent.triggerModifyChild(operation, this, extra);- },- /** Call fn(node) for all child nodes.<br>- * Stop iteration, if fn() returns false. Skip current branch, if fn() returns "skip".<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and- * its children only.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visit: function(fn, includeSelf) {- var i, l,- res = true,- children = this.children;-- if( includeSelf === true ) {- res = fn(this);- if( res === false || res === "skip" ){- return res;- }- }- if(children){- for(i=0, l=children.length; i<l; i++){- res = children[i].visit(fn, true);- if( res === false ){- break;- }- }- }- return res;- },- /** Call fn(node) for all child nodes and recursively load lazy children.<br>- * <b>Note:</b> If you need this method, you probably should consider to review- * your architecture! Recursivley loading nodes is a perfect way for lazy- * programmers to flood the server with requests ;-)- *- * @param {function} [fn] optional callback function.- * Return false to stop iteration, return "skip" to skip this node and- * its children only.- * @param {boolean} [includeSelf=false]- * @returns {$.Promise}- * @since 2.4- */- visitAndLoad: function(fn, includeSelf, _recursion) {- var dfd, res, loaders,- node = this;-- // node.debug("visitAndLoad");- if( fn && includeSelf === true ) {- res = fn(node);- if( res === false || res === "skip" ) {- return _recursion ? res : _getResolvedPromise();- }- }- if( !node.children && !node.lazy ) {- return _getResolvedPromise();- }- dfd = new $.Deferred();- loaders = [];- // node.debug("load()...");- node.load().done(function(){- // node.debug("load()... done.");- for(var i=0, l=node.children.length; i<l; i++){- res = node.children[i].visitAndLoad(fn, true, true);- if( res === false ) {- dfd.reject();- break;- } else if ( res !== "skip" ) {- loaders.push(res); // Add promise to the list- }- }- $.when.apply(this, loaders).then(function(){- dfd.resolve();- });- });- return dfd.promise();- },- /** Call fn(node) for all parent nodes, bottom-up, including invisible system root.<br>- * Stop iteration, if fn() returns false.<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and children only.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visitParents: function(fn, includeSelf) {- // Visit parent nodes (bottom up)- if(includeSelf && fn(this) === false){- return false;- }- var p = this.parent;- while( p ) {- if(fn(p) === false){- return false;- }- p = p.parent;- }- return true;- },- /** Call fn(node) for all sibling nodes.<br>- * Stop iteration, if fn() returns false.<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visitSiblings: function(fn, includeSelf) {- var i, l, n,- ac = this.parent.children;-- for (i=0, l=ac.length; i<l; i++) {- n = ac[i];- if ( includeSelf || n !== this ){- if( fn(n) === false ) {- return false;- }- }- }- return true;- },- /** Write warning to browser console (prepending node info)- *- * @param {*} msg string or object or array of such- */- warn: function(msg){- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("warn", arguments);- }-};---/* *****************************************************************************- * Fancytree- */-/**- * Construct a new tree object.- *- * @class Fancytree- * @classdesc The controller behind a fancytree.- * This class also contains 'hook methods': see {@link Fancytree_Hooks}.- *- * @param {Widget} widget- *- * @property {string} _id Automatically generated unique tree instance ID, e.g. "1".- * @property {string} _ns Automatically generated unique tree namespace, e.g. ".fancytree-1".- * @property {FancytreeNode} activeNode Currently active node or null.- * @property {string} ariaPropName Property name of FancytreeNode that contains the element which will receive the aria attributes.- * Typically "li", but "tr" for table extension.- * @property {jQueryObject} $container Outer <ul> element (or <table> element for ext-table).- * @property {jQueryObject} $div A jQuery object containing the element used to instantiate the tree widget (`widget.element`)- * @property {object} data Metadata, i.e. properties that may be passed to `source` in addition to a children array.- * @property {object} ext Hash of all active plugin instances.- * @property {FancytreeNode} focusNode Currently focused node or null.- * @property {FancytreeNode} lastSelectedNode Used to implement selectMode 1 (single select)- * @property {string} nodeContainerAttrName Property name of FancytreeNode that contains the outer element of single nodes.- * Typically "li", but "tr" for table extension.- * @property {FancytreeOptions} options Current options, i.e. default options + options passed to constructor.- * @property {FancytreeNode} rootNode Invisible system root node.- * @property {string} statusClassPropName Property name of FancytreeNode that contains the element which will receive the status classes.- * Typically "span", but "tr" for table extension.- * @property {object} widget Base widget instance.- */-function Fancytree(widget) {- this.widget = widget;- this.$div = widget.element;- this.options = widget.options;- if( this.options ) {- if( $.isFunction(this.options.lazyload ) && !$.isFunction(this.options.lazyLoad) ) {- this.options.lazyLoad = function() {- FT.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead.");- return widget.options.lazyload.apply(this, arguments);- };- }- if( $.isFunction(this.options.loaderror) ) {- $.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead.");- }- if( this.options.fx !== undefined ) {- FT.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30.");- }- if( this.options.removeNode !== undefined ) {- $.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).");- }- }- this.ext = {}; // Active extension instances- // allow to init tree.data.foo from <div data-foo=''>- this.data = _getElementDataAsDict(this.$div);- // TODO: use widget.uuid instead?- this._id = $.ui.fancytree._nextId++;- // TODO: use widget.eventNamespace instead?- this._ns = ".fancytree-" + this._id; // append for namespaced events- this.activeNode = null;- this.focusNode = null;- this._hasFocus = null;- this._enableUpdate = true;- // this._dirtyRoots = null;- this.lastSelectedNode = null;- this.systemFocusElement = null;- this.lastQuicksearchTerm = "";- this.lastQuicksearchTime = 0;-- this.statusClassPropName = "span";- this.ariaPropName = "li";- this.nodeContainerAttrName = "li";-- // Remove previous markup if any- this.$div.find(">ul.fancytree-container").remove();-- // Create a node without parent.- var fakeParent = { tree: this },- $ul;- this.rootNode = new FancytreeNode(fakeParent, {- title: "root",- key: "root_" + this._id,- children: null,- expanded: true- });- this.rootNode.parent = null;-- // Create root markup- $ul = $("<ul>", {- "class": "ui-fancytree fancytree-container fancytree-plain"- }).appendTo(this.$div);- this.$container = $ul;- this.rootNode.ul = $ul[0];-- if(this.options.debugLevel == null){- this.options.debugLevel = FT.debugLevel;- }- // // Add container to the TAB chain- // // See http://www.w3.org/TR/wai-aria-practices/#focus_activedescendant- // // #577: Allow to set tabindex to "0", "-1" and ""- // this.$container.attr("tabindex", this.options.tabindex);-- // if( this.options.rtl ) {- // this.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- // // }else{- // // this.$container.attr("DIR", null).removeClass("fancytree-rtl");- // }- // if(this.options.aria){- // this.$container.attr("role", "tree");- // if( this.options.selectMode !== 1 ) {- // this.$container.attr("aria-multiselectable", true);- // }- // }-}---Fancytree.prototype = /** @lends Fancytree# */{- /* Return a context object that can be re-used for _callHook().- * @param {Fancytree | FancytreeNode | EventData} obj- * @param {Event} originalEvent- * @param {Object} extra- * @returns {EventData}- */- _makeHookContext: function(obj, originalEvent, extra) {- var ctx, tree;- if(obj.node !== undefined){- // obj is already a context object- if(originalEvent && obj.originalEvent !== originalEvent){- $.error("invalid args");- }- ctx = obj;- }else if(obj.tree){- // obj is a FancytreeNode- tree = obj.tree;- ctx = { node: obj, tree: tree, widget: tree.widget, options: tree.widget.options, originalEvent: originalEvent };- }else if(obj.widget){- // obj is a Fancytree- ctx = { node: null, tree: obj, widget: obj.widget, options: obj.widget.options, originalEvent: originalEvent };- }else{- $.error("invalid args");- }- if(extra){- $.extend(ctx, extra);- }- return ctx;- },- /* Trigger a hook function: funcName(ctx, [...]).- *- * @param {string} funcName- * @param {Fancytree|FancytreeNode|EventData} contextObject- * @param {any} [_extraArgs] optional additional arguments- * @returns {any}- */- _callHook: function(funcName, contextObject, _extraArgs) {- var ctx = this._makeHookContext(contextObject),- fn = this[funcName],- args = Array.prototype.slice.call(arguments, 2);- if(!$.isFunction(fn)){- $.error("_callHook('" + funcName + "') is not a function");- }- args.unshift(ctx);-// this.debug("_hook", funcName, ctx.node && ctx.node.toString() || ctx.tree.toString(), args);- return fn.apply(this, args);- },- /* Check if current extensions dependencies are met and throw an error if not.- *- * This method may be called inside the `treeInit` hook for custom extensions.- *- * @param {string} extension name of the required extension- * @param {boolean} [required=true] pass `false` if the extension is optional, but we want to check for order if it is present- * @param {boolean} [before] `true` if `name` must be included before this, `false` otherwise (use `null` if order doesn't matter)- * @param {string} [message] optional error message (defaults to a descriptve error message)- */- _requireExtension: function(name, required, before, message) {- before = !!before;- var thisName = this._local.name,- extList = this.options.extensions,- isBefore = $.inArray(name, extList) < $.inArray(thisName, extList),- isMissing = required && this.ext[name] == null,- badOrder = !isMissing && before != null && (before !== isBefore);-- _assert(thisName && thisName !== name, "invalid or same name");-- if( isMissing || badOrder ){- if( !message ){- if( isMissing || required ){- message = "'" + thisName + "' extension requires '" + name + "'";- if( badOrder ){- message += " to be registered " + (before ? "before" : "after") + " itself";- }- }else{- message = "If used together, `" + name + "` must be registered " + (before ? "before" : "after") + " `" + thisName + "`";- }- }- $.error(message);- return false;- }- return true;- },- /** Activate node with a given key and fire focus and activate events.- *- * A prevously activated node will be deactivated.- * If activeVisible option is set, all parents will be expanded as necessary.- * Pass key = false, to deactivate the current node only.- * @param {string} key- * @returns {FancytreeNode} activated node (null, if not found)- */- activateKey: function(key) {- var node = this.getNodeByKey(key);- if(node){- node.setActive();- }else if(this.activeNode){- this.activeNode.setActive(false);- }- return node;- },- /** (experimental) Add child status nodes that indicate 'More...', ....- * @param {boolean|object} node optional node definition. Pass `false` to remove all paging nodes.- * @param {string} [mode='append'] 'child'|firstChild'- * @since 2.15- */- addPagingNode: function(node, mode){- return this.rootNode.addPagingNode(node, mode);- },- /** (experimental) Modify existing data model.- *- * @param {Array} patchList array of [key, NodePatch] arrays- * @returns {$.Promise} resolved, when all patches have been applied- * @see TreePatch- */- applyPatch: function(patchList) {- var dfd, i, p2, key, patch, node,- patchCount = patchList.length,- deferredList = [];-- for(i=0; i<patchCount; i++){- p2 = patchList[i];- _assert(p2.length === 2, "patchList must be an array of length-2-arrays");- key = p2[0];- patch = p2[1];- node = (key === null) ? this.rootNode : this.getNodeByKey(key);- if(node){- dfd = new $.Deferred();- deferredList.push(dfd);- node.applyPatch(patch).always(_makeResolveFunc(dfd, node));- }else{- this.warn("could not find node with key '" + key + "'");- }- }- // Return a promise that is resolved, when ALL patches were applied- return $.when.apply($, deferredList).promise();- },- /* TODO: implement in dnd extension- cancelDrag: function() {- var dd = $.ui.ddmanager.current;- if(dd){- dd.cancel();- }- },- */- /** Remove all nodes.- * @since 2.14- */- clear: function(source) {- this._callHook("treeClear", this);- },- /** Return the number of nodes.- * @returns {integer}- */- count: function() {- return this.rootNode.countChildren();- },- /** Write to browser console if debugLevel >= 2 (prepending tree name)- *- * @param {*} msg string or object or array of such- */- debug: function(msg){- if( this.options.debugLevel >= 2 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("log", arguments);- }- },- // TODO: disable()- // TODO: enable()- /** Temporarily suppress rendering to improve performance on bulk-updates.- *- * @param {boolean} flag- * @returns {boolean} previous status- * @since 2.19- */- enableUpdate: function(flag) {- flag = ( flag !== false );- /*jshint -W018 */ // Confusing use of '!'- if ( !!this._enableUpdate === !!flag ) {- return flag;- }- /*jshint +W018 */- this._enableUpdate = flag;- if ( flag ) {- this.debug("enableUpdate(true): redraw "); //, this._dirtyRoots);- this.render();- } else {- // this._dirtyRoots = null;- this.debug("enableUpdate(false)...");- }- return !flag; // return previous value- },- /**Find all nodes that matches condition.- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode[]} array of nodes (may be empty)- * @see FancytreeNode#findAll- * @since 2.12- */- findAll: function(match) {- return this.rootNode.findAll(match);- },- /**Find first node that matches condition.- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode} matching node or null- * @see FancytreeNode#findFirst- * @since 2.12- */- findFirst: function(match) {- return this.rootNode.findFirst(match);- },- /** Find the next visible node that starts with `match`, starting at `startNode`- * and wrap-around at the end.- *- * @param {string|function} match- * @param {FancytreeNode} [startNode] defaults to first node- * @returns {FancytreeNode} matching node or null- */- findNextNode: function(match, startNode, visibleOnly) {- var stopNode = null,- parentChildren = startNode.parent.children,- matchingNode = null,- walkVisible = function(parent, idx, fn) {- var i, grandParent,- parentChildren = parent.children,- siblingCount = parentChildren.length,- node = parentChildren[idx];- // visit node itself- if( node && fn(node) === false ) {- return false;- }- // visit descendants- if( node && node.children && node.expanded ) {- if( walkVisible(node, 0, fn) === false ) {- return false;- }- }- // visit subsequent siblings- for( i = idx + 1; i < siblingCount; i++ ) {- if( walkVisible(parent, i, fn) === false ) {- return false;- }- }- // visit parent's subsequent siblings- grandParent = parent.parent;- if( grandParent ) {- return walkVisible(grandParent, grandParent.children.indexOf(parent) + 1, fn);- } else {- // wrap-around: restart with first node- return walkVisible(parent, 0, fn);- }- };-- match = (typeof match === "string") ? _makeNodeTitleStartMatcher(match) : match;- startNode = startNode || this.getFirstChild();-- walkVisible(startNode.parent, parentChildren.indexOf(startNode), function(node){- // Stop iteration if we see the start node a second time- if( node === stopNode ) {- return false;- }- stopNode = stopNode || node;- // Ignore nodes hidden by a filter- if( ! $(node.span).is(":visible") ) {- node.debug("quicksearch: skipping hidden node");- return;- }- // Test if we found a match, but search for a second match if this- // was the currently active node- if( match(node) ) {- // node.debug("quicksearch match " + node.title, startNode);- matchingNode = node;- if( matchingNode !== startNode ) {- return false;- }- }- });- return matchingNode;- },- // TODO: fromDict- /**- * Generate INPUT elements that can be submitted with html forms.- *- * In selectMode 3 only the topmost selected nodes are considered, unless- * `opts.stopOnParents: false` is passed.- *- * @example- * // Generate input elements for active and selected nodes- * tree.generateFormElements();- * // Generate input elements selected nodes, using a custom `name` attribute- * tree.generateFormElements("cust_sel", false);- * // Generate input elements using a custom filter- * tree.generateFormElements(true, true, { filter: function(node) {- * return node.isSelected() && node.data.yes;- * }});- *- * @param {boolean | string} [selected=true] Pass false to disable, pass a string to override the field name (default: 'ft_ID[]')- * @param {boolean | string} [active=true] Pass false to disable, pass a string to override the field name (default: 'ft_ID_active')- * @param {object} [opts] default { filter: null, stopOnParents: true }- */- generateFormElements: function(selected, active, opts) {- opts = opts || {};-- var nodeList,- selectedName = (typeof selected === "string") ? selected : "ft_" + this._id + "[]",- activeName = (typeof active === "string") ? active : "ft_" + this._id + "_active",- id = "fancytree_result_" + this._id,- $result = $("#" + id),- stopOnParents = this.options.selectMode === 3 && opts.stopOnParents !== false;-- if($result.length){- $result.empty();- }else{- $result = $("<div>", {- id: id- }).hide().insertAfter(this.$container);- }- if(active !== false && this.activeNode){- $result.append($("<input>", {- type: "radio",- name: activeName,- value: this.activeNode.key,- checked: true- }));- }- function _appender( node ) {- $result.append($("<input>", {- type: "checkbox",- name: selectedName,- value: node.key,- checked: true- }));- }- if ( opts.filter ) {- this.visit(function(node) {- var res = opts.filter(node);- if( res === "skip" ) { return res; }- if ( res !== false ) {- _appender(node);- }- });- } else if ( selected !== false ) {- nodeList = this.getSelectedNodes(stopOnParents);- $.each(nodeList, function(idx, node) {- _appender(node);- });- }- },- /**- * Return the currently active node or null.- * @returns {FancytreeNode}- */- getActiveNode: function() {- return this.activeNode;- },- /** Return the first top level node if any (not the invisible root node).- * @returns {FancytreeNode | null}- */- getFirstChild: function() {- return this.rootNode.getFirstChild();- },- /**- * Return node that has keyboard focus or null.- * @returns {FancytreeNode}- */- getFocusNode: function() {- return this.focusNode;- },- /**- * Return node with a given key or null if not found.- * @param {string} key- * @param {FancytreeNode} [searchRoot] only search below this node- * @returns {FancytreeNode | null}- */- getNodeByKey: function(key, searchRoot) {- // Search the DOM by element ID (assuming this is faster than traversing all nodes).- // $("#...") has problems, if the key contains '.', so we use getElementById()- var el, match;- if(!searchRoot){- el = document.getElementById(this.options.idPrefix + key);- if( el ){- return el.ftnode ? el.ftnode : null;- }- }- // Not found in the DOM, but still may be in an unrendered part of tree- // TODO: optimize with specialized loop- // TODO: consider keyMap?- searchRoot = searchRoot || this.rootNode;- match = null;- searchRoot.visit(function(node){-// window.console.log("getNodeByKey(" + key + "): ", node.key);- if(node.key === key) {- match = node;- return false;- }- }, true);- return match;- },- /** Return the invisible system root node.- * @returns {FancytreeNode}- */- getRootNode: function() {- return this.rootNode;- },- /**- * Return an array of selected nodes.- * @param {boolean} [stopOnParents=false] only return the topmost selected- * node (useful with selectMode 3)- * @returns {FancytreeNode[]}- */- getSelectedNodes: function(stopOnParents) {- return this.rootNode.getSelectedNodes(stopOnParents);- },- /** Return true if the tree control has keyboard focus- * @returns {boolean}- */- hasFocus: function(){- return !!this._hasFocus;- },- /** Write to browser console if debugLevel >= 1 (prepending tree name)- * @param {*} msg string or object or array of such- */- info: function(msg){- if( this.options.debugLevel >= 1 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("info", arguments);- }- },-/*- TODO: isInitializing: function() {- return ( this.phase=="init" || this.phase=="postInit" );- },- TODO: isReloading: function() {- return ( this.phase=="init" || this.phase=="postInit" ) && this.options.persist && this.persistence.cookiesFound;- },- TODO: isUserEvent: function() {- return ( this.phase=="userEvent" );- },-*/-- /**- * Make sure that a node with a given ID is loaded, by traversing - and- * loading - its parents. This method is ment for lazy hierarchies.- * A callback is executed for every node as we go.- * @example- * tree.loadKeyPath("/_3/_23/_26/_27", function(node, status){- * if(status === "loaded") {- * console.log("loaded intermiediate node " + node);- * }else if(status === "ok") {- * node.activate();- * }- * });- *- * @param {string | string[]} keyPathList one or more key paths (e.g. '/3/2_1/7')- * @param {function} callback callback(node, status) is called for every visited node ('loading', 'loaded', 'ok', 'error')- * @returns {$.Promise}- */- loadKeyPath: function(keyPathList, callback, _rootNode) {- var deferredList, dfd, i, path, key, loadMap, node, root, segList,- sep = this.options.keyPathSeparator,- self = this;-- callback = callback || $.noop;- if(!$.isArray(keyPathList)){- keyPathList = [keyPathList];- }- // Pass 1: handle all path segments for nodes that are already loaded- // Collect distinct top-most lazy nodes in a map- loadMap = {};-- for(i=0; i<keyPathList.length; i++){- root = _rootNode || this.rootNode;- path = keyPathList[i];- // strip leading slash- if(path.charAt(0) === sep){- path = path.substr(1);- }- // traverse and strip keys, until we hit a lazy, unloaded node- segList = path.split(sep);- while(segList.length){- key = segList.shift();-// node = _findDirectChild(root, key);- node = root._findDirectChild(key);- if(!node){- this.warn("loadKeyPath: key not found: " + key + " (parent: " + root + ")");- callback.call(this, key, "error");- break;- }else if(segList.length === 0){- callback.call(this, node, "ok");- break;- }else if(!node.lazy || (node.hasChildren() !== undefined )){- callback.call(this, node, "loaded");- root = node;- }else{- callback.call(this, node, "loaded");-// segList.unshift(key);- if(loadMap[key]){- loadMap[key].push(segList.join(sep));- }else{- loadMap[key] = [segList.join(sep)];- }- break;- }- }- }-// alert("loadKeyPath: loadMap=" + JSON.stringify(loadMap));- // Now load all lazy nodes and continue itearation for remaining paths- deferredList = [];- // Avoid jshint warning 'Don't make functions within a loop.':- function __lazyload(key, node, dfd){- callback.call(self, node, "loading");- node.load().done(function(){- self.loadKeyPath.call(self, loadMap[key], callback, node).always(_makeResolveFunc(dfd, self));- }).fail(function(errMsg){- self.warn("loadKeyPath: error loading: " + key + " (parent: " + root + ")");- callback.call(self, node, "error");- dfd.reject();- });- }- for(key in loadMap){- node = root._findDirectChild(key);- if (node == null) { // #576- node = self.getNodeByKey(key);- }- dfd = new $.Deferred();- deferredList.push(dfd);- __lazyload(key, node, dfd);- }- // Return a promise that is resolved, when ALL paths were loaded- return $.when.apply($, deferredList).promise();- },- /** Re-fire beforeActivate, activate, and (optional) focus events.- * Calling this method in the `init` event, will activate the node that- * was marked 'active' in the source data, and optionally set the keyboard- * focus.- * @param [setFocus=false]- */- reactivate: function(setFocus) {- var res,- node = this.activeNode;-- if( !node ) {- return _getResolvedPromise();- }- this.activeNode = null; // Force re-activating- res = node.setActive(true, {noFocus: true});- if( setFocus ){- node.setFocus();- }- return res;- },- /** Reload tree from source and return a promise.- * @param [source] optional new source (defaults to initial source data)- * @returns {$.Promise}- */- reload: function(source) {- this._callHook("treeClear", this);- return this._callHook("treeLoad", this, source);- },- /**Render tree (i.e. create DOM elements for all top-level nodes).- * @param {boolean} [force=false] create DOM elemnts, even if parent is collapsed- * @param {boolean} [deep=false]- */- render: function(force, deep) {- return this.rootNode.render(force, deep);- },- // TODO: selectKey: function(key, select)- // TODO: serializeArray: function(stopOnParents)- /**- * @param {boolean} [flag=true]- */- setFocus: function(flag) {- return this._callHook("treeSetFocus", this, flag);- },- /**- * Return all nodes as nested list of {@link NodeData}.- *- * @param {boolean} [includeRoot=false] Returns the hidden system root node (and its children)- * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications- * @returns {Array | object}- * @see FancytreeNode#toDict- */- toDict: function(includeRoot, callback){- var res = this.rootNode.toDict(true, callback);- return includeRoot ? res : res.children;- },- /* Implicitly called for string conversions.- * @returns {string}- */- toString: function(){- return "<Fancytree(#" + this._id + ")>";- },- /* _trigger a widget event with additional node ctx.- * @see EventData- */- _triggerNodeEvent: function(type, node, originalEvent, extra) {-// this.debug("_trigger(" + type + "): '" + ctx.node.title + "'", ctx);- var ctx = this._makeHookContext(node, originalEvent, extra),- res = this.widget._trigger(type, originalEvent, ctx);- if(res !== false && ctx.result !== undefined){- return ctx.result;- }- return res;- },- /* _trigger a widget event with additional tree data. */- _triggerTreeEvent: function(type, originalEvent, extra) {-// this.debug("_trigger(" + type + ")", ctx);- var ctx = this._makeHookContext(this, originalEvent, extra),- res = this.widget._trigger(type, originalEvent, ctx);-- if(res !== false && ctx.result !== undefined){- return ctx.result;- }- return res;- },- /** Call fn(node) for all nodes.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and children only.- * @returns {boolean} false, if the iterator was stopped.- */- visit: function(fn) {- return this.rootNode.visit(fn, false);- },- /** Write warning to browser console (prepending tree info)- *- * @param {*} msg string or object or array of such- */- warn: function(msg){- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("warn", arguments);- }-};--/**- * These additional methods of the {@link Fancytree} class are 'hook functions'- * that can be used and overloaded by extensions.- * (See <a href="https://github.com/mar10/fancytree/wiki/TutorialExtensions">writing extensions</a>.)- * @mixin Fancytree_Hooks- */-$.extend(Fancytree.prototype,- /** @lends Fancytree_Hooks# */- {- /** Default handling for mouse click events.- *- * @param {EventData} ctx- */- nodeClick: function(ctx) {- var activate, expand,- // event = ctx.originalEvent,- targetType = ctx.targetType,- node = ctx.node;--// this.debug("ftnode.onClick(" + event.type + "): ftnode:" + this + ", button:" + event.button + ", which: " + event.which, ctx);- // TODO: use switch- // TODO: make sure clicks on embedded <input> doesn't steal focus (see table sample)- if( targetType === "expander" ) {- if( node.isLoading() ) {- // #495: we probably got a click event while a lazy load is pending.- // The 'expanded' state is not yet set, so 'toggle' would expand- // and trigger lazyLoad again.- // It would be better to allow to collapse/expand the status node- // while loading (instead of ignoring), but that would require some- // more work.- node.debug("Got 2nd click while loading: ignored");- return;- }- // Clicking the expander icon always expands/collapses- this._callHook("nodeToggleExpanded", ctx);-- } else if( targetType === "checkbox" ) {- // Clicking the checkbox always (de)selects- this._callHook("nodeToggleSelected", ctx);- if( ctx.options.focusOnSelect ) { // #358- this._callHook("nodeSetFocus", ctx, true);- }-- } else {- // Honor `clickFolderMode` for- expand = false;- activate = true;- if( node.folder ) {- switch( ctx.options.clickFolderMode ) {- case 2: // expand only- expand = true;- activate = false;- break;- case 3: // expand and activate- activate = true;- expand = true; //!node.isExpanded();- break;- // else 1 or 4: just activate- }- }- if( activate ) {- this.nodeSetFocus(ctx);- this._callHook("nodeSetActive", ctx, true);- }- if( expand ) {- if(!activate){-// this._callHook("nodeSetFocus", ctx);- }-// this._callHook("nodeSetExpanded", ctx, true);- this._callHook("nodeToggleExpanded", ctx);- }- }- // Make sure that clicks stop, otherwise <a href='#'> jumps to the top- // if(event.target.localName === "a" && event.target.className === "fancytree-title"){- // event.preventDefault();- // }- // TODO: return promise?- },- /** Collapse all other children of same parent.- *- * @param {EventData} ctx- * @param {object} callOpts- */- nodeCollapseSiblings: function(ctx, callOpts) {- // TODO: return promise?- var ac, i, l,- node = ctx.node;-- if( node.parent ){- ac = node.parent.children;- for (i=0, l=ac.length; i<l; i++) {- if ( ac[i] !== node && ac[i].expanded ){- this._callHook("nodeSetExpanded", ac[i], false, callOpts);- }- }- }- },- /** Default handling for mouse douleclick events.- * @param {EventData} ctx- */- nodeDblclick: function(ctx) {- // TODO: return promise?- if( ctx.targetType === "title" && ctx.options.clickFolderMode === 4) {-// this.nodeSetFocus(ctx);-// this._callHook("nodeSetActive", ctx, true);- this._callHook("nodeToggleExpanded", ctx);- }- // TODO: prevent text selection on dblclicks- if( ctx.targetType === "title" ) {- ctx.originalEvent.preventDefault();- }- },- /** Default handling for mouse keydown events.- *- * NOTE: this may be called with node == null if tree (but no node) has focus.- * @param {EventData} ctx- */- nodeKeydown: function(ctx) {- // TODO: return promise?- var matchNode, stamp, res, focusNode,- event = ctx.originalEvent,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- which = event.which,- whichChar = String.fromCharCode(which),- clean = !(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey),- $target = $(event.target),- handled = true,- activate = !(event.ctrlKey || !opts.autoActivate );-- // (node || FT).debug("ftnode.nodeKeydown(" + event.type + "): ftnode:" + this + ", charCode:" + event.charCode + ", keyCode: " + event.keyCode + ", which: " + event.which);- // FT.debug("eventToString", which, '"' + String.fromCharCode(which) + '"', '"' + FT.eventToString(event) + '"');-- // Set focus to active (or first node) if no other node has the focus yet- if( !node ){- focusNode = (this.getActiveNode() || this.getFirstChild());- if (focusNode){- focusNode.setFocus();- node = ctx.node = this.focusNode;- node.debug("Keydown force focus on active node");- }- }-- if( opts.quicksearch && clean && /\w/.test(whichChar) &&- !SPECIAL_KEYCODES[which] && // #659- !$target.is(":input:enabled") ) {- // Allow to search for longer streaks if typed in quickly- stamp = new Date().getTime();- if( stamp - tree.lastQuicksearchTime > 500 ) {- tree.lastQuicksearchTerm = "";- }- tree.lastQuicksearchTime = stamp;- tree.lastQuicksearchTerm += whichChar;- // tree.debug("quicksearch find", tree.lastQuicksearchTerm);- matchNode = tree.findNextNode(tree.lastQuicksearchTerm, tree.getActiveNode());- if( matchNode ) {- matchNode.setActive();- }- event.preventDefault();- return;- }- switch( FT.eventToString(event) ) {- case "+":- case "=": // 187: '+' @ Chrome, Safari- tree.nodeSetExpanded(ctx, true);- break;- case "-":- tree.nodeSetExpanded(ctx, false);- break;- case "space":- if( node.isPagingNode() ) {- tree._triggerNodeEvent("clickPaging", ctx, event);- } else if(opts.checkbox){- tree.nodeToggleSelected(ctx);- }else{- tree.nodeSetActive(ctx, true);- }- break;- case "return":- tree.nodeSetActive(ctx, true);- break;- case "home":- case "end":- case "backspace":- case "left":- case "right":- case "up":- case "down":- res = node.navigate(event.which, activate, true);- break;- default:- handled = false;- }- if(handled){- event.preventDefault();- }- },--- // /** Default handling for mouse keypress events. */- // nodeKeypress: function(ctx) {- // var event = ctx.originalEvent;- // },-- // /** Trigger lazyLoad event (async). */- // nodeLazyLoad: function(ctx) {- // var node = ctx.node;- // if(this._triggerNodeEvent())- // },- /** Load child nodes (async).- *- * @param {EventData} ctx- * @param {object[]|object|string|$.Promise|function} source- * @returns {$.Promise} The deferred will be resolved as soon as the (ajax)- * data was rendered.- */- nodeLoadChildren: function(ctx, source) {- var ajax, delay, dfd,- tree = ctx.tree,- node = ctx.node,- requestId = new Date().getTime();-- if($.isFunction(source)){- source = source.call(tree, {type: "source"}, ctx);- _assert(!$.isFunction(source), "source callback must not return another function");- }- if(source.url){- if( node._requestId ) {- node.warn("Recursive load request #" + requestId + " while #" + node._requestId + " is pending.");- // } else {- // node.debug("Send load request #" + requestId);- }- // `source` is an Ajax options object- ajax = $.extend({}, ctx.options.ajax, source);- node._requestId = requestId;- if(ajax.debugDelay){- // simulate a slow server- delay = ajax.debugDelay;- if($.isArray(delay)){ // random delay range [min..max]- delay = delay[0] + Math.random() * (delay[1] - delay[0]);- }- node.warn("nodeLoadChildren waiting debugDelay " + Math.round(delay) + " ms ...");- ajax.debugDelay = false;- dfd = $.Deferred(function (dfd) {- setTimeout(function () {- $.ajax(ajax)- .done(function () { dfd.resolveWith(this, arguments); })- .fail(function () { dfd.rejectWith(this, arguments); });- }, delay);- });- }else{- dfd = $.ajax(ajax);- }-- // Defer the deferred: we want to be able to reject, even if ajax- // resolved ok.- source = new $.Deferred();- dfd.done(function (data, textStatus, jqXHR) {- var errorObj, res;-- if((this.dataType === "json" || this.dataType === "jsonp") && typeof data === "string"){- $.error("Ajax request returned a string (did you get the JSON dataType wrong?).");- }- if( node._requestId && node._requestId > requestId ) {- // The expected request time stamp is later than `requestId`- // (which was kept as as closure variable to this handler function)- // node.warn("Ignored load response for obsolete request #" + requestId + " (expected #" + node._requestId + ")");- source.rejectWith(this, [RECURSIVE_REQUEST_ERROR]);- return;- // } else {- // node.debug("Response returned for load request #" + requestId);- }- // postProcess is similar to the standard ajax dataFilter hook,- // but it is also called for JSONP- if( ctx.options.postProcess ){- try {- res = tree._triggerNodeEvent("postProcess", ctx, ctx.originalEvent, {- response: data, error: null, dataType: this.dataType- });- } catch(e) {- res = { error: e, message: "" + e, details: "postProcess failed"};- }- if( res.error ) {- errorObj = $.isPlainObject(res.error) ? res.error : {message: res.error};- errorObj = tree._makeHookContext(node, null, errorObj);- source.rejectWith(this, [errorObj]);- return;- }- data = $.isArray(res) ? res : data;-- } else if (data && data.hasOwnProperty("d") && ctx.options.enableAspx ) {- // Process ASPX WebMethod JSON object inside "d" property- data = (typeof data.d === "string") ? $.parseJSON(data.d) : data.d;- }- source.resolveWith(this, [data]);- }).fail(function (jqXHR, textStatus, errorThrown) {- var errorObj = tree._makeHookContext(node, null, {- error: jqXHR,- args: Array.prototype.slice.call(arguments),- message: errorThrown,- details: jqXHR.status + ": " + errorThrown- });- source.rejectWith(this, [errorObj]);- });- }- // #383: accept and convert ECMAScript 6 Promise- if( $.isFunction(source.then) && $.isFunction(source["catch"]) ) {- dfd = source;- source = new $.Deferred();- dfd.then(function(value){- source.resolve(value);- }, function(reason){- source.reject(reason);- });- }- if($.isFunction(source.promise)){- // `source` is a deferred, i.e. ajax request- // _assert(!node.isLoading(), "recursive load");- tree.nodeSetStatus(ctx, "loading");-- source.done(function (children) {- tree.nodeSetStatus(ctx, "ok");- node._requestId = null;- }).fail(function(error){- var ctxErr;-- if ( error === RECURSIVE_REQUEST_ERROR ) {- node.warn("Ignored response for obsolete load request #" + requestId + " (expected #" + node._requestId + ")");- return;- } else if (error.node && error.error && error.message) {- // error is already a context object- ctxErr = error;- } else {- ctxErr = tree._makeHookContext(node, null, {- error: error, // it can be jqXHR or any custom error- args: Array.prototype.slice.call(arguments),- message: error ? (error.message || error.toString()) : ""- });- if( ctxErr.message === "[object Object]" ) {- ctxErr.message = "";- }- }- node.warn("Load children failed (" + ctxErr.message + ")", ctxErr);- if( tree._triggerNodeEvent("loadError", ctxErr, null) !== false ) {- tree.nodeSetStatus(ctx, "error", ctxErr.message, ctxErr.details);- }- });- }- // $.when(source) resolves also for non-deferreds- return $.when(source).done(function(children){- var metaData;-- if( $.isPlainObject(children) ){- // We got {foo: 'abc', children: [...]}- // Copy extra properties to tree.data.foo- _assert(node.isRootNode(), "source may only be an object for root nodes (expecting an array of child objects otherwise)");- _assert($.isArray(children.children), "if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')");- metaData = children;- children = children.children;- delete metaData.children;- $.extend(tree.data, metaData);- }- _assert($.isArray(children), "expected array of children");- node._setChildren(children);- // trigger fancytreeloadchildren- tree._triggerNodeEvent("loadChildren", node);- });- },- /** [Not Implemented] */- nodeLoadKeyPath: function(ctx, keyPathList) {- // TODO: implement and improve- // http://code.google.com/p/dynatree/issues/detail?id=222- },- /**- * Remove a single direct child of ctx.node.- * @param {EventData} ctx- * @param {FancytreeNode} childNode dircect child of ctx.node- */- nodeRemoveChild: function(ctx, childNode) {- var idx,- node = ctx.node,- // opts = ctx.options,- subCtx = $.extend({}, ctx, {node: childNode}),- children = node.children;-- // FT.debug("nodeRemoveChild()", node.toString(), childNode.toString());-- if( children.length === 1 ) {- _assert(childNode === children[0], "invalid single child");- return this.nodeRemoveChildren(ctx);- }- if( this.activeNode && (childNode === this.activeNode || this.activeNode.isDescendantOf(childNode))){- this.activeNode.setActive(false); // TODO: don't fire events- }- if( this.focusNode && (childNode === this.focusNode || this.focusNode.isDescendantOf(childNode))){- this.focusNode = null;- }- // TODO: persist must take care to clear select and expand cookies- this.nodeRemoveMarkup(subCtx);- this.nodeRemoveChildren(subCtx);- idx = $.inArray(childNode, children);- _assert(idx >= 0, "invalid child");- // Notify listeners- node.triggerModifyChild("remove", childNode);- // Unlink to support GC- childNode.visit(function(n){- n.parent = null;- }, true);- this._callHook("treeRegisterNode", this, false, childNode);- // remove from child list- children.splice(idx, 1);- },- /**Remove HTML markup for all descendents of ctx.node.- * @param {EventData} ctx- */- nodeRemoveChildMarkup: function(ctx) {- var node = ctx.node;-- // FT.debug("nodeRemoveChildMarkup()", node.toString());- // TODO: Unlink attr.ftnode to support GC- if(node.ul){- if( node.isRootNode() ) {- $(node.ul).empty();- } else {- $(node.ul).remove();- node.ul = null;- }- node.visit(function(n){- n.li = n.ul = null;- });- }- },- /**Remove all descendants of ctx.node.- * @param {EventData} ctx- */- nodeRemoveChildren: function(ctx) {- var subCtx,- tree = ctx.tree,- node = ctx.node,- children = node.children;- // opts = ctx.options;-- // FT.debug("nodeRemoveChildren()", node.toString());- if(!children){- return;- }- if( this.activeNode && this.activeNode.isDescendantOf(node)){- this.activeNode.setActive(false); // TODO: don't fire events- }- if( this.focusNode && this.focusNode.isDescendantOf(node)){- this.focusNode = null;- }- // TODO: persist must take care to clear select and expand cookies- this.nodeRemoveChildMarkup(ctx);- // Unlink children to support GC- // TODO: also delete this.children (not possible using visit())- subCtx = $.extend({}, ctx);- node.triggerModifyChild("remove", null);- node.visit(function(n){- n.parent = null;- tree._callHook("treeRegisterNode", tree, false, n);- });- if( node.lazy ){- // 'undefined' would be interpreted as 'not yet loaded' for lazy nodes- node.children = [];- } else{- node.children = null;- }- if( !node.isRootNode() ) {- node.expanded = false; // #449, #459- }- this.nodeRenderStatus(ctx);- },- /**Remove HTML markup for ctx.node and all its descendents.- * @param {EventData} ctx- */- nodeRemoveMarkup: function(ctx) {- var node = ctx.node;- // FT.debug("nodeRemoveMarkup()", node.toString());- // TODO: Unlink attr.ftnode to support GC- if(node.li){- $(node.li).remove();- node.li = null;- }- this.nodeRemoveChildMarkup(ctx);- },- /**- * Create `<li><span>..</span> .. </li>` tags for this node.- *- * This method takes care that all HTML markup is created that is required- * to display this node in its current state.- *- * Call this method to create new nodes, or after the strucuture- * was changed (e.g. after moving this node or adding/removing children)- * nodeRenderTitle() and nodeRenderStatus() are implied.- *- * <code>- * <li id='KEY' ftnode=NODE>- * <span class='fancytree-node fancytree-expanded fancytree-has-children fancytree-lastsib fancytree-exp-el fancytree-ico-e'>- * <span class="fancytree-expander"></span>- * <span class="fancytree-checkbox"></span> // only present in checkbox mode- * <span class="fancytree-icon"></span>- * <a href="#" class="fancytree-title"> Node 1 </a>- * </span>- * <ul> // only present if node has children- * <li id='KEY' ftnode=NODE> child1 ... </li>- * <li id='KEY' ftnode=NODE> child2 ... </li>- * </ul>- * </li>- * </code>- *- * @param {EventData} ctx- * @param {boolean} [force=false] re-render, even if html markup was already created- * @param {boolean} [deep=false] also render all descendants, even if parent is collapsed- * @param {boolean} [collapsed=false] force root node to be collapsed, so we can apply animated expand later- */- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- /* This method must take care of all cases where the current data mode- * (i.e. node hierarchy) does not match the current markup.- *- * - node was not yet rendered:- * create markup- * - node was rendered: exit fast- * - children have been added- * - children have been removed- */- var childLI, childNode1, childNode2, i, l, next, subCtx,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- aria = opts.aria,- firstTime = false,- parent = node.parent,- isRootNode = !parent,- children = node.children,- successorLi = null;- // FT.debug("nodeRender(" + !!force + ", " + !!deep + ")", node.toString());-- if( tree._enableUpdate === false ) {- // tree.debug("no render", tree._enableUpdate);- return;- }- if( ! isRootNode && ! parent.ul ) {- // Calling node.collapse on a deep, unrendered node- return;- }- _assert(isRootNode || parent.ul, "parent UL must exist");-- // Render the node- if( !isRootNode ){- // Discard markup on force-mode, or if it is not linked to parent <ul>- if(node.li && (force || (node.li.parentNode !== node.parent.ul) ) ){- if( node.li.parentNode === node.parent.ul ){- // #486: store following node, so we can insert the new markup there later- successorLi = node.li.nextSibling;- }else{- // May happen, when a top-level node was dropped over another- this.debug("Unlinking " + node + " (must be child of " + node.parent + ")");- }-// this.debug("nodeRemoveMarkup...");- this.nodeRemoveMarkup(ctx);- }- // Create <li><span /> </li>-// node.debug("render...");- if( !node.li ) {-// node.debug("render... really");- firstTime = true;- node.li = document.createElement("li");- node.li.ftnode = node;-- if( node.key && opts.generateIds ){- node.li.id = opts.idPrefix + node.key;- }- node.span = document.createElement("span");- node.span.className = "fancytree-node";- if( aria && !node.tr ) {- $(node.li).attr("role", "treeitem");- }- node.li.appendChild(node.span);-- // Create inner HTML for the <span> (expander, checkbox, icon, and title)- this.nodeRenderTitle(ctx);-- // Allow tweaking and binding, after node was created for the first time- if ( opts.createNode ){- opts.createNode.call(tree, {type: "createNode"}, ctx);- }- }else{-// this.nodeRenderTitle(ctx);- this.nodeRenderStatus(ctx);- }- // Allow tweaking after node state was rendered- if ( opts.renderNode ){- opts.renderNode.call(tree, {type: "renderNode"}, ctx);- }- }-- // Visit child nodes- if( children ){- if( isRootNode || node.expanded || deep === true ) {- // Create a UL to hold the children- if( !node.ul ){- node.ul = document.createElement("ul");- if((collapsed === true && !_recursive) || !node.expanded){- // hide top UL, so we can use an animation to show it later- node.ul.style.display = "none";- }- if(aria){- $(node.ul).attr("role", "group");- }- if ( node.li ) { // issue #67- node.li.appendChild(node.ul);- } else {- node.tree.$div.append(node.ul);- }- }- // Add child markup- for(i=0, l=children.length; i<l; i++) {- subCtx = $.extend({}, ctx, {node: children[i]});- this.nodeRender(subCtx, force, deep, false, true);- }- // Remove <li> if nodes have moved to another parent- childLI = node.ul.firstChild;- while( childLI ){- childNode2 = childLI.ftnode;- if( childNode2 && childNode2.parent !== node ) {- node.debug("_fixParent: remove missing " + childNode2, childLI);- next = childLI.nextSibling;- childLI.parentNode.removeChild(childLI);- childLI = next;- }else{- childLI = childLI.nextSibling;- }- }- // Make sure, that <li> order matches node.children order.- childLI = node.ul.firstChild;- for(i=0, l=children.length-1; i<l; i++) {- childNode1 = children[i];- childNode2 = childLI.ftnode;- if( childNode1 !== childNode2 ) {- // node.debug("_fixOrder: mismatch at index " + i + ": " + childNode1 + " != " + childNode2);- node.ul.insertBefore(childNode1.li, childNode2.li);- } else {- childLI = childLI.nextSibling;- }- }- }- }else{- // No children: remove markup if any- if( node.ul ){-// alert("remove child markup for " + node);- this.warn("remove child markup for " + node);- this.nodeRemoveChildMarkup(ctx);- }- }- if( !isRootNode ){- // Update element classes according to node state- // this.nodeRenderStatus(ctx);- // Finally add the whole structure to the DOM, so the browser can render- if( firstTime ){- // #486: successorLi is set, if we re-rendered (i.e. discarded)- // existing markup, which we want to insert at the same position.- // (null is equivalent to append)-// parent.ul.appendChild(node.li);- parent.ul.insertBefore(node.li, successorLi);- }- }- },- /** Create HTML inside the node's outer <span> (i.e. expander, checkbox,- * icon, and title).- *- * nodeRenderStatus() is implied.- * @param {EventData} ctx- * @param {string} [title] optinal new title- */- nodeRenderTitle: function(ctx, title) {- // set node connector images, links and text- var checkbox, className, icon, nodeTitle, role, tabindex, tooltip,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- aria = opts.aria,- level = node.getLevel(),- ares = [];-- if(title !== undefined){- node.title = title;- }- if ( !node.span || tree._enableUpdate === false ) {- // Silently bail out if node was not rendered yet, assuming- // node.render() will be called as the node becomes visible- return;- }- // Connector (expanded, expandable or simple)- role = (aria && node.hasChildren() !== false) ? " role='button'" : "";- if( level < opts.minExpandLevel ) {- if( !node.lazy ) {- node.expanded = true;- }- if(level > 1){- ares.push("<span " + role + " class='fancytree-expander fancytree-expander-fixed'></span>");- }- // .. else (i.e. for root level) skip expander/connector alltogether- } else {- ares.push("<span " + role + " class='fancytree-expander'></span>");- }- // Checkbox mode- checkbox = FT.evalOption("checkbox", node, node, opts, false);-- if( checkbox && !node.isStatusNode() ) {- role = aria ? " role='checkbox'" : "";- className = "fancytree-checkbox";- if( checkbox === "radio" || (node.parent && node.parent.radiogroup) ) {- className += " fancytree-radio";- }- ares.push("<span " + role + " class='" + className + "'></span>");- }- // Folder or doctype icon- if( node.data.iconClass !== undefined ) { // 2015-11-16- // Handle / warn about backward compatibility- if( node.icon ) {- $.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead");- } else {- node.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead");- node.icon = node.data.iconClass;- }- }- // If opts.icon is a callback and returns something other than undefined, use that- // else if node.icon is a boolean or string, use that- // else if opts.icon is a boolean or string, use that- // else show standard icon (which may be different for folders or documents)- icon = FT.evalOption("icon", node, node, opts, true);- if( typeof icon !== "boolean" ) {- // icon is defined, but not true/false: must be a string- icon = "" + icon;- }- if( icon !== false ) {- role = aria ? " role='presentation'" : "";- if ( typeof icon === "string" ) {- if( TEST_IMG.test(icon) ) {- // node.icon is an image url. Prepend imagePath- icon = (icon.charAt(0) === "/") ? icon : ((opts.imagePath || "") + icon);- ares.push("<img src='" + icon + "' class='fancytree-icon' alt='' />");- } else {- ares.push("<span " + role + " class='fancytree-custom-icon " + icon + "'></span>");- }- } else {- // standard icon: theme css will take care of this- ares.push("<span " + role + " class='fancytree-icon'></span>");- }- }- // Node title- nodeTitle = "";- if ( opts.renderTitle ){- nodeTitle = opts.renderTitle.call(tree, {type: "renderTitle"}, ctx) || "";- }- if ( !nodeTitle ) {- tooltip = FT.evalOption("tooltip", node, node, opts, null);- if( tooltip === true ) {- tooltip = node.title;- }- // if( node.tooltip ) {- // tooltip = node.tooltip;- // } else if ( opts.tooltip ) {- // tooltip = opts.tooltip === true ? node.title : opts.tooltip.call(tree, node);- // }- tooltip = tooltip ? " title='" + _escapeTooltip(tooltip) + "'" : "";- tabindex = opts.titlesTabbable ? " tabindex='0'" : "";-- nodeTitle = "<span class='fancytree-title'" +- tooltip + tabindex + ">" +- (opts.escapeTitles ? _escapeHtml(node.title) : node.title) +- "</span>";- }- ares.push(nodeTitle);- // Note: this will trigger focusout, if node had the focus- //$(node.span).html(ares.join("")); // it will cleanup the jQuery data currently associated with SPAN (if any), but it executes more slowly- node.span.innerHTML = ares.join("");- // Update CSS classes- this.nodeRenderStatus(ctx);- if ( opts.enhanceTitle ){- ctx.$title = $(">span.fancytree-title", node.span);- nodeTitle = opts.enhanceTitle.call(tree, {type: "enhanceTitle"}, ctx) || "";- }- },- /** Update element classes according to node state.- * @param {EventData} ctx- */- nodeRenderStatus: function(ctx) {- // Set classes for current status- var $ariaElem,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,-// nodeContainer = node[tree.nodeContainerAttrName],- hasChildren = node.hasChildren(),- isLastSib = node.isLastSibling(),- aria = opts.aria,- cn = opts._classNames,- cnList = [],- statusElem = node[tree.statusClassPropName];-- if( !statusElem || tree._enableUpdate === false ){- // if this function is called for an unrendered node, ignore it (will be updated on nect render anyway)- return;- }- if( aria ) {- $ariaElem = $(node.tr || node.li);- }- // Build a list of class names that we will add to the node <span>- cnList.push(cn.node);- if( tree.activeNode === node ){- cnList.push(cn.active);-// $(">span.fancytree-title", statusElem).attr("tabindex", "0");-// tree.$container.removeAttr("tabindex");- // }else{-// $(">span.fancytree-title", statusElem).removeAttr("tabindex");-// tree.$container.attr("tabindex", "0");- }- if( tree.focusNode === node ){- cnList.push(cn.focused);- }- if( node.expanded ){- cnList.push(cn.expanded);- }- if( aria ){- if (hasChildren !== false) {- $ariaElem.attr("aria-expanded", Boolean(node.expanded));- }- else {- $ariaElem.removeAttr("aria-expanded");- }- }- if( node.folder ){- cnList.push(cn.folder);- }- if( hasChildren !== false ){- cnList.push(cn.hasChildren);- }- // TODO: required?- if( isLastSib ){- cnList.push(cn.lastsib);- }- if( node.lazy && node.children == null ){- cnList.push(cn.lazy);- }- if( node.partload ){- cnList.push(cn.partload);- }- if( node.partsel ){- cnList.push(cn.partsel);- }- if( FT.evalOption("unselectable", node, node, opts, false) ){- cnList.push(cn.unselectable);- }- if( node._isLoading ){- cnList.push(cn.loading);- }- if( node._error ){- cnList.push(cn.error);- }- if( node.statusNodeType ) {- cnList.push(cn.statusNodePrefix + node.statusNodeType);- }- if( node.selected ){- cnList.push(cn.selected);- if(aria){- $ariaElem.attr("aria-selected", true);- }- }else if(aria){- $ariaElem.attr("aria-selected", false);- }- if( node.extraClasses ){- cnList.push(node.extraClasses);- }- // IE6 doesn't correctly evaluate multiple class names,- // so we create combined class names that can be used in the CSS- if( hasChildren === false ){- cnList.push(cn.combinedExpanderPrefix + "n" +- (isLastSib ? "l" : "")- );- }else{- cnList.push(cn.combinedExpanderPrefix +- (node.expanded ? "e" : "c") +- (node.lazy && node.children == null ? "d" : "") +- (isLastSib ? "l" : "")- );- }- cnList.push(cn.combinedIconPrefix +- (node.expanded ? "e" : "c") +- (node.folder ? "f" : "")- );-// node.span.className = cnList.join(" ");- statusElem.className = cnList.join(" ");-- // TODO: we should not set this in the <span> tag also, if we set it here:- // Maybe most (all) of the classes should be set in LI instead of SPAN?- if(node.li){- // #719: we have to consider that there may be already other classes:- $(node.li).toggleClass(cn.lastsib, isLastSib);- }- },- /** Activate node.- * flag defaults to true.- * If flag is true, the node is activated (must be a synchronous operation)- * If flag is false, the node is deactivated (must be a synchronous operation)- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noEvents: false, noFocus: false}- * @returns {$.Promise}- */- nodeSetActive: function(ctx, flag, callOpts) {- // Handle user click / [space] / [enter], according to clickFolderMode.- callOpts = callOpts || {};- var subCtx,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noEvents = (callOpts.noEvents === true),- noFocus = (callOpts.noFocus === true),- isActive = (node === tree.activeNode);-- // flag defaults to true- flag = (flag !== false);- // node.debug("nodeSetActive", flag);-- if(isActive === flag){- // Nothing to do- return _getResolvedPromise(node);- }else if(flag && !noEvents && this._triggerNodeEvent("beforeActivate", node, ctx.originalEvent) === false ){- // Callback returned false- return _getRejectedPromise(node, ["rejected"]);- }- if(flag){- if(tree.activeNode){- _assert(tree.activeNode !== node, "node was active (inconsistency)");- subCtx = $.extend({}, ctx, {node: tree.activeNode});- tree.nodeSetActive(subCtx, false);- _assert(tree.activeNode === null, "deactivate was out of sync?");- }- if(opts.activeVisible){- // If no focus is set (noFocus: true) and there is no focused node, this node is made visible.- node.makeVisible({scrollIntoView: noFocus && tree.focusNode == null});- }- tree.activeNode = node;- tree.nodeRenderStatus(ctx);- if( !noFocus ) {- tree.nodeSetFocus(ctx);- }- if( !noEvents ) {- tree._triggerNodeEvent("activate", node, ctx.originalEvent);- }- }else{- _assert(tree.activeNode === node, "node was not active (inconsistency)");- tree.activeNode = null;- this.nodeRenderStatus(ctx);- if( !noEvents ) {- ctx.tree._triggerNodeEvent("deactivate", node, ctx.originalEvent);- }- }- return _getResolvedPromise(node);- },- /** Expand or collapse node, return Deferred.promise.- *- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noAnimation: false, noEvents: false}- * @returns {$.Promise} The deferred will be resolved as soon as the (lazy)- * data was retrieved, rendered, and the expand animation finshed.- */- nodeSetExpanded: function(ctx, flag, callOpts) {- callOpts = callOpts || {};- var _afterLoad, dfd, i, l, parents, prevAC,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noAnimation = (callOpts.noAnimation === true),- noEvents = (callOpts.noEvents === true);-- // flag defaults to true- flag = (flag !== false);-- // node.debug("nodeSetExpanded(" + flag + ")");-- if((node.expanded && flag) || (!node.expanded && !flag)){- // Nothing to do- // node.debug("nodeSetExpanded(" + flag + "): nothing to do");- return _getResolvedPromise(node);- }else if(flag && !node.lazy && !node.hasChildren() ){- // Prevent expanding of empty nodes- // return _getRejectedPromise(node, ["empty"]);- return _getResolvedPromise(node);- }else if( !flag && node.getLevel() < opts.minExpandLevel ) {- // Prevent collapsing locked levels- return _getRejectedPromise(node, ["locked"]);- }else if ( !noEvents && this._triggerNodeEvent("beforeExpand", node, ctx.originalEvent) === false ){- // Callback returned false- return _getRejectedPromise(node, ["rejected"]);- }- // If this node inside a collpased node, no animation and scrolling is needed- if( !noAnimation && !node.isVisible() ) {- noAnimation = callOpts.noAnimation = true;- }-- dfd = new $.Deferred();-- // Auto-collapse mode: collapse all siblings- if( flag && !node.expanded && opts.autoCollapse ) {- parents = node.getParentList(false, true);- prevAC = opts.autoCollapse;- try{- opts.autoCollapse = false;- for(i=0, l=parents.length; i<l; i++){- // TODO: should return promise?- this._callHook("nodeCollapseSiblings", parents[i], callOpts);- }- }finally{- opts.autoCollapse = prevAC;- }- }- // Trigger expand/collapse after expanding- dfd.done(function(){- var lastChild = node.getLastChild();-- if( flag && opts.autoScroll && !noAnimation && lastChild ) {- // Scroll down to last child, but keep current node visible- lastChild.scrollIntoView(true, {topNode: node}).always(function(){- if( !noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- });- } else {- if( !noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- }- });- // vvv Code below is executed after loading finished:- _afterLoad = function(callback){- var cn = opts._classNames,- isVisible, isExpanded,- effect = opts.toggleEffect;-- node.expanded = flag;- // Create required markup, but make sure the top UL is hidden, so we- // can animate later- tree._callHook("nodeRender", ctx, false, false, true);-- // Hide children, if node is collapsed- if( node.ul ) {- isVisible = (node.ul.style.display !== "none");- isExpanded = !!node.expanded;- if ( isVisible === isExpanded ) {- node.warn("nodeSetExpanded: UL.style.display already set");-- } else if ( !effect || noAnimation ) {- node.ul.style.display = ( node.expanded || !parent ) ? "" : "none";-- } else {- // The UI toggle() effect works with the ext-wide extension,- // while jQuery.animate() has problems when the title span- // has positon: absolute.- // Since jQuery UI 1.12, the blind effect requires the parent- // element to have 'position: relative'.- // See #716, #717- $(node.li).addClass(cn.animating); // #717-// node.info("fancytree-animating start: " + node.li.className);- $(node.ul)- .addClass(cn.animating) // # 716- .toggle(effect.effect, effect.options, effect.duration, function(){-// node.info("fancytree-animating end: " + node.li.className);- $(this).removeClass(cn.animating); // #716- $(node.li).removeClass(cn.animating); // #717- callback();- });- return;- }- }- callback();- };- // ^^^ Code above is executed after loading finshed.-- // Load lazy nodes, if any. Then continue with _afterLoad()- if(flag && node.lazy && node.hasChildren() === undefined){- // node.debug("nodeSetExpanded: load start...");- node.load().done(function(){- // node.debug("nodeSetExpanded: load done");- if(dfd.notifyWith){ // requires jQuery 1.6+- dfd.notifyWith(node, ["loaded"]);- }- _afterLoad(function () { dfd.resolveWith(node); });- }).fail(function(errMsg){- _afterLoad(function () { dfd.rejectWith(node, ["load failed (" + errMsg + ")"]); });- });-/*- var source = tree._triggerNodeEvent("lazyLoad", node, ctx.originalEvent);- _assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");- node.debug("nodeSetExpanded: load start...");- this._callHook("nodeLoadChildren", ctx, source).done(function(){- node.debug("nodeSetExpanded: load done");- if(dfd.notifyWith){ // requires jQuery 1.6+- dfd.notifyWith(node, ["loaded"]);- }- _afterLoad.call(tree);- }).fail(function(errMsg){- dfd.rejectWith(node, ["load failed (" + errMsg + ")"]);- });-*/- }else{- _afterLoad(function () { dfd.resolveWith(node); });- }- // node.debug("nodeSetExpanded: returns");- return dfd.promise();- },- /** Focus or blur this node.- * @param {EventData} ctx- * @param {boolean} [flag=true]- */- nodeSetFocus: function(ctx, flag) {- // ctx.node.debug("nodeSetFocus(" + flag + ")");- var ctx2,- tree = ctx.tree,- node = ctx.node,- opts = tree.options,- // et = ctx.originalEvent && ctx.originalEvent.type,- isInput = ctx.originalEvent ? $(ctx.originalEvent.target).is(":input") : false;-- flag = (flag !== false);-- // (node || tree).debug("nodeSetFocus(" + flag + "), event: " + et + ", isInput: "+ isInput);- // Blur previous node if any- if(tree.focusNode){- if(tree.focusNode === node && flag){- // node.debug("nodeSetFocus(" + flag + "): nothing to do");- return;- }- ctx2 = $.extend({}, ctx, {node: tree.focusNode});- tree.focusNode = null;- this._triggerNodeEvent("blur", ctx2);- this._callHook("nodeRenderStatus", ctx2);- }- // Set focus to container and node- if(flag){- if( !this.hasFocus() ){- node.debug("nodeSetFocus: forcing container focus");- this._callHook("treeSetFocus", ctx, true, {calledByNode: true});- }- node.makeVisible({scrollIntoView: false});- tree.focusNode = node;- if( opts.titlesTabbable ) {- if( !isInput ) { // #621- $(node.span).find(".fancytree-title").focus();- }- } else {- // We cannot set KB focus to a node, so use the tree container- // #563, #570: IE scrolls on every call to .focus(), if the container- // is partially outside the viewport. So do it only, when absolutely- // neccessary:- if( $(document.activeElement).closest(".fancytree-container").length === 0 ) {- $(tree.$container).focus();- }- }- if( opts.aria ){- // Set active descendant to node's span ID (create one, if needed)- $(tree.$container).attr("aria-activedescendant",- $( node.tr || node.li ).uniqueId().attr("id"));- // "ftal_" + opts.idPrefix + node.key);- }-// $(node.span).find(".fancytree-title").focus();- this._triggerNodeEvent("focus", ctx);-// if( opts.autoActivate ){-// tree.nodeSetActive(ctx, true);-// }- if( opts.autoScroll ){- node.scrollIntoView();- }- this._callHook("nodeRenderStatus", ctx);- }- },- /** (De)Select node, return new status (sync).- *- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noEvents: false,- * propagateDown: null, propagateUp: null,- * callback: null,- * }- * @returns {boolean} previous status- */- nodeSetSelected: function(ctx, flag, callOpts) {- callOpts = callOpts || {};- var node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noEvents = (callOpts.noEvents === true);-- // flag defaults to true- flag = (flag !== false);-- // node.debug("nodeSetSelected(" + flag + ")", ctx);-- // Cannot (de)select unselectable nodes directly (only by propagation or- // by setting the `.selected` property)- if( FT.evalOption("unselectable", node, node, opts, false) ){- return;- }-- // Remember the user's intent, in case down -> up propagation prevents- // applying it to node.selected- node._lastSelectIntent = flag;-- // Nothing to do?- /*jshint -W018 */ // Confusing use of '!'- if( !!node.selected === flag ){- if( opts.selectMode === 3 && node.partsel && !flag ){- // If propagation prevented selecting this node last time, we still- // want to allow to apply setSelected(false) now- }else{- return flag;- }- }- /*jshint +W018 */-- if( !noEvents &&- this._triggerNodeEvent("beforeSelect", node, ctx.originalEvent) === false ) {- return !!node.selected;- }- if(flag && opts.selectMode === 1){- // single selection mode (we don't uncheck all tree nodes, for performance reasons)- if(tree.lastSelectedNode){- tree.lastSelectedNode.setSelected(false);- }- node.selected = flag;- }else if(opts.selectMode === 3 && !node.parent.radiogroup && !node.radiogroup){- // multi-hierarchical selection mode- node.selected = flag;- node.fixSelection3AfterClick(callOpts);- }else if(node.parent.radiogroup){- node.visitSiblings(function(n){- n._changeSelectStatusAttrs(flag && n === node);- }, true);- }else{- // default: selectMode: 2, multi selection mode- node.selected = flag;- }- this.nodeRenderStatus(ctx);- tree.lastSelectedNode = flag ? node : null;- if( !noEvents ) {- tree._triggerNodeEvent("select", ctx);- }- },- /** Show node status (ok, loading, error, nodata) using styles and a dummy child node.- *- * @param {EventData} ctx- * @param status- * @param message- * @param details- * @since 2.3- */- nodeSetStatus: function(ctx, status, message, details) {- var node = ctx.node,- tree = ctx.tree;-- function _clearStatusNode() {- // Remove dedicated dummy node, if any- var firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- try{- // I've seen exceptions here with loadKeyPath...- if(node.ul){- node.ul.removeChild(firstChild.li);- firstChild.li = null; // avoid leaks (DT issue 215)- }- }catch(e){}- if( node.children.length === 1 ){- node.children = [];- }else{- node.children.shift();- }- }- }- function _setStatusNode(data, type) {- // Create/modify the dedicated dummy node for 'loading...' or- // 'error!' status. (only called for direct child of the invisible- // system root)- var firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- $.extend(firstChild, data);- firstChild.statusNodeType = type;- tree._callHook("nodeRenderTitle", firstChild);- } else {- node._setChildren([data]);- node.children[0].statusNodeType = type;- tree.render();- }- return node.children[0];- }-- switch( status ){- case "ok":- _clearStatusNode();- node._isLoading = false;- node._error = null;- node.renderStatus();- break;- case "loading":- if( !node.parent ) {- _setStatusNode({- title: tree.options.strings.loading + (message ? " (" + message + ")" : ""),- // icon: true, // needed for 'loding' icon- checkbox: false,- tooltip: details- }, status);- }- node._isLoading = true;- node._error = null;- node.renderStatus();- break;- case "error":- _setStatusNode({- title: tree.options.strings.loadError + (message ? " (" + message + ")" : ""),- // icon: false,- checkbox: false,- tooltip: details- }, status);- node._isLoading = false;- node._error = { message: message, details: details };- node.renderStatus();- break;- case "nodata":- _setStatusNode({- title: tree.options.strings.noData,- // icon: false,- checkbox: false,- tooltip: details- }, status);- node._isLoading = false;- node._error = null;- node.renderStatus();- break;- default:- $.error("invalid node status " + status);- }- },- /**- *- * @param {EventData} ctx- */- nodeToggleExpanded: function(ctx) {- return this.nodeSetExpanded(ctx, !ctx.node.expanded);- },- /**- * @param {EventData} ctx- */- nodeToggleSelected: function(ctx) {- var node = ctx.node,- flag = !node.selected;-- // In selectMode: 3 this node may be unselected+partsel, even if- // setSelected(true) was called before, due to `unselectable` children.- // In this case, we now toggle as `setSelected(false)`- if( node.partsel && !node.selected && node._lastSelectIntent === true ) {- flag = false;- node.selected = true; // so it is not considered 'nothing to do'- }- node._lastSelectIntent = flag;- return this.nodeSetSelected(ctx, flag);- },- /** Remove all nodes.- * @param {EventData} ctx- */- treeClear: function(ctx) {- var tree = ctx.tree;- tree.activeNode = null;- tree.focusNode = null;- tree.$div.find(">ul.fancytree-container").empty();- // TODO: call destructors and remove reference loops- tree.rootNode.children = null;- },- /** Widget was created (called only once, even it re-initialized).- * @param {EventData} ctx- */- treeCreate: function(ctx) {- },- /** Widget was destroyed.- * @param {EventData} ctx- */- treeDestroy: function(ctx) {- this.$div.find(">ul.fancytree-container").remove();- this.$source && this.$source.removeClass("ui-helper-hidden");- },- /** Widget was (re-)initialized.- * @param {EventData} ctx- */- treeInit: function(ctx) {- var tree = ctx.tree,- opts = tree.options;-- //this.debug("Fancytree.treeInit()");- // Add container to the TAB chain- // See http://www.w3.org/TR/wai-aria-practices/#focus_activedescendant- // #577: Allow to set tabindex to "0", "-1" and ""- tree.$container.attr("tabindex", opts.tabindex);-- if( opts.rtl ) {- tree.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- }else{- tree.$container.removeAttr("DIR").removeClass("fancytree-rtl");- }- if( opts.aria ){- tree.$container.attr("role", "tree");- if( opts.selectMode !== 1 ) {- tree.$container.attr("aria-multiselectable", true);- }- }- this.treeLoad(ctx);- },- /** Parse Fancytree from source, as configured in the options.- * @param {EventData} ctx- * @param {object} [source] optional new source (use last data otherwise)- */- treeLoad: function(ctx, source) {- var metaData, type, $ul,- tree = ctx.tree,- $container = ctx.widget.element,- dfd,- // calling context for root node- rootCtx = $.extend({}, ctx, {node: this.rootNode});-- if(tree.rootNode.children){- this.treeClear(ctx);- }- source = source || this.options.source;-- if(!source){- type = $container.data("type") || "html";- switch(type){- case "html":- $ul = $container.find(">ul:first");- $ul.addClass("ui-fancytree-source ui-helper-hidden");- source = $.ui.fancytree.parseHtml($ul);- // allow to init tree.data.foo from <ul data-foo=''>- this.data = $.extend(this.data, _getElementDataAsDict($ul));- break;- case "json":- source = $.parseJSON($container.text());- // $container already contains the <ul>, but we remove the plain (json) text- // $container.empty();- $container.contents().filter(function(){- return (this.nodeType === 3);- }).remove();- if( $.isPlainObject(source) ){- // We got {foo: 'abc', children: [...]}- // Copy extra properties to tree.data.foo- _assert($.isArray(source.children), "if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')");- metaData = source;- source = source.children;- delete metaData.children;- $.extend(tree.data, metaData);- }- break;- default:- $.error("Invalid data-type: " + type);- }- }else if(typeof source === "string"){- // TODO: source is an element ID- $.error("Not implemented");- }-- // Trigger fancytreeinit after nodes have been loaded- dfd = this.nodeLoadChildren(rootCtx, source).done(function(){- tree.render();- if( ctx.options.selectMode === 3 ){- tree.rootNode.fixSelection3FromEndNodes();- }- if( tree.activeNode && tree.options.activeVisible ) {- tree.activeNode.makeVisible();- }- tree._triggerTreeEvent("init", null, { status: true });- }).fail(function(){- tree.render();- tree._triggerTreeEvent("init", null, { status: false });- });- return dfd;- },- /** Node was inserted into or removed from the tree.- * @param {EventData} ctx- * @param {boolean} add- * @param {FancytreeNode} node- */- treeRegisterNode: function(ctx, add, node) {- },- /** Widget got focus.- * @param {EventData} ctx- * @param {boolean} [flag=true]- */- treeSetFocus: function(ctx, flag, callOpts) {- function ensureTreeFocus(thisTree) {- if (!thisTree.activeNode && thisTree.getFirstChild()) {- thisTree.getFirstChild().setFocus();- }- }-- flag = (flag !== false);-- // this.debug("treeSetFocus(" + flag + "), callOpts: ", callOpts, this.hasFocus());- // this.debug(" focusNode: " + this.focusNode);- // this.debug(" activeNode: " + this.activeNode);- if( flag !== this.hasFocus() ){- this._hasFocus = flag;- if( !flag && this.focusNode ) {- // Node also looses focus if widget blurs- this.focusNode.setFocus(false);- } else if ( flag && (!callOpts || !callOpts.calledByNode) ) {- $(this.$container).focus();- }- this.$container.toggleClass("fancytree-treefocus", flag);- this._triggerTreeEvent(flag ? "focusTree" : "blurTree");- if( flag ) {- // Check after timeout to ensure mousedown processing is complete- // and the clicked node is already activated- var thisTree = this;- setTimeout(function() { ensureTreeFocus(thisTree); }, 0);- }- }- },- /** Widget option was set using `$().fancytree("option", "foo", "bar")`.- * @param {EventData} ctx- * @param {string} key option name- * @param {any} value option value- */- treeSetOption: function(ctx, key, value) {- var tree = ctx.tree,- callDefault = true,- rerender = false;-- switch( key ) {- case "aria":- case "checkbox":- case "icon":- case "minExpandLevel":- case "tabindex":- tree._callHook("treeCreate", tree);- rerender = true;- break;- case "escapeTitles":- case "tooltip":- rerender = true;- break;- case "rtl":- if( value === false ) {- tree.$container.removeAttr("DIR").removeClass("fancytree-rtl");- }else{- tree.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- }- rerender = true;- break;- case "source":- callDefault = false;- tree._callHook("treeLoad", tree, value);- rerender = true;- break;- }- tree.debug("set option " + key + "=" + value + " <" + typeof(value) + ">");- if(callDefault){- if( this.widget._super ) {- // jQuery UI 1.9+- this.widget._super.call( this.widget, key, value );- } else {- // jQuery UI <= 1.8, we have to manually invoke the _setOption method from the base widget- $.Widget.prototype._setOption.call(this.widget, key, value);- }- }- if(rerender){- tree.render(true, false); // force, not-deep- }- }-});---/* ******************************************************************************- * jQuery UI widget boilerplate- */--/**- * The plugin (derrived from <a href=" http://api.jqueryui.com/jQuery.widget/">jQuery.Widget</a>).<br>- * This constructor is not called directly. Use `$(selector).fancytree({})`- * to initialize the plugin instead.<br>- * <pre class="sh_javascript sunlight-highlight-javascript">// Access widget methods and members:- * var tree = $("#tree").fancytree("getTree");- * var node = $("#tree").fancytree("getActiveNode", "1234");- * </pre>- *- * @mixin Fancytree_Widget- */--$.widget("ui.fancytree",- /** @lends Fancytree_Widget# */- {- /**These options will be used as defaults- * @type {FancytreeOptions}- */- options:- {- activeVisible: true,- ajax: {- type: "GET",- cache: false, // false: Append random '_' argument to the request url to prevent caching.-// timeout: 0, // >0: Make sure we get an ajax error if server is unreachable- dataType: "json" // Expect json format and pass json object to callbacks.- }, //- aria: true,- autoActivate: true,- autoCollapse: false,- autoScroll: false,- checkbox: false,- clickFolderMode: 4,- debugLevel: null, // 0..2 (null: use global setting $.ui.fancytree.debugInfo)- disabled: false, // TODO: required anymore?- enableAspx: true, // TODO: document- escapeTitles: false,- extensions: [],- // fx: { height: "toggle", duration: 200 },- // toggleEffect: { effect: "drop", options: {direction: "left"}, duration: 200 },- // toggleEffect: { effect: "slide", options: {direction: "up"}, duration: 200 },- toggleEffect: { effect: "blind", options: {direction: "vertical", scale: "box"}, duration: 200 },- generateIds: false,- icon: true,- idPrefix: "ft_",- focusOnSelect: false,- keyboard: true,- keyPathSeparator: "/",- minExpandLevel: 1,- quicksearch: false,- rtl: false,- scrollOfs: {top: 0, bottom: 0},- scrollParent: null,- selectMode: 2,- strings: {- loading: "Loading...", // … would be escaped when escapeTitles is true- loadError: "Load error!",- moreData: "More...",- noData: "No data."- },- tabindex: "0",- titlesTabbable: false,- tooltip: false,- _classNames: {- node: "fancytree-node",- folder: "fancytree-folder",- animating: "fancytree-animating",- combinedExpanderPrefix: "fancytree-exp-",- combinedIconPrefix: "fancytree-ico-",- hasChildren: "fancytree-has-children",- active: "fancytree-active",- selected: "fancytree-selected",- expanded: "fancytree-expanded",- lazy: "fancytree-lazy",- focused: "fancytree-focused",- partload: "fancytree-partload",- partsel: "fancytree-partsel",- radio: "fancytree-radio",- // radiogroup: "fancytree-radiogroup",- unselectable: "fancytree-unselectable",- lastsib: "fancytree-lastsib",- loading: "fancytree-loading",- error: "fancytree-error",- statusNodePrefix: "fancytree-statusnode-"- },- // events- lazyLoad: null,- postProcess: null- },- /* Set up the widget, Called on first $().fancytree() */- _create: function() {- this.tree = new Fancytree(this);-- this.$source = this.source || this.element.data("type") === "json" ? this.element- : this.element.find(">ul:first");- // Subclass Fancytree instance with all enabled extensions- var extension, extName, i,- opts = this.options,- extensions = opts.extensions,- base = this.tree;-- for(i=0; i<extensions.length; i++){- extName = extensions[i];- extension = $.ui.fancytree._extensions[extName];- if(!extension){- $.error("Could not apply extension '" + extName + "' (it is not registered, did you forget to include it?)");- }- // Add extension options as tree.options.EXTENSION-// _assert(!this.tree.options[extName], "Extension name must not exist as option name: " + extName);- this.tree.options[extName] = $.extend(true, {}, extension.options, this.tree.options[extName]);- // Add a namespace tree.ext.EXTENSION, to hold instance data- _assert(this.tree.ext[extName] === undefined, "Extension name must not exist as Fancytree.ext attribute: '" + extName + "'");-// this.tree[extName] = extension;- this.tree.ext[extName] = {};- // Subclass Fancytree methods using proxies.- _subclassObject(this.tree, base, extension, extName);- // current extension becomes base for the next extension- base = extension;- }- //- if( opts.icons !== undefined ) { // 2015-11-16- if( opts.icon !== true ) {- $.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead");- } else {- this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead");- opts.icon = opts.icons;- }- }- if( opts.iconClass !== undefined ) { // 2015-11-16- if( opts.icon ) {- $.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead");- } else {- this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead");- opts.icon = opts.iconClass;- }- }- if( opts.tabbable !== undefined ) { // 2016-04-04- opts.tabindex = opts.tabbable ? "0" : "-1";- this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='" + opts.tabindex + "' instead");- }- //- this.tree._callHook("treeCreate", this.tree);- // Note: 'fancytreecreate' event is fired by widget base class-// this.tree._triggerTreeEvent("create");- },-- /* Called on every $().fancytree() */- _init: function() {- this.tree._callHook("treeInit", this.tree);- // TODO: currently we call bind after treeInit, because treeInit- // might change tree.$container.- // It would be better, to move ebent binding into hooks altogether- this._bind();- },-- /* Use the _setOption method to respond to changes to options */- _setOption: function(key, value) {- return this.tree._callHook("treeSetOption", this.tree, key, value);- },-- /** Use the destroy method to clean up any modifications your widget has made to the DOM */- destroy: function() {- this._unbind();- this.tree._callHook("treeDestroy", this.tree);- // In jQuery UI 1.8, you must invoke the destroy method from the base widget- $.Widget.prototype.destroy.call(this);- // TODO: delete tree and nodes to make garbage collect easier?- // TODO: In jQuery UI 1.9 and above, you would define _destroy instead of destroy and not call the base method- },-- // --------------------------------------------------------------------------- /* Remove all event handlers for our namespace */- _unbind: function() {- var ns = this.tree._ns;- this.element.off(ns);- this.tree.$container.off(ns);- $(document).off(ns);- },- /* Add mouse and kyboard handlers to the container */- _bind: function() {- var that = this,- opts = this.options,- tree = this.tree,- ns = tree._ns- // selstartEvent = ( $.support.selectstart ? "selectstart" : "mousedown" )- ;-- // Remove all previuous handlers for this tree- this._unbind();-- //alert("keydown" + ns + "foc=" + tree.hasFocus() + tree.$container);- // tree.debug("bind events; container: ", tree.$container);- tree.$container.on("focusin" + ns + " focusout" + ns, function(event){- var node = FT.getNode(event),- flag = (event.type === "focusin");- // tree.debug("Tree container got event " + event.type, node, event);- // tree.treeOnFocusInOut.call(tree, event);- if(node){- // For example clicking into an <input> that is part of a node- tree._callHook("nodeSetFocus", tree._makeHookContext(node, event), flag);- // tree._callHook("nodeSetFocus", node, flag);- }else{- tree._callHook("treeSetFocus", tree, flag);- }- }).on("selectstart" + ns, "span.fancytree-title", function(event){- // prevent mouse-drags to select text ranges- // tree.debug("<span title> got event " + event.type);- event.preventDefault();- }).on("keydown" + ns, function(event){- // TODO: also bind keyup and keypress- // tree.debug("got event " + event.type + ", hasFocus:" + tree.hasFocus());- // if(opts.disabled || opts.keyboard === false || !tree.hasFocus() ){- if(opts.disabled || opts.keyboard === false ){- return true;- }- var res,- node = tree.focusNode, // node may be null- ctx = tree._makeHookContext(node || tree, event),- prevPhase = tree.phase;-- try {- tree.phase = "userEvent";- // If a 'fancytreekeydown' handler returns false, skip the default- // handling (implemented by tree.nodeKeydown()).- if(node){- res = tree._triggerNodeEvent("keydown", node, event);- }else{- res = tree._triggerTreeEvent("keydown", event);- }- if ( res === "preventNav" ){- res = true; // prevent keyboard navigation, but don't prevent default handling of embedded input controls- } else if ( res !== false ){- res = tree._callHook("nodeKeydown", ctx);- }- return res;- } finally {- tree.phase = prevPhase;- }- }).on("mousedown" + ns + " dblclick" + ns, function(event){- // that.tree.debug("event(" + event + "): !");- if(opts.disabled){- return true;- }- var ctx,- et = FT.getEventTarget(event),- node = et.node,- tree = that.tree,- prevPhase = tree.phase;-- // that.tree.debug("event(" + event.type + "): node: ", node);- if( !node ){- return true; // Allow bubbling of other events- }- ctx = tree._makeHookContext(node, event);- // that.tree.debug("event(" + event.type + "): node: ", node);- try {- tree.phase = "userEvent";- switch(event.type) {- case "mousedown":- ctx.targetType = et.type;- if( node.isPagingNode() ) {- return tree._triggerNodeEvent("clickPaging", ctx, event) === true;- }- return ( tree._triggerNodeEvent("click", ctx, event) === false ) ? false : tree._callHook("nodeClick", ctx);- case "dblclick":- ctx.targetType = et.type;- return ( tree._triggerNodeEvent("dblclick", ctx, event) === false ) ? false : tree._callHook("nodeDblclick", ctx);- }-// } catch(e) {-// // var _ = null; // DT issue 117 // TODO-// $.error(e);- } finally {- tree.phase = prevPhase;- }- });- },- /** Return the active node or null.- * @returns {FancytreeNode}- */- getActiveNode: function() {- return this.tree.activeNode;- },- /** Return the matching node or null.- * @param {string} key- * @returns {FancytreeNode}- */- getNodeByKey: function(key) {- return this.tree.getNodeByKey(key);- },- /** Return the invisible system root node.- * @returns {FancytreeNode}- */- getRootNode: function() {- return this.tree.rootNode;- },- /** Return the current tree instance.- * @returns {Fancytree}- */- getTree: function() {- return this.tree;- }-});--// $.ui.fancytree was created by the widget factory. Create a local shortcut:-FT = $.ui.fancytree;--/**- * Static members in the `$.ui.fancytree` namespace.<br>- * <br>- * <pre class="sh_javascript sunlight-highlight-javascript">// Access static members:- * var node = $.ui.fancytree.getNode(element);- * alert($.ui.fancytree.version);- * </pre>- *- * @mixin Fancytree_Static- */-$.extend($.ui.fancytree,- /** @lends Fancytree_Static# */- {- /** @type {string} */- version: "2.23.0", // Set to semver by 'grunt release'- /** @type {string} */- buildType: "production", // Set to 'production' by 'grunt build'- /** @type {int} */- debugLevel: 1, // Set to 1 by 'grunt build'- // Used by $.ui.fancytree.debug() and as default for tree.options.debugLevel-- _nextId: 1,- _nextNodeKey: 1,- _extensions: {},- // focusTree: null,-- /** Expose class object as $.ui.fancytree._FancytreeClass */- _FancytreeClass: Fancytree,- /** Expose class object as $.ui.fancytree._FancytreeNodeClass */- _FancytreeNodeClass: FancytreeNode,- /* Feature checks to provide backwards compatibility */- jquerySupports: {- // http://jqueryui.com/upgrade-guide/1.9/#deprecated-offset-option-merged-into-my-and-at- positionMyOfs: isVersionAtLeast($.ui.version, 1, 9)- },- /** Throw an error if condition fails (debug method).- * @param {boolean} cond- * @param {string} msg- */- assert: function(cond, msg){- return _assert(cond, msg);- },- /** Return a function that executes *fn* at most every *timeout* ms.- * @param {integer} timeout- * @param {function} fn- * @param {boolean} [invokeAsap=false]- * @param {any} [ctx]- */- debounce: function(timeout, fn, invokeAsap, ctx) {- var timer;- if(arguments.length === 3 && typeof invokeAsap !== "boolean") {- ctx = invokeAsap;- invokeAsap = false;- }- return function() {- var args = arguments;- ctx = ctx || this;- invokeAsap && !timer && fn.apply(ctx, args);- clearTimeout(timer);- timer = setTimeout(function() {- invokeAsap || fn.apply(ctx, args);- timer = null;- }, timeout);- };- },- /** Write message to console if debugLevel >= 2- * @param {string} msg- */- debug: function(msg){- /*jshint expr:true */- ($.ui.fancytree.debugLevel >= 2) && consoleApply("log", arguments);- },- /** Write error message to console.- * @param {string} msg- */- error: function(msg){- consoleApply("error", arguments);- },- /** Convert <, >, &, ", ', / to the equivalent entities.- *- * @param {string} s- * @returns {string}- */- escapeHtml: _escapeHtml,- /** Make jQuery.position() arguments backwards compatible, i.e. if- * jQuery UI version <= 1.8, convert- * { my: "left+3 center", at: "left bottom", of: $target }- * to- * { my: "left center", at: "left bottom", of: $target, offset: "3 0" }- *- * See http://jqueryui.com/upgrade-guide/1.9/#deprecated-offset-option-merged-into-my-and-at- * and http://jsfiddle.net/mar10/6xtu9a4e/- */- fixPositionOptions: function(opts) {- if( opts.offset || ("" + opts.my + opts.at ).indexOf("%") >= 0 ) {- $.error("expected new position syntax (but '%' is not supported)");- }- if( ! $.ui.fancytree.jquerySupports.positionMyOfs ) {- var // parse 'left+3 center' into ['left+3 center', 'left', '+3', 'center', undefined]- myParts = /(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(opts.my),- atParts = /(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(opts.at),- // convert to numbers- dx = (myParts[2] ? (+myParts[2]) : 0) + (atParts[2] ? (+atParts[2]) : 0),- dy = (myParts[4] ? (+myParts[4]) : 0) + (atParts[4] ? (+atParts[4]) : 0);-- opts = $.extend({}, opts, { // make a copy and overwrite- my: myParts[1] + " " + myParts[3],- at: atParts[1] + " " + atParts[3]- });- if( dx || dy ) {- opts.offset = "" + dx + " " + dy;- }- }- return opts;- },- /** Return a {node: FancytreeNode, type: TYPE} object for a mouse event.- *- * @param {Event} event Mouse event, e.g. click, ...- * @returns {string} 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon' | undefined- */- getEventTargetType: function(event){- return this.getEventTarget(event).type;- },- /** Return a {node: FancytreeNode, type: TYPE} object for a mouse event.- *- * @param {Event} event Mouse event, e.g. click, ...- * @returns {object} Return a {node: FancytreeNode, type: TYPE} object- * TYPE: 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon' | undefined- */- getEventTarget: function(event){- var tcn = event && event.target ? event.target.className : "",- res = {node: this.getNode(event.target), type: undefined};- // We use a fast version of $(res.node).hasClass()- // See http://jsperf.com/test-for-classname/2- if( /\bfancytree-title\b/.test(tcn) ){- res.type = "title";- }else if( /\bfancytree-expander\b/.test(tcn) ){- res.type = (res.node.hasChildren() === false ? "prefix" : "expander");- // }else if( /\bfancytree-checkbox\b/.test(tcn) || /\bfancytree-radio\b/.test(tcn) ){- }else if( /\bfancytree-checkbox\b/.test(tcn) ){- res.type = "checkbox";- }else if( /\bfancytree-icon\b/.test(tcn) ){- res.type = "icon";- }else if( /\bfancytree-node\b/.test(tcn) ){- // Somewhere near the title- res.type = "title";- }else if( event && event.target && $(event.target).closest(".fancytree-title").length ) {- // #228: clicking an embedded element inside a title- res.type = "title";- }- return res;- },- /** Return a FancytreeNode instance from element, event, or jQuery object.- *- * @param {Element | jQueryObject | Event} el- * @returns {FancytreeNode} matching node or null- */- getNode: function(el){- if(el instanceof FancytreeNode){- return el; // el already was a FancytreeNode- }else if( el instanceof jQuery ){- el = el[0]; // el was a jQuery object: use the DOM element- }else if(el.originalEvent !== undefined){- el = el.target; // el was an Event- }- while( el ) {- if(el.ftnode) {- return el.ftnode;- }- el = el.parentNode;- }- return null;- },- /** Return a Fancytree instance, from element, index, event, or jQueryObject.- *- * @param {Element | jQueryObject | Event | integer | string} [el]- * @returns {Fancytree} matching tree or null- * @example- * $.ui.fancytree.getTree(); // Get first Fancytree instance on page- * $.ui.fancytree.getTree(1); // Get second Fancytree instance on page- * $.ui.fancytree.getTree("#tree"); // Get tree for this matching element- *- * @since 2.13- */- getTree: function(el){- var widget;-- if( el instanceof Fancytree ) {- return el; // el already was a Fancytree- }- if( el === undefined ) {- el = 0; // get first tree- }- if( typeof el === "number" ) {- el = $(".fancytree-container").eq(el); // el was an integer: return nth instance- } else if( typeof el === "string" ) {- el = $(el).eq(0); // el was a selector: use first match- } else if( el.selector !== undefined ) {- el = el.eq(0); // el was a jQuery object: use the first DOM element- } else if( el.originalEvent !== undefined ) {- el = $(el.target); // el was an Event- }- el = el.closest(":ui-fancytree");- widget = el.data("ui-fancytree") || el.data("fancytree"); // the latter is required by jQuery <= 1.8- return widget ? widget.tree : null;- },- /** Return an option value that has a default, but may be overridden by a- * callback or a node instance attribute.- *- * Evaluation sequence:<br>- *- * If tree.options.<optionName> is a callback that returns something, use that.<br>- * Else if node.<optionName> is defined, use that.<br>- * Else if tree.options.<optionName> is a value, use that.<br>- * Else use `defaultValue`.- *- * @param {string} optionName name of the option property (on node and tree)- * @param {FancytreeNode} node passed to the callback- * @param {object} nodeObject where to look for the local option property, e.g. `node` or `node.data`- * @param {object} treeOption where to look for the tree option, e.g. `tree.options` or `tree.options.dnd5`- * @param {any} [defaultValue]- * @returns {any}- *- * @example- * // Check for node.foo, tree,options.foo(), and tree.options.foo:- * $.ui.fancytree.evalOption("foo", node, node, tree.options);- * // Check for node.data.bar, tree,options.qux.bar(), and tree.options.qux.bar:- * $.ui.fancytree.evalOption("bar", node, node.data, tree.options.qux);- *- * @since 2.22- */- evalOption: function(optionName, node, nodeObject, treeOptions, defaultValue) {- var ctx, res,- tree = node.tree,- treeOpt = treeOptions[optionName],- nodeOpt = nodeObject[optionName];-- if( $.isFunction(treeOpt) ) {- ctx = { node: node, tree: tree, widget: tree.widget, options: tree.widget.options };- res = treeOpt.call(tree, {type: optionName}, ctx);- if( res == null ) {- res = nodeOpt;- }- } else {- res = (nodeOpt != null) ? nodeOpt : treeOpt;- }- if( res == null ) {- res = defaultValue; // no option set at all: return default- }- return res;- },- /** Convert a keydown or mouse event to a canonical string like 'ctrl+a',- * 'ctrl+shift+f2', 'shift+leftdblclick'.- *- * This is especially handy for switch-statements in event handlers.- *- * @param {event}- * @returns {string}- *- * @example-- switch( $.ui.fancytree.eventToString(event) ) {- case "-":- tree.nodeSetExpanded(ctx, false);- break;- case "shift+return":- tree.nodeSetActive(ctx, true);- break;- case "down":- res = node.navigate(event.which, activate, true);- break;- default:- handled = false;- }- if( handled ){- event.preventDefault();- }- */- eventToString: function(event) {- // Poor-man's hotkeys. See here for a complete implementation:- // https://github.com/jeresig/jquery.hotkeys- var which = event.which,- et = event.type,- s = [];-- if( event.altKey ) { s.push("alt"); }- if( event.ctrlKey ) { s.push("ctrl"); }- if( event.metaKey ) { s.push("meta"); }- if( event.shiftKey ) { s.push("shift"); }-- if( et === "click" || et === "dblclick" ) {- s.push(MOUSE_BUTTONS[event.button] + et);- } else {- if( !IGNORE_KEYCODES[which] ) {- s.push( SPECIAL_KEYCODES[which] || String.fromCharCode(which).toLowerCase() );- }- }- return s.join("+");- },- /** Write message to console if debugLevel >= 1- * @param {string} msg- */- info: function(msg){- /*jshint expr:true */- ($.ui.fancytree.debugLevel >= 1) && consoleApply("info", arguments);- },- /* @deprecated: use eventToString(event) instead.- */- keyEventToString: function(event) {- this.warn("keyEventToString() is deprecated: use eventToString()");- return this.eventToString(event);- },- /** Return a wrapped handler method, that provides `this.super`.- *- * @example- // Implement `opts.createNode` event to add the 'draggable' attribute- $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {- // Default processing if any- this._super.apply(this, arguments);- // Add 'draggable' attribute- data.node.span.draggable = true;- });- *- * @param {object} instance- * @param {string} methodName- * @param {function} handler- */- overrideMethod: function(instance, methodName, handler){- var prevSuper,- _super = instance[methodName] || $.noop;-- // context = context || this;-- instance[methodName] = function() {- try {- prevSuper = this._super;- this._super = _super;- return handler.apply(this, arguments);- } finally {- this._super = prevSuper;- }- };- },- /**- * Parse tree data from HTML <ul> markup- *- * @param {jQueryObject} $ul- * @returns {NodeData[]}- */- parseHtml: function($ul) {- // TODO: understand this:- /*jshint validthis:true */- var classes, className, extraClasses, i, iPos, l, tmp, tmp2,- $children = $ul.find(">li"),- children = [];-- $children.each(function() {- var allData, lowerCaseAttr,- $li = $(this),- $liSpan = $li.find(">span:first", this),- $liA = $liSpan.length ? null : $li.find(">a:first"),- d = { tooltip: null, data: {} };-- if( $liSpan.length ) {- d.title = $liSpan.html();-- } else if( $liA && $liA.length ) {- // If a <li><a> tag is specified, use it literally and extract href/target.- d.title = $liA.html();- d.data.href = $liA.attr("href");- d.data.target = $liA.attr("target");- d.tooltip = $liA.attr("title");-- } else {- // If only a <li> tag is specified, use the trimmed string up to- // the next child <ul> tag.- d.title = $li.html();- iPos = d.title.search(/<ul/i);- if( iPos >= 0 ){- d.title = d.title.substring(0, iPos);- }- }- d.title = $.trim(d.title);-- // Make sure all fields exist- for(i=0, l=CLASS_ATTRS.length; i<l; i++){- d[CLASS_ATTRS[i]] = undefined;- }- // Initialize to `true`, if class is set and collect extraClasses- classes = this.className.split(" ");- extraClasses = [];- for(i=0, l=classes.length; i<l; i++){- className = classes[i];- if(CLASS_ATTR_MAP[className]){- d[className] = true;- }else{- extraClasses.push(className);- }- }- d.extraClasses = extraClasses.join(" ");-- // Parse node options from ID, title and class attributes- tmp = $li.attr("title");- if( tmp ){- d.tooltip = tmp; // overrides <a title='...'>- }- tmp = $li.attr("id");- if( tmp ){- d.key = tmp;- }- // Translate hideCheckbox -> checkbox:false- if( $li.attr("hideCheckbox") ){- d.checkbox = false;- }- // Add <li data-NAME='...'> as node.data.NAME- allData = _getElementDataAsDict($li);- if( allData && !$.isEmptyObject(allData) ) {- // #507: convert data-hidecheckbox (lower case) to hideCheckbox- for( lowerCaseAttr in NODE_ATTR_LOWERCASE_MAP ) {- if( allData.hasOwnProperty(lowerCaseAttr) ) {- allData[NODE_ATTR_LOWERCASE_MAP[lowerCaseAttr]] = allData[lowerCaseAttr];- delete allData[lowerCaseAttr];- }- }- // #56: Allow to set special node.attributes from data-...- for(i=0, l=NODE_ATTRS.length; i<l; i++){- tmp = NODE_ATTRS[i];- tmp2 = allData[tmp];- if( tmp2 != null ) {- delete allData[tmp];- d[tmp] = tmp2;- }- }- // All other data-... goes to node.data...- $.extend(d.data, allData);- }- // Recursive reading of child nodes, if LI tag contains an UL tag- $ul = $li.find(">ul:first");- if( $ul.length ) {- d.children = $.ui.fancytree.parseHtml($ul);- }else{- d.children = d.lazy ? undefined : null;- }- children.push(d);-// FT.debug("parse ", d, children);- });- return children;- },- /** Add Fancytree extension definition to the list of globally available extensions.- *- * @param {object} definition- */- registerExtension: function(definition){- _assert(definition.name != null, "extensions must have a `name` property.");- _assert(definition.version != null, "extensions must have a `version` property.");- $.ui.fancytree._extensions[definition.name] = definition;- },- /** Inverse of escapeHtml().- *- * @param {string} s- * @returns {string}- */- unescapeHtml: function(s){- var e = document.createElement("div");- e.innerHTML = s;- return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;- },- /** Write warning message to console.- * @param {string} msg- */- warn: function(msg){- consoleApply("warn", arguments);- }-});--}(jQuery, window, document));diff --git a/public/libraries/fancytree/jquery.fancytree.min.js b/public/libraries/fancytree/jquery.fancytree.min.jsdeleted file mode 100644index 12693459f6..0000000000--- a/public/libraries/fancytree/jquery.fancytree.min.js+++ /dev/null@@ -1,14 +0,0 @@-/*!- * jquery.fancytree.js- * Tree view control with support for lazy loading and much more.- * https://github.com/mar10/fancytree/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */-!function(a,b,c,d){"use strict";function e(b,c){b||(c=c?": "+c:"",a.error("Fancytree assertion failed"+c))}function f(a,c){var d,e,f=b.console?b.console[a]:null;if(f)try{f.apply(b.console,c)}catch(g){for(e="",d=0;d<c.length;d++)e+=c[d];f(e)}}function g(a){return!(!a.tree||a.statusNodeType===d)}function h(b,c,d,e){var f,g,h,i=a.map(a.trim(b).split("."),function(a){return parseInt(a,10)}),j=a.map(Array.prototype.slice.call(arguments,1),function(a){return parseInt(a,10)});for(f=0;f<j.length;f++)if(g=i[f]||0,h=j[f]||0,g!==h)return g>h;return!0}function i(a,b,c,d,e){var f=function(){var c=b[a],f=d[a],g=b.ext[e],h=function(){return c.apply(b,arguments)},i=function(a){return c.apply(b,a)};return function(){var a=b._local,c=b._super,d=b._superApply;try{return b._local=g,b._super=h,b._superApply=i,f.apply(b,arguments)}finally{b._local=a,b._super=c,b._superApply=d}}}();return f}function j(b,c,d,e){for(var f in d)"function"==typeof d[f]?"function"==typeof b[f]?b[f]=i(f,b,c,d,e):"_"===f.charAt(0)?b.ext[e][f]=i(f,b,c,d,e):a.error("Could not override tree."+f+". Use prefix '_' to create tree."+e+"._"+f):"options"!==f&&(b.ext[e][f]=d[f])}function k(b,c){return b===d?a.Deferred(function(){this.resolve()}).promise():a.Deferred(function(){this.resolveWith(b,c)}).promise()}function l(b,c){return b===d?a.Deferred(function(){this.reject()}).promise():a.Deferred(function(){this.rejectWith(b,c)}).promise()}function m(a,b){return function(){a.resolveWith(b)}}function n(b){var c=a.extend({},b.data()),d=c.json;return delete c.fancytree,delete c.uiFancytree,d&&(delete c.json,c=a.extend(c,d)),c}function o(a){return(""+a).replace(y,function(a){return B[a]})}function p(a){return(""+a).replace(z,function(a){return B[a]})}function q(a){return a=a.toLowerCase(),function(b){return b.title.toLowerCase().indexOf(a)>=0}}function r(a){var b=new RegExp("^"+a,"i");return function(a){return b.test(a.title)}}function s(b,c){var d,f,g,h;for(this.parent=b,this.tree=b.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},d=0,f=H.length;d<f;d++)g=H[d],this[g]=c[g];null==this.unselectableIgnore&&null==this.unselectableStatus||(this.unselectable=!0),c.hideCheckbox&&a.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'"),c.data&&a.extend(this.data,c.data);for(g in c)I[g]||a.isFunction(c[g])||K[g]||(this.data[g]=c[g]);null==this.key?this.tree.options.defaultKey?(this.key=this.tree.options.defaultKey(this),e(this.key,"defaultKey() must return a unique key")):this.key="_"+w._nextNodeKey++:this.key=""+this.key,c.active&&(e(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),c.selected&&(this.tree.lastSelectedNode=this),h=c.children,h?h.length?this._setChildren(h):this.children=this.lazy?[]:null:this.children=null,this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function t(b){this.widget=b,this.$div=b.element,this.options=b.options,this.options&&(a.isFunction(this.options.lazyload)&&!a.isFunction(this.options.lazyLoad)&&(this.options.lazyLoad=function(){return w.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),b.options.lazyload.apply(this,arguments)}),a.isFunction(this.options.loaderror)&&a.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),this.options.fx!==d&&w.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30."),this.options.removeNode!==d&&a.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).")),this.ext={},this.data=n(this.$div),this._id=a.ui.fancytree._nextId++,this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this._enableUpdate=!0,this.lastSelectedNode=null,this.systemFocusElement=null,this.lastQuicksearchTerm="",this.lastQuicksearchTime=0,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var c,e={tree:this};this.rootNode=new s(e,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,c=a("<ul>",{"class":"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=c,this.rootNode.ul=c[0],null==this.options.debugLevel&&(this.options.debugLevel=w.debugLevel)}if(a.ui&&a.ui.fancytree)return void a.ui.fancytree.warn("Fancytree: ignored duplicate include");var u,v,w=null,x=new RegExp(/\.|\//),y=/[&<>"'\/]/g,z=/[<>"'\/]/g,A="$recursive_request",B={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},C={16:!0,17:!0,18:!0},D={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={0:"",1:"left",2:"middle",3:"right"},F="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),G={},H="checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),I={},J={},K={active:!0,children:!0,data:!0,focus:!0};for(u=0;u<F.length;u++)G[F[u]]=!0;for(u=0;u<H.length;u++)v=H[u],I[v]=!0,v!==v.toLowerCase()&&(J[v.toLowerCase()]=v);e(a.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),s.prototype={_findDirectChild:function(a){var b,c,d=this.children;if(d)if("string"==typeof a){for(b=0,c=d.length;b<c;b++)if(d[b].key===a)return d[b]}else{if("number"==typeof a)return this.children[a];if(a.parent===this)return a}return null},_setChildren:function(a){e(a&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var b=0,c=a.length;b<c;b++)this.children.push(new s(this,a[b]))},addChildren:function(b,c){var d,f,g,h=this.getFirstChild(),i=this.getLastChild(),j=null,k=[];for(a.isPlainObject(b)&&(b=[b]),this.children||(this.children=[]),d=0,f=b.length;d<f;d++)k.push(new s(this,b[d]));if(j=k[0],null==c?this.children=this.children.concat(k):(c=this._findDirectChild(c),g=a.inArray(c,this.children),e(g>=0,"insertBefore must be an existing child"),this.children.splice.apply(this.children,[g,0].concat(k))),h&&!c){for(d=0,f=k.length;d<f;d++)k[d].render();h!==this.getFirstChild()&&h.renderStatus(),i!==this.getLastChild()&&i.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===k.length?k[0]:null),j},addClass:function(a){return this.toggleClass(a,!0)},addNode:function(a,b){switch(b!==d&&"over"!==b||(b="child"),b){case"after":return this.getParent().addChildren(a,this.getNextSibling());case"before":return this.getParent().addChildren(a,this);case"firstChild":var c=this.children?this.children[0]:null;return this.addChildren(a,c);case"child":case"over":return this.addChildren(a)}e(!1,"Invalid mode: "+b)},addPagingNode:function(b,c){var d,e;if(c=c||"child",b===!1){for(d=this.children.length-1;d>=0;d--)e=this.children[d],"paging"===e.statusNodeType&&this.removeChild(e);return void(this.partload=!1)}return b=a.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},b),this.partload=!0,this.addNode(b,c)},appendSibling:function(a){return this.addNode(a,"after")},applyPatch:function(b){if(null===b)return this.remove(),k(this);var c,d,e,f={children:!0,expanded:!0,parent:!0};for(c in b)e=b[c],f[c]||a.isFunction(e)||(I[c]?this[c]=e:this.data[c]=e);return b.hasOwnProperty("children")&&(this.removeChildren(),b.children&&this._setChildren(b.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),d=b.hasOwnProperty("expanded")?this.setExpanded(b.expanded):k(this)},collapseSiblings:function(){return this.tree._callHook("nodeCollapseSiblings",this)},copyTo:function(a,b,c){return a.addNode(this.toDict(!0,c),b)},countChildren:function(a){var b,c,d,e=this.children;if(!e)return 0;if(d=e.length,a!==!1)for(b=0,c=d;b<c;b++)d+=e[b].countChildren();return d},debug:function(a){this.tree.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),f("log",arguments))},discard:function(){return this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead."),this.resetLazy()},discardMarkup:function(a){var b=a?"nodeRemoveMarkup":"nodeRemoveChildMarkup";this.tree._callHook(b,this)},findAll:function(b){b=a.isFunction(b)?b:q(b);var c=[];return this.visit(function(a){b(a)&&c.push(a)}),c},findFirst:function(b){b=a.isFunction(b)?b:q(b);var c=null;return this.visit(function(a){if(b(a))return c=a,!1}),c},_changeSelectStatusAttrs:function(a){var b=!1,c=this.tree.options,f=w.evalOption("unselectable",this,this,c,!1),g=w.evalOption("unselectableStatus",this,this,c,d);switch(f&&null!=g&&(a=g),a){case!1:b=this.selected||this.partsel,this.selected=!1,this.partsel=!1;break;case!0:b=!this.selected||!this.partsel,this.selected=!0,this.partsel=!0;break;case d:b=this.selected||!this.partsel,this.selected=!1,this.partsel=!0;break;default:e(!1,"invalid state: "+a)}return b&&this.renderStatus(),b},fixSelection3AfterClick:function(a){var b=this.isSelected();this.visit(function(a){a._changeSelectStatusAttrs(b)}),this.fixSelection3FromEndNodes(a)},fixSelection3FromEndNodes:function(a){function b(a){var e,f,g,h,i,j,k,l,m,n=a.children;if(n&&n.length){for(j=!0,k=!1,e=0,f=n.length;e<f;e++)g=n[e],h=b(g),l=w.evalOption("unselectableIgnore",g,g,c,!1),l||(h!==!1&&(k=!0),h!==!0&&(j=!1));i=!!j||!!k&&d}else m=w.evalOption("unselectableStatus",a,a,c,d),i=null==m?!!a.selected:!!m;return a._changeSelectStatusAttrs(i),i}var c=this.tree.options;e(3===c.selectMode,"expected selectMode 3"),b(this),this.visitParents(function(a){var b,e,f,g,h,i,j=a.children,k=!0,l=!1;for(b=0,e=j.length;b<e;b++)f=j[b],h=w.evalOption("unselectableIgnore",f,f,c,!1),h||(i=w.evalOption("unselectableStatus",f,f,c,d),g=null==i?!!f.selected:!!i,(g||f.partsel)&&(l=!0),g||(k=!1));g=!!k||!!l&&d,a._changeSelectStatusAttrs(g)})},fromDict:function(b){for(var c in b)I[c]?this[c]=b[c]:"data"===c?a.extend(this.data,b.data):a.isFunction(b[c])||K[c]||(this.data[c]=b[c]);b.children&&(this.removeChildren(),this.addChildren(b.children)),this.renderTitle()},getChildren:function(){return this.hasChildren()===d?d:this.children},getFirstChild:function(){return this.children?this.children[0]:null},getIndex:function(){return a.inArray(this,this.parent.children)},getIndexHier:function(b,c){b=b||".";var d,e=[];return a.each(this.getParentList(!1,!0),function(a,b){d=""+(b.getIndex()+1),c&&(d=("0000000"+d).substr(-c)),e.push(d)}),e.join(b)},getKeyPath:function(a){var b=[],c=this.tree.options.keyPathSeparator;return this.visitParents(function(a){a.parent&&b.unshift(a.key)},!a),c+b.join(c)},getLastChild:function(){return this.children?this.children[this.children.length-1]:null},getLevel:function(){for(var a=0,b=this.parent;b;)a++,b=b.parent;return a},getNextSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=0,b=c.length-1;a<b;a++)if(c[a]===this)return c[a+1]}return null},getParent:function(){return this.parent},getParentList:function(a,b){for(var c=[],d=b?this:this.parent;d;)(a||d.parent)&&c.unshift(d),d=d.parent;return c},getPrevSibling:function(){if(this.parent){var a,b,c=this.parent.children;for(a=1,b=c.length;a<b;a++)if(c[a]===this)return c[a-1]}return null},getSelectedNodes:function(a){var b=[];return this.visit(function(c){if(c.selected&&(b.push(c),a===!0))return"skip"}),b},hasChildren:function(){return this.lazy?null==this.children?d:0!==this.children.length&&(1!==this.children.length||!this.children[0].isStatusNode()||d):!(!this.children||!this.children.length)},hasFocus:function(){return this.tree.hasFocus()&&this.tree.focusNode===this},info:function(a){this.tree.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),f("info",arguments))},isActive:function(){return this.tree.activeNode===this},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a||a.tree!==this.tree)return!1;for(var b=this.parent;b;){if(b===a)return!0;b=b.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var a=this.parent;return!a||a.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var a=this.parent;return!a||a.children[a.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||this.hasChildren()!==d},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return this.hasChildren()===d},isVisible:function(){var a,b,c=this.getParentList(!1,!1);for(a=0,b=c.length;a<b;a++)if(!c[a].expanded)return!1;return!0},lazyLoad:function(a){return this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead."),this.load(a)},load:function(a){var b,c,d=this,f=this.isExpanded();return e(this.isLazy(),"load() requires a lazy node"),a||this.isUndefined()?(this.isLoaded()&&this.resetLazy(),c=this.tree._triggerNodeEvent("lazyLoad",this),c===!1?k(this):(e("boolean"!=typeof c,"lazyLoad event must return source in data.result"),b=this.tree._callHook("nodeLoadChildren",this,c),f?(this.expanded=!0,b.always(function(){d.render()})):b.always(function(){d.renderStatus()}),b)):k(this)},makeVisible:function(b){var c,d=this,e=[],f=new a.Deferred,g=this.getParentList(!1,!1),h=g.length,i=!(b&&b.noAnimation===!0),j=!(b&&b.scrollIntoView===!1);for(c=h-1;c>=0;c--)e.push(g[c].setExpanded(!0,b));return a.when.apply(a,e).done(function(){j?d.scrollIntoView(i).done(function(){f.resolve()}):f.resolve()}),f.promise()},moveTo:function(b,c,f){c===d||"over"===c?c="child":"firstChild"===c&&(b.children&&b.children.length?(c="before",b=b.children[0]):c="child");var g,h=this.parent,i="child"===c?b:b.parent;if(this!==b){if(this.parent?i.isDescendantOf(this)&&a.error("Cannot move a node to its own descendant"):a.error("Cannot move system root"),i!==h&&h.triggerModifyChild("remove",this),1===this.parent.children.length){if(this.parent===i)return;this.parent.children=this.parent.lazy?[]:null,this.parent.expanded=!1}else g=a.inArray(this,this.parent.children),e(g>=0,"invalid source parent"),this.parent.children.splice(g,1);if(this.parent=i,i.hasChildren())switch(c){case"child":i.children.push(this);break;case"before":g=a.inArray(b,i.children),e(g>=0,"invalid target parent"),i.children.splice(g,0,this);break;case"after":g=a.inArray(b,i.children),e(g>=0,"invalid target parent"),i.children.splice(g+1,0,this);break;default:a.error("Invalid mode "+c)}else i.children=[this];f&&b.visit(f,!0),i===h?i.triggerModifyChild("move",this):i.triggerModifyChild("add",this),this.tree!==b.tree&&(this.warn("Cross-tree moveTo is experimantal!"),this.visit(function(a){a.tree=b.tree},!0)),h.isDescendantOf(i)||h.render(),i.isDescendantOf(h)||i===h||i.render()}},navigate:function(b,c){function d(d){if(d){try{d.makeVisible({scrollIntoView:!1})}catch(e){}return a(d.span).is(":visible")?c===!1?d.setFocus():d.setActive():(d.debug("Navigate: skipping hidden node"),void d.navigate(b,c))}}var e,f,g,h=!0,i=a.ui.keyCode,j=null;switch(b){case i.BACKSPACE:this.parent&&this.parent.parent&&(g=d(this.parent));break;case i.HOME:this.tree.visit(function(b){if(a(b.span).is(":visible"))return g=d(b),!1});break;case i.END:this.tree.visit(function(b){a(b.span).is(":visible")&&(g=b)}),g&&(g=d(g));break;case i.LEFT:this.expanded?(this.setExpanded(!1),g=d(this)):this.parent&&this.parent.parent&&(g=d(this.parent));break;case i.RIGHT:this.expanded||!this.children&&!this.lazy?this.children&&this.children.length&&(g=d(this.children[0])):(this.setExpanded(),g=d(this));break;case i.UP:for(j=this.getPrevSibling();j&&!a(j.span).is(":visible");)j=j.getPrevSibling();for(;j&&j.expanded&&j.children&&j.children.length;)j=j.children[j.children.length-1];!j&&this.parent&&this.parent.parent&&(j=this.parent),g=d(j);break;case i.DOWN:if(this.expanded&&this.children&&this.children.length)j=this.children[0];else for(f=this.getParentList(!1,!0),e=f.length-1;e>=0;e--){for(j=f[e].getNextSibling();j&&!a(j.span).is(":visible");)j=j.getNextSibling();if(j)break}g=d(j);break;default:h=!1}return g||k()},remove:function(){return this.parent.removeChild(this)},removeChild:function(a){return this.tree._callHook("nodeRemoveChild",this,a)},removeChildren:function(){return this.tree._callHook("nodeRemoveChildren",this)},removeClass:function(a){return this.toggleClass(a,!1)},render:function(a,b){return this.tree._callHook("nodeRender",this,a,b)},renderTitle:function(){return this.tree._callHook("nodeRenderTitle",this)},renderStatus:function(){return this.tree._callHook("nodeRenderStatus",this)},replaceWith:function(b){var c,d=this.parent,f=a.inArray(this,d.children),g=this;return e(this.isPagingNode(),"replaceWith() currently requires a paging status node"),c=this.tree._callHook("nodeLoadChildren",this,b),c.done(function(a){var b=g.children;for(u=0;u<b.length;u++)b[u].parent=d;d.children.splice.apply(d.children,[f+1,0].concat(b)),g.children=null,g.remove(),d.render()}).fail(function(){g.setExpanded()}),c},resetLazy:function(){this.removeChildren(),this.expanded=!1,this.lazy=!0,this.children=d,this.renderStatus()},scheduleAction:function(b,c){this.tree.timer&&clearTimeout(this.tree.timer),this.tree.timer=null;var d=this;switch(b){case"cancel":break;case"expand":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger expand"),d.setExpanded(!0)},c);break;case"activate":this.tree.timer=setTimeout(function(){d.tree.debug("setTimeout: trigger activate"),d.setActive(!0)},c);break;default:a.error("Invalid mode "+b)}},scrollIntoView:function(f,h){h!==d&&g(h)&&(this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."),h={topNode:h});var i,j,l,m,n=a.extend({effects:f===!0?{duration:200,queue:!1}:f,scrollOfs:this.tree.options.scrollOfs,scrollParent:this.tree.options.scrollParent||this.tree.$container,topNode:null},h),o=new a.Deferred,p=this,q=a(this.span).height(),r=a(n.scrollParent),s=n.scrollOfs.top||0,t=n.scrollOfs.bottom||0,u=r.height(),v=r.scrollTop(),w=r,x=r[0]===b,y=n.topNode||null,z=null;return a(this.span).is(":visible")?(x?(j=a(this.span).offset().top,i=y&&y.span?a(y.span).offset().top:0,w=a("html,body")):(e(r[0]!==c&&r[0]!==c.body,"scrollParent should be a simple element or `window`, not document or body."),m=r.offset().top,j=a(this.span).offset().top-m+v,i=y?a(y.span).offset().top-m+v:0,l=Math.max(0,r.innerHeight()-r[0].clientHeight),u-=l),j<v+s?z=j-s:j+q>v+u-t&&(z=j+q-u+t,y&&(e(y.isRootNode()||a(y.span).is(":visible"),"topNode must be visible"),i<z&&(z=i-s))),null!==z?n.effects?(n.effects.complete=function(){o.resolveWith(p)},w.stop(!0).animate({scrollTop:z},n.effects)):(w[0].scrollTop=z,o.resolveWith(this)):o.resolveWith(this),o.promise()):(this.warn("scrollIntoView(): node is invisible."),k())},setActive:function(a,b){return this.tree._callHook("nodeSetActive",this,a,b)},setExpanded:function(a,b){return this.tree._callHook("nodeSetExpanded",this,a,b)},setFocus:function(a){return this.tree._callHook("nodeSetFocus",this,a)},setSelected:function(a,b){return this.tree._callHook("nodeSetSelected",this,a,b)},setStatus:function(a,b,c){return this.tree._callHook("nodeSetStatus",this,a,b,c)},setTitle:function(a){this.title=a,this.renderTitle(),this.triggerModify("rename")},sortChildren:function(a,b){var c,d,e=this.children;if(e){if(a=a||function(a,b){var c=a.title.toLowerCase(),d=b.title.toLowerCase();return c===d?0:c>d?1:-1},e.sort(a),b)for(c=0,d=e.length;c<d;c++)e[c].children&&e[c].sortChildren(a,"$norender$");"$norender$"!==b&&this.render(),this.triggerModifyChild("sort")}},toDict:function(b,c){var d,e,f,g={},h=this;if(a.each(H,function(a,b){(h[b]||h[b]===!1)&&(g[b]=h[b])}),a.isEmptyObject(this.data)||(g.data=a.extend({},this.data),a.isEmptyObject(g.data)&&delete g.data),c&&c(g,h),b&&this.hasChildren())for(g.children=[],d=0,e=this.children.length;d<e;d++)f=this.children[d],f.isStatusNode()||g.children.push(f.toDict(!0,c));return g},toggleClass:function(b,c){var e,f,g=/\S+/g,h=b.match(g)||[],i=0,j=!1,k=this[this.tree.statusClassPropName],l=" "+(this.extraClasses||"")+" ";for(k&&a(k).toggleClass(b,c);e=h[i++];)if(f=l.indexOf(" "+e+" ")>=0,c=c===d?!f:!!c)f||(l+=e+" ",j=!0);else for(;l.indexOf(" "+e+" ")>-1;)l=l.replace(" "+e+" "," ");return this.extraClasses=a.trim(l),j},toggleExpanded:function(){return this.tree._callHook("nodeToggleExpanded",this)},toggleSelected:function(){return this.tree._callHook("nodeToggleSelected",this)},toString:function(){return"<FancytreeNode(#"+this.key+", '"+this.title+"')>"},triggerModifyChild:function(b,c,d){var e,f=this.tree.options.modifyChild;f&&(c&&c.parent!==this&&a.error("childNode "+c+" is not a child of "+this),e={node:this,tree:this.tree,operation:b,childNode:c||null},d&&a.extend(e,d),f({type:"modifyChild"},e))},triggerModify:function(a,b){this.parent.triggerModifyChild(a,this,b)},visit:function(a,b){var c,d,e=!0,f=this.children;if(b===!0&&(e=a(this),e===!1||"skip"===e))return e;if(f)for(c=0,d=f.length;c<d&&(e=f[c].visit(a,!0),e!==!1);c++);return e},visitAndLoad:function(b,c,d){var e,f,g,h=this;return b&&c===!0&&(f=b(h),f===!1||"skip"===f)?d?f:k():h.children||h.lazy?(e=new a.Deferred,g=[],h.load().done(function(){for(var c=0,d=h.children.length;c<d;c++){if(f=h.children[c].visitAndLoad(b,!0,!0),f===!1){e.reject();break}"skip"!==f&&g.push(f)}a.when.apply(this,g).then(function(){e.resolve()})}),e.promise()):k()},visitParents:function(a,b){if(b&&a(this)===!1)return!1;for(var c=this.parent;c;){if(a(c)===!1)return!1;c=c.parent}return!0},visitSiblings:function(a,b){var c,d,e,f=this.parent.children;for(c=0,d=f.length;c<d;c++)if(e=f[c],(b||e!==this)&&a(e)===!1)return!1;return!0},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),f("warn",arguments)}},t.prototype={_makeHookContext:function(b,c,e){var f,g;return b.node!==d?(c&&b.originalEvent!==c&&a.error("invalid args"),f=b):b.tree?(g=b.tree,f={node:b,tree:g,widget:g.widget,options:g.widget.options,originalEvent:c}):b.widget?f={node:null,tree:b,widget:b.widget,options:b.widget.options,originalEvent:c}:a.error("invalid args"),e&&a.extend(f,e),f},_callHook:function(b,c,d){var e=this._makeHookContext(c),f=this[b],g=Array.prototype.slice.call(arguments,2);return a.isFunction(f)||a.error("_callHook('"+b+"') is not a function"),g.unshift(e),f.apply(this,g)},_requireExtension:function(b,c,d,f){d=!!d;var g=this._local.name,h=this.options.extensions,i=a.inArray(b,h)<a.inArray(g,h),j=c&&null==this.ext[b],k=!j&&null!=d&&d!==i;return e(g&&g!==b,"invalid or same name"),!j&&!k||(f||(j||c?(f="'"+g+"' extension requires '"+b+"'",k&&(f+=" to be registered "+(d?"before":"after")+" itself")):f="If used together, `"+b+"` must be registered "+(d?"before":"after")+" `"+g+"`"),a.error(f),!1)},activateKey:function(a){var b=this.getNodeByKey(a);return b?b.setActive():this.activeNode&&this.activeNode.setActive(!1),b},addPagingNode:function(a,b){return this.rootNode.addPagingNode(a,b)},applyPatch:function(b){var c,d,f,g,h,i,j=b.length,k=[];for(d=0;d<j;d++)f=b[d],e(2===f.length,"patchList must be an array of length-2-arrays"),g=f[0],h=f[1],i=null===g?this.rootNode:this.getNodeByKey(g),i?(c=new a.Deferred,k.push(c),i.applyPatch(h).always(m(c,i))):this.warn("could not find node with key '"+g+"'");return a.when.apply(a,k).promise()},clear:function(a){this._callHook("treeClear",this)},count:function(){return this.rootNode.countChildren()},debug:function(a){this.options.debugLevel>=2&&(Array.prototype.unshift.call(arguments,this.toString()),f("log",arguments))},enableUpdate:function(a){return a=a!==!1,!!this._enableUpdate==!!a?a:(this._enableUpdate=a,a?(this.debug("enableUpdate(true): redraw "),this.render()):this.debug("enableUpdate(false)..."),!a)},findAll:function(a){return this.rootNode.findAll(a)},findFirst:function(a){return this.rootNode.findFirst(a)},findNextNode:function(b,c,d){var e=null,f=c.parent.children,g=null,h=function(a,b,c){var d,e,f=a.children,g=f.length,i=f[b];if(i&&c(i)===!1)return!1;if(i&&i.children&&i.expanded&&h(i,0,c)===!1)return!1;for(d=b+1;d<g;d++)if(h(a,d,c)===!1)return!1;return e=a.parent,e?h(e,e.children.indexOf(a)+1,c):h(a,0,c)};return b="string"==typeof b?r(b):b,c=c||this.getFirstChild(),h(c.parent,f.indexOf(c),function(d){return d!==e&&(e=e||d,a(d.span).is(":visible")?(!b(d)||(g=d,g===c))&&void 0:void d.debug("quicksearch: skipping hidden node"))}),g},generateFormElements:function(b,c,d){function e(b){j.append(a("<input>",{type:"checkbox",name:g,value:b.key,checked:!0}))}d=d||{};var f,g="string"==typeof b?b:"ft_"+this._id+"[]",h="string"==typeof c?c:"ft_"+this._id+"_active",i="fancytree_result_"+this._id,j=a("#"+i),k=3===this.options.selectMode&&d.stopOnParents!==!1;j.length?j.empty():j=a("<div>",{id:i}).hide().insertAfter(this.$container),c!==!1&&this.activeNode&&j.append(a("<input>",{type:"radio",name:h,value:this.activeNode.key,checked:!0})),d.filter?this.visit(function(a){var b=d.filter(a);return"skip"===b?b:void(b!==!1&&e(a))}):b!==!1&&(f=this.getSelectedNodes(k),a.each(f,function(a,b){e(b)}))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getNodeByKey:function(a,b){var d,e;return!b&&(d=c.getElementById(this.options.idPrefix+a))?d.ftnode?d.ftnode:null:(b=b||this.rootNode,e=null,b.visit(function(b){if(b.key===a)return e=b,!1},!0),e)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(a){return this.rootNode.getSelectedNodes(a)},hasFocus:function(){return!!this._hasFocus},info:function(a){this.options.debugLevel>=1&&(Array.prototype.unshift.call(arguments,this.toString()),f("info",arguments))},loadKeyPath:function(b,c,e){function f(a,b,d){c.call(r,b,"loading"),b.load().done(function(){r.loadKeyPath.call(r,l[a],c,b).always(m(d,r))}).fail(function(e){r.warn("loadKeyPath: error loading: "+a+" (parent: "+o+")"),c.call(r,b,"error"),d.reject()})}var g,h,i,j,k,l,n,o,p,q=this.options.keyPathSeparator,r=this;for(c=c||a.noop,a.isArray(b)||(b=[b]),l={},i=0;i<b.length;i++)for(o=e||this.rootNode,j=b[i],j.charAt(0)===q&&(j=j.substr(1)),p=j.split(q);p.length;){if(k=p.shift(),n=o._findDirectChild(k),!n){this.warn("loadKeyPath: key not found: "+k+" (parent: "+o+")"),c.call(this,k,"error");break}if(0===p.length){c.call(this,n,"ok");break}if(n.lazy&&n.hasChildren()===d){c.call(this,n,"loaded"),l[k]?l[k].push(p.join(q)):l[k]=[p.join(q)];break}c.call(this,n,"loaded"),o=n}g=[];for(k in l)n=o._findDirectChild(k),null==n&&(n=r.getNodeByKey(k)),h=new a.Deferred,g.push(h),f(k,n,h);return a.when.apply(a,g).promise()},reactivate:function(a){var b,c=this.activeNode;return c?(this.activeNode=null,b=c.setActive(!0,{noFocus:!0}),a&&c.setFocus(),b):k()},reload:function(a){return this._callHook("treeClear",this),this._callHook("treeLoad",this,a)},render:function(a,b){return this.rootNode.render(a,b)},setFocus:function(a){return this._callHook("treeSetFocus",this,a)},toDict:function(a,b){var c=this.rootNode.toDict(!0,b);return a?c:c.children},toString:function(){return"<Fancytree(#"+this._id+")>"},_triggerNodeEvent:function(a,b,c,e){var f=this._makeHookContext(b,c,e),g=this.widget._trigger(a,c,f);return g!==!1&&f.result!==d?f.result:g},_triggerTreeEvent:function(a,b,c){var e=this._makeHookContext(this,b,c),f=this.widget._trigger(a,b,e);return f!==!1&&e.result!==d?e.result:f},visit:function(a){return this.rootNode.visit(a,!1)},warn:function(a){Array.prototype.unshift.call(arguments,this.toString()),f("warn",arguments)}},a.extend(t.prototype,{nodeClick:function(a){var b,c,d=a.targetType,e=a.node;if("expander"===d){if(e.isLoading())return void e.debug("Got 2nd click while loading: ignored");this._callHook("nodeToggleExpanded",a)}else if("checkbox"===d)this._callHook("nodeToggleSelected",a),a.options.focusOnSelect&&this._callHook("nodeSetFocus",a,!0);else{if(c=!1,b=!0,e.folder)switch(a.options.clickFolderMode){case 2:c=!0,b=!1;break;case 3:b=!0,c=!0}b&&(this.nodeSetFocus(a),this._callHook("nodeSetActive",a,!0)),c&&this._callHook("nodeToggleExpanded",a)}},nodeCollapseSiblings:function(a,b){var c,d,e,f=a.node;if(f.parent)for(c=f.parent.children,d=0,e=c.length;d<e;d++)c[d]!==f&&c[d].expanded&&this._callHook("nodeSetExpanded",c[d],!1,b)},nodeDblclick:function(a){"title"===a.targetType&&4===a.options.clickFolderMode&&this._callHook("nodeToggleExpanded",a),"title"===a.targetType&&a.originalEvent.preventDefault()},nodeKeydown:function(b){var c,d,e,f,g=b.originalEvent,h=b.node,i=b.tree,j=b.options,k=g.which,l=String.fromCharCode(k),m=!(g.altKey||g.ctrlKey||g.metaKey||g.shiftKey),n=a(g.target),o=!0,p=!(g.ctrlKey||!j.autoActivate);if(h||(f=this.getActiveNode()||this.getFirstChild(),f&&(f.setFocus(),h=b.node=this.focusNode,h.debug("Keydown force focus on active node"))),j.quicksearch&&m&&/\w/.test(l)&&!D[k]&&!n.is(":input:enabled"))return d=(new Date).getTime(),d-i.lastQuicksearchTime>500&&(i.lastQuicksearchTerm=""),i.lastQuicksearchTime=d,i.lastQuicksearchTerm+=l,c=i.findNextNode(i.lastQuicksearchTerm,i.getActiveNode()),c&&c.setActive(),void g.preventDefault();switch(w.eventToString(g)){case"+":case"=":i.nodeSetExpanded(b,!0);break;case"-":i.nodeSetExpanded(b,!1);break;case"space":h.isPagingNode()?i._triggerNodeEvent("clickPaging",b,g):j.checkbox?i.nodeToggleSelected(b):i.nodeSetActive(b,!0);break;case"return":i.nodeSetActive(b,!0);break;case"home":case"end":case"backspace":case"left":case"right":case"up":case"down":e=h.navigate(g.which,p,!0);break;default:o=!1}o&&g.preventDefault()},nodeLoadChildren:function(b,c){var d,f,g,h=b.tree,i=b.node,j=(new Date).getTime();return a.isFunction(c)&&(c=c.call(h,{type:"source"},b),e(!a.isFunction(c),"source callback must not return another function")),c.url&&(i._requestId&&i.warn("Recursive load request #"+j+" while #"+i._requestId+" is pending."),d=a.extend({},b.options.ajax,c),i._requestId=j,d.debugDelay?(f=d.debugDelay,a.isArray(f)&&(f=f[0]+Math.random()*(f[1]-f[0])),i.warn("nodeLoadChildren waiting debugDelay "+Math.round(f)+" ms ..."),d.debugDelay=!1,g=a.Deferred(function(b){setTimeout(function(){a.ajax(d).done(function(){b.resolveWith(this,arguments)}).fail(function(){b.rejectWith(this,arguments)})},f)})):g=a.ajax(d),c=new a.Deferred,g.done(function(d,e,f){var g,k;if("json"!==this.dataType&&"jsonp"!==this.dataType||"string"!=typeof d||a.error("Ajax request returned a string (did you get the JSON dataType wrong?)."),i._requestId&&i._requestId>j)return void c.rejectWith(this,[A]);if(b.options.postProcess){try{k=h._triggerNodeEvent("postProcess",b,b.originalEvent,{response:d,error:null,dataType:this.dataType})}catch(l){k={error:l,message:""+l,details:"postProcess failed"}}if(k.error)return g=a.isPlainObject(k.error)?k.error:{message:k.error},g=h._makeHookContext(i,null,g),void c.rejectWith(this,[g]);d=a.isArray(k)?k:d}else d&&d.hasOwnProperty("d")&&b.options.enableAspx&&(d="string"==typeof d.d?a.parseJSON(d.d):d.d);c.resolveWith(this,[d])}).fail(function(a,b,d){var e=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:d,details:a.status+": "+d});c.rejectWith(this,[e])})),a.isFunction(c.then)&&a.isFunction(c["catch"])&&(g=c,-c=new a.Deferred,g.then(function(a){c.resolve(a)},function(a){c.reject(a)})),a.isFunction(c.promise)&&(h.nodeSetStatus(b,"loading"),c.done(function(a){h.nodeSetStatus(b,"ok"),i._requestId=null}).fail(function(a){var c;return a===A?void i.warn("Ignored response for obsolete load request #"+j+" (expected #"+i._requestId+")"):(a.node&&a.error&&a.message?c=a:(c=h._makeHookContext(i,null,{error:a,args:Array.prototype.slice.call(arguments),message:a?a.message||a.toString():""}),"[object Object]"===c.message&&(c.message="")),i.warn("Load children failed ("+c.message+")",c),void(h._triggerNodeEvent("loadError",c,null)!==!1&&h.nodeSetStatus(b,"error",c.message,c.details)))})),a.when(c).done(function(b){var c;a.isPlainObject(b)&&(e(i.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),e(a.isArray(b.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),c=b,b=b.children,delete c.children,a.extend(h.data,c)),e(a.isArray(b),"expected array of children"),i._setChildren(b),h._triggerNodeEvent("loadChildren",i)})},nodeLoadKeyPath:function(a,b){},nodeRemoveChild:function(b,c){var d,f=b.node,g=a.extend({},b,{node:c}),h=f.children;return 1===h.length?(e(c===h[0],"invalid single child"),this.nodeRemoveChildren(b)):(this.activeNode&&(c===this.activeNode||this.activeNode.isDescendantOf(c))&&this.activeNode.setActive(!1),this.focusNode&&(c===this.focusNode||this.focusNode.isDescendantOf(c))&&(this.focusNode=null),this.nodeRemoveMarkup(g),this.nodeRemoveChildren(g),d=a.inArray(c,h),e(d>=0,"invalid child"),f.triggerModifyChild("remove",c),c.visit(function(a){a.parent=null},!0),this._callHook("treeRegisterNode",this,!1,c),void h.splice(d,1))},nodeRemoveChildMarkup:function(b){var c=b.node;c.ul&&(c.isRootNode()?a(c.ul).empty():(a(c.ul).remove(),c.ul=null),c.visit(function(a){a.li=a.ul=null}))},nodeRemoveChildren:function(b){var c,d=b.tree,e=b.node,f=e.children;f&&(this.activeNode&&this.activeNode.isDescendantOf(e)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(e)&&(this.focusNode=null),this.nodeRemoveChildMarkup(b),c=a.extend({},b),e.triggerModifyChild("remove",null),e.visit(function(a){a.parent=null,d._callHook("treeRegisterNode",d,!1,a)}),e.lazy?e.children=[]:e.children=null,e.isRootNode()||(e.expanded=!1),this.nodeRenderStatus(b))},nodeRemoveMarkup:function(b){var c=b.node;c.li&&(a(c.li).remove(),c.li=null),this.nodeRemoveChildMarkup(b)},nodeRender:function(b,d,f,g,h){var i,j,k,l,m,n,o,p=b.node,q=b.tree,r=b.options,s=r.aria,t=!1,u=p.parent,v=!u,w=p.children,x=null;if(q._enableUpdate!==!1&&(v||u.ul)){if(e(v||u.ul,"parent UL must exist"),v||(p.li&&(d||p.li.parentNode!==p.parent.ul)&&(p.li.parentNode===p.parent.ul?x=p.li.nextSibling:this.debug("Unlinking "+p+" (must be child of "+p.parent+")"),this.nodeRemoveMarkup(b)),p.li?this.nodeRenderStatus(b):(t=!0,p.li=c.createElement("li"),p.li.ftnode=p,p.key&&r.generateIds&&(p.li.id=r.idPrefix+p.key),p.span=c.createElement("span"),p.span.className="fancytree-node",s&&!p.tr&&a(p.li).attr("role","treeitem"),p.li.appendChild(p.span),this.nodeRenderTitle(b),r.createNode&&r.createNode.call(q,{type:"createNode"},b)),r.renderNode&&r.renderNode.call(q,{type:"renderNode"},b)),w){if(v||p.expanded||f===!0){for(p.ul||(p.ul=c.createElement("ul"),(g!==!0||h)&&p.expanded||(p.ul.style.display="none"),s&&a(p.ul).attr("role","group"),p.li?p.li.appendChild(p.ul):p.tree.$div.append(p.ul)),l=0,m=w.length;l<m;l++)o=a.extend({},b,{node:w[l]}),this.nodeRender(o,d,f,!1,!0);for(i=p.ul.firstChild;i;)k=i.ftnode,k&&k.parent!==p?(p.debug("_fixParent: remove missing "+k,i),n=i.nextSibling,i.parentNode.removeChild(i),i=n):i=i.nextSibling;for(i=p.ul.firstChild,l=0,m=w.length-1;l<m;l++)j=w[l],k=i.ftnode,j!==k?p.ul.insertBefore(j.li,k.li):i=i.nextSibling}}else p.ul&&(this.warn("remove child markup for "+p),this.nodeRemoveChildMarkup(b));v||t&&u.ul.insertBefore(p.li,x)}},nodeRenderTitle:function(b,c){var e,f,g,h,i,j,k,l=b.node,m=b.tree,n=b.options,q=n.aria,r=l.getLevel(),s=[];c!==d&&(l.title=c),l.span&&m._enableUpdate!==!1&&(i=q&&l.hasChildren()!==!1?" role='button'":"",r<n.minExpandLevel?(l.lazy||(l.expanded=!0),r>1&&s.push("<span "+i+" class='fancytree-expander fancytree-expander-fixed'></span>")):s.push("<span "+i+" class='fancytree-expander'></span>"),e=w.evalOption("checkbox",l,l,n,!1),e&&!l.isStatusNode()&&(i=q?" role='checkbox'":"",f="fancytree-checkbox",("radio"===e||l.parent&&l.parent.radiogroup)&&(f+=" fancytree-radio"),s.push("<span "+i+" class='"+f+"'></span>")),l.data.iconClass!==d&&(l.icon?a.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(l.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),l.icon=l.data.iconClass)),g=w.evalOption("icon",l,l,n,!0),"boolean"!=typeof g&&(g=""+g),g!==!1&&(i=q?" role='presentation'":"","string"==typeof g?x.test(g)?(g="/"===g.charAt(0)?g:(n.imagePath||"")+g,s.push("<img src='"+g+"' class='fancytree-icon' alt='' />")):s.push("<span "+i+" class='fancytree-custom-icon "+g+"'></span>"):s.push("<span "+i+" class='fancytree-icon'></span>")),h="",n.renderTitle&&(h=n.renderTitle.call(m,{type:"renderTitle"},b)||""),h||(k=w.evalOption("tooltip",l,l,n,null),k===!0&&(k=l.title),k=k?" title='"+p(k)+"'":"",j=n.titlesTabbable?" tabindex='0'":"",h="<span class='fancytree-title'"+k+j+">"+(n.escapeTitles?o(l.title):l.title)+"</span>"),s.push(h),l.span.innerHTML=s.join(""),this.nodeRenderStatus(b),n.enhanceTitle&&(b.$title=a(">span.fancytree-title",l.span),h=n.enhanceTitle.call(m,{type:"enhanceTitle"},b)||""))},nodeRenderStatus:function(b){var c,d=b.node,e=b.tree,f=b.options,g=d.hasChildren(),h=d.isLastSibling(),i=f.aria,j=f._classNames,k=[],l=d[e.statusClassPropName];l&&e._enableUpdate!==!1&&(i&&(c=a(d.tr||d.li)),k.push(j.node),e.activeNode===d&&k.push(j.active),e.focusNode===d&&k.push(j.focused),d.expanded&&k.push(j.expanded),i&&(g!==!1?c.attr("aria-expanded",Boolean(d.expanded)):c.removeAttr("aria-expanded")),d.folder&&k.push(j.folder),g!==!1&&k.push(j.hasChildren),h&&k.push(j.lastsib),d.lazy&&null==d.children&&k.push(j.lazy),d.partload&&k.push(j.partload),d.partsel&&k.push(j.partsel),w.evalOption("unselectable",d,d,f,!1)&&k.push(j.unselectable),d._isLoading&&k.push(j.loading),d._error&&k.push(j.error),d.statusNodeType&&k.push(j.statusNodePrefix+d.statusNodeType),d.selected?(k.push(j.selected),i&&c.attr("aria-selected",!0)):i&&c.attr("aria-selected",!1),d.extraClasses&&k.push(d.extraClasses),g===!1?k.push(j.combinedExpanderPrefix+"n"+(h?"l":"")):k.push(j.combinedExpanderPrefix+(d.expanded?"e":"c")+(d.lazy&&null==d.children?"d":"")+(h?"l":"")),k.push(j.combinedIconPrefix+(d.expanded?"e":"c")+(d.folder?"f":"")),l.className=k.join(" "),d.li&&a(d.li).toggleClass(j.lastsib,h))},nodeSetActive:function(b,c,d){d=d||{};var f,g=b.node,h=b.tree,i=b.options,j=d.noEvents===!0,m=d.noFocus===!0,n=g===h.activeNode;return c=c!==!1,n===c?k(g):c&&!j&&this._triggerNodeEvent("beforeActivate",g,b.originalEvent)===!1?l(g,["rejected"]):(c?(h.activeNode&&(e(h.activeNode!==g,"node was active (inconsistency)"),f=a.extend({},b,{node:h.activeNode}),h.nodeSetActive(f,!1),e(null===h.activeNode,"deactivate was out of sync?")),i.activeVisible&&g.makeVisible({scrollIntoView:m&&null==h.focusNode}),h.activeNode=g,h.nodeRenderStatus(b),m||h.nodeSetFocus(b),j||h._triggerNodeEvent("activate",g,b.originalEvent)):(e(h.activeNode===g,"node was not active (inconsistency)"),h.activeNode=null,this.nodeRenderStatus(b),j||b.tree._triggerNodeEvent("deactivate",g,b.originalEvent)),k(g))},nodeSetExpanded:function(b,c,e){e=e||{};var f,g,h,i,j,m,n=b.node,o=b.tree,p=b.options,q=e.noAnimation===!0,r=e.noEvents===!0;if(c=c!==!1,n.expanded&&c||!n.expanded&&!c)return k(n);if(c&&!n.lazy&&!n.hasChildren())return k(n);if(!c&&n.getLevel()<p.minExpandLevel)return l(n,["locked"]);if(!r&&this._triggerNodeEvent("beforeExpand",n,b.originalEvent)===!1)return l(n,["rejected"]);if(q||n.isVisible()||(q=e.noAnimation=!0),g=new a.Deferred,c&&!n.expanded&&p.autoCollapse){j=n.getParentList(!1,!0),m=p.autoCollapse;try{for(p.autoCollapse=!1,h=0,i=j.length;h<i;h++)this._callHook("nodeCollapseSiblings",j[h],e)}finally{p.autoCollapse=m}}return g.done(function(){var a=n.getLastChild();c&&p.autoScroll&&!q&&a?a.scrollIntoView(!0,{topNode:n}).always(function(){r||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}):r||b.tree._triggerNodeEvent(c?"expand":"collapse",b)}),f=function(d){var e,f,g=p._classNames,h=p.toggleEffect;if(n.expanded=c,o._callHook("nodeRender",b,!1,!1,!0),n.ul)if(e="none"!==n.ul.style.display,f=!!n.expanded,e===f)n.warn("nodeSetExpanded: UL.style.display already set");else{if(h&&!q)return a(n.li).addClass(g.animating),void a(n.ul).addClass(g.animating).toggle(h.effect,h.options,h.duration,function(){a(this).removeClass(g.animating),a(n.li).removeClass(g.animating),d()});n.ul.style.display=n.expanded||!parent?"":"none"}d()},c&&n.lazy&&n.hasChildren()===d?n.load().done(function(){g.notifyWith&&g.notifyWith(n,["loaded"]),f(function(){g.resolveWith(n)})}).fail(function(a){f(function(){g.rejectWith(n,["load failed ("+a+")"])})}):f(function(){g.resolveWith(n)}),g.promise()},nodeSetFocus:function(b,d){var e,f=b.tree,g=b.node,h=f.options,i=!!b.originalEvent&&a(b.originalEvent.target).is(":input");if(d=d!==!1,f.focusNode){if(f.focusNode===g&&d)return;e=a.extend({},b,{node:f.focusNode}),f.focusNode=null,this._triggerNodeEvent("blur",e),this._callHook("nodeRenderStatus",e)}d&&(this.hasFocus()||(g.debug("nodeSetFocus: forcing container focus"),this._callHook("treeSetFocus",b,!0,{calledByNode:!0})),g.makeVisible({scrollIntoView:!1}),f.focusNode=g,h.titlesTabbable?i||a(g.span).find(".fancytree-title").focus():0===a(c.activeElement).closest(".fancytree-container").length&&a(f.$container).focus(),h.aria&&a(f.$container).attr("aria-activedescendant",a(g.tr||g.li).uniqueId().attr("id")),this._triggerNodeEvent("focus",b),h.autoScroll&&g.scrollIntoView(),this._callHook("nodeRenderStatus",b))},nodeSetSelected:function(a,b,c){c=c||{};var d=a.node,e=a.tree,f=a.options,g=c.noEvents===!0;if(b=b!==!1,!w.evalOption("unselectable",d,d,f,!1)){if(d._lastSelectIntent=b,!!d.selected===b&&(3!==f.selectMode||!d.partsel||b))return b;if(!g&&this._triggerNodeEvent("beforeSelect",d,a.originalEvent)===!1)return!!d.selected;b&&1===f.selectMode?(e.lastSelectedNode&&e.lastSelectedNode.setSelected(!1),d.selected=b):3!==f.selectMode||d.parent.radiogroup||d.radiogroup?d.parent.radiogroup?d.visitSiblings(function(a){a._changeSelectStatusAttrs(b&&a===d)},!0):d.selected=b:(d.selected=b,d.fixSelection3AfterClick(c)),this.nodeRenderStatus(a),e.lastSelectedNode=b?d:null,g||e._triggerNodeEvent("select",a)}},nodeSetStatus:function(b,c,d,e){function f(){var a=h.children?h.children[0]:null;if(a&&a.isStatusNode()){try{h.ul&&(h.ul.removeChild(a.li),a.li=null)}catch(b){}1===h.children.length?h.children=[]:h.children.shift()}}function g(b,c){var d=h.children?h.children[0]:null;return d&&d.isStatusNode()?(a.extend(d,b),d.statusNodeType=c,i._callHook("nodeRenderTitle",d)):(h._setChildren([b]),h.children[0].statusNodeType=c,i.render()),h.children[0]}var h=b.node,i=b.tree;switch(c){case"ok":f(),h._isLoading=!1,h._error=null,h.renderStatus();break;case"loading":h.parent||g({title:i.options.strings.loading+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!0,h._error=null,h.renderStatus();break;case"error":g({title:i.options.strings.loadError+(d?" ("+d+")":""),checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error={message:d,details:e},h.renderStatus();break;case"nodata":g({title:i.options.strings.noData,checkbox:!1,tooltip:e},c),h._isLoading=!1,h._error=null,h.renderStatus();break;default:a.error("invalid node status "+c)}},nodeToggleExpanded:function(a){return this.nodeSetExpanded(a,!a.node.expanded)},nodeToggleSelected:function(a){var b=a.node,c=!b.selected;return b.partsel&&!b.selected&&b._lastSelectIntent===!0&&(c=!1,b.selected=!0),b._lastSelectIntent=c,this.nodeSetSelected(a,c)},treeClear:function(a){var b=a.tree;b.activeNode=null,b.focusNode=null,b.$div.find(">ul.fancytree-container").empty(),b.rootNode.children=null},treeCreate:function(a){},treeDestroy:function(a){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("ui-helper-hidden")},treeInit:function(a){var b=a.tree,c=b.options;b.$container.attr("tabindex",c.tabindex),c.rtl?b.$container.attr("DIR","RTL").addClass("fancytree-rtl"):b.$container.removeAttr("DIR").removeClass("fancytree-rtl"),c.aria&&(b.$container.attr("role","tree"),1!==c.selectMode&&b.$container.attr("aria-multiselectable",!0)),this.treeLoad(a)},treeLoad:function(b,c){var d,f,g,h,i=b.tree,j=b.widget.element,k=a.extend({},b,{node:this.rootNode});if(i.rootNode.children&&this.treeClear(b),c=c||this.options.source)"string"==typeof c&&a.error("Not implemented");else switch(f=j.data("type")||"html"){case"html":g=j.find(">ul:first"),g.addClass("ui-fancytree-source ui-helper-hidden"),c=a.ui.fancytree.parseHtml(g),this.data=a.extend(this.data,n(g));break;case"json":c=a.parseJSON(j.text()),j.contents().filter(function(){return 3===this.nodeType}).remove(),a.isPlainObject(c)&&(e(a.isArray(c.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),d=c,c=c.children,delete d.children,a.extend(i.data,d));break;default:a.error("Invalid data-type: "+f)}return h=this.nodeLoadChildren(k,c).done(function(){i.render(),3===b.options.selectMode&&i.rootNode.fixSelection3FromEndNodes(),i.activeNode&&i.options.activeVisible&&i.activeNode.makeVisible(),i._triggerTreeEvent("init",null,{status:!0})}).fail(function(){i.render(),i._triggerTreeEvent("init",null,{status:!1})})},treeRegisterNode:function(a,b,c){},treeSetFocus:function(b,c,d){function e(a){!a.activeNode&&a.getFirstChild()&&a.getFirstChild().setFocus()}if(c=c!==!1,c!==this.hasFocus()&&(this._hasFocus=c,!c&&this.focusNode?this.focusNode.setFocus(!1):!c||d&&d.calledByNode||a(this.$container).focus(),this.$container.toggleClass("fancytree-treefocus",c),this._triggerTreeEvent(c?"focusTree":"blurTree"),c)){var f=this;setTimeout(function(){e(f)},0)}},treeSetOption:function(b,c,d){var e=b.tree,f=!0,g=!1;switch(c){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":e._callHook("treeCreate",e),g=!0;break;case"escapeTitles":case"tooltip":g=!0;break;case"rtl":d===!1?e.$container.removeAttr("DIR").removeClass("fancytree-rtl"):e.$container.attr("DIR","RTL").addClass("fancytree-rtl"),g=!0;break;case"source":f=!1,e._callHook("treeLoad",e,d),g=!0}e.debug("set option "+c+"="+d+" <"+typeof d+">"),f&&(this.widget._super?this.widget._super.call(this.widget,c,d):a.Widget.prototype._setOption.call(this.widget,c,d)),g&&e.render(!0,!1)}}),a.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,debugLevel:null,disabled:!1,enableAspx:!0,escapeTitles:!1,extensions:[],toggleEffect:{effect:"blind",options:{direction:"vertical",scale:"box"},duration:200},generateIds:!1,icon:!0,idPrefix:"ft_",focusOnSelect:!1,keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,tooltip:!1,_classNames:{node:"fancytree-node",folder:"fancytree-folder",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",hasChildren:"fancytree-has-children",active:"fancytree-active",selected:"fancytree-selected",expanded:"fancytree-expanded",lazy:"fancytree-lazy",focused:"fancytree-focused",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",unselectable:"fancytree-unselectable",lastsib:"fancytree-lastsib",loading:"fancytree-loading",error:"fancytree-error",statusNodePrefix:"fancytree-statusnode-"},lazyLoad:null,postProcess:null},_create:function(){this.tree=new t(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul:first");var b,c,f,g=this.options,h=g.extensions,i=this.tree;for(f=0;f<h.length;f++)c=h[f],b=a.ui.fancytree._extensions[c],b||a.error("Could not apply extension '"+c+"' (it is not registered, did you forget to include it?)"),this.tree.options[c]=a.extend(!0,{},b.options,this.tree.options[c]),e(this.tree.ext[c]===d,"Extension name must not exist as Fancytree.ext attribute: '"+c+"'"),this.tree.ext[c]={},j(this.tree,i,b,c),i=b;g.icons!==d&&(g.icon!==!0?a.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead"),g.icon=g.icons)),g.iconClass!==d&&(g.icon?a.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead"),g.icon=g.iconClass)),g.tabbable!==d&&(g.tabindex=g.tabbable?"0":"-1",this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='"+g.tabindex+"' instead")),this.tree._callHook("treeCreate",this.tree)},_init:function(){this.tree._callHook("treeInit",this.tree),this._bind()},_setOption:function(a,b){return this.tree._callHook("treeSetOption",this.tree,a,b)},destroy:function(){this._unbind(),this.tree._callHook("treeDestroy",this.tree),a.Widget.prototype.destroy.call(this)},_unbind:function(){var b=this.tree._ns;this.element.off(b),this.tree.$container.off(b),a(c).off(b)},_bind:function(){var a=this,b=this.options,c=this.tree,d=c._ns;this._unbind(),c.$container.on("focusin"+d+" focusout"+d,function(a){var b=w.getNode(a),d="focusin"===a.type;b?c._callHook("nodeSetFocus",c._makeHookContext(b,a),d):c._callHook("treeSetFocus",c,d)}).on("selectstart"+d,"span.fancytree-title",function(a){a.preventDefault()}).on("keydown"+d,function(a){if(b.disabled||b.keyboard===!1)return!0;var d,e=c.focusNode,f=c._makeHookContext(e||c,a),g=c.phase;try{return c.phase="userEvent",d=e?c._triggerNodeEvent("keydown",e,a):c._triggerTreeEvent("keydown",a),"preventNav"===d?d=!0:d!==!1&&(d=c._callHook("nodeKeydown",f)),d}finally{c.phase=g}}).on("mousedown"+d+" dblclick"+d,function(c){if(b.disabled)return!0;var d,e=w.getEventTarget(c),f=e.node,g=a.tree,h=g.phase;if(!f)return!0;d=g._makeHookContext(f,c);try{switch(g.phase="userEvent",c.type){case"mousedown":return d.targetType=e.type,f.isPagingNode()?g._triggerNodeEvent("clickPaging",d,c)===!0:g._triggerNodeEvent("click",d,c)!==!1&&g._callHook("nodeClick",d);case"dblclick":return d.targetType=e.type,g._triggerNodeEvent("dblclick",d,c)!==!1&&g._callHook("nodeDblclick",d)}}finally{g.phase=h}})},getActiveNode:function(){return this.tree.activeNode},getNodeByKey:function(a){return this.tree.getNodeByKey(a)},getRootNode:function(){return this.tree.rootNode},getTree:function(){return this.tree}}),w=a.ui.fancytree,a.extend(a.ui.fancytree,{version:"2.23.0",buildType: "production",debugLevel: 1,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:t,_FancytreeNodeClass:s,jquerySupports:{positionMyOfs:h(a.ui.version,1,9)},assert:function(a,b){return e(a,b)},debounce:function(a,b,c,d){var e;return 3===arguments.length&&"boolean"!=typeof c&&(d=c,c=!1),function(){var f=arguments;d=d||this,c&&!e&&b.apply(d,f),clearTimeout(e),e=setTimeout(function(){c||b.apply(d,f),e=null},a)}},debug:function(b){a.ui.fancytree.debugLevel>=2&&f("log",arguments)},error:function(a){f("error",arguments)},escapeHtml:o,fixPositionOptions:function(b){if((b.offset||(""+b.my+b.at).indexOf("%")>=0)&&a.error("expected new position syntax (but '%' is not supported)"),!a.ui.fancytree.jquerySupports.positionMyOfs){var c=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.my),d=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(b.at),e=(c[2]?+c[2]:0)+(d[2]?+d[2]:0),f=(c[4]?+c[4]:0)+(d[4]?+d[4]:0);b=a.extend({},b,{my:c[1]+" "+c[3],at:d[1]+" "+d[3]}),(e||f)&&(b.offset=""+e+" "+f)}return b},getEventTargetType:function(a){return this.getEventTarget(a).type},getEventTarget:function(b){var c=b&&b.target?b.target.className:"",e={node:this.getNode(b.target),type:d};return/\bfancytree-title\b/.test(c)?e.type="title":/\bfancytree-expander\b/.test(c)?e.type=e.node.hasChildren()===!1?"prefix":"expander":/\bfancytree-checkbox\b/.test(c)?e.type="checkbox":/\bfancytree-icon\b/.test(c)?e.type="icon":/\bfancytree-node\b/.test(c)?e.type="title":b&&b.target&&a(b.target).closest(".fancytree-title").length&&(e.type="title"),e},getNode:function(a){if(a instanceof s)return a;for(a instanceof jQuery?a=a[0]:a.originalEvent!==d&&(a=a.target);a;){if(a.ftnode)return a.ftnode;a=a.parentNode}return null},getTree:function(b){var c;return b instanceof t?b:(b===d&&(b=0),"number"==typeof b?b=a(".fancytree-container").eq(b):"string"==typeof b?b=a(b).eq(0):b.selector!==d?b=b.eq(0):b.originalEvent!==d&&(b=a(b.target)),b=b.closest(":ui-fancytree"),c=b.data("ui-fancytree")||b.data("fancytree"),c?c.tree:null)},evalOption:function(b,c,d,e,f){var g,h,i=c.tree,j=e[b],k=d[b];return a.isFunction(j)?(g={node:c,tree:i,widget:i.widget,options:i.widget.options},h=j.call(i,{type:b},g),null==h&&(h=k)):h=null!=k?k:j,null==h&&(h=f),h},eventToString:function(a){var b=a.which,c=a.type,d=[];return a.altKey&&d.push("alt"),a.ctrlKey&&d.push("ctrl"),a.metaKey&&d.push("meta"),a.shiftKey&&d.push("shift"),"click"===c||"dblclick"===c?d.push(E[a.button]+c):C[b]||d.push(D[b]||String.fromCharCode(b).toLowerCase()),d.join("+")},info:function(b){a.ui.fancytree.debugLevel>=1&&f("info",arguments)},keyEventToString:function(a){return this.warn("keyEventToString() is deprecated: use eventToString()"),this.eventToString(a)},overrideMethod:function(b,c,d){var e,f=b[c]||a.noop;b[c]=function(){try{return e=this._super,this._super=f,d.apply(this,arguments)}finally{this._super=e}}},parseHtml:function(b){var c,e,f,g,h,i,j,k,l=b.find(">li"),m=[];return l.each(function(){var l,o,p=a(this),q=p.find(">span:first",this),r=q.length?null:p.find(">a:first"),s={tooltip:null,data:{}};for(q.length?s.title=q.html():r&&r.length?(s.title=r.html(),s.data.href=r.attr("href"),s.data.target=r.attr("target"),s.tooltip=r.attr("title")):(s.title=p.html(),h=s.title.search(/<ul/i),h>=0&&(s.title=s.title.substring(0,h))),s.title=a.trim(s.title),g=0,i=F.length;g<i;g++)s[F[g]]=d;for(c=this.className.split(" "),f=[],g=0,i=c.length;g<i;g++)e=c[g],G[e]?s[e]=!0:f.push(e);if(s.extraClasses=f.join(" "),j=p.attr("title"),j&&(s.tooltip=j),j=p.attr("id"),j&&(s.key=j),p.attr("hideCheckbox")&&(s.checkbox=!1),l=n(p),l&&!a.isEmptyObject(l)){for(o in J)l.hasOwnProperty(o)&&(l[J[o]]=l[o],delete l[o]);for(g=0,i=H.length;g<i;g++)j=H[g],k=l[j],null!=k&&(delete l[j],s[j]=k);a.extend(s.data,l)}b=p.find(">ul:first"),b.length?s.children=a.ui.fancytree.parseHtml(b):s.children=s.lazy?d:null,m.push(s)}),m},registerExtension:function(b){e(null!=b.name,"extensions must have a `name` property."),e(null!=b.version,"extensions must have a `version` property."),a.ui.fancytree._extensions[b.name]=b},unescapeHtml:function(a){var b=c.createElement("div");return b.innerHTML=a,0===b.childNodes.length?"":b.childNodes[0].nodeValue},warn:function(a){f("warn",arguments)}})}(jQuery,window,document);\ No newline at end of filediff --git a/public/libraries/fancytree/skin-awesome/ui.fancytree.css b/public/libraries/fancytree/skin-awesome/ui.fancytree.cssdeleted file mode 100644index c7772cbb31..0000000000--- a/public/libraries/fancytree/skin-awesome/ui.fancytree.css+++ /dev/null@@ -1,462 +0,0 @@-/*!- * Fancytree "awesome" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0em 0em;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 1em;- height: 1em;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-position: 0em 0em;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 1em;- height: 1em;- display: inline-block;- margin-left: 0.5em;- background-position: 0em 0em;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 1em;- height: 1em;- margin-left: 0.5em;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- margin-top: 0;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 0.5em;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 0.5em;-}-/* Documents */-/* Folders */-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: none;-}-/* Status node icons */-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 1em;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 1em;- padding: 0 3px 0 3px;- margin: 0px 0 0 0.5em;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 2em;- position: absolute;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 4em;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0em 0em;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-ul.fancytree-container ul {- padding: 0.3em 0 0 1em;- margin: 0;-}diff --git a/public/libraries/fancytree/skin-awesome/ui.fancytree.less b/public/libraries/fancytree/skin-awesome/ui.fancytree.lessdeleted file mode 100644index 2b52b9080e..0000000000--- a/public/libraries/fancytree/skin-awesome/ui.fancytree.less+++ /dev/null@@ -1,53 +0,0 @@-/*!- * Fancytree "awesome" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/--// Borders have NO radius and NO gradients are used!--// both:-// unselected background: white-// hover bar (unselected, inactive): #E5F3FB (border: #70C0E7) 'very light blue'-// active node: #CBE8F6 (border: #26A0DA) 'light blue'-// active node with hover: wie active node--// Tree view:-// active node, tree inactive: #F7F7F7 (border: #DEDEDE) 'light gray, selected, but tree not active'--// List view:-// selected bar: --> active bar-// focus bar: transparent(white) + border 1px solid #3399FF ()--// table left/right border: #EDEDED 'light gray'--// local vars-@fancy-my-icon-size: 16px;--// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: false; // false: suppress all background images (i.e. icons)-@fancy-loading-url: none;--@fancy-icon-width: 1em;-@fancy-icon-height: 1em;-@fancy-line-height: 1em;-@fancy-icon-spacing: 0.5em;--ul.fancytree-container ul-{- padding: 0.3em 0 0 1em;- margin: 0;-}diff --git a/public/libraries/fancytree/skin-awesome/ui.fancytree.min.css b/public/libraries/fancytree/skin-awesome/ui.fancytree.min.cssdeleted file mode 100644index aa69cd6a85..0000000000--- a/public/libraries/fancytree/skin-awesome/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "awesome" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}img.fancytree-icon,span.fancytree-checkbox,span.fancytree-icon{margin-left:.5em}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==);background-position:0 0}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover,ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:1em;height:1em;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-position:0 0}span.fancytree-custom-icon{width:1em;height:1em;display:inline-block;margin-left:.5em;background-position:0 0}img.fancytree-icon{width:1em;height:1em;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:1em}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:1em;padding:0 3px;margin:0 0 0 .5em;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}#fancytree-drop-marker{width:2em;position:absolute;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:4em}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}ul.fancytree-container ul{padding:.3em 0 0 1em;margin:0}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-awesome/vline-rtl.gif b/public/libraries/fancytree/skin-awesome/vline-rtl.gifdeleted file mode 100644index 0400cb3eea..0000000000Binary files a/public/libraries/fancytree/skin-awesome/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-awesome/vline.gif b/public/libraries/fancytree/skin-awesome/vline.gifdeleted file mode 100644index 1b00ae50e0..0000000000Binary files a/public/libraries/fancytree/skin-awesome/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.css b/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.cssdeleted file mode 100644index db2d44c98d..0000000000--- a/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.css+++ /dev/null@@ -1,570 +0,0 @@-/*!- * Fancytree "bootstrap" skin (highlighting the node span instead of title-only).- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0em 0em;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 1em;- height: 1em;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-position: 0em 0em;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 1em;- height: 1em;- display: inline-block;- margin-left: 0.5em;- background-position: 0em 0em;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 1em;- height: 1em;- margin-left: 0.5em;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- margin-top: 0;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 0.5em;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 0.5em;-}-/* Documents */-/* Folders */-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: none;-}-/* Status node icons */-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 1em;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 1em;- padding: 0 3px 0 3px;- margin: 0px 0 0 0.5em;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 2em;- position: absolute;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 4em;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0em 0em;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-ul.fancytree-container ul {- padding: 0 0 0 1.5em;- margin: 0;-}-/* Prevent focus frame */-.fancytree-container:focus {- outline: none;-}-.fancytree-container span.fancytree-statusnode-error span.fancytree-expander {- color: red;-}-/* Helper to allow spinning loader icon with bootstrap */-.glyphicon-spin {- -webkit-animation: spin 1000ms infinite linear;- animation: spin 1000ms infinite linear;-}-@-webkit-keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}-@keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}-span.fancytree-node {- border: 1px solid transparent;- border-radius: 3px;- padding-left: 8px;-}-span.fancytree-title {- border-radius: 3px;-}-span.fancytree-node.fancytree-selected {- background-color: #80c780;- border-color: #80c780;-}-span.fancytree-node.fancytree-selected span.fancytree-title {- background-color: #80c780;-}-span.fancytree-node.fancytree-active {- background-color: #6aa3d5;-}-.fancytree-container.fancytree-treefocus span.fancytree-node:hover {- background-color: #e9f2f9;-}-.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused {- border-color: #428bca;-}-.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected {- background-color: #5cb85c;-}-.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected span.fancytree-title {- background-color: #5cb85c;-}-.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active {- background-color: #428bca;- border-color: #428bca;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody tr td {- border: 1px solid #eeeeee;-}-table.fancytree-ext-table tbody tr.fancytree-selected {- background-color: #80c780;-}-table.fancytree-ext-table tbody tr.fancytree-selected span.fancytree-node {- background-color: #80c780;-}-table.fancytree-ext-table tbody tr.fancytree-selected span.fancytree-title {- background-color: #80c780;-}-table.fancytree-ext-table tbody tr.fancytree-active {- background-color: #6aa3d5;-}-table.fancytree-ext-table tbody tr.fancytree-active span.fancytree-node {- background-color: #6aa3d5;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr:hover {- background-color: #e9f2f9;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-focused span.fancytree-title {- outline: 1px dotted #428bca;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected {- background-color: #5cb85c;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected span.fancytree-node {- background-color: #5cb85c;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected span.fancytree-title {- background-color: #5cb85c;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active {- background-color: #428bca;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active span.fancytree-node {- background-color: #428bca;-}diff --git a/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.less b/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.lessdeleted file mode 100644index dabfeb57f4..0000000000--- a/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.less+++ /dev/null@@ -1,204 +0,0 @@-/*!- * Fancytree "bootstrap" skin (highlighting the node span instead of title-only).- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/---// local vars-@fancy-my-icon-size: 16px;--// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: false; // false: suppress all background images (i.e. icons)-@fancy-loading-url: none;--@fancy-icon-width: 1em;-@fancy-icon-height: 1em;-@fancy-line-height: 1em;-@fancy-icon-spacing: 0.5em;--// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-// @fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;---ul.fancytree-container ul {- padding: 0 0 0 1.5em;- margin: 0;-}-/* Prevent focus frame */-.fancytree-container:focus {- outline: none;-}--// Error status node-.fancytree-container span.fancytree-statusnode-error span.fancytree-expander {- color: @fancy-font-error-color;-}--/* Helper to allow spinning loader icon with bootstrap */-.glyphicon-spin {- -webkit-animation: spin 1000ms infinite linear;- animation: spin 1000ms infinite linear;-}-@-webkit-keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}-@keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}--/////-// Original bootstrap colors (http://getbootstrap.com/css/#responsive-utilities)-@gray-darker: lighten(#000, 13.5%); // #222-@gray-dark: lighten(#000, 20%); // #333-@gray: lighten(#000, 33.5%); // #555-@gray-light: lighten(#000, 60%); // #999-@gray-lighter: lighten(#000, 93.5%); // #eee--@brand-primary: #428bca; // blue-@brand-success: #5cb85c; // green-@brand-info: #5bc0de; // light blue-@brand-warning: #f0ad4e; // orange-@brand-danger: #d9534f; // red--@border-radius-base: 4px;-@border-radius-large: 6px;-@border-radius-small: 3px;-/////////////--span.fancytree-node {- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover- border-radius: @border-radius-small;- padding-left: 8px;-}-span.fancytree-title {- border-radius: @border-radius-small;-}-// Inactive tree:-span.fancytree-node.fancytree-selected { // selected nodes inside inactive tree- background-color: lighten(@brand-success, 10%);- border-color: lighten(@brand-success, 10%);- span.fancytree-title {- background-color: lighten(@brand-success, 10%); // green title, even when active- }-}-span.fancytree-node.fancytree-active { // active nodes inside inactive tree- background-color: lighten(@brand-primary, 10%);-}-// Active tree:-.fancytree-container.fancytree-treefocus {- span.fancytree-node:hover {- background-color: lighten(@brand-primary, 42%);- }- span.fancytree-node.fancytree-focused {- border-color: @brand-primary;- }- span.fancytree-node.fancytree-selected {- background-color: @brand-success;- span.fancytree-title {- background-color: @brand-success; // green title, even when active- }- }- span.fancytree-node.fancytree-active {- background-color: @brand-primary;- border-color: @brand-primary;- }-}--/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody {- tr td {- border: 1px solid @gray-lighter;- }- // span.fancytree-node,- // span.fancytree-node:hover { // undo standard tree css- // border: none;- // background: none;- // }- // // Title get's a white background, when hovered. Undo standard node formatting- // span.fancytree-title:hover {- // border: none;- // background: inherit;- // background: transparent;- // background: none;- // filter: none;- // }- // dimmed, if inside inactive tree- tr.fancytree-selected {- background-color: lighten(@brand-success, 10%);- span.fancytree-node {- background-color: lighten(@brand-success, 10%);- }- span.fancytree-title {- background-color: lighten(@brand-success, 10%); // green title, even when active- }- }- tr.fancytree-active { // dimmed, if inside inactive tree- background-color: lighten(@brand-primary, 10%);- span.fancytree-node {- background-color: lighten(@brand-primary, 10%);- }- }-}--table.fancytree-ext-table.fancytree-treefocus tbody {- tr:hover {- background-color: lighten(@brand-primary, 42%);- // outline: 1px solid @brand-primary;- }- tr.fancytree-focused span.fancytree-title {- outline: 1px dotted @brand-primary;- }- tr.fancytree-active:hover,- tr.fancytree-selected:hover {- // background-color: #CBE8F6;- // outline: 1px solid #26A0DA;- }- tr.fancytree-selected {- background-color: @brand-success;- span.fancytree-node {- background-color: @brand-success;- }- span.fancytree-title {- background-color: @brand-success; // green title, even when active- }- }- tr.fancytree-active {- background-color: @brand-primary;- span.fancytree-node {- background-color: @brand-primary;- }- }-}diff --git a/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.min.css b/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.min.cssdeleted file mode 100644index dfe53e236c..0000000000--- a/public/libraries/fancytree/skin-bootstrap-n/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "bootstrap" skin (highlighting the node span instead of title-only).- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}img.fancytree-icon,span.fancytree-checkbox,span.fancytree-icon{margin-left:.5em}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==);background-position:0 0}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover,ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:1em;height:1em;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-position:0 0}span.fancytree-custom-icon{width:1em;height:1em;display:inline-block;margin-left:.5em;background-position:0 0}img.fancytree-icon{width:1em;height:1em;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:1em}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:1em;padding:0 3px;margin:0 0 0 .5em;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}#fancytree-drop-marker{width:2em;position:absolute;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:4em}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}ul.fancytree-container ul{padding:0 0 0 1.5em;margin:0}.fancytree-container:focus{outline:0}.fancytree-container span.fancytree-statusnode-error span.fancytree-expander{color:red}.glyphicon-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}span.fancytree-node{border:1px solid transparent;border-radius:3px;padding-left:8px}span.fancytree-title{border-radius:3px}span.fancytree-node.fancytree-selected{background-color:#80c780;border-color:#80c780}span.fancytree-node.fancytree-selected span.fancytree-title{background-color:#80c780}span.fancytree-node.fancytree-active{background-color:#6aa3d5}.fancytree-container.fancytree-treefocus span.fancytree-node:hover{background-color:#e9f2f9}.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused{border-color:#428bca}.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected,.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected span.fancytree-title{background-color:#5cb85c}.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active{background-color:#428bca;border-color:#428bca}table.fancytree-ext-table tbody tr td{border:1px solid #eee}table.fancytree-ext-table tbody tr.fancytree-selected,table.fancytree-ext-table tbody tr.fancytree-selected span.fancytree-node,table.fancytree-ext-table tbody tr.fancytree-selected span.fancytree-title{background-color:#80c780}table.fancytree-ext-table tbody tr.fancytree-active,table.fancytree-ext-table tbody tr.fancytree-active span.fancytree-node{background-color:#6aa3d5}table.fancytree-ext-table.fancytree-treefocus tbody tr:hover{background-color:#e9f2f9}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-focused span.fancytree-title{outline:#428bca dotted 1px}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected,table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected span.fancytree-node,table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected span.fancytree-title{background-color:#5cb85c}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active,table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active span.fancytree-node{background-color:#428bca}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-bootstrap-n/vline-rtl.gif b/public/libraries/fancytree/skin-bootstrap-n/vline-rtl.gifdeleted file mode 100644index 0400cb3eea..0000000000Binary files a/public/libraries/fancytree/skin-bootstrap-n/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-bootstrap-n/vline.gif b/public/libraries/fancytree/skin-bootstrap-n/vline.gifdeleted file mode 100644index 1b00ae50e0..0000000000Binary files a/public/libraries/fancytree/skin-bootstrap-n/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-bootstrap/ui.fancytree.css b/public/libraries/fancytree/skin-bootstrap/ui.fancytree.cssdeleted file mode 100644index b2c5c94205..0000000000--- a/public/libraries/fancytree/skin-bootstrap/ui.fancytree.css+++ /dev/null@@ -1,630 +0,0 @@-/*!- * Fancytree "bootstrap" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;- font-size: 14px;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0em 0em;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 1em;- height: 1em;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-position: 0em 0em;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 2px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 1em;- height: 1em;- display: inline-block;- margin-left: 0.5em;- background-position: 0em 0em;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 1em;- height: 1em;- margin-left: 0.5em;- margin-top: 2px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- margin-top: 0;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 0.5em;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 0.5em;-}-/* Documents */-/* Folders */-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: none;-}-/* Status node icons */-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 0px;- min-height: 1em;-}-span.fancytree-title {- color: #333333;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 1em;- padding: 0 3px 0 3px;- margin: 0px 0 0 0.5em;- border: 1px solid transparent;- -webkit-border-radius: 3px;- -moz-border-radius: 3px;- -ms-border-radius: 3px;- -o-border-radius: 3px;- border-radius: 3px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: #d9534f;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 2em;- position: absolute;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 4em;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0em 0em;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: #333333;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: #333333;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Plain tree- * Modifier classes on <ul> container:- * table-hover : Enable a light mouse hover effect- * fancytree-colorize-selected: Give selected (checked) rows a color- */-ul.fancytree-container ul {- padding: 0 0 0 1.5em;- margin: 0;-}-/* Prevent focus frame */-.fancytree-container:focus {- outline: none;-}-.fancytree-container .fancytree-active span.fancytree-title input,-.fancytree-container.fancytree-colorize-selected .fancytree-selected span.fancytree-title input {- color: black;-}-.fancytree-container span.fancytree-statusnode-error span.fancytree-expander {- color: #d9534f;-}-/* Helper to allow spinning loader icon with bootstrap */-.glyphicon-spin {- -webkit-animation: spin 1000ms infinite linear;- animation: spin 1000ms infinite linear;-}-@-webkit-keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}-@keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}-div.fancytree-drag-helper.fancytree-drop-reject,-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-title {- color: #d9534f;-}-span.fancytree-node.fancytree-drag-source {- background-color: #5bc0de !important;-}-span.fancytree-node.fancytree-drop-target.fancytree-drop-reject span.fancytree.title {- background-color: #d9534f !important;-}-span.fancytree-expander {- color: #999;-}-.fancytree-expanded span.fancytree-expander {- color: #333333;-}-span.fancytree-node span.fancytree-expander:hover {- color: cyan;-}-.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-selected,-.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-selected span.fancytree-title {- background-color: #80c780;- border-color: #80c780;- color: #fff;-}-.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-selected:hover span.fancytree-title {- background-color: #6ec06e;-}-.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title {- color: #80c780;-}-.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-title:hover {- background-color: #f5f5f5;-}-.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-node.fancytree-selected span.fancytree-title {- background-color: #5cb85c;-}-.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-node.fancytree-selected:hover span.fancytree-title {- background-color: #4cae4c;-}-.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title {- color: #5cb85c;-}-.fancytree-plain.fancytree-container span.fancytree-node {- margin-top: 2px;- margin-bottom: 2px;-}-.fancytree-plain.fancytree-container span.fancytree-title {- border: 1px solid transparent;- border-radius: 3px;- outline-radius: 3px;-}-.fancytree-plain.fancytree-container span.fancytree-title:hover {- background-color: #f5f5f5;-}-.fancytree-plain.fancytree-container span.fancytree-node.fancytree-active span.fancytree-title {- background-color: #5094ce;- color: #fff;-}-.fancytree-plain.fancytree-container span.fancytree-node.fancytree-active:hover span.fancytree-title {- background-color: #3c87c8;-}-.fancytree-plain.fancytree-container.fancytree-ext-wide span.fancytree-node.fancytree-active {- color: #fff;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused span.fancytree-title {- border-color: #337ab7;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active span.fancytree-title {- background-color: #337ab7;- border-color: #337ab7;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active:hover span.fancytree-title {- background-color: #2e6da4;-}-/*******************************************************************************- * 'table' extension- * Modifier classes on <table>:- * table-hover : Enable a light mouse hover effect- * fancytree-colorize-selected: Give selected (checked) rows a color- */-table.fancytree-ext-table > tbody > tr > td span.fancytree-title {- border: none;-}-table.fancytree-ext-table.fancytree-colorize-selected > tbody > tr.fancytree-selected > td {- background-color: #80c780;-}-table.fancytree-ext-table.fancytree-colorize-selected > tbody > tr.fancytree-selected > td,-table.fancytree-ext-table.fancytree-colorize-selected > tbody > tr.fancytree-selected > td span.fancytree-title {- color: #fff;-}-table.fancytree-ext-table.fancytree-colorize-selected.fancytree-treefocus > tbody > tr.fancytree-selected > td {- background-color: #5cb85c;-}-table.fancytree-ext-table.fancytree-colorize-selected.table-hover > tbody > tr.fancytree-selected:hover > td {- background-color: #6ec06e;-}-table.fancytree-ext-table.fancytree-colorize-selected.fancytree-treefocus.table-hover > tbody > tr.fancytree-selected:hover > td {- background-color: #4cae4c;-}-table.fancytree-ext-table.fancytree-colorize-selected.fancytree-treefocus.table-hover > tbody > tr.fancytree-selected.fancytree-active:hover > td,-table.fancytree-ext-table.fancytree-colorize-selected.table-hover > tbody > tr.fancytree-selected.fancytree-active:hover > td {- background-color: #2e6da4;-}-table.fancytree-ext-table.fancytree-colorize-selected > tbody > tr.fancytree-active.fancytree-selected {- outline-width: 2px;- outline-offset: -2px;- outline-style: solid;- outline-color: #80c780;-}-table.fancytree-ext-table.fancytree-container > tbody > tr.fancytree-active > td {- background-color: #5094ce;-}-table.fancytree-ext-table.fancytree-container > tbody > tr.fancytree-active > td,-table.fancytree-ext-table.fancytree-container > tbody > tr.fancytree-active > td span.fancytree-title {- color: #fff;-}-table.fancytree-ext-table.fancytree-treefocus.fancytree-container > tbody > tr.fancytree-focused span.fancytree-title {- outline: 1px dotted #000;-}-table.fancytree-ext-table.fancytree-treefocus.fancytree-container > tbody > tr.fancytree-active > td {- background-color: #337ab7;-}-table.fancytree-ext-table.fancytree-treefocus.fancytree-container.table-hover > tbody > tr.fancytree-active:hover > td {- background-color: #2e6da4;-}diff --git a/public/libraries/fancytree/skin-bootstrap/ui.fancytree.less b/public/libraries/fancytree/skin-bootstrap/ui.fancytree.lessdeleted file mode 100644index 9870c32bb9..0000000000--- a/public/libraries/fancytree/skin-bootstrap/ui.fancytree.less+++ /dev/null@@ -1,373 +0,0 @@-/*!- * Fancytree "bootstrap" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/---// local vars-// @fancy-my-icon-size: 16px;--//-------------------------------------------------------------------------------// Original bootstrap colors-// See http://getbootstrap.com/css/#less-variables-colors and-// https://github.com/twbs/bootstrap/blob/master/less/variables.less-@gray-base: #000;-@gray-darker: lighten(@gray-base, 13.5%); // #222-@gray-dark: lighten(@gray-base, 20%); // #333-@gray: lighten(@gray-base, 33.5%); // #555-@gray-light: lighten(@gray-base, 46.7%); // #777-@gray-lighter: lighten(@gray-base, 93.5%); // #eee--@brand-primary: darken(#428bca, 6.5%); // blue, #337ab7-@brand-success: #5cb85c; // green-@brand-info: #5bc0de; // light blue-@brand-warning: #f0ad4e; // orange-@brand-danger: #d9534f; // red--@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;-@font-family-serif: Georgia, "Times New Roman", Times, serif;-//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.-@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;-@font-family-base: @font-family-sans-serif;--@font-size-base: 14px;-@font-size-large: ceil((@font-size-base * 1.25)); // ~18px-@font-size-small: ceil((@font-size-base * 0.85)); // ~12px--@border-radius-base: 4px;-@border-radius-large: 6px;-@border-radius-small: 3px;--@text-color: @gray-dark;-//** Default background color used for all tables.-@table-bg: transparent;-//** Background color used for `.table-striped`.-@table-bg-accent: #f9f9f9;-//** Background color used for `.table-hover`.-@table-bg-hover: #f5f5f5;-@table-bg-active: @table-bg-hover;--//** Border color for table and cell borders.-@table-border-color: #ddd;--//--------------------------------------------------------------------------------// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: false; // false: suppress all background images (i.e. icons)-@fancy-loading-url: none;--@fancy-line-height: 1em; // height of a nodes selection bar including borders-@fancy-node-v-spacing: 0px; // gap between two node borders-@fancy-icon-width: 1em;-@fancy-icon-height: 1em;-@fancy-icon-spacing: 0.5em; // margin between icon/icon or icon/title-@fancy-icon-ofs-top: 2px; // extra vertical offset for expander, checkbox and icon-@fancy-title-ofs-top: 0px; // extra vertical offset for title-@fancy-node-border-width: 1px;-@fancy-node-border-radius: @border-radius-small;-@fancy-node-outline-width: 1px;--@fancy-font-family: @font-family-base;-@fancy-font-size: @font-size-base;-@fancy-font-color: @text-color;-@fancy-font-color-dimm: @gray-dark;-@fancy-font-error-color: @brand-danger;--@fancy-active-text: #fff;-@fancy-active-color: @brand-primary;-@fancy-select-color: @brand-success;-@fancy-hover-color: @table-bg-hover;--/*******************************************************************************- * Plain tree- * Modifier classes on <ul> container:- * table-hover : Enable a light mouse hover effect- * fancytree-colorize-selected: Give selected (checked) rows a color- */-ul.fancytree-container ul {- padding: 0 0 0 1.5em;- margin: 0;-}-/* Prevent focus frame */-.fancytree-container:focus {- outline: none;-}--// Active and (optionally) selected nodes are white on colored bg. Undo this for input controls:-.fancytree-container .fancytree-active span.fancytree-title input,-.fancytree-container.fancytree-colorize-selected .fancytree-selected span.fancytree-title input {- color: black;-}--// Error status node-.fancytree-container span.fancytree-statusnode-error span.fancytree-expander {- color: @fancy-font-error-color;-}--/* Helper to allow spinning loader icon with bootstrap */-.glyphicon-spin {- -webkit-animation: spin 1000ms infinite linear;- animation: spin 1000ms infinite linear;-}-@-webkit-keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}-@keyframes spin {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(359deg);- transform: rotate(359deg);- }-}--// -------------------------------------------------------------------------------// * Drag'n'drop support-// *-----------------------------------------------------------------------------// div.fancytree-drag-helper {-// }-// div.fancytree-drag-helper a {-// border: 1px solid gray;-// background-color: white;-// padding-left: 5px;-// padding-right: 5px;-// opacity: 0.8;-// }-// span.fancytree-drag-helper-img {-// // position: relative;-// // left: -16px;-// }-div.fancytree-drag-helper.fancytree-drop-reject,-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-title-{- color: @fancy-font-error-color;-}-// div.fancytree-drop-accept span.fancytree-drag-helper-img {-// .useSprite(2, 7);-// }-// div.fancytree-drop-reject span.fancytree-drag-helper-img {-// .useSprite(1, 7);-// }--// //--- Drop marker icon ----------------------------------------------------------// #fancytree-drop-marker {-// width: 2 * @fancy-icon-width; // was 24px, but 32 should be correct-// position: absolute;-// .useSprite(0, 8);-// margin: 0;-// &.fancytree-drop-after,-// &.fancytree-drop-before {-// width: 4 * @fancy-icon-width; // 64px;-// .useSprite(0, 9);-// }-// &.fancytree-drop-copy {-// .useSprite(4, 8);-// }-// &.fancytree-drop-move {-// .useSprite(2, 8);-// }-// }--//--- Source node while dragging -------------------------------------------------span.fancytree-node.fancytree-drag-source {- background-color: @brand-info !important;- span.fancytree.title {- // outline: 1px solid @brand-info;- // color: @brand-primary;- }-}--//--- Target node while dragging cursor is over it -------------------------------span.fancytree-node.fancytree-drop-target {- &.fancytree-drop-accept span.fancytree.title {- // background-color: @brand-danger !important;- // outline: 1px solid @brand-success;- // color: white !important;- }- &.fancytree-drop-reject span.fancytree.title {- background-color: @brand-danger !important;- // outline: 1px solid @brand-danger;- // color: white !important;- }-}--span.fancytree-expander {- color: #999; // colpased expander is gray-}-.fancytree-expanded span.fancytree-expander {- color: @fancy-font-color;-}-span.fancytree-node span.fancytree-expander:hover {- color: cyan;-}--// Inactive tree:-.fancytree-plain {- &.fancytree-colorize-selected {- span.fancytree-node.fancytree-selected,- span.fancytree-node.fancytree-selected span.fancytree-title { // selected nodes inside inactive tree- background-color: lighten(@fancy-select-color, 10%);- border-color: lighten(@fancy-select-color, 10%);- color: @fancy-active-text;- }- span.fancytree-node.fancytree-selected:hover span.fancytree-title {- background-color: lighten(@fancy-select-color, 5%);- }- span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title { // active nodes inside inactive tree- color: lighten(@fancy-select-color, 10%);- }- &.fancytree-treefocus {- span.fancytree-title:hover {- background-color: @fancy-hover-color;- }- span.fancytree-node.fancytree-selected span.fancytree-title {- background-color: @fancy-select-color;- }- span.fancytree-node.fancytree-selected:hover span.fancytree-title {- background-color: darken(@fancy-select-color, 5%);- }- span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title {- color: @fancy-select-color;- }- }- }-- &.fancytree-container { // adding this class to increase specificity, so we can override .fancytree-colorize-selected- span.fancytree-node {- margin-top: 2px;- margin-bottom: 2px;- }- span.fancytree-title {- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover- border-radius: @border-radius-small;- outline-radius: @border-radius-small;- }- span.fancytree-title:hover {- background-color: @fancy-hover-color;- }- span.fancytree-node.fancytree-active span.fancytree-title { // active nodes inside inactive tree- background-color: lighten(@fancy-active-color, 10%);- color: @fancy-active-text;- }- span.fancytree-node.fancytree-active:hover span.fancytree-title {- background-color: lighten(@fancy-active-color, 5%);- }- &.fancytree-ext-wide span.fancytree-node.fancytree-active { // in wide mode, icons of active nodes must be white-on-color- color: @fancy-active-text;- }-- // Active tree:- &.fancytree-treefocus {- span.fancytree-node.fancytree-focused span.fancytree-title {- border-color: @brand-primary;- }- span.fancytree-node.fancytree-active span.fancytree-title {- background-color: @fancy-active-color;- border-color: @fancy-active-color;- }- span.fancytree-node.fancytree-active:hover span.fancytree-title {- background-color: darken(@fancy-active-color, 5%);- }- }- }-}--/*******************************************************************************- * 'table' extension- * Modifier classes on <table>:- * table-hover : Enable a light mouse hover effect- * fancytree-colorize-selected: Give selected (checked) rows a color- */-table.fancytree-ext-table {- >tbody >tr >td span.fancytree-title {- border: none;- }-- // Give a separate color for selected (checked) rows- // Define *before* the .fancytree-active rules, because active color should- // override selected color.- &.fancytree-colorize-selected {- >tbody >tr.fancytree-selected >td {- // dimmed, if inside inactive tree- background-color: lighten(@fancy-select-color, 10%);- // white text for selected nodes- &,- span.fancytree-title {- color: @fancy-active-text;- }- }- &.fancytree-treefocus >tbody >tr.fancytree-selected >td {- background-color: @fancy-select-color;- }- &.table-hover >tbody >tr.fancytree-selected:hover >td {- // dimmed, if inside inactive tree- background-color: lighten(@fancy-select-color, 5%);- }- &.fancytree-treefocus.table-hover >tbody >tr.fancytree-selected:hover >td {- background-color: darken(@fancy-select-color, 5%);- }- &.fancytree-treefocus.table-hover >tbody >tr.fancytree-selected.fancytree-active:hover >td,- &.table-hover >tbody >tr.fancytree-selected.fancytree-active:hover >td {- background-color: darken(@fancy-active-color, 5%);- }- >tbody >tr.fancytree-active.fancytree-selected {- outline-width: 2px;- outline-offset: -2px;- outline-style: solid;- outline-color: lighten(@fancy-select-color, 10%);- }- }-- // General tree (slightly dimmed, since we also define colors for inactive- // mode here).-- &.fancytree-container >tbody >tr.fancytree-active >td {- background-color: lighten(@fancy-active-color, 10%);- // white text for selected nodes- &,- span.fancytree-title {- color: @fancy-active-text;- }- }-- // Reset to standard colors if tree has keyboard focus.- // We add .fancytree-container to increase specificity, so we can override- // .fancytree-colorize-selected defined above-- &.fancytree-treefocus.fancytree-container {- >tbody >tr.fancytree-focused span.fancytree-title {- outline: 1px dotted #000;- }- >tbody >tr.fancytree-active >td {- background-color: @fancy-active-color;- }- &.table-hover >tbody >tr.fancytree-active:hover >td {- background-color: darken(@fancy-active-color, 5%);- }- }-}diff --git a/public/libraries/fancytree/skin-bootstrap/ui.fancytree.min.css b/public/libraries/fancytree/skin-bootstrap/ui.fancytree.min.cssdeleted file mode 100644index bf285cada9..0000000000--- a/public/libraries/fancytree/skin-bootstrap/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "bootstrap" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}img.fancytree-icon,span.fancytree-checkbox,span.fancytree-icon{margin-left:.5em}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==);background-position:0 0}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover,ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:1em;height:1em;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:2px}span.fancytree-custom-icon{width:1em;height:1em;display:inline-block;margin-left:.5em;background-position:0 0}img.fancytree-icon{width:1em;height:1em;margin-top:2px;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{margin-top:0}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}span.fancytree-node{display:inherit;width:100%;margin-top:0;min-height:1em}span.fancytree-title{color:#333;cursor:pointer;display:inline-block;vertical-align:top;min-height:1em;padding:0 3px;margin:0 0 0 .5em;border:1px solid transparent;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}span.fancytree-node.fancytree-error span.fancytree-title{color:#d9534f}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}#fancytree-drop-marker{width:2em;position:absolute;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:4em}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:#333;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:#333;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}ul.fancytree-container ul{padding:0 0 0 1.5em;margin:0}.fancytree-container:focus{outline:0}.fancytree-container .fancytree-active span.fancytree-title input,.fancytree-container.fancytree-colorize-selected .fancytree-selected span.fancytree-title input{color:#000}.fancytree-container span.fancytree-statusnode-error span.fancytree-expander,div.fancytree-drag-helper.fancytree-drop-reject,div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-title{color:#d9534f}.glyphicon-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}span.fancytree-node.fancytree-drag-source{background-color:#5bc0de!important}span.fancytree-node.fancytree-drop-target.fancytree-drop-reject span.fancytree.title{background-color:#d9534f!important}span.fancytree-expander{color:#999}.fancytree-expanded span.fancytree-expander{color:#333}span.fancytree-node span.fancytree-expander:hover{color:#0ff}.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-selected,.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-selected span.fancytree-title{background-color:#80c780;border-color:#80c780;color:#fff}.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-selected:hover span.fancytree-title{background-color:#6ec06e}.fancytree-plain.fancytree-colorize-selected span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title{color:#80c780}.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-title:hover{background-color:#f5f5f5}.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-node.fancytree-selected span.fancytree-title{background-color:#5cb85c}.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-node.fancytree-selected:hover span.fancytree-title{background-color:#4cae4c}.fancytree-plain.fancytree-colorize-selected.fancytree-treefocus span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title{color:#5cb85c}.fancytree-plain.fancytree-container.fancytree-ext-wide span.fancytree-node.fancytree-active,table.fancytree-ext-table.fancytree-colorize-selected>tbody>tr.fancytree-selected>td,table.fancytree-ext-table.fancytree-colorize-selected>tbody>tr.fancytree-selected>td span.fancytree-title,table.fancytree-ext-table.fancytree-container>tbody>tr.fancytree-active>td,table.fancytree-ext-table.fancytree-container>tbody>tr.fancytree-active>td span.fancytree-title{color:#fff}.fancytree-plain.fancytree-container span.fancytree-node{margin-top:2px;margin-bottom:2px}.fancytree-plain.fancytree-container span.fancytree-title{border:1px solid transparent;border-radius:3px;outline-radius:3px}.fancytree-plain.fancytree-container span.fancytree-title:hover{background-color:#f5f5f5}.fancytree-plain.fancytree-container span.fancytree-node.fancytree-active span.fancytree-title{background-color:#5094ce;color:#fff}.fancytree-plain.fancytree-container span.fancytree-node.fancytree-active:hover span.fancytree-title{background-color:#3c87c8}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused span.fancytree-title{border-color:#337ab7}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active span.fancytree-title{background-color:#337ab7;border-color:#337ab7}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active:hover span.fancytree-title{background-color:#2e6da4}table.fancytree-ext-table>tbody>tr>td span.fancytree-title{border:none}table.fancytree-ext-table.fancytree-colorize-selected>tbody>tr.fancytree-selected>td{background-color:#80c780}table.fancytree-ext-table.fancytree-colorize-selected.fancytree-treefocus>tbody>tr.fancytree-selected>td{background-color:#5cb85c}table.fancytree-ext-table.fancytree-colorize-selected.table-hover>tbody>tr.fancytree-selected:hover>td{background-color:#6ec06e}table.fancytree-ext-table.fancytree-colorize-selected.fancytree-treefocus.table-hover>tbody>tr.fancytree-selected:hover>td{background-color:#4cae4c}table.fancytree-ext-table.fancytree-colorize-selected.fancytree-treefocus.table-hover>tbody>tr.fancytree-selected.fancytree-active:hover>td,table.fancytree-ext-table.fancytree-colorize-selected.table-hover>tbody>tr.fancytree-selected.fancytree-active:hover>td{background-color:#2e6da4}table.fancytree-ext-table.fancytree-colorize-selected>tbody>tr.fancytree-active.fancytree-selected{outline-offset:-2px;outline:#80c780 solid 2px}table.fancytree-ext-table.fancytree-container>tbody>tr.fancytree-active>td{background-color:#5094ce}table.fancytree-ext-table.fancytree-treefocus.fancytree-container>tbody>tr.fancytree-focused span.fancytree-title{outline:#000 dotted 1px}table.fancytree-ext-table.fancytree-treefocus.fancytree-container>tbody>tr.fancytree-active>td{background-color:#337ab7}table.fancytree-ext-table.fancytree-treefocus.fancytree-container.table-hover>tbody>tr.fancytree-active:hover>td{background-color:#2e6da4}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-bootstrap/vline-rtl.gif b/public/libraries/fancytree/skin-bootstrap/vline-rtl.gifdeleted file mode 100644index 0400cb3eea..0000000000Binary files a/public/libraries/fancytree/skin-bootstrap/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-bootstrap/vline.gif b/public/libraries/fancytree/skin-bootstrap/vline.gifdeleted file mode 100644index 1b00ae50e0..0000000000Binary files a/public/libraries/fancytree/skin-bootstrap/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-common.less b/public/libraries/fancytree/skin-common.lessdeleted file mode 100644index ce28138075..0000000000--- a/public/libraries/fancytree/skin-common.less+++ /dev/null@@ -1,798 +0,0 @@-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/--// Variables (defaults, may be overwritten by the including .less files)-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)-// @fancy-hide-connectors: true; // false: show vertical connector lines--@fancy-level-indent: 16px;-@fancy-line-height: 16px; // height of a nodes selection bar including borders-@fancy-node-v-spacing: 1px; // gap between two node borders-@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-icon-spacing: 3px; // margin between icon/icon or icon/title-@fancy-icon-ofs-top: 0px; // extra vertical offset for expander, checkbox and icon-@fancy-title-ofs-top: 0px; // extra vertical offset for title-@fancy-node-border-width: 1px;-@fancy-node-border-radius: 0px;-@fancy-node-outline-width: 1px;--// @fancy-line-ofs-top: (@fancy-line-height - @fancy-icon-height) / 2;--@fancy-image-dir: ".";--// Use 'url(...)' to link to the throbber image, or-// use data-uri(...)' to inline the data in css instead:-@fancy-loading-url: url("@{fancy-image-dir}/loading.gif");-// @fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");--// Set to `true` to use `data-uri(...)` instead of a `url(...)` link:-@fancy-inline-sprites: false;--@fancy-font-size: 10pt;-@fancy-font-family: tahoma, arial, helvetica;-@fancy-font-color: black;-@fancy-font-color-dimm: silver;-@fancy-font-error-color: red;--//-------------------------------------------------------------------------------// Mixins-//-------------------------------------------------------------------------------.setBgPos(@x, @y, @cond:true) when (@cond){- background-position: (@x * -@fancy-icon-width) (@y * -@fancy-icon-height);-}-.clearBgImage(@cond:true) when (@cond){- background-image: none;-}-.setBgImageUrl(@url) when (@fancy-use-sprites) and not (@fancy-inline-sprites) {- background-image: url("@{fancy-image-dir}/@{url}");-}-.setBgImageUrl(@url) when (@fancy-use-sprites) and (@fancy-inline-sprites) {- background-image: data-uri("@{fancy-image-dir}/@{url}");-}-.useSprite(@x, @y) when (@fancy-use-sprites){- .setBgPos(@x, @y);-}-.rounded-corners(@radius) {- -webkit-border-radius: @radius;- -moz-border-radius: @radius;- -ms-border-radius: @radius;- -o-border-radius: @radius;- border-radius: @radius;-}-.spanStyleMixin(@color, @bgcolor, @bordercolor){- border-color: @bordercolor;- background: @bgcolor;- color: @color;-}-.spanStyleMixin(@color, @bgcolor, @bordercolor, @startColor, @stopColor){- .spanStyleMixin(@color, @bgcolor, @bordercolor);- // @c-start: argb(@startColor);- // @c-end: argb(@stopColor);- background: -moz-linear-gradient(top, @startColor 0%, @stopColor 100%); // FF3.6+- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@startColor), color-stop(100%,@stopColor)); // Chrome,Safari4+- background: -webkit-linear-gradient(top, @startColor 0%,@stopColor 100%); // Chrome10+,Safari5.1+- background: -o-linear-gradient(top, @startColor 0%,@stopColor 100%); // Opera 11.10+- background: -ms-linear-gradient(top, @startColor 0%,@stopColor 100%); // IE10+- background: linear-gradient(to bottom, @startColor 0%,@stopColor 100%); // W3C- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{startColor}', endColorstr='@{stopColor}',GradientType=0 ); // IE6-9-}--/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-// Redefine, in case jQuery-UI is not included-.ui-helper-hidden {- display: none;-}--/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/--ul.fancytree-container {- font-family: @fancy-font-family;- font-size: @fancy-font-size;- white-space: nowrap;- padding: 3px;- margin: 0; // DT issue 201- background-color: white;- border: 1px dotted gray;- // overflow: auto; // ext-dnd5: otherwise this is always the scroll parent-// height: 100%; // DT issue 263, 470- min-height: 0%; // #192- position: relative; // #235- ul {- padding: 0 0 0 @fancy-level-indent;- margin: 0;- }- ul>li:before { // #538- content: none;- }- li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- .setBgPos(0, 0);- background-repeat: repeat-y;- background-image: none; // no v-lines-- margin: 0;-// padding: 1px 0 0 0; // issue #246- }- // Suppress lines for last child node- li.fancytree-lastsib {- background-image: none;- }-}--// Style, when control is disabled-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;-// filter: alpha(opacity=50); // Yields a css warning- background-color: silver;-}--ul.fancytree-connectors.fancytree-container {- li {- // Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':- background-image: data-uri("@{fancy-image-dir}/vline.gif");- background-position: 0 0;- }-}--// Suppress lines for last child node-ul.fancytree-container li.fancytree-lastsib,-// Suppress lines if level is fixed expanded (option minExpandLevel)-ul.fancytree-no-connector > li {- background-image: none;-}--// Fix jQuery UI 'blind' animation for jQuery UI (#717)-li.fancytree-animating {- position: relative;-}--/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/--span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-// span.fancytree-radio,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: @fancy-icon-width;- height: @fancy-icon-height;-// display: -moz-inline-box; // @ FF 1+2 removed for issue 221-// -moz-box-align: start; /* issue 221 */- display: inline-block; // Required to make a span sizeable- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- .setBgImageUrl("icons.gif");- .setBgPos(0, 0);-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-// span.fancytree-radio,-span.fancytree-custom-icon {- margin-top: @fancy-icon-ofs-top;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: @fancy-icon-width;- height: @fancy-icon-height;- display: inline-block;- margin-left: @fancy-icon-spacing;- .setBgPos(0, 0);-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: @fancy-icon-width;- height: @fancy-icon-height;- margin-left: @fancy-icon-spacing;- margin-top: @fancy-icon-ofs-top;- vertical-align: top;- border-style: none;-}---/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/--span.fancytree-expander {- // .useSprite(0, 5);- cursor: pointer;-}-// span.fancytree-expander:hover {-// // .useSprite(1, 5);-// }--// --- End nodes (use connectors instead of expanders)--.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- // .clearBgImage( @fancy-hide-connectors );- background-image: none;- cursor: default;-}-.fancytree-connectors {- .fancytree-exp-n span.fancytree-expander,- .fancytree-exp-nl span.fancytree-expander {- .setBgImageUrl("icons.gif");- margin-top: 0;- }- .fancytree-exp-n span.fancytree-expander, // End-node, not last sibling- .fancytree-exp-n span.fancytree-expander:hover {- .useSprite(0, 4);- }- .fancytree-exp-nl span.fancytree-expander, // End-node, last sibling- .fancytree-exp-nl span.fancytree-expander:hover {- .useSprite(1, 4);- }-}--// --- Collapsed--.fancytree-exp-c span.fancytree-expander { // Collapsed, not delayed, not last sibling- .useSprite(0, 5);-}-.fancytree-exp-c span.fancytree-expander:hover {- .useSprite(1, 5);-}-.fancytree-exp-cl span.fancytree-expander { // Collapsed, not delayed, last sibling- .useSprite(0, 6);-}-.fancytree-exp-cl span.fancytree-expander:hover {- .useSprite(1, 6);-}-.fancytree-exp-cd span.fancytree-expander { // Collapsed, delayed, not last sibling- .useSprite(4, 5);-}-.fancytree-exp-cd span.fancytree-expander:hover {- .useSprite(5, 5);-}-.fancytree-exp-cdl span.fancytree-expander { // Collapsed, delayed, last sibling- .useSprite(4, 6);-}-.fancytree-exp-cdl span.fancytree-expander:hover {- .useSprite(5, 6);-}--// --- Expanded--.fancytree-exp-e span.fancytree-expander, // Expanded, not delayed, not last sibling-.fancytree-exp-ed span.fancytree-expander { // Expanded, delayed, not last sibling- .useSprite(2, 5);-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- .useSprite(3, 5);-}-.fancytree-exp-el span.fancytree-expander, // Expanded, not delayed, last sibling-.fancytree-exp-edl span.fancytree-expander { // Expanded, delayed, last sibling- .useSprite(2, 6);-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- .useSprite(3, 6);-}--/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander {- span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;- }- &:hover span.fancytree-expander,- &.fancytree-treefocus span.fancytree-expander,- .fancytree-treefocus span.fancytree-expander,- [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;- }-}--/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/--span.fancytree-checkbox {- margin-left: @fancy-icon-spacing;- .useSprite(0, 2);- &:hover { .useSprite(1, 2); }- &.fancytree-radio { .useSprite(0, 3); }- &.fancytree-radio:hover { .useSprite(1, 3); }-}-.fancytree-partsel span.fancytree-checkbox {- .useSprite(4, 2);- &:hover { .useSprite(5, 2); }- &.fancytree-radio { .useSprite(4, 3); }- &.fancytree-radio:hover { .useSprite(5, 3); }-}-// selected after partsel, so it takes precedence:-.fancytree-selected span.fancytree-checkbox {- .useSprite(2, 2);- &:hover { .useSprite(3, 2); }- &.fancytree-radio { .useSprite(2, 3); }- &.fancytree-radio:hover { .useSprite(3, 3); }-}-// Unselectable is dimmed, without hover effects-.fancytree-unselectable {- span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);- }- span.fancytree-checkbox:hover {- .useSprite(0, 2);- }- &.fancytree-partsel span.fancytree-checkbox:hover {- .useSprite(4, 2);- }- &.fancytree-selected span.fancytree-checkbox:hover {- .useSprite(2, 2);- }-}--/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/--span.fancytree-icon { // Default icon- margin-left: @fancy-icon-spacing;- .useSprite(0, 0);-}--/* Documents */-.fancytree-ico-c span.fancytree-icon { // Collapsed folder (empty)- // .useSprite(0, 0);-}-.fancytree-ico-c span.fancytree-icon:hover {- .useSprite(1, 0);-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon { // Collapsed folder (not empty)- .useSprite(2, 0);-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- .useSprite(3, 0);-}-.fancytree-ico-e span.fancytree-icon { // Expanded folder- .useSprite(4, 0);-}-.fancytree-ico-e span.fancytree-icon:hover {- .useSprite(5, 0);-}--/* Folders */-.fancytree-ico-cf span.fancytree-icon { // Collapsed folder (empty)- .useSprite(0, 1);-}-.fancytree-ico-cf span.fancytree-icon:hover {- .useSprite(1, 1);-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon { // Collapsed folder (not empty)- .useSprite(2, 1);-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- .useSprite(3, 1);-}-.fancytree-ico-ef span.fancytree-icon { // Expanded folder- .useSprite(4, 1);-}-.fancytree-ico-ef span.fancytree-icon:hover {- .useSprite(5, 1);-}--// 'Loading' status overrides all others-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: @fancy-loading-url;- .useSprite(0, 0);-}--/* Status node icons */--.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- .useSprite(0, 7);-}---/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/--span.fancytree-node {- /* See #117 */- display: inherit; // #117, resolves to 'display: list-item;' for standard trees- width: 100%;- margin-top: @fancy-node-v-spacing;- min-height: @fancy-line-height;-}-span.fancytree-title {- color: @fancy-font-color; // inherit doesn't work on IE- cursor: pointer;- display: inline-block; // Better alignment, when title contains <br>- vertical-align: top;- min-height: @fancy-line-height;- padding: 0 3px 0 3px; // Otherwise italic font will be outside right bounds- margin: @fancy-title-ofs-top 0 0 @fancy-icon-spacing;- // margin: 0px;- // margin-top: @fancy-line-ofs-top;- // margin-left: @fancy-icon-spacing;- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover- .rounded-corners(@fancy-node-border-radius);-// outline: 0; // @ Firefox, prevent dotted border after click-// Set transparent border to prevent jumping when active node gets a border-// (we can do this, because this theme doesn't use vertical lines)-// border: 1px solid white; // Note: 'transparent' would not work in IE6-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: @fancy-font-error-color;-}--/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper {- span.fancytree-childcounter,- span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7; // bootstrap blue- border: 1px solid gray;- min-width: 10px;- // min-height: 16px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;- }- span.fancytree-childcounter {- position: absolute;- // left: 16px;- top: -6px;- right: -6px;- }- span.fancytree-dnd-modifier {- background: #5cb85c; // bootstrap green- border: none;- // min-height: 16px;- // font-size: 12px;- font-weight: bolder;- }- &.fancytree-drop-accept {- span.fancytree-drag-helper-img {- .useSprite(2, 7);- }- }- &.fancytree-drop-reject {- span.fancytree-drag-helper-img {- .useSprite(1, 7);- }- }-}---/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 2 * @fancy-icon-width; // was 24px, but 32 should be correct- position: absolute;- .useSprite(0, 8);- margin: 0;- &.fancytree-drop-after,- &.fancytree-drop-before {- width: 4 * @fancy-icon-width; // 64px;- .useSprite(0, 9);- }- &.fancytree-drop-copy {- .useSprite(4, 8);- }- &.fancytree-drop-move {- .useSprite(2, 8);- }-}--/*** Source node while dragging ***********************************************/--span.fancytree-drag-source {- &.fancytree-drag-remove {-// text-decoration: line-through;- opacity: 0.15;- }-}--/*** Target node while dragging cursor is over it *****************************/--span.fancytree-drop-target {- &.fancytree-drop-accept {- // outline: 1px dotted #5cb85c; // bootstrap sucess- }-}-span.fancytree-drop-reject {- // outline: 1px dotted #d9534f; // boostrap warning-}---/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/--.fancytree-container.fancytree-rtl {- .fancytree-title {- /*unicode-bidi: bidi-override;*/ /* optional: reverse title letters */- }- span.fancytree-connector,- span.fancytree-expander,- span.fancytree-icon,- span.fancytree-drag-helper-img,- #fancytree-drop-marker {- background-image: url("icons-rtl.gif");- }- .fancytree-exp-n span.fancytree-expander,- .fancytree-exp-nl span.fancytree-expander {- background-image: none;- }- &.fancytree-connectors .fancytree-exp-n span.fancytree-expander,- &.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");- }-}-ul.fancytree-container.fancytree-rtl {- ul {- padding: 0 16px 0 0;- }- &.fancytree-connectors li {- background-position: right 0;- background-image: url("@{fancy-image-dir}/vline-rtl.gif");- }- // Suppress lines for last child node- li.fancytree-lastsib,- // Suppress lines if level is fixed expanded (option minExpandLevel)- &.fancytree-no-connector > li {- background-image: none;- }-}--/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/--table.fancytree-ext-table {- border-collapse: collapse;- span.fancytree-node {- display: inline-block; // #117- box-sizing: border-box; // #562- }-}--/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/--table.fancytree-ext-columnview {-// border-collapse: collapse;-// width: 100%;- tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;- >ul {- padding: 0;- li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip:border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- .setBgPos(0, 0);- background-repeat: repeat-y;- background-image: none; /* no v-lines */-- margin: 0;-// padding: 1px 0 0 0; // issue #246- }- }- }- span.fancytree-node {- position: relative; /* allow positioning of embedded spans */- display: inline-block; // #117- }- span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;- }- // table.fancytree-ext-columnview span.fancytree-node.fancytree-active {- // background-color: royalblue;- // }- .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- .useSprite(0, 5);- &:hover {- .useSprite(1, 5);- }- }-}--/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/--.fancytree-ext-filter-dimm {- span.fancytree-node span.fancytree-title {- color: @fancy-font-color-dimm;- font-weight: lighter;- }- tr.fancytree-submatch span.fancytree-title,- span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;- }- tr.fancytree-match span.fancytree-title,- span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;- }-}-.fancytree-ext-filter-hide {- tr.fancytree-hide,- span.fancytree-node.fancytree-hide {- display: none;- }- tr.fancytree-submatch span.fancytree-title,- span.fancytree-node.fancytree-submatch span.fancytree-title {- color: @fancy-font-color-dimm;- font-weight: lighter;- }- tr.fancytree-match span.fancytree-title,- span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;- }-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders {- tr.fancytree-match span.fancytree-expander,- span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;- }- tr.fancytree-submatch span.fancytree-expander,- span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;- }-}--.fancytree-ext-childcounter,-.fancytree-ext-filter {- // span.fancytree-title mark {- // font-style: normal;- // background-color: #ead61c; // yellow- // border-radius: 3px;- // }- span.fancytree-icon {- position: relative;- }- span.fancytree-childcounter {- color: #fff;- background: #777; // #337ab7; // bootstrap blue- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;- }-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/--ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;-- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-- span.fancytree-node >span {- position: relative;- z-index: 2;- }- span.fancytree-node span.fancytree-title {- position: absolute; // Allow left: 0. Note: prevents smooth dropdown animation- z-index: 1; // Behind expander and checkbox- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;-- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;- }-}--/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/--.fancytree-ext-fixed-wrapper {- .fancytree-fixed-hidden {- display: none;- }- div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);- }- div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);- }- div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;- }- div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;- }- div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;- }- div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;- }-}diff --git a/public/libraries/fancytree/skin-custom-1/README.md b/public/libraries/fancytree/skin-custom-1/README.mddeleted file mode 100644index da573d61e4..0000000000--- a/public/libraries/fancytree/skin-custom-1/README.md+++ /dev/null@@ -1,14 +0,0 @@-### Creating Custom Skins--1. Create a folder like this (recommended name: 'src/skin-custom-...')-2. For a start copy files from one of the existing skin folders (src/skin-...)- to the custom folder:- - ui.fancytree.less (required)- - icons.gif (if needed)- - loading.gif (if needed)-3. cd to your fancytree folder and run `grunt dev` from the connsole.<br>- Note: NPM and Grunt are required.- Read [how to install the toolset](https://github.com/mar10/fancytree/wiki/HowtoContribute#install-the-source-code-and-tools-for-debugging-and-contributing).-4. Edit and save your ui.fancytree.less file.<br>- The `ui.fancytree.css` will be generated and updated automatically from- the LESS file.diff --git a/public/libraries/fancytree/skin-lion/icons-rtl.gif b/public/libraries/fancytree/skin-lion/icons-rtl.gifdeleted file mode 100644index 7bd77f3dda..0000000000Binary files a/public/libraries/fancytree/skin-lion/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-lion/icons.gif b/public/libraries/fancytree/skin-lion/icons.gifdeleted file mode 100644index 1ca2af6f01..0000000000Binary files a/public/libraries/fancytree/skin-lion/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-lion/loading.gif b/public/libraries/fancytree/skin-lion/loading.gifdeleted file mode 100644index 5b33f7e54f..0000000000Binary files a/public/libraries/fancytree/skin-lion/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-lion/ui.fancytree.css b/public/libraries/fancytree/skin-lion/ui.fancytree.cssdeleted file mode 100644index a532e55707..0000000000--- a/public/libraries/fancytree/skin-lion/ui.fancytree.css+++ /dev/null@@ -1,663 +0,0 @@-/*!- * Fancytree "Lion" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*- Lion colors:- gray highlight bar: #D4D4D4- blue highlight-bar and -border #3875D7--*/-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 16px;- height: 16px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 16px;- height: 16px;- display: inline-block;- margin-left: 3px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 16px;- height: 16px;- margin-left: 3px;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -80px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -16px -80px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -96px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -16px -96px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -64px -80px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -80px -80px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -64px -96px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -80px -96px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -32px -80px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -48px -80px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -32px -96px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -48px -96px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 3px;- background-position: 0px -32px;-}-span.fancytree-checkbox:hover {- background-position: -16px -32px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -48px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -16px -48px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -64px -32px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -80px -32px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -64px -48px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -80px -48px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -32px -32px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -48px -32px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -32px -48px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -48px -48px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -32px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -64px -32px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -32px -32px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 3px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -16px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -48px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -80px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -16px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -16px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -32px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -48px -16px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -64px -16px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -80px -16px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -112px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 16px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 16px;- padding: 0 3px 0 3px;- margin: 0px 0 0 3px;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -32px -112px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -16px -112px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 32px;- position: absolute;- background-position: 0px -128px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 64px;- background-position: 0px -144px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -64px -128px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -32px -128px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -80px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -16px -80px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Node titles- */-span.fancytree-title {- border: 1px solid transparent;- border-radius: 0;-}-span.fancytree-focused span.fancytree-title {- outline: 1px dotted black;-}-span.fancytree-selected span.fancytree-title,-span.fancytree-active span.fancytree-title {- background-color: #D4D4D4;-}-span.fancytree-selected span.fancytree-title {- font-style: italic;-}-.fancytree-treefocus span.fancytree-selected span.fancytree-title,-.fancytree-treefocus span.fancytree-active span.fancytree-title {- color: white;- background-color: #3875D7;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table tbody tr.fancytree-focused {- background-color: #99DEFD;-}-table.fancytree-ext-table tbody tr.fancytree-active {- background-color: royalblue;-}-table.fancytree-ext-table tbody tr.fancytree-selected {- background-color: #99DEFD;-}-/*******************************************************************************- * 'columnview' extension- */-table.fancytree-ext-columnview tbody tr td {- border: 1px solid gray;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #ccc;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-active {- background-color: royalblue;-}diff --git a/public/libraries/fancytree/skin-lion/ui.fancytree.less b/public/libraries/fancytree/skin-lion/ui.fancytree.lessdeleted file mode 100644index 81f7fe8e4a..0000000000--- a/public/libraries/fancytree/skin-lion/ui.fancytree.less+++ /dev/null@@ -1,94 +0,0 @@- /*!- * Fancytree "Lion" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--/*- Lion colors:- gray highlight bar: #D4D4D4- blue highlight-bar and -border #3875D7--*/-// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/--// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)--@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-line-height: 16px;-@fancy-icon-spacing: 3px;--// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;---/*******************************************************************************- * Node titles- */-span.fancytree-title {- border: 1px solid transparent; // reserve some space for status borders- border-radius: 0;-}-span.fancytree-focused span.fancytree-title {- outline: 1px dotted black;-}-span.fancytree-selected span.fancytree-title,-span.fancytree-active span.fancytree-title {- background-color: #D4D4D4; // gray-}-span.fancytree-selected span.fancytree-title {- font-style: italic;-}-.fancytree-treefocus span.fancytree-selected span.fancytree-title,-.fancytree-treefocus span.fancytree-active span.fancytree-title {- color: white;- background-color: #3875D7; // blue-}--/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table {- border-collapse: collapse;- tbody {- tr.fancytree-focused {- background-color: #99DEFD;- }- tr.fancytree-active {- background-color: royalblue;- }- tr.fancytree-selected {- background-color: #99DEFD;- }- }-}--/*******************************************************************************- * 'columnview' extension- */--table.fancytree-ext-columnview tbody tr td {- border: 1px solid gray;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #ccc;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-active {- background-color: royalblue;-}diff --git a/public/libraries/fancytree/skin-lion/ui.fancytree.min.css b/public/libraries/fancytree/skin-lion/ui.fancytree.min.cssdeleted file mode 100644index 7341705907..0000000000--- a/public/libraries/fancytree/skin-lion/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "Lion" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:16px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:16px;padding:0 3px;margin:0 0 0 3px;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}span.fancytree-title{border:1px solid transparent;border-radius:0}span.fancytree-focused span.fancytree-title{outline:#000 dotted 1px}span.fancytree-active span.fancytree-title,span.fancytree-selected span.fancytree-title{background-color:#D4D4D4}span.fancytree-selected span.fancytree-title{font-style:italic}.fancytree-treefocus span.fancytree-active span.fancytree-title,.fancytree-treefocus span.fancytree-selected span.fancytree-title{color:#fff;background-color:#3875D7}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table tbody tr.fancytree-focused{background-color:#99DEFD}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#4169e1}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#99DEFD}table.fancytree-ext-columnview tbody tr td{border:1px solid gray}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#ccc}table.fancytree-ext-columnview span.fancytree-node.fancytree-active{background-color:#4169e1}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-lion/vline-rtl.gif b/public/libraries/fancytree/skin-lion/vline-rtl.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-lion/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-lion/vline.gif b/public/libraries/fancytree/skin-lion/vline.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-lion/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-themeroller/icons-rtl.gif b/public/libraries/fancytree/skin-themeroller/icons-rtl.gifdeleted file mode 100644index 9d6d571c03..0000000000Binary files a/public/libraries/fancytree/skin-themeroller/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-themeroller/icons.gif b/public/libraries/fancytree/skin-themeroller/icons.gifdeleted file mode 100644index 0097b1f040..0000000000Binary files a/public/libraries/fancytree/skin-themeroller/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-themeroller/loading.gif b/public/libraries/fancytree/skin-themeroller/loading.gifdeleted file mode 100644index ef88497ccc..0000000000Binary files a/public/libraries/fancytree/skin-themeroller/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-themeroller/ui.fancytree.css b/public/libraries/fancytree/skin-themeroller/ui.fancytree.cssdeleted file mode 100644index 1e2cd1d98e..0000000000--- a/public/libraries/fancytree/skin-themeroller/ui.fancytree.css+++ /dev/null@@ -1,622 +0,0 @@-/*!- * Fancytree "ThemeRoller" skin.- * This file should be included after a jQuery Themeroller style sheet.- * It is meant to be used together with the ext-themeroller extension.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 16px;- height: 16px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 2px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 16px;- height: 16px;- display: inline-block;- margin-left: 3px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 16px;- height: 16px;- margin-left: 3px;- margin-top: 2px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -80px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -16px -80px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -96px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -16px -96px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -64px -80px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -80px -80px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -64px -96px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -80px -96px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -32px -80px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -48px -80px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -32px -96px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -48px -96px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 3px;- background-position: 0px -32px;-}-span.fancytree-checkbox:hover {- background-position: -16px -32px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -48px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -16px -48px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -64px -32px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -80px -32px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -64px -48px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -80px -48px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -32px -32px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -48px -32px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -32px -48px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -48px -48px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -32px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -64px -32px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -32px -32px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 3px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -16px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -48px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -80px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -16px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -16px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -32px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -48px -16px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -64px -16px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -80px -16px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -112px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 0px;- min-height: 20px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 20px;- padding: 0 3px 0 3px;- margin: 0px 0 0 3px;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -32px -112px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -16px -112px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 32px;- position: absolute;- background-position: 0px -128px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 64px;- background-position: 0px -144px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -64px -128px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -32px -128px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -80px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -16px -80px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Node titles- */-.fancytree-plain span.fancytree-node {- border: 1px solid transparent;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody tr td {- border: 1px solid transparent;-}diff --git a/public/libraries/fancytree/skin-themeroller/ui.fancytree.less b/public/libraries/fancytree/skin-themeroller/ui.fancytree.lessdeleted file mode 100644index f961d91b3a..0000000000--- a/public/libraries/fancytree/skin-themeroller/ui.fancytree.less+++ /dev/null@@ -1,60 +0,0 @@-/*!- * Fancytree "ThemeRoller" skin.- * This file should be included after a jQuery Themeroller style sheet.- * It is meant to be used together with the ext-themeroller extension.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/---// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)--@fancy-line-height: 20px; // height of a nodes selection bar including borders-@fancy-node-v-spacing: 0px; // gap between two node borders-@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-icon-spacing: 3px; // margin between icon/icon or icon/title-@fancy-icon-ofs-top: 2px; // extra vertical offset for expander, checkbox and icon-@fancy-title-ofs-top: 0px; // extra vertical offset for title-@fancy-node-border-width: 1px;-@fancy-node-border-radius: 0px;-@fancy-node-outline-width: 1px;---// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;--/*******************************************************************************- * Node titles- */-.fancytree-plain {- span.fancytree-node {- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover- }-}--/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody {- tr td {- border: 1px solid transparent;- }-}diff --git a/public/libraries/fancytree/skin-themeroller/ui.fancytree.min.css b/public/libraries/fancytree/skin-themeroller/ui.fancytree.min.cssdeleted file mode 100644index 687e5774d0..0000000000--- a/public/libraries/fancytree/skin-themeroller/ui.fancytree.min.css+++ /dev/null@@ -1,8 +0,0 @@-/*!- * Fancytree "ThemeRoller" skin.- * This file should be included after a jQuery Themeroller style sheet.- * It is meant to be used together with the ext-themeroller extension.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:2px}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:2px;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:0;min-height:20px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:20px;padding:0 3px;margin:0 0 0 3px;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}.fancytree-plain span.fancytree-node,table.fancytree-ext-table tbody tr td{border:1px solid transparent}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-themeroller/vline-rtl.gif b/public/libraries/fancytree/skin-themeroller/vline-rtl.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-themeroller/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-themeroller/vline.gif b/public/libraries/fancytree/skin-themeroller/vline.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-themeroller/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-vista/icons-rtl.gif b/public/libraries/fancytree/skin-vista/icons-rtl.gifdeleted file mode 100644index 9d6d571c03..0000000000Binary files a/public/libraries/fancytree/skin-vista/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-vista/icons.gif b/public/libraries/fancytree/skin-vista/icons.gifdeleted file mode 100644index 0097b1f040..0000000000Binary files a/public/libraries/fancytree/skin-vista/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-vista/loading.gif b/public/libraries/fancytree/skin-vista/loading.gifdeleted file mode 100644index ef88497ccc..0000000000Binary files a/public/libraries/fancytree/skin-vista/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-vista/ui.fancytree.css b/public/libraries/fancytree/skin-vista/ui.fancytree.cssdeleted file mode 100644index 3139c734c4..0000000000--- a/public/libraries/fancytree/skin-vista/ui.fancytree.css+++ /dev/null@@ -1,669 +0,0 @@-/*!- * Fancytree "Vista" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*-both:- unselected background: #FCFCFC 'nearly white'- hover bar (unselected, inactive): #F8FCFE..#EFF9FE (border: #D8F0FA) 'very light blue'- active node: #F6FBFD..#D5EFFC (border: #99DEFD) 'light blue'- active node with hover: #F2F9FD..#C4E8FA (border: #B6E6FB)--Tree view:- active node, tree inactive: #FAFAFB..#E5E5E5 (border: #D9D9D9) 'light gray, selected, but tree not active'--List view:- selected bar: --> active bar- focus bar: active + border 1px dotted #090402 (inside the blue border)-- table left/right border: #EDEDED 'light gray'- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 16px;- height: 16px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 16px;- height: 16px;- display: inline-block;- margin-left: 3px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 16px;- height: 16px;- margin-left: 3px;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -80px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -16px -80px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -96px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -16px -96px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -64px -80px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -80px -80px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -64px -96px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -80px -96px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -32px -80px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -48px -80px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -32px -96px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -48px -96px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 3px;- background-position: 0px -32px;-}-span.fancytree-checkbox:hover {- background-position: -16px -32px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -48px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -16px -48px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -64px -32px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -80px -32px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -64px -48px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -80px -48px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -32px -32px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -48px -32px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -32px -48px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -48px -48px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -32px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -64px -32px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -32px -32px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 3px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -16px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -48px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -80px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -16px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -16px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -32px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -48px -16px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -64px -16px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -80px -16px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -112px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 16px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 16px;- padding: 0 3px 0 3px;- margin: 0px 0 0 3px;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -32px -112px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -16px -112px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 32px;- position: absolute;- background-position: 0px -128px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 64px;- background-position: 0px -144px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -64px -128px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -32px -128px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -80px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -16px -80px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Node titles- */-span.fancytree-title {- border: 1px solid transparent;-}-span.fancytree-title:hover {- background-color: #F2F7FD;- border-color: #B8D6FB;-}-span.fancytree-focused span.fancytree-title {- background-color: #EFEBDE;- outline: 1px dotted gray;-}-span.fancytree-selected span.fancytree-title {- font-style: italic;-}-span.fancytree-active span.fancytree-title {- border: 1px solid #99DEFD;- background-color: #D8F0FA;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table tbody tr.fancytree-focused {- background-color: #99DEFD;-}-table.fancytree-ext-table tbody tr.fancytree-active {- background-color: royalblue;-}-table.fancytree-ext-table tbody tr.fancytree-selected {- background-color: #99FDDE;-}-/*******************************************************************************- * 'columnview' extension- */-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #ccc;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-active {- background-color: royalblue;-}diff --git a/public/libraries/fancytree/skin-vista/ui.fancytree.less b/public/libraries/fancytree/skin-vista/ui.fancytree.lessdeleted file mode 100644index cb64cc8741..0000000000--- a/public/libraries/fancytree/skin-vista/ui.fancytree.less+++ /dev/null@@ -1,111 +0,0 @@-/*!- * Fancytree "Vista" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--/*-both:- unselected background: #FCFCFC 'nearly white'- hover bar (unselected, inactive): #F8FCFE..#EFF9FE (border: #D8F0FA) 'very light blue'- active node: #F6FBFD..#D5EFFC (border: #99DEFD) 'light blue'- active node with hover: #F2F9FD..#C4E8FA (border: #B6E6FB)--Tree view:- active node, tree inactive: #FAFAFB..#E5E5E5 (border: #D9D9D9) 'light gray, selected, but tree not active'--List view:- selected bar: --> active bar- focus bar: active + border 1px dotted #090402 (inside the blue border)-- table left/right border: #EDEDED 'light gray'- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/---// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)--@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-line-height: 16px;-@fancy-icon-spacing: 3px;--// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;---/*******************************************************************************- * Node titles- */-span.fancytree-title {- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover-}-span.fancytree-title:hover {- background-color: #F2F7FD; // light blue- border-color: #B8D6FB; // darker light blue-}-.fancytree-folder span.fancytree-title {- // font-weight: bold;-}-span.fancytree-focused span.fancytree-title {- background-color: #EFEBDE; // gray- outline: 1px dotted gray;-}-span.fancytree-has-children span.fancytree-title {- // font-style: oblique;-}-span.fancytree-expanded span.fancytree-title {-}-span.fancytree-selected span.fancytree-title {- font-style: italic;-}-span.fancytree-active span.fancytree-title {- border: 1px solid #99DEFD;- background-color: #D8F0FA;-}--/*******************************************************************************- * 'table' extension- */--table.fancytree-ext-table {- border-collapse: collapse;- tbody tr.fancytree-focused {- background-color: #99DEFD;- }- tbody tr.fancytree-active {- background-color: royalblue;- }- tbody tr.fancytree-selected {- background-color: #99FDDE;- }-}--/*******************************************************************************- * 'columnview' extension- */--table.fancytree-ext-columnview {- span.fancytree-node.fancytree-expanded {- background-color: #ccc;- }- span.fancytree-node.fancytree-active {- background-color: royalblue;- }-}diff --git a/public/libraries/fancytree/skin-vista/ui.fancytree.min.css b/public/libraries/fancytree/skin-vista/ui.fancytree.min.cssdeleted file mode 100644index 8a82195a39..0000000000--- a/public/libraries/fancytree/skin-vista/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "Vista" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:16px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:16px;padding:0 3px;margin:0 0 0 3px;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}span.fancytree-title{border:1px solid transparent}span.fancytree-title:hover{background-color:#F2F7FD;border-color:#B8D6FB}span.fancytree-focused span.fancytree-title{background-color:#EFEBDE;outline:gray dotted 1px}span.fancytree-selected span.fancytree-title{font-style:italic}span.fancytree-active span.fancytree-title{border:1px solid #99DEFD;background-color:#D8F0FA}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table tbody tr.fancytree-focused{background-color:#99DEFD}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#4169e1}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#99FDDE}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#ccc}table.fancytree-ext-columnview span.fancytree-node.fancytree-active{background-color:#4169e1}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-vista/vline-rtl.gif b/public/libraries/fancytree/skin-vista/vline-rtl.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-vista/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-vista/vline.gif b/public/libraries/fancytree/skin-vista/vline.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-vista/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win7/icons-rtl.gif b/public/libraries/fancytree/skin-win7/icons-rtl.gifdeleted file mode 100644index 9d6d571c03..0000000000Binary files a/public/libraries/fancytree/skin-win7/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win7/icons.gif b/public/libraries/fancytree/skin-win7/icons.gifdeleted file mode 100644index 0097b1f040..0000000000Binary files a/public/libraries/fancytree/skin-win7/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win7/loading.gif b/public/libraries/fancytree/skin-win7/loading.gifdeleted file mode 100644index ef88497ccc..0000000000Binary files a/public/libraries/fancytree/skin-win7/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win7/ui.fancytree.css b/public/libraries/fancytree/skin-win7/ui.fancytree.cssdeleted file mode 100644index 5db00cd12b..0000000000--- a/public/libraries/fancytree/skin-win7/ui.fancytree.css+++ /dev/null@@ -1,728 +0,0 @@-/*!- * Fancytree "Win7" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 16px;- height: 16px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 2px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 16px;- height: 16px;- display: inline-block;- margin-left: 3px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 16px;- height: 16px;- margin-left: 3px;- margin-top: 2px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -80px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -16px -80px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -96px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -16px -96px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -64px -80px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -80px -80px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -64px -96px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -80px -96px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -32px -80px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -48px -80px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -32px -96px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -48px -96px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 3px;- background-position: 0px -32px;-}-span.fancytree-checkbox:hover {- background-position: -16px -32px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -48px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -16px -48px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -64px -32px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -80px -32px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -64px -48px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -80px -48px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -32px -32px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -48px -32px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -32px -48px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -48px -48px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -32px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -64px -32px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -32px -32px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 3px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -16px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -48px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -80px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -16px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -16px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -32px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -48px -16px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -64px -16px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -80px -16px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -112px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 20px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 20px;- padding: 0 3px 0 3px;- margin: 0px 0 0 3px;- border: 1px solid transparent;- -webkit-border-radius: 3px;- -moz-border-radius: 3px;- -ms-border-radius: 3px;- -o-border-radius: 3px;- border-radius: 3px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -32px -112px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -16px -112px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 32px;- position: absolute;- background-position: 0px -128px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 64px;- background-position: 0px -144px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -64px -128px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -32px -128px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -80px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -16px -80px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Node titles- */-span.fancytree-active .fancytree-title,-span.fancytree-selected .fancytree-title {- border-color: #d9d9d9;- background: #e5e5e5;- color: inherit;- background: -moz-linear-gradient(top, #fafafb 0%, #e5e5e5 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fafafb), color-stop(100%, #e5e5e5));- background: -webkit-linear-gradient(top, #fafafb 0%, #e5e5e5 100%);- background: -o-linear-gradient(top, #fafafb 0%, #e5e5e5 100%);- background: -ms-linear-gradient(top, #fafafb 0%, #e5e5e5 100%);- background: linear-gradient(to bottom, #fafafb 0%, #e5e5e5 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafb', endColorstr='#e5e5e5', GradientType=0);-}-span.fancytree-selected .fancytree-title {- font-style: italic;-}-.fancytree-treefocus span.fancytree-active .fancytree-title,-.fancytree-treefocus span.fancytree-selected .fancytree-title {- border-color: #99defd;- background: #f6fbfd;- color: inherit;- background: -moz-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6fbfd), color-stop(100%, #d5effc));- background: -webkit-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: -o-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: -ms-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: linear-gradient(to bottom, #f6fbfd 0%, #d5effc 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fbfd', endColorstr='#d5effc', GradientType=0);-}-.fancytree-treefocus span.fancytree-focused span.fancytree-title {- border: 1px solid #719acb;-}-span.fancytree-title:hover {- border-color: #d8f0fa;- background: #f8fcfe;- color: inherit;- background: -moz-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f8fcfe), color-stop(100%, #eff9fe));- background: -webkit-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: -o-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: -ms-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: linear-gradient(to bottom, #f8fcfe 0%, #eff9fe 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8fcfe', endColorstr='#eff9fe', GradientType=0);-}-span.fancytree-active .fancytree-title:hover,-span.fancytree-selected .fancytree-title:hover {- border-color: #719acb;- background: #f2f9fd;- color: inherit;- background: -moz-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f2f9fd), color-stop(100%, #c4e8fa));- background: -webkit-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: -o-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: -ms-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: linear-gradient(to bottom, #f2f9fd 0%, #c4e8fa 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f9fd', endColorstr='#c4e8fa', GradientType=0);-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody tr td {- border: 1px solid #ededed;-}-table.fancytree-ext-table tbody tr:hover {- border-color: inherit;- background: #f8fcfe;- color: inherit;- background: -moz-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f8fcfe), color-stop(100%, #eff9fe));- background: -webkit-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: -o-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: -ms-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);- background: linear-gradient(to bottom, #f8fcfe 0%, #eff9fe 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8fcfe', endColorstr='#eff9fe', GradientType=0);- outline: 1px solid #d8f0fa;-}-table.fancytree-ext-table tbody tr.fancytree-focused {- outline: 1px dotted #090402;-}-table.fancytree-ext-table tbody span.fancytree-focused span.fancytree-title {- outline: solid dotted black;-}-table.fancytree-ext-table tbody span.fancytree-title:hover {- border: 1px solid transparent;- background: inherit;- background: transparent;- background: none;- filter: none;-}-table.fancytree-ext-table tbody tr.fancytree-active:hover,-table.fancytree-ext-table tbody tr.fancytree-selected:hover {- border-color: inherit;- background: #f2f9fd;- color: inherit;- background: -moz-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f2f9fd), color-stop(100%, #c4e8fa));- background: -webkit-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: -o-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: -ms-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);- background: linear-gradient(to bottom, #f2f9fd 0%, #c4e8fa 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f9fd', endColorstr='#c4e8fa', GradientType=0);- outline: 1px solid #B6E6FB;-}-table.fancytree-ext-table tbody tr.fancytree-active,-table.fancytree-ext-table tbody tr.fancytree-selected {- border-color: inherit;- background: #f6fbfd;- color: inherit;- background: -moz-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f6fbfd), color-stop(100%, #d5effc));- background: -webkit-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: -o-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: -ms-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);- background: linear-gradient(to bottom, #f6fbfd 0%, #d5effc 100%);- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fbfd', endColorstr='#d5effc', GradientType=0);- outline: 1px solid #99DEFD;-}diff --git a/public/libraries/fancytree/skin-win7/ui.fancytree.less b/public/libraries/fancytree/skin-win7/ui.fancytree.lessdeleted file mode 100644index f352baaff3..0000000000--- a/public/libraries/fancytree/skin-win7/ui.fancytree.less+++ /dev/null@@ -1,151 +0,0 @@-/*!- * Fancytree "Win7" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Fancytree Win7 styles--// both:-// unselected background: #FCFCFC 'nearly white', no border-//-// hover bar (unselected, inactive): #fcfdfe..#EFF9FE (border: #b8d6fb) 'very light blue'-// background: #f8fcfe; //-// background: -moz-linear-gradient(top, #f8fcfe 0%, #eff9fe 100%);--// active node: #F6FBFD..#D5EFFC (border: #719acb) 'light blue'-// background: #f6fbfd;-// background: -moz-linear-gradient(top, #f6fbfd 0%, #d5effc 100%);--// active node with hover: #F2F9FD..#C4E8FA (border: #B6E6FB)-// background: #f2f9fd;-// background: -moz-linear-gradient(top, #f2f9fd 0%, #c4e8fa 100%);--// Tree view:-// active node, tree inactive: #FAFAFB..#E5E5E5 (border: #D9D9D9) 'light gray, selected, but tree not active'-// background: #fafafb;-// background: -moz-linear-gradient(top, #fafafb 0%, #e5e5e5 100%);--// List view:-// selected bar: --> active bar-// focus bar: active + border 1px dotted #090402 (inside the blue border)--// table left/right border: #EDEDED 'light gray'--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/--// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)--@fancy-line-height: 20px; // height of a nodes selection bar including borders-@fancy-node-v-spacing: 1px; // gap between two node borders-@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-icon-spacing: 3px; // margin between icon/icon or icon/title-@fancy-icon-ofs-top: 2px; // extra vertical offset for expander, checkbox and icon-@fancy-title-ofs-top: 0px; // extra vertical offset for title-@fancy-node-border-width: 1px;-@fancy-node-border-radius: 3px;-@fancy-node-outline-width: 1px;--// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;---ul.fancytree-container {--}--/*******************************************************************************- * Node titles- */-span.fancytree-title {-}-// active nodes inside an UN-focused tree are gray instead of blue-span.fancytree-active .fancytree-title,-span.fancytree-selected .fancytree-title {- .spanStyleMixin(inherit, #e5e5e5, #d9d9d9, #fafafb, #e5e5e5);-}-span.fancytree-selected .fancytree-title {- font-style: italic;-}-// Markers inside an active tree-.fancytree-treefocus {- span.fancytree-active .fancytree-title,- span.fancytree-selected .fancytree-title {- .spanStyleMixin(inherit, #f6fbfd, #99defd, #f6fbfd, #d5effc);- }- span.fancytree-focused span.fancytree-title {- border: @fancy-node-border-width solid #719acb;- }-}-// Hover is always colored (even if tree is inactive)-span.fancytree-title:hover {- .spanStyleMixin(inherit, #f8fcfe, #d8f0fa, #f8fcfe, #eff9fe);-}-span.fancytree-active .fancytree-title:hover,-span.fancytree-selected .fancytree-title:hover {- .spanStyleMixin(inherit, #f2f9fd, #719acb, #f2f9fd, #c4e8fa);-}--/*******************************************************************************- * 'table' extension- */--table.fancytree-ext-table tbody {- tr td {- border: 1px solid #ededed;- }- tr:hover {- .spanStyleMixin(inherit, #f8fcfe, inherit, #f8fcfe, #eff9fe);- outline: 1px solid #d8f0fa;- }- // tr:hover td {- // outline: 1px solid #D8F0FA;- // }- tr.fancytree-focused {- // background-color: #99DEFD;- outline: 1px dotted #090402;- }- span.fancytree-focused span.fancytree-title {- outline: solid dotted black;- }-- // Title gets a white background, when hovered. Undo standard node formatting- span.fancytree-title:hover {- border: 1px solid transparent;- background: inherit;- background: transparent;- background: none;- filter: none;- }-- tr.fancytree-active:hover,- tr.fancytree-selected:hover {- .spanStyleMixin(inherit, #f2f9fd, inherit, #f2f9fd, #c4e8fa);- outline: 1px solid #B6E6FB;- }- tr.fancytree-active,- tr.fancytree-selected {- .spanStyleMixin(inherit, #f6fbfd, inherit, #f6fbfd, #d5effc);- outline: 1px solid #99DEFD;- }- // tr.fancytree-selected .fancytree-title {- // font-style: italic;- // }--}diff --git a/public/libraries/fancytree/skin-win7/ui.fancytree.min.css b/public/libraries/fancytree/skin-win7/ui.fancytree.min.cssdeleted file mode 100644index e9fa6d0168..0000000000--- a/public/libraries/fancytree/skin-win7/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "Win7" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:2px}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:2px;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:20px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:20px;padding:0 3px;margin:0 0 0 3px;border:1px solid transparent;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}span.fancytree-active .fancytree-title,span.fancytree-selected .fancytree-title{border-color:#d9d9d9;color:inherit;background:-moz-linear-gradient(top,#fafafb 0,#e5e5e5 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fafafb),color-stop(100%,#e5e5e5));background:-webkit-linear-gradient(top,#fafafb 0,#e5e5e5 100%);background:-o-linear-gradient(top,#fafafb 0,#e5e5e5 100%);background:-ms-linear-gradient(top,#fafafb 0,#e5e5e5 100%);background:linear-gradient(to bottom,#fafafb 0,#e5e5e5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafb', endColorstr='#e5e5e5', GradientType=0)}span.fancytree-selected .fancytree-title{font-style:italic}.fancytree-treefocus span.fancytree-active .fancytree-title,.fancytree-treefocus span.fancytree-selected .fancytree-title{border-color:#99defd;color:inherit;background:-moz-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f6fbfd),color-stop(100%,#d5effc));background:-webkit-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:-o-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:-ms-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:linear-gradient(to bottom,#f6fbfd 0,#d5effc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fbfd', endColorstr='#d5effc', GradientType=0)}.fancytree-treefocus span.fancytree-focused span.fancytree-title{border:1px solid #719acb}span.fancytree-title:hover{border-color:#d8f0fa;color:inherit;background:-moz-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f8fcfe),color-stop(100%,#eff9fe));background:-webkit-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:-o-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:-ms-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:linear-gradient(to bottom,#f8fcfe 0,#eff9fe 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8fcfe', endColorstr='#eff9fe', GradientType=0)}span.fancytree-active .fancytree-title:hover,span.fancytree-selected .fancytree-title:hover{border-color:#719acb;color:inherit;background:-moz-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f2f9fd),color-stop(100%,#c4e8fa));background:-webkit-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:-o-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:-ms-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:linear-gradient(to bottom,#f2f9fd 0,#c4e8fa 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f9fd', endColorstr='#c4e8fa', GradientType=0)}table.fancytree-ext-table tbody tr td{border:1px solid #ededed}table.fancytree-ext-table tbody tr:hover{border-color:inherit;color:inherit;background:-moz-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f8fcfe),color-stop(100%,#eff9fe));background:-webkit-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:-o-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:-ms-linear-gradient(top,#f8fcfe 0,#eff9fe 100%);background:linear-gradient(to bottom,#f8fcfe 0,#eff9fe 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8fcfe', endColorstr='#eff9fe', GradientType=0);outline:#d8f0fa solid 1px}table.fancytree-ext-table tbody tr.fancytree-focused{outline:#090402 dotted 1px}table.fancytree-ext-table tbody span.fancytree-focused span.fancytree-title{outline:dotted solid}table.fancytree-ext-table tbody span.fancytree-title:hover{border:1px solid transparent;background:0 0;filter:none}table.fancytree-ext-table tbody tr.fancytree-active:hover,table.fancytree-ext-table tbody tr.fancytree-selected:hover{border-color:inherit;color:inherit;background:-moz-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f2f9fd),color-stop(100%,#c4e8fa));background:-webkit-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:-o-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:-ms-linear-gradient(top,#f2f9fd 0,#c4e8fa 100%);background:linear-gradient(to bottom,#f2f9fd 0,#c4e8fa 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f9fd', endColorstr='#c4e8fa', GradientType=0);outline:#B6E6FB solid 1px}table.fancytree-ext-table tbody tr.fancytree-active,table.fancytree-ext-table tbody tr.fancytree-selected{border-color:inherit;color:inherit;background:-moz-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f6fbfd),color-stop(100%,#d5effc));background:-webkit-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:-o-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:-ms-linear-gradient(top,#f6fbfd 0,#d5effc 100%);background:linear-gradient(to bottom,#f6fbfd 0,#d5effc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6fbfd', endColorstr='#d5effc', GradientType=0);outline:#99DEFD solid 1px}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-win7/vline-rtl.gif b/public/libraries/fancytree/skin-win7/vline-rtl.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-win7/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win7/vline.gif b/public/libraries/fancytree/skin-win7/vline.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-win7/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-n/icons-rtl.gif b/public/libraries/fancytree/skin-win8-n/icons-rtl.gifdeleted file mode 100644index 9d6d571c03..0000000000Binary files a/public/libraries/fancytree/skin-win8-n/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-n/icons.gif b/public/libraries/fancytree/skin-win8-n/icons.gifdeleted file mode 100644index 0097b1f040..0000000000Binary files a/public/libraries/fancytree/skin-win8-n/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-n/loading.gif b/public/libraries/fancytree/skin-win8-n/loading.gifdeleted file mode 100644index ef88497ccc..0000000000Binary files a/public/libraries/fancytree/skin-win8-n/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-n/ui.fancytree.css b/public/libraries/fancytree/skin-win8-n/ui.fancytree.cssdeleted file mode 100644index a92bb4f157..0000000000--- a/public/libraries/fancytree/skin-win8-n/ui.fancytree.css+++ /dev/null@@ -1,673 +0,0 @@-/*!- * Fancytree "win8" skin (highlighting the node span instead of title-only).- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 16px;- height: 16px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 16px;- height: 16px;- display: inline-block;- margin-left: 3px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 16px;- height: 16px;- margin-left: 3px;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -80px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -16px -80px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -96px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -16px -96px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -64px -80px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -80px -80px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -64px -96px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -80px -96px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -32px -80px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -48px -80px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -32px -96px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -48px -96px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 3px;- background-position: 0px -32px;-}-span.fancytree-checkbox:hover {- background-position: -16px -32px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -48px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -16px -48px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -64px -32px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -80px -32px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -64px -48px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -80px -48px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -32px -32px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -48px -32px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -32px -48px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -48px -48px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -32px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -64px -32px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -32px -32px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 3px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -16px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -48px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -80px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -16px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -16px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -32px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -48px -16px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -64px -16px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -80px -16px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -112px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 16px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 16px;- padding: 0 3px 0 3px;- margin: 0px 0 0 3px;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -32px -112px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -16px -112px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 32px;- position: absolute;- background-position: 0px -128px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 64px;- background-position: 0px -144px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -64px -128px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -32px -128px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -80px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -16px -80px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Node titles- */-.fancytree-plain span.fancytree-node {- border: 1px solid transparent;-}-.fancytree-plain span.fancytree-node:hover {- background-color: #E5F3FB;- border-color: #70C0E7;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused {- border-color: #3399FF;-}-.fancytree-plain span.fancytree-node.fancytree-active,-.fancytree-plain span.fancytree-node.fancytree-selected {- background-color: #F7F7F7;- border-color: #DEDEDE;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active,-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected,-.fancytree-plain span.fancytree-node.fancytree-active:hover,-.fancytree-plain span.fancytree-node.fancytree-selected:hover {- background-color: #CBE8F6;- border-color: #26A0DA;-}-.fancytree-plain .fancytree-node.fancytree-selected {- font-style: italic;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody tr td {- border: 1px solid #EDEDED;-}-table.fancytree-ext-table tbody span.fancytree-node,-table.fancytree-ext-table tbody span.fancytree-node:hover {- border: none;- background: none;-}-table.fancytree-ext-table tbody tr:hover {- background-color: #E5F3FB;- outline: 1px solid #70C0E7;-}-table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title {- outline: 1px dotted black;-}-table.fancytree-ext-table tbody tr.fancytree-active:hover,-table.fancytree-ext-table tbody tr.fancytree-selected:hover {- background-color: #CBE8F6;- outline: 1px solid #26A0DA;-}-table.fancytree-ext-table tbody tr.fancytree-active {- background-color: #F7F7F7;- outline: 1px solid #DEDEDE;-}-table.fancytree-ext-table tbody tr.fancytree-selected {- background-color: #F7F7F7;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active {- background-color: #CBE8F6;- outline: 1px solid #26A0DA;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected {- background-color: #CBE8F6;-}diff --git a/public/libraries/fancytree/skin-win8-n/ui.fancytree.less b/public/libraries/fancytree/skin-win8-n/ui.fancytree.lessdeleted file mode 100644index 8505e80055..0000000000--- a/public/libraries/fancytree/skin-win8-n/ui.fancytree.less+++ /dev/null@@ -1,142 +0,0 @@-/*!- * Fancytree "win8" skin (highlighting the node span instead of title-only).- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/--// Borders have NO radius and NO gradients are used!--// both:-// unselected background: white-// hover bar (unselected, inactive): #E5F3FB (border: #70C0E7) 'very light blue'-// active node: #CBE8F6 (border: #26A0DA) 'light blue'-// active node with hover: wie active node--// Tree view:-// active node, tree inactive: #F7F7F7 (border: #DEDEDE) 'light gray, selected, but tree not active'--// List view:-// selected bar: --> active bar-// focus bar: transparent(white) + border 1px solid #3399FF ()--// table left/right border: #EDEDED 'light gray'--// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)-// Set to `true` to inline icon sprite into CSS:-// @fancy-inline-sprites: true;-@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-line-height: 16px;-@fancy-icon-spacing: 3px;--// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;---/*******************************************************************************- * Node titles- */-.fancytree-plain {- span.fancytree-node {- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover- }- span.fancytree-node:hover {- background-color: #E5F3FB;- border-color: #70C0E7;- }- &.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused {- border-color: #3399FF;- // outline: 1px solid #3399FF;- }- span.fancytree-node.fancytree-active,- span.fancytree-node.fancytree-selected { // active/selcted nodes inside inactive tree- background-color: #F7F7F7;- border-color: #DEDEDE;- }- &.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active,- &.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected,- span.fancytree-node.fancytree-active:hover,- span.fancytree-node.fancytree-selected:hover {- background-color: #CBE8F6;- border-color: #26A0DA;- }- .fancytree-node.fancytree-selected {- font-style: italic;- }-}--/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody {- tr td {- border: 1px solid #EDEDED;- }- span.fancytree-node,- span.fancytree-node:hover { // undo standard tree css- border: none;- background: none;- }- // Title gets a white background, when hovered. Undo standard node formatting- // span.fancytree-title:hover {- // border: none; //1px solid transparent;- // background: inherit;- // background: transparent;- // background: none;- // filter: none;- // }- tr:hover {- background-color: #E5F3FB;- outline: 1px solid #70C0E7;- }- // tr:hover td {- // outline: 1px solid #D8F0FA;- // }- // tr.fancytree-focused {- // border-color: #3399FF;- // outline: 1px dotted black;- // }- tr.fancytree-focused span.fancytree-title {- outline: 1px dotted black;- }-- tr.fancytree-active:hover,- tr.fancytree-selected:hover {- background-color: #CBE8F6;- outline: 1px solid #26A0DA;- }- tr.fancytree-active { // dimmed, if inside inactive tree- background-color: #F7F7F7;- outline: 1px solid #DEDEDE;- }- tr.fancytree-selected { // dimmed, if inside inactive tree- background-color: #F7F7F7;- }-}--table.fancytree-ext-table.fancytree-treefocus tbody {- tr.fancytree-active {- background-color: #CBE8F6;- outline: 1px solid #26A0DA;- }- tr.fancytree-selected {- background-color: #CBE8F6;- }-}diff --git a/public/libraries/fancytree/skin-win8-n/ui.fancytree.min.css b/public/libraries/fancytree/skin-win8-n/ui.fancytree.min.cssdeleted file mode 100644index e277663a8e..0000000000--- a/public/libraries/fancytree/skin-win8-n/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "win8" skin (highlighting the node span instead of title-only).- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:16px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:16px;padding:0 3px;margin:0 0 0 3px;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}.fancytree-plain span.fancytree-node{border:1px solid transparent}.fancytree-plain span.fancytree-node:hover{background-color:#E5F3FB;border-color:#70C0E7}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused{border-color:#39F}.fancytree-plain span.fancytree-node.fancytree-active,.fancytree-plain span.fancytree-node.fancytree-selected{background-color:#F7F7F7;border-color:#DEDEDE}.fancytree-plain span.fancytree-node.fancytree-active:hover,.fancytree-plain span.fancytree-node.fancytree-selected:hover,.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active,.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected{background-color:#CBE8F6;border-color:#26A0DA}.fancytree-plain .fancytree-node.fancytree-selected{font-style:italic}table.fancytree-ext-table tbody tr td{border:1px solid #EDEDED}table.fancytree-ext-table tbody span.fancytree-node,table.fancytree-ext-table tbody span.fancytree-node:hover{border:none;background:0 0}table.fancytree-ext-table tbody tr:hover{background-color:#E5F3FB;outline:#70C0E7 solid 1px}table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title{outline:#000 dotted 1px}table.fancytree-ext-table tbody tr.fancytree-active:hover,table.fancytree-ext-table tbody tr.fancytree-selected:hover{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#F7F7F7;outline:#DEDEDE solid 1px}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#F7F7F7}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected{background-color:#CBE8F6}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-win8-n/vline-rtl.gif b/public/libraries/fancytree/skin-win8-n/vline-rtl.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-win8-n/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-n/vline.gif b/public/libraries/fancytree/skin-win8-n/vline.gifdeleted file mode 100644index f9b4232928..0000000000Binary files a/public/libraries/fancytree/skin-win8-n/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-xxl/icons-rtl.gif b/public/libraries/fancytree/skin-win8-xxl/icons-rtl.gifdeleted file mode 100644index 54e3f50dd3..0000000000Binary files a/public/libraries/fancytree/skin-win8-xxl/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-xxl/icons.gif b/public/libraries/fancytree/skin-win8-xxl/icons.gifdeleted file mode 100644index f3abe16af9..0000000000Binary files a/public/libraries/fancytree/skin-win8-xxl/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-xxl/loading.gif b/public/libraries/fancytree/skin-win8-xxl/loading.gifdeleted file mode 100644index 8031e4407a..0000000000Binary files a/public/libraries/fancytree/skin-win8-xxl/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.css b/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.cssdeleted file mode 100644index 41a8212a32..0000000000--- a/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.css+++ /dev/null@@ -1,681 +0,0 @@-/*!- * Fancytree "Win8" 32x32 skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 32px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhIAAgAPcAAAAAANfX1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAgACAAAAhmAP8JHEiw4L8AAQwqXMgQIcOHEB1CnGhQIsWLBxNivGhxY0SNHj+GnNhxpMKSJguiTDlwJcuML0+CjNlyJk2YN2vm1LkT506XLIGmFGqS6EijIZF6VLqRKUanHG3ShEqRKkmpCwMCADs=");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 32px;- height: 32px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 32px;- height: 32px;- display: inline-block;- margin-left: 6px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 32px;- height: 32px;- margin-left: 6px;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -128px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -32px -128px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -160px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -32px -160px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -192px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -32px -192px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -128px -160px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -160px -160px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -128px -192px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -160px -192px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -64px -160px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -96px -160px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -64px -192px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -96px -192px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 6px;- background-position: 0px -64px;-}-span.fancytree-checkbox:hover {- background-position: -32px -64px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -96px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -32px -96px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -128px -64px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -160px -64px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -128px -96px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -160px -96px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -64px -64px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -96px -64px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -64px -96px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -96px -96px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -64px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -128px -64px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -64px -64px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 6px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -96px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -128px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -160px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -32px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -32px -32px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -64px -32px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -96px -32px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -128px -32px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -160px -32px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODdhIAAgAOYAAAAAACue/zGf/yqg/yWh/0Ol/zum/02m/1Cn/1Wp/02q/0Sr/1ut/2Gv/1ew/16w/2Sy/2y1/3G3/265/3S6/3y9/4G//4i//37C/4TC/4zF/5HH/47J/5TJ/8zM/5zN/6HP/57R/6TS/6zV/7HX/6zY/7TZ/6Xa/7zd/8Hf/77h/8Ti/7Tj/8zl/9Hm/8Lp/87p/9Tq/9vt/+Lu/83y/97y/+Ty/9P1/+z1//P2/9z4/+76//X7/+T8/3///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkKAEAALAAAAAAgACAAAAf/gECCg4Q4PzIrKCaLKjE8OISRkoQrMTUrJiMimyMoNS4ok6I/NiuaIh0aFhWsFhodHx0oMzyigzY2PDQnGRS+FBMRERAPDhMcKjsyMrY4MiklHxkVvxjWwBAMDxAVHSMuNpM2Mj0l0xkcHyKLKIojHxoUDwoLGTctzISk0B3THSo6dvwYOJBHj10UFCiIkGFEjB2FfpjIkKGDCBIrZPAgSBBHDBPwICgwoKFHPkEtbojQoKGEyRi2gKxImaFAAQosTAwCxaKDRRQyIMUEgqPFhwkJEmDQQAIIDxkmQmj48KIFzKGCTIWAUCCBhhY2fuwwkWpEj3BYB8GAUUFAAAsw/3bYiDHCJwoetdIKwtFDw4AAEUZUMgVrxUC9gn7w+GAgQIMPI2CsEKEOxmHEA0csIOBVRIvJ61oYQgzkBw4UHy5sMDHTlIgXjUjvJefi4Y8Yrl+gcCFb0EbFG2W00FRixWjZBPEShbrJ8g/kHBPzMCX4EWmOl3nYaIGiUw0ZaLFy3JgXiPAbjMCWt1UQL3lCNnaYMmEZR/hJvx/h+B0RxqJKMcxgyHODtIeXfQMSmJhHkrXTQg8D5SDUfgTJZcN+/BViSAyKoGDVOOCBF599uORCEH7OxPDZCjM9hNcO3y1zIV6XTYJDDorVIFkLVskQw48y/lbjKNr56OOPSMo44xSQQ11oWoklCmRdbwXhQKKVGYoSCAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOENjYxLSgoJiYtLYaEkZKRMjItK4wjJigrMTGToEA4NisoIh8dGhoZrKyqIiQ1NqGDNjKLqKqtFhW9GR8jMTK0tiYjqB3JHR/MH6oU0BUaHS3DkzIxIyLKHyAiI+DHHb3RGistkqO4zCLnNjjwPKO3JhkVERQZHTKzg6PG7Ea0iIGDx4+DP+AlWhUhQoUMLqwJuiSiYjCJoS7ZgxAhhAhCpSya4EdLkCUNFiBAWCboX4lvLVyUjERCRASOFar903ZxJqFFN/FVqwRu0zuftWLcYwBhE7aiKAoibSnDQgSmmhAxQtHC4FQgCTVQSMDggwitJs55nRq2AtllnscYnfsqKOxYBsuwLZpLV57YtyL0pm0hdeohCgwOJBBhosYtFCkI8/g6w8XVAwxGoJB3iROkqS1SQEiQAEInzqVWyJjxNcaKqw0iVBPkacU5gpNLHpSnwkRFQpUuDYQ3EyEPRIsIwUPkqNK7g4QQ/uBBvTqPHISoe4IBQ5gh6tGlV5eeDgc2T5WcG4KXI8d1gwhBwavkSZj6d/Dyw4ce6rqt9JXIYgh+1PFHC3U2zACgDALiVxB8X1Wn33g/0DXIbvI8WGCFoQQCACH5BAkKAEAALAAAAAAgACAAAAf/gECCg4Q4NjIxK4orLTE2OISRkpEziC0omCiMMjKTnkA5OC0rJCMiHx8dqqqoIyaPn4OGKyimqasbGrodIiacsYYpKKcixSIjpqcdGcwZHyIxnZOHKCStyCbZ2ae6FhYaH42SobTIro04ODk8PIYytB0aFRkdIDKQsjbC2CjR6z8Af6QblapCBQ0dYswgFCNGNkwybMQSFKOFBgsUKiAj1KLFwxWwJiJaRoHCM0HkUJjoJ23iIJUVKHxzlI4WxIUuB9GKOS/aIZsr1OUcdCgDhQgUNP3U1GLdUEGG5CFdyYlWIx4/ngIRuAxChGOIFF3N+lTghwxen3Ea1VGrIK4V1SBAeFapYwsXbrfikCf3wwgbNiq6iMFOKw4ZGSI8gDAChaEYLgY7fRq4guIIK3nkaDg4ndZaEBhAoNBCBruGDT0/NcUgAdLSggA35FR4oosVFCAkYKBhAyHZ0WTkyOEyhYkIrRl0+EBI8yFOgNUBJPSDx4wWuQ8cgFBB3CB2MypBx8GO7NsfNlogP5CAQoZo49zNiJ5uOFaAhy0zwLzCE3jA9KVTHkA82CBPRivg9Qk76TSYzg7slMdDRW1NhJ+DD0aIFQ+c/FJWQBoOmNd5BIY43SeBAAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEODgyMi2KLYiGhI+QjzY2MTErlyuViJGcQDw4MS0oKCYjIqeoIyMoKzY4nYOGoSalpqgfuCImKDI2sIYtK6S0xLSmuB0dHyIjvZw4NsLEoygpKaOqyMoiMTKQPDmK1CrdhjznnzbBHx0aGh8jroQ5OMGjl4jnP/s/4KEiH9x1AOFsECJMLSbBEhTqw4YMGnYRqoTQ0UIZMUB8yJBBlSB/wRjNWPhImAaIHXp9CqVIHslBwU5m6BDDFSVFMc69jCUjYIUMKFpAC9VN504g0HwCbUWpmwweP456whGQAoURJiZpehr16A8cIDRYxarVqVRBX8OOzdp009lPAcslXDVhCFG+rjuhaagQgcKuT3ZnGN1pQ8bevqzOFUaUg4dUUhEgULBQlMeMGb1w5JBKQkRkChlqCjI0yRzeTpYyUIAAQVkhaK5wDO4kjC+ECCFEEDpnqLdsqF37QUMxogKFBw8iVHDhbZBw3/r2jT4UYwSI1QwgVNBQcDePHTsa61NcNQIDBgkSKGfFad9vdP122Nh7Pv35n5lg7YMvPMYEBgcckN1MLcRA0n7RrXRcen0t091L/AgHEDMruGCRVBF+YsouMQh2GiGBAAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEOTk2NjIxi4g4OISQkZCOM4ouLS0yMoiSnUA8OYotKyilJqeoKCstjp6DOTiKpCiopyO3JqqcnrCLoysrKsDAtCQjIsi5m52OMZjDq5ijpbfIIyYxMpE8PJrSmTM43OPNLccfH9c2j4Pcoi2MNtw/9D+giiYj6CIj64SIi7K1cgVE0bEOH1QRmjFjkSYcOQgCSURCRIcOuQS5UxRjoERBwC5+ALFp4yKIHwc5+yAyxgwesTTJ45FSEA4bIDpo6LAiBixNJX/UBALLogYNq2AimmGD3tAfO/Rl0JBLKaKmQmtCHQEiQ4ZcsBqxexr1g9droMQO1YhDagYSJtG4XcXhtOahDxoqZEDRQm6juiljdcigd5U9mOIAfyRVgUIFDS7piZuXNSWtxhk2xLChcRxliTJaaMjg+IMIQp551JM4irDjW6jH1eMRwwVT1fZu0tJgIUIEC5C1DaKHOzcwF5sdxYphQkTjCBQ0fFgGCXe3FREgQD96lLBvCBAer+o0uwWKBgkYQHBMgYKE7OAj7Mzkyh4KERASHDiAIEF6BupF0IEIyElk3wgSQMCAf/+B55gIJFAnkSOjHIRQOibA49FH9iiCQkXWKCNPZZAEAgAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEPDw4NjKKMjY4joSQkZA5OTaJizONOJKcQIaIMaEtK6SlpDAxj52Chpaio6QosrItMY2rhjOKobwxLb8rKSgmxKS3kjw5u73Mo7LEKCuMka2Xio2G2Z8yMbIjIygpqqw8NrqL2Dw/6z+Giiso3yYox4KO5paUq4K6JiMiIla0IHTPkg1D+4BYGgYwGrmC4xIC+QVwhIl0jjLmkDgoFEARIzA62qGOoz0bJER8EFHrkyN1P0wCyYHDhMoPLV3ClPljh78OH6K1y5ZjHU8e8Tp0EKqNh0xWOJIuXZFt6FNPNUcojVbVkFGTlVRq6CBQXVOnJhGB6DC2FrtDiLxkyBylIYOGD4zWuZPxSya8ukBlbALCTUOFCBRWxEjI7cOGDBlAEuJ7mAEEEysSumjBFjKxyS0oQDhwIEIFcOlctkDBtkKFu7ZAH05wgEEEECNiMMqYaFhd1x1ACI4ET3SCBJYrZFD6ga3hChQotF0sKcaKDBQYaLdNQTlk19G7B9e9ajPbCBDSq4cQAXGFD7nl7tM14kMFCejVI6Zg12K9fY744g8IH6xEggkuCDYYR7nI4E1F0TBSkiSBAAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEPDw4ODaKNoiGhI+Qj4aIi4qIOJGZQD8/lDYyMjGioy0tojk8moM/h4mgo6KlpS4xiKqcnjWgu68uLSvALS62kayelZWhpSsqKy2MkJOX04bVk5+/KCjOODmFPDvT3Tmc5aw8iqXa28SC1Zc8P6qCiisoJiii3zyoOJzzQBLZM2GilDtr8eQBHBSKID5GCBMuHPTJIQqI5spNFJQDBwoSI0zIsFEt40Ygh+6NGBFDBj94/zayWmFChIhSikSNjDlxZk0RzkiIoEBBwwd/J1nds+lsxAcIDCpoQCqTB4oRTFvUTHCAAQUZmDZ2rPnhZoyrXBlEiGHjZCKsZchpxVgRgUECBiNQnIzR4kOHDyNGymhBAcJdECNO/vKLGBoQDRkSJIhQYUUMgJ9E+O2Aj5BfuxAobAMoCkSH06MH8S3MAEKFDCZWMDLX8ReIDxqMihhJyEaMDIUfRKAQcuS0T/Y65NYgYoRjQvYqSIAAYXjuDyCy+82dIUMHEC0z8dVQIQJ1ylI1bODePYMGxLw1xYBhmmiE+0QpVHjNXKQMzDIIBVkF+e3X3V8PhQUQIqJos1Jz27TUzkKcYEMTCSTE9gwO8WQSCAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEPIaGOIk4h4SNjo2HipKGj5VAPz+IkjY2MzKfMjaLPJaDmJmKopyeoJyUlpiHOZI4nDagMjExn4mVp4Y5O7S1rLm6Mb2QmTzLh6exiLfHuq+CODvOmdrPy4m5Li0tyKSDJijizJil1jjhKy2fhCIiKCs4OerriTEtKyu6gmS0iNAAQoR/6xrdWlGvhagYKyAkSABhhYuEhDgxTLFCFIoRDA4wiBDDBsZBPNqlQIEiFAkRCQ40oCADx0lBhvqZ+ySiA4MEFDLYIHcyEz9zuj74BKph0c1LPI6aSLq0QlOiGDPpnBqj50+rQ59qRWHChIsYJkZAYCAhQw2bN8ZnkR0xYhfZtREqhHpaCwWJEVNztaAQwaC5p7lGiCCBQpTAChIMLn7KT7E5UYKUQoBgFV7CW2nnoUhBSHFhChbeJUw8T4TqQbk0VIgQIcOGeqIO8ZhVWcSHD4AxD7rVIQPhChl2ikplo5/v35fhEuqnwQIFCsg7fBBBV7HvDuC5x3uU64PsCtg1aND+G7x74Cb2Wkr8IUOF+xYy6FevXflnGx91oIF+BPK3HUfCJTRLLgz9VdY7odwj1g+3hFMWS+Lk9kMlgQAAIfkECQoAQAAsAAAAACAAIAAAB/+AQIKDhDw/hz88ioqHhI6PjoyHi5SQlkAymTI4i4k8OTihooaXgy2nLaGMiqCiODuKpS4rFRQVGjaSrKI2vb2xkCsmEQ0RFZuGnq04vTO9OTmPMzEZFAkHDBEtuYiTiswzmb88hDEtFBAHBxAULTLJiLu9mrnkgx8dDAnZJimlgp8yxYhhAwehDRr0RaCwwsU/IIoExnAmSMY5CPtEjHhIKFQMFwMjtpDQgAGEESg4DvLookWMHDxQDHtgjKBKgDnMtXBR0MQICDQzbLoJkcfHUwVHfIAAoUIHTkQTyYixwp0NEUshZHj6IyqPqStWZMIaQesHqDcTmUOhIoaMESLYIkTYilal2hYoUGSSScEYLoM3P7VIkVfGjBUo+t4aehMUYrYybEzNUKsCihVEJee9HGqahsomUt6cKpNzNCAgPlCgoKGD24fMEJswcYoQ3FoZNLh8qHm2iYGEbMTo8Hnrh6qqKPHoPWJE6IIda4DokMFC68u9XIWa6rO56UfmiFuwruGDRt8+RYAQISJ0ZEtTU2eYb3x9c/YfzItAkQL6pUwmiECcBhps0MGB+bGHHWClMCNTagdGmB8IziF32kM87CBZC4/lVVVkwNj1AzPmhBWWSwWRAkkgACH5BAkKAEAALAAAAAAgACAAAAf/gECCg4QyMSYjIyQ4PI0/P4SRkpEtKyIiHyM2jo2TnkA2Mh8aFBEJCQ8UMYyPjTyPn4MxLR0ZEAwHBwwTq62unZ+zGRUMDKfFFRoyOL6uzJCTLSgVpgnFERQaH5uPP405OKySNjEaFbcQEZkxy6zd3uHxsIMyLRYSD6kVIyg2z76P4sV7RUhEiAjpKqBYEUsQPBw2/OEg9KEDBAgUMrSI0RBIQIgSBRkalm6EiY6EwIWSMeOVDBgZKGA0kQLlIB45ZOhs+WMFilLJZNiwKaiRTp3hUJgAqsEfUSCNZhwNh4hCtg/MnnqTGiOGPxMirG4QkZXoVkNecYAVSxaaTW860rtGrJoNRNm3POJ6teFzmIYOTokanZVW2rAMHZY9xdm1RQt/M2KMyqBhRYunER1vzMEjVMUMGRY+1bnCcgzOgkaIAN0BhNCO4SqVZkfIhAkNGTZ8oN0wc+kVOgl57qCBwwcRLZb9chWqtIrSLcIRgjjiA4e/H1akZbQjHmkUCzcykmQIU4cOH0CYBF9aqW3bCwOPk6G6IvpLJt+XyG/CsvxJoSiFyQcfhHAJfraJN1FDEFVS33EHJgIeO+OhhFMoLshmWlrAvPUDRIZollw7BE0SCAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEMjIoJiIfHyImKDEyPDyElJWDLS0mIx2cHSIjKy04OJaWNjIiHRUUEBAMr7AQFCMoPD+lhTEfHRGurwnABwcJECK1t7gyLR0Zva0QERWrEq4JDSgukj/IlS0rGRWtEdEVGxsaGRS9ESuR29yDpx8aEhEUFY0yNjajpzErK3Bo+2ELnowYGyyMy6DBEY4ckiThsOEiRo5tBbcRIjFiVYUMoXANshUxIiFFqxi2kCFSUMmSgk510HDPUUtKEXfsEMjDBsJ0FVCsuElI0k4cO2x5A5ehgwxSRF3yOCrwxwoU4DR84BdV6k5+khBlaCpCYFcgBCfyE2jCxNgPI8zMdk27b21bDRpAxJ0094dafjsQ4dUrN+q2v6O84fVkI8dZSfsMjYqxTEMHEFy7Qj71dIc8Th9axDg76qAhyDJA7OoQsutkSJH4miDB6ZO+m6Vj6N5HCAWKXYwg4cahezfUmDVGKIJrYuXLiBN1Y3IRm9BETYs+ieZZcuJBTKKrUzKkScQnWqHAewMIcPtxSjZqIDL/qa1Q9r7v6x4lct9VTSOMYF9+KawAyUPDudACIm0N6Fsop/F1k0T+KBjeUzydhZF3xUEClkaWBAIAIfkECQoAQAAsAAAAACAAIAAAB/+AQIKDhDYyKygjIiIjJigyNjw8hJSVgzExKCYiHx8gjS0xODiWljg2JCIaGRQUEa8QrxQVHyKQpYQyMSMfGRWwEMEPD7EZHaG4QLofHRWtsxUZ0hUSEQwMCQwUGSsupTEtHazQGhod5xu+ENgJEBQmK5U4MpwV0RqOkKOjuiMg1gcSRKjQQkYhGR802DOHYsWoHxB5nErk6sABdwUJmTAhzRyyZEBSmLA2MOMgRdI6fIhhEGSLFNQqaGApyBCzDBpQpABJqUVBGZIk2UynYUULnrlsjOIB8Qe4Dhw6gJBBCqmgoE0htljRQUMtpVavZv3BFNE5ESZwTArblGlTsx3N0KoNC6StJIiImI1AkeMH3YhBy6LQm9YvW7I5lvIA10nuWqsR90mK4YKTCBJz2UqU/OOUokWY6Erap7azDROffdLdpxQHREEpUCxyZMMGT6G1WxPauqiRjBm3eeTWPWgi6r0rfgcOzE+Gc0iSCI2KPaIRCpZql29+DimS4YOaNqJoGIqlLkzoned4TOkUoo2OyLdw4QJTfUzK2cuz4WLreJ0rBDhffdDpZ4lEmASoggoBGnVfDLVFh9RotXHXXWB//ZBYhc7NoJRb31ESCAA7");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -224px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 32px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 32px;- padding: 0 3px 0 3px;- margin: 0px 0 0 6px;- border: 1px solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -64px -224px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -32px -224px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 64px;- position: absolute;- background-position: 0px -256px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 128px;- background-position: 0px -288px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -128px -256px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -64px -256px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -160px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -32px -160px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*!- * Fancytree "Win8" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Node titles- */-.fancytree-plain span.fancytree-title {- border: 1px solid transparent;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-focused span.fancytree-title {- border-color: #3399ff;-}-.fancytree-plain span.fancytree-active span.fancytree-title,-.fancytree-plain span.fancytree-selected span.fancytree-title {- background-color: #f7f7f7;- border-color: #dedede;-}-.fancytree-plain span.fancytree-node span.fancytree-selected span.fancytree-title {- font-style: italic;-}-.fancytree-plain span.fancytree-node:hover span.fancytree-title {- background-color: #eff9fe;- border-color: #70c0e7;-}-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-active span.fancytree-title,-.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-selected span.fancytree-title {- background-color: #cbe8f6;- border-color: #26a0da;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table tbody tr td {- border: 1px solid #EDEDED;-}-table.fancytree-ext-table tbody span.fancytree-node,-table.fancytree-ext-table tbody span.fancytree-node:hover {- border: none;- background: none;-}-table.fancytree-ext-table tbody tr:hover {- background-color: #E5F3FB;- outline: 1px solid #70C0E7;-}-table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title {- outline: 1px dotted black;-}-table.fancytree-ext-table tbody tr.fancytree-active:hover,-table.fancytree-ext-table tbody tr.fancytree-selected:hover {- background-color: #CBE8F6;- outline: 1px solid #26A0DA;-}-table.fancytree-ext-table tbody tr.fancytree-active {- background-color: #F7F7F7;- outline: 1px solid #DEDEDE;-}-table.fancytree-ext-table tbody tr.fancytree-selected {- background-color: #F7F7F7;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active {- background-color: #CBE8F6;- outline: 1px solid #26A0DA;-}-table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected {- background-color: #CBE8F6;-}-ul.fancytree-container {- font-size: 20pt;- padding: 6px;-}diff --git a/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.less b/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.lessdeleted file mode 100644index 7819d1b623..0000000000--- a/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.less+++ /dev/null@@ -1,36 +0,0 @@-/*!- * Fancytree "Win8" 32x32 skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";--// Import standard win8-@import "../skin-win8/ui.fancytree.less";---// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)--@fancy-level-indent: 32px;-@fancy-line-height: 32px; // height of a nodes selection bar including borders-@fancy-node-v-spacing: 1px; // gap between two node borders-@fancy-icon-width: 32px;-@fancy-icon-height: 32px;-@fancy-icon-spacing: 6px; // margin between icon/icon or icon/title-@fancy-icon-ofs-top: 0px; // extra vertical offset for expander, checkbox and icon-@fancy-title-ofs-top: 0px; // extra vertical offset for title-@fancy-node-border-width: 1px;-@fancy-node-border-radius: 0px;-@fancy-node-outline-width: 1px;--ul.fancytree-container {-// font-family: tahoma, arial, helvetica;- font-size: 20pt;- padding: 6px;-}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.min.css b/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.min.cssdeleted file mode 100644index b21a7fbcdb..0000000000--- a/public/libraries/fancytree/skin-win8-xxl/ui.fancytree.min.css+++ /dev/null@@ -1,11 +0,0 @@-/*!- * Fancytree "Win8" 32x32 skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;white-space:nowrap;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 32px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhIAAgAPcAAAAAANfX1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAgACAAAAhmAP8JHEiw4L8AAQwqXMgQIcOHEB1CnGhQIsWLBxNivGhxY0SNHj+GnNhxpMKSJguiTDlwJcuML0+CjNlyJk2YN2vm1LkT506XLIGmFGqS6EijIZF6VLqRKUanHG3ShEqRKkmpCwMCADs=);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:32px;height:32px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}span.fancytree-custom-icon{width:32px;height:32px;display:inline-block;margin-left:6px;background-position:0 0}img.fancytree-icon{width:32px;height:32px;margin-left:6px;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -128px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-32px -128px}.fancytree-exp-c span.fancytree-expander{background-position:0 -160px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-32px -160px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -192px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-32px -192px}.fancytree-exp-cd span.fancytree-expander{background-position:-128px -160px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-160px -160px}.fancytree-exp-cdl span.fancytree-expander{background-position:-128px -192px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-160px -192px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-64px -160px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-96px -160px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-64px -192px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-96px -192px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:6px;background-position:0 -64px}span.fancytree-checkbox:hover{background-position:-32px -64px}span.fancytree-checkbox.fancytree-radio{background-position:0 -96px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-32px -96px}.fancytree-partsel span.fancytree-checkbox{background-position:-128px -64px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-160px -64px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-128px -96px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-160px -96px}.fancytree-selected span.fancytree-checkbox{background-position:-64px -64px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-96px -64px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-64px -96px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-96px -96px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -64px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-128px -64px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-64px -64px}span.fancytree-icon{margin-left:6px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-64px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-96px 0}.fancytree-ico-e span.fancytree-icon{background-position:-128px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-160px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -32px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-32px -32px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-64px -32px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-96px -32px}.fancytree-ico-ef span.fancytree-icon{background-position:-128px -32px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-160px -32px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODdhIAAgAOYAAAAAACue/zGf/yqg/yWh/0Ol/zum/02m/1Cn/1Wp/02q/0Sr/1ut/2Gv/1ew/16w/2Sy/2y1/3G3/265/3S6/3y9/4G//4i//37C/4TC/4zF/5HH/47J/5TJ/8zM/5zN/6HP/57R/6TS/6zV/7HX/6zY/7TZ/6Xa/7zd/8Hf/77h/8Ti/7Tj/8zl/9Hm/8Lp/87p/9Tq/9vt/+Lu/83y/97y/+Ty/9P1/+z1//P2/9z4/+76//X7/+T8/3///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkKAEAALAAAAAAgACAAAAf/gECCg4Q4PzIrKCaLKjE8OISRkoQrMTUrJiMimyMoNS4ok6I/NiuaIh0aFhWsFhodHx0oMzyigzY2PDQnGRS+FBMRERAPDhMcKjsyMrY4MiklHxkVvxjWwBAMDxAVHSMuNpM2Mj0l0xkcHyKLKIojHxoUDwoLGTctzISk0B3THSo6dvwYOJBHj10UFCiIkGFEjB2FfpjIkKGDCBIrZPAgSBBHDBPwICgwoKFHPkEtbojQoKGEyRi2gKxImaFAAQosTAwCxaKDRRQyIMUEgqPFhwkJEmDQQAIIDxkmQmj48KIFzKGCTIWAUCCBhhY2fuwwkWpEj3BYB8GAUUFAAAsw/3bYiDHCJwoetdIKwtFDw4AAEUZUMgVrxUC9gn7w+GAgQIMPI2CsEKEOxmHEA0csIOBVRIvJ61oYQgzkBw4UHy5sMDHTlIgXjUjvJefi4Y8Yrl+gcCFb0EbFG2W00FRixWjZBPEShbrJ8g/kHBPzMCX4EWmOl3nYaIGiUw0ZaLFy3JgXiPAbjMCWt1UQL3lCNnaYMmEZR/hJvx/h+B0RxqJKMcxgyHODtIeXfQMSmJhHkrXTQg8D5SDUfgTJZcN+/BViSAyKoGDVOOCBF599uORCEH7OxPDZCjM9hNcO3y1zIV6XTYJDDorVIFkLVskQw48y/lbjKNr56OOPSMo44xSQQ11oWoklCmRdbwXhQKKVGYoSCAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOENjYxLSgoJiYtLYaEkZKRMjItK4wjJigrMTGToEA4NisoIh8dGhoZrKyqIiQ1NqGDNjKLqKqtFhW9GR8jMTK0tiYjqB3JHR/MH6oU0BUaHS3DkzIxIyLKHyAiI+DHHb3RGistkqO4zCLnNjjwPKO3JhkVERQZHTKzg6PG7Ea0iIGDx4+DP+AlWhUhQoUMLqwJuiSiYjCJoS7ZgxAhhAhCpSya4EdLkCUNFiBAWCboX4lvLVyUjERCRASOFar903ZxJqFFN/FVqwRu0zuftWLcYwBhE7aiKAoibSnDQgSmmhAxQtHC4FQgCTVQSMDggwitJs55nRq2AtllnscYnfsqKOxYBsuwLZpLV57YtyL0pm0hdeohCgwOJBBhosYtFCkI8/g6w8XVAwxGoJB3iROkqS1SQEiQAEInzqVWyJjxNcaKqw0iVBPkacU5gpNLHpSnwkRFQpUuDYQ3EyEPRIsIwUPkqNK7g4QQ/uBBvTqPHISoe4IBQ5gh6tGlV5eeDgc2T5WcG4KXI8d1gwhBwavkSZj6d/Dyw4ce6rqt9JXIYgh+1PFHC3U2zACgDALiVxB8X1Wn33g/0DXIbvI8WGCFoQQCACH5BAkKAEAALAAAAAAgACAAAAf/gECCg4Q4NjIxK4orLTE2OISRkpEziC0omCiMMjKTnkA5OC0rJCMiHx8dqqqoIyaPn4OGKyimqasbGrodIiacsYYpKKcixSIjpqcdGcwZHyIxnZOHKCStyCbZ2ae6FhYaH42SobTIro04ODk8PIYytB0aFRkdIDKQsjbC2CjR6z8Af6QblapCBQ0dYswgFCNGNkwybMQSFKOFBgsUKiAj1KLFwxWwJiJaRoHCM0HkUJjoJ23iIJUVKHxzlI4WxIUuB9GKOS/aIZsr1OUcdCgDhQgUNP3U1GLdUEGG5CFdyYlWIx4/ngIRuAxChGOIFF3N+lTghwxen3Ea1VGrIK4V1SBAeFapYwsXbrfikCf3wwgbNiq6iMFOKw4ZGSI8gDAChaEYLgY7fRq4guIIK3nkaDg4ndZaEBhAoNBCBruGDT0/NcUgAdLSggA35FR4oosVFCAkYKBhAyHZ0WTkyOEyhYkIrRl0+EBI8yFOgNUBJPSDx4wWuQ8cgFBB3CB2MypBx8GO7NsfNlogP5CAQoZo49zNiJ5uOFaAhy0zwLzCE3jA9KVTHkA82CBPRivg9Qk76TSYzg7slMdDRW1NhJ+DD0aIFQ+c/FJWQBoOmNd5BIY43SeBAAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEODgyMi2KLYiGhI+QjzY2MTErlyuViJGcQDw4MS0oKCYjIqeoIyMoKzY4nYOGoSalpqgfuCImKDI2sIYtK6S0xLSmuB0dHyIjvZw4NsLEoygpKaOqyMoiMTKQPDmK1CrdhjznnzbBHx0aGh8jroQ5OMGjl4jnP/s/4KEiH9x1AOFsECJMLSbBEhTqw4YMGnYRqoTQ0UIZMUB8yJBBlSB/wRjNWPhImAaIHXp9CqVIHslBwU5m6BDDFSVFMc69jCUjYIUMKFpAC9VN504g0HwCbUWpmwweP456whGQAoURJiZpehr16A8cIDRYxarVqVRBX8OOzdp009lPAcslXDVhCFG+rjuhaagQgcKuT3ZnGN1pQ8bevqzOFUaUg4dUUhEgULBQlMeMGb1w5JBKQkRkChlqCjI0yRzeTpYyUIAAQVkhaK5wDO4kjC+ECCFEEDpnqLdsqF37QUMxogKFBw8iVHDhbZBw3/r2jT4UYwSI1QwgVNBQcDePHTsa61NcNQIDBgkSKGfFad9vdP122Nh7Pv35n5lg7YMvPMYEBgcckN1MLcRA0n7RrXRcen0t091L/AgHEDMruGCRVBF+YsouMQh2GiGBAAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEOTk2NjIxi4g4OISQkZCOM4ouLS0yMoiSnUA8OYotKyilJqeoKCstjp6DOTiKpCiopyO3JqqcnrCLoysrKsDAtCQjIsi5m52OMZjDq5ijpbfIIyYxMpE8PJrSmTM43OPNLccfH9c2j4Pcoi2MNtw/9D+giiYj6CIj64SIi7K1cgVE0bEOH1QRmjFjkSYcOQgCSURCRIcOuQS5UxRjoERBwC5+ALFp4yKIHwc5+yAyxgwesTTJ45FSEA4bIDpo6LAiBixNJX/UBALLogYNq2AimmGD3tAfO/Rl0JBLKaKmQmtCHQEiQ4ZcsBqxexr1g9droMQO1YhDagYSJtG4XcXhtOahDxoqZEDRQm6juiljdcigd5U9mOIAfyRVgUIFDS7piZuXNSWtxhk2xLChcRxliTJaaMjg+IMIQp551JM4irDjW6jH1eMRwwVT1fZu0tJgIUIEC5C1DaKHOzcwF5sdxYphQkTjCBQ0fFgGCXe3FREgQD96lLBvCBAer+o0uwWKBgkYQHBMgYKE7OAj7Mzkyh4KERASHDiAIEF6BupF0IEIyElk3wgSQMCAf/+B55gIJFAnkSOjHIRQOibA49FH9iiCQkXWKCNPZZAEAgAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEPDw4NjKKMjY4joSQkZA5OTaJizONOJKcQIaIMaEtK6SlpDAxj52Chpaio6QosrItMY2rhjOKobwxLb8rKSgmxKS3kjw5u73Mo7LEKCuMka2Xio2G2Z8yMbIjIygpqqw8NrqL2Dw/6z+Giiso3yYox4KO5paUq4K6JiMiIla0IHTPkg1D+4BYGgYwGrmC4xIC+QVwhIl0jjLmkDgoFEARIzA62qGOoz0bJER8EFHrkyN1P0wCyYHDhMoPLV3ClPljh78OH6K1y5ZjHU8e8Tp0EKqNh0xWOJIuXZFt6FNPNUcojVbVkFGTlVRq6CBQXVOnJhGB6DC2FrtDiLxkyBylIYOGD4zWuZPxSya8ukBlbALCTUOFCBRWxEjI7cOGDBlAEuJ7mAEEEysSumjBFjKxyS0oQDhwIEIFcOlctkDBtkKFu7ZAH05wgEEEECNiMMqYaFhd1x1ACI4ET3SCBJYrZFD6ga3hChQotF0sKcaKDBQYaLdNQTlk19G7B9e9ajPbCBDSq4cQAXGFD7nl7tM14kMFCejVI6Zg12K9fY744g8IH6xEggkuCDYYR7nI4E1F0TBSkiSBAAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEPDw4ODaKNoiGhI+Qj4aIi4qIOJGZQD8/lDYyMjGioy0tojk8moM/h4mgo6KlpS4xiKqcnjWgu68uLSvALS62kayelZWhpSsqKy2MkJOX04bVk5+/KCjOODmFPDvT3Tmc5aw8iqXa28SC1Zc8P6qCiisoJiii3zyoOJzzQBLZM2GilDtr8eQBHBSKID5GCBMuHPTJIQqI5spNFJQDBwoSI0zIsFEt40Ygh+6NGBFDBj94/zayWmFChIhSikSNjDlxZk0RzkiIoEBBwwd/J1nds+lsxAcIDCpoQCqTB4oRTFvUTHCAAQUZmDZ2rPnhZoyrXBlEiGHjZCKsZchpxVgRgUECBiNQnIzR4kOHDyNGymhBAcJdECNO/vKLGBoQDRkSJIhQYUUMgJ9E+O2Aj5BfuxAobAMoCkSH06MH8S3MAEKFDCZWMDLX8ReIDxqMihhJyEaMDIUfRKAQcuS0T/Y65NYgYoRjQvYqSIAAYXjuDyCy+82dIUMHEC0z8dVQIQJ1ylI1bODePYMGxLw1xYBhmmiE+0QpVHjNXKQMzDIIBVkF+e3X3V8PhQUQIqJos1Jz27TUzkKcYEMTCSTE9gwO8WQSCAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEPIaGOIk4h4SNjo2HipKGj5VAPz+IkjY2MzKfMjaLPJaDmJmKopyeoJyUlpiHOZI4nDagMjExn4mVp4Y5O7S1rLm6Mb2QmTzLh6exiLfHuq+CODvOmdrPy4m5Li0tyKSDJijizJil1jjhKy2fhCIiKCs4OerriTEtKyu6gmS0iNAAQoR/6xrdWlGvhagYKyAkSABhhYuEhDgxTLFCFIoRDA4wiBDDBsZBPNqlQIEiFAkRCQ40oCADx0lBhvqZ+ySiA4MEFDLYIHcyEz9zuj74BKph0c1LPI6aSLq0QlOiGDPpnBqj50+rQ59qRWHChIsYJkZAYCAhQw2bN8ZnkR0xYhfZtREqhHpaCwWJEVNztaAQwaC5p7lGiCCBQpTAChIMLn7KT7E5UYKUQoBgFV7CW2nnoUhBSHFhChbeJUw8T4TqQbk0VIgQIcOGeqIO8ZhVWcSHD4AxD7rVIQPhChl2ikplo5/v35fhEuqnwQIFCsg7fBBBV7HvDuC5x3uU64PsCtg1aND+G7x74Cb2Wkr8IUOF+xYy6FevXflnGx91oIF+BPK3HUfCJTRLLgz9VdY7odwj1g+3hFMWS+Lk9kMlgQAAIfkECQoAQAAsAAAAACAAIAAAB/+AQIKDhDw/hz88ioqHhI6PjoyHi5SQlkAymTI4i4k8OTihooaXgy2nLaGMiqCiODuKpS4rFRQVGjaSrKI2vb2xkCsmEQ0RFZuGnq04vTO9OTmPMzEZFAkHDBEtuYiTiswzmb88hDEtFBAHBxAULTLJiLu9mrnkgx8dDAnZJimlgp8yxYhhAwehDRr0RaCwwsU/IIoExnAmSMY5CPtEjHhIKFQMFwMjtpDQgAGEESg4DvLookWMHDxQDHtgjKBKgDnMtXBR0MQICDQzbLoJkcfHUwVHfIAAoUIHTkQTyYixwp0NEUshZHj6IyqPqStWZMIaQesHqDcTmUOhIoaMESLYIkTYilal2hYoUGSSScEYLoM3P7VIkVfGjBUo+t4aehMUYrYybEzNUKsCihVEJee9HGqahsomUt6cKpNzNCAgPlCgoKGD24fMEJswcYoQ3FoZNLh8qHm2iYGEbMTo8Hnrh6qqKPHoPWJE6IIda4DokMFC68u9XIWa6rO56UfmiFuwruGDRt8+RYAQISJ0ZEtTU2eYb3x9c/YfzItAkQL6pUwmiECcBhps0MGB+bGHHWClMCNTagdGmB8IziF32kM87CBZC4/lVVVkwNj1AzPmhBWWSwWRAkkgACH5BAkKAEAALAAAAAAgACAAAAf/gECCg4QyMSYjIyQ4PI0/P4SRkpEtKyIiHyM2jo2TnkA2Mh8aFBEJCQ8UMYyPjTyPn4MxLR0ZEAwHBwwTq62unZ+zGRUMDKfFFRoyOL6uzJCTLSgVpgnFERQaH5uPP405OKySNjEaFbcQEZkxy6zd3uHxsIMyLRYSD6kVIyg2z76P4sV7RUhEiAjpKqBYEUsQPBw2/OEg9KEDBAgUMrSI0RBIQIgSBRkalm6EiY6EwIWSMeOVDBgZKGA0kQLlIB45ZOhs+WMFilLJZNiwKaiRTp3hUJgAqsEfUSCNZhwNh4hCtg/MnnqTGiOGPxMirG4QkZXoVkNecYAVSxaaTW860rtGrJoNRNm3POJ6teFzmIYOTokanZVW2rAMHZY9xdm1RQt/M2KMyqBhRYunER1vzMEjVMUMGRY+1bnCcgzOgkaIAN0BhNCO4SqVZkfIhAkNGTZ8oN0wc+kVOgl57qCBwwcRLZb9chWqtIrSLcIRgjjiA4e/H1akZbQjHmkUCzcykmQIU4cOH0CYBF9aqW3bCwOPk6G6IvpLJt+XyG/CsvxJoSiFyQcfhHAJfraJN1FDEFVS33EHJgIeO+OhhFMoLshmWlrAvPUDRIZollw7BE0SCAAh+QQJCgBAACwAAAAAIAAgAAAH/4BAgoOEMjIoJiIfHyImKDEyPDyElJWDLS0mIx2cHSIjKy04OJaWNjIiHRUUEBAMr7AQFCMoPD+lhTEfHRGurwnABwcJECK1t7gyLR0Zva0QERWrEq4JDSgukj/IlS0rGRWtEdEVGxsaGRS9ESuR29yDpx8aEhEUFY0yNjajpzErK3Bo+2ELnowYGyyMy6DBEY4ckiThsOEiRo5tBbcRIjFiVYUMoXANshUxIiFFqxi2kCFSUMmSgk510HDPUUtKEXfsEMjDBsJ0FVCsuElI0k4cO2x5A5ehgwxSRF3yOCrwxwoU4DR84BdV6k5+khBlaCpCYFcgBCfyE2jCxNgPI8zMdk27b21bDRpAxJ0094dafjsQ4dUrN+q2v6O84fVkI8dZSfsMjYqxTEMHEFy7Qj71dIc8Th9axDg76qAhyDJA7OoQsutkSJH4miDB6ZO+m6Vj6N5HCAWKXYwg4cahezfUmDVGKIJrYuXLiBN1Y3IRm9BETYs+ieZZcuJBTKKrUzKkScQnWqHAewMIcPtxSjZqIDL/qa1Q9r7v6x4lct9VTSOMYF9+KawAyUPDudACIm0N6Fsop/F1k0T+KBjeUzydhZF3xUEClkaWBAIAIfkECQoAQAAsAAAAACAAIAAAB/+AQIKDhDYyKygjIiIjJigyNjw8hJSVgzExKCYiHx8gjS0xODiWljg2JCIaGRQUEa8QrxQVHyKQpYQyMSMfGRWwEMEPD7EZHaG4QLofHRWtsxUZ0hUSEQwMCQwUGSsupTEtHazQGhod5xu+ENgJEBQmK5U4MpwV0RqOkKOjuiMg1gcSRKjQQkYhGR802DOHYsWoHxB5nErk6sABdwUJmTAhzRyyZEBSmLA2MOMgRdI6fIhhEGSLFNQqaGApyBCzDBpQpABJqUVBGZIk2UynYUULnrlsjOIB8Qe4Dhw6gJBBCqmgoE0htljRQUMtpVavZv3BFNE5ESZwTArblGlTsx3N0KoNC6StJIiImI1AkeMH3YhBy6LQm9YvW7I5lvIA10nuWqsR90mK4YKTCBJz2UqU/OOUokWY6Erap7azDROffdLdpxQHREEpUCxyZMMGT6G1WxPauqiRjBm3eeTWPWgi6r0rfgcOzE+Gc0iSCI2KPaIRCpZql29+DimS4YOaNqJoGIqlLkzoned4TOkUoo2OyLdw4QJTfUzK2cuz4WLreJ0rBDhffdDpZ4lEmASoggoBGnVfDLVFh9RotXHXXWB//ZBYhc7NoJRb31ESCAA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -224px}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:32px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:32px;padding:0 3px;margin:0 0 0 6px;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-64px -224px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-32px -224px}#fancytree-drop-marker{width:64px;position:absolute;background-position:0 -256px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:128px;background-position:0 -288px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-128px -256px}#fancytree-drop-marker.fancytree-drop-move{background-position:-64px -256px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -160px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-32px -160px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}/*!- * Fancytree "Win8" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.fancytree-plain span.fancytree-title{border:1px solid transparent}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-focused span.fancytree-title{border-color:#39f}.fancytree-plain span.fancytree-active span.fancytree-title,.fancytree-plain span.fancytree-selected span.fancytree-title{background-color:#f7f7f7;border-color:#dedede}.fancytree-plain span.fancytree-node span.fancytree-selected span.fancytree-title{font-style:italic}.fancytree-plain span.fancytree-node:hover span.fancytree-title{background-color:#eff9fe;border-color:#70c0e7}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-active span.fancytree-title,.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-selected span.fancytree-title{background-color:#cbe8f6;border-color:#26a0da}table.fancytree-ext-table tbody tr td{border:1px solid #EDEDED}table.fancytree-ext-table tbody span.fancytree-node,table.fancytree-ext-table tbody span.fancytree-node:hover{border:none;background:0 0}table.fancytree-ext-table tbody tr:hover{background-color:#E5F3FB;outline:#70C0E7 solid 1px}table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title{outline:#000 dotted 1px}table.fancytree-ext-table tbody tr.fancytree-active:hover,table.fancytree-ext-table tbody tr.fancytree-selected:hover{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#F7F7F7;outline:#DEDEDE solid 1px}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#F7F7F7}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected{background-color:#CBE8F6}ul.fancytree-container{font-size:20pt;padding:6px}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-win8-xxl/vline-rtl.gif b/public/libraries/fancytree/skin-win8-xxl/vline-rtl.gifdeleted file mode 100644index 8b5a2791cf..0000000000Binary files a/public/libraries/fancytree/skin-win8-xxl/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8-xxl/vline.gif b/public/libraries/fancytree/skin-win8-xxl/vline.gifdeleted file mode 100644index 214e4dda99..0000000000Binary files a/public/libraries/fancytree/skin-win8-xxl/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-win8/icons.gif b/public/libraries/fancytree/skin-win8/icons.gifindex 3039e37d06..0097b1f040 100644Binary files a/public/libraries/fancytree/skin-win8/icons.gif and b/public/libraries/fancytree/skin-win8/icons.gif differdiff --git a/public/libraries/fancytree/skin-win8/ui.fancytree.css b/public/libraries/fancytree/skin-win8/ui.fancytree.cssindex 4ce9ee0d17..5216009092 100644--- a/public/libraries/fancytree/skin-win8/ui.fancytree.css+++ b/public/libraries/fancytree/skin-win8/ui.fancytree.css@@ -58,7 +58,7 @@ ul.fancytree-container li.fancytree-lastsib {background-color: silver;}ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7");+ background-image: url("../skin-win8/vline.gif");background-position: 0 0;}ul.fancytree-container li.fancytree-lastsib,@@ -84,7 +84,7 @@ span.fancytree-drag-helper-img,vertical-align: top;background-repeat: no-repeat;background-position: left;- background-image: url("icons.gif");+ background-image: url("../skin-win8/icons.gif");background-position: 0px 0px;}span.fancytree-icon,@@ -131,7 +131,7 @@ span.fancytree-expander {}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");+ background-image: url("../skin-win8/icons.gif");margin-top: 0;}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,@@ -299,7 +299,7 @@ span.fancytree-icon {.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7");+ background-image: url("../skin-win8/loading.gif");background-position: 0px 0px;}/* Status node icons */@@ -404,7 +404,7 @@ span.fancytree-drag-source.fancytree-drag-remove {.fancytree-container.fancytree-rtl span.fancytree-icon,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");+ background-image: url("../skin-win8/icons-rtl.gif");}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {@@ -412,14 +412,14 @@ span.fancytree-drag-source.fancytree-drag-remove {}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");+ background-image: url("../skin-win8/icons-rtl.gif");}ul.fancytree-container.fancytree-rtl ul {padding: 0 16px 0 0;}ul.fancytree-container.fancytree-rtl.fancytree-connectors li {background-position: right 0;- background-image: url("vline-rtl.gif");+ background-image: url("../skin-win8/vline-rtl.gif");}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {@@ -568,35 +568,35 @@ ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {/*------------------------------------------------------------------------------* 'fixed' extension*----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {+.fancytree-ext-fixed-wrapper .fancytree-ext-fixed-hidden {display: none;}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {+.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-scroll-border-bottom {border-bottom: 3px solid rgba(0, 0, 0, 0.75);}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {+.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-scroll-border-right {border-right: 3px solid rgba(0, 0, 0, 0.75);}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {+.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-tl {position: absolute;overflow: hidden;z-index: 3;top: 0px;left: 0px;}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {+.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-tr {position: absolute;overflow: hidden;z-index: 2;top: 0px;}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {+.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-bl {position: absolute;overflow: hidden;z-index: 2;left: 0px;}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {+.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-br {position: absolute;overflow: scroll;z-index: 1;diff --git a/public/libraries/fancytree/skin-win8/ui.fancytree.less b/public/libraries/fancytree/skin-win8/ui.fancytree.lessindex 2aed079482..443cbe3d4c 100644--- a/public/libraries/fancytree/skin-win8/ui.fancytree.less+++ b/public/libraries/fancytree/skin-win8/ui.fancytree.less@@ -26,14 +26,14 @@// Tree view:// active node, tree inactive: #F7F7F7 (border: #DEDEDE) 'light gray, selected, but tree not active'-// List view:+// List view:// selected bar: --> active bar// focus bar: transparent(white) + border 1px solid #3399FF ()// table left/right border: #EDEDED 'light gray'-// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is+// Override the variable after the import.+// NOTE: Variables are always resolved as the last definition, even if it is// after where it is used.@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)@@ -54,9 +54,13 @@// @fancy-line-height: 16px;// @fancy-icon-spacing: 3px;+// We need to define this variable here (not in skin-common.less) to make it+// work with grunt and webpack:+@fancy-image-prefix: "./skin-win8/";+// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS+// @fancy-loading-url: data-uri("@{fancy-image-prefix}loading.gif");+// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS// instead of linking to that file:// @fancy-inline-sprites: true;diff --git a/public/libraries/fancytree/skin-win8/ui.fancytree.min.css b/public/libraries/fancytree/skin-win8/ui.fancytree.min.cssindex bcd26b03eb..16c61aa883 100644--- a/public/libraries/fancytree/skin-win8/ui.fancytree.min.css+++ b/public/libraries/fancytree/skin-win8/ui.fancytree.min.css@@ -3,4 +3,4 @@** DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from* the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAANPT0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAQABAAAAgxAP8JHPgvAMGDCA0iXFiQ4UKFDglCjChwIkWLETE61MiQ40OKEkEO9JhQZEWTDRcGBAA7);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:2px}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:2px;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAEai/0+m/1is/12u/2Oy/2u1/3C3/3G4/3W6/3q8/3+//4HA/4XC/4nE/4/H/5LI/5XK/5vN/57O/6DP/6HQ/6TS/6/X/7DX/7HY/7bb/7rd/7ze/8Hg/8fj/8rl/83m/9Dn/9Lp/9bq/9jr/9rt/9/v/+Dv/+Hw/+Xy/+v1/+32//D3//L5//f7//j7//v9/0qk/06m/1Ko/1er/2Cw/2m0/2y2/3u9/32+/4jD/5bK/5jL/5/P/6HP/6PS/6fS/6nU/67X/7Ta/7nc/7zd/8Ph/8bj/8jk/8vl/9Pp/9fr/9rs/9zu/+j0/+72//T6/0ij/1Op/1uu/1yu/2Wy/2q0/2+3/3C4/3m8/3y9/4PB/4vE/4/G/6XS/6jU/67W/7HZ/7Xa/7vd/73e/8Lh/8nk/87m/9Hn/9Ho/9vt/97u/+Lx/+bz/+n0//H4//X6/1Gn/1Go/2Gx/36+/5PJ/5TJ/5nL/57P/7PZ/7TZ/8Xi/9Tq/9zt/+by/+r0/+73//P5//n8/0uk/1Wq/3K4/3e7/4bC/4vF/47G/5fK/77f/9Do/9ns/+Tx/+/3//L4//b6//r9/2Wx/2q1/4bD/6DQ/6fT/9Tp/+Lw/+jz//D4//j8/1qt/2mz/5rM/6bS/8Lg/8jj/97v/+r1/1Cn/1ar/2Cv/3O5/3++/53O/8Th/9Lo/9Xq/+z2/2Kw/2Sx/8Ti/4rF/7DY/1+v/4TB/7fb/+Ty/1+u/2Ox/4zG/6vU/7/f//r8/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAQoAMAAsAAAAABAAEAAABptAmFCI6mAsnNNwCUthGomDoYCQoJinyELRgDwUhAFCNFRJGg8P6/VSaQyCgxK2cURMTJioEIA0Jw8geUIZAQMkIhEVLIMwKgMAFx4SGS+NLwwCFR8UGo1CKSgsJBUYLZ9sMCsZF3iDLy2nMCEXGyp5bSqyLBwaHSguQi8sKigqlkIqHb4hJc4lJsdMLSQeHyEhIyXSgy2hxsFLQQAh+QQBCgAAACwAAAAAEAAQAAAHp4AAgoIoH0NCSCiDiwBORDo5Czg3C0BNjCg/Dw46PjwOBwcLS4MrQTs9ICwvL05FODU4igBGPECzi0s4NDyNQT5KjINDAzZMTEBCLMKCTQczQ0lBRcyDODI8SojVAC84MTxMQkVP1SgDMEJPRkS4jB8xM6RKRR/Lwi9HQYJPIB9KTV4MeuHiicBSSkAoYYKiiRMnKw4ucnFiyRKGKJyUq/aChUaDjAIBACH5BAEKAAAALAAAAAAQABAAAAeogACCgm1KZGRmbYOLAG5GXjoPXFsPYIqLbWE7XV1fXjtaWQ9qg25iXmBKby8AKmVcWFyXaBdil4tqWldejWNhpIyCZFZZa2tjZG/BgipYVWRpY2bLg1s0XWpGaNQAL1pTXW1maMrLbVZSYm9oZyrUYVFUpGxoaeWLZzQBOoJvamkm3OCSAsWKiUH+1rBp48bFCxVWaGxb9LBNGxVvVqUBFuzFizculgUCACH5BAEKAAEALAAAAAAQABAAAAi4AAMIFPiHxJEjJPwMXBgAEIg8XijcsUNhzB+GfzjkwYNnSB4KdRzcWTPwzZEhY/i8EfgmhJ0GdhQGIDFGz0WGJuoswBPgzQc9fRgOPDKnQR8/H0K4EErQQQKgIPgwFRioTgE8ffZInRqIztWCfAJN/TOnAAcXJvgAmjpEDgKSf9b4Ectwz5UBd6j68fNnaYBAfvIUEIAgKNU/gN4E+sNgAJw4BvYIfeMiUB8BAAbUMTz1TYU8YRcGBAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBT4qJGIRY0cDVwIAJIIMnnyWABiwYjChY8WGVFExgjELjwsNBroQgSSD40gCXQIJFGXi41AiHjEEECjLg8UNWS06GLND4gSNXrEqESkmgQTGfrgqMRIpAAidVkwpKDPmpF44MgDqVGTo0gdHbqBJJIjR2BrkiG0YCSkRyprMsJBCMhASJEioczbZEihGoaeCtQrgwYOujRoLGBU08IgQYJkzKjBQ/DCSIzy8OgypATDgAAh+QQBCgAAACwAAAAAEAAQAAAIswABCBQIKRMfPmw0DVwIYBObEEiKjBEzJoTChZD4XArB0UyRMBfGtBm4CdOSJW02EeQjxkuYi38wYYLEEEAmDJWMNGyTsKbAS5Us/YHU5o9PgZos7QixSdPFo18eFNkESeXRTV+4FGlo1aemHVvM7ORzFMmCByOXHJgSoiafLTgwCOQjCYqkMCk3/SlCCQvagSEmBRh0gBLcAwe4kF2IaYekKVNoTMLiZWTNTSwtWRqDiWFAACH5BAEKAAIALAAAAAAQABAAAAi5AAUIFOhCBRs2o94MXCjghQpRI/YkQYJkj8KFL0atEcVRVJIOY0KtWKhi1Cg3LwS+YdNhCCg3Kt2oSMlQxZg8IGLSZChA1IU8Khru5PkmjxdRbtgE5TlwCAUknzgxGIoxDw8kQgAMGMVUgJtPnvaQGBAgT1cQDyhwhRCnUxKeazw5GCNwTQFOBsbMfLECyYMGPJYK2INgAAEFDyA0ULDA0xqGbHggKFDgQIIGF7jyfLGmw4ULHdgwDAgAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcqElTK00uBioUuKlVEzYnlixhk3BhC4MO2SxhtIrVCoWbNrnYNLAhKzMgWggMgqTiwhVIiiwBsKQUKTMLB7IhoqpVHhimmuQU2KJInhOpYtxwmdNMHlapZKAiORRAkSCshpQ61arqijxAJNoYMKTqEh95uvagUWjmQjZAUqkSyAZVDVRFWoXUBKLHjiAfBS5hcOqUg1Q+djh44IPNwiZAFtxAtSCHDiJdh55AkmeIGaEKAwIAIfkEAQoAAAAsAAAAABAAEAAACLcAAQgcGMgFJEiBBioEUEIJAINuRo36k1AhGldXVhSMyAaTCUgDMVWBMiWNQjeY0pRwIVBHAFdoFgKAxOgMG4avooSRKfCPmTOQNEi5MornwzNIRnWZQqkiTyVFSnRxtYWlUTMa0hSpkuWPUUgcNGDClMVKEaMmwohxA6CLFUolZI7ScCEmgFFcsnBB4nVmCTBeNLAVWCKvlh1dvnjRUSlMUYWjwDzYwuWBji6wBss1U6QImscDAwIAIfkEAQoAAQAsAAAAABAAEAAACLMAAwgUyEfWJxYDEw5sBGEAAAGNXkCCpDAAKwNw4AxgoEIii44LCwnolMfPC4EvVPgxKfDOgCusKr7ws0ZFABOF5IipKJAFHz4vOBSYY5NnAD4jVMgqAOGkUT5J/CxtajRAmiRr9CSIVbQiJFZI/DRyMAeJ0awfKMqaQ2dNRRV6xqQR6MdOLDusEAaAtGbMGCR6A6y54wDCpzxiZCnm0FWgijF3INyhcDhJYIV+wH5I0zhAQAAh+QQBCgAAACwAAAAAEAAQAAAItAABCBRYYkiqVLUYuRjIkE2qGjNkxBA0IwhDgYwU0JhVg1YCGjLMLBzYxFCNBEM0uXDBxkyLlQOBEFLA6CKAlZpaAGBjiBAZmwP//HFhJMGhP0AF/mHjopaCVCOBsmGjqZahLlFtsinxx4yhHZqSurDFaGkiREmS/rnESOeQB6nY2NR0CYRcAH+67AByaWSLlkj6DmQTJFWXWmSMkCFCBkRYhn+MBAESpBbitmpLJLlU4vHAgAAh+QQBCgAAACwAAAAAEAAQAAAIvQABCBS4ZpclS0PWDFwIoI0uHFVu3ZIiiY7ChWpyHTiAowGDK4MCVEEzsA0dLAw4OOHFq00YXFBwqREIBkeumQzN3DqQBkCmOgvKMByYpg0vAGZy7XAydCCvFgA45NLVdGCLFrw40PlytCoLJy0u7bAEtSkvJ21aOLF055JXNkYBwKoEJtPQFmvWMAWwIoyuIWrKunCSJo2Jrg2HXAjDwcwlNCDQpCk7kAWIXUN2wTKDZo2Lqk7YpFGTibLAgAA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:0;min-height:20px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:20px;padding:0 3px;margin:0 0 0 3px;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}.fancytree-plain span.fancytree-title{border:1px solid transparent}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-focused span.fancytree-title{border-color:#39f}.fancytree-plain span.fancytree-active span.fancytree-title,.fancytree-plain span.fancytree-selected span.fancytree-title{background-color:#f7f7f7;border-color:#dedede}.fancytree-plain span.fancytree-node span.fancytree-selected span.fancytree-title{font-style:italic}.fancytree-plain span.fancytree-node:hover span.fancytree-title{background-color:#eff9fe;border-color:#70c0e7}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-active span.fancytree-title,.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-selected span.fancytree-title{background-color:#cbe8f6;border-color:#26a0da}table.fancytree-ext-table tbody tr td{border:1px solid #EDEDED}table.fancytree-ext-table tbody span.fancytree-node,table.fancytree-ext-table tbody span.fancytree-node:hover{border:none;background:0 0}table.fancytree-ext-table tbody tr:hover{background-color:#E5F3FB;outline:#70C0E7 solid 1px}table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title{outline:#000 dotted 1px}table.fancytree-ext-table tbody tr.fancytree-active:hover,table.fancytree-ext-table tbody tr.fancytree-selected:hover{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#F7F7F7;outline:#DEDEDE solid 1px}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#F7F7F7}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected{background-color:#CBE8F6}\ No newline at end of file+ */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}ul.fancytree-container li.fancytree-lastsib{background-image:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(../skin-win8/vline.gif);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(../skin-win8/icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:2px}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:2px;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:none;cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(../skin-win8/icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(../skin-win8/loading.gif);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:0;min-height:20px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:20px;padding:0 3px;margin:0 0 0 3px;border:1px solid transparent;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(../skin-win8/icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(../skin-win8/icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(../skin-win8/vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-ext-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-scroll-border-bottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-scroll-border-right{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-ext-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}.fancytree-plain span.fancytree-title{border:1px solid transparent}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-focused span.fancytree-title{border-color:#39f}.fancytree-plain span.fancytree-active span.fancytree-title,.fancytree-plain span.fancytree-selected span.fancytree-title{background-color:#f7f7f7;border-color:#dedede}.fancytree-plain span.fancytree-node span.fancytree-selected span.fancytree-title{font-style:italic}.fancytree-plain span.fancytree-node:hover span.fancytree-title{background-color:#eff9fe;border-color:#70c0e7}.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-active span.fancytree-title,.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-selected span.fancytree-title{background-color:#cbe8f6;border-color:#26a0da}table.fancytree-ext-table tbody tr td{border:1px solid #EDEDED}table.fancytree-ext-table tbody span.fancytree-node,table.fancytree-ext-table tbody span.fancytree-node:hover{border:none;background:0 0}table.fancytree-ext-table tbody tr:hover{background-color:#E5F3FB;outline:#70C0E7 solid 1px}table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title{outline:#000 dotted 1px}table.fancytree-ext-table tbody tr.fancytree-active:hover,table.fancytree-ext-table tbody tr.fancytree-selected:hover{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#F7F7F7;outline:#DEDEDE solid 1px}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#F7F7F7}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active{background-color:#CBE8F6;outline:#26A0DA solid 1px}table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected{background-color:#CBE8F6}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-xp/icons-rtl.gif b/public/libraries/fancytree/skin-xp/icons-rtl.gifdeleted file mode 100644index a29b5fbc96..0000000000Binary files a/public/libraries/fancytree/skin-xp/icons-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-xp/icons.gif b/public/libraries/fancytree/skin-xp/icons.gifdeleted file mode 100644index a58eb93f12..0000000000Binary files a/public/libraries/fancytree/skin-xp/icons.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-xp/loading.gif b/public/libraries/fancytree/skin-xp/loading.gifdeleted file mode 100644index 251df0544c..0000000000Binary files a/public/libraries/fancytree/skin-xp/loading.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-xp/ui.fancytree.css b/public/libraries/fancytree/skin-xp/ui.fancytree.cssdeleted file mode 100644index 66268558ae..0000000000--- a/public/libraries/fancytree/skin-xp/ui.fancytree.css+++ /dev/null@@ -1,685 +0,0 @@-/*!- * Fancytree "XP" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */-/*******************************************************************************- * Common Styles for Fancytree Skins.- *- * This section is automatically generated from the `skin-common.less` template.- ******************************************************************************/-/*------------------------------------------------------------------------------- * Helpers- *----------------------------------------------------------------------------*/-.ui-helper-hidden {- display: none;-}-/*------------------------------------------------------------------------------- * Container and UL / LI- *----------------------------------------------------------------------------*/-ul.fancytree-container {- font-family: tahoma, arial, helvetica;- font-size: 10pt;- white-space: nowrap;- padding: 3px;- margin: 0;- background-color: white;- /*border: 1px dotted gray;*/- min-height: 0%;- position: relative;-}-ul.fancytree-container ul {- padding: 0 0 0 16px;- margin: 0;-}-ul.fancytree-container ul > li:before {- content: none;-}-ul.fancytree-container li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- margin: 0;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-.ui-fancytree-disabled ul.fancytree-container {- opacity: 0.5;- background-color: silver;-}-ul.fancytree-connectors.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==");- background-position: 0 0;-}-ul.fancytree-container li.fancytree-lastsib,-ul.fancytree-no-connector > li {- background-image: none;-}-li.fancytree-animating {- position: relative;-}-/*------------------------------------------------------------------------------- * Common icon definitions- *----------------------------------------------------------------------------*/-span.fancytree-empty,-span.fancytree-vline,-span.fancytree-expander,-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-drag-helper-img,-#fancytree-drop-marker {- width: 16px;- height: 16px;- display: inline-block;- vertical-align: top;- background-repeat: no-repeat;- background-position: left;- background-image: url("icons.gif");- background-position: 0px 0px;-}-span.fancytree-icon,-span.fancytree-checkbox,-span.fancytree-expander,-span.fancytree-custom-icon {- margin-top: 0px;-}-/* Used by icon option: */-span.fancytree-custom-icon {- width: 16px;- height: 16px;- display: inline-block;- margin-left: 3px;- background-position: 0px 0px;-}-/* Used by 'icon' node option: */-img.fancytree-icon {- width: 16px;- height: 16px;- margin-left: 3px;- margin-top: 0px;- vertical-align: top;- border-style: none;-}-/*------------------------------------------------------------------------------- * Expander icon- *- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-exp-- * 1st character: 'e': expanded, 'c': collapsed, 'n': no children- * 2nd character (optional): 'd': lazy (Delayed)- * 3rd character (optional): 'l': Last sibling- *----------------------------------------------------------------------------*/-span.fancytree-expander {- cursor: pointer;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: none;- cursor: default;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");- margin-top: 0;-}-.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,-.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-.fancytree-exp-c span.fancytree-expander {- background-position: 0px -80px;-}-.fancytree-exp-c span.fancytree-expander:hover {- background-position: -16px -80px;-}-.fancytree-exp-cl span.fancytree-expander {- background-position: 0px -96px;-}-.fancytree-exp-cl span.fancytree-expander:hover {- background-position: -16px -96px;-}-.fancytree-exp-cd span.fancytree-expander {- background-position: -64px -80px;-}-.fancytree-exp-cd span.fancytree-expander:hover {- background-position: -80px -80px;-}-.fancytree-exp-cdl span.fancytree-expander {- background-position: -64px -96px;-}-.fancytree-exp-cdl span.fancytree-expander:hover {- background-position: -80px -96px;-}-.fancytree-exp-e span.fancytree-expander,-.fancytree-exp-ed span.fancytree-expander {- background-position: -32px -80px;-}-.fancytree-exp-e span.fancytree-expander:hover,-.fancytree-exp-ed span.fancytree-expander:hover {- background-position: -48px -80px;-}-.fancytree-exp-el span.fancytree-expander,-.fancytree-exp-edl span.fancytree-expander {- background-position: -32px -96px;-}-.fancytree-exp-el span.fancytree-expander:hover,-.fancytree-exp-edl span.fancytree-expander:hover {- background-position: -48px -96px;-}-/* Fade out expanders, when container is not hovered or active */-.fancytree-fade-expander span.fancytree-expander {- transition: opacity 1.5s;- opacity: 0;-}-.fancytree-fade-expander:hover span.fancytree-expander,-.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,-.fancytree-fade-expander [class*='fancytree-statusnode-'] span.fancytree-expander {- transition: opacity 0.6s;- opacity: 1;-}-/*------------------------------------------------------------------------------- * Checkbox icon- *----------------------------------------------------------------------------*/-span.fancytree-checkbox {- margin-left: 3px;- background-position: 0px -32px;-}-span.fancytree-checkbox:hover {- background-position: -16px -32px;-}-span.fancytree-checkbox.fancytree-radio {- background-position: 0px -48px;-}-span.fancytree-checkbox.fancytree-radio:hover {- background-position: -16px -48px;-}-.fancytree-partsel span.fancytree-checkbox {- background-position: -64px -32px;-}-.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -80px -32px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio {- background-position: -64px -48px;-}-.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover {- background-position: -80px -48px;-}-.fancytree-selected span.fancytree-checkbox {- background-position: -32px -32px;-}-.fancytree-selected span.fancytree-checkbox:hover {- background-position: -48px -32px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio {- background-position: -32px -48px;-}-.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover {- background-position: -48px -48px;-}-.fancytree-unselectable span.fancytree-checkbox {- opacity: 0.4;- filter: alpha(opacity=40);-}-.fancytree-unselectable span.fancytree-checkbox:hover {- background-position: 0px -32px;-}-.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover {- background-position: -64px -32px;-}-.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover {- background-position: -32px -32px;-}-/*------------------------------------------------------------------------------- * Node type icon- * Note: IE6 doesn't correctly evaluate multiples class names,- * so we create combined class names that can be used in the CSS.- *- * Prefix: fancytree-ico-- * 1st character: 'e': expanded, 'c': collapsed- * 2nd character (optional): 'f': folder- *----------------------------------------------------------------------------*/-span.fancytree-icon {- margin-left: 3px;- background-position: 0px 0px;-}-/* Documents */-.fancytree-ico-c span.fancytree-icon:hover {- background-position: -16px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon {- background-position: -32px 0px;-}-.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {- background-position: -48px 0px;-}-.fancytree-ico-e span.fancytree-icon {- background-position: -64px 0px;-}-.fancytree-ico-e span.fancytree-icon:hover {- background-position: -80px 0px;-}-/* Folders */-.fancytree-ico-cf span.fancytree-icon {- background-position: 0px -16px;-}-.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -16px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon {- background-position: -32px -16px;-}-.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {- background-position: -48px -16px;-}-.fancytree-ico-ef span.fancytree-icon {- background-position: -64px -16px;-}-.fancytree-ico-ef span.fancytree-icon:hover {- background-position: -80px -16px;-}-.fancytree-loading span.fancytree-expander,-.fancytree-loading span.fancytree-expander:hover,-.fancytree-statusnode-loading span.fancytree-icon,-.fancytree-statusnode-loading span.fancytree-icon:hover {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAKIFAAAAAAAApUJC/4SE/8bGxgAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAFACwAAAAAEAAQAAADKli63K4hPBZLJWTWhZ0QU7d8YTadxTCgosqa6CM6c1Eztw3rJZ83v1gjAQAh+QQFCgAFACwBAAIACwAHAAADFFgqUhEOrqZiGaNqhbf/BUGA4QgmACH5BAUKAAUALAIAAQAMAAUAAAMTWKoi+2OUVkKAcllFyHtW92lBAgAh+QQFCgAFACwEAAEACwAIAAADFlg6o16EFFaEcPHZx1UInfOFZDeSXwIAIfkEBQoABQAsBwABAAcACwAAAxRIVMxaYzQWZxPCYstZ4F83BWFDJgAh+QQFCgAFACwKAAIABQAMAAADFEhUrPxjQPlqEeJhy0J4XhF2H5MAACH5BAUKAAUALAcABAAIAAsAAAMUWKpEu+3JOQa1cwqh+QrBF4LilAAAIfkEBQoABQAsBAAHAAsABwAAAxRYukvE0MFJyxjV4hCYEAtXiN+SAAAh+QQFCgAFACwCAAoADAAFAAADEhhR3ExEOQeZbGM4KUTJE9NNCQAh+QQFCgAFACwBAAcACwAIAAADFhhR3K0uSglnqbYI4QhpWzEMhSeNTQIAIfkEBQoABQAsAgAEAAcACwAAAxMYUczaMC4ZKxMiYjtG7AVBRGICACH5BAUKAAUALAEAAgAFAAwAAAMTWBqhxa8t6ZQQ7tY9husbQThiAgA7");- background-position: 0px 0px;-}-/* Status node icons */-.fancytree-statusnode-error span.fancytree-icon,-.fancytree-statusnode-error span.fancytree-icon:hover {- background-position: 0px -112px;-}-/*------------------------------------------------------------------------------- * Node titles and highlighting- *----------------------------------------------------------------------------*/-span.fancytree-node {- /* See #117 */- display: inherit;- width: 100%;- margin-top: 1px;- min-height: 16px;-}-span.fancytree-title {- color: black;- cursor: pointer;- display: inline-block;- vertical-align: top;- min-height: 16px;- padding: 0 3px 0 3px;- margin: 0px 0 0 3px;- border: 0 solid transparent;- -webkit-border-radius: 0px;- -moz-border-radius: 0px;- -ms-border-radius: 0px;- -o-border-radius: 0px;- border-radius: 0px;-}-span.fancytree-node.fancytree-error span.fancytree-title {- color: red;-}-/*------------------------------------------------------------------------------- * Drag'n'drop support- *----------------------------------------------------------------------------*/-div.fancytree-drag-helper span.fancytree-childcounter,-div.fancytree-drag-helper span.fancytree-dnd-modifier {- display: inline-block;- color: #fff;- background: #337ab7;- border: 1px solid gray;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-div.fancytree-drag-helper span.fancytree-childcounter {- position: absolute;- top: -6px;- right: -6px;-}-div.fancytree-drag-helper span.fancytree-dnd-modifier {- background: #5cb85c;- border: none;- font-weight: bolder;-}-div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img {- background-position: -32px -112px;-}-div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img {- background-position: -16px -112px;-}-/*** Drop marker icon *********************************************************/-#fancytree-drop-marker {- width: 32px;- position: absolute;- background-position: 0px -128px;- margin: 0;-}-#fancytree-drop-marker.fancytree-drop-after,-#fancytree-drop-marker.fancytree-drop-before {- width: 64px;- background-position: 0px -144px;-}-#fancytree-drop-marker.fancytree-drop-copy {- background-position: -64px -128px;-}-#fancytree-drop-marker.fancytree-drop-move {- background-position: -32px -128px;-}-/*** Source node while dragging ***********************************************/-span.fancytree-drag-source.fancytree-drag-remove {- opacity: 0.15;-}-/*** Target node while dragging cursor is over it *****************************/-/*------------------------------------------------------------------------------- * 'rtl' option- *----------------------------------------------------------------------------*/-.fancytree-container.fancytree-rtl .fancytree-title {- /*unicode-bidi: bidi-override;*/- /* optional: reverse title letters */-}-.fancytree-container.fancytree-rtl span.fancytree-connector,-.fancytree-container.fancytree-rtl span.fancytree-expander,-.fancytree-container.fancytree-rtl span.fancytree-icon,-.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,-.fancytree-container.fancytree-rtl #fancytree-drop-marker {- background-image: url("icons-rtl.gif");-}-.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: none;-}-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,-.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");-}-ul.fancytree-container.fancytree-rtl ul {- padding: 0 16px 0 0;-}-ul.fancytree-container.fancytree-rtl.fancytree-connectors li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,-ul.fancytree-container.fancytree-rtl.fancytree-no-connector > li {- background-image: none;-}-/*------------------------------------------------------------------------------- * 'table' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table span.fancytree-node {- display: inline-block;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'columnview' extension- *----------------------------------------------------------------------------*/-table.fancytree-ext-columnview tbody tr td {- position: relative;- border: 1px solid gray;- vertical-align: top;- overflow: auto;-}-table.fancytree-ext-columnview tbody tr td > ul {- padding: 0;-}-table.fancytree-ext-columnview tbody tr td > ul li {- list-style-image: none;- list-style-position: outside;- list-style-type: none;- -moz-background-clip: border;- -moz-background-inline-policy: continuous;- -moz-background-origin: padding;- background-attachment: scroll;- background-color: transparent;- background-position: 0px 0px;- background-repeat: repeat-y;- background-image: none;- /* no v-lines */- margin: 0;-}-table.fancytree-ext-columnview span.fancytree-node {- position: relative;- /* allow positioning of embedded spans */- display: inline-block;-}-table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {- background-color: #CBE8F6;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {- position: absolute;- right: 3px;- background-position: 0px -80px;-}-table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover {- background-position: -16px -80px;-}-/*------------------------------------------------------------------------------- * 'filter' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {- color: black;- font-weight: normal;-}-.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: bold;-}-.fancytree-ext-filter-hide tr.fancytree-hide,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide {- display: none;-}-.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {- color: silver;- font-weight: lighter;-}-.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,-.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {- color: black;- font-weight: normal;-}-/* Hide expanders if all child nodes are hidden by filter */-.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander {- visibility: hidden;-}-.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander,-.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander {- visibility: visible;-}-.fancytree-ext-childcounter span.fancytree-icon,-.fancytree-ext-filter span.fancytree-icon {- position: relative;-}-.fancytree-ext-childcounter span.fancytree-childcounter,-.fancytree-ext-filter span.fancytree-childcounter {- color: #fff;- background: #777;- border: 1px solid gray;- position: absolute;- top: -6px;- right: -6px;- min-width: 10px;- height: 10px;- line-height: 1;- vertical-align: baseline;- border-radius: 10px;- padding: 2px;- text-align: center;- font-size: 9px;-}-/*------------------------------------------------------------------------------- * 'wide' extension- *----------------------------------------------------------------------------*/-ul.fancytree-ext-wide {- position: relative;- min-width: 100%;- z-index: 2;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-ul.fancytree-ext-wide span.fancytree-node > span {- position: relative;- z-index: 2;-}-ul.fancytree-ext-wide span.fancytree-node span.fancytree-title {- position: absolute;- z-index: 1;- left: 0px;- min-width: 100%;- margin-left: 0;- margin-right: 0;- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;-}-/*------------------------------------------------------------------------------- * 'fixed' extension- *----------------------------------------------------------------------------*/-.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden {- display: none;-}-.fancytree-ext-fixed-wrapper div.scrollBorderBottom {- border-bottom: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.scrollBorderRight {- border-right: 3px solid rgba(0, 0, 0, 0.75);-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl {- position: absolute;- overflow: hidden;- z-index: 3;- top: 0px;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr {- position: absolute;- overflow: hidden;- z-index: 2;- top: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl {- position: absolute;- overflow: hidden;- z-index: 2;- left: 0px;-}-.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br {- position: absolute;- overflow: scroll;- z-index: 1;-}-/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/-/*******************************************************************************- * Tree container- */-ul.fancytree-container li {- background-image: url("data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==");- background-position: 0 0;-}-ul.fancytree-container.fancytree-rtl li {- background-position: right 0;- background-image: url("vline-rtl.gif");-}-ul.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander {- background-image: url("icons-rtl.gif");- background-position: 0px -64px;-}-ul.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");- background-position: -16px -64px;-}-ul.fancytree-container li.fancytree-lastsib {- background-image: none;-}-ul.fancytree-no-connector > li {- background-image: none;-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- background-image: url("icons.gif");-}-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-n span.fancytree-expander:hover {- background-position: 0px -64px;-}-.fancytree-exp-nl span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander:hover {- background-position: -16px -64px;-}-/*******************************************************************************- * Node titles- */-span.fancytree-title {- border: 0 solid transparent;-}-span.fancytree-title:hover {- background-color: #F2F7FD;- border-color: #B8D6FB;-}-span.fancytree-focused span.fancytree-title {- outline: 1px dotted black;- background-color: #EFEBDE;-}-.fancytree-folder span.fancytree-title {- font-weight: bold;-}-.fancytree-selected span.fancytree-title {- color: green;- font-style: italic;-}-.fancytree-active span.fancytree-title {- background-color: #3169C6 !important;- color: white !important;-}-/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table {- border-collapse: collapse;-}-table.fancytree-ext-table tbody tr.fancytree-focused {- background-color: #99DEFD;-}-table.fancytree-ext-table tbody tr.fancytree-active {- background-color: royalblue;-}-table.fancytree-ext-table tbody tr.fancytree-selected {- background-color: #99FDDE;-}diff --git a/public/libraries/fancytree/skin-xp/ui.fancytree.less b/public/libraries/fancytree/skin-xp/ui.fancytree.lessdeleted file mode 100644index ddb059269f..0000000000--- a/public/libraries/fancytree/skin-xp/ui.fancytree.less+++ /dev/null@@ -1,126 +0,0 @@-/*!- * Fancytree "XP" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */--// Import common styles-@import "../skin-common.less";---/*******************************************************************************- * Styles specific to this skin.- *- * This section is automatically generated from the `ui-fancytree.less` template.- ******************************************************************************/--// Override the variable after the import.-// NOTE: Variables are always resolved as the last definition, even if it is-// after where it is used.-@fancy-use-sprites: true; // false: suppress all background images (i.e. icons)--@fancy-icon-width: 16px;-@fancy-icon-height: 16px;-@fancy-icon-spacing: 3px;-@fancy-node-border-width: 0;--// Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':-@fancy-loading-url: data-uri("@{fancy-image-dir}/loading.gif");-// Set to `true` to use `data-uri(...)` which will embed icons.gif into CSS-// instead of linking to that file:-// @fancy-inline-sprites: true;---/*******************************************************************************- * Tree container- */-ul.fancytree-container {- li {- // background-image: url("vline.gif");- // Use 'data-uri(...)' to embed the image into CSS instead of linking to 'loading.gif':- background-image: data-uri("@{fancy-image-dir}/vline.gif");- background-position: 0 0;- }- &.fancytree-rtl {- li {- background-position: right 0;- background-image: url("vline-rtl.gif");- }- .fancytree-exp-n span.fancytree-expander {- background-image: url("icons-rtl.gif");- .useSprite(0, 4);- }- .fancytree-exp-nl span.fancytree-expander {- background-image: url("icons-rtl.gif");- .useSprite(1, 4);- }- }- // Suppress lines for last child node- li.fancytree-lastsib {- background-image: none;- }-}-// Suppress lines if level is fixed expanded (option minExpandLevel)-ul.fancytree-no-connector > li {- background-image: none;-}--// XP theme always displays connectors (not only when .fancytree-connectors is set)-.fancytree-exp-n span.fancytree-expander,-.fancytree-exp-nl span.fancytree-expander {- .setBgImageUrl("icons.gif");- // margin-top: 0;-}-.fancytree-exp-n span.fancytree-expander, // End-node, not last sibling-.fancytree-exp-n span.fancytree-expander:hover {- .useSprite(0, 4);-}-.fancytree-exp-nl span.fancytree-expander, // End-node, last sibling-.fancytree-exp-nl span.fancytree-expander:hover {- .useSprite(1, 4);-}--/*******************************************************************************- * Node titles- */--span.fancytree-title {- border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover-}-span.fancytree-title:hover {- background-color: #F2F7FD; // light blue- border-color: #B8D6FB; // darker light blue-}-span.fancytree-focused span.fancytree-title {- outline: 1px dotted black;- background-color: #EFEBDE; // gray-}-.fancytree-folder span.fancytree-title {- font-weight: bold;-}-.fancytree-selected span.fancytree-title {- color: green;- font-style: italic;-}-.fancytree-active span.fancytree-title {- background-color: #3169C6 !important;- color: white !important; // @ IE6-}--/*******************************************************************************- * 'table' extension- */-table.fancytree-ext-table {- border-collapse: collapse;- tbody tr.fancytree-focused {- background-color: #99DEFD;- }- tbody tr.fancytree-active {- background-color: royalblue;- }- tbody tr.fancytree-selected {- background-color: #99FDDE;- }-}-diff --git a/public/libraries/fancytree/skin-xp/ui.fancytree.min.css b/public/libraries/fancytree/skin-xp/ui.fancytree.min.cssdeleted file mode 100644index d91c738444..0000000000--- a/public/libraries/fancytree/skin-xp/ui.fancytree.min.css+++ /dev/null@@ -1,6 +0,0 @@-/*!- * Fancytree "XP" skin.- *- * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from- * the LESS templates.- */.ui-helper-hidden{display:none}ul.fancytree-container{font-family:tahoma,arial,helvetica;font-size:10pt;white-space:nowrap;padding:3px;margin:0;background-color:#fff;border:1px dotted gray;min-height:0;position:relative}ul.fancytree-container ul{padding:0 0 0 16px;margin:0}ul.fancytree-container ul>li:before{content:none}ul.fancytree-container li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-repeat:repeat-y;margin:0;list-style:none}.ui-fancytree-disabled ul.fancytree-container{opacity:.5;background-color:silver}ul.fancytree-connectors.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==);background-position:0 0}ul.fancytree-container li.fancytree-lastsib,ul.fancytree-no-connector>li{background-image:none}li.fancytree-animating{position:relative}#fancytree-drop-marker,span.fancytree-checkbox,span.fancytree-drag-helper-img,span.fancytree-empty,span.fancytree-expander,span.fancytree-icon,span.fancytree-vline{width:16px;height:16px;display:inline-block;vertical-align:top;background-repeat:no-repeat;background-image:url(icons.gif);background-position:0 0}span.fancytree-checkbox,span.fancytree-custom-icon,span.fancytree-expander,span.fancytree-icon{margin-top:0}span.fancytree-custom-icon{width:16px;height:16px;display:inline-block;margin-left:3px;background-position:0 0}img.fancytree-icon{width:16px;height:16px;margin-left:3px;margin-top:0;vertical-align:top;border-style:none}span.fancytree-expander{cursor:pointer}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{cursor:default}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif);margin-top:0}.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-connectors .fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-connectors .fancytree-exp-nl span.fancytree-expander,.fancytree-connectors .fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}.fancytree-exp-c span.fancytree-expander{background-position:0 -80px}.fancytree-exp-c span.fancytree-expander:hover{background-position:-16px -80px}.fancytree-exp-cl span.fancytree-expander{background-position:0 -96px}.fancytree-exp-cl span.fancytree-expander:hover{background-position:-16px -96px}.fancytree-exp-cd span.fancytree-expander{background-position:-64px -80px}.fancytree-exp-cd span.fancytree-expander:hover{background-position:-80px -80px}.fancytree-exp-cdl span.fancytree-expander{background-position:-64px -96px}.fancytree-exp-cdl span.fancytree-expander:hover{background-position:-80px -96px}.fancytree-exp-e span.fancytree-expander,.fancytree-exp-ed span.fancytree-expander{background-position:-32px -80px}.fancytree-exp-e span.fancytree-expander:hover,.fancytree-exp-ed span.fancytree-expander:hover{background-position:-48px -80px}.fancytree-exp-edl span.fancytree-expander,.fancytree-exp-el span.fancytree-expander{background-position:-32px -96px}.fancytree-exp-edl span.fancytree-expander:hover,.fancytree-exp-el span.fancytree-expander:hover{background-position:-48px -96px}.fancytree-fade-expander span.fancytree-expander{transition:opacity 1.5s;opacity:0}.fancytree-fade-expander .fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander [class*=fancytree-statusnode-] span.fancytree-expander,.fancytree-fade-expander.fancytree-treefocus span.fancytree-expander,.fancytree-fade-expander:hover span.fancytree-expander{transition:opacity .6s;opacity:1}span.fancytree-checkbox{margin-left:3px;background-position:0 -32px}span.fancytree-checkbox:hover{background-position:-16px -32px}span.fancytree-checkbox.fancytree-radio{background-position:0 -48px}span.fancytree-checkbox.fancytree-radio:hover{background-position:-16px -48px}.fancytree-partsel span.fancytree-checkbox{background-position:-64px -32px}.fancytree-partsel span.fancytree-checkbox:hover{background-position:-80px -32px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio{background-position:-64px -48px}.fancytree-partsel span.fancytree-checkbox.fancytree-radio:hover{background-position:-80px -48px}.fancytree-selected span.fancytree-checkbox{background-position:-32px -32px}.fancytree-selected span.fancytree-checkbox:hover{background-position:-48px -32px}.fancytree-selected span.fancytree-checkbox.fancytree-radio{background-position:-32px -48px}.fancytree-selected span.fancytree-checkbox.fancytree-radio:hover{background-position:-48px -48px}.fancytree-unselectable span.fancytree-checkbox{opacity:.4;filter:alpha(opacity=40)}.fancytree-unselectable span.fancytree-checkbox:hover{background-position:0 -32px}.fancytree-unselectable.fancytree-partsel span.fancytree-checkbox:hover{background-position:-64px -32px}.fancytree-unselectable.fancytree-selected span.fancytree-checkbox:hover{background-position:-32px -32px}span.fancytree-icon{margin-left:3px;background-position:0 0}.fancytree-ico-c span.fancytree-icon:hover{background-position:-16px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon{background-position:-32px 0}.fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover{background-position:-48px 0}.fancytree-ico-e span.fancytree-icon{background-position:-64px 0}.fancytree-ico-e span.fancytree-icon:hover{background-position:-80px 0}.fancytree-ico-cf span.fancytree-icon{background-position:0 -16px}.fancytree-ico-cf span.fancytree-icon:hover{background-position:-16px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon{background-position:-32px -16px}.fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover{background-position:-48px -16px}.fancytree-ico-ef span.fancytree-icon{background-position:-64px -16px}.fancytree-ico-ef span.fancytree-icon:hover{background-position:-80px -16px}.fancytree-loading span.fancytree-expander,.fancytree-loading span.fancytree-expander:hover,.fancytree-statusnode-loading span.fancytree-icon,.fancytree-statusnode-loading span.fancytree-icon:hover{background-image:url(data:image/gif;base64,R0lGODlhEAAQAKIFAAAAAAAApUJC/4SE/8bGxgAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAFACwAAAAAEAAQAAADKli63K4hPBZLJWTWhZ0QU7d8YTadxTCgosqa6CM6c1Eztw3rJZ83v1gjAQAh+QQFCgAFACwBAAIACwAHAAADFFgqUhEOrqZiGaNqhbf/BUGA4QgmACH5BAUKAAUALAIAAQAMAAUAAAMTWKoi+2OUVkKAcllFyHtW92lBAgAh+QQFCgAFACwEAAEACwAIAAADFlg6o16EFFaEcPHZx1UInfOFZDeSXwIAIfkEBQoABQAsBwABAAcACwAAAxRIVMxaYzQWZxPCYstZ4F83BWFDJgAh+QQFCgAFACwKAAIABQAMAAADFEhUrPxjQPlqEeJhy0J4XhF2H5MAACH5BAUKAAUALAcABAAIAAsAAAMUWKpEu+3JOQa1cwqh+QrBF4LilAAAIfkEBQoABQAsBAAHAAsABwAAAxRYukvE0MFJyxjV4hCYEAtXiN+SAAAh+QQFCgAFACwCAAoADAAFAAADEhhR3ExEOQeZbGM4KUTJE9NNCQAh+QQFCgAFACwBAAcACwAIAAADFhhR3K0uSglnqbYI4QhpWzEMhSeNTQIAIfkEBQoABQAsAgAEAAcACwAAAxMYUczaMC4ZKxMiYjtG7AVBRGICACH5BAUKAAUALAEAAgAFAAwAAAMTWBqhxa8t6ZQQ7tY9husbQThiAgA7);background-position:0 0}.fancytree-statusnode-error span.fancytree-icon,.fancytree-statusnode-error span.fancytree-icon:hover{background-position:0 -112px}span.fancytree-node{display:inherit;width:100%;margin-top:1px;min-height:16px}span.fancytree-title{color:#000;cursor:pointer;display:inline-block;vertical-align:top;min-height:16px;padding:0 3px;margin:0 0 0 3px;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}span.fancytree-node.fancytree-error span.fancytree-title{color:red}div.fancytree-drag-helper span.fancytree-childcounter,div.fancytree-drag-helper span.fancytree-dnd-modifier{display:inline-block;color:#fff;background:#337ab7;border:1px solid gray;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}div.fancytree-drag-helper span.fancytree-childcounter{position:absolute;top:-6px;right:-6px}div.fancytree-drag-helper span.fancytree-dnd-modifier{background:#5cb85c;border:none;font-weight:bolder}div.fancytree-drag-helper.fancytree-drop-accept span.fancytree-drag-helper-img{background-position:-32px -112px}div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-drag-helper-img{background-position:-16px -112px}#fancytree-drop-marker{width:32px;position:absolute;background-position:0 -128px;margin:0}#fancytree-drop-marker.fancytree-drop-after,#fancytree-drop-marker.fancytree-drop-before{width:64px;background-position:0 -144px}#fancytree-drop-marker.fancytree-drop-copy{background-position:-64px -128px}#fancytree-drop-marker.fancytree-drop-move{background-position:-32px -128px}span.fancytree-drag-source.fancytree-drag-remove{opacity:.15}.fancytree-container.fancytree-rtl #fancytree-drop-marker,.fancytree-container.fancytree-rtl span.fancytree-connector,.fancytree-container.fancytree-rtl span.fancytree-drag-helper-img,.fancytree-container.fancytree-rtl span.fancytree-expander,.fancytree-container.fancytree-rtl span.fancytree-icon{background-image:url(icons-rtl.gif)}.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:none}.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-n span.fancytree-expander,.fancytree-container.fancytree-rtl.fancytree-connectors .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif)}ul.fancytree-container.fancytree-rtl ul{padding:0 16px 0 0}ul.fancytree-container.fancytree-rtl.fancytree-connectors li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl li.fancytree-lastsib,ul.fancytree-container.fancytree-rtl.fancytree-no-connector>li{background-image:none}table.fancytree-ext-table span.fancytree-node{display:inline-block;box-sizing:border-box}table.fancytree-ext-columnview tbody tr td{position:relative;border:1px solid gray;vertical-align:top;overflow:auto}table.fancytree-ext-columnview tbody tr td>ul{padding:0}table.fancytree-ext-columnview tbody tr td>ul li{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background-attachment:scroll;background-color:transparent;background-position:0 0;background-repeat:repeat-y;background-image:none;margin:0;list-style:none}table.fancytree-ext-columnview span.fancytree-node{position:relative;display:inline-block}.fancytree-ext-filter-hide span.fancytree-node.fancytree-hide,.fancytree-ext-filter-hide tr.fancytree-hide,.fancytree-ext-fixed-wrapper .fancytree-fixed-hidden{display:none}table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded{background-color:#CBE8F6}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right{position:absolute;right:3px;background-position:0 -80px}table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right:hover{background-position:-16px -80px}.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title{color:#000;font-weight:700}.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title{color:silver;font-weight:lighter}.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title,.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title{color:#000;font-weight:400}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-match span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-match span.fancytree-expander{visibility:hidden}.fancytree-ext-filter-hide-expanders span.fancytree-node.fancytree-submatch span.fancytree-expander,.fancytree-ext-filter-hide-expanders tr.fancytree-submatch span.fancytree-expander{visibility:visible}.fancytree-ext-childcounter span.fancytree-icon,.fancytree-ext-filter span.fancytree-icon{position:relative}.fancytree-ext-childcounter span.fancytree-childcounter,.fancytree-ext-filter span.fancytree-childcounter{color:#fff;background:#777;border:1px solid gray;position:absolute;top:-6px;right:-6px;min-width:10px;height:10px;line-height:1;vertical-align:baseline;border-radius:10px;padding:2px;text-align:center;font-size:9px}ul.fancytree-ext-wide,ul.fancytree-ext-wide span.fancytree-node>span{position:relative;z-index:2}ul.fancytree-ext-wide{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.fancytree-ext-wide span.fancytree-node span.fancytree-title{position:absolute;z-index:1;left:0;min-width:100%;margin-left:0;margin-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.fancytree-ext-fixed-wrapper div.scrollBorderBottom{border-bottom:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.scrollBorderRight{border-right:3px solid rgba(0,0,0,.75)}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tl{position:absolute;overflow:hidden;z-index:3;top:0;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-tr{position:absolute;overflow:hidden;z-index:2;top:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-bl{position:absolute;overflow:hidden;z-index:2;left:0}.fancytree-ext-fixed-wrapper div.fancytree-fixed-wrapper-br{position:absolute;overflow:scroll;z-index:1}ul.fancytree-container li{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8P///6Wlpf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////78KCgpICAgP8AAAD/AP//AAAA//8A/wD//////yH5BAEAAP4ALAAAAAAQABAAAAgpAP0JFHhvoMGDCBMiLKiwocOBDB9KXDixosGIFidizPhwI8eGHj8KDAgAOw==);background-position:0 0}ul.fancytree-container.fancytree-rtl li{background-position:right 0;background-image:url(vline-rtl.gif)}ul.fancytree-container.fancytree-rtl .fancytree-exp-n span.fancytree-expander{background-image:url(icons-rtl.gif);background-position:0 -64px}ul.fancytree-container.fancytree-rtl .fancytree-exp-nl span.fancytree-expander{background-image:url(icons-rtl.gif);background-position:-16px -64px}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander{background-image:url(icons.gif)}.fancytree-exp-n span.fancytree-expander,.fancytree-exp-n span.fancytree-expander:hover{background-position:0 -64px}.fancytree-exp-nl span.fancytree-expander,.fancytree-exp-nl span.fancytree-expander:hover{background-position:-16px -64px}span.fancytree-title{border:0 solid transparent}span.fancytree-title:hover{background-color:#F2F7FD;border-color:#B8D6FB}span.fancytree-focused span.fancytree-title{outline:#000 dotted 1px;background-color:#EFEBDE}.fancytree-folder span.fancytree-title{font-weight:700}.fancytree-selected span.fancytree-title{color:green;font-style:italic}.fancytree-active span.fancytree-title{background-color:#3169C6!important;color:#fff!important}table.fancytree-ext-table{border-collapse:collapse}table.fancytree-ext-table tbody tr.fancytree-focused{background-color:#99DEFD}table.fancytree-ext-table tbody tr.fancytree-active{background-color:#4169e1}table.fancytree-ext-table tbody tr.fancytree-selected{background-color:#99FDDE}\ No newline at end of filediff --git a/public/libraries/fancytree/skin-xp/vline-rtl.gif b/public/libraries/fancytree/skin-xp/vline-rtl.gifdeleted file mode 100644index 0400cb3eea..0000000000Binary files a/public/libraries/fancytree/skin-xp/vline-rtl.gif and /dev/null differdiff --git a/public/libraries/fancytree/skin-xp/vline.gif b/public/libraries/fancytree/skin-xp/vline.gifdeleted file mode 100644index 1b00ae50e0..0000000000Binary files a/public/libraries/fancytree/skin-xp/vline.gif and /dev/null differdiff --git a/public/libraries/fancytree/src/jquery.fancytree.ariagrid.js b/public/libraries/fancytree/src/jquery.fancytree.ariagrid.jsdeleted file mode 100644index cd79c8615f..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.ariagrid.js+++ /dev/null@@ -1,585 +0,0 @@-/*!- * jquery.fancytree.ariagrid.js- *- * Support ARIA compliant markup and keyboard navigation for tree grids with- * embedded input controls.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * @requires ext-table- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;( function( $, window, document, undefined ) {--"use strict";--/*- - References:- - https://github.com/w3c/aria-practices/issues/132- - https://rawgit.com/w3c/aria-practices/treegrid/examples/treegrid/treegrid-1.html- - https://github.com/mar10/fancytree/issues/709-- TODO:-- - In strict mode, how can a user leave an embedded text input, if it is- the only control in a row?-- - If rows are hidden I suggest aria-hidden="true" on them (may be optional)- => aria-hidden currently not set (instead: style="display: none") needs to- be added to ext-table-- - enable treeOpts.aria by default- => requires some benchmarks, confirm it does not affect performance too much-- - make ext-ariagrid part of ext-table (enable behavior with treeOpts.aria option)- => Requires stable specification-*/---/*******************************************************************************- * Private functions and variables- */--// Allow these navigation keys even when input controls are focused--var FT = $.ui.fancytree,- // TODO: define attribute- and class-names for better compression:- clsFancytreeActiveCell = "fancytree-active-cell",- clsFancytreeCellMode = "fancytree-cell-mode",- clsFancytreeCellNavMode = "fancytree-cell-nav-mode",- // Define which keys are handled by embedded control, and should *not* be- // passed to tree navigation handler:- INPUT_KEYS = {- "text": [ "left", "right", "home", "end", "backspace" ],- "number": [ "up", "down", "left", "right", "home", "end", "backspace" ],- "checkbox": [],- "link": [],- "radiobutton": [ "up", "down" ],- "select-one": [ "up", "down" ],- "select-multiple": [ "up", "down" ]- },- NAV_KEYS = [ "up", "down", "left", "right", "home", "end" ];---/* Calculate TD column index (considering colspans).*/-function setActiveDescendant( tree, $target ) {- var id = $target ? $target.uniqueId().attr( "id" ) : "";-- tree.$container.attr( "aria-activedescendant", id );-}---/* Calculate TD column index (considering colspans).*/-function getColIdx( $tr, $td ) {- var colspan,- td = $td.get( 0 ),- idx = 0;-- $tr.children().each( function() {- if ( this === td ) {- return false;- }- colspan = $( this ).prop( "colspan" );- idx += colspan ? colspan : 1;- });- return idx;-}---/* Find TD at given column index (considering colspans).*/-function findTdAtColIdx( $tr, colIdx ) {- var colspan,- res = null,- idx = 0;-- $tr.children().each( function() {- if ( idx >= colIdx ) {- res = $( this );- return false;- }- colspan = $( this ).prop( "colspan" );- idx += colspan ? colspan : 1;- });- return res;-}---/* Find adjacent cell for a given direction. Skip empty cells and consider merged cells */-function findNeighbourTd( tree, $target, keyCode ) {- var $td = $target.closest( "td" ),- $tr = $td.parent(),- treeOpts = tree.options,- colIdx = getColIdx( $tr, $td ),- $tdNext = null;-- switch ( keyCode ) {- case "left":- $tdNext = treeOpts.rtl ? $td.next() : $td.prev();- break;- case "right":- $tdNext = treeOpts.rtl ? $td.prev() : $td.next();- break;- case "up":- case "down":- while ( true ) {- $tr = keyCode === "up" ? $tr.prev() : $tr.next();- if ( !$tr.length ) {- break;- }- // Skip hidden rows- if ( $tr.is( ":hidden" ) ) {- continue;- }- // Find adjacent cell in the same column- $tdNext = findTdAtColIdx( $tr, colIdx );- break;- }- break;- case "ctrl+home":- $tdNext = findTdAtColIdx( $tr.siblings().first(), colIdx );- if ( $tdNext.is( ":hidden" ) ) {- $tdNext = findNeighbourTd( tree, $tdNext.parent(), "down" );- }- break;- case "ctrl+end":- $tdNext = findTdAtColIdx( $tr.siblings().last(), colIdx );- if ( $tdNext.is( ":hidden" ) ) {- $tdNext = findNeighbourTd( tree, $tdNext.parent(), "up" );- }- break;- case "home":- $tdNext = treeOpts.rtl ? $tr.children( "td" ).last() : $tr.children( "td" ).first();- break;- case "end":- $tdNext = treeOpts.rtl ? $tr.children( "td" ).first() : $tr.children( "td" ).last();- break;- }- return ( $tdNext && $tdNext.length ) ? $tdNext : null;-}--/**- * [ext-ariagrid] Set active cell and activate cell-mode if needed.- * Pass $td=null to enter row-mode.- *- * See also FancytreeNode#setActive(flag, {cell: idx})- *- * @param {jQuery | Element | integer} [$td]- * @alias Fancytree#activateCell- * @requires jquery.fancytree.ariagrid.js- * @since 2.23-*/-$.ui.fancytree._FancytreeClass.prototype.activateCell = function( $td ) {- var $input, $tr,- treeOpts = this.options,- opts = treeOpts.ariagrid,- $prevTd = this.$activeTd || null,- $prevTr = $prevTd ? $prevTd.closest( "tr" ) : null;-- // this.debug( "activateCell: " + ( $prevTd ? $prevTd.text() : "null" ) +- // " -> " + ( $td ? $td.text() : "OFF" ) );-- // TODO: make available as event- // if( this._triggerNodeEvent("cellActivate", node, event, {activeTd: tree.$activeTd, colIdx: colIdx}) === false ) {- // return false;- // }-- if ( $td ) {- FT.assert( $td.length, "Invalid active cell" );- this.$container.addClass( clsFancytreeCellMode );- $tr = $td.closest( "tr" );- if ( $prevTd ) {- // cell-mode => cell-mode- if ( $prevTd.is( $td ) ) {- return;- }- $prevTd- .removeAttr( "tabindex" )- .removeClass( clsFancytreeActiveCell );-- if ( !$prevTr.is( $tr ) ) {- // We are moving to a different row: only the inputs in the- // active row should be tabbable- $prevTr.find( ">td :input,a" ).attr( "tabindex", "-1" );- }- }- $tr.find( ">td :input:enabled,a" ).attr( "tabindex", "0" );- FT.getNode( $td ).setActive();- $td.addClass( clsFancytreeActiveCell );- this.$activeTd = $td;-- $input = $td.find( ":input:enabled,a" );- this.debug( "Focus input", $input );- if ( opts.autoFocusInput && $input.length ) {- $input.focus();- setActiveDescendant( this, $input );- } else {- $td.attr( "tabindex", "-1" ).focus();- setActiveDescendant( this, $td );- }- } else {- // $td == null: switch back to row-mode- this.$container.removeClass( clsFancytreeCellMode + " " + clsFancytreeCellNavMode );- // console.log("activateCell: set row-mode for " + this.activeNode, $prevTd);- if ( $prevTd ) {- // cell-mode => row-mode- $prevTd- .removeAttr( "tabindex" )- .removeClass( clsFancytreeActiveCell );- // In row-mode, only embedded inputs of the active row are tabbable- $prevTr.find( "td" )- .blur() // we need to blur first, because otherwise the focus frame is not reliably removed(?)- .removeAttr( "tabindex" );- $prevTr.find( ">td :input,a" ).attr( "tabindex", "-1" );- this.$activeTd = null;- // The cell lost focus, but the tree still needs to capture keys:- this.activeNode.setFocus();- setActiveDescendant( this, $tr );- } else {- // row-mode => row-mode (nothing to do)- }- }-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "ariagrid",- version: "2.23.0",- // Default options for this extension.- options: {- // Internal behavior flags, currently controlled via `extendedMode`- autoFocusInput: true, // true: user must hit Enter to focus control- activateCellOnDoubelclick: true,- enterToCellMode: false,- // End of internal flags- extendedMode: false,- cellFocus: "allow",- // TODO: document `defaultCellAction` event- // TODO: use a global tree option `name` or `title` instead?:- label: "Tree Grid" // Added as `aria-label` attribute- },-- treeInit: function( ctx ) {- var tree = ctx.tree,- treeOpts = ctx.options,- opts = treeOpts.ariagrid;-- // ariagrid requires the table extension to be loaded before itself- this._requireExtension( "table", true, true );- if ( !treeOpts.aria ) {- $.error( "ext-ariagrid requires `aria: true`" );- }-- this._superApply( arguments );-- this.$activeTd = null;- this.forceNavMode = false;- if ( opts.extendedMode ) {- opts.autoFocusInput = true; // false;- opts.enterToCellMode = true;- opts.activateCellOnDoubelclick = true;- this.forceNavMode = true;- }-- this.$container- .addClass( "fancytree-ext-ariagrid" )- .toggleClass( clsFancytreeCellNavMode, !!this.forceNavMode )- .attr( "aria-label", "" + opts.label );- this.$container.find( "thead > tr > th" )- .attr( "role", "columnheader" );-- this.nodeColumnIdx = treeOpts.table.nodeColumnIdx;- this.checkboxColumnIdx = treeOpts.table.checkboxColumnIdx;- if ( this.checkboxColumnIdx == null ) {- this.checkboxColumnIdx = this.nodeColumnIdx;- }-- this.$container.on( "focusin", function( event ) {- // Activate node if embedded input gets focus (due to a click)- var node = FT.getNode( event.target ),- $td = $( event.target ).closest( "td" );-- // tree.debug( "focusin: " + ( node ? node.title : "null" ) +- // ", target: " + ( $td ? $td.text() : null ) +- // ", node was active: " + ( node && node.isActive() ) +- // ", last cell: " + ( tree.$activeTd ? tree.$activeTd.text() : null ) );- // tree.debug( "focusin: target", event.target );-- if ( node && !$td.is( tree.$activeTd ) && $( event.target ).is( ":input" ) ) {- node.debug( "Activate cell on INPUT focus event" );- tree.activateCell( $td );- }-- }).on( "fancytreeinit", function( event, data ) {- if ( opts.cellFocus === "start" ) {- tree.debug( "Enforce cell-mode on init" );- tree.debug( "init", ( tree.getActiveNode() || tree.getFirstChild() ) );- ( tree.getActiveNode() || tree.getFirstChild() )- .setActive( true, { cell: tree.nodeColumnIdx });- tree.debug( "init2", ( tree.getActiveNode() || tree.getFirstChild() ) );- }-- }).on( "fancytreefocustree", function( event, data ) {- // Enforce cell-mode when container gets focus- if ( ( opts.cellFocus === "force" ) && !tree.activeTd ) {- var node = tree.getActiveNode() || tree.getFirstChild();- tree.debug( "Enforce cell-mode on focusTree event" );- node.setActive( true, { cell: 0 });- }- });- },- nodeClick: function( ctx ) {- var targetType = ctx.targetType,- tree = ctx.tree,- node = ctx.node,- event = ctx.originalEvent,- $td = $( event.target ).closest( "td" );-- tree.debug( "nodeClick: node: " + ( node ? node.title : "null" ) +- ", targetType: " + targetType +- ", target: " + ( $td.length ? $td.text() : null ) +- ", node was active: " + ( node && node.isActive() ) +- ", last cell: " + ( tree.$activeTd ? tree.$activeTd.text() : null ) );-- if ( tree.$activeTd ) {- // If already in cell-mode, activate new cell- tree.activateCell( $td );- return false;- }- return this._superApply( arguments );- },- nodeDblclick: function( ctx ) {- var tree = ctx.tree,- treeOpts = ctx.options,- opts = treeOpts.ariagrid,- event = ctx.originalEvent,- $td = $( event.target ).closest( "td" );-- // console.log("nodeDblclick", tree.$activeTd, ctx.options.ariagrid.cellFocus)- if ( opts.activateCellOnDoubelclick && !tree.$activeTd && opts.cellFocus === "allow" ) {- // If in row-mode, activate new cell- tree.activateCell( $td );- return false;- }- return this._superApply( arguments );- },- nodeRenderStatus: function( ctx ) {- // Set classes for current status- var res,- node = ctx.node,- $tr = $( node.tr );-- res = this._super( ctx );-- if ( node.parent ) {- $tr- .attr( "aria-level", node.getLevel() )- .attr( "aria-setsize", node.parent.children.length )- .attr( "aria-posinset", node.getIndex() + 1 );-- if ( $tr.is( ":hidden" ) ) {- $tr.attr( "aria-hidden", true );- } else {- $tr.removeAttr( "aria-hidden" );- }- // this.debug("nodeRenderStatus: " + this.$activeTd + ", " + $tr.attr("aria-expanded"));- // In cell-mode, move aria-expanded attribute from TR to first child TD- if ( this.$activeTd && $tr.attr( "aria-expanded" ) != null ) {- $tr.remove( "aria-expanded" );- $tr.find( "td" ).eq( this.nodeColumnIdx )- .attr( "aria-expanded", node.isExpanded() );- } else {- $tr.find( "td" ).eq( this.nodeColumnIdx ).removeAttr( "aria-expanded" );- }- }- return res;- },- nodeSetActive: function( ctx, flag, callOpts ) {- var $td,- node = ctx.node,- tree = ctx.tree,- // treeOpts = ctx.options,- // opts = treeOpts.ariagrid,- $tr = $( node.tr );-- flag = ( flag !== false );- // node.debug( "nodeSetActive(" + flag + ")" );- // Support custom `cell` option- if ( flag && callOpts && callOpts.cell != null ) {- // `cell` may be a col-index, <td>, or `$(td)`- if ( typeof callOpts.cell === "number" ) {- $td = findTdAtColIdx( $tr, callOpts.cell );- } else {- $td = $( callOpts.cell );- }- tree.activateCell( $td );- return;- }- // tree.debug( "nodeSetActive: activeNode " + this.activeNode );- return this._superApply( arguments );- },- nodeKeydown: function( ctx ) {- var handleKeys, inputType, $td,- tree = ctx.tree,- node = ctx.node,- treeOpts = ctx.options,- opts = treeOpts.ariagrid,- event = ctx.originalEvent,- eventString = FT.eventToString( event ),- $target = $( event.target ),- $activeTd = this.$activeTd,- $activeTr = $activeTd ? $activeTd.closest( "tr" ) : null,- colIdx = $activeTd ? getColIdx( $activeTr, $activeTd ) : -1,- forceNav = $activeTd && opts.extendedMode &&- tree.forceNavMode && $.inArray( eventString, NAV_KEYS ) >= 0;-- if ( $target.is( ":input:enabled" ) ) {- inputType = $target.prop( "type" );- } else if ( $target.is( "a" ) ) {- inputType = "link";- }- ctx.tree.debug( "nodeKeydown(" + eventString + "), activeTd: '" +- ( $activeTd && $activeTd.text() ) + "', inputType: " + inputType );-- if ( inputType && eventString !== "esc" && !forceNav ) {- handleKeys = INPUT_KEYS[ inputType ];- if ( handleKeys && $.inArray( eventString, handleKeys ) >= 0 ) {- return; // Let input control handle the key- }- }-- switch ( eventString ) {- case "right":- if ( $activeTd ) {- // Cell mode: move to neighbour (stop on right border)- $td = findNeighbourTd( tree, $activeTd, eventString );- if ( $td ) {- tree.activateCell( $td );- }- } else if ( node && !node.isExpanded() && node.hasChildren() !== false ) {- // Row mode and current node can be expanded:- // default handling will expand.- break;- } else {- // Row mode: switch to cell-mode- $td = $( node.tr ).find( ">td:first" );- tree.activateCell( $td );- }- return false; // no default handling-- case "left":- case "home":- case "end":- case "ctrl+home":- case "ctrl+end":- case "up":- case "down":- if ( $activeTd ) {- // Cell mode: move to neighbour- $td = findNeighbourTd( tree, $activeTd, eventString );- // Note: $td may be null if we move outside bounds. In this case- // we switch back to row-mode- if ( $td || opts.cellFocus !== "force" ) {- tree.activateCell( $td );- }- return false;- }- break;-- case "esc":- if ( opts.extendedMode && $activeTd && !tree.forceNavMode ) {- // Extended mode: switch from cell-edit-mode to cell-nav-mode- // $target.closest( "td" ).focus();- tree.forceNavMode = true;- tree.$container.addClass( clsFancytreeCellNavMode );- tree.debug( "Enter cell-edit-mode" );- return false;- } else if ( opts.extendedMode && $activeTd && opts.cellFocus !== "force" ) {- // Extended mode: switch back from cell-mode to row-mode- tree.activateCell( null );- return false;- }- break;-- case "return":- // Let caller override the default action:- if ( tree._triggerNodeEvent( "defaultCellAction", node, event,- { activeTd: tree.$activeTd, colIdx: colIdx }) === false ) {- return false;- }- if ( $activeTd ) {- // Apply 'default action' for embedded cell control- if ( colIdx === this.nodeColumnIdx ) {- node.toggleExpanded();- return false;- } else if ( colIdx === this.checkboxColumnIdx ) {- node.toggleSelected();- return false;- } else if ( $activeTd.find( ":checkbox:enabled" ).length ) {- // Embedded checkboxes are always toggled (ignoring `autoFocusInput`)- $activeTd.find( ":checkbox:enabled" ).click();- return false;- } else if ( opts.extendedMode && tree.forceNavMode && $target.is( ":input" ) ) {- tree.forceNavMode = false;- tree.$container.removeClass( clsFancytreeCellNavMode );- tree.debug( "enable cell-edit-mode" );- // Switch from input-mode back to cell-mode- // setTimeout( function() {- // $activeTd.focus();- // }, 0 );- // } else if ( !opts.autoFocusInput && !inputType &&- // $activeTd.find( ":input:enabled" ).length ) {- // // autoFocusInput is off:- // // If we don't focus embedded inputs on navigation by default,- // // we do it as ENTER default action- // $target.find( ":input:enabled" ).focus();- // return false;- } else if ( $activeTd.find( "a" ).length ) {- $activeTd.find( "a" )[ 0 ].click();- return false;- }- return false;- } else {- // ENTER in row-mode- if ( opts.enterToCellMode ) {- // Switch from row-mode to cell-mode- $td = $( node.tr ).find( ">td:nth(" + this.nodeColumnIdx + ")" );- tree.activateCell( $td );- return false; // no default handling- }- }- break;- case "space":- if ( $activeTd ) {- if ( colIdx === this.checkboxColumnIdx ) {- node.toggleSelected();- } else if ( $activeTd.find( ":checkbox:enabled" ).length ) {- $activeTd.find( ":checkbox:enabled" ).click();- }- return false; // no default handling- }- break;- default:- // Allow to focus input by typing alphanum keys:- // TODO: not so easy to simulate keytrokes on inputs!- // http://stackoverflow.com/questions/6124692/jquery-simulating-keypress-event-on-an-input-field- // if ( opts.extendedMode && $activeTd &&- // eventString.length === 1 &&- // !$target.is(":input") && $activeTd.find(":input:enabled").length ) {- // alert("in");- // return false; // no default handling- // }- }- return this._superApply( arguments );- }-});-})( jQuery, window, document );diff --git a/public/libraries/fancytree/src/jquery.fancytree.childcounter.js b/public/libraries/fancytree/src/jquery.fancytree.childcounter.jsdeleted file mode 100644index 4984330b25..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.childcounter.js+++ /dev/null@@ -1,210 +0,0 @@-// Extending Fancytree-// ===================-//-// See also the [live demo](http://wwwendt.de/tech/fancytree/demo/sample-ext-childcounter.html) of this code.-//-// Every extension should have a comment header containing some information-// about the author, copyright and licensing. Also a pointer to the latest-// source code.-// Prefix with `/*!` so the comment is not removed by the minifier.--/*!- * jquery.fancytree.childcounter.js- *- * Add a child counter bubble to tree nodes.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--// To keep the global namespace clean, we wrap everything in a closure--;(function($, undefined) {--// Consider to use [strict mode](http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/)-"use strict";--// The [coding guidelines](http://contribute.jquery.org/style-guide/js/)-// require jshint compliance.-// But for this sample, we want to allow unused variables for demonstration purpose.--/*jshint unused:false */---// Adding methods-// ----------------// New member functions can be added to the `Fancytree` class.-// This function will be available for every tree instance:-//-// var tree = $("#tree").fancytree("getTree");-// tree.countSelected(false);--$.ui.fancytree._FancytreeClass.prototype.countSelected = function(topOnly){- var tree = this,- treeOptions = tree.options;-- return tree.getSelectedNodes(topOnly).length;-};---// The `FancytreeNode` class can also be easily extended. This would be called-// like-// node.updateCounters();-//-// It is also good practice to add a docstring comment.-/**- * [ext-childcounter] Update counter badges for `node` and its parents.- * May be called in the `loadChildren` event, to update parents of lazy loaded- * nodes.- * @alias FancytreeNode#updateCounters- * @requires jquery.fancytree.childcounters.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.updateCounters = function(){- var node = this,- $badge = $("span.fancytree-childcounter", node.span),- extOpts = node.tree.options.childcounter,- count = node.countChildren(extOpts.deep);-- node.data.childCounter = count;- if( (count || !extOpts.hideZeros) && (!node.isExpanded() || !extOpts.hideExpanded) ) {- if( !$badge.length ) {- $badge = $("<span class='fancytree-childcounter'/>").appendTo($("span.fancytree-icon", node.span));- }- $badge.text(count);- } else {- $badge.remove();- }- if( extOpts.deep && !node.isTopLevel() && !node.isRoot() ) {- node.parent.updateCounters();- }-};---// Finally, we can extend the widget API and create functions that are called-// like so:-//-// $("#tree").fancytree("widgetMethod1", "abc");--$.ui.fancytree.prototype.widgetMethod1 = function(arg1){- var tree = this.tree;- return arg1;-};---// Register a Fancytree extension-// -------------------------------// A full blown extension, extension is available for all trees and can be-// enabled like so (see also the [live demo](http://wwwendt.de/tech/fancytree/demo/sample-ext-childcounter.html)):-//-// <script src="../src/jquery.fancytree.js"></script>-// <script src="../src/jquery.fancytree.childcounter.js"></script>-// ...-//-// $("#tree").fancytree({-// extensions: ["childcounter"],-// childcounter: {-// hideExpanded: true-// },-// ...-// });-//---/* 'childcounter' extension */-$.ui.fancytree.registerExtension({-// Every extension must be registered by a unique name.- name: "childcounter",-// Version information should be compliant with [semver](http://semver.org)- version: "2.23.0",--// Extension specific options and their defaults.-// This options will be available as `tree.options.childcounter.hideExpanded`-- options: {- deep: true,- hideZeros: true,- hideExpanded: false- },--// Attributes other than `options` (or functions) can be defined here, and-// will be added to the tree.ext.EXTNAME namespace, in this case `tree.ext.childcounter.foo`.-// They can also be accessed as `this._local.foo` from within the extension-// methods.- foo: 42,--// Local functions are prefixed with an underscore '_'.-// Callable as `this._local._appendCounter()`.-- _appendCounter: function(bar){- var tree = this;- },--// **Override virtual methods for this extension.**-//-// Fancytree implements a number of 'hook methods', prefixed by 'node...' or 'tree...'.-// with a `ctx` argument (see [EventData](http://www.wwwendt.de/tech/fancytree/doc/jsdoc/global.html#EventData)-// for details) and an extended calling context:<br>-// `this` : the Fancytree instance<br>-// `this._local`: the namespace that contains extension attributes and private methods (same as this.ext.EXTNAME)<br>-// `this._super`: the virtual function that was overridden (member of previous extension or Fancytree)-//-// See also the [complete list of available hook functions](http://www.wwwendt.de/tech/fancytree/doc/jsdoc/Fancytree_Hooks.html).-- /* Init */-// `treeInit` is triggered when a tree is initalized. We can set up classes or-// bind event handlers here...- treeInit: function(ctx){- var tree = this, // same as ctx.tree,- opts = ctx.options,- extOpts = ctx.options.childcounter;-// Optionally check for dependencies with other extensions- /* this._requireExtension("glyph", false, false); */-// Call the base implementation- this._superApply(arguments);-// Add a class to the tree container- this.$container.addClass("fancytree-ext-childcounter");- },--// Destroy this tree instance (we only call the default implementation, so-// this method could as well be omitted).-- treeDestroy: function(ctx){- this._superApply(arguments);- },--// Overload the `renderTitle` hook, to append a counter badge- nodeRenderTitle: function(ctx, title) {- var node = ctx.node,- extOpts = ctx.options.childcounter,- count = (node.data.childCounter == null) ? node.countChildren(extOpts.deep) : +node.data.childCounter;-// Let the base implementation render the title-// We use `_super()` instead of `_superApply()` here, since it is a little bit-// more performant when called often- this._super(ctx, title);-// Append a counter badge- if( (count || ! extOpts.hideZeros) && (!node.isExpanded() || !extOpts.hideExpanded) ){- $("span.fancytree-icon", node.span).append($("<span class='fancytree-childcounter'/>").text(count));- }- },-// Overload the `setExpanded` hook, so the counters are updated- nodeSetExpanded: function(ctx, flag, callOpts) {- var tree = ctx.tree,- node = ctx.node;-// Let the base implementation expand/collapse the node, then redraw the title-// after the animation has finished- return this._superApply(arguments).always(function(){- tree.nodeRenderTitle(ctx);- });- }--// End of extension definition-});-// End of namespace closure-}(jQuery));diff --git a/public/libraries/fancytree/src/jquery.fancytree.clones.js b/public/libraries/fancytree/src/jquery.fancytree.clones.jsdeleted file mode 100644index ae83787bf0..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.clones.js+++ /dev/null@@ -1,465 +0,0 @@-/*!- *- * jquery.fancytree.clones.js- * Support faster lookup of nodes by key and shared ref-ids.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/*******************************************************************************- * Private functions and variables- */-function _assert(cond, msg){- // TODO: see qunit.js extractStacktrace()- if(!cond){- msg = msg ? ": " + msg : "";- $.error("Assertion failed" + msg);- }-}---/* Return first occurrence of member from array. */-function _removeArrayMember(arr, elem) {- // TODO: use Array.indexOf for IE >= 9- var i;- for (i = arr.length - 1; i >= 0; i--) {- if (arr[i] === elem) {- arr.splice(i, 1);- return true;- }- }- return false;-}---// /**-// * Calculate a 32 bit FNV-1a hash-// * Found here: https://gist.github.com/vaiorabbit/5657561-// * Ref.: http://isthe.com/chongo/tech/comp/fnv/-// *-// * @param {string} str the input value-// * @param {boolean} [asString=false] set to true to return the hash value as-// * 8-digit hex string instead of an integer-// * @param {integer} [seed] optionally pass the hash of the previous chunk-// * @returns {integer | string}-// */-// function hashFnv32a(str, asString, seed) {-// /*jshint bitwise:false */-// var i, l,-// hval = (seed === undefined) ? 0x811c9dc5 : seed;--// for (i = 0, l = str.length; i < l; i++) {-// hval ^= str.charCodeAt(i);-// hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24);-// }-// if( asString ){-// // Convert to 8 digit hex string-// return ("0000000" + (hval >>> 0).toString(16)).substr(-8);-// }-// return hval >>> 0;-// }---/**- * JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)- *- * @author <a href="mailto:[email protected]">Gary Court</a>- * @see http://github.com/garycourt/murmurhash-js- * @author <a href="mailto:[email protected]">Austin Appleby</a>- * @see http://sites.google.com/site/murmurhash/- *- * @param {string} key ASCII only- * @param {boolean} [asString=false]- * @param {number} seed Positive integer only- * @return {number} 32-bit positive integer hash- */-function hashMurmur3(key, asString, seed) {- /*jshint bitwise:false */- var h1b, k1,- remainder = key.length & 3,- bytes = key.length - remainder,- h1 = seed,- c1 = 0xcc9e2d51,- c2 = 0x1b873593,- i = 0;-- while (i < bytes) {- k1 =- ((key.charCodeAt(i) & 0xff)) |- ((key.charCodeAt(++i) & 0xff) << 8) |- ((key.charCodeAt(++i) & 0xff) << 16) |- ((key.charCodeAt(++i) & 0xff) << 24);- ++i;-- k1 = ((((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16))) & 0xffffffff;- k1 = (k1 << 15) | (k1 >>> 17);- k1 = ((((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16))) & 0xffffffff;-- h1 ^= k1;- h1 = (h1 << 13) | (h1 >>> 19);- h1b = ((((h1 & 0xffff) * 5) + ((((h1 >>> 16) * 5) & 0xffff) << 16))) & 0xffffffff;- h1 = (((h1b & 0xffff) + 0x6b64) + ((((h1b >>> 16) + 0xe654) & 0xffff) << 16));- }-- k1 = 0;-- switch (remainder) {- /*jshint -W086:true */- case 3: k1 ^= (key.charCodeAt(i + 2) & 0xff) << 16;- case 2: k1 ^= (key.charCodeAt(i + 1) & 0xff) << 8;- case 1: k1 ^= (key.charCodeAt(i) & 0xff);-- k1 = (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0xffffffff;- k1 = (k1 << 15) | (k1 >>> 17);- k1 = (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0xffffffff;- h1 ^= k1;- }-- h1 ^= key.length;-- h1 ^= h1 >>> 16;- h1 = (((h1 & 0xffff) * 0x85ebca6b) + ((((h1 >>> 16) * 0x85ebca6b) & 0xffff) << 16)) & 0xffffffff;- h1 ^= h1 >>> 13;- h1 = ((((h1 & 0xffff) * 0xc2b2ae35) + ((((h1 >>> 16) * 0xc2b2ae35) & 0xffff) << 16))) & 0xffffffff;- h1 ^= h1 >>> 16;-- if( asString ){- // Convert to 8 digit hex string- return ("0000000" + (h1 >>> 0).toString(16)).substr(-8);- }- return h1 >>> 0;-}--// console.info(hashMurmur3("costarring"));-// console.info(hashMurmur3("costarring", true));-// console.info(hashMurmur3("liquid"));-// console.info(hashMurmur3("liquid", true));---/*- * Return a unique key for node by calculationg the hash of the parents refKey-list- */-function calcUniqueKey(node) {- var key,- path = $.map(node.getParentList(false, true), function(e){ return e.refKey || e.key; });- path = path.join("/");- key = "id_" + hashMurmur3(path, true);- // node.debug(path + " -> " + key);- return key;-}---/**- * [ext-clones] Return a list of clone-nodes or null.- * @param {boolean} [includeSelf=false]- * @returns {FancytreeNode[] | null}- *- * @alias FancytreeNode#getCloneList- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.getCloneList = function(includeSelf){- var key,- tree = this.tree,- refList = tree.refMap[this.refKey] || null,- keyMap = tree.keyMap;-- if( refList ) {- key = this.key;- // Convert key list to node list- if( includeSelf ) {- refList = $.map(refList, function(val){ return keyMap[val]; });- } else {- refList = $.map(refList, function(val){ return val === key ? null : keyMap[val]; });- if( refList.length < 1 ) {- refList = null;- }- }- }- return refList;-};---/**- * [ext-clones] Return true if this node has at least another clone with same refKey.- * @returns {boolean}- *- * @alias FancytreeNode#isClone- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.isClone = function(){- var refKey = this.refKey || null,- refList = refKey && this.tree.refMap[refKey] || null;- return !!(refList && refList.length > 1);-};---/**- * [ext-clones] Update key and/or refKey for an existing node.- * @param {string} key- * @param {string} refKey- * @returns {boolean}- *- * @alias FancytreeNode#reRegister- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.reRegister = function(key, refKey){- key = (key == null) ? null : "" + key;- refKey = (refKey == null) ? null : "" + refKey;- // this.debug("reRegister", key, refKey);-- var tree = this.tree,- prevKey = this.key,- prevRefKey = this.refKey,- keyMap = tree.keyMap,- refMap = tree.refMap,- refList = refMap[prevRefKey] || null,-// curCloneKeys = refList ? node.getCloneList(true),- modified = false;-- // Key has changed: update all references- if( key != null && key !== this.key ) {- if( keyMap[key] ) {- $.error("[ext-clones] reRegister(" + key + "): already exists: " + this);- }- // Update keyMap- delete keyMap[prevKey];- keyMap[key] = this;- // Update refMap- if( refList ) {- refMap[prevRefKey] = $.map(refList, function(e){- return e === prevKey ? key : e;- });- }- this.key = key;- modified = true;- }-- // refKey has changed- if( refKey != null && refKey !== this.refKey ) {- // Remove previous refKeys- if( refList ){- if( refList.length === 1 ){- delete refMap[prevRefKey];- }else{- refMap[prevRefKey] = $.map(refList, function(e){- return e === prevKey ? null : e;- });- }- }- // Add refKey- if( refMap[refKey] ) {- refMap[refKey].append(key);- }else{- refMap[refKey] = [ this.key ];- }- this.refKey = refKey;- modified = true;- }- return modified;-};---/**- * [ext-clones] Define a refKey for an existing node.- * @param {string} refKey- * @returns {boolean}- *- * @alias FancytreeNode#setRefKey- * @requires jquery.fancytree.clones.js- * @since 2.16- */-$.ui.fancytree._FancytreeNodeClass.prototype.setRefKey = function(refKey){- return this.reRegister(null, refKey);-};---/**- * [ext-clones] Return all nodes with a given refKey (null if not found).- * @param {string} refKey- * @param {FancytreeNode} [rootNode] optionally restrict results to descendants of this node- * @returns {FancytreeNode[] | null}- * @alias Fancytree#getNodesByRef- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeClass.prototype.getNodesByRef = function(refKey, rootNode){- var keyMap = this.keyMap,- refList = this.refMap[refKey] || null;-- if( refList ) {- // Convert key list to node list- if( rootNode ) {- refList = $.map(refList, function(val){- var node = keyMap[val];- return node.isDescendantOf(rootNode) ? node : null;- });- }else{- refList = $.map(refList, function(val){ return keyMap[val]; });- }- if( refList.length < 1 ) {- refList = null;- }- }- return refList;-};---/**- * [ext-clones] Replace a refKey with a new one.- * @param {string} oldRefKey- * @param {string} newRefKey- * @alias Fancytree#changeRefKey- * @requires jquery.fancytree.clones.js- */-$.ui.fancytree._FancytreeClass.prototype.changeRefKey = function(oldRefKey, newRefKey) {- var i, node,- keyMap = this.keyMap,- refList = this.refMap[oldRefKey] || null;-- if (refList) {- for (i = 0; i < refList.length; i++) {- node = keyMap[refList[i]];- node.refKey = newRefKey;- }- delete this.refMap[oldRefKey];- this.refMap[newRefKey] = refList;- }-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "clones",- version: "2.23.0",- // Default options for this extension.- options: {- highlightActiveClones: true, // set 'fancytree-active-clone' on active clones and all peers- highlightClones: false // set 'fancytree-clone' class on any node that has at least one clone- },-- treeCreate: function(ctx){- this._superApply(arguments);- ctx.tree.refMap = {};- ctx.tree.keyMap = {};- },- treeInit: function(ctx){- this.$container.addClass("fancytree-ext-clones");- _assert(ctx.options.defaultKey == null);- // Generate unique / reproducible default keys- ctx.options.defaultKey = function(node){- return calcUniqueKey(node);- };- // The default implementation loads initial data- this._superApply(arguments);- },- treeClear: function(ctx){- ctx.tree.refMap = {};- ctx.tree.keyMap = {};- return this._superApply(arguments);- },- treeRegisterNode: function(ctx, add, node) {- var refList, len,- tree = ctx.tree,- keyMap = tree.keyMap,- refMap = tree.refMap,- key = node.key,- refKey = (node && node.refKey != null) ? "" + node.refKey : null;--// ctx.tree.debug("clones.treeRegisterNode", add, node);-- if( node.isStatusNode() ){- return this._super(ctx, add, node);- }-- if( add ) {- if( keyMap[node.key] != null ) {- $.error("clones.treeRegisterNode: node.key already exists: " + node);- }- keyMap[key] = node;- if( refKey ) {- refList = refMap[refKey];- if( refList ) {- refList.push(key);- if( refList.length === 2 && ctx.options.clones.highlightClones ) {- // Mark peer node, if it just became a clone (no need to- // mark current node, since it will be rendered later anyway)- keyMap[refList[0]].renderStatus();- }- } else {- refMap[refKey] = [key];- }- // node.debug("clones.treeRegisterNode: add clone =>", refMap[refKey]);- }- }else {- if( keyMap[key] == null ) {- $.error("clones.treeRegisterNode: node.key not registered: " + node.key);- }- delete keyMap[key];- if( refKey ) {- refList = refMap[refKey];- // node.debug("clones.treeRegisterNode: remove clone BEFORE =>", refMap[refKey]);- if( refList ) {- len = refList.length;- if( len <= 1 ){- _assert(len === 1);- _assert(refList[0] === key);- delete refMap[refKey];- }else{- _removeArrayMember(refList, key);- // Unmark peer node, if this was the only clone- if( len === 2 && ctx.options.clones.highlightClones ) {-// node.debug("clones.treeRegisterNode: last =>", node.getCloneList());- keyMap[refList[0]].renderStatus();- }- }- // node.debug("clones.treeRegisterNode: remove clone =>", refMap[refKey]);- }- }- }- return this._super(ctx, add, node);- },- nodeRenderStatus: function(ctx) {- var $span, res,- node = ctx.node;-- res = this._super(ctx);-- if( ctx.options.clones.highlightClones ) {- $span = $(node[ctx.tree.statusClassPropName]);- // Only if span already exists- if( $span.length && node.isClone() ){-// node.debug("clones.nodeRenderStatus: ", ctx.options.clones.highlightClones);- $span.addClass("fancytree-clone");- }- }- return res;- },- nodeSetActive: function(ctx, flag, callOpts) {- var res,- scpn = ctx.tree.statusClassPropName,- node = ctx.node;-- res = this._superApply(arguments);-- if( ctx.options.clones.highlightActiveClones && node.isClone() ) {- $.each(node.getCloneList(true), function(idx, n){- // n.debug("clones.nodeSetActive: ", flag !== false);- $(n[scpn]).toggleClass("fancytree-active-clone", flag !== false);- });- }- return res;- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.columnview.js b/public/libraries/fancytree/src/jquery.fancytree.columnview.jsdeleted file mode 100644index 989c4de383..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.columnview.js+++ /dev/null@@ -1,150 +0,0 @@-/*!- * jquery.fancytree.columnview.js- *- * Render tree like a Mac Finder's column view.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--// prevent duplicate loading-// if ( $.ui.fancytree && $.ui.fancytree.version ) {-// $.ui.fancytree.warn("Fancytree: duplicate include");-// return;-// }---/*******************************************************************************- * Private functions and variables- */-/*-function _assert(cond, msg){- msg = msg || "";- if(!cond){- $.error("Assertion failed " + msg);- }-}-*/--/*******************************************************************************- * Private functions and variables- */-$.ui.fancytree.registerExtension({- name: "columnview",- version: "2.23.0",- // Default options for this extension.- options: {- },- // Overide virtual methods for this extension.- // `this` : is this extension object- // `this._base` : the Fancytree instance- // `this._super`: the virtual function that was overriden (member of prev. extension or Fancytree)- treeInit: function(ctx){- var $tdFirst, $ul,- tree = ctx.tree,- $table = tree.widget.element;-- tree.tr = $("tbody tr", $table)[0];- tree.columnCount = $(">td", tree.tr).length;- // Perform default behavior- this._superApply(arguments);- // Standard Fancytree created a root <ul>. Now move this into first table cell- $ul = $(tree.rootNode.ul);- $tdFirst = $(">td", tree.tr).eq(0);-- $ul.removeClass("fancytree-container");- $ul.removeAttr("tabindex");- tree.$container = $table;- $table.addClass("fancytree-container fancytree-ext-columnview");- $table.attr("tabindex", "0");-- $tdFirst.empty();- $ul.detach().appendTo($tdFirst);-- // Force some required options- tree.widget.options.autoCollapse = true;-// tree.widget.options.autoActivate = true;- tree.widget.options.toggleEffect = false;- tree.widget.options.clickFolderMode = 1;-- // Make sure that only active path is expanded when a node is activated:- $table.bind("fancytreeactivate", function(event, data){- var i, tdList,- node = data.node,- tree = data.tree,- level = node.getLevel();-- tree._callHook("nodeCollapseSiblings", node);- // Clear right neighbours- if(level <= tree.columnCount){- tdList = $(">td", tree.tr);- for(i=level; i<tree.columnCount; i++){- tdList.eq(i).empty();- }- }- // Expand nodes on activate, so we populate the right neighbor cell- if(!node.expanded && (node.children || node.lazy)) {- node.setExpanded();- }- // Adjust keyboard behaviour:- }).bind("fancytreekeydown", function(event, data){- var next = null,- node = data.node || data.tree.getFirstChild();- switch(event.which){- case $.ui.keyCode.DOWN:- next = node.getNextSibling();- if( next ){- next.setFocus();- }- return false;- case $.ui.keyCode.LEFT:- next = node.getParent();- if( next ){- next.setFocus();- }- return false;- case $.ui.keyCode.UP:- next = node.getPrevSibling();- if( next ){- next.setFocus();- }- return false;- }- });- },- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- // Render standard nested <ul> - <li> hierarchy- this._super(ctx, force, deep, collapsed, _recursive);- // Remove expander and add a trailing triangle instead- var level, $tdChild, $ul,- tree = ctx.tree,- node = ctx.node,- $span = $(node.span);-- $span.find("span.fancytree-expander").remove();- if(node.hasChildren() !== false && !$span.find("span.fancytree-cv-right").length){- $span.append($("<span class='fancytree-icon fancytree-cv-right'>"));- }- // Move <ul> with children into the appropriate <td>- if(node.ul){- node.ul.style.display = ""; // might be hidden if RIGHT was pressed- level = node.getLevel();- if(level < tree.columnCount){- $tdChild = $(">td", tree.tr).eq(level);- $ul = $(node.ul).detach();- $tdChild.empty().append($ul);- }- }- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.debug.js b/public/libraries/fancytree/src/jquery.fancytree.debug.jsdeleted file mode 100644index f9152140ec..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.debug.js+++ /dev/null@@ -1,142 +0,0 @@-/*!- * jquery.fancytree.debug.js- *- * Miscellaneous debug extensions.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--// prevent duplicate loading-// if ( $.ui.fancytree && $.ui.fancytree.version ) {-// $.ui.fancytree.warn("Fancytree: duplicate include");-// return;-// }---/* *****************************************************************************- * Private functions and variables- */-var i,- HOOK_NAMES = "nodeClick nodeCollapseSiblings".split(" "),- EVENT_NAMES = "activate beforeActivate".split(" "),- HOOK_NAME_MAP = {},- EVENT_NAME_MAP = {};--for(i=0; i<HOOK_NAMES.length; i++){ HOOK_NAME_MAP[HOOK_NAMES[i]] = true; }-for(i=0; i<EVENT_NAMES.length; i++){ EVENT_NAME_MAP[EVENT_NAMES[i]] = true; }--/* *****************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "tracecalls",- version: "2.23.0",- // Default options for this extension.- options: {- logTarget: null, // optional redirect logging to this <div> tag- traceEvents: false, // `true`or list of hook names- traceHooks: false // `true`or list of event names- },- // Overide virtual methods for this extension.- // `this` : is this Fancytree object- // `this._super`: the virtual function that was overridden (member of prev. extension or Fancytree)- treeInit: function(ctx){- var tree = ctx.tree;-- // Bind init-handler to apply cookie state- tree.$div.bind("fancytreeinit", function(event){- tree.debug("COOKIE " + document.cookie);- });- // Init the tree- this._superApply(arguments);- },- nodeClick: function(ctx) {- if(this.options.tracecalls.traceHooks){- this.debug();- }- },- nodeCollapseSiblings: function(ctx) {- },- nodeDblclick: function(ctx) {- },- nodeKeydown: function(ctx) {- },- nodeLoadChildren: function(ctx, source) {- },- nodeOnFocusInOut: function(ctx) {- },- nodeRemoveChildMarkup: function(ctx) {- },- nodeRemoveMarkup: function(ctx) {- },- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- },- nodeRenderStatus: function(ctx) {- },- nodeRenderTitle: function(ctx, title) {- },- nodeSetActive: function(ctx, flag, callOpts) {- },- nodeSetExpanded: function(ctx, flag, callOpts) {- },- nodeSetFocus: function(ctx) {- },- nodeSetSelected: function(ctx, flag, callOpts) {- },- nodeSetStatus: function(ctx, status, message, details) {- },- nodeToggleExpanded: function(ctx) {- },- nodeToggleSelected: function(ctx) {- },- treeClear: function(ctx) {- },- treeCreate: function(ctx) {- },- treeDestroy: function(ctx) {- },-// treeInit: function(ctx) {-// },- treeLoad: function(ctx, source) {- },- treeSetFocus: function(ctx, flag) {- }-});--}(jQuery, window, document));----/* *****************************************************************************- * Fancytree extension: profiler- */-;(function($, window, document, undefined) {- $.ui.fancytree.registerExtension({- name: "profiler",- version: "2.23.0",- // Default options for this extension- options: {- prefix: ""- },- // Overide virtual methods for this extension- nodeRender: function(ctx, force, deep, collapsed){- // ctx.tree.debug("**** PROFILER nodeRender");- var s = this.options.prefix + "render '" + ctx.node + "'";- /*jshint expr:true */- window.console && window.console.time && window.console.time(s);- this._superApply(arguments);- window.console && window.console.timeEnd && window.console.timeEnd(s);- }- });-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.dnd.js b/public/libraries/fancytree/src/jquery.fancytree.dnd.jsdeleted file mode 100644index d335ee4529..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.dnd.js+++ /dev/null@@ -1,572 +0,0 @@-/*!- * jquery.fancytree.dnd.js- *- * Drag-and-drop support (jQuery UI draggable/droppable).- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */-var didRegisterDnd = false,- classDropAccept = "fancytree-drop-accept",- classDropAfter = "fancytree-drop-after",- classDropBefore = "fancytree-drop-before",- classDropOver = "fancytree-drop-over",- classDropReject = "fancytree-drop-reject",- classDropTarget = "fancytree-drop-target";--/* Convert number to string and prepend +/-; return empty string for 0.*/-function offsetString(n){- return n === 0 ? "" : (( n > 0 ) ? ("+" + n) : ("" + n));-}--//--- Extend ui.draggable event handling ----------------------------------------function _registerDnd() {- if(didRegisterDnd){- return;- }-- // Register proxy-functions for draggable.start/drag/stop-- $.ui.plugin.add("draggable", "connectToFancytree", {- start: function(event, ui) {- // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10- var draggable = $(this).data("ui-draggable") || $(this).data("draggable"),- sourceNode = ui.helper.data("ftSourceNode") || null;-- if(sourceNode) {- // Adjust helper offset, so cursor is slightly outside top/left corner- draggable.offset.click.top = -2;- draggable.offset.click.left = + 16;- // Trigger dragStart event- // TODO: when called as connectTo..., the return value is ignored(?)- return sourceNode.tree.ext.dnd._onDragEvent("start", sourceNode, null, event, ui, draggable);- }- },- drag: function(event, ui) {- var ctx, isHelper, logObject,- // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10- draggable = $(this).data("ui-draggable") || $(this).data("draggable"),- sourceNode = ui.helper.data("ftSourceNode") || null,- prevTargetNode = ui.helper.data("ftTargetNode") || null,- targetNode = $.ui.fancytree.getNode(event.target),- dndOpts = sourceNode && sourceNode.tree.options.dnd;-- // logObject = sourceNode || prevTargetNode || $.ui.fancytree;- // logObject.debug("Drag event:", event, event.shiftKey);- if(event.target && !targetNode){- // We got a drag event, but the targetNode could not be found- // at the event location. This may happen,- // 1. if the mouse jumped over the drag helper,- // 2. or if a non-fancytree element is dragged- // We ignore it:- isHelper = $(event.target).closest("div.fancytree-drag-helper,#fancytree-drop-marker").length > 0;- if(isHelper){- logObject = sourceNode || prevTargetNode || $.ui.fancytree;- logObject.debug("Drag event over helper: ignored.");- return;- }- }- ui.helper.data("ftTargetNode", targetNode);-- if( dndOpts && dndOpts.updateHelper ) {- ctx = sourceNode.tree._makeHookContext(sourceNode, event, {- otherNode: targetNode,- ui: ui,- draggable: draggable,- dropMarker: $("#fancytree-drop-marker")- });- dndOpts.updateHelper.call(sourceNode.tree, sourceNode, ctx);- }-- // Leaving a tree node- if(prevTargetNode && prevTargetNode !== targetNode ) {- prevTargetNode.tree.ext.dnd._onDragEvent("leave", prevTargetNode, sourceNode, event, ui, draggable);- }- if(targetNode){- if(!targetNode.tree.options.dnd.dragDrop) {- // not enabled as drop target- } else if(targetNode === prevTargetNode) {- // Moving over same node- targetNode.tree.ext.dnd._onDragEvent("over", targetNode, sourceNode, event, ui, draggable);- }else{- // Entering this node first time- targetNode.tree.ext.dnd._onDragEvent("enter", targetNode, sourceNode, event, ui, draggable);- targetNode.tree.ext.dnd._onDragEvent("over", targetNode, sourceNode, event, ui, draggable);- }- }- // else go ahead with standard event handling- },- stop: function(event, ui) {- var logObject,- // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10:- draggable = $(this).data("ui-draggable") || $(this).data("draggable"),- sourceNode = ui.helper.data("ftSourceNode") || null,- targetNode = ui.helper.data("ftTargetNode") || null,- dropped = (event.type === "mouseup" && event.which === 1);-- if(!dropped){- logObject = sourceNode || targetNode || $.ui.fancytree;- logObject.debug("Drag was cancelled");- }- if(targetNode) {- if(dropped){- targetNode.tree.ext.dnd._onDragEvent("drop", targetNode, sourceNode, event, ui, draggable);- }- targetNode.tree.ext.dnd._onDragEvent("leave", targetNode, sourceNode, event, ui, draggable);- }- if(sourceNode){- sourceNode.tree.ext.dnd._onDragEvent("stop", sourceNode, null, event, ui, draggable);- }- }- });-- didRegisterDnd = true;-}---/* *****************************************************************************- * Drag and drop support- */-function _initDragAndDrop(tree) {- var dnd = tree.options.dnd || null,- glyph = tree.options.glyph || null;-- // Register 'connectToFancytree' option with ui.draggable- if( dnd ) {- _registerDnd();- }- // Attach ui.draggable to this Fancytree instance- if(dnd && dnd.dragStart ) {- tree.widget.element.draggable($.extend({- addClasses: false,- // DT issue 244: helper should be child of scrollParent:- appendTo: tree.$container,-// appendTo: "body",- containment: false,-// containment: "parent",- delay: 0,- distance: 4,- revert: false,- scroll: true, // to disable, also set css 'position: inherit' on ul.fancytree-container- scrollSpeed: 7,- scrollSensitivity: 10,- // Delegate draggable.start, drag, and stop events to our handler- connectToFancytree: true,- // Let source tree create the helper element- helper: function(event) {- var $helper, $nodeTag, opts,- sourceNode = $.ui.fancytree.getNode(event.target);-- if(!sourceNode){- // #405, DT issue 211: might happen, if dragging a table *header*- return "<div>ERROR?: helper requested but sourceNode not found</div>";- }- opts = sourceNode.tree.options.dnd;- $nodeTag = $(sourceNode.span);- // Only event and node argument is available- $helper = $("<div class='fancytree-drag-helper'><span class='fancytree-drag-helper-img' /></div>")- .css({zIndex: 3, position: "relative"}) // so it appears above ext-wide selection bar- .append($nodeTag.find("span.fancytree-title").clone());-- // Attach node reference to helper object- $helper.data("ftSourceNode", sourceNode);-- // Support glyph symbols instead of icons- if( glyph ) {- $helper.find(".fancytree-drag-helper-img")- .addClass(glyph.map.dragHelper);- }- // Allow to modify the helper, e.g. to add multi-node-drag feedback- if( opts.initHelper ) {- opts.initHelper.call(sourceNode.tree, sourceNode, {- node: sourceNode,- tree: sourceNode.tree,- originalEvent: event,- ui: { helper: $helper }- });- }- // We return an unconnected element, so `draggable` will add this- // to the parent specified as `appendTo` option- return $helper;- },- start: function(event, ui) {- var sourceNode = ui.helper.data("ftSourceNode");- return !!sourceNode; // Abort dragging if no node could be found- }- }, tree.options.dnd.draggable));- }- // Attach ui.droppable to this Fancytree instance- if(dnd && dnd.dragDrop) {- tree.widget.element.droppable($.extend({- addClasses: false,- tolerance: "intersect",- greedy: false-/*- activate: function(event, ui) {- tree.debug("droppable - activate", event, ui, this);- },- create: function(event, ui) {- tree.debug("droppable - create", event, ui);- },- deactivate: function(event, ui) {- tree.debug("droppable - deactivate", event, ui);- },- drop: function(event, ui) {- tree.debug("droppable - drop", event, ui);- },- out: function(event, ui) {- tree.debug("droppable - out", event, ui);- },- over: function(event, ui) {- tree.debug("droppable - over", event, ui);- }-*/- }, tree.options.dnd.droppable));- }-}---/* *****************************************************************************- *- */--$.ui.fancytree.registerExtension({- name: "dnd",- version: "2.23.0",- // Default options for this extension.- options: {- // Make tree nodes accept draggables- autoExpandMS: 1000, // Expand nodes after n milliseconds of hovering.- draggable: null, // Additional options passed to jQuery draggable- droppable: null, // Additional options passed to jQuery droppable- focusOnClick: false, // Focus, although draggable cancels mousedown event (#270)- preventVoidMoves: true, // Prevent dropping nodes 'before self', etc.- preventRecursiveMoves: true,// Prevent dropping nodes on own descendants- smartRevert: true, // set draggable.revert = true if drop was rejected- dropMarkerOffsetX: -24, // absolute position offset for .fancytree-drop-marker relatively to ..fancytree-title (icon/img near a node accepting drop)- dropMarkerInsertOffsetX: -16, // additional offset for drop-marker with hitMode = "before"/"after"- // Events (drag support)- dragStart: null, // Callback(sourceNode, data), return true, to enable dnd- dragStop: null, // Callback(sourceNode, data)- initHelper: null, // Callback(sourceNode, data)- updateHelper: null, // Callback(sourceNode, data)- // Events (drop support)- dragEnter: null, // Callback(targetNode, data)- dragOver: null, // Callback(targetNode, data)- dragExpand: null, // Callback(targetNode, data), return false to prevent autoExpand- dragDrop: null, // Callback(targetNode, data)- dragLeave: null // Callback(targetNode, data)- },-- treeInit: function(ctx){- var tree = ctx.tree;- this._superApply(arguments);- // issue #270: draggable eats mousedown events- if( tree.options.dnd.dragStart ){- tree.$container.on("mousedown", function(event){-// if( !tree.hasFocus() && ctx.options.dnd.focusOnClick ) {- if( ctx.options.dnd.focusOnClick ) { // #270- var node = $.ui.fancytree.getNode(event);- if (node){- node.debug("Re-enable focus that was prevented by jQuery UI draggable.");- // node.setFocus();- // $(node.span).closest(":tabbable").focus();- // $(event.target).trigger("focus");- // $(event.target).closest(":tabbable").trigger("focus");- }- setTimeout(function() { // #300- $(event.target).closest(":tabbable").focus();- }, 10);- }- });- }- _initDragAndDrop(tree);- },- /* Display drop marker according to hitMode ('after', 'before', 'over'). */- _setDndStatus: function(sourceNode, targetNode, helper, hitMode, accept) {- var markerOffsetX,- markerAt = "center",- instData = this._local,- dndOpt = this.options.dnd ,- glyphOpt = this.options.glyph,- $source = sourceNode ? $(sourceNode.span) : null,- $target = $(targetNode.span),- $targetTitle = $target.find("span.fancytree-title");-- if( !instData.$dropMarker ) {- instData.$dropMarker = $("<div id='fancytree-drop-marker'></div>")- .hide()- .css({"z-index": 1000})- .prependTo($(this.$div).parent());-// .prependTo("body");-- if( glyphOpt ) {- // instData.$dropMarker.addClass(glyph.map.dragHelper);- instData.$dropMarker- .addClass(glyphOpt.map.dropMarker);- }- }- if( hitMode === "after" || hitMode === "before" || hitMode === "over" ){- markerOffsetX = dndOpt.dropMarkerOffsetX || 0;- switch(hitMode){- case "before":- markerAt = "top";- markerOffsetX += (dndOpt.dropMarkerInsertOffsetX || 0);- break;- case "after":- markerAt = "bottom";- markerOffsetX += (dndOpt.dropMarkerInsertOffsetX || 0);- break;- }-- instData.$dropMarker- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropOver, hitMode === "over")- .toggleClass(classDropBefore, hitMode === "before")- .show()- .position($.ui.fancytree.fixPositionOptions({- my: "left" + offsetString(markerOffsetX) + " center",- at: "left " + markerAt,- of: $targetTitle- }));- } else {- instData.$dropMarker.hide();- }- if( $source ){- $source- .toggleClass(classDropAccept, accept === true)- .toggleClass(classDropReject, accept === false);- }- $target- .toggleClass(classDropTarget, hitMode === "after" || hitMode === "before" || hitMode === "over")- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropBefore, hitMode === "before")- .toggleClass(classDropAccept, accept === true)- .toggleClass(classDropReject, accept === false);-- helper- .toggleClass(classDropAccept, accept === true)- .toggleClass(classDropReject, accept === false);- },-- /*- * Handles drag'n'drop functionality.- *- * A standard jQuery drag-and-drop process may generate these calls:- *- * start:- * _onDragEvent("start", sourceNode, null, event, ui, draggable);- * drag:- * _onDragEvent("leave", prevTargetNode, sourceNode, event, ui, draggable);- * _onDragEvent("over", targetNode, sourceNode, event, ui, draggable);- * _onDragEvent("enter", targetNode, sourceNode, event, ui, draggable);- * stop:- * _onDragEvent("drop", targetNode, sourceNode, event, ui, draggable);- * _onDragEvent("leave", targetNode, sourceNode, event, ui, draggable);- * _onDragEvent("stop", sourceNode, null, event, ui, draggable);- */- _onDragEvent: function(eventName, node, otherNode, event, ui, draggable) {- // if(eventName !== "over"){- // this.debug("tree.ext.dnd._onDragEvent(%s, %o, %o) - %o", eventName, node, otherNode, this);- // }- var accept, nodeOfs, parentRect, rect, relPos, relPos2,- enterResponse, hitMode, r,- opts = this.options,- dnd = opts.dnd,- ctx = this._makeHookContext(node, event, {otherNode: otherNode, ui: ui, draggable: draggable}),- res = null,- that = this,- $nodeTag = $(node.span);-- if( dnd.smartRevert ) {- draggable.options.revert = "invalid";- }-- switch (eventName) {-- case "start":- if( node.isStatusNode() ) {- res = false;- } else if(dnd.dragStart) {- res = dnd.dragStart(node, ctx);- }- if(res === false) {- this.debug("tree.dragStart() cancelled");- //draggable._clear();- // NOTE: the return value seems to be ignored (drag is not cancelled, when false is returned)- // TODO: call this._cancelDrag()?- ui.helper.trigger("mouseup")- .hide();- } else {- if( dnd.smartRevert ) {- // #567, #593: fix revert position- // rect = node.li.getBoundingClientRect();- rect = node[ctx.tree.nodeContainerAttrName].getBoundingClientRect();- parentRect = $(draggable.options.appendTo)[0].getBoundingClientRect();- draggable.originalPosition.left = Math.max(0, rect.left - parentRect.left);- draggable.originalPosition.top = Math.max(0, rect.top - parentRect.top);- }- $nodeTag.addClass("fancytree-drag-source");- // Register global handlers to allow cancel- $(document)- .on("keydown.fancytree-dnd,mousedown.fancytree-dnd", function(event){- // node.tree.debug("dnd global event", event.type, event.which);- if( event.type === "keydown" && event.which === $.ui.keyCode.ESCAPE ) {- that.ext.dnd._cancelDrag();- } else if( event.type === "mousedown" ) {- that.ext.dnd._cancelDrag();- }- });- }- break;-- case "enter":- if(dnd.preventRecursiveMoves && node.isDescendantOf(otherNode)){- r = false;- }else{- r = dnd.dragEnter ? dnd.dragEnter(node, ctx) : null;- }- if(!r){- // convert null, undefined, false to false- res = false;- }else if ( $.isArray(r) ) {- // TODO: also accept passing an object of this format directly- res = {- over: ($.inArray("over", r) >= 0),- before: ($.inArray("before", r) >= 0),- after: ($.inArray("after", r) >= 0)- };- }else{- res = {- over: ((r === true) || (r === "over")),- before: ((r === true) || (r === "before")),- after: ((r === true) || (r === "after"))- };- }- ui.helper.data("enterResponse", res);- // this.debug("helper.enterResponse: %o", res);- break;-- case "over":- enterResponse = ui.helper.data("enterResponse");- hitMode = null;- if(enterResponse === false){- // Don't call dragOver if onEnter returned false.-// break;- } else if(typeof enterResponse === "string") {- // Use hitMode from onEnter if provided.- hitMode = enterResponse;- } else {- // Calculate hitMode from relative cursor position.- nodeOfs = $nodeTag.offset();- relPos = { x: event.pageX - nodeOfs.left,- y: event.pageY - nodeOfs.top };- relPos2 = { x: relPos.x / $nodeTag.width(),- y: relPos.y / $nodeTag.height() };-- if( enterResponse.after && relPos2.y > 0.75 ){- hitMode = "after";- } else if(!enterResponse.over && enterResponse.after && relPos2.y > 0.5 ){- hitMode = "after";- } else if(enterResponse.before && relPos2.y <= 0.25) {- hitMode = "before";- } else if(!enterResponse.over && enterResponse.before && relPos2.y <= 0.5) {- hitMode = "before";- } else if(enterResponse.over) {- hitMode = "over";- }- // Prevent no-ops like 'before source node'- // TODO: these are no-ops when moving nodes, but not in copy mode- if( dnd.preventVoidMoves ){- if(node === otherNode){- this.debug(" drop over source node prevented");- hitMode = null;- }else if(hitMode === "before" && otherNode && node === otherNode.getNextSibling()){- this.debug(" drop after source node prevented");- hitMode = null;- }else if(hitMode === "after" && otherNode && node === otherNode.getPrevSibling()){- this.debug(" drop before source node prevented");- hitMode = null;- }else if(hitMode === "over" && otherNode && otherNode.parent === node && otherNode.isLastSibling() ){- this.debug(" drop last child over own parent prevented");- hitMode = null;- }- }-// this.debug("hitMode: %s - %s - %s", hitMode, (node.parent === otherNode), node.isLastSibling());- ui.helper.data("hitMode", hitMode);- }- // Auto-expand node (only when 'over' the node, not 'before', or 'after')- if(hitMode !== "before" && hitMode !== "after" && dnd.autoExpandMS &&- node.hasChildren() !== false && !node.expanded &&- (!dnd.dragExpand || dnd.dragExpand(node, ctx) !== false)- ) {- node.scheduleAction("expand", dnd.autoExpandMS);- }- if(hitMode && dnd.dragOver){- // TODO: http://code.google.com/p/dynatree/source/detail?r=625- ctx.hitMode = hitMode;- res = dnd.dragOver(node, ctx);- }- accept = (res !== false && hitMode !== null);- if( dnd.smartRevert ) {- draggable.options.revert = !accept;- }- this._local._setDndStatus(otherNode, node, ui.helper, hitMode, accept);- break;-- case "drop":- hitMode = ui.helper.data("hitMode");- if(hitMode && dnd.dragDrop){- ctx.hitMode = hitMode;- dnd.dragDrop(node, ctx);- }- break;-- case "leave":- // Cancel pending expand request- node.scheduleAction("cancel");- ui.helper.data("enterResponse", null);- ui.helper.data("hitMode", null);- this._local._setDndStatus(otherNode, node, ui.helper, "out", undefined);- if(dnd.dragLeave){- dnd.dragLeave(node, ctx);- }- break;-- case "stop":- $nodeTag.removeClass("fancytree-drag-source");- $(document).off(".fancytree-dnd");- if(dnd.dragStop){- dnd.dragStop(node, ctx);- }- break;-- default:- $.error("Unsupported drag event: " + eventName);- }- return res;- },-- _cancelDrag: function() {- var dd = $.ui.ddmanager.current;- if(dd){- dd.cancel();- }- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.dnd5.js b/public/libraries/fancytree/src/jquery.fancytree.dnd5.jsdeleted file mode 100644index 56ce90f724..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.dnd5.js+++ /dev/null@@ -1,580 +0,0 @@-/*!- * jquery.fancytree.dnd5.js- *- * Drag-and-drop support (native HTML5).- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--- /*- #TODO- - glyph-- Compatiblity when dragging between *separate* windows:-- Drag from Chrome Edge FF IE11 Safari- To Chrome ok ok ok NO ?- Edge ok ok ok NO ?- FF ok ok ok NO ?- IE 11 ok ok ok ok ?- Safari ? ? ? ? ok-- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */-var- classDragSource = "fancytree-drag-source",- classDragRemove = "fancytree-drag-remove",- classDropAccept = "fancytree-drop-accept",- classDropAfter = "fancytree-drop-after",- classDropBefore = "fancytree-drop-before",- classDropOver = "fancytree-drop-over",- classDropReject = "fancytree-drop-reject",- classDropTarget = "fancytree-drop-target",- nodeMimeType = "application/x-fancytree-node",- $dropMarker = null,- SOURCE_NODE = null,- DRAG_ENTER_RESPONSE = null,- LAST_HIT_MODE = null;--/* Convert number to string and prepend +/-; return empty string for 0.*/-function offsetString(n){- return n === 0 ? "" : (( n > 0 ) ? ("+" + n) : ("" + n));-}--/* Convert a dragEnter() or dragOver() response to a canonical form.- * Return false or plain object- * @param {string|object|boolean} r- * @return {object|false}- */-function normalizeDragEnterResponse(r) {- var res;-- if( !r ){- return false;- }- if ( $.isPlainObject(r) ) {- res = {- over: !!r.over,- before: !!r.before,- after: !!r.after- };- }else if ( $.isArray(r) ) {- res = {- over: ($.inArray("over", r) >= 0),- before: ($.inArray("before", r) >= 0),- after: ($.inArray("after", r) >= 0)- };- }else{- res = {- over: ((r === true) || (r === "over")),- before: ((r === true) || (r === "before")),- after: ((r === true) || (r === "after"))- };- }- if( Object.keys(res).length === 0 ) {- return false;- }- // if( Object.keys(res).length === 1 ) {- // res.unique = res[0];- // }- return res;-}--/* Implement auto scrolling when drag cursor is in top/bottom area of scroll parent. */-function autoScroll(tree, event) {- var spOfs, scrollTop, delta,- dndOpts = tree.options.dnd5,- sp = tree.$scrollParent[0],- sensitivity = dndOpts.scrollSensitivity,- speed = dndOpts.scrollSpeed,- scrolled = 0;-- if ( sp !== document && sp.tagName !== "HTML" ) {- spOfs = tree.$scrollParent.offset();- scrollTop = sp.scrollTop;- if ( spOfs.top + sp.offsetHeight - event.pageY < sensitivity ) {- delta = (sp.scrollHeight - tree.$scrollParent.innerHeight() - scrollTop);- // console.log ("sp.offsetHeight: " + sp.offsetHeight- // + ", spOfs.top: " + spOfs.top- // + ", scrollTop: " + scrollTop- // + ", innerHeight: " + tree.$scrollParent.innerHeight()- // + ", scrollHeight: " + sp.scrollHeight- // + ", delta: " + delta- // );- if( delta > 0 ) {- sp.scrollTop = scrolled = scrollTop + speed;- }- } else if ( scrollTop > 0 && event.pageY - spOfs.top < sensitivity ) {- sp.scrollTop = scrolled = scrollTop - speed;- }- } else {- scrollTop = $(document).scrollTop();- if (scrollTop > 0 && event.pageY - scrollTop < sensitivity) {- scrolled = scrollTop - speed;- $(document).scrollTop(scrolled);- } else if ($(window).height() - (event.pageY - scrollTop) < sensitivity) {- scrolled = scrollTop + speed;- $(document).scrollTop(scrolled);- }- }- if( scrolled ) {- tree.debug("autoScroll: " + scrolled + "px");- }- return scrolled;-}--/* Handle dragover event (fired every x ms) and return hitMode. */-function handleDragOver(event, data) {- // Implement auto-scrolling- if ( data.options.dnd5.scroll ) {- autoScroll(data.tree, event);- }- // Bail out with previous response if we get an invalid dragover- if( !data.node ) {- data.tree.warn("Ignore dragover for non-node"); //, event, data);- return LAST_HIT_MODE;- }-- var markerOffsetX, nodeOfs, relPosY, //res,- // eventHash = getEventHash(event),- hitMode = null,- tree = data.tree,- options = tree.options,- dndOpts = options.dnd5,- targetNode = data.node,- sourceNode = data.otherNode,- markerAt = "center",- // glyph = options.glyph || null,- // $source = sourceNode ? $(sourceNode.span) : null,- $target = $(targetNode.span),- $targetTitle = $target.find("span.fancytree-title");-- if(DRAG_ENTER_RESPONSE === false){- tree.warn("Ignore dragover, since dragenter returned false"); //, event, data);- // $.error("assert failed: dragenter returned false");- return false;- } else if(typeof DRAG_ENTER_RESPONSE === "string") {- $.error("assert failed: dragenter returned string");- // Use hitMode from onEnter if provided.- // hitMode = DRAG_ENTER_RESPONSE;- } else {- // Calculate hitMode from relative cursor position.- nodeOfs = $target.offset();- relPosY = (event.pageY - nodeOfs.top) / $target.height();-- if( DRAG_ENTER_RESPONSE.after && relPosY > 0.75 ){- hitMode = "after";- } else if(!DRAG_ENTER_RESPONSE.over && DRAG_ENTER_RESPONSE.after && relPosY > 0.5 ){- hitMode = "after";- } else if(DRAG_ENTER_RESPONSE.before && relPosY <= 0.25) {- hitMode = "before";- } else if(!DRAG_ENTER_RESPONSE.over && DRAG_ENTER_RESPONSE.before && relPosY <= 0.5) {- hitMode = "before";- } else if(DRAG_ENTER_RESPONSE.over) {- hitMode = "over";- }- // Prevent no-ops like 'before source node'- // TODO: these are no-ops when moving nodes, but not in copy mode- if( dndOpts.preventVoidMoves ){- if(targetNode === sourceNode){- targetNode.debug("drop over source node prevented");- hitMode = null;- }else if(hitMode === "before" && sourceNode && targetNode === sourceNode.getNextSibling()){- targetNode.debug("drop after source node prevented");- hitMode = null;- }else if(hitMode === "after" && sourceNode && targetNode === sourceNode.getPrevSibling()){- targetNode.debug("drop before source node prevented");- hitMode = null;- }else if(hitMode === "over" && sourceNode && sourceNode.parent === targetNode && sourceNode.isLastSibling() ){- targetNode.debug("drop last child over own parent prevented");- hitMode = null;- }- }- }- // Let callback modify the calculated hitMode- data.hitMode = hitMode;- if(hitMode && dndOpts.dragOver){- // TODO: http://code.google.com/p/dynatree/source/detail?r=625- dndOpts.dragOver(targetNode, data);- hitMode = data.hitMode;- }- // LAST_DROP_EFFECT = data.dataTransfer.dropEffect;- // LAST_EFFECT_ALLOWED = data.dataTransfer.effectAllowed;- LAST_HIT_MODE = hitMode;- //- if( hitMode === "after" || hitMode === "before" || hitMode === "over" ){- markerOffsetX = dndOpts.dropMarkerOffsetX || 0;- switch(hitMode){- case "before":- markerAt = "top";- markerOffsetX += (dndOpts.dropMarkerInsertOffsetX || 0);- break;- case "after":- markerAt = "bottom";- markerOffsetX += (dndOpts.dropMarkerInsertOffsetX || 0);- break;- }-- $dropMarker- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropOver, hitMode === "over")- .toggleClass(classDropBefore, hitMode === "before")- .show()- .position($.ui.fancytree.fixPositionOptions({- my: "left" + offsetString(markerOffsetX) + " center",- at: "left " + markerAt,- of: $targetTitle- }));- } else {- $dropMarker.hide();- // console.log("hide dropmarker")- }- // if( $source ){- // $source.toggleClass(classDragRemove, isMove);- // }- $(targetNode.span)- .toggleClass(classDropTarget, hitMode === "after" || hitMode === "before" || hitMode === "over")- .toggleClass(classDropAfter, hitMode === "after")- .toggleClass(classDropBefore, hitMode === "before")- .toggleClass(classDropAccept, hitMode === "over")- .toggleClass(classDropReject, hitMode === false);-- return hitMode;-}--/* *****************************************************************************- *- */--$.ui.fancytree.registerExtension({- name: "dnd5",- version: "2.23.0",- // Default options for this extension.- options: {- autoExpandMS: 1500, // Expand nodes after n milliseconds of hovering- setTextTypeJson: false, // Allow dragging of nodes to different IE windows- preventForeignNodes: false, // Prevent dropping nodes from different Fancytrees- preventNonNodes: false, // Prevent dropping items other than Fancytree nodes- preventRecursiveMoves: true, // Prevent dropping nodes on own descendants- preventVoidMoves: true, // Prevent dropping nodes 'before self', etc.- scroll: true, // Enable auto-scrolling while dragging- scrollSensitivity: 20, // Active top/bottom margin in pixel- scrollSpeed: 5, // Pixel per event- dropMarkerOffsetX: -24, // absolute position offset for .fancytree-drop-marker relatively to ..fancytree-title (icon/img near a node accepting drop)- dropMarkerInsertOffsetX: -16,// additional offset for drop-marker with hitMode = "before"/"after"- // Events (drag support)- dragStart: null, // Callback(sourceNode, data), return true, to enable dnd drag- dragDrag: $.noop, // Callback(sourceNode, data)- dragEnd: $.noop, // Callback(sourceNode, data)- // Events (drop support)- dragEnter: null, // Callback(targetNode, data), return true, to enable dnd drop- dragOver: $.noop, // Callback(targetNode, data)- dragExpand: $.noop, // Callback(targetNode, data), return false to prevent autoExpand- dragDrop: $.noop, // Callback(targetNode, data)- dragLeave: $.noop // Callback(targetNode, data)- },-- treeInit: function(ctx){- var tree = ctx.tree,- opts = ctx.options,- dndOpts = opts.dnd5,- getNode = $.ui.fancytree.getNode;-- if( $.inArray("dnd", opts.extensions) >= 0 ) {- $.error("Extensions 'dnd' and 'dnd5' are mutually exclusive.");- }- if( dndOpts.dragStop ) {- $.error("dragStop is not used by ext-dnd5. Use dragEnd instead.");- }-- // Implement `opts.createNode` event to add the 'draggable' attribute- // #680: this must happen before calling super.treeInit()- if( dndOpts.dragStart ) {- $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {- // Default processing if any- this._super.apply(this, arguments);-- data.node.span.draggable = true;- });- }- this._superApply(arguments);-- this.$container.addClass("fancytree-ext-dnd5");-- // Store the current scroll parent, which may be the tree- // container, any enclosing div, or the document- this.$scrollParent = this.$container.children(":first").scrollParent();-- $dropMarker = $("#fancytree-drop-marker");- if( !$dropMarker.length ) {- $dropMarker = $("<div id='fancytree-drop-marker'></div>")- .hide()- .css({- "z-index": 1000,- // Drop marker should not steal dragenter/dragover events:- "pointer-events": "none"- }).prependTo("body");- // if( glyph ) {- // instData.$dropMarker- // .addClass(glyph.map.dropMarker);- // }- }- // Enable drag support if dragStart() is specified:- if( dndOpts.dragStart ) {- // Bind drag event handlers- tree.$container.on("dragstart drag dragend", function(event){- var json,- node = getNode(event),- dataTransfer = event.dataTransfer || event.originalEvent.dataTransfer,- isMove = dataTransfer.dropEffect === "move",- $source = node ? $(node.span) : null,- data = {- node: node,- tree: tree,- options: tree.options,- originalEvent: event,- dataTransfer: dataTransfer,-// dropEffect: undefined, // set by dragend- isCancelled: undefined // set by dragend- };-- switch( event.type ) {-- case "dragstart":- $(node.span).addClass(classDragSource);-- // Store current source node in different formats- SOURCE_NODE = node;-- // Set payload- // Note:- // Transfer data is only accessible on dragstart and drop!- // For all other events the formats and kinds in the drag- // data store list of items representing dragged data can be- // enumerated, but the data itself is unavailable and no new- // data can be added.- json = JSON.stringify(node.toDict());- try {- dataTransfer.setData(nodeMimeType, json);- dataTransfer.setData("text/html", $(node.span).html());- dataTransfer.setData("text/plain", node.title);- } catch(ex) {- // IE only accepts 'text' type- tree.warn("Could not set data (IE only accepts 'text') - " + ex);- }- // We always need to set the 'text' type if we want to drag- // Because IE 11 only accepts this single type.- // If we pass JSON here, IE can can access all node properties,- // even when the source lives in another window. (D'n'd inside- // the same window will always work.)- // The drawback is, that in this case ALL browsers will see- // the JSON representation as 'text', so dragging- // to a text field will insert the JSON string instead of- // the node title.- if( dndOpts.setTextTypeJson ) {- dataTransfer.setData("text", json);- } else {- dataTransfer.setData("text", node.title);- }-- // Set the allowed and current drag mode (move, copy, or link)- dataTransfer.effectAllowed = "all"; // "copyMove"- // dataTransfer.dropEffect = "move";-- // Set the title as drag image (otherwise it would contain the expander)- if( dataTransfer.setDragImage ) {- // IE 11 does not support this- dataTransfer.setDragImage($(node.span).find(".fancytree-title")[0], -10, -10);- // dataTransfer.setDragImage($(node.span)[0], -10, -10);- }- // Let user modify above settings- return dndOpts.dragStart(node, data) !== false;-- case "drag":- // Called every few miliseconds- $source.toggleClass(classDragRemove, isMove);- dndOpts.dragDrag(node, data);- break;-- case "dragend":- $(node.span).removeClass(classDragSource + " " + classDragRemove);- SOURCE_NODE = null;- DRAG_ENTER_RESPONSE = null;-// data.dropEffect = dataTransfer.dropEffect;- data.isCancelled = (dataTransfer.dropEffect === "none");- $dropMarker.hide();- dndOpts.dragEnd(node, data);- break;- }- });- }- // Enable drop support if dragEnter() is specified:- if( dndOpts.dragEnter ) {- // Bind drop event handlers- tree.$container.on("dragenter dragover dragleave drop", function(event){- var json, nodeData, r, res,- allowDrop = null,- node = getNode(event),- dataTransfer = event.dataTransfer || event.originalEvent.dataTransfer,- // glyph = opts.glyph || null,- data = {- node: node,- tree: tree,- options: tree.options,- hitMode: DRAG_ENTER_RESPONSE,- originalEvent: event,- dataTransfer: dataTransfer,- otherNode: SOURCE_NODE || null,- otherNodeData: null, // set by drop event- dropEffect: undefined, // set by drop event- isCancelled: undefined // set by drop event- };-- switch( event.type ) {-- case "dragenter":- // The dragenter event is fired when a dragged element or- // text selection enters a valid drop target.-- if( !node ) {- // Sometimes we get dragenter for the container element- tree.debug("Ignore non-node " + event.type + ": " + event.target.tagName + "." + event.target.className);- DRAG_ENTER_RESPONSE = false;- break;- }-- $(node.span)- .addClass(classDropOver)- .removeClass(classDropAccept + " " + classDropReject);-- if( dndOpts.preventNonNodes && !nodeData ) {- node.debug("Reject dropping a non-node");- DRAG_ENTER_RESPONSE = false;- break;- } else if( dndOpts.preventForeignNodes && (!SOURCE_NODE || SOURCE_NODE.tree !== node.tree ) ) {- node.debug("Reject dropping a foreign node");- DRAG_ENTER_RESPONSE = false;- break;- }-- // NOTE: dragenter is fired BEFORE the dragleave event- // of the previous element!- // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19041- setTimeout(function(){- // node.info("DELAYED " + event.type, event.target, DRAG_ENTER_RESPONSE);- // Auto-expand node (only when 'over' the node, not 'before', or 'after')- if( dndOpts.autoExpandMS &&- node.hasChildren() !== false && !node.expanded &&- (!dndOpts.dragExpand || dndOpts.dragExpand(node, data) !== false)- ) {- node.scheduleAction("expand", dndOpts.autoExpandMS);- }- }, 0);-- $dropMarker.show();-- // Call dragEnter() to figure out if (and where) dropping is allowed- if( dndOpts.preventRecursiveMoves && node.isDescendantOf(data.otherNode) ){- res = false;- }else{- r = dndOpts.dragEnter(node, data);- res = normalizeDragEnterResponse(r);- }- DRAG_ENTER_RESPONSE = res;-- allowDrop = res && ( res.over || res.before || res.after );- break;-- case "dragover":- // The dragover event is fired when an element or text- // selection is being dragged over a valid drop target- // (every few hundred milliseconds).- LAST_HIT_MODE = handleDragOver(event, data);- allowDrop = !!LAST_HIT_MODE;- break;-- case "dragleave":- // NOTE: dragleave is fired AFTER the dragenter event of the- // FOLLOWING element.- if( !node ) {- tree.debug("Ignore non-node " + event.type + ": " + event.target.tagName + "." + event.target.className);- break;- }- if( !$(node.span).hasClass(classDropOver) ) {- node.debug("Ignore dragleave (multi)"); //, event.currentTarget);- break;- }- $(node.span).removeClass(classDropOver + " " + classDropAccept + " " + classDropReject);- node.scheduleAction("cancel");- dndOpts.dragLeave(node, data);- $dropMarker.hide();- break;-- case "drop":- // Data is only readable in the (dragenter and) drop event:-- if( $.inArray(nodeMimeType, dataTransfer.types) >= 0 ) {- nodeData = dataTransfer.getData(nodeMimeType);- tree.info(event.type + ": getData('application/x-fancytree-node'): '" + nodeData + "'");- }- if( !nodeData ) {- // 1. Source is not a Fancytree node, or- // 2. If the FT mime type was set, but returns '', this- // is probably IE 11 (which only supports 'text')- nodeData = dataTransfer.getData("text");- tree.info(event.type + ": getData('text'): '" + nodeData + "'");- }- if( nodeData ) {- try {- // 'text' type may contain JSON if IE is involved- // and setTextTypeJson option was set- json = JSON.parse(nodeData);- if( json.title !== undefined ) {- data.otherNodeData = json;- }- } catch(ex) {- // assume 'text' type contains plain text, so `otherNodeData`- // should not be set- }- }- tree.debug(event.type + ": nodeData: '" + nodeData + "', otherNodeData: ", data.otherNodeData);-- $(node.span).removeClass(classDropOver + " " + classDropAccept + " " + classDropReject);- $dropMarker.hide();-- data.hitMode = LAST_HIT_MODE;- data.dropEffect = dataTransfer.dropEffect;- data.isCancelled = data.dropEffect === "none";-- // Let user implement the actual drop operation- dndOpts.dragDrop(node, data);-- // Prevent browser's default drop handling- event.preventDefault();- break;- }- // Dnd API madness: we must PREVENT default handling to enable dropping- if( allowDrop ) {- event.preventDefault();- return false;- }- });- }- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.edit.js b/public/libraries/fancytree/src/jquery.fancytree.edit.jsdeleted file mode 100644index 0019f93fbe..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.edit.js+++ /dev/null@@ -1,315 +0,0 @@-/*!- * jquery.fancytree.edit.js- *- * Make node titles editable.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--var isMac = /Mac/.test(navigator.platform),- escapeHtml = $.ui.fancytree.escapeHtml,- unescapeHtml = $.ui.fancytree.unescapeHtml;--/**- * [ext-edit] Start inline editing of current node title.- *- * @alias FancytreeNode#editStart- * @requires Fancytree- */-$.ui.fancytree._FancytreeNodeClass.prototype.editStart = function(){- var $input,- node = this,- tree = this.tree,- local = tree.ext.edit,- instOpts = tree.options.edit,- $title = $(".fancytree-title", node.span),- eventData = {- node: node,- tree: tree,- options: tree.options,- isNew: $(node[tree.statusClassPropName]).hasClass("fancytree-edit-new"),- orgTitle: node.title,- input: null,- dirty: false- };-- // beforeEdit may want to modify the title before editing- if( instOpts.beforeEdit.call(node, {type: "beforeEdit"}, eventData) === false ) {- return false;- }- $.ui.fancytree.assert(!local.currentNode, "recursive edit");- local.currentNode = this;- local.eventData = eventData;-- // Disable standard Fancytree mouse- and key handling- tree.widget._unbind();- // #116: ext-dnd prevents the blur event, so we have to catch outer clicks- $(document).on("mousedown.fancytree-edit", function(event){- if( ! $(event.target).hasClass("fancytree-edit-input") ){- node.editEnd(true, event);- }- });-- // Replace node with <input>- $input = $("<input />", {- "class": "fancytree-edit-input",- type: "text",- value: tree.options.escapeTitles ? eventData.orgTitle : unescapeHtml(eventData.orgTitle)- });- local.eventData.input = $input;- if ( instOpts.adjustWidthOfs != null ) {- $input.width($title.width() + instOpts.adjustWidthOfs);- }- if ( instOpts.inputCss != null ) {- $input.css(instOpts.inputCss);- }-- $title.html($input);-- // Focus <input> and bind keyboard handler- $input- .focus()- .change(function(event){- $input.addClass("fancytree-edit-dirty");- }).keydown(function(event){- switch( event.which ) {- case $.ui.keyCode.ESCAPE:- node.editEnd(false, event);- break;- case $.ui.keyCode.ENTER:- node.editEnd(true, event);- return false; // so we don't start editmode on Mac- }- event.stopPropagation();- }).blur(function(event){- return node.editEnd(true, event);- });-- instOpts.edit.call(node, {type: "edit"}, eventData);-};---/**- * [ext-edit] Stop inline editing.- * @param {Boolean} [applyChanges=false] false: cancel edit, true: save (if modified)- * @alias FancytreeNode#editEnd- * @requires jquery.fancytree.edit.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.editEnd = function(applyChanges, _event){- var newVal,- node = this,- tree = this.tree,- local = tree.ext.edit,- eventData = local.eventData,- instOpts = tree.options.edit,- $title = $(".fancytree-title", node.span),- $input = $title.find("input.fancytree-edit-input");-- if( instOpts.trim ) {- $input.val($.trim($input.val()));- }- newVal = $input.val();-- eventData.dirty = ( newVal !== node.title );- eventData.originalEvent = _event;-- // Find out, if saving is required- if( applyChanges === false ) {- // If true/false was passed, honor this (except in rename mode, if unchanged)- eventData.save = false;- } else if( eventData.isNew ) {- // In create mode, we save everyting, except for empty text- eventData.save = (newVal !== "");- } else {- // In rename mode, we save everyting, except for empty or unchanged text- eventData.save = eventData.dirty && (newVal !== "");- }- // Allow to break (keep editor open), modify input, or re-define data.save- if( instOpts.beforeClose.call(node, {type: "beforeClose"}, eventData) === false){- return false;- }- if( eventData.save && instOpts.save.call(node, {type: "save"}, eventData) === false){- return false;- }- $input- .removeClass("fancytree-edit-dirty")- .off();- // Unbind outer-click handler- $(document).off(".fancytree-edit");-- if( eventData.save ) {- // # 171: escape user input (not required if global escaping is on)- node.setTitle( tree.options.escapeTitles ? newVal : escapeHtml(newVal) );- node.setFocus();- }else{- if( eventData.isNew ) {- node.remove();- node = eventData.node = null;- local.relatedNode.setFocus();- } else {- node.renderTitle();- node.setFocus();- }- }- local.eventData = null;- local.currentNode = null;- local.relatedNode = null;- // Re-enable mouse and keyboard handling- tree.widget._bind();- // Set keyboard focus, even if setFocus() claims 'nothing to do'- $(tree.$container).focus();- eventData.input = null;- instOpts.close.call(node, {type: "close"}, eventData);- return true;-};---/**-* [ext-edit] Create a new child or sibling node and start edit mode.-*-* @param {String} [mode='child'] 'before', 'after', or 'child'-* @param {Object} [init] NodeData (or simple title string)-* @alias FancytreeNode#editCreateNode-* @requires jquery.fancytree.edit.js-* @since 2.4-*/-$.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode = function(mode, init){- var newNode,- tree = this.tree,- self = this;-- mode = mode || "child";- if( init == null ) {- init = { title: "" };- } else if( typeof init === "string" ) {- init = { title: init };- } else {- $.ui.fancytree.assert($.isPlainObject(init));- }- // Make sure node is expanded (and loaded) in 'child' mode- if( mode === "child" && !this.isExpanded() && this.hasChildren() !== false ) {- this.setExpanded().done(function(){- self.editCreateNode(mode, init);- });- return;- }- newNode = this.addNode(init, mode);-- // #644: Don't filter new nodes.- newNode.match = true;- $(newNode[tree.statusClassPropName])- .removeClass("fancytree-hide")- .addClass("fancytree-match");-- newNode.makeVisible(/*{noAnimation: true}*/).done(function(){- $(newNode[tree.statusClassPropName]).addClass("fancytree-edit-new");- self.tree.ext.edit.relatedNode = self;- newNode.editStart();- });-};---/**- * [ext-edit] Check if any node in this tree in edit mode.- *- * @returns {FancytreeNode | null}- * @alias Fancytree#isEditing- * @requires jquery.fancytree.edit.js- */-$.ui.fancytree._FancytreeClass.prototype.isEditing = function(){- return this.ext.edit ? this.ext.edit.currentNode : null;-};---/**- * [ext-edit] Check if this node is in edit mode.- * @returns {Boolean} true if node is currently beeing edited- * @alias FancytreeNode#isEditing- * @requires jquery.fancytree.edit.js- */-$.ui.fancytree._FancytreeNodeClass.prototype.isEditing = function(){- return this.tree.ext.edit ? this.tree.ext.edit.currentNode === this : false;-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "edit",- version: "2.23.0",- // Default options for this extension.- options: {- adjustWidthOfs: 4, // null: don't adjust input size to content- allowEmpty: false, // Prevent empty input- inputCss: {minWidth: "3em"},- // triggerCancel: ["esc", "tab", "click"],- // triggerStart: ["f2", "dblclick", "shift+click", "mac+enter"],- triggerStart: ["f2", "shift+click", "mac+enter"],- trim: true, // Trim whitespace before save- // Events:- beforeClose: $.noop, // Return false to prevent cancel/save (data.input is available)- beforeEdit: $.noop, // Return false to prevent edit mode- close: $.noop, // Editor was removed- edit: $.noop, // Editor was opened (available as data.input)-// keypress: $.noop, // Not yet implemented- save: $.noop // Save data.input.val() or return false to keep editor open- },- // Local attributes- currentNode: null,-- treeInit: function(ctx){- this._superApply(arguments);- this.$container.addClass("fancytree-ext-edit");- },- nodeClick: function(ctx) {- if( $.inArray("shift+click", ctx.options.edit.triggerStart) >= 0 ){- if( ctx.originalEvent.shiftKey ){- ctx.node.editStart();- return false;- }- }- return this._superApply(arguments);- },- nodeDblclick: function(ctx) {- if( $.inArray("dblclick", ctx.options.edit.triggerStart) >= 0 ){- ctx.node.editStart();- return false;- }- return this._superApply(arguments);- },- nodeKeydown: function(ctx) {- switch( ctx.originalEvent.which ) {- case 113: // [F2]- if( $.inArray("f2", ctx.options.edit.triggerStart) >= 0 ){- ctx.node.editStart();- return false;- }- break;- case $.ui.keyCode.ENTER:- if( $.inArray("mac+enter", ctx.options.edit.triggerStart) >= 0 && isMac ){- ctx.node.editStart();- return false;- }- break;- }- return this._superApply(arguments);- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.filter.js b/public/libraries/fancytree/src/jquery.fancytree.filter.jsdeleted file mode 100644index a1b90afe23..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.filter.js+++ /dev/null@@ -1,353 +0,0 @@-/*!- * jquery.fancytree.filter.js- *- * Remove or highlight tree nodes, based on a filter.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--var KeyNoData = "__not_found__",- escapeHtml = $.ui.fancytree.escapeHtml;--function _escapeRegex(str){- /*jshint regexdash:true */- return (str + "").replace(/([.?*+\^\$\[\]\\(){}|-])/g, "\\$1");-}--function extractHtmlText(s){- if( s.indexOf(">") >= 0 ) {- return $("<div/>").html(s).text();- }- return s;-}--$.ui.fancytree._FancytreeClass.prototype._applyFilterImpl = function(filter, branchMode, _opts){- var match, statusNode, re, reHighlight,- count = 0,- treeOpts = this.options,- escapeTitles = treeOpts.escapeTitles,- prevAutoCollapse = treeOpts.autoCollapse,- opts = $.extend({}, treeOpts.filter, _opts),- hideMode = opts.mode === "hide",- leavesOnly = !!opts.leavesOnly && !branchMode;-- // Default to 'match title substring (not case sensitive)'- if(typeof filter === "string"){- // console.log("rex", filter.split('').join('\\w*').replace(/\W/, ""))- if( opts.fuzzy ) {- // See https://codereview.stackexchange.com/questions/23899/faster-javascript-fuzzy-string-matching-function/23905#23905- // and http://www.quora.com/How-is-the-fuzzy-search-algorithm-in-Sublime-Text-designed- // and http://www.dustindiaz.com/autocomplete-fuzzy-matching- match = filter.split("").reduce(function(a, b) {- return a + "[^" + b + "]*" + b;- });- } else {- match = _escapeRegex(filter); // make sure a '.' is treated literally- }- re = new RegExp(".*" + match + ".*", "i");- reHighlight = new RegExp(_escapeRegex(filter), "gi");- filter = function(node){- var display,- text = escapeTitles ? node.title : extractHtmlText(node.title),- res = !!re.test(text);-- if( res && opts.highlight ) {- display = escapeTitles ? escapeHtml(node.title) : text;- node.titleWithHighlight = display.replace(reHighlight, function(s){- return "<mark>" + s + "</mark>";- });- // node.debug("filter", escapeTitles, text, node.titleWithHighlight);- }- return res;- };- }-- this.enableFilter = true;- this.lastFilterArgs = arguments;-- this.$div.addClass("fancytree-ext-filter");- if( hideMode ){- this.$div.addClass("fancytree-ext-filter-hide");- } else {- this.$div.addClass("fancytree-ext-filter-dimm");- }- this.$div.toggleClass("fancytree-ext-filter-hide-expanders", !!opts.hideExpanders);- // Reset current filter- this.visit(function(node){- delete node.match;- delete node.titleWithHighlight;- node.subMatchCount = 0;- });- statusNode = this.getRootNode()._findDirectChild(KeyNoData);- if( statusNode ) {- statusNode.remove();- }-- // Adjust node.hide, .match, and .subMatchCount properties- treeOpts.autoCollapse = false; // #528-- this.visit(function(node){- if ( leavesOnly && node.children != null ) {- return;- }- var res = filter(node),- matchedByBranch = false;-- if( res === "skip" ) {- node.visit(function(c){- c.match = false;- }, true);- return "skip";- }- if( !res && (branchMode || res === "branch") && node.parent.match ) {- res = true;- matchedByBranch = true;- }- if( res ) {- count++;- node.match = true;- node.visitParents(function(p){- p.subMatchCount += 1;- // Expand match (unless this is no real match, but only a node in a matched branch)- if( opts.autoExpand && !matchedByBranch && !p.expanded ) {- p.setExpanded(true, {noAnimation: true, noEvents: true, scrollIntoView: false});- p._filterAutoExpanded = true;- }- });- }- });- treeOpts.autoCollapse = prevAutoCollapse;-- if( count === 0 && opts.nodata && hideMode ) {- statusNode = opts.nodata;- if( $.isFunction(statusNode) ) {- statusNode = statusNode();- }- if( statusNode === true ) {- statusNode = {};- } else if( typeof statusNode === "string" ) {- statusNode = { title: statusNode };- }- statusNode = $.extend({- statusNodeType: "nodata",- key: KeyNoData,- title: this.options.strings.noData- }, statusNode);-- this.getRootNode().addNode(statusNode).match = true;- }- // Redraw whole tree- this.render();- return count;-};--/**- * [ext-filter] Dimm or hide nodes.- *- * @param {function | string} filter- * @param {boolean} [opts={autoExpand: false, leavesOnly: false}]- * @returns {integer} count- * @alias Fancytree#filterNodes- * @requires jquery.fancytree.filter.js- */-$.ui.fancytree._FancytreeClass.prototype.filterNodes = function(filter, opts) {- if( typeof opts === "boolean" ) {- opts = { leavesOnly: opts };- this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.");- }- return this._applyFilterImpl(filter, false, opts);-};--/**- * @deprecated- */-$.ui.fancytree._FancytreeClass.prototype.applyFilter = function(filter){- this.warn("Fancytree.applyFilter() is deprecated since 2.1.0 / 2014-05-29. Use .filterNodes() instead.");- return this.filterNodes.apply(this, arguments);-};--/**- * [ext-filter] Dimm or hide whole branches.- *- * @param {function | string} filter- * @param {boolean} [opts={autoExpand: false}]- * @returns {integer} count- * @alias Fancytree#filterBranches- * @requires jquery.fancytree.filter.js- */-$.ui.fancytree._FancytreeClass.prototype.filterBranches = function(filter, opts){- return this._applyFilterImpl(filter, true, opts);-};---/**- * [ext-filter] Reset the filter.- *- * @alias Fancytree#clearFilter- * @requires jquery.fancytree.filter.js- */-$.ui.fancytree._FancytreeClass.prototype.clearFilter = function(){- var $title,- statusNode = this.getRootNode()._findDirectChild(KeyNoData),- escapeTitles = this.options.escapeTitles,- enhanceTitle = this.options.enhanceTitle;-- if( statusNode ) {- statusNode.remove();- }- this.visit(function(node){- if( node.match && node.span ) { // #491, #601- $title = $(node.span).find(">span.fancytree-title");- if( escapeTitles ) {- $title.text(node.title);- } else {- $title.html(node.title);- }- if( enhanceTitle ) {- enhanceTitle({type: "enhanceTitle"}, {node: node, $title: $title});- }- }- delete node.match;- delete node.subMatchCount;- delete node.titleWithHighlight;- if ( node.$subMatchBadge ) {- node.$subMatchBadge.remove();- delete node.$subMatchBadge;- }- if( node._filterAutoExpanded && node.expanded ) {- node.setExpanded(false, {noAnimation: true, noEvents: true, scrollIntoView: false});- }- delete node._filterAutoExpanded;- });- this.enableFilter = false;- this.lastFilterArgs = null;- this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide");- this.render();-};---/**- * [ext-filter] Return true if a filter is currently applied.- *- * @returns {Boolean}- * @alias Fancytree#isFilterActive- * @requires jquery.fancytree.filter.js- * @since 2.13- */-$.ui.fancytree._FancytreeClass.prototype.isFilterActive = function(){- return !!this.enableFilter;-};---/**- * [ext-filter] Return true if this node is matched by current filter (or no filter is active).- *- * @returns {Boolean}- * @alias FancytreeNode#isMatched- * @requires jquery.fancytree.filter.js- * @since 2.13- */-$.ui.fancytree._FancytreeNodeClass.prototype.isMatched = function(){- return !(this.tree.enableFilter && !this.match);-};---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "filter",- version: "2.23.0",- // Default options for this extension.- options: {- autoApply: true, // Re-apply last filter if lazy data is loaded- autoExpand: false, // Expand all branches that contain matches while filtered- counter: true, // Show a badge with number of matching child nodes near parent icons- fuzzy: false, // Match single characters in order, e.g. 'fb' will match 'FooBar'- hideExpandedCounter: true, // Hide counter badge if parent is expanded- hideExpanders: false, // Hide expanders if all child nodes are hidden by filter- highlight: true, // Highlight matches by wrapping inside <mark> tags- leavesOnly: false, // Match end nodes only- nodata: true, // Display a 'no data' status node if result is empty- mode: "dimm" // Grayout unmatched nodes (pass "hide" to remove unmatched node instead)- },- nodeLoadChildren: function(ctx, source) {- return this._superApply(arguments).done(function() {- if( ctx.tree.enableFilter && ctx.tree.lastFilterArgs && ctx.options.filter.autoApply ) {- ctx.tree._applyFilterImpl.apply(ctx.tree, ctx.tree.lastFilterArgs);- }- });- },- nodeSetExpanded: function(ctx, flag, callOpts) {- delete ctx.node._filterAutoExpanded;- // Make sure counter badge is displayed again, when node is beeing collapsed- if( !flag && ctx.options.filter.hideExpandedCounter && ctx.node.$subMatchBadge ) {- ctx.node.$subMatchBadge.show();- }- return this._superApply(arguments);- },- nodeRenderStatus: function(ctx) {- // Set classes for current status- var res,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options.filter,- $title = $(node.span).find("span.fancytree-title"),- $span = $(node[tree.statusClassPropName]),- enhanceTitle = ctx.options.enhanceTitle,- escapeTitles = ctx.options.escapeTitles;-- res = this._super(ctx);- // nothing to do, if node was not yet rendered- if( !$span.length || !tree.enableFilter ) {- return res;- }- $span- .toggleClass("fancytree-match", !!node.match)- .toggleClass("fancytree-submatch", !!node.subMatchCount)- .toggleClass("fancytree-hide", !(node.match || node.subMatchCount));- // Add/update counter badge- if( opts.counter && node.subMatchCount && (!node.isExpanded() || !opts.hideExpandedCounter) ) {- if( !node.$subMatchBadge ) {- node.$subMatchBadge = $("<span class='fancytree-childcounter'/>");- $("span.fancytree-icon, span.fancytree-custom-icon", node.span).append(node.$subMatchBadge);- }- node.$subMatchBadge.show().text(node.subMatchCount);- } else if ( node.$subMatchBadge ) {- node.$subMatchBadge.hide();- }- // node.debug("nodeRenderStatus", node.titleWithHighlight, node.title)- // #601: also chek for $title.length, because we don't need to render- // if node.span is null (i.e. not rendered)- if( node.span && (!node.isEditing || !node.isEditing.call(node)) ) {- if( node.titleWithHighlight ) {- $title.html(node.titleWithHighlight);- } else if ( escapeTitles ) {- $title.text(node.title);- } else {- $title.html(node.title);- }- if( enhanceTitle ) {- enhanceTitle({type: "enhanceTitle"}, {node: node, $title: $title});- }- }- return res;- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.fixed.js b/public/libraries/fancytree/src/jquery.fancytree.fixed.jsdeleted file mode 100644index ce7e340868..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.fixed.js+++ /dev/null@@ -1,542 +0,0 @@-/*!- * jquery.fancytree.fixed.js- *- * Add fixed colums and headers to ext.table.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */---$.ui.fancytree.registerExtension({- name: "fixed",- version: "0.0.1",- // Default options for this extension.- options: {- fixCol: 1,- fixColWidths: null,- fixRows: true- },- // Overide virtual methods for this extension.- // `this` : is this extension object- // `this._super`: the virtual function that was overriden (member of prev. extension or Fancytree)- treeInit: function(ctx){- this._requireExtension("table", true, true);- // 'fixed' requires the table extension to be loaded before itself-- var _this = this,- res = this._superApply(arguments),- tree = ctx.tree,- options = this.options.fixed,- $table = tree.widget.element,- fixedColCount = options.fixCols,- fixedRowCount = options.fixRows,- $tableWrapper = $table.parent().addClass("fancytree-ext-fixed-wrapper"),- $topLeftWrapper = $("<div>").addClass("fancytree-fixed-wrapper-tl"),- $topRightWrapper = $("<div>").addClass("fancytree-fixed-wrapper-tr"),- $bottomLeftWrapper = $("<div>").addClass("fancytree-fixed-wrapper-bl"),- $bottomRightWrapper = $("<div>").addClass("fancytree-fixed-wrapper-br"),- $topLeftTable = $("<table>").attr("style", $table.attr("style")).attr("class", $table.attr("class")),- $topRightTable = $("<table>").attr("style", $table.attr("style")).attr("class", $table.attr("class")),- $bottomLeftTable = $("<table>").attr("style", $table.attr("style")).attr("class", $table.attr("class")),- $bottomRightTable = $table,- $head = $table.find("thead"),-// $body = $table.find("tbody"),- $colgroup = $table.find("colgroup"),- headRowCount = $head.find("tr").length;-// remainingHeadRows = headRowCount - fixedRowCount;-- $table.addClass("fancytree-ext-fixed");- $tableWrapper.addClass("fancytree-fixed-wrapper");- $bottomLeftTable.append($("<tbody>"));-- if ($colgroup.length) {- $colgroup.remove();- }-- if (typeof fixedRowCount === "boolean") {- fixedRowCount = fixedRowCount ? headRowCount : 0;- } else {- fixedRowCount = Math.max(0, Math.min(fixedRowCount, headRowCount));- }-- if (fixedRowCount) {- $topLeftTable.append($head.clone());- $topRightTable.append($head.clone());- $head.hide();- }--// if (remainingHeadRows > 0) {-// var $remainingHeadRows = $body.find("tr:lt(" + remainingHeadRows + ")").clone();-// $topLeftTable.append($("<tbody>").append($remainingHeadRows));-// $topRightTable.append($("<tbody>").append($remainingHeadRows.clone()));-// }-- $topLeftTable.find("tr").each(function(idx) {- var $tr = $(this);- $tr.find("th").slice(fixedColCount).remove();- $tr.find("td").slice(fixedColCount).remove();- });-- $topRightTable.find("tr").each(function(idx) {- var $tr = $(this);- $tr.find("th").slice(0, fixedColCount).addClass("fancytree-fixed-hidden");- $tr.find("td").slice(0, fixedColCount).addClass("fancytree-fixed-hidden");- });--// if (remainingHeadRows < 0) {-// var headTrCount = $head.find("tr").length;-// $bottomLeftTable.append($head.clone());-//-// $bottomLeftTable.find("thead tr:lt(" + (headTrCount + remainingHeadRows) + ")").addClass("hidden").find("td, th").addClass("hidden");-// $bottomRightTable.find("thead tr:lt(" + (headTrCount + remainingHeadRows) + ")").addClass("hidden").find("td, th").addClass("hidden");-//-// $topLeftTable.find("thead tr:gt(" + (headTrCount + remainingHeadRows-1) + ")").remove();-// $topRightTable.find("thead tr:gt(" + (headTrCount + remainingHeadRows-1) + ")").remove();-// } else {-// $bottomRightTable.find("thead").addClass("hidden").find("tr, th").addClass("hidden");-// $bottomRightTable.find("tbody tr:lt(" + remainingHeadRows + ")").addClass("hidden");-// }--- this.$fixedWrapper = $tableWrapper;-- $tableWrapper.append(- $topLeftWrapper.append(- $topLeftTable- ),- $topRightWrapper.append(- $topRightTable- ),- $bottomLeftWrapper.append(- $bottomLeftTable- ),- $bottomRightWrapper.append(- $bottomRightTable- )- );-- $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {- this._super.apply(this, arguments);- var node = data.node,- $nodeTr = $(node.tr),- idx = $nodeTr.index(),- $blTableBody = $("div.fancytree-fixed-wrapper-bl table tbody"),- $prevLeftNode = $blTableBody.find("tr:eq(" + Math.max(idx - 1, 0) + ")"),- $clone = $nodeTr.clone();-- if ($prevLeftNode.length) {- $prevLeftNode.after($clone);- } else {- $blTableBody.append($clone);- }- var span = $clone.find("span.fancytree-node").get(0);- node.span = span;- $nodeTr.data("fancytree-node-counterpart", $clone);- $clone.data("fancytree-node-counterpart", $nodeTr);- $clone.find("th").slice(fixedColCount).remove();- $clone.find("td").slice(fixedColCount).remove();- $clone.show();- $nodeTr.find("th").slice(0, fixedColCount).addClass("fancytree-fixed-hidden");- $nodeTr.find("td").slice(0, fixedColCount).addClass("fancytree-fixed-hidden");- });-- $tableWrapper.on("click", ".fancytree-fixed-wrapper-bl table tr", function(evt) {- var $trLeft = $(this),- $trRight = $trLeft.data("fancytree-node-counterpart"),- node = $.ui.fancytree.getNode($trRight);- if (!node.isActive()) {- node.setActive(true);- }-- }).on("mouseenter", ".fancytree-fixed-wrapper-bl table tr, .fancytree-fixed-wrapper-br table tr", function(evt) {- var $tr = $(this),- $trOther = $tr.data("fancytree-node-counterpart");- $tr.addClass("fancytree-hover");- $trOther.addClass("fancytree-hover");-- }).on("mouseleave", ".fancytree-fixed-wrapper-bl table tr, .fancytree-fixed-wrapper-br table tr", function(evt) {- var $tr = $(this),- $trOther = $tr.data("fancytree-node-counterpart");- $tr.removeClass("fancytree-hover");- $trOther.removeClass("fancytree-hover");-- }).on("click", ".fancytree-fixed-wrapper-bl .fancytree-expander", function(evt) {- var $trLeft = $(this).closest("tr"),- $trRight = $trLeft.data("fancytree-node-counterpart"),- node = $.ui.fancytree.getNode($trRight),- rootCtx = $.extend({}, ctx, {node: node});- _this.nodeSetExpanded(rootCtx, !node.expanded).done(function(){});-- }).on("click", ".fancytree-fixed-wrapper-bl .fancytree-checkbox", function(evt) {- var $trLeft = $(this).closest("tr"),- $trRight = $trLeft.data("fancytree-node-counterpart"),- node = $.ui.fancytree.getNode($trRight);-// rootCtx = $.extend({}, ctx, {node: node});- node.setSelected(!node.selected);- });-- $bottomLeftWrapper.bind("mousewheel DOMMouseScroll", function(event) {- var $this = $(this),- newScroll = $this.scrollTop();-- if (event.originalEvent.wheelDelta) {- newScroll -= event.originalEvent.wheelDelta / 2;- } else if (event.originalEvent.detail) {- newScroll += event.originalEvent.detail * 14;- }- $this.scrollTop(newScroll);- $bottomRightWrapper.scrollTop(newScroll);- });-- $bottomRightWrapper.scroll(function() {- var $this = $(this),- scrollLeft = $this.scrollLeft(),- scrollTop = $this.scrollTop();-- $topLeftWrapper- .toggleClass("scrollBorderBottom", scrollTop > 0)- .toggleClass("scrollBorderRight", scrollLeft > 0);- $topRightWrapper- .toggleClass("scrollBorderBottom", scrollTop > 0)- .scrollLeft(scrollLeft);- $bottomLeftWrapper- .toggleClass("scrollBorderRight", scrollLeft > 0)- .scrollTop(scrollTop);- });-- return res;- },- treeLoad: function(ctx) {- var _this = this,- res = this._superApply(arguments);-- res.done(function() {- _this.ext.fixed._adjustLayout();- });- return res;- },- /* Called by nodeRender to sync node order with tag order.*/-// nodeFixOrder: function(ctx) {-// },-- nodeLoadChildren: function(ctx, source) {- return this._superApply(arguments);- },- nodeRemoveChildMarkup: function(ctx) {- var node = ctx.node;- var children = node.children;- if (children) {- for (var i = 0; i < children.length; i++) {- var child = children[i];- var $leftTr = $(child.tr).data("fancytree-node-counterpart");- if ($leftTr) {- $leftTr.remove();- }- }- }- return this._superApply(arguments);- },- nodeRemoveMarkup: function(ctx) {- var node = ctx.node,- $rightNode = $(node.tr),- $leftNode = $rightNode.data("fancytree-node-counterpart");- if ($leftNode) {- $leftNode.remove();- }- return this._superApply(arguments);- },- nodeSetActive: function(ctx, flag, callOpts) {- var node = ctx.node,- $rightNode = $(node.tr),- $leftNode = $rightNode.data("fancytree-node-counterpart");- if ($leftNode) {- $leftNode.toggleClass("fancytree-active", flag);- $leftNode.toggleClass("fancytree-focused", flag);- }- var res = this._superApply(arguments);- return res;- },- nodeSetFocus: function(ctx, flag) {- var node = ctx.node,- $rightNode = $(node.tr),- $leftNode = $rightNode.data("fancytree-node-counterpart");- if ($leftNode) {- $leftNode.toggleClass("fancytree-focused", flag);- }- var res = this._superApply(arguments);- return res;- },- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- var res = this._superApply(arguments);-// node = ctx.node,-// _this = this,-// $rightTr = $(node.tr),-// $leftTr = $(node.tr).data("fancytree-node-counterpart");--// if (!$leftTr && this.$fixedWrapper && !node.isRoot()) {-// var index = $rightTr.index();-// $leftTr = this.$fixedWrapper.find(".fancytree-fixed-wrapper-bl table tbody tr").eq(index);-// if ($leftTr.length) {-// $rightTr.data("fancytree-node-counterpart", $leftTr);-// $leftTr.data("fancytree-node-counterpart", $rightTr);-// }-// }-//-// if ($leftTr) {-// $leftTr.attr("class", $rightTr.attr("class"));-// _this.ext.fixed._adjustRowLayout($leftTr, $rightTr);-// $leftTr.find("td:not(.fancytree-fixed-hidden), th:not(.fancytree-fixed-hidden)").each(function(idx) {-// _this.ext.fixed._adjustColumnLayout($(this), $rightTr.find("td").eq(idx));-// });-// }- return res;- },- nodeRenderTitle: function(ctx, title) {- return this._superApply(arguments);- },- nodeRenderStatus: function(ctx) {- var res = this._superApply(arguments),- node = ctx.node,- $rightTr = $(node.tr).data("fancytree-node-counterpart");- if ($rightTr) {- $rightTr.toggleClass("fancytree-selected", node.selected);- $rightTr.toggleClass("fancytree-partsel", node.partsel);- }-- return res;- },- nodeSetExpanded: function(ctx, flag, callOpts) {- var res,- _this = this,- node = ctx.node,-// fixCols = this.options.fixed.fixCols,- $leftTr = $(node.tr).data("fancytree-node-counterpart");-- if (!$leftTr) {- return this._superApply(arguments);- }- $leftTr.toggleClass("fancytree-expanded", !!flag);- if (flag) {- res = this._superApply(arguments);- res.done(function() {- node.visit(function(child) {- var $tr = $(child.tr),- $clone = $tr.data("fancytree-node-counterpart");- $clone.toggleClass("fancytree-fixed-hidden", !flag).find("td, th").toggleClass("fancytree-fixed-hidden", !flag);- _this.ext.fixed._adjustRowLayout($tr, $clone);- if (!child.expanded) {- return "skip";- }- });-- $leftTr.find("td:not(.fancytree-fixed-hidden), th:not(.fancytree-fixed-hidden)").each(function(idx) {- _this.ext.fixed._adjustColumnLayout($(this), null);- });- _this.ext.fixed._adjustWrapperLayout();- });- } else {- node.visit(function(child) {- var $tr = $(child.tr),- $clone = $tr.data("fancytree-node-counterpart");- if ($clone) {- $clone.toggleClass("fancytree-fixed-hidden", !flag).find("td, th").toggleClass("fancytree-fixed-hidden", !flag);- _this.ext.fixed._adjustRowLayout($tr, $clone);- if (!child.expanded) {- return "skip";- }- }- });-- $leftTr.find("td:not(.fancytree-fixed-hidden), th:not(.fancytree-fixed-hidden)").each(function(idx) {- _this.ext.fixed._adjustColumnLayout($(this), null);- });- _this.ext.fixed._adjustWrapperLayout();- res = this._superApply(arguments);- }-- return res;- },- nodeSetStatus: function(ctx, status, message, details) {- return this._superApply(arguments);- },- treeClear: function(ctx) {- var tree = ctx.tree,- $table = tree.widget.element,- $wrapper = this.$fixedWrapper;- $table.find("tr, td, th, thead").removeClass("fancytree-fixed-hidden").css({- "min-width": "auto",- "height": "auto"- });- $wrapper.append($table);- $wrapper.find(".fancytree-fixed-wrapper-tl").remove();- $wrapper.find(".fancytree-fixed-wrapper-tr").remove();- $wrapper.find(".fancytree-fixed-wrapper-bl").remove();- $wrapper.find(".fancytree-fixed-wrapper-br").remove();- return this._superApply(arguments);- },-- treeRegisterNode: function(ctx, add, node) {- return this._superApply(arguments);- },- treeDestroy: function(ctx) {- var tree = ctx.tree,- $table = tree.widget.element,- $wrapper = this.$fixedWrapper;- $table.find("tr, td, th, thead").removeClass("fancytree-fixed-hidden").css({- "min-width": "auto",- "height": "auto"- });- $wrapper.append($table);- $wrapper.find(".fancytree-fixed-wrapper-tl").remove();- $wrapper.find(".fancytree-fixed-wrapper-tr").remove();- $wrapper.find(".fancytree-fixed-wrapper-bl").remove();- $wrapper.find(".fancytree-fixed-wrapper-br").remove();-- return this._superApply(arguments);- },-- _adjustColumnLayout: function($td1, $td2) {- if (!$td2) {- var $table = $td1.closest("table"),- $tr2 = null,- colIdx = $td1.index(),- $tableWrapper = $table.parent(),- $wrapper = this.$fixedWrapper,- $tlWrapper = $wrapper.find("div.fancytree-fixed-wrapper-tl"),- $trWrapper = $wrapper.find("div.fancytree-fixed-wrapper-tr"),- $blWrapper = $wrapper.find("div.fancytree-fixed-wrapper-bl"),- $brWrapper = $wrapper.find("div.fancytree-fixed-wrapper-br");- if ($tableWrapper.is($tlWrapper)) {- $tr2 = $blWrapper.find("tr:not(.fancytree-fixed-hidden)").first();- } else if ($tableWrapper.is($trWrapper)) {- $tr2 = $brWrapper.find("tr:not(.fancytree-fixed-hidden)").first();- } else if ($tableWrapper.is($blWrapper)) {- $tr2 = $tlWrapper.find("tr:not(.fancytree-fixed-hidden)").first();- } else if ($tableWrapper.is($brWrapper)) {- $tr2 = $trWrapper.find("tr:not(.fancytree-fixed-hidden)").first();- }-- $td2 = $tr2.find("td:not(.fancytree-fixed-hidden):eq(" + colIdx + "), th:not(.fancytree-fixed-hidden):eq(" + colIdx + ")");- }- $td1.css("min-width", "auto");- $td2.css("min-width", "auto");- var td1Width = $td1.width(),- td2Width = $td2.width(),- td1OuterWidth = $td1.outerWidth(),- td2OuterWidth = $td2.outerWidth(),- newWidth = Math.max(td1OuterWidth, td2OuterWidth);-- $td1.css("min-width", newWidth - (td1OuterWidth - td1Width));- $td2.css("min-width", newWidth - (td2OuterWidth - td2Width));- },-- _adjustRowLayout: function($row1, $row2) {- if (!$row2) {- $row2 = $row1.data("fancytree-node-counterpart");- }- $row1.css("height", "auto");- $row2.css("height", "auto");- var row1Height = $row1.outerHeight(),- row2Height = $row2.outerHeight(),- newHeight = Math.max(row1Height, row2Height);- $row1.css("height", newHeight+1);- $row2.css("height", newHeight+1);- },-- _adjustWrapperLayout: function() {- var $wrapper = this.$fixedWrapper,- $topLeftWrapper = $wrapper.find("div.fancytree-fixed-wrapper-tl"),- $topRightWrapper = $wrapper.find("div.fancytree-fixed-wrapper-tr"),- $bottomLeftWrapper = $wrapper.find("div.fancytree-fixed-wrapper-bl"),- $bottomRightWrapper = $wrapper.find("div.fancytree-fixed-wrapper-br"),- $topLeftTable = $topLeftWrapper.find("table"),- $topRightTable = $topRightWrapper.find("table"),- $bottomLeftTable = $bottomLeftWrapper.find("table"),-// $bottomRightTable = $bottomRightWrapper.find("table"),- wrapperWidth = $wrapper.width(),- wrapperHeight = $wrapper.height(),-// fixedWidth = Math.min(wrapperWidth, Math.max($topLeftTable.outerWidth(), $bottomLeftTable.outerWidth())),- fixedWidth = Math.min(wrapperWidth, Math.max($topLeftTable.outerWidth(), $bottomLeftTable.get(0).scrollWidth)),- fixedHeight = Math.min(wrapperHeight, Math.max($topLeftTable.height(), $topRightTable.height())),- vScrollbar = $bottomRightWrapper.get(0).scrollHeight > (wrapperHeight - fixedHeight),- hScrollbar = $bottomRightWrapper.get(0).scrollWidth > (wrapperWidth - fixedWidth);-- $topLeftWrapper.css({- width: fixedWidth,- height: fixedHeight- });- $topRightWrapper.css({- width: wrapperWidth - fixedWidth - (vScrollbar ? 17 : 0),- height: fixedHeight,- left: fixedWidth- });- $bottomLeftWrapper.css({- width: fixedWidth,- height: vScrollbar ? wrapperHeight - fixedHeight - (hScrollbar ? 17 : 0) : "auto",- top: fixedHeight- });- $bottomRightWrapper.css({- width: wrapperWidth - fixedWidth,- height: vScrollbar ? wrapperHeight - fixedHeight : "auto",- top: fixedHeight,- left: fixedWidth- });- },-- _adjustLayout: function() {- var _this = this,- $wrapper = this.$fixedWrapper,- $topLeftTable = $wrapper.find("div.fancytree-fixed-wrapper-tl table"),- $topRightTable = $wrapper.find("div.fancytree-fixed-wrapper-tr table"),- $bottomLeftTable = $wrapper.find("div.fancytree-fixed-wrapper-bl table"),- $bottomRightTable = $wrapper.find("div.fancytree-fixed-wrapper-br table");-- $topLeftTable.find("tr").each(function(idx) {- var $row2 = $topRightTable.find("tr:eq(" + idx + ")");- _this.ext.fixed._adjustRowLayout($(this), $row2);- });-- $bottomLeftTable.find("tr").each(function(idx) {- var $row2 = $bottomRightTable.find("tbody").find("tr:eq(" + idx + ")");- _this.ext.fixed._adjustRowLayout($(this), $row2);- });-- $topLeftTable.find("tr:first-child").find("td, th").each(function(idx) {- var $bottomTr = $bottomLeftTable.find("tr:first-child"),- $td2 = $bottomTr.find("td:not(.fancytree-fixed-hidden):eq(" + idx + "), th:not(.fancytree-fixed-hidden):eq(" + idx + ")");- _this.ext.fixed._adjustColumnLayout($(this), $td2);- });-- $topRightTable.find("tr:first-child").find("th:not(.fancytree-fixed-hidden)").each(function(idx) {- var $bottomTr = $bottomRightTable.find("tbody tr:first-child:not(.fancytree-fixed-hidden)"),- $td2 = $bottomTr.find("td:not(.fancytree-fixed-hidden):eq(" + idx + "), th:not(.fancytree-fixed-hidden):eq(" + idx + ")");- _this.ext.fixed._adjustColumnLayout($(this), $td2);- });-- _this.ext.fixed._adjustWrapperLayout();- }--- /*,- treeSetFocus: function(ctx, flag) {-// alert("treeSetFocus" + ctx.tree.$container);- ctx.tree.$container.focus();- $.ui.fancytree.focusTree = ctx.tree;- }*/-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.glyph.js b/public/libraries/fancytree/src/jquery.fancytree.glyph.jsdeleted file mode 100644index 62681318c3..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.glyph.js+++ /dev/null@@ -1,143 +0,0 @@-/*!- * jquery.fancytree.glyph.js- *- * Use glyph fonts as instead of icon sprites.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */--function _getIcon(opts, type){- return opts.map[type];-}--$.ui.fancytree.registerExtension({- name: "glyph",- version: "2.23.0",- // Default options for this extension.- options: {- map: {- // Samples from Font Awesome 3.2- // http://fortawesome.github.io/Font-Awesome/3.2.1/icons/- // See here for alternatives:- // http://fortawesome.github.io/Font-Awesome/icons/- // http://getbootstrap.com/components/- checkbox: "icon-check-empty",- checkboxSelected: "icon-check",- checkboxUnknown: "icon-check icon-muted",- error: "icon-exclamation-sign",- expanderClosed: "icon-caret-right",- expanderLazy: "icon-angle-right",- expanderOpen: "icon-caret-down",- nodata: "icon-meh",- noExpander: "",- dragHelper: "icon-caret-right",- dropMarker: "icon-caret-right",- // Default node icons.- // (Use tree.options.icon callback to define custom icons- // based on node data)- doc: "icon-file-alt",- docOpen: "icon-file-alt",- loading: "icon-refresh icon-spin",- folder: "icon-folder-close-alt",- folderOpen: "icon-folder-open-alt"- }- },-- treeInit: function(ctx){- var tree = ctx.tree;- this._superApply(arguments);- tree.$container.addClass("fancytree-ext-glyph");- },- nodeRenderStatus: function(ctx) {- var icon, res, span,- node = ctx.node,- $span = $(node.span),- opts = ctx.options.glyph,- map = opts.map;-- res = this._super(ctx);-- if( node.isRoot() ){- return res;- }- span = $span.children("span.fancytree-expander").get(0);- if( span ){- // if( node.isLoading() ){- // icon = "loading";- if( node.expanded && node.hasChildren() ){- icon = "expanderOpen";- }else if( node.isUndefined() ){- icon = "expanderLazy";- }else if( node.hasChildren() ){- icon = "expanderClosed";- }else{- icon = "noExpander";- }- span.className = "fancytree-expander " + map[icon];- }-- if( node.tr ){- span = $("td", node.tr).find("span.fancytree-checkbox").get(0);- }else{- span = $span.children("span.fancytree-checkbox").get(0);- }- if( span ){- icon = node.selected ? "checkboxSelected" : (node.partsel ? "checkboxUnknown" : "checkbox");- span.className = "fancytree-checkbox " + map[icon];- }-- // Standard icon (note that this does not match .fancytree-custom-icon,- // that might be set by opts.icon callbacks)- span = $span.children("span.fancytree-icon").get(0);- if( span ){- if( node.statusNodeType ){- icon = _getIcon(opts, node.statusNodeType); // loading, error- }else if( node.folder ){- icon = node.expanded && node.hasChildren() ? _getIcon(opts, "folderOpen") : _getIcon(opts, "folder");- }else{- icon = node.expanded ? _getIcon(opts, "docOpen") : _getIcon(opts, "doc");- }- span.className = "fancytree-icon " + icon;- }- return res;- },- nodeSetStatus: function(ctx, status, message, details) {- var res, span,- opts = ctx.options.glyph,- node = ctx.node;-- res = this._superApply(arguments);-- if( status === "error" || status === "loading" || status === "nodata" ){- if(node.parent){- span = $("span.fancytree-expander", node.span).get(0);- if( span ) {- span.className = "fancytree-expander " + _getIcon(opts, status);- }- }else{ //- span = $(".fancytree-statusnode-" + status, node[this.nodeContainerAttrName])- .find("span.fancytree-icon").get(0);- if( span ) {- span.className = "fancytree-icon " + _getIcon(opts, status);- }- }- }- return res;- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.gridnav.js b/public/libraries/fancytree/src/jquery.fancytree.gridnav.jsdeleted file mode 100644index 65effda496..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.gridnav.js+++ /dev/null@@ -1,203 +0,0 @@-/*!- * jquery.fancytree.gridnav.js- *- * Support keyboard navigation for trees with embedded input controls.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--// Allow these navigation keys even when input controls are focused--var KC = $.ui.keyCode,- // which keys are *not* handled by embedded control, but passed to tree- // navigation handler:- NAV_KEYS = {- "text": [KC.UP, KC.DOWN],- "checkbox": [KC.UP, KC.DOWN, KC.LEFT, KC.RIGHT],- "link": [KC.UP, KC.DOWN, KC.LEFT, KC.RIGHT],- "radiobutton": [KC.UP, KC.DOWN, KC.LEFT, KC.RIGHT],- "select-one": [KC.LEFT, KC.RIGHT],- "select-multiple": [KC.LEFT, KC.RIGHT]- };---/* Calculate TD column index (considering colspans).*/-function getColIdx($tr, $td) {- var colspan,- td = $td.get(0),- idx = 0;-- $tr.children().each(function () {- if( this === td ) {- return false;- }- colspan = $(this).prop("colspan");- idx += colspan ? colspan : 1;- });- return idx;-}---/* Find TD at given column index (considering colspans).*/-function findTdAtColIdx($tr, colIdx) {- var colspan,- res = null,- idx = 0;-- $tr.children().each(function () {- if( idx >= colIdx ) {- res = $(this);- return false;- }- colspan = $(this).prop("colspan");- idx += colspan ? colspan : 1;- });- return res;-}---/* Find adjacent cell for a given direction. Skip empty cells and consider merged cells */-function findNeighbourTd($target, keyCode){- var $tr, colIdx,- $td = $target.closest("td"),- $tdNext = null;-- switch( keyCode ){- case KC.LEFT:- $tdNext = $td.prev();- break;- case KC.RIGHT:- $tdNext = $td.next();- break;- case KC.UP:- case KC.DOWN:- $tr = $td.parent();- colIdx = getColIdx($tr, $td);- while( true ) {- $tr = (keyCode === KC.UP) ? $tr.prev() : $tr.next();- if( !$tr.length ) {- break;- }- // Skip hidden rows- if( $tr.is(":hidden") ) {- continue;- }- // Find adjacent cell in the same column- $tdNext = findTdAtColIdx($tr, colIdx);- // Skip cells that don't conatain a focusable element- if( $tdNext && $tdNext.find(":input,a").length ) {- break;- }- }- break;- }- return $tdNext;-}---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "gridnav",- version: "2.23.0",- // Default options for this extension.- options: {- autofocusInput: false, // Focus first embedded input if node gets activated- handleCursorKeys: true // Allow UP/DOWN in inputs to move to prev/next node- },-- treeInit: function(ctx){- // gridnav requires the table extension to be loaded before itself- this._requireExtension("table", true, true);- this._superApply(arguments);-- this.$container.addClass("fancytree-ext-gridnav");-- // Activate node if embedded input gets focus (due to a click)- this.$container.on("focusin", function(event){- var ctx2,- node = $.ui.fancytree.getNode(event.target);-- if( node && !node.isActive() ){- // Call node.setActive(), but also pass the event- ctx2 = ctx.tree._makeHookContext(node, event);- ctx.tree._callHook("nodeSetActive", ctx2, true);- }- });- },- nodeSetActive: function(ctx, flag, callOpts) {- var $outer,- opts = ctx.options.gridnav,- node = ctx.node,- event = ctx.originalEvent || {},- triggeredByInput = $(event.target).is(":input");-- flag = (flag !== false);-- this._superApply(arguments);-- if( flag ){- if( ctx.options.titlesTabbable ){- if( !triggeredByInput ) {- $(node.span).find("span.fancytree-title").focus();- node.setFocus();- }- // If one node is tabbable, the container no longer needs to be- ctx.tree.$container.attr("tabindex", "-1");- // ctx.tree.$container.removeAttr("tabindex");- } else if( opts.autofocusInput && !triggeredByInput ){- // Set focus to input sub input (if node was clicked, but not- // when TAB was pressed )- $outer = $(node.tr || node.span);- $outer.find(":input:enabled:first").focus();- }- }- },- nodeKeydown: function(ctx) {- var inputType, handleKeys, $td,- opts = ctx.options.gridnav,- event = ctx.originalEvent,- $target = $(event.target);-- if( $target.is(":input:enabled") ) {- inputType = $target.prop("type");- } else if( $target.is("a") ) {- inputType = "link";- }- // ctx.tree.debug("ext-gridnav nodeKeydown", event, inputType);-- if( inputType && opts.handleCursorKeys ){- handleKeys = NAV_KEYS[inputType];- if( handleKeys && $.inArray(event.which, handleKeys) >= 0 ){- $td = findNeighbourTd($target, event.which);- if( $td && $td.length ) {- // ctx.node.debug("ignore keydown in input", event.which, handleKeys);- $td.find(":input:enabled,a").focus();- // Prevent Fancytree default navigation- return false;- }- }- return true;- }- // ctx.tree.debug("ext-gridnav NOT HANDLED", event, inputType);- return this._superApply(arguments);- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.js b/public/libraries/fancytree/src/jquery.fancytree.jsdeleted file mode 100644index b2c14c9304..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.js+++ /dev/null@@ -1,5246 +0,0 @@-/*!- * jquery.fancytree.js- * Tree view control with support for lazy loading and much more.- * https://github.com/mar10/fancytree/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--/** Core Fancytree module.- */---// Start of local namespace-;(function($, window, document, undefined) {-"use strict";--// prevent duplicate loading-if ( $.ui && $.ui.fancytree ) {- $.ui.fancytree.warn("Fancytree: ignored duplicate include");- return;-}---/* *****************************************************************************- * Private functions and variables- */--var i, attr,- FT = null, // initialized below- TEST_IMG = new RegExp(/\.|\//), // strings are considered image urls if they contain '.' or '/'- REX_HTML = /[&<>"'\/]/g,- REX_TOOLTIP = /[<>"'\/]/g,- RECURSIVE_REQUEST_ERROR = "$recursive_request",- ENTITY_MAP = {"&": "&", "<": "<", ">": ">", "\"": """, "'": "'", "/": "/"},- IGNORE_KEYCODES = { 16: true, 17: true, 18: true },- SPECIAL_KEYCODES = {- 8: "backspace", 9: "tab", 10: "return", 13: "return",- // 16: null, 17: null, 18: null, // ignore shift, ctrl, alt- 19: "pause", 20: "capslock", 27: "esc", 32: "space", 33: "pageup",- 34: "pagedown", 35: "end", 36: "home", 37: "left", 38: "up",- 39: "right", 40: "down", 45: "insert", 46: "del", 59: ";", 61: "=",- 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6",- 103: "7", 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".",- 111: "/", 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5",- 117: "f6", 118: "f7", 119: "f8", 120: "f9", 121: "f10", 122: "f11",- 123: "f12", 144: "numlock", 145: "scroll", 173: "-", 186: ";", 187: "=",- 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",- 221: "]", 222: "'"},- MOUSE_BUTTONS = { 0: "", 1: "left", 2: "middle", 3: "right" },- // Boolean attributes that can be set with equivalent class names in the LI tags- // Note: v2.23: checkbox and hideCheckbox are *not* in this list- CLASS_ATTRS = "active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),- CLASS_ATTR_MAP = {},- // Top-level Fancytree node attributes, that can be set by dict- NODE_ATTRS = "checkbox expanded extraClasses folder icon key lazy radiogroup refKey selected statusNodeType title tooltip unselectable unselectableIgnore unselectableStatus".split(" "),- NODE_ATTR_MAP = {},- // Mapping of lowercase -> real name (because HTML5 data-... attribute only supports lowercase)- NODE_ATTR_LOWERCASE_MAP = {},- // Attribute names that should NOT be added to node.data- NONE_NODE_DATA_MAP = {"active": true, "children": true, "data": true, "focus": true};--for(i=0; i<CLASS_ATTRS.length; i++){ CLASS_ATTR_MAP[CLASS_ATTRS[i]] = true; }-for(i=0; i<NODE_ATTRS.length; i++) {- attr = NODE_ATTRS[i];- NODE_ATTR_MAP[attr] = true;- if( attr !== attr.toLowerCase() ) {- NODE_ATTR_LOWERCASE_MAP[attr.toLowerCase()] = attr;- }-}---function _assert(cond, msg){- // TODO: see qunit.js extractStacktrace()- if(!cond){- msg = msg ? ": " + msg : "";- // consoleApply("assert", [!!cond, msg]);- $.error("Fancytree assertion failed" + msg);- }-}--_assert($.ui, "Fancytree requires jQuery UI (http://jqueryui.com)");--function consoleApply(method, args){- var i, s,- fn = window.console ? window.console[method] : null;-- if(fn){- try{- fn.apply(window.console, args);- } catch(e) {- // IE 8?- s = "";- for( i=0; i<args.length; i++ ) {- s += args[i];- }- fn(s);- }- }-}--/*Return true if x is a FancytreeNode.*/-function _isNode(x){- return !!(x.tree && x.statusNodeType !== undefined);-}--/** Return true if dotted version string is equal or higher than requested version.- *- * See http://jsfiddle.net/mar10/FjSAN/- */-function isVersionAtLeast(dottedVersion, major, minor, patch){- var i, v, t,- verParts = $.map($.trim(dottedVersion).split("."), function(e){ return parseInt(e, 10); }),- testParts = $.map(Array.prototype.slice.call(arguments, 1), function(e){ return parseInt(e, 10); });-- for( i = 0; i < testParts.length; i++ ){- v = verParts[i] || 0;- t = testParts[i] || 0;- if( v !== t ){- return ( v > t );- }- }- return true;-}--/** Return a wrapper that calls sub.methodName() and exposes- * this : tree- * this._local : tree.ext.EXTNAME- * this._super : base.methodName.call()- * this._superApply : base.methodName.apply()- */-function _makeVirtualFunction(methodName, tree, base, extension, extName){- // $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);- // if(rexTestSuper && !rexTestSuper.test(func)){- // // extension.methodName() doesn't call _super(), so no wrapper required- // return func;- // }- // Use an immediate function as closure- var proxy = (function(){- var prevFunc = tree[methodName], // org. tree method or prev. proxy- baseFunc = extension[methodName], //- _local = tree.ext[extName],- _super = function(){- return prevFunc.apply(tree, arguments);- },- _superApply = function(args){- return prevFunc.apply(tree, args);- };-- // Return the wrapper function- return function(){- var prevLocal = tree._local,- prevSuper = tree._super,- prevSuperApply = tree._superApply;-- try{- tree._local = _local;- tree._super = _super;- tree._superApply = _superApply;- return baseFunc.apply(tree, arguments);- }finally{- tree._local = prevLocal;- tree._super = prevSuper;- tree._superApply = prevSuperApply;- }- };- })(); // end of Immediate Function- return proxy;-}--/**- * Subclass `base` by creating proxy functions- */-function _subclassObject(tree, base, extension, extName){- // $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);- for(var attrName in extension){- if(typeof extension[attrName] === "function"){- if(typeof tree[attrName] === "function"){- // override existing method- tree[attrName] = _makeVirtualFunction(attrName, tree, base, extension, extName);- }else if(attrName.charAt(0) === "_"){- // Create private methods in tree.ext.EXTENSION namespace- tree.ext[extName][attrName] = _makeVirtualFunction(attrName, tree, base, extension, extName);- }else{- $.error("Could not override tree." + attrName + ". Use prefix '_' to create tree." + extName + "._" + attrName);- }- }else{- // Create member variables in tree.ext.EXTENSION namespace- if(attrName !== "options"){- tree.ext[extName][attrName] = extension[attrName];- }- }- }-}---function _getResolvedPromise(context, argArray){- if(context === undefined){- return $.Deferred(function(){this.resolve();}).promise();- }else{- return $.Deferred(function(){this.resolveWith(context, argArray);}).promise();- }-}---function _getRejectedPromise(context, argArray){- if(context === undefined){- return $.Deferred(function(){this.reject();}).promise();- }else{- return $.Deferred(function(){this.rejectWith(context, argArray);}).promise();- }-}---function _makeResolveFunc(deferred, context){- return function(){- deferred.resolveWith(context);- };-}---function _getElementDataAsDict($el){- // Evaluate 'data-NAME' attributes with special treatment for 'data-json'.- var d = $.extend({}, $el.data()),- json = d.json;-- delete d.fancytree; // added to container by widget factory (old jQuery UI)- delete d.uiFancytree; // added to container by widget factory-- if( json ) {- delete d.json;- // <li data-json='...'> is already returned as object (http://api.jquery.com/data/#data-html5)- d = $.extend(d, json);- }- return d;-}---function _escapeHtml(s){- return ("" + s).replace(REX_HTML, function(s) {- return ENTITY_MAP[s];- });-}---function _escapeTooltip(s){- return ("" + s).replace(REX_TOOLTIP, function(s) {- return ENTITY_MAP[s];- });-}---// TODO: use currying-function _makeNodeTitleMatcher(s){- s = s.toLowerCase();- return function(node){- return node.title.toLowerCase().indexOf(s) >= 0;- };-}---function _makeNodeTitleStartMatcher(s){- var reMatch = new RegExp("^" + s, "i");- return function(node){- return reMatch.test(node.title);- };-}---/* *****************************************************************************- * FancytreeNode- */---/**- * Creates a new FancytreeNode- *- * @class FancytreeNode- * @classdesc A FancytreeNode represents the hierarchical data model and operations.- *- * @param {FancytreeNode} parent- * @param {NodeData} obj- *- * @property {Fancytree} tree The tree instance- * @property {FancytreeNode} parent The parent node- * @property {string} key Node id (must be unique inside the tree)- * @property {string} title Display name (may contain HTML)- * @property {object} data Contains all extra data that was passed on node creation- * @property {FancytreeNode[] | null | undefined} children Array of child nodes.<br>- * For lazy nodes, null or undefined means 'not yet loaded'. Use an empty array- * to define a node that has no children.- * @property {boolean} expanded Use isExpanded(), setExpanded() to access this property.- * @property {string} extraClasses Additional CSS classes, added to the node's `<span>`.<br>- * Note: use `node.add/remove/toggleClass()` to modify.- * @property {boolean} folder Folder nodes have different default icons and click behavior.<br>- * Note: Also non-folders may have children.- * @property {string} statusNodeType null for standard nodes. Otherwise type of special system node: 'error', 'loading', 'nodata', or 'paging'.- * @property {boolean} lazy True if this node is loaded on demand, i.e. on first expansion.- * @property {boolean} selected Use isSelected(), setSelected() to access this property.- * @property {string} tooltip Alternative description used as hover popup- */-function FancytreeNode(parent, obj){- var i, l, name, cl;-- this.parent = parent;- this.tree = parent.tree;- this.ul = null;- this.li = null; // <li id='key' ftnode=this> tag- this.statusNodeType = null; // if this is a temp. node to display the status of its parent- this._isLoading = false; // if this node itself is loading- this._error = null; // {message: '...'} if a load error occurred- this.data = {};-- // TODO: merge this code with node.toDict()- // copy attributes from obj object- for(i=0, l=NODE_ATTRS.length; i<l; i++){- name = NODE_ATTRS[i];- this[name] = obj[name];- }- // unselectableIgnore and unselectableStatus imply unselectable- if( this.unselectableIgnore != null || this.unselectableStatus != null ) {- this.unselectable = true;- }- if( obj.hideCheckbox ) {- $.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'");- }- // node.data += obj.data- if(obj.data){- $.extend(this.data, obj.data);- }- // copy all other attributes to this.data.NAME- for(name in obj){- if(!NODE_ATTR_MAP[name] && !$.isFunction(obj[name]) && !NONE_NODE_DATA_MAP[name]){- // node.data.NAME = obj.NAME- this.data[name] = obj[name];- }- }-- // Fix missing key- if( this.key == null ){ // test for null OR undefined- if( this.tree.options.defaultKey ) {- this.key = this.tree.options.defaultKey(this);- _assert(this.key, "defaultKey() must return a unique key");- } else {- this.key = "_" + (FT._nextNodeKey++);- }- } else {- this.key = "" + this.key; // Convert to string (#217)- }-- // Fix tree.activeNode- // TODO: not elegant: we use obj.active as marker to set tree.activeNode- // when loading from a dictionary.- if(obj.active){- _assert(this.tree.activeNode === null, "only one active node allowed");- this.tree.activeNode = this;- }- if( obj.selected ){ // #186- this.tree.lastSelectedNode = this;- }- // TODO: handle obj.focus = true-- // Create child nodes- cl = obj.children;- if( cl ){- if( cl.length ){- this._setChildren(cl);- } else {- // if an empty array was passed for a lazy node, keep it, in order to mark it 'loaded'- this.children = this.lazy ? [] : null;- }- } else {- this.children = null;- }- // Add to key/ref map (except for root node)-// if( parent ) {- this.tree._callHook("treeRegisterNode", this.tree, true, this);-// }-}---FancytreeNode.prototype = /** @lends FancytreeNode# */{- /* Return the direct child FancytreeNode with a given key, index. */- _findDirectChild: function(ptr){- var i, l,- cl = this.children;-- if(cl){- if(typeof ptr === "string"){- for(i=0, l=cl.length; i<l; i++){- if(cl[i].key === ptr){- return cl[i];- }- }- }else if(typeof ptr === "number"){- return this.children[ptr];- }else if(ptr.parent === this){- return ptr;- }- }- return null;- },- // TODO: activate()- // TODO: activateSilently()- /* Internal helper called in recursive addChildren sequence.*/- _setChildren: function(children){- _assert(children && (!this.children || this.children.length === 0), "only init supported");- this.children = [];- for(var i=0, l=children.length; i<l; i++){- this.children.push(new FancytreeNode(this, children[i]));- }- },- /**- * Append (or insert) a list of child nodes.- *- * @param {NodeData[]} children array of child node definitions (also single child accepted)- * @param {FancytreeNode | string | Integer} [insertBefore] child node (or key or index of such).- * If omitted, the new children are appended.- * @returns {FancytreeNode} first child added- *- * @see FancytreeNode#applyPatch- */- addChildren: function(children, insertBefore){- var i, l, pos,- origFirstChild = this.getFirstChild(),- origLastChild = this.getLastChild(),- firstNode = null,- nodeList = [];-- if($.isPlainObject(children) ){- children = [children];- }- if(!this.children){- this.children = [];- }- for(i=0, l=children.length; i<l; i++){- nodeList.push(new FancytreeNode(this, children[i]));- }- firstNode = nodeList[0];- if(insertBefore == null){- this.children = this.children.concat(nodeList);- }else{- insertBefore = this._findDirectChild(insertBefore);- pos = $.inArray(insertBefore, this.children);- _assert(pos >= 0, "insertBefore must be an existing child");- // insert nodeList after children[pos]- this.children.splice.apply(this.children, [pos, 0].concat(nodeList));- }- if ( origFirstChild && !insertBefore ) {- // #708: Fast path -- don't render every child of root, just the new ones!- // #723, #729: but only if it's appended to an existing child list- for(i=0, l=nodeList.length; i<l; i++) {- nodeList[i].render(); // New nodes were never rendered before- }- // Adjust classes where status may have changed- // Has a first child- if (origFirstChild !== this.getFirstChild()) {- // Different first child -- recompute classes- origFirstChild.renderStatus();- }- if (origLastChild !== this.getLastChild()) {- // Different last child -- recompute classes- origLastChild.renderStatus();- }- } else if( !this.parent || this.parent.ul || this.tr ){- // render if the parent was rendered (or this is a root node)- this.render();- }- if( this.tree.options.selectMode === 3 ){- this.fixSelection3FromEndNodes();- }- this.triggerModifyChild("add", nodeList.length === 1 ? nodeList[0] : null);- return firstNode;- },- /**- * Add class to node's span tag and to .extraClasses.- *- * @param {string} className class name- *- * @since 2.17- */- addClass: function(className){- return this.toggleClass(className, true);- },- /**- * Append or prepend a node, or append a child node.- *- * This a convenience function that calls addChildren()- *- * @param {NodeData} node node definition- * @param {string} [mode=child] 'before', 'after', 'firstChild', or 'child' ('over' is a synonym for 'child')- * @returns {FancytreeNode} new node- */- addNode: function(node, mode){- if(mode === undefined || mode === "over"){- mode = "child";- }- switch(mode){- case "after":- return this.getParent().addChildren(node, this.getNextSibling());- case "before":- return this.getParent().addChildren(node, this);- case "firstChild":- // Insert before the first child if any- var insertBefore = (this.children ? this.children[0] : null);- return this.addChildren(node, insertBefore);- case "child":- case "over":- return this.addChildren(node);- }- _assert(false, "Invalid mode: " + mode);- },- /**Add child status nodes that indicate 'More...', etc.- *- * This also maintains the node's `partload` property.- * @param {boolean|object} node optional node definition. Pass `false` to remove all paging nodes.- * @param {string} [mode='child'] 'child'|firstChild'- * @since 2.15- */- addPagingNode: function(node, mode){- var i, n;-- mode = mode || "child";- if( node === false ) {- for(i=this.children.length-1; i >= 0; i--) {- n = this.children[i];- if( n.statusNodeType === "paging" ) {- this.removeChild(n);- }- }- this.partload = false;- return;- }- node = $.extend({- title: this.tree.options.strings.moreData,- statusNodeType: "paging",- icon: false- }, node);- this.partload = true;- return this.addNode(node, mode);- },- /**- * Append new node after this.- *- * This a convenience function that calls addNode(node, 'after')- *- * @param {NodeData} node node definition- * @returns {FancytreeNode} new node- */- appendSibling: function(node){- return this.addNode(node, "after");- },- /**- * Modify existing child nodes.- *- * @param {NodePatch} patch- * @returns {$.Promise}- * @see FancytreeNode#addChildren- */- applyPatch: function(patch) {- // patch [key, null] means 'remove'- if(patch === null){- this.remove();- return _getResolvedPromise(this);- }- // TODO: make sure that root node is not collapsed or modified- // copy (most) attributes to node.ATTR or node.data.ATTR- var name, promise, v,- IGNORE_MAP = { children: true, expanded: true, parent: true }; // TODO: should be global-- for(name in patch){- v = patch[name];- if( !IGNORE_MAP[name] && !$.isFunction(v)){- if(NODE_ATTR_MAP[name]){- this[name] = v;- }else{- this.data[name] = v;- }- }- }- // Remove and/or create children- if(patch.hasOwnProperty("children")){- this.removeChildren();- if(patch.children){ // only if not null and not empty list- // TODO: addChildren instead?- this._setChildren(patch.children);- }- // TODO: how can we APPEND or INSERT child nodes?- }- if(this.isVisible()){- this.renderTitle();- this.renderStatus();- }- // Expand collapse (final step, since this may be async)- if(patch.hasOwnProperty("expanded")){- promise = this.setExpanded(patch.expanded);- }else{- promise = _getResolvedPromise(this);- }- return promise;- },- /** Collapse all sibling nodes.- * @returns {$.Promise}- */- collapseSiblings: function() {- return this.tree._callHook("nodeCollapseSiblings", this);- },- /** Copy this node as sibling or child of `node`.- *- * @param {FancytreeNode} node source node- * @param {string} [mode=child] 'before' | 'after' | 'child'- * @param {Function} [map] callback function(NodeData) that could modify the new node- * @returns {FancytreeNode} new- */- copyTo: function(node, mode, map) {- return node.addNode(this.toDict(true, map), mode);- },- /** Count direct and indirect children.- *- * @param {boolean} [deep=true] pass 'false' to only count direct children- * @returns {int} number of child nodes- */- countChildren: function(deep) {- var cl = this.children, i, l, n;- if( !cl ){- return 0;- }- n = cl.length;- if(deep !== false){- for(i=0, l=n; i<l; i++){- n += cl[i].countChildren();- }- }- return n;- },- // TODO: deactivate()- /** Write to browser console if debugLevel >= 2 (prepending node info)- *- * @param {*} msg string or object or array of such- */- debug: function(msg){- if( this.tree.options.debugLevel >= 2 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("log", arguments);- }- },- /** Deprecated.- * @deprecated since 2014-02-16. Use resetLazy() instead.- */- discard: function(){- this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead.");- return this.resetLazy();- },- /** Remove DOM elements for all descendents. May be called on .collapse event- * to keep the DOM small.- * @param {boolean} [includeSelf=false]- */- discardMarkup: function(includeSelf){- var fn = includeSelf ? "nodeRemoveMarkup" : "nodeRemoveChildMarkup";- this.tree._callHook(fn, this);- },- /**Find all nodes that match condition (excluding self).- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode[]} array of nodes (may be empty)- */- findAll: function(match) {- match = $.isFunction(match) ? match : _makeNodeTitleMatcher(match);- var res = [];- this.visit(function(n){- if(match(n)){- res.push(n);- }- });- return res;- },- /**Find first node that matches condition (excluding self).- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode} matching node or null- * @see FancytreeNode#findAll- */- findFirst: function(match) {- match = $.isFunction(match) ? match : _makeNodeTitleMatcher(match);- var res = null;- this.visit(function(n){- if(match(n)){- res = n;- return false;- }- });- return res;- },- /* Apply selection state (internal use only) */- _changeSelectStatusAttrs: function(state) {- var changed = false,- opts = this.tree.options,- unselectable = FT.evalOption("unselectable", this, this, opts, false),- unselectableStatus = FT.evalOption("unselectableStatus", this, this, opts, undefined);-- if( unselectable && unselectableStatus != null ) {- state = unselectableStatus;- }- switch(state){- case false:- changed = ( this.selected || this.partsel );- this.selected = false;- this.partsel = false;- break;- case true:- changed = ( !this.selected || !this.partsel );- this.selected = true;- this.partsel = true;- break;- case undefined:- changed = ( this.selected || !this.partsel );- this.selected = false;- this.partsel = true;- break;- default:- _assert(false, "invalid state: " + state);- }- // this.debug("fixSelection3AfterLoad() _changeSelectStatusAttrs()", state, changed);- if( changed ){- this.renderStatus();- }- return changed;- },- /**- * Fix selection status, after this node was (de)selected in multi-hier mode.- * This includes (de)selecting all children.- */- fixSelection3AfterClick: function(callOpts) {- var flag = this.isSelected();--// this.debug("fixSelection3AfterClick()");-- this.visit(function(node){- node._changeSelectStatusAttrs(flag);- });- this.fixSelection3FromEndNodes(callOpts);- },- /**- * Fix selection status for multi-hier mode.- * Only end-nodes are considered to update the descendants branch and parents.- * Should be called after this node has loaded new children or after- * children have been modified using the API.- */- fixSelection3FromEndNodes: function(callOpts) {- var opts = this.tree.options;--// this.debug("fixSelection3FromEndNodes()");- _assert(opts.selectMode === 3, "expected selectMode 3");-- // Visit all end nodes and adjust their parent's `selected` and `partsel`- // attributes. Return selection state true, false, or undefined.- function _walk(node){- var i, l, child, s, state, allSelected, someSelected, unselIgnore, unselState,- children = node.children;-- if( children && children.length ){- // check all children recursively- allSelected = true;- someSelected = false;-- for( i=0, l=children.length; i<l; i++ ){- child = children[i];- // the selection state of a node is not relevant; we need the end-nodes- s = _walk(child);- // if( !child.unselectableIgnore ) {- unselIgnore = FT.evalOption("unselectableIgnore", child, child, opts, false);- if( !unselIgnore ) {- if( s !== false ) {- someSelected = true;- }- if( s !== true ) {- allSelected = false;- }- }- }- state = allSelected ? true : (someSelected ? undefined : false);- }else{- // This is an end-node: simply report the status- unselState = FT.evalOption("unselectableStatus", node, node, opts, undefined);- state = ( unselState == null ) ? !!node.selected : !!unselState;- }- node._changeSelectStatusAttrs(state);- return state;- }- _walk(this);-- // Update parent's state- this.visitParents(function(node){- var i, l, child, state, unselIgnore, unselState,- children = node.children,- allSelected = true,- someSelected = false;-- for( i=0, l=children.length; i<l; i++ ){- child = children[i];- unselIgnore = FT.evalOption("unselectableIgnore", child, child, opts, false);- if( !unselIgnore ) {- unselState = FT.evalOption("unselectableStatus", child, child, opts, undefined);- state = ( unselState == null ) ? !!child.selected : !!unselState;- // When fixing the parents, we trust the sibling status (i.e.- // we don't recurse)- if( state || child.partsel ) {- someSelected = true;- }- if( !state ) {- allSelected = false;- }- }- }- state = allSelected ? true : (someSelected ? undefined : false);- node._changeSelectStatusAttrs(state);- });- },- // TODO: focus()- /**- * Update node data. If dict contains 'children', then also replace- * the hole sub tree.- * @param {NodeData} dict- *- * @see FancytreeNode#addChildren- * @see FancytreeNode#applyPatch- */- fromDict: function(dict) {- // copy all other attributes to this.data.xxx- for(var name in dict){- if(NODE_ATTR_MAP[name]){- // node.NAME = dict.NAME- this[name] = dict[name];- }else if(name === "data"){- // node.data += dict.data- $.extend(this.data, dict.data);- }else if(!$.isFunction(dict[name]) && !NONE_NODE_DATA_MAP[name]){- // node.data.NAME = dict.NAME- this.data[name] = dict[name];- }- }- if(dict.children){- // recursively set children and render- this.removeChildren();- this.addChildren(dict.children);- }- this.renderTitle();-/*- var children = dict.children;- if(children === undefined){- this.data = $.extend(this.data, dict);- this.render();- return;- }- dict = $.extend({}, dict);- dict.children = undefined;- this.data = $.extend(this.data, dict);- this.removeChildren();- this.addChild(children);-*/- },- /** Return the list of child nodes (undefined for unexpanded lazy nodes).- * @returns {FancytreeNode[] | undefined}- */- getChildren: function() {- if(this.hasChildren() === undefined){ // TODO: only required for lazy nodes?- return undefined; // Lazy node: unloaded, currently loading, or load error- }- return this.children;- },- /** Return the first child node or null.- * @returns {FancytreeNode | null}- */- getFirstChild: function() {- return this.children ? this.children[0] : null;- },- /** Return the 0-based child index.- * @returns {int}- */- getIndex: function() {-// return this.parent.children.indexOf(this);- return $.inArray(this, this.parent.children); // indexOf doesn't work in IE7- },- /** Return the hierarchical child index (1-based, e.g. '3.2.4').- * @param {string} [separator="."]- * @param {int} [digits=1]- * @returns {string}- */- getIndexHier: function(separator, digits) {- separator = separator || ".";- var s,- res = [];- $.each(this.getParentList(false, true), function(i, o){- s = "" + (o.getIndex() + 1);- if( digits ){- // prepend leading zeroes- s = ("0000000" + s).substr(-digits);- }- res.push(s);- });- return res.join(separator);- },- /** Return the parent keys separated by options.keyPathSeparator, e.g. "id_1/id_17/id_32".- * @param {boolean} [excludeSelf=false]- * @returns {string}- */- getKeyPath: function(excludeSelf) {- var path = [],- sep = this.tree.options.keyPathSeparator;- this.visitParents(function(n){- if(n.parent){- path.unshift(n.key);- }- }, !excludeSelf);- return sep + path.join(sep);- },- /** Return the last child of this node or null.- * @returns {FancytreeNode | null}- */- getLastChild: function() {- return this.children ? this.children[this.children.length - 1] : null;- },- /** Return node depth. 0: System root node, 1: visible top-level node, 2: first sub-level, ... .- * @returns {int}- */- getLevel: function() {- var level = 0,- dtn = this.parent;- while( dtn ) {- level++;- dtn = dtn.parent;- }- return level;- },- /** Return the successor node (under the same parent) or null.- * @returns {FancytreeNode | null}- */- getNextSibling: function() {- // TODO: use indexOf, if available: (not in IE6)- if( this.parent ){- var i, l,- ac = this.parent.children;-- for(i=0, l=ac.length-1; i<l; i++){ // up to length-2, so next(last) = null- if( ac[i] === this ){- return ac[i+1];- }- }- }- return null;- },- /** Return the parent node (null for the system root node).- * @returns {FancytreeNode | null}- */- getParent: function() {- // TODO: return null for top-level nodes?- return this.parent;- },- /** Return an array of all parent nodes (top-down).- * @param {boolean} [includeRoot=false] Include the invisible system root node.- * @param {boolean} [includeSelf=false] Include the node itself.- * @returns {FancytreeNode[]}- */- getParentList: function(includeRoot, includeSelf) {- var l = [],- dtn = includeSelf ? this : this.parent;- while( dtn ) {- if( includeRoot || dtn.parent ){- l.unshift(dtn);- }- dtn = dtn.parent;- }- return l;- },- /** Return the predecessor node (under the same parent) or null.- * @returns {FancytreeNode | null}- */- getPrevSibling: function() {- if( this.parent ){- var i, l,- ac = this.parent.children;-- for(i=1, l=ac.length; i<l; i++){ // start with 1, so prev(first) = null- if( ac[i] === this ){- return ac[i-1];- }- }- }- return null;- },- /**- * Return an array of selected descendant nodes.- * @param {boolean} [stopOnParents=false] only return the topmost selected- * node (useful with selectMode 3)- * @returns {FancytreeNode[]}- */- getSelectedNodes: function(stopOnParents) {- var nodeList = [];- this.visit(function(node){- if( node.selected ) {- nodeList.push(node);- if( stopOnParents === true ){- return "skip"; // stop processing this branch- }- }- });- return nodeList;- },- /** Return true if node has children. Return undefined if not sure, i.e. the node is lazy and not yet loaded).- * @returns {boolean | undefined}- */- hasChildren: function() {- if(this.lazy){- if(this.children == null ){- // null or undefined: Not yet loaded- return undefined;- }else if(this.children.length === 0){- // Loaded, but response was empty- return false;- }else if(this.children.length === 1 && this.children[0].isStatusNode() ){- // Currently loading or load error- return undefined;- }- return true;- }- return !!( this.children && this.children.length );- },- /** Return true if node has keyboard focus.- * @returns {boolean}- */- hasFocus: function() {- return (this.tree.hasFocus() && this.tree.focusNode === this);- },- /** Write to browser console if debugLevel >= 1 (prepending node info)- *- * @param {*} msg string or object or array of such- */- info: function(msg){- if( this.tree.options.debugLevel >= 1 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("info", arguments);- }- },- /** Return true if node is active (see also FancytreeNode#isSelected).- * @returns {boolean}- */- isActive: function() {- return (this.tree.activeNode === this);- },- /** Return true if node is a direct child of otherNode.- * @param {FancytreeNode} otherNode- * @returns {boolean}- */- isChildOf: function(otherNode) {- return (this.parent && this.parent === otherNode);- },- /** Return true, if node is a direct or indirect sub node of otherNode.- * @param {FancytreeNode} otherNode- * @returns {boolean}- */- isDescendantOf: function(otherNode) {- if(!otherNode || otherNode.tree !== this.tree){- return false;- }- var p = this.parent;- while( p ) {- if( p === otherNode ){- return true;- }- p = p.parent;- }- return false;- },- /** Return true if node is expanded.- * @returns {boolean}- */- isExpanded: function() {- return !!this.expanded;- },- /** Return true if node is the first node of its parent's children.- * @returns {boolean}- */- isFirstSibling: function() {- var p = this.parent;- return !p || p.children[0] === this;- },- /** Return true if node is a folder, i.e. has the node.folder attribute set.- * @returns {boolean}- */- isFolder: function() {- return !!this.folder;- },- /** Return true if node is the last node of its parent's children.- * @returns {boolean}- */- isLastSibling: function() {- var p = this.parent;- return !p || p.children[p.children.length-1] === this;- },- /** Return true if node is lazy (even if data was already loaded)- * @returns {boolean}- */- isLazy: function() {- return !!this.lazy;- },- /** Return true if node is lazy and loaded. For non-lazy nodes always return true.- * @returns {boolean}- */- isLoaded: function() {- return !this.lazy || this.hasChildren() !== undefined; // Also checks if the only child is a status node- },- /** Return true if children are currently beeing loaded, i.e. a Ajax request is pending.- * @returns {boolean}- */- isLoading: function() {- return !!this._isLoading;- },- /*- * @deprecated since v2.4.0: Use isRootNode() instead- */- isRoot: function() {- return this.isRootNode();- },- /** Return true if node is partially selected (tri-state).- * @returns {boolean}- * @since 2.23- */- isPartsel: function() {- return !this.selected && !!this.partsel;- },- /** (experimental) Return true if this is partially loaded.- * @returns {boolean}- * @since 2.15- */- isPartload: function() {- return !!this.partload;- },- /** Return true if this is the (invisible) system root node.- * @returns {boolean}- * @since 2.4- */- isRootNode: function() {- return (this.tree.rootNode === this);- },- /** Return true if node is selected, i.e. has a checkmark set (see also FancytreeNode#isActive).- * @returns {boolean}- */- isSelected: function() {- return !!this.selected;- },- /** Return true if this node is a temporarily generated system node like- * 'loading', 'paging', or 'error' (node.statusNodeType contains the type).- * @returns {boolean}- */- isStatusNode: function() {- return !!this.statusNodeType;- },- /** Return true if this node is a status node of type 'paging'.- * @returns {boolean}- * @since 2.15- */- isPagingNode: function() {- return this.statusNodeType === "paging";- },- /** Return true if this a top level node, i.e. a direct child of the (invisible) system root node.- * @returns {boolean}- * @since 2.4- */- isTopLevel: function() {- return (this.tree.rootNode === this.parent);- },- /** Return true if node is lazy and not yet loaded. For non-lazy nodes always return false.- * @returns {boolean}- */- isUndefined: function() {- return this.hasChildren() === undefined; // also checks if the only child is a status node- },- /** Return true if all parent nodes are expanded. Note: this does not check- * whether the node is scrolled into the visible part of the screen.- * @returns {boolean}- */- isVisible: function() {- var i, l,- parents = this.getParentList(false, false);-- for(i=0, l=parents.length; i<l; i++){- if( ! parents[i].expanded ){ return false; }- }- return true;- },- /** Deprecated.- * @deprecated since 2014-02-16: use load() instead.- */- lazyLoad: function(discard) {- this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead.");- return this.load(discard);- },- /**- * Load all children of a lazy node if neccessary. The <i>expanded</i> state is maintained.- * @param {boolean} [forceReload=false] Pass true to discard any existing nodes before. Otherwise this method does nothing if the node was already loaded.- * @returns {$.Promise}- */- load: function(forceReload) {- var res, source,- that = this,- wasExpanded = this.isExpanded();-- _assert( this.isLazy(), "load() requires a lazy node" );- // _assert( forceReload || this.isUndefined(), "Pass forceReload=true to re-load a lazy node" );- if( !forceReload && !this.isUndefined() ) {- return _getResolvedPromise(this);- }- if( this.isLoaded() ){- this.resetLazy(); // also collapses- }- // This method is also called by setExpanded() and loadKeyPath(), so we- // have to avoid recursion.- source = this.tree._triggerNodeEvent("lazyLoad", this);- if( source === false ) { // #69- return _getResolvedPromise(this);- }- _assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");- res = this.tree._callHook("nodeLoadChildren", this, source);- if( wasExpanded ) {- this.expanded = true;- res.always(function(){- that.render();- });- } else {- res.always(function(){- that.renderStatus(); // fix expander icon to 'loaded'- });- }- return res;- },- /** Expand all parents and optionally scroll into visible area as neccessary.- * Promise is resolved, when lazy loading and animations are done.- * @param {object} [opts] passed to `setExpanded()`.- * Defaults to {noAnimation: false, noEvents: false, scrollIntoView: true}- * @returns {$.Promise}- */- makeVisible: function(opts) {- var i,- that = this,- deferreds = [],- dfd = new $.Deferred(),- parents = this.getParentList(false, false),- len = parents.length,- effects = !(opts && opts.noAnimation === true),- scroll = !(opts && opts.scrollIntoView === false);-- // Expand bottom-up, so only the top node is animated- for(i = len - 1; i >= 0; i--){- // that.debug("pushexpand" + parents[i]);- deferreds.push(parents[i].setExpanded(true, opts));- }- $.when.apply($, deferreds).done(function(){- // All expands have finished- // that.debug("expand DONE", scroll);- if( scroll ){- that.scrollIntoView(effects).done(function(){- // that.debug("scroll DONE");- dfd.resolve();- });- } else {- dfd.resolve();- }- });- return dfd.promise();- },- /** Move this node to targetNode.- * @param {FancytreeNode} targetNode- * @param {string} mode <pre>- * 'child': append this node as last child of targetNode.- * This is the default. To be compatble with the D'n'd- * hitMode, we also accept 'over'.- * 'firstChild': add this node as first child of targetNode.- * 'before': add this node as sibling before targetNode.- * 'after': add this node as sibling after targetNode.</pre>- * @param {function} [map] optional callback(FancytreeNode) to allow modifcations- */- moveTo: function(targetNode, mode, map) {- if(mode === undefined || mode === "over"){- mode = "child";- } else if ( mode === "firstChild" ) {- if( targetNode.children && targetNode.children.length ) {- mode = "before";- targetNode = targetNode.children[0];- } else {- mode = "child";- }- }- var pos,- prevParent = this.parent,- targetParent = (mode === "child") ? targetNode : targetNode.parent;-- if(this === targetNode){- return;- }else if( !this.parent ){- $.error("Cannot move system root");- }else if( targetParent.isDescendantOf(this) ){- $.error("Cannot move a node to its own descendant");- }- if( targetParent !== prevParent ) {- prevParent.triggerModifyChild("remove", this);- }- // Unlink this node from current parent- if( this.parent.children.length === 1 ) {- if( this.parent === targetParent ){- return; // #258- }- this.parent.children = this.parent.lazy ? [] : null;- this.parent.expanded = false;- } else {- pos = $.inArray(this, this.parent.children);- _assert(pos >= 0, "invalid source parent");- this.parent.children.splice(pos, 1);- }- // Remove from source DOM parent-// if(this.parent.ul){-// this.parent.ul.removeChild(this.li);-// }-- // Insert this node to target parent's child list- this.parent = targetParent;- if( targetParent.hasChildren() ) {- switch(mode) {- case "child":- // Append to existing target children- targetParent.children.push(this);- break;- case "before":- // Insert this node before target node- pos = $.inArray(targetNode, targetParent.children);- _assert(pos >= 0, "invalid target parent");- targetParent.children.splice(pos, 0, this);- break;- case "after":- // Insert this node after target node- pos = $.inArray(targetNode, targetParent.children);- _assert(pos >= 0, "invalid target parent");- targetParent.children.splice(pos+1, 0, this);- break;- default:- $.error("Invalid mode " + mode);- }- } else {- targetParent.children = [ this ];- }- // Parent has no <ul> tag yet:-// if( !targetParent.ul ) {-// // This is the parent's first child: create UL tag-// // (Hidden, because it will be-// targetParent.ul = document.createElement("ul");-// targetParent.ul.style.display = "none";-// targetParent.li.appendChild(targetParent.ul);-// }-// // Issue 319: Add to target DOM parent (only if node was already rendered(expanded))-// if(this.li){-// targetParent.ul.appendChild(this.li);-// }^-- // Let caller modify the nodes- if( map ){- targetNode.visit(map, true);- }- if( targetParent === prevParent ) {- targetParent.triggerModifyChild("move", this);- } else {- // prevParent.triggerModifyChild("remove", this);- targetParent.triggerModifyChild("add", this);- }- // Handle cross-tree moves- if( this.tree !== targetNode.tree ) {- // Fix node.tree for all source nodes-// _assert(false, "Cross-tree move is not yet implemented.");- this.warn("Cross-tree moveTo is experimantal!");- this.visit(function(n){- // TODO: fix selection state and activation, ...- n.tree = targetNode.tree;- }, true);- }-- // A collaposed node won't re-render children, so we have to remove it manually- // if( !targetParent.expanded ){- // prevParent.ul.removeChild(this.li);- // }-- // Update HTML markup- if( !prevParent.isDescendantOf(targetParent)) {- prevParent.render();- }- if( !targetParent.isDescendantOf(prevParent) && targetParent !== prevParent) {- targetParent.render();- }- // TODO: fix selection state- // TODO: fix active state--/*- var tree = this.tree;- var opts = tree.options;- var pers = tree.persistence;--- // Always expand, if it's below minExpandLevel-// tree.logDebug ("%s._addChildNode(%o), l=%o", this, ftnode, ftnode.getLevel());- if ( opts.minExpandLevel >= ftnode.getLevel() ) {-// tree.logDebug ("Force expand for %o", ftnode);- this.bExpanded = true;- }-- // In multi-hier mode, update the parents selection state- // DT issue #82: only if not initializing, because the children may not exist yet-// if( !ftnode.data.isStatusNode() && opts.selectMode==3 && !isInitializing )-// ftnode._fixSelectionState();-- // In multi-hier mode, update the parents selection state- if( ftnode.bSelected && opts.selectMode==3 ) {- var p = this;- while( p ) {- if( !p.hasSubSel )- p._setSubSel(true);- p = p.parent;- }- }- // render this node and the new child- if ( tree.bEnableUpdate )- this.render();-- return ftnode;--*/- },- /** Set focus relative to this node and optionally activate.- *- * @param {number} where The keyCode that would normally trigger this move,- * e.g. `$.ui.keyCode.LEFT` would collapse the node if it- * is expanded or move to the parent oterwise.- * @param {boolean} [activate=true]- * @returns {$.Promise}- */- navigate: function(where, activate) {- var i, parents, res,- handled = true,- KC = $.ui.keyCode,- sib = null;-- // Navigate to node- function _goto(n){- if( n ){- // setFocus/setActive will scroll later (if autoScroll is specified)- try { n.makeVisible({scrollIntoView: false}); } catch(e) {} // #272- // Node may still be hidden by a filter- if( ! $(n.span).is(":visible") ) {- n.debug("Navigate: skipping hidden node");- n.navigate(where, activate);- return;- }- return activate === false ? n.setFocus() : n.setActive();- }- }-- switch( where ) {- case KC.BACKSPACE:- if( this.parent && this.parent.parent ) {- res = _goto(this.parent);- }- break;- case KC.HOME:- this.tree.visit(function(n){ // goto first visible node- if( $(n.span).is(":visible") ) {- res = _goto(n);- return false;- }- });- break;- case KC.END:- this.tree.visit(function(n){ // goto last visible node- if( $(n.span).is(":visible") ) {- res = n;- }- });- if( res ) {- res = _goto(res);- }- break;- case KC.LEFT:- if( this.expanded ) {- this.setExpanded(false);- res = _goto(this);- } else if( this.parent && this.parent.parent ) {- res = _goto(this.parent);- }- break;- case KC.RIGHT:- if( !this.expanded && (this.children || this.lazy) ) {- this.setExpanded();- res = _goto(this);- } else if( this.children && this.children.length ) {- res = _goto(this.children[0]);- }- break;- case KC.UP:- sib = this.getPrevSibling();- // #359: skip hidden sibling nodes, preventing a _goto() recursion- while( sib && !$(sib.span).is(":visible") ) {- sib = sib.getPrevSibling();- }- while( sib && sib.expanded && sib.children && sib.children.length ) {- sib = sib.children[sib.children.length - 1];- }- if( !sib && this.parent && this.parent.parent ){- sib = this.parent;- }- res = _goto(sib);- break;- case KC.DOWN:- if( this.expanded && this.children && this.children.length ) {- sib = this.children[0];- } else {- parents = this.getParentList(false, true);- for(i=parents.length-1; i>=0; i--) {- sib = parents[i].getNextSibling();- // #359: skip hidden sibling nodes, preventing a _goto() recursion- while( sib && !$(sib.span).is(":visible") ) {- sib = sib.getNextSibling();- }- if( sib ){ break; }- }- }- res = _goto(sib);- break;- default:- handled = false;- }- return res || _getResolvedPromise();- },- /**- * Remove this node (not allowed for system root).- */- remove: function() {- return this.parent.removeChild(this);- },- /**- * Remove childNode from list of direct children.- * @param {FancytreeNode} childNode- */- removeChild: function(childNode) {- return this.tree._callHook("nodeRemoveChild", this, childNode);- },- /**- * Remove all child nodes and descendents. This converts the node into a leaf.<br>- * If this was a lazy node, it is still considered 'loaded'; call node.resetLazy()- * in order to trigger lazyLoad on next expand.- */- removeChildren: function() {- return this.tree._callHook("nodeRemoveChildren", this);- },- /**- * Remove class from node's span tag and .extraClasses.- *- * @param {string} className class name- *- * @since 2.17- */- removeClass: function(className){- return this.toggleClass(className, false);- },- /**- * This method renders and updates all HTML markup that is required- * to display this node in its current state.<br>- * Note:- * <ul>- * <li>It should only be neccessary to call this method after the node object- * was modified by direct access to its properties, because the common- * API methods (node.setTitle(), moveTo(), addChildren(), remove(), ...)- * already handle this.- * <li> {@link FancytreeNode#renderTitle} and {@link FancytreeNode#renderStatus}- * are implied. If changes are more local, calling only renderTitle() or- * renderStatus() may be sufficient and faster.- * </ul>- *- * @param {boolean} [force=false] re-render, even if html markup was already created- * @param {boolean} [deep=false] also render all descendants, even if parent is collapsed- */- render: function(force, deep) {- return this.tree._callHook("nodeRender", this, force, deep);- },- /** Create HTML markup for the node's outer <span> (expander, checkbox, icon, and title).- * Implies {@link FancytreeNode#renderStatus}.- * @see Fancytree_Hooks#nodeRenderTitle- */- renderTitle: function() {- return this.tree._callHook("nodeRenderTitle", this);- },- /** Update element's CSS classes according to node state.- * @see Fancytree_Hooks#nodeRenderStatus- */- renderStatus: function() {- return this.tree._callHook("nodeRenderStatus", this);- },- /**- * (experimental) Replace this node with `source`.- * (Currently only available for paging nodes.)- * @param {NodeData[]} source List of child node definitions- * @since 2.15- */- replaceWith: function(source) {- var res,- parent = this.parent,- pos = $.inArray(this, parent.children),- that = this;-- _assert( this.isPagingNode(), "replaceWith() currently requires a paging status node" );-- res = this.tree._callHook("nodeLoadChildren", this, source);- res.done(function(data){- // New nodes are currently children of `this`.- var children = that.children;- // Prepend newly loaded child nodes to `this`- // Move new children after self- for( i=0; i<children.length; i++ ) {- children[i].parent = parent;- }- parent.children.splice.apply(parent.children, [pos + 1, 0].concat(children));-- // Remove self- that.children = null;- that.remove();- // Redraw new nodes- parent.render();- // TODO: set node.partload = false if this was tha last paging node?- // parent.addPagingNode(false);- }).fail(function(){- that.setExpanded();- });- return res;- // $.error("Not implemented: replaceWith()");- },- /**- * Remove all children, collapse, and set the lazy-flag, so that the lazyLoad- * event is triggered on next expand.- */- resetLazy: function() {- this.removeChildren();- this.expanded = false;- this.lazy = true;- this.children = undefined;- this.renderStatus();- },- /** Schedule activity for delayed execution (cancel any pending request).- * scheduleAction('cancel') will only cancel a pending request (if any).- * @param {string} mode- * @param {number} ms- */- scheduleAction: function(mode, ms) {- if( this.tree.timer ) {- clearTimeout(this.tree.timer);-// this.tree.debug("clearTimeout(%o)", this.tree.timer);- }- this.tree.timer = null;- var self = this; // required for closures- switch (mode) {- case "cancel":- // Simply made sure that timer was cleared- break;- case "expand":- this.tree.timer = setTimeout(function(){- self.tree.debug("setTimeout: trigger expand");- self.setExpanded(true);- }, ms);- break;- case "activate":- this.tree.timer = setTimeout(function(){- self.tree.debug("setTimeout: trigger activate");- self.setActive(true);- }, ms);- break;- default:- $.error("Invalid mode " + mode);- }-// this.tree.debug("setTimeout(%s, %s): %s", mode, ms, this.tree.timer);- },- /**- *- * @param {boolean | PlainObject} [effects=false] animation options.- * @param {object} [options=null] {topNode: null, effects: ..., parent: ...} this node will remain visible in- * any case, even if `this` is outside the scroll pane.- * @returns {$.Promise}- */- scrollIntoView: function(effects, options) {- if( options !== undefined && _isNode(options) ) {- this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead.");- options = {topNode: options};- }- // this.$scrollParent = (this.options.scrollParent === "auto") ? $ul.scrollParent() : $(this.options.scrollParent);- // this.$scrollParent = this.$scrollParent.length ? this.$scrollParent || this.$container;-- var topNodeY, nodeY, horzScrollbarHeight, containerOffsetTop,- opts = $.extend({- effects: (effects === true) ? {duration: 200, queue: false} : effects,- scrollOfs: this.tree.options.scrollOfs,- scrollParent: this.tree.options.scrollParent || this.tree.$container,- topNode: null- }, options),- dfd = new $.Deferred(),- that = this,- nodeHeight = $(this.span).height(),- $container = $(opts.scrollParent),- topOfs = opts.scrollOfs.top || 0,- bottomOfs = opts.scrollOfs.bottom || 0,- containerHeight = $container.height(),// - topOfs - bottomOfs,- scrollTop = $container.scrollTop(),- $animateTarget = $container,- isParentWindow = $container[0] === window,- topNode = opts.topNode || null,- newScrollTop = null;-- // this.debug("scrollIntoView(), scrollTop=" + scrollTop, opts.scrollOfs);-// _assert($(this.span).is(":visible"), "scrollIntoView node is invisible"); // otherwise we cannot calc offsets- if( !$(this.span).is(":visible") ) {- // We cannot calc offsets for hidden elements- this.warn("scrollIntoView(): node is invisible.");- return _getResolvedPromise();- }- if( isParentWindow ) {- nodeY = $(this.span).offset().top;- topNodeY = (topNode && topNode.span) ? $(topNode.span).offset().top : 0;- $animateTarget = $("html,body");-- } else {- _assert($container[0] !== document && $container[0] !== document.body,- "scrollParent should be a simple element or `window`, not document or body.");-- containerOffsetTop = $container.offset().top,- nodeY = $(this.span).offset().top - containerOffsetTop + scrollTop; // relative to scroll parent- topNodeY = topNode ? $(topNode.span).offset().top - containerOffsetTop + scrollTop : 0;- horzScrollbarHeight = Math.max(0, ($container.innerHeight() - $container[0].clientHeight));- containerHeight -= horzScrollbarHeight;- }-- // this.debug(" scrollIntoView(), nodeY=" + nodeY + ", containerHeight=" + containerHeight);- if( nodeY < (scrollTop + topOfs) ){- // Node is above visible container area- newScrollTop = nodeY - topOfs;- // this.debug(" scrollIntoView(), UPPER newScrollTop=" + newScrollTop);-- }else if((nodeY + nodeHeight) > (scrollTop + containerHeight - bottomOfs)){- newScrollTop = nodeY + nodeHeight - containerHeight + bottomOfs;- // this.debug(" scrollIntoView(), LOWER newScrollTop=" + newScrollTop);- // If a topNode was passed, make sure that it is never scrolled- // outside the upper border- if(topNode){- _assert(topNode.isRootNode() || $(topNode.span).is(":visible"), "topNode must be visible");- if( topNodeY < newScrollTop ){- newScrollTop = topNodeY - topOfs;- // this.debug(" scrollIntoView(), TOP newScrollTop=" + newScrollTop);- }- }- }-- if(newScrollTop !== null){- // this.debug(" scrollIntoView(), SET newScrollTop=" + newScrollTop);- if(opts.effects){- opts.effects.complete = function(){- dfd.resolveWith(that);- };- $animateTarget.stop(true).animate({- scrollTop: newScrollTop- }, opts.effects);- }else{- $animateTarget[0].scrollTop = newScrollTop;- dfd.resolveWith(this);- }- }else{- dfd.resolveWith(this);- }- return dfd.promise();- },-- /**Activate this node.- * @param {boolean} [flag=true] pass false to deactivate- * @param {object} [opts] additional options. Defaults to {noEvents: false, noFocus: false}- * @returns {$.Promise}- */- setActive: function(flag, opts){- return this.tree._callHook("nodeSetActive", this, flag, opts);- },- /**Expand or collapse this node. Promise is resolved, when lazy loading and animations are done.- * @param {boolean} [flag=true] pass false to collapse- * @param {object} [opts] additional options. Defaults to {noAnimation: false, noEvents: false}- * @returns {$.Promise}- */- setExpanded: function(flag, opts){- return this.tree._callHook("nodeSetExpanded", this, flag, opts);- },- /**Set keyboard focus to this node.- * @param {boolean} [flag=true] pass false to blur- * @see Fancytree#setFocus- */- setFocus: function(flag){- return this.tree._callHook("nodeSetFocus", this, flag);- },- /**Select this node, i.e. check the checkbox.- * @param {boolean} [flag=true] pass false to deselect- * @param {object} [opts] additional options. Defaults to {noEvents: false, p- * propagateDown: null, propagateUp: null, callback: null }- */- setSelected: function(flag, opts){- return this.tree._callHook("nodeSetSelected", this, flag, opts);- },- /**Mark a lazy node as 'error', 'loading', 'nodata', or 'ok'.- * @param {string} status 'error'|'empty'|'ok'- * @param {string} [message]- * @param {string} [details]- */- setStatus: function(status, message, details){- return this.tree._callHook("nodeSetStatus", this, status, message, details);- },- /**Rename this node.- * @param {string} title- */- setTitle: function(title){- this.title = title;- this.renderTitle();- this.triggerModify("rename");- },- /**Sort child list by title.- * @param {function} [cmp] custom compare function(a, b) that returns -1, 0, or 1 (defaults to sort by title).- * @param {boolean} [deep=false] pass true to sort all descendant nodes- */- sortChildren: function(cmp, deep) {- var i,l,- cl = this.children;-- if( !cl ){- return;- }- cmp = cmp || function(a, b) {- var x = a.title.toLowerCase(),- y = b.title.toLowerCase();- return x === y ? 0 : x > y ? 1 : -1;- };- cl.sort(cmp);- if( deep ){- for(i=0, l=cl.length; i<l; i++){- if( cl[i].children ){- cl[i].sortChildren(cmp, "$norender$");- }- }- }- if( deep !== "$norender$" ){- this.render();- }- this.triggerModifyChild("sort");- },- /** Convert node (or whole branch) into a plain object.- *- * The result is compatible with node.addChildren().- *- * @param {boolean} [recursive=false] include child nodes- * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications- * @returns {NodeData}- */- toDict: function(recursive, callback) {- var i, l, node,- dict = {},- self = this;-- $.each(NODE_ATTRS, function(i, a){- if(self[a] || self[a] === false){- dict[a] = self[a];- }- });- if(!$.isEmptyObject(this.data)){- dict.data = $.extend({}, this.data);- if($.isEmptyObject(dict.data)){- delete dict.data;- }- }- if( callback ){- callback(dict, self);- }- if( recursive ) {- if(this.hasChildren()){- dict.children = [];- for(i=0, l=this.children.length; i<l; i++ ){- node = this.children[i];- if( !node.isStatusNode() ){- dict.children.push(node.toDict(true, callback));- }- }- }else{-// dict.children = null;- }- }- return dict;- },- /**- * Set, clear, or toggle class of node's span tag and .extraClasses.- *- * @param {string} className class name (separate multiple classes by space)- * @param {boolean} [flag] true/false to add/remove class. If omitted, class is toggled.- * @returns {boolean} true if a class was added- *- * @since 2.17- */- toggleClass: function(value, flag){- var className, hasClass,- rnotwhite = ( /\S+/g ),- classNames = value.match( rnotwhite ) || [],- i = 0,- wasAdded = false,- statusElem = this[this.tree.statusClassPropName],- curClasses = (" " + (this.extraClasses || "") + " ");-- // this.info("toggleClass('" + value + "', " + flag + ")", curClasses);- // Modify DOM element directly if it already exists- if( statusElem ) {- $(statusElem).toggleClass(value, flag);- }- // Modify node.extraClasses to make this change persistent- // Toggle if flag was not passed- while ( className = classNames[ i++ ] ) {- hasClass = curClasses.indexOf(" " + className + " ") >= 0;- flag = (flag === undefined) ? (!hasClass) : !!flag;- if ( flag ) {- if( !hasClass ) {- curClasses += className + " ";- wasAdded = true;- }- } else {- while ( curClasses.indexOf( " " + className + " " ) > -1 ) {- curClasses = curClasses.replace( " " + className + " ", " " );- }- }- }- this.extraClasses = $.trim(curClasses);- // this.info("-> toggleClass('" + value + "', " + flag + "): '" + this.extraClasses + "'");- return wasAdded;- },- /** Flip expanded status. */- toggleExpanded: function(){- return this.tree._callHook("nodeToggleExpanded", this);- },- /** Flip selection status. */- toggleSelected: function(){- return this.tree._callHook("nodeToggleSelected", this);- },- toString: function() {- return "<FancytreeNode(#" + this.key + ", '" + this.title + "')>";- },- /**- * Trigger `modifyChild` event on a parent to signal that a child was modified.- * @param {string} operation Type of change: 'add', 'remove', 'rename', 'move', 'data', ...- * @param {FancytreeNode} [childNode]- * @param {object} [extra]- */- triggerModifyChild: function(operation, childNode, extra){- var data,- modifyChild = this.tree.options.modifyChild;-- if ( modifyChild ){- if( childNode && childNode.parent !== this ) {- $.error("childNode " + childNode + " is not a child of " + this);- }- data = {- node: this,- tree: this.tree,- operation: operation,- childNode: childNode || null- };- if( extra ) {- $.extend(data, extra);- }- modifyChild({type: "modifyChild"}, data);- }- },- /**- * Trigger `modifyChild` event on node.parent(!).- * @param {string} operation Type of change: 'add', 'remove', 'rename', 'move', 'data', ...- * @param {object} [extra]- */- triggerModify: function(operation, extra){- this.parent.triggerModifyChild(operation, this, extra);- },- /** Call fn(node) for all child nodes.<br>- * Stop iteration, if fn() returns false. Skip current branch, if fn() returns "skip".<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and- * its children only.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visit: function(fn, includeSelf) {- var i, l,- res = true,- children = this.children;-- if( includeSelf === true ) {- res = fn(this);- if( res === false || res === "skip" ){- return res;- }- }- if(children){- for(i=0, l=children.length; i<l; i++){- res = children[i].visit(fn, true);- if( res === false ){- break;- }- }- }- return res;- },- /** Call fn(node) for all child nodes and recursively load lazy children.<br>- * <b>Note:</b> If you need this method, you probably should consider to review- * your architecture! Recursivley loading nodes is a perfect way for lazy- * programmers to flood the server with requests ;-)- *- * @param {function} [fn] optional callback function.- * Return false to stop iteration, return "skip" to skip this node and- * its children only.- * @param {boolean} [includeSelf=false]- * @returns {$.Promise}- * @since 2.4- */- visitAndLoad: function(fn, includeSelf, _recursion) {- var dfd, res, loaders,- node = this;-- // node.debug("visitAndLoad");- if( fn && includeSelf === true ) {- res = fn(node);- if( res === false || res === "skip" ) {- return _recursion ? res : _getResolvedPromise();- }- }- if( !node.children && !node.lazy ) {- return _getResolvedPromise();- }- dfd = new $.Deferred();- loaders = [];- // node.debug("load()...");- node.load().done(function(){- // node.debug("load()... done.");- for(var i=0, l=node.children.length; i<l; i++){- res = node.children[i].visitAndLoad(fn, true, true);- if( res === false ) {- dfd.reject();- break;- } else if ( res !== "skip" ) {- loaders.push(res); // Add promise to the list- }- }- $.when.apply(this, loaders).then(function(){- dfd.resolve();- });- });- return dfd.promise();- },- /** Call fn(node) for all parent nodes, bottom-up, including invisible system root.<br>- * Stop iteration, if fn() returns false.<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and children only.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visitParents: function(fn, includeSelf) {- // Visit parent nodes (bottom up)- if(includeSelf && fn(this) === false){- return false;- }- var p = this.parent;- while( p ) {- if(fn(p) === false){- return false;- }- p = p.parent;- }- return true;- },- /** Call fn(node) for all sibling nodes.<br>- * Stop iteration, if fn() returns false.<br>- * Return false if iteration was stopped.- *- * @param {function} fn the callback function.- * Return false to stop iteration.- * @param {boolean} [includeSelf=false]- * @returns {boolean}- */- visitSiblings: function(fn, includeSelf) {- var i, l, n,- ac = this.parent.children;-- for (i=0, l=ac.length; i<l; i++) {- n = ac[i];- if ( includeSelf || n !== this ){- if( fn(n) === false ) {- return false;- }- }- }- return true;- },- /** Write warning to browser console (prepending node info)- *- * @param {*} msg string or object or array of such- */- warn: function(msg){- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("warn", arguments);- }-};---/* *****************************************************************************- * Fancytree- */-/**- * Construct a new tree object.- *- * @class Fancytree- * @classdesc The controller behind a fancytree.- * This class also contains 'hook methods': see {@link Fancytree_Hooks}.- *- * @param {Widget} widget- *- * @property {string} _id Automatically generated unique tree instance ID, e.g. "1".- * @property {string} _ns Automatically generated unique tree namespace, e.g. ".fancytree-1".- * @property {FancytreeNode} activeNode Currently active node or null.- * @property {string} ariaPropName Property name of FancytreeNode that contains the element which will receive the aria attributes.- * Typically "li", but "tr" for table extension.- * @property {jQueryObject} $container Outer <ul> element (or <table> element for ext-table).- * @property {jQueryObject} $div A jQuery object containing the element used to instantiate the tree widget (`widget.element`)- * @property {object} data Metadata, i.e. properties that may be passed to `source` in addition to a children array.- * @property {object} ext Hash of all active plugin instances.- * @property {FancytreeNode} focusNode Currently focused node or null.- * @property {FancytreeNode} lastSelectedNode Used to implement selectMode 1 (single select)- * @property {string} nodeContainerAttrName Property name of FancytreeNode that contains the outer element of single nodes.- * Typically "li", but "tr" for table extension.- * @property {FancytreeOptions} options Current options, i.e. default options + options passed to constructor.- * @property {FancytreeNode} rootNode Invisible system root node.- * @property {string} statusClassPropName Property name of FancytreeNode that contains the element which will receive the status classes.- * Typically "span", but "tr" for table extension.- * @property {object} widget Base widget instance.- */-function Fancytree(widget) {- this.widget = widget;- this.$div = widget.element;- this.options = widget.options;- if( this.options ) {- if( $.isFunction(this.options.lazyload ) && !$.isFunction(this.options.lazyLoad) ) {- this.options.lazyLoad = function() {- FT.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead.");- return widget.options.lazyload.apply(this, arguments);- };- }- if( $.isFunction(this.options.loaderror) ) {- $.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead.");- }- if( this.options.fx !== undefined ) {- FT.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30.");- }- if( this.options.removeNode !== undefined ) {- $.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).");- }- }- this.ext = {}; // Active extension instances- // allow to init tree.data.foo from <div data-foo=''>- this.data = _getElementDataAsDict(this.$div);- // TODO: use widget.uuid instead?- this._id = $.ui.fancytree._nextId++;- // TODO: use widget.eventNamespace instead?- this._ns = ".fancytree-" + this._id; // append for namespaced events- this.activeNode = null;- this.focusNode = null;- this._hasFocus = null;- this._enableUpdate = true;- // this._dirtyRoots = null;- this.lastSelectedNode = null;- this.systemFocusElement = null;- this.lastQuicksearchTerm = "";- this.lastQuicksearchTime = 0;-- this.statusClassPropName = "span";- this.ariaPropName = "li";- this.nodeContainerAttrName = "li";-- // Remove previous markup if any- this.$div.find(">ul.fancytree-container").remove();-- // Create a node without parent.- var fakeParent = { tree: this },- $ul;- this.rootNode = new FancytreeNode(fakeParent, {- title: "root",- key: "root_" + this._id,- children: null,- expanded: true- });- this.rootNode.parent = null;-- // Create root markup- $ul = $("<ul>", {- "class": "ui-fancytree fancytree-container fancytree-plain"- }).appendTo(this.$div);- this.$container = $ul;- this.rootNode.ul = $ul[0];-- if(this.options.debugLevel == null){- this.options.debugLevel = FT.debugLevel;- }- // // Add container to the TAB chain- // // See http://www.w3.org/TR/wai-aria-practices/#focus_activedescendant- // // #577: Allow to set tabindex to "0", "-1" and ""- // this.$container.attr("tabindex", this.options.tabindex);-- // if( this.options.rtl ) {- // this.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- // // }else{- // // this.$container.attr("DIR", null).removeClass("fancytree-rtl");- // }- // if(this.options.aria){- // this.$container.attr("role", "tree");- // if( this.options.selectMode !== 1 ) {- // this.$container.attr("aria-multiselectable", true);- // }- // }-}---Fancytree.prototype = /** @lends Fancytree# */{- /* Return a context object that can be re-used for _callHook().- * @param {Fancytree | FancytreeNode | EventData} obj- * @param {Event} originalEvent- * @param {Object} extra- * @returns {EventData}- */- _makeHookContext: function(obj, originalEvent, extra) {- var ctx, tree;- if(obj.node !== undefined){- // obj is already a context object- if(originalEvent && obj.originalEvent !== originalEvent){- $.error("invalid args");- }- ctx = obj;- }else if(obj.tree){- // obj is a FancytreeNode- tree = obj.tree;- ctx = { node: obj, tree: tree, widget: tree.widget, options: tree.widget.options, originalEvent: originalEvent };- }else if(obj.widget){- // obj is a Fancytree- ctx = { node: null, tree: obj, widget: obj.widget, options: obj.widget.options, originalEvent: originalEvent };- }else{- $.error("invalid args");- }- if(extra){- $.extend(ctx, extra);- }- return ctx;- },- /* Trigger a hook function: funcName(ctx, [...]).- *- * @param {string} funcName- * @param {Fancytree|FancytreeNode|EventData} contextObject- * @param {any} [_extraArgs] optional additional arguments- * @returns {any}- */- _callHook: function(funcName, contextObject, _extraArgs) {- var ctx = this._makeHookContext(contextObject),- fn = this[funcName],- args = Array.prototype.slice.call(arguments, 2);- if(!$.isFunction(fn)){- $.error("_callHook('" + funcName + "') is not a function");- }- args.unshift(ctx);-// this.debug("_hook", funcName, ctx.node && ctx.node.toString() || ctx.tree.toString(), args);- return fn.apply(this, args);- },- /* Check if current extensions dependencies are met and throw an error if not.- *- * This method may be called inside the `treeInit` hook for custom extensions.- *- * @param {string} extension name of the required extension- * @param {boolean} [required=true] pass `false` if the extension is optional, but we want to check for order if it is present- * @param {boolean} [before] `true` if `name` must be included before this, `false` otherwise (use `null` if order doesn't matter)- * @param {string} [message] optional error message (defaults to a descriptve error message)- */- _requireExtension: function(name, required, before, message) {- before = !!before;- var thisName = this._local.name,- extList = this.options.extensions,- isBefore = $.inArray(name, extList) < $.inArray(thisName, extList),- isMissing = required && this.ext[name] == null,- badOrder = !isMissing && before != null && (before !== isBefore);-- _assert(thisName && thisName !== name, "invalid or same name");-- if( isMissing || badOrder ){- if( !message ){- if( isMissing || required ){- message = "'" + thisName + "' extension requires '" + name + "'";- if( badOrder ){- message += " to be registered " + (before ? "before" : "after") + " itself";- }- }else{- message = "If used together, `" + name + "` must be registered " + (before ? "before" : "after") + " `" + thisName + "`";- }- }- $.error(message);- return false;- }- return true;- },- /** Activate node with a given key and fire focus and activate events.- *- * A prevously activated node will be deactivated.- * If activeVisible option is set, all parents will be expanded as necessary.- * Pass key = false, to deactivate the current node only.- * @param {string} key- * @returns {FancytreeNode} activated node (null, if not found)- */- activateKey: function(key) {- var node = this.getNodeByKey(key);- if(node){- node.setActive();- }else if(this.activeNode){- this.activeNode.setActive(false);- }- return node;- },- /** (experimental) Add child status nodes that indicate 'More...', ....- * @param {boolean|object} node optional node definition. Pass `false` to remove all paging nodes.- * @param {string} [mode='append'] 'child'|firstChild'- * @since 2.15- */- addPagingNode: function(node, mode){- return this.rootNode.addPagingNode(node, mode);- },- /** (experimental) Modify existing data model.- *- * @param {Array} patchList array of [key, NodePatch] arrays- * @returns {$.Promise} resolved, when all patches have been applied- * @see TreePatch- */- applyPatch: function(patchList) {- var dfd, i, p2, key, patch, node,- patchCount = patchList.length,- deferredList = [];-- for(i=0; i<patchCount; i++){- p2 = patchList[i];- _assert(p2.length === 2, "patchList must be an array of length-2-arrays");- key = p2[0];- patch = p2[1];- node = (key === null) ? this.rootNode : this.getNodeByKey(key);- if(node){- dfd = new $.Deferred();- deferredList.push(dfd);- node.applyPatch(patch).always(_makeResolveFunc(dfd, node));- }else{- this.warn("could not find node with key '" + key + "'");- }- }- // Return a promise that is resolved, when ALL patches were applied- return $.when.apply($, deferredList).promise();- },- /* TODO: implement in dnd extension- cancelDrag: function() {- var dd = $.ui.ddmanager.current;- if(dd){- dd.cancel();- }- },- */- /** Remove all nodes.- * @since 2.14- */- clear: function(source) {- this._callHook("treeClear", this);- },- /** Return the number of nodes.- * @returns {integer}- */- count: function() {- return this.rootNode.countChildren();- },- /** Write to browser console if debugLevel >= 2 (prepending tree name)- *- * @param {*} msg string or object or array of such- */- debug: function(msg){- if( this.options.debugLevel >= 2 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("log", arguments);- }- },- // TODO: disable()- // TODO: enable()- /** Temporarily suppress rendering to improve performance on bulk-updates.- *- * @param {boolean} flag- * @returns {boolean} previous status- * @since 2.19- */- enableUpdate: function(flag) {- flag = ( flag !== false );- /*jshint -W018 */ // Confusing use of '!'- if ( !!this._enableUpdate === !!flag ) {- return flag;- }- /*jshint +W018 */- this._enableUpdate = flag;- if ( flag ) {- this.debug("enableUpdate(true): redraw "); //, this._dirtyRoots);- this.render();- } else {- // this._dirtyRoots = null;- this.debug("enableUpdate(false)...");- }- return !flag; // return previous value- },- /**Find all nodes that matches condition.- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode[]} array of nodes (may be empty)- * @see FancytreeNode#findAll- * @since 2.12- */- findAll: function(match) {- return this.rootNode.findAll(match);- },- /**Find first node that matches condition.- *- * @param {string | function(node)} match title string to search for, or a- * callback function that returns `true` if a node is matched.- * @returns {FancytreeNode} matching node or null- * @see FancytreeNode#findFirst- * @since 2.12- */- findFirst: function(match) {- return this.rootNode.findFirst(match);- },- /** Find the next visible node that starts with `match`, starting at `startNode`- * and wrap-around at the end.- *- * @param {string|function} match- * @param {FancytreeNode} [startNode] defaults to first node- * @returns {FancytreeNode} matching node or null- */- findNextNode: function(match, startNode, visibleOnly) {- var stopNode = null,- parentChildren = startNode.parent.children,- matchingNode = null,- walkVisible = function(parent, idx, fn) {- var i, grandParent,- parentChildren = parent.children,- siblingCount = parentChildren.length,- node = parentChildren[idx];- // visit node itself- if( node && fn(node) === false ) {- return false;- }- // visit descendants- if( node && node.children && node.expanded ) {- if( walkVisible(node, 0, fn) === false ) {- return false;- }- }- // visit subsequent siblings- for( i = idx + 1; i < siblingCount; i++ ) {- if( walkVisible(parent, i, fn) === false ) {- return false;- }- }- // visit parent's subsequent siblings- grandParent = parent.parent;- if( grandParent ) {- return walkVisible(grandParent, grandParent.children.indexOf(parent) + 1, fn);- } else {- // wrap-around: restart with first node- return walkVisible(parent, 0, fn);- }- };-- match = (typeof match === "string") ? _makeNodeTitleStartMatcher(match) : match;- startNode = startNode || this.getFirstChild();-- walkVisible(startNode.parent, parentChildren.indexOf(startNode), function(node){- // Stop iteration if we see the start node a second time- if( node === stopNode ) {- return false;- }- stopNode = stopNode || node;- // Ignore nodes hidden by a filter- if( ! $(node.span).is(":visible") ) {- node.debug("quicksearch: skipping hidden node");- return;- }- // Test if we found a match, but search for a second match if this- // was the currently active node- if( match(node) ) {- // node.debug("quicksearch match " + node.title, startNode);- matchingNode = node;- if( matchingNode !== startNode ) {- return false;- }- }- });- return matchingNode;- },- // TODO: fromDict- /**- * Generate INPUT elements that can be submitted with html forms.- *- * In selectMode 3 only the topmost selected nodes are considered, unless- * `opts.stopOnParents: false` is passed.- *- * @example- * // Generate input elements for active and selected nodes- * tree.generateFormElements();- * // Generate input elements selected nodes, using a custom `name` attribute- * tree.generateFormElements("cust_sel", false);- * // Generate input elements using a custom filter- * tree.generateFormElements(true, true, { filter: function(node) {- * return node.isSelected() && node.data.yes;- * }});- *- * @param {boolean | string} [selected=true] Pass false to disable, pass a string to override the field name (default: 'ft_ID[]')- * @param {boolean | string} [active=true] Pass false to disable, pass a string to override the field name (default: 'ft_ID_active')- * @param {object} [opts] default { filter: null, stopOnParents: true }- */- generateFormElements: function(selected, active, opts) {- opts = opts || {};-- var nodeList,- selectedName = (typeof selected === "string") ? selected : "ft_" + this._id + "[]",- activeName = (typeof active === "string") ? active : "ft_" + this._id + "_active",- id = "fancytree_result_" + this._id,- $result = $("#" + id),- stopOnParents = this.options.selectMode === 3 && opts.stopOnParents !== false;-- if($result.length){- $result.empty();- }else{- $result = $("<div>", {- id: id- }).hide().insertAfter(this.$container);- }- if(active !== false && this.activeNode){- $result.append($("<input>", {- type: "radio",- name: activeName,- value: this.activeNode.key,- checked: true- }));- }- function _appender( node ) {- $result.append($("<input>", {- type: "checkbox",- name: selectedName,- value: node.key,- checked: true- }));- }- if ( opts.filter ) {- this.visit(function(node) {- var res = opts.filter(node);- if( res === "skip" ) { return res; }- if ( res !== false ) {- _appender(node);- }- });- } else if ( selected !== false ) {- nodeList = this.getSelectedNodes(stopOnParents);- $.each(nodeList, function(idx, node) {- _appender(node);- });- }- },- /**- * Return the currently active node or null.- * @returns {FancytreeNode}- */- getActiveNode: function() {- return this.activeNode;- },- /** Return the first top level node if any (not the invisible root node).- * @returns {FancytreeNode | null}- */- getFirstChild: function() {- return this.rootNode.getFirstChild();- },- /**- * Return node that has keyboard focus or null.- * @returns {FancytreeNode}- */- getFocusNode: function() {- return this.focusNode;- },- /**- * Return node with a given key or null if not found.- * @param {string} key- * @param {FancytreeNode} [searchRoot] only search below this node- * @returns {FancytreeNode | null}- */- getNodeByKey: function(key, searchRoot) {- // Search the DOM by element ID (assuming this is faster than traversing all nodes).- // $("#...") has problems, if the key contains '.', so we use getElementById()- var el, match;- if(!searchRoot){- el = document.getElementById(this.options.idPrefix + key);- if( el ){- return el.ftnode ? el.ftnode : null;- }- }- // Not found in the DOM, but still may be in an unrendered part of tree- // TODO: optimize with specialized loop- // TODO: consider keyMap?- searchRoot = searchRoot || this.rootNode;- match = null;- searchRoot.visit(function(node){-// window.console.log("getNodeByKey(" + key + "): ", node.key);- if(node.key === key) {- match = node;- return false;- }- }, true);- return match;- },- /** Return the invisible system root node.- * @returns {FancytreeNode}- */- getRootNode: function() {- return this.rootNode;- },- /**- * Return an array of selected nodes.- * @param {boolean} [stopOnParents=false] only return the topmost selected- * node (useful with selectMode 3)- * @returns {FancytreeNode[]}- */- getSelectedNodes: function(stopOnParents) {- return this.rootNode.getSelectedNodes(stopOnParents);- },- /** Return true if the tree control has keyboard focus- * @returns {boolean}- */- hasFocus: function(){- return !!this._hasFocus;- },- /** Write to browser console if debugLevel >= 1 (prepending tree name)- * @param {*} msg string or object or array of such- */- info: function(msg){- if( this.options.debugLevel >= 1 ) {- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("info", arguments);- }- },-/*- TODO: isInitializing: function() {- return ( this.phase=="init" || this.phase=="postInit" );- },- TODO: isReloading: function() {- return ( this.phase=="init" || this.phase=="postInit" ) && this.options.persist && this.persistence.cookiesFound;- },- TODO: isUserEvent: function() {- return ( this.phase=="userEvent" );- },-*/-- /**- * Make sure that a node with a given ID is loaded, by traversing - and- * loading - its parents. This method is ment for lazy hierarchies.- * A callback is executed for every node as we go.- * @example- * tree.loadKeyPath("/_3/_23/_26/_27", function(node, status){- * if(status === "loaded") {- * console.log("loaded intermiediate node " + node);- * }else if(status === "ok") {- * node.activate();- * }- * });- *- * @param {string | string[]} keyPathList one or more key paths (e.g. '/3/2_1/7')- * @param {function} callback callback(node, status) is called for every visited node ('loading', 'loaded', 'ok', 'error')- * @returns {$.Promise}- */- loadKeyPath: function(keyPathList, callback, _rootNode) {- var deferredList, dfd, i, path, key, loadMap, node, root, segList,- sep = this.options.keyPathSeparator,- self = this;-- callback = callback || $.noop;- if(!$.isArray(keyPathList)){- keyPathList = [keyPathList];- }- // Pass 1: handle all path segments for nodes that are already loaded- // Collect distinct top-most lazy nodes in a map- loadMap = {};-- for(i=0; i<keyPathList.length; i++){- root = _rootNode || this.rootNode;- path = keyPathList[i];- // strip leading slash- if(path.charAt(0) === sep){- path = path.substr(1);- }- // traverse and strip keys, until we hit a lazy, unloaded node- segList = path.split(sep);- while(segList.length){- key = segList.shift();-// node = _findDirectChild(root, key);- node = root._findDirectChild(key);- if(!node){- this.warn("loadKeyPath: key not found: " + key + " (parent: " + root + ")");- callback.call(this, key, "error");- break;- }else if(segList.length === 0){- callback.call(this, node, "ok");- break;- }else if(!node.lazy || (node.hasChildren() !== undefined )){- callback.call(this, node, "loaded");- root = node;- }else{- callback.call(this, node, "loaded");-// segList.unshift(key);- if(loadMap[key]){- loadMap[key].push(segList.join(sep));- }else{- loadMap[key] = [segList.join(sep)];- }- break;- }- }- }-// alert("loadKeyPath: loadMap=" + JSON.stringify(loadMap));- // Now load all lazy nodes and continue itearation for remaining paths- deferredList = [];- // Avoid jshint warning 'Don't make functions within a loop.':- function __lazyload(key, node, dfd){- callback.call(self, node, "loading");- node.load().done(function(){- self.loadKeyPath.call(self, loadMap[key], callback, node).always(_makeResolveFunc(dfd, self));- }).fail(function(errMsg){- self.warn("loadKeyPath: error loading: " + key + " (parent: " + root + ")");- callback.call(self, node, "error");- dfd.reject();- });- }- for(key in loadMap){- node = root._findDirectChild(key);- if (node == null) { // #576- node = self.getNodeByKey(key);- }- dfd = new $.Deferred();- deferredList.push(dfd);- __lazyload(key, node, dfd);- }- // Return a promise that is resolved, when ALL paths were loaded- return $.when.apply($, deferredList).promise();- },- /** Re-fire beforeActivate, activate, and (optional) focus events.- * Calling this method in the `init` event, will activate the node that- * was marked 'active' in the source data, and optionally set the keyboard- * focus.- * @param [setFocus=false]- */- reactivate: function(setFocus) {- var res,- node = this.activeNode;-- if( !node ) {- return _getResolvedPromise();- }- this.activeNode = null; // Force re-activating- res = node.setActive(true, {noFocus: true});- if( setFocus ){- node.setFocus();- }- return res;- },- /** Reload tree from source and return a promise.- * @param [source] optional new source (defaults to initial source data)- * @returns {$.Promise}- */- reload: function(source) {- this._callHook("treeClear", this);- return this._callHook("treeLoad", this, source);- },- /**Render tree (i.e. create DOM elements for all top-level nodes).- * @param {boolean} [force=false] create DOM elemnts, even if parent is collapsed- * @param {boolean} [deep=false]- */- render: function(force, deep) {- return this.rootNode.render(force, deep);- },- // TODO: selectKey: function(key, select)- // TODO: serializeArray: function(stopOnParents)- /**- * @param {boolean} [flag=true]- */- setFocus: function(flag) {- return this._callHook("treeSetFocus", this, flag);- },- /**- * Return all nodes as nested list of {@link NodeData}.- *- * @param {boolean} [includeRoot=false] Returns the hidden system root node (and its children)- * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications- * @returns {Array | object}- * @see FancytreeNode#toDict- */- toDict: function(includeRoot, callback){- var res = this.rootNode.toDict(true, callback);- return includeRoot ? res : res.children;- },- /* Implicitly called for string conversions.- * @returns {string}- */- toString: function(){- return "<Fancytree(#" + this._id + ")>";- },- /* _trigger a widget event with additional node ctx.- * @see EventData- */- _triggerNodeEvent: function(type, node, originalEvent, extra) {-// this.debug("_trigger(" + type + "): '" + ctx.node.title + "'", ctx);- var ctx = this._makeHookContext(node, originalEvent, extra),- res = this.widget._trigger(type, originalEvent, ctx);- if(res !== false && ctx.result !== undefined){- return ctx.result;- }- return res;- },- /* _trigger a widget event with additional tree data. */- _triggerTreeEvent: function(type, originalEvent, extra) {-// this.debug("_trigger(" + type + ")", ctx);- var ctx = this._makeHookContext(this, originalEvent, extra),- res = this.widget._trigger(type, originalEvent, ctx);-- if(res !== false && ctx.result !== undefined){- return ctx.result;- }- return res;- },- /** Call fn(node) for all nodes.- *- * @param {function} fn the callback function.- * Return false to stop iteration, return "skip" to skip this node and children only.- * @returns {boolean} false, if the iterator was stopped.- */- visit: function(fn) {- return this.rootNode.visit(fn, false);- },- /** Write warning to browser console (prepending tree info)- *- * @param {*} msg string or object or array of such- */- warn: function(msg){- Array.prototype.unshift.call(arguments, this.toString());- consoleApply("warn", arguments);- }-};--/**- * These additional methods of the {@link Fancytree} class are 'hook functions'- * that can be used and overloaded by extensions.- * (See <a href="https://github.com/mar10/fancytree/wiki/TutorialExtensions">writing extensions</a>.)- * @mixin Fancytree_Hooks- */-$.extend(Fancytree.prototype,- /** @lends Fancytree_Hooks# */- {- /** Default handling for mouse click events.- *- * @param {EventData} ctx- */- nodeClick: function(ctx) {- var activate, expand,- // event = ctx.originalEvent,- targetType = ctx.targetType,- node = ctx.node;--// this.debug("ftnode.onClick(" + event.type + "): ftnode:" + this + ", button:" + event.button + ", which: " + event.which, ctx);- // TODO: use switch- // TODO: make sure clicks on embedded <input> doesn't steal focus (see table sample)- if( targetType === "expander" ) {- if( node.isLoading() ) {- // #495: we probably got a click event while a lazy load is pending.- // The 'expanded' state is not yet set, so 'toggle' would expand- // and trigger lazyLoad again.- // It would be better to allow to collapse/expand the status node- // while loading (instead of ignoring), but that would require some- // more work.- node.debug("Got 2nd click while loading: ignored");- return;- }- // Clicking the expander icon always expands/collapses- this._callHook("nodeToggleExpanded", ctx);-- } else if( targetType === "checkbox" ) {- // Clicking the checkbox always (de)selects- this._callHook("nodeToggleSelected", ctx);- if( ctx.options.focusOnSelect ) { // #358- this._callHook("nodeSetFocus", ctx, true);- }-- } else {- // Honor `clickFolderMode` for- expand = false;- activate = true;- if( node.folder ) {- switch( ctx.options.clickFolderMode ) {- case 2: // expand only- expand = true;- activate = false;- break;- case 3: // expand and activate- activate = true;- expand = true; //!node.isExpanded();- break;- // else 1 or 4: just activate- }- }- if( activate ) {- this.nodeSetFocus(ctx);- this._callHook("nodeSetActive", ctx, true);- }- if( expand ) {- if(!activate){-// this._callHook("nodeSetFocus", ctx);- }-// this._callHook("nodeSetExpanded", ctx, true);- this._callHook("nodeToggleExpanded", ctx);- }- }- // Make sure that clicks stop, otherwise <a href='#'> jumps to the top- // if(event.target.localName === "a" && event.target.className === "fancytree-title"){- // event.preventDefault();- // }- // TODO: return promise?- },- /** Collapse all other children of same parent.- *- * @param {EventData} ctx- * @param {object} callOpts- */- nodeCollapseSiblings: function(ctx, callOpts) {- // TODO: return promise?- var ac, i, l,- node = ctx.node;-- if( node.parent ){- ac = node.parent.children;- for (i=0, l=ac.length; i<l; i++) {- if ( ac[i] !== node && ac[i].expanded ){- this._callHook("nodeSetExpanded", ac[i], false, callOpts);- }- }- }- },- /** Default handling for mouse douleclick events.- * @param {EventData} ctx- */- nodeDblclick: function(ctx) {- // TODO: return promise?- if( ctx.targetType === "title" && ctx.options.clickFolderMode === 4) {-// this.nodeSetFocus(ctx);-// this._callHook("nodeSetActive", ctx, true);- this._callHook("nodeToggleExpanded", ctx);- }- // TODO: prevent text selection on dblclicks- if( ctx.targetType === "title" ) {- ctx.originalEvent.preventDefault();- }- },- /** Default handling for mouse keydown events.- *- * NOTE: this may be called with node == null if tree (but no node) has focus.- * @param {EventData} ctx- */- nodeKeydown: function(ctx) {- // TODO: return promise?- var matchNode, stamp, res, focusNode,- event = ctx.originalEvent,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- which = event.which,- whichChar = String.fromCharCode(which),- clean = !(event.altKey || event.ctrlKey || event.metaKey || event.shiftKey),- $target = $(event.target),- handled = true,- activate = !(event.ctrlKey || !opts.autoActivate );-- // (node || FT).debug("ftnode.nodeKeydown(" + event.type + "): ftnode:" + this + ", charCode:" + event.charCode + ", keyCode: " + event.keyCode + ", which: " + event.which);- // FT.debug("eventToString", which, '"' + String.fromCharCode(which) + '"', '"' + FT.eventToString(event) + '"');-- // Set focus to active (or first node) if no other node has the focus yet- if( !node ){- focusNode = (this.getActiveNode() || this.getFirstChild());- if (focusNode){- focusNode.setFocus();- node = ctx.node = this.focusNode;- node.debug("Keydown force focus on active node");- }- }-- if( opts.quicksearch && clean && /\w/.test(whichChar) &&- !SPECIAL_KEYCODES[which] && // #659- !$target.is(":input:enabled") ) {- // Allow to search for longer streaks if typed in quickly- stamp = new Date().getTime();- if( stamp - tree.lastQuicksearchTime > 500 ) {- tree.lastQuicksearchTerm = "";- }- tree.lastQuicksearchTime = stamp;- tree.lastQuicksearchTerm += whichChar;- // tree.debug("quicksearch find", tree.lastQuicksearchTerm);- matchNode = tree.findNextNode(tree.lastQuicksearchTerm, tree.getActiveNode());- if( matchNode ) {- matchNode.setActive();- }- event.preventDefault();- return;- }- switch( FT.eventToString(event) ) {- case "+":- case "=": // 187: '+' @ Chrome, Safari- tree.nodeSetExpanded(ctx, true);- break;- case "-":- tree.nodeSetExpanded(ctx, false);- break;- case "space":- if( node.isPagingNode() ) {- tree._triggerNodeEvent("clickPaging", ctx, event);- } else if(opts.checkbox){- tree.nodeToggleSelected(ctx);- }else{- tree.nodeSetActive(ctx, true);- }- break;- case "return":- tree.nodeSetActive(ctx, true);- break;- case "home":- case "end":- case "backspace":- case "left":- case "right":- case "up":- case "down":- res = node.navigate(event.which, activate, true);- break;- default:- handled = false;- }- if(handled){- event.preventDefault();- }- },--- // /** Default handling for mouse keypress events. */- // nodeKeypress: function(ctx) {- // var event = ctx.originalEvent;- // },-- // /** Trigger lazyLoad event (async). */- // nodeLazyLoad: function(ctx) {- // var node = ctx.node;- // if(this._triggerNodeEvent())- // },- /** Load child nodes (async).- *- * @param {EventData} ctx- * @param {object[]|object|string|$.Promise|function} source- * @returns {$.Promise} The deferred will be resolved as soon as the (ajax)- * data was rendered.- */- nodeLoadChildren: function(ctx, source) {- var ajax, delay, dfd,- tree = ctx.tree,- node = ctx.node,- requestId = new Date().getTime();-- if($.isFunction(source)){- source = source.call(tree, {type: "source"}, ctx);- _assert(!$.isFunction(source), "source callback must not return another function");- }- if(source.url){- if( node._requestId ) {- node.warn("Recursive load request #" + requestId + " while #" + node._requestId + " is pending.");- // } else {- // node.debug("Send load request #" + requestId);- }- // `source` is an Ajax options object- ajax = $.extend({}, ctx.options.ajax, source);- node._requestId = requestId;- if(ajax.debugDelay){- // simulate a slow server- delay = ajax.debugDelay;- if($.isArray(delay)){ // random delay range [min..max]- delay = delay[0] + Math.random() * (delay[1] - delay[0]);- }- node.warn("nodeLoadChildren waiting debugDelay " + Math.round(delay) + " ms ...");- ajax.debugDelay = false;- dfd = $.Deferred(function (dfd) {- setTimeout(function () {- $.ajax(ajax)- .done(function () { dfd.resolveWith(this, arguments); })- .fail(function () { dfd.rejectWith(this, arguments); });- }, delay);- });- }else{- dfd = $.ajax(ajax);- }-- // Defer the deferred: we want to be able to reject, even if ajax- // resolved ok.- source = new $.Deferred();- dfd.done(function (data, textStatus, jqXHR) {- var errorObj, res;-- if((this.dataType === "json" || this.dataType === "jsonp") && typeof data === "string"){- $.error("Ajax request returned a string (did you get the JSON dataType wrong?).");- }- if( node._requestId && node._requestId > requestId ) {- // The expected request time stamp is later than `requestId`- // (which was kept as as closure variable to this handler function)- // node.warn("Ignored load response for obsolete request #" + requestId + " (expected #" + node._requestId + ")");- source.rejectWith(this, [RECURSIVE_REQUEST_ERROR]);- return;- // } else {- // node.debug("Response returned for load request #" + requestId);- }- // postProcess is similar to the standard ajax dataFilter hook,- // but it is also called for JSONP- if( ctx.options.postProcess ){- try {- res = tree._triggerNodeEvent("postProcess", ctx, ctx.originalEvent, {- response: data, error: null, dataType: this.dataType- });- } catch(e) {- res = { error: e, message: "" + e, details: "postProcess failed"};- }- if( res.error ) {- errorObj = $.isPlainObject(res.error) ? res.error : {message: res.error};- errorObj = tree._makeHookContext(node, null, errorObj);- source.rejectWith(this, [errorObj]);- return;- }- data = $.isArray(res) ? res : data;-- } else if (data && data.hasOwnProperty("d") && ctx.options.enableAspx ) {- // Process ASPX WebMethod JSON object inside "d" property- data = (typeof data.d === "string") ? $.parseJSON(data.d) : data.d;- }- source.resolveWith(this, [data]);- }).fail(function (jqXHR, textStatus, errorThrown) {- var errorObj = tree._makeHookContext(node, null, {- error: jqXHR,- args: Array.prototype.slice.call(arguments),- message: errorThrown,- details: jqXHR.status + ": " + errorThrown- });- source.rejectWith(this, [errorObj]);- });- }- // #383: accept and convert ECMAScript 6 Promise- if( $.isFunction(source.then) && $.isFunction(source["catch"]) ) {- dfd = source;- source = new $.Deferred();- dfd.then(function(value){- source.resolve(value);- }, function(reason){- source.reject(reason);- });- }- if($.isFunction(source.promise)){- // `source` is a deferred, i.e. ajax request- // _assert(!node.isLoading(), "recursive load");- tree.nodeSetStatus(ctx, "loading");-- source.done(function (children) {- tree.nodeSetStatus(ctx, "ok");- node._requestId = null;- }).fail(function(error){- var ctxErr;-- if ( error === RECURSIVE_REQUEST_ERROR ) {- node.warn("Ignored response for obsolete load request #" + requestId + " (expected #" + node._requestId + ")");- return;- } else if (error.node && error.error && error.message) {- // error is already a context object- ctxErr = error;- } else {- ctxErr = tree._makeHookContext(node, null, {- error: error, // it can be jqXHR or any custom error- args: Array.prototype.slice.call(arguments),- message: error ? (error.message || error.toString()) : ""- });- if( ctxErr.message === "[object Object]" ) {- ctxErr.message = "";- }- }- node.warn("Load children failed (" + ctxErr.message + ")", ctxErr);- if( tree._triggerNodeEvent("loadError", ctxErr, null) !== false ) {- tree.nodeSetStatus(ctx, "error", ctxErr.message, ctxErr.details);- }- });- }- // $.when(source) resolves also for non-deferreds- return $.when(source).done(function(children){- var metaData;-- if( $.isPlainObject(children) ){- // We got {foo: 'abc', children: [...]}- // Copy extra properties to tree.data.foo- _assert(node.isRootNode(), "source may only be an object for root nodes (expecting an array of child objects otherwise)");- _assert($.isArray(children.children), "if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')");- metaData = children;- children = children.children;- delete metaData.children;- $.extend(tree.data, metaData);- }- _assert($.isArray(children), "expected array of children");- node._setChildren(children);- // trigger fancytreeloadchildren- tree._triggerNodeEvent("loadChildren", node);- });- },- /** [Not Implemented] */- nodeLoadKeyPath: function(ctx, keyPathList) {- // TODO: implement and improve- // http://code.google.com/p/dynatree/issues/detail?id=222- },- /**- * Remove a single direct child of ctx.node.- * @param {EventData} ctx- * @param {FancytreeNode} childNode dircect child of ctx.node- */- nodeRemoveChild: function(ctx, childNode) {- var idx,- node = ctx.node,- // opts = ctx.options,- subCtx = $.extend({}, ctx, {node: childNode}),- children = node.children;-- // FT.debug("nodeRemoveChild()", node.toString(), childNode.toString());-- if( children.length === 1 ) {- _assert(childNode === children[0], "invalid single child");- return this.nodeRemoveChildren(ctx);- }- if( this.activeNode && (childNode === this.activeNode || this.activeNode.isDescendantOf(childNode))){- this.activeNode.setActive(false); // TODO: don't fire events- }- if( this.focusNode && (childNode === this.focusNode || this.focusNode.isDescendantOf(childNode))){- this.focusNode = null;- }- // TODO: persist must take care to clear select and expand cookies- this.nodeRemoveMarkup(subCtx);- this.nodeRemoveChildren(subCtx);- idx = $.inArray(childNode, children);- _assert(idx >= 0, "invalid child");- // Notify listeners- node.triggerModifyChild("remove", childNode);- // Unlink to support GC- childNode.visit(function(n){- n.parent = null;- }, true);- this._callHook("treeRegisterNode", this, false, childNode);- // remove from child list- children.splice(idx, 1);- },- /**Remove HTML markup for all descendents of ctx.node.- * @param {EventData} ctx- */- nodeRemoveChildMarkup: function(ctx) {- var node = ctx.node;-- // FT.debug("nodeRemoveChildMarkup()", node.toString());- // TODO: Unlink attr.ftnode to support GC- if(node.ul){- if( node.isRootNode() ) {- $(node.ul).empty();- } else {- $(node.ul).remove();- node.ul = null;- }- node.visit(function(n){- n.li = n.ul = null;- });- }- },- /**Remove all descendants of ctx.node.- * @param {EventData} ctx- */- nodeRemoveChildren: function(ctx) {- var subCtx,- tree = ctx.tree,- node = ctx.node,- children = node.children;- // opts = ctx.options;-- // FT.debug("nodeRemoveChildren()", node.toString());- if(!children){- return;- }- if( this.activeNode && this.activeNode.isDescendantOf(node)){- this.activeNode.setActive(false); // TODO: don't fire events- }- if( this.focusNode && this.focusNode.isDescendantOf(node)){- this.focusNode = null;- }- // TODO: persist must take care to clear select and expand cookies- this.nodeRemoveChildMarkup(ctx);- // Unlink children to support GC- // TODO: also delete this.children (not possible using visit())- subCtx = $.extend({}, ctx);- node.triggerModifyChild("remove", null);- node.visit(function(n){- n.parent = null;- tree._callHook("treeRegisterNode", tree, false, n);- });- if( node.lazy ){- // 'undefined' would be interpreted as 'not yet loaded' for lazy nodes- node.children = [];- } else{- node.children = null;- }- if( !node.isRootNode() ) {- node.expanded = false; // #449, #459- }- this.nodeRenderStatus(ctx);- },- /**Remove HTML markup for ctx.node and all its descendents.- * @param {EventData} ctx- */- nodeRemoveMarkup: function(ctx) {- var node = ctx.node;- // FT.debug("nodeRemoveMarkup()", node.toString());- // TODO: Unlink attr.ftnode to support GC- if(node.li){- $(node.li).remove();- node.li = null;- }- this.nodeRemoveChildMarkup(ctx);- },- /**- * Create `<li><span>..</span> .. </li>` tags for this node.- *- * This method takes care that all HTML markup is created that is required- * to display this node in its current state.- *- * Call this method to create new nodes, or after the strucuture- * was changed (e.g. after moving this node or adding/removing children)- * nodeRenderTitle() and nodeRenderStatus() are implied.- *- * <code>- * <li id='KEY' ftnode=NODE>- * <span class='fancytree-node fancytree-expanded fancytree-has-children fancytree-lastsib fancytree-exp-el fancytree-ico-e'>- * <span class="fancytree-expander"></span>- * <span class="fancytree-checkbox"></span> // only present in checkbox mode- * <span class="fancytree-icon"></span>- * <a href="#" class="fancytree-title"> Node 1 </a>- * </span>- * <ul> // only present if node has children- * <li id='KEY' ftnode=NODE> child1 ... </li>- * <li id='KEY' ftnode=NODE> child2 ... </li>- * </ul>- * </li>- * </code>- *- * @param {EventData} ctx- * @param {boolean} [force=false] re-render, even if html markup was already created- * @param {boolean} [deep=false] also render all descendants, even if parent is collapsed- * @param {boolean} [collapsed=false] force root node to be collapsed, so we can apply animated expand later- */- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- /* This method must take care of all cases where the current data mode- * (i.e. node hierarchy) does not match the current markup.- *- * - node was not yet rendered:- * create markup- * - node was rendered: exit fast- * - children have been added- * - children have been removed- */- var childLI, childNode1, childNode2, i, l, next, subCtx,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- aria = opts.aria,- firstTime = false,- parent = node.parent,- isRootNode = !parent,- children = node.children,- successorLi = null;- // FT.debug("nodeRender(" + !!force + ", " + !!deep + ")", node.toString());-- if( tree._enableUpdate === false ) {- // tree.debug("no render", tree._enableUpdate);- return;- }- if( ! isRootNode && ! parent.ul ) {- // Calling node.collapse on a deep, unrendered node- return;- }- _assert(isRootNode || parent.ul, "parent UL must exist");-- // Render the node- if( !isRootNode ){- // Discard markup on force-mode, or if it is not linked to parent <ul>- if(node.li && (force || (node.li.parentNode !== node.parent.ul) ) ){- if( node.li.parentNode === node.parent.ul ){- // #486: store following node, so we can insert the new markup there later- successorLi = node.li.nextSibling;- }else{- // May happen, when a top-level node was dropped over another- this.debug("Unlinking " + node + " (must be child of " + node.parent + ")");- }-// this.debug("nodeRemoveMarkup...");- this.nodeRemoveMarkup(ctx);- }- // Create <li><span /> </li>-// node.debug("render...");- if( !node.li ) {-// node.debug("render... really");- firstTime = true;- node.li = document.createElement("li");- node.li.ftnode = node;-- if( node.key && opts.generateIds ){- node.li.id = opts.idPrefix + node.key;- }- node.span = document.createElement("span");- node.span.className = "fancytree-node";- if( aria && !node.tr ) {- $(node.li).attr("role", "treeitem");- }- node.li.appendChild(node.span);-- // Create inner HTML for the <span> (expander, checkbox, icon, and title)- this.nodeRenderTitle(ctx);-- // Allow tweaking and binding, after node was created for the first time- if ( opts.createNode ){- opts.createNode.call(tree, {type: "createNode"}, ctx);- }- }else{-// this.nodeRenderTitle(ctx);- this.nodeRenderStatus(ctx);- }- // Allow tweaking after node state was rendered- if ( opts.renderNode ){- opts.renderNode.call(tree, {type: "renderNode"}, ctx);- }- }-- // Visit child nodes- if( children ){- if( isRootNode || node.expanded || deep === true ) {- // Create a UL to hold the children- if( !node.ul ){- node.ul = document.createElement("ul");- if((collapsed === true && !_recursive) || !node.expanded){- // hide top UL, so we can use an animation to show it later- node.ul.style.display = "none";- }- if(aria){- $(node.ul).attr("role", "group");- }- if ( node.li ) { // issue #67- node.li.appendChild(node.ul);- } else {- node.tree.$div.append(node.ul);- }- }- // Add child markup- for(i=0, l=children.length; i<l; i++) {- subCtx = $.extend({}, ctx, {node: children[i]});- this.nodeRender(subCtx, force, deep, false, true);- }- // Remove <li> if nodes have moved to another parent- childLI = node.ul.firstChild;- while( childLI ){- childNode2 = childLI.ftnode;- if( childNode2 && childNode2.parent !== node ) {- node.debug("_fixParent: remove missing " + childNode2, childLI);- next = childLI.nextSibling;- childLI.parentNode.removeChild(childLI);- childLI = next;- }else{- childLI = childLI.nextSibling;- }- }- // Make sure, that <li> order matches node.children order.- childLI = node.ul.firstChild;- for(i=0, l=children.length-1; i<l; i++) {- childNode1 = children[i];- childNode2 = childLI.ftnode;- if( childNode1 !== childNode2 ) {- // node.debug("_fixOrder: mismatch at index " + i + ": " + childNode1 + " != " + childNode2);- node.ul.insertBefore(childNode1.li, childNode2.li);- } else {- childLI = childLI.nextSibling;- }- }- }- }else{- // No children: remove markup if any- if( node.ul ){-// alert("remove child markup for " + node);- this.warn("remove child markup for " + node);- this.nodeRemoveChildMarkup(ctx);- }- }- if( !isRootNode ){- // Update element classes according to node state- // this.nodeRenderStatus(ctx);- // Finally add the whole structure to the DOM, so the browser can render- if( firstTime ){- // #486: successorLi is set, if we re-rendered (i.e. discarded)- // existing markup, which we want to insert at the same position.- // (null is equivalent to append)-// parent.ul.appendChild(node.li);- parent.ul.insertBefore(node.li, successorLi);- }- }- },- /** Create HTML inside the node's outer <span> (i.e. expander, checkbox,- * icon, and title).- *- * nodeRenderStatus() is implied.- * @param {EventData} ctx- * @param {string} [title] optinal new title- */- nodeRenderTitle: function(ctx, title) {- // set node connector images, links and text- var checkbox, className, icon, nodeTitle, role, tabindex, tooltip,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- aria = opts.aria,- level = node.getLevel(),- ares = [];-- if(title !== undefined){- node.title = title;- }- if ( !node.span || tree._enableUpdate === false ) {- // Silently bail out if node was not rendered yet, assuming- // node.render() will be called as the node becomes visible- return;- }- // Connector (expanded, expandable or simple)- role = (aria && node.hasChildren() !== false) ? " role='button'" : "";- if( level < opts.minExpandLevel ) {- if( !node.lazy ) {- node.expanded = true;- }- if(level > 1){- ares.push("<span " + role + " class='fancytree-expander fancytree-expander-fixed'></span>");- }- // .. else (i.e. for root level) skip expander/connector alltogether- } else {- ares.push("<span " + role + " class='fancytree-expander'></span>");- }- // Checkbox mode- checkbox = FT.evalOption("checkbox", node, node, opts, false);-- if( checkbox && !node.isStatusNode() ) {- role = aria ? " role='checkbox'" : "";- className = "fancytree-checkbox";- if( checkbox === "radio" || (node.parent && node.parent.radiogroup) ) {- className += " fancytree-radio";- }- ares.push("<span " + role + " class='" + className + "'></span>");- }- // Folder or doctype icon- if( node.data.iconClass !== undefined ) { // 2015-11-16- // Handle / warn about backward compatibility- if( node.icon ) {- $.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead");- } else {- node.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead");- node.icon = node.data.iconClass;- }- }- // If opts.icon is a callback and returns something other than undefined, use that- // else if node.icon is a boolean or string, use that- // else if opts.icon is a boolean or string, use that- // else show standard icon (which may be different for folders or documents)- icon = FT.evalOption("icon", node, node, opts, true);- if( typeof icon !== "boolean" ) {- // icon is defined, but not true/false: must be a string- icon = "" + icon;- }- if( icon !== false ) {- role = aria ? " role='presentation'" : "";- if ( typeof icon === "string" ) {- if( TEST_IMG.test(icon) ) {- // node.icon is an image url. Prepend imagePath- icon = (icon.charAt(0) === "/") ? icon : ((opts.imagePath || "") + icon);- ares.push("<img src='" + icon + "' class='fancytree-icon' alt='' />");- } else {- ares.push("<span " + role + " class='fancytree-custom-icon " + icon + "'></span>");- }- } else {- // standard icon: theme css will take care of this- ares.push("<span " + role + " class='fancytree-icon'></span>");- }- }- // Node title- nodeTitle = "";- if ( opts.renderTitle ){- nodeTitle = opts.renderTitle.call(tree, {type: "renderTitle"}, ctx) || "";- }- if ( !nodeTitle ) {- tooltip = FT.evalOption("tooltip", node, node, opts, null);- if( tooltip === true ) {- tooltip = node.title;- }- // if( node.tooltip ) {- // tooltip = node.tooltip;- // } else if ( opts.tooltip ) {- // tooltip = opts.tooltip === true ? node.title : opts.tooltip.call(tree, node);- // }- tooltip = tooltip ? " title='" + _escapeTooltip(tooltip) + "'" : "";- tabindex = opts.titlesTabbable ? " tabindex='0'" : "";-- nodeTitle = "<span class='fancytree-title'" +- tooltip + tabindex + ">" +- (opts.escapeTitles ? _escapeHtml(node.title) : node.title) +- "</span>";- }- ares.push(nodeTitle);- // Note: this will trigger focusout, if node had the focus- //$(node.span).html(ares.join("")); // it will cleanup the jQuery data currently associated with SPAN (if any), but it executes more slowly- node.span.innerHTML = ares.join("");- // Update CSS classes- this.nodeRenderStatus(ctx);- if ( opts.enhanceTitle ){- ctx.$title = $(">span.fancytree-title", node.span);- nodeTitle = opts.enhanceTitle.call(tree, {type: "enhanceTitle"}, ctx) || "";- }- },- /** Update element classes according to node state.- * @param {EventData} ctx- */- nodeRenderStatus: function(ctx) {- // Set classes for current status- var $ariaElem,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,-// nodeContainer = node[tree.nodeContainerAttrName],- hasChildren = node.hasChildren(),- isLastSib = node.isLastSibling(),- aria = opts.aria,- cn = opts._classNames,- cnList = [],- statusElem = node[tree.statusClassPropName];-- if( !statusElem || tree._enableUpdate === false ){- // if this function is called for an unrendered node, ignore it (will be updated on nect render anyway)- return;- }- if( aria ) {- $ariaElem = $(node.tr || node.li);- }- // Build a list of class names that we will add to the node <span>- cnList.push(cn.node);- if( tree.activeNode === node ){- cnList.push(cn.active);-// $(">span.fancytree-title", statusElem).attr("tabindex", "0");-// tree.$container.removeAttr("tabindex");- // }else{-// $(">span.fancytree-title", statusElem).removeAttr("tabindex");-// tree.$container.attr("tabindex", "0");- }- if( tree.focusNode === node ){- cnList.push(cn.focused);- }- if( node.expanded ){- cnList.push(cn.expanded);- }- if( aria ){- if (hasChildren !== false) {- $ariaElem.attr("aria-expanded", Boolean(node.expanded));- }- else {- $ariaElem.removeAttr("aria-expanded");- }- }- if( node.folder ){- cnList.push(cn.folder);- }- if( hasChildren !== false ){- cnList.push(cn.hasChildren);- }- // TODO: required?- if( isLastSib ){- cnList.push(cn.lastsib);- }- if( node.lazy && node.children == null ){- cnList.push(cn.lazy);- }- if( node.partload ){- cnList.push(cn.partload);- }- if( node.partsel ){- cnList.push(cn.partsel);- }- if( FT.evalOption("unselectable", node, node, opts, false) ){- cnList.push(cn.unselectable);- }- if( node._isLoading ){- cnList.push(cn.loading);- }- if( node._error ){- cnList.push(cn.error);- }- if( node.statusNodeType ) {- cnList.push(cn.statusNodePrefix + node.statusNodeType);- }- if( node.selected ){- cnList.push(cn.selected);- if(aria){- $ariaElem.attr("aria-selected", true);- }- }else if(aria){- $ariaElem.attr("aria-selected", false);- }- if( node.extraClasses ){- cnList.push(node.extraClasses);- }- // IE6 doesn't correctly evaluate multiple class names,- // so we create combined class names that can be used in the CSS- if( hasChildren === false ){- cnList.push(cn.combinedExpanderPrefix + "n" +- (isLastSib ? "l" : "")- );- }else{- cnList.push(cn.combinedExpanderPrefix +- (node.expanded ? "e" : "c") +- (node.lazy && node.children == null ? "d" : "") +- (isLastSib ? "l" : "")- );- }- cnList.push(cn.combinedIconPrefix +- (node.expanded ? "e" : "c") +- (node.folder ? "f" : "")- );-// node.span.className = cnList.join(" ");- statusElem.className = cnList.join(" ");-- // TODO: we should not set this in the <span> tag also, if we set it here:- // Maybe most (all) of the classes should be set in LI instead of SPAN?- if(node.li){- // #719: we have to consider that there may be already other classes:- $(node.li).toggleClass(cn.lastsib, isLastSib);- }- },- /** Activate node.- * flag defaults to true.- * If flag is true, the node is activated (must be a synchronous operation)- * If flag is false, the node is deactivated (must be a synchronous operation)- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noEvents: false, noFocus: false}- * @returns {$.Promise}- */- nodeSetActive: function(ctx, flag, callOpts) {- // Handle user click / [space] / [enter], according to clickFolderMode.- callOpts = callOpts || {};- var subCtx,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noEvents = (callOpts.noEvents === true),- noFocus = (callOpts.noFocus === true),- isActive = (node === tree.activeNode);-- // flag defaults to true- flag = (flag !== false);- // node.debug("nodeSetActive", flag);-- if(isActive === flag){- // Nothing to do- return _getResolvedPromise(node);- }else if(flag && !noEvents && this._triggerNodeEvent("beforeActivate", node, ctx.originalEvent) === false ){- // Callback returned false- return _getRejectedPromise(node, ["rejected"]);- }- if(flag){- if(tree.activeNode){- _assert(tree.activeNode !== node, "node was active (inconsistency)");- subCtx = $.extend({}, ctx, {node: tree.activeNode});- tree.nodeSetActive(subCtx, false);- _assert(tree.activeNode === null, "deactivate was out of sync?");- }- if(opts.activeVisible){- // If no focus is set (noFocus: true) and there is no focused node, this node is made visible.- node.makeVisible({scrollIntoView: noFocus && tree.focusNode == null});- }- tree.activeNode = node;- tree.nodeRenderStatus(ctx);- if( !noFocus ) {- tree.nodeSetFocus(ctx);- }- if( !noEvents ) {- tree._triggerNodeEvent("activate", node, ctx.originalEvent);- }- }else{- _assert(tree.activeNode === node, "node was not active (inconsistency)");- tree.activeNode = null;- this.nodeRenderStatus(ctx);- if( !noEvents ) {- ctx.tree._triggerNodeEvent("deactivate", node, ctx.originalEvent);- }- }- return _getResolvedPromise(node);- },- /** Expand or collapse node, return Deferred.promise.- *- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noAnimation: false, noEvents: false}- * @returns {$.Promise} The deferred will be resolved as soon as the (lazy)- * data was retrieved, rendered, and the expand animation finshed.- */- nodeSetExpanded: function(ctx, flag, callOpts) {- callOpts = callOpts || {};- var _afterLoad, dfd, i, l, parents, prevAC,- node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noAnimation = (callOpts.noAnimation === true),- noEvents = (callOpts.noEvents === true);-- // flag defaults to true- flag = (flag !== false);-- // node.debug("nodeSetExpanded(" + flag + ")");-- if((node.expanded && flag) || (!node.expanded && !flag)){- // Nothing to do- // node.debug("nodeSetExpanded(" + flag + "): nothing to do");- return _getResolvedPromise(node);- }else if(flag && !node.lazy && !node.hasChildren() ){- // Prevent expanding of empty nodes- // return _getRejectedPromise(node, ["empty"]);- return _getResolvedPromise(node);- }else if( !flag && node.getLevel() < opts.minExpandLevel ) {- // Prevent collapsing locked levels- return _getRejectedPromise(node, ["locked"]);- }else if ( !noEvents && this._triggerNodeEvent("beforeExpand", node, ctx.originalEvent) === false ){- // Callback returned false- return _getRejectedPromise(node, ["rejected"]);- }- // If this node inside a collpased node, no animation and scrolling is needed- if( !noAnimation && !node.isVisible() ) {- noAnimation = callOpts.noAnimation = true;- }-- dfd = new $.Deferred();-- // Auto-collapse mode: collapse all siblings- if( flag && !node.expanded && opts.autoCollapse ) {- parents = node.getParentList(false, true);- prevAC = opts.autoCollapse;- try{- opts.autoCollapse = false;- for(i=0, l=parents.length; i<l; i++){- // TODO: should return promise?- this._callHook("nodeCollapseSiblings", parents[i], callOpts);- }- }finally{- opts.autoCollapse = prevAC;- }- }- // Trigger expand/collapse after expanding- dfd.done(function(){- var lastChild = node.getLastChild();-- if( flag && opts.autoScroll && !noAnimation && lastChild ) {- // Scroll down to last child, but keep current node visible- lastChild.scrollIntoView(true, {topNode: node}).always(function(){- if( !noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- });- } else {- if( !noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- }- });- // vvv Code below is executed after loading finished:- _afterLoad = function(callback){- var cn = opts._classNames,- isVisible, isExpanded,- effect = opts.toggleEffect;-- node.expanded = flag;- // Create required markup, but make sure the top UL is hidden, so we- // can animate later- tree._callHook("nodeRender", ctx, false, false, true);-- // Hide children, if node is collapsed- if( node.ul ) {- isVisible = (node.ul.style.display !== "none");- isExpanded = !!node.expanded;- if ( isVisible === isExpanded ) {- node.warn("nodeSetExpanded: UL.style.display already set");-- } else if ( !effect || noAnimation ) {- node.ul.style.display = ( node.expanded || !parent ) ? "" : "none";-- } else {- // The UI toggle() effect works with the ext-wide extension,- // while jQuery.animate() has problems when the title span- // has positon: absolute.- // Since jQuery UI 1.12, the blind effect requires the parent- // element to have 'position: relative'.- // See #716, #717- $(node.li).addClass(cn.animating); // #717-// node.info("fancytree-animating start: " + node.li.className);- $(node.ul)- .addClass(cn.animating) // # 716- .toggle(effect.effect, effect.options, effect.duration, function(){-// node.info("fancytree-animating end: " + node.li.className);- $(this).removeClass(cn.animating); // #716- $(node.li).removeClass(cn.animating); // #717- callback();- });- return;- }- }- callback();- };- // ^^^ Code above is executed after loading finshed.-- // Load lazy nodes, if any. Then continue with _afterLoad()- if(flag && node.lazy && node.hasChildren() === undefined){- // node.debug("nodeSetExpanded: load start...");- node.load().done(function(){- // node.debug("nodeSetExpanded: load done");- if(dfd.notifyWith){ // requires jQuery 1.6+- dfd.notifyWith(node, ["loaded"]);- }- _afterLoad(function () { dfd.resolveWith(node); });- }).fail(function(errMsg){- _afterLoad(function () { dfd.rejectWith(node, ["load failed (" + errMsg + ")"]); });- });-/*- var source = tree._triggerNodeEvent("lazyLoad", node, ctx.originalEvent);- _assert(typeof source !== "boolean", "lazyLoad event must return source in data.result");- node.debug("nodeSetExpanded: load start...");- this._callHook("nodeLoadChildren", ctx, source).done(function(){- node.debug("nodeSetExpanded: load done");- if(dfd.notifyWith){ // requires jQuery 1.6+- dfd.notifyWith(node, ["loaded"]);- }- _afterLoad.call(tree);- }).fail(function(errMsg){- dfd.rejectWith(node, ["load failed (" + errMsg + ")"]);- });-*/- }else{- _afterLoad(function () { dfd.resolveWith(node); });- }- // node.debug("nodeSetExpanded: returns");- return dfd.promise();- },- /** Focus or blur this node.- * @param {EventData} ctx- * @param {boolean} [flag=true]- */- nodeSetFocus: function(ctx, flag) {- // ctx.node.debug("nodeSetFocus(" + flag + ")");- var ctx2,- tree = ctx.tree,- node = ctx.node,- opts = tree.options,- // et = ctx.originalEvent && ctx.originalEvent.type,- isInput = ctx.originalEvent ? $(ctx.originalEvent.target).is(":input") : false;-- flag = (flag !== false);-- // (node || tree).debug("nodeSetFocus(" + flag + "), event: " + et + ", isInput: "+ isInput);- // Blur previous node if any- if(tree.focusNode){- if(tree.focusNode === node && flag){- // node.debug("nodeSetFocus(" + flag + "): nothing to do");- return;- }- ctx2 = $.extend({}, ctx, {node: tree.focusNode});- tree.focusNode = null;- this._triggerNodeEvent("blur", ctx2);- this._callHook("nodeRenderStatus", ctx2);- }- // Set focus to container and node- if(flag){- if( !this.hasFocus() ){- node.debug("nodeSetFocus: forcing container focus");- this._callHook("treeSetFocus", ctx, true, {calledByNode: true});- }- node.makeVisible({scrollIntoView: false});- tree.focusNode = node;- if( opts.titlesTabbable ) {- if( !isInput ) { // #621- $(node.span).find(".fancytree-title").focus();- }- } else {- // We cannot set KB focus to a node, so use the tree container- // #563, #570: IE scrolls on every call to .focus(), if the container- // is partially outside the viewport. So do it only, when absolutely- // neccessary:- if( $(document.activeElement).closest(".fancytree-container").length === 0 ) {- $(tree.$container).focus();- }- }- if( opts.aria ){- // Set active descendant to node's span ID (create one, if needed)- $(tree.$container).attr("aria-activedescendant",- $( node.tr || node.li ).uniqueId().attr("id"));- // "ftal_" + opts.idPrefix + node.key);- }-// $(node.span).find(".fancytree-title").focus();- this._triggerNodeEvent("focus", ctx);-// if( opts.autoActivate ){-// tree.nodeSetActive(ctx, true);-// }- if( opts.autoScroll ){- node.scrollIntoView();- }- this._callHook("nodeRenderStatus", ctx);- }- },- /** (De)Select node, return new status (sync).- *- * @param {EventData} ctx- * @param {boolean} [flag=true]- * @param {object} [opts] additional options. Defaults to {noEvents: false,- * propagateDown: null, propagateUp: null,- * callback: null,- * }- * @returns {boolean} previous status- */- nodeSetSelected: function(ctx, flag, callOpts) {- callOpts = callOpts || {};- var node = ctx.node,- tree = ctx.tree,- opts = ctx.options,- noEvents = (callOpts.noEvents === true);-- // flag defaults to true- flag = (flag !== false);-- // node.debug("nodeSetSelected(" + flag + ")", ctx);-- // Cannot (de)select unselectable nodes directly (only by propagation or- // by setting the `.selected` property)- if( FT.evalOption("unselectable", node, node, opts, false) ){- return;- }-- // Remember the user's intent, in case down -> up propagation prevents- // applying it to node.selected- node._lastSelectIntent = flag;-- // Nothing to do?- /*jshint -W018 */ // Confusing use of '!'- if( !!node.selected === flag ){- if( opts.selectMode === 3 && node.partsel && !flag ){- // If propagation prevented selecting this node last time, we still- // want to allow to apply setSelected(false) now- }else{- return flag;- }- }- /*jshint +W018 */-- if( !noEvents &&- this._triggerNodeEvent("beforeSelect", node, ctx.originalEvent) === false ) {- return !!node.selected;- }- if(flag && opts.selectMode === 1){- // single selection mode (we don't uncheck all tree nodes, for performance reasons)- if(tree.lastSelectedNode){- tree.lastSelectedNode.setSelected(false);- }- node.selected = flag;- }else if(opts.selectMode === 3 && !node.parent.radiogroup && !node.radiogroup){- // multi-hierarchical selection mode- node.selected = flag;- node.fixSelection3AfterClick(callOpts);- }else if(node.parent.radiogroup){- node.visitSiblings(function(n){- n._changeSelectStatusAttrs(flag && n === node);- }, true);- }else{- // default: selectMode: 2, multi selection mode- node.selected = flag;- }- this.nodeRenderStatus(ctx);- tree.lastSelectedNode = flag ? node : null;- if( !noEvents ) {- tree._triggerNodeEvent("select", ctx);- }- },- /** Show node status (ok, loading, error, nodata) using styles and a dummy child node.- *- * @param {EventData} ctx- * @param status- * @param message- * @param details- * @since 2.3- */- nodeSetStatus: function(ctx, status, message, details) {- var node = ctx.node,- tree = ctx.tree;-- function _clearStatusNode() {- // Remove dedicated dummy node, if any- var firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- try{- // I've seen exceptions here with loadKeyPath...- if(node.ul){- node.ul.removeChild(firstChild.li);- firstChild.li = null; // avoid leaks (DT issue 215)- }- }catch(e){}- if( node.children.length === 1 ){- node.children = [];- }else{- node.children.shift();- }- }- }- function _setStatusNode(data, type) {- // Create/modify the dedicated dummy node for 'loading...' or- // 'error!' status. (only called for direct child of the invisible- // system root)- var firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- $.extend(firstChild, data);- firstChild.statusNodeType = type;- tree._callHook("nodeRenderTitle", firstChild);- } else {- node._setChildren([data]);- node.children[0].statusNodeType = type;- tree.render();- }- return node.children[0];- }-- switch( status ){- case "ok":- _clearStatusNode();- node._isLoading = false;- node._error = null;- node.renderStatus();- break;- case "loading":- if( !node.parent ) {- _setStatusNode({- title: tree.options.strings.loading + (message ? " (" + message + ")" : ""),- // icon: true, // needed for 'loding' icon- checkbox: false,- tooltip: details- }, status);- }- node._isLoading = true;- node._error = null;- node.renderStatus();- break;- case "error":- _setStatusNode({- title: tree.options.strings.loadError + (message ? " (" + message + ")" : ""),- // icon: false,- checkbox: false,- tooltip: details- }, status);- node._isLoading = false;- node._error = { message: message, details: details };- node.renderStatus();- break;- case "nodata":- _setStatusNode({- title: tree.options.strings.noData,- // icon: false,- checkbox: false,- tooltip: details- }, status);- node._isLoading = false;- node._error = null;- node.renderStatus();- break;- default:- $.error("invalid node status " + status);- }- },- /**- *- * @param {EventData} ctx- */- nodeToggleExpanded: function(ctx) {- return this.nodeSetExpanded(ctx, !ctx.node.expanded);- },- /**- * @param {EventData} ctx- */- nodeToggleSelected: function(ctx) {- var node = ctx.node,- flag = !node.selected;-- // In selectMode: 3 this node may be unselected+partsel, even if- // setSelected(true) was called before, due to `unselectable` children.- // In this case, we now toggle as `setSelected(false)`- if( node.partsel && !node.selected && node._lastSelectIntent === true ) {- flag = false;- node.selected = true; // so it is not considered 'nothing to do'- }- node._lastSelectIntent = flag;- return this.nodeSetSelected(ctx, flag);- },- /** Remove all nodes.- * @param {EventData} ctx- */- treeClear: function(ctx) {- var tree = ctx.tree;- tree.activeNode = null;- tree.focusNode = null;- tree.$div.find(">ul.fancytree-container").empty();- // TODO: call destructors and remove reference loops- tree.rootNode.children = null;- },- /** Widget was created (called only once, even it re-initialized).- * @param {EventData} ctx- */- treeCreate: function(ctx) {- },- /** Widget was destroyed.- * @param {EventData} ctx- */- treeDestroy: function(ctx) {- this.$div.find(">ul.fancytree-container").remove();- this.$source && this.$source.removeClass("ui-helper-hidden");- },- /** Widget was (re-)initialized.- * @param {EventData} ctx- */- treeInit: function(ctx) {- var tree = ctx.tree,- opts = tree.options;-- //this.debug("Fancytree.treeInit()");- // Add container to the TAB chain- // See http://www.w3.org/TR/wai-aria-practices/#focus_activedescendant- // #577: Allow to set tabindex to "0", "-1" and ""- tree.$container.attr("tabindex", opts.tabindex);-- if( opts.rtl ) {- tree.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- }else{- tree.$container.removeAttr("DIR").removeClass("fancytree-rtl");- }- if( opts.aria ){- tree.$container.attr("role", "tree");- if( opts.selectMode !== 1 ) {- tree.$container.attr("aria-multiselectable", true);- }- }- this.treeLoad(ctx);- },- /** Parse Fancytree from source, as configured in the options.- * @param {EventData} ctx- * @param {object} [source] optional new source (use last data otherwise)- */- treeLoad: function(ctx, source) {- var metaData, type, $ul,- tree = ctx.tree,- $container = ctx.widget.element,- dfd,- // calling context for root node- rootCtx = $.extend({}, ctx, {node: this.rootNode});-- if(tree.rootNode.children){- this.treeClear(ctx);- }- source = source || this.options.source;-- if(!source){- type = $container.data("type") || "html";- switch(type){- case "html":- $ul = $container.find(">ul:first");- $ul.addClass("ui-fancytree-source ui-helper-hidden");- source = $.ui.fancytree.parseHtml($ul);- // allow to init tree.data.foo from <ul data-foo=''>- this.data = $.extend(this.data, _getElementDataAsDict($ul));- break;- case "json":- source = $.parseJSON($container.text());- // $container already contains the <ul>, but we remove the plain (json) text- // $container.empty();- $container.contents().filter(function(){- return (this.nodeType === 3);- }).remove();- if( $.isPlainObject(source) ){- // We got {foo: 'abc', children: [...]}- // Copy extra properties to tree.data.foo- _assert($.isArray(source.children), "if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')");- metaData = source;- source = source.children;- delete metaData.children;- $.extend(tree.data, metaData);- }- break;- default:- $.error("Invalid data-type: " + type);- }- }else if(typeof source === "string"){- // TODO: source is an element ID- $.error("Not implemented");- }-- // Trigger fancytreeinit after nodes have been loaded- dfd = this.nodeLoadChildren(rootCtx, source).done(function(){- tree.render();- if( ctx.options.selectMode === 3 ){- tree.rootNode.fixSelection3FromEndNodes();- }- if( tree.activeNode && tree.options.activeVisible ) {- tree.activeNode.makeVisible();- }- tree._triggerTreeEvent("init", null, { status: true });- }).fail(function(){- tree.render();- tree._triggerTreeEvent("init", null, { status: false });- });- return dfd;- },- /** Node was inserted into or removed from the tree.- * @param {EventData} ctx- * @param {boolean} add- * @param {FancytreeNode} node- */- treeRegisterNode: function(ctx, add, node) {- },- /** Widget got focus.- * @param {EventData} ctx- * @param {boolean} [flag=true]- */- treeSetFocus: function(ctx, flag, callOpts) {- function ensureTreeFocus(thisTree) {- if (!thisTree.activeNode && thisTree.getFirstChild()) {- thisTree.getFirstChild().setFocus();- }- }-- flag = (flag !== false);-- // this.debug("treeSetFocus(" + flag + "), callOpts: ", callOpts, this.hasFocus());- // this.debug(" focusNode: " + this.focusNode);- // this.debug(" activeNode: " + this.activeNode);- if( flag !== this.hasFocus() ){- this._hasFocus = flag;- if( !flag && this.focusNode ) {- // Node also looses focus if widget blurs- this.focusNode.setFocus(false);- } else if ( flag && (!callOpts || !callOpts.calledByNode) ) {- $(this.$container).focus();- }- this.$container.toggleClass("fancytree-treefocus", flag);- this._triggerTreeEvent(flag ? "focusTree" : "blurTree");- if( flag ) {- // Check after timeout to ensure mousedown processing is complete- // and the clicked node is already activated- var thisTree = this;- setTimeout(function() { ensureTreeFocus(thisTree); }, 0);- }- }- },- /** Widget option was set using `$().fancytree("option", "foo", "bar")`.- * @param {EventData} ctx- * @param {string} key option name- * @param {any} value option value- */- treeSetOption: function(ctx, key, value) {- var tree = ctx.tree,- callDefault = true,- rerender = false;-- switch( key ) {- case "aria":- case "checkbox":- case "icon":- case "minExpandLevel":- case "tabindex":- tree._callHook("treeCreate", tree);- rerender = true;- break;- case "escapeTitles":- case "tooltip":- rerender = true;- break;- case "rtl":- if( value === false ) {- tree.$container.removeAttr("DIR").removeClass("fancytree-rtl");- }else{- tree.$container.attr("DIR", "RTL").addClass("fancytree-rtl");- }- rerender = true;- break;- case "source":- callDefault = false;- tree._callHook("treeLoad", tree, value);- rerender = true;- break;- }- tree.debug("set option " + key + "=" + value + " <" + typeof(value) + ">");- if(callDefault){- if( this.widget._super ) {- // jQuery UI 1.9+- this.widget._super.call( this.widget, key, value );- } else {- // jQuery UI <= 1.8, we have to manually invoke the _setOption method from the base widget- $.Widget.prototype._setOption.call(this.widget, key, value);- }- }- if(rerender){- tree.render(true, false); // force, not-deep- }- }-});---/* ******************************************************************************- * jQuery UI widget boilerplate- */--/**- * The plugin (derrived from <a href=" http://api.jqueryui.com/jQuery.widget/">jQuery.Widget</a>).<br>- * This constructor is not called directly. Use `$(selector).fancytree({})`- * to initialize the plugin instead.<br>- * <pre class="sh_javascript sunlight-highlight-javascript">// Access widget methods and members:- * var tree = $("#tree").fancytree("getTree");- * var node = $("#tree").fancytree("getActiveNode", "1234");- * </pre>- *- * @mixin Fancytree_Widget- */--$.widget("ui.fancytree",- /** @lends Fancytree_Widget# */- {- /**These options will be used as defaults- * @type {FancytreeOptions}- */- options:- {- activeVisible: true,- ajax: {- type: "GET",- cache: false, // false: Append random '_' argument to the request url to prevent caching.-// timeout: 0, // >0: Make sure we get an ajax error if server is unreachable- dataType: "json" // Expect json format and pass json object to callbacks.- }, //- aria: true,- autoActivate: true,- autoCollapse: false,- autoScroll: false,- checkbox: false,- clickFolderMode: 4,- debugLevel: null, // 0..2 (null: use global setting $.ui.fancytree.debugInfo)- disabled: false, // TODO: required anymore?- enableAspx: true, // TODO: document- escapeTitles: false,- extensions: [],- // fx: { height: "toggle", duration: 200 },- // toggleEffect: { effect: "drop", options: {direction: "left"}, duration: 200 },- // toggleEffect: { effect: "slide", options: {direction: "up"}, duration: 200 },- toggleEffect: { effect: "blind", options: {direction: "vertical", scale: "box"}, duration: 200 },- generateIds: false,- icon: true,- idPrefix: "ft_",- focusOnSelect: false,- keyboard: true,- keyPathSeparator: "/",- minExpandLevel: 1,- quicksearch: false,- rtl: false,- scrollOfs: {top: 0, bottom: 0},- scrollParent: null,- selectMode: 2,- strings: {- loading: "Loading...", // … would be escaped when escapeTitles is true- loadError: "Load error!",- moreData: "More...",- noData: "No data."- },- tabindex: "0",- titlesTabbable: false,- tooltip: false,- _classNames: {- node: "fancytree-node",- folder: "fancytree-folder",- animating: "fancytree-animating",- combinedExpanderPrefix: "fancytree-exp-",- combinedIconPrefix: "fancytree-ico-",- hasChildren: "fancytree-has-children",- active: "fancytree-active",- selected: "fancytree-selected",- expanded: "fancytree-expanded",- lazy: "fancytree-lazy",- focused: "fancytree-focused",- partload: "fancytree-partload",- partsel: "fancytree-partsel",- radio: "fancytree-radio",- // radiogroup: "fancytree-radiogroup",- unselectable: "fancytree-unselectable",- lastsib: "fancytree-lastsib",- loading: "fancytree-loading",- error: "fancytree-error",- statusNodePrefix: "fancytree-statusnode-"- },- // events- lazyLoad: null,- postProcess: null- },- /* Set up the widget, Called on first $().fancytree() */- _create: function() {- this.tree = new Fancytree(this);-- this.$source = this.source || this.element.data("type") === "json" ? this.element- : this.element.find(">ul:first");- // Subclass Fancytree instance with all enabled extensions- var extension, extName, i,- opts = this.options,- extensions = opts.extensions,- base = this.tree;-- for(i=0; i<extensions.length; i++){- extName = extensions[i];- extension = $.ui.fancytree._extensions[extName];- if(!extension){- $.error("Could not apply extension '" + extName + "' (it is not registered, did you forget to include it?)");- }- // Add extension options as tree.options.EXTENSION-// _assert(!this.tree.options[extName], "Extension name must not exist as option name: " + extName);- this.tree.options[extName] = $.extend(true, {}, extension.options, this.tree.options[extName]);- // Add a namespace tree.ext.EXTENSION, to hold instance data- _assert(this.tree.ext[extName] === undefined, "Extension name must not exist as Fancytree.ext attribute: '" + extName + "'");-// this.tree[extName] = extension;- this.tree.ext[extName] = {};- // Subclass Fancytree methods using proxies.- _subclassObject(this.tree, base, extension, extName);- // current extension becomes base for the next extension- base = extension;- }- //- if( opts.icons !== undefined ) { // 2015-11-16- if( opts.icon !== true ) {- $.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead");- } else {- this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead");- opts.icon = opts.icons;- }- }- if( opts.iconClass !== undefined ) { // 2015-11-16- if( opts.icon ) {- $.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead");- } else {- this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead");- opts.icon = opts.iconClass;- }- }- if( opts.tabbable !== undefined ) { // 2016-04-04- opts.tabindex = opts.tabbable ? "0" : "-1";- this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='" + opts.tabindex + "' instead");- }- //- this.tree._callHook("treeCreate", this.tree);- // Note: 'fancytreecreate' event is fired by widget base class-// this.tree._triggerTreeEvent("create");- },-- /* Called on every $().fancytree() */- _init: function() {- this.tree._callHook("treeInit", this.tree);- // TODO: currently we call bind after treeInit, because treeInit- // might change tree.$container.- // It would be better, to move ebent binding into hooks altogether- this._bind();- },-- /* Use the _setOption method to respond to changes to options */- _setOption: function(key, value) {- return this.tree._callHook("treeSetOption", this.tree, key, value);- },-- /** Use the destroy method to clean up any modifications your widget has made to the DOM */- destroy: function() {- this._unbind();- this.tree._callHook("treeDestroy", this.tree);- // In jQuery UI 1.8, you must invoke the destroy method from the base widget- $.Widget.prototype.destroy.call(this);- // TODO: delete tree and nodes to make garbage collect easier?- // TODO: In jQuery UI 1.9 and above, you would define _destroy instead of destroy and not call the base method- },-- // --------------------------------------------------------------------------- /* Remove all event handlers for our namespace */- _unbind: function() {- var ns = this.tree._ns;- this.element.off(ns);- this.tree.$container.off(ns);- $(document).off(ns);- },- /* Add mouse and kyboard handlers to the container */- _bind: function() {- var that = this,- opts = this.options,- tree = this.tree,- ns = tree._ns- // selstartEvent = ( $.support.selectstart ? "selectstart" : "mousedown" )- ;-- // Remove all previuous handlers for this tree- this._unbind();-- //alert("keydown" + ns + "foc=" + tree.hasFocus() + tree.$container);- // tree.debug("bind events; container: ", tree.$container);- tree.$container.on("focusin" + ns + " focusout" + ns, function(event){- var node = FT.getNode(event),- flag = (event.type === "focusin");- // tree.debug("Tree container got event " + event.type, node, event);- // tree.treeOnFocusInOut.call(tree, event);- if(node){- // For example clicking into an <input> that is part of a node- tree._callHook("nodeSetFocus", tree._makeHookContext(node, event), flag);- // tree._callHook("nodeSetFocus", node, flag);- }else{- tree._callHook("treeSetFocus", tree, flag);- }- }).on("selectstart" + ns, "span.fancytree-title", function(event){- // prevent mouse-drags to select text ranges- // tree.debug("<span title> got event " + event.type);- event.preventDefault();- }).on("keydown" + ns, function(event){- // TODO: also bind keyup and keypress- // tree.debug("got event " + event.type + ", hasFocus:" + tree.hasFocus());- // if(opts.disabled || opts.keyboard === false || !tree.hasFocus() ){- if(opts.disabled || opts.keyboard === false ){- return true;- }- var res,- node = tree.focusNode, // node may be null- ctx = tree._makeHookContext(node || tree, event),- prevPhase = tree.phase;-- try {- tree.phase = "userEvent";- // If a 'fancytreekeydown' handler returns false, skip the default- // handling (implemented by tree.nodeKeydown()).- if(node){- res = tree._triggerNodeEvent("keydown", node, event);- }else{- res = tree._triggerTreeEvent("keydown", event);- }- if ( res === "preventNav" ){- res = true; // prevent keyboard navigation, but don't prevent default handling of embedded input controls- } else if ( res !== false ){- res = tree._callHook("nodeKeydown", ctx);- }- return res;- } finally {- tree.phase = prevPhase;- }- }).on("mousedown" + ns + " dblclick" + ns, function(event){- // that.tree.debug("event(" + event + "): !");- if(opts.disabled){- return true;- }- var ctx,- et = FT.getEventTarget(event),- node = et.node,- tree = that.tree,- prevPhase = tree.phase;-- // that.tree.debug("event(" + event.type + "): node: ", node);- if( !node ){- return true; // Allow bubbling of other events- }- ctx = tree._makeHookContext(node, event);- // that.tree.debug("event(" + event.type + "): node: ", node);- try {- tree.phase = "userEvent";- switch(event.type) {- case "mousedown":- ctx.targetType = et.type;- if( node.isPagingNode() ) {- return tree._triggerNodeEvent("clickPaging", ctx, event) === true;- }- return ( tree._triggerNodeEvent("click", ctx, event) === false ) ? false : tree._callHook("nodeClick", ctx);- case "dblclick":- ctx.targetType = et.type;- return ( tree._triggerNodeEvent("dblclick", ctx, event) === false ) ? false : tree._callHook("nodeDblclick", ctx);- }-// } catch(e) {-// // var _ = null; // DT issue 117 // TODO-// $.error(e);- } finally {- tree.phase = prevPhase;- }- });- },- /** Return the active node or null.- * @returns {FancytreeNode}- */- getActiveNode: function() {- return this.tree.activeNode;- },- /** Return the matching node or null.- * @param {string} key- * @returns {FancytreeNode}- */- getNodeByKey: function(key) {- return this.tree.getNodeByKey(key);- },- /** Return the invisible system root node.- * @returns {FancytreeNode}- */- getRootNode: function() {- return this.tree.rootNode;- },- /** Return the current tree instance.- * @returns {Fancytree}- */- getTree: function() {- return this.tree;- }-});--// $.ui.fancytree was created by the widget factory. Create a local shortcut:-FT = $.ui.fancytree;--/**- * Static members in the `$.ui.fancytree` namespace.<br>- * <br>- * <pre class="sh_javascript sunlight-highlight-javascript">// Access static members:- * var node = $.ui.fancytree.getNode(element);- * alert($.ui.fancytree.version);- * </pre>- *- * @mixin Fancytree_Static- */-$.extend($.ui.fancytree,- /** @lends Fancytree_Static# */- {- /** @type {string} */- version: "2.23.0", // Set to semver by 'grunt release'- /** @type {string} */- buildType: "production", // Set to 'production' by 'grunt build'- /** @type {int} */- debugLevel: 1, // Set to 1 by 'grunt build'- // Used by $.ui.fancytree.debug() and as default for tree.options.debugLevel-- _nextId: 1,- _nextNodeKey: 1,- _extensions: {},- // focusTree: null,-- /** Expose class object as $.ui.fancytree._FancytreeClass */- _FancytreeClass: Fancytree,- /** Expose class object as $.ui.fancytree._FancytreeNodeClass */- _FancytreeNodeClass: FancytreeNode,- /* Feature checks to provide backwards compatibility */- jquerySupports: {- // http://jqueryui.com/upgrade-guide/1.9/#deprecated-offset-option-merged-into-my-and-at- positionMyOfs: isVersionAtLeast($.ui.version, 1, 9)- },- /** Throw an error if condition fails (debug method).- * @param {boolean} cond- * @param {string} msg- */- assert: function(cond, msg){- return _assert(cond, msg);- },- /** Return a function that executes *fn* at most every *timeout* ms.- * @param {integer} timeout- * @param {function} fn- * @param {boolean} [invokeAsap=false]- * @param {any} [ctx]- */- debounce: function(timeout, fn, invokeAsap, ctx) {- var timer;- if(arguments.length === 3 && typeof invokeAsap !== "boolean") {- ctx = invokeAsap;- invokeAsap = false;- }- return function() {- var args = arguments;- ctx = ctx || this;- invokeAsap && !timer && fn.apply(ctx, args);- clearTimeout(timer);- timer = setTimeout(function() {- invokeAsap || fn.apply(ctx, args);- timer = null;- }, timeout);- };- },- /** Write message to console if debugLevel >= 2- * @param {string} msg- */- debug: function(msg){- /*jshint expr:true */- ($.ui.fancytree.debugLevel >= 2) && consoleApply("log", arguments);- },- /** Write error message to console.- * @param {string} msg- */- error: function(msg){- consoleApply("error", arguments);- },- /** Convert <, >, &, ", ', / to the equivalent entities.- *- * @param {string} s- * @returns {string}- */- escapeHtml: _escapeHtml,- /** Make jQuery.position() arguments backwards compatible, i.e. if- * jQuery UI version <= 1.8, convert- * { my: "left+3 center", at: "left bottom", of: $target }- * to- * { my: "left center", at: "left bottom", of: $target, offset: "3 0" }- *- * See http://jqueryui.com/upgrade-guide/1.9/#deprecated-offset-option-merged-into-my-and-at- * and http://jsfiddle.net/mar10/6xtu9a4e/- */- fixPositionOptions: function(opts) {- if( opts.offset || ("" + opts.my + opts.at ).indexOf("%") >= 0 ) {- $.error("expected new position syntax (but '%' is not supported)");- }- if( ! $.ui.fancytree.jquerySupports.positionMyOfs ) {- var // parse 'left+3 center' into ['left+3 center', 'left', '+3', 'center', undefined]- myParts = /(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(opts.my),- atParts = /(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(opts.at),- // convert to numbers- dx = (myParts[2] ? (+myParts[2]) : 0) + (atParts[2] ? (+atParts[2]) : 0),- dy = (myParts[4] ? (+myParts[4]) : 0) + (atParts[4] ? (+atParts[4]) : 0);-- opts = $.extend({}, opts, { // make a copy and overwrite- my: myParts[1] + " " + myParts[3],- at: atParts[1] + " " + atParts[3]- });- if( dx || dy ) {- opts.offset = "" + dx + " " + dy;- }- }- return opts;- },- /** Return a {node: FancytreeNode, type: TYPE} object for a mouse event.- *- * @param {Event} event Mouse event, e.g. click, ...- * @returns {string} 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon' | undefined- */- getEventTargetType: function(event){- return this.getEventTarget(event).type;- },- /** Return a {node: FancytreeNode, type: TYPE} object for a mouse event.- *- * @param {Event} event Mouse event, e.g. click, ...- * @returns {object} Return a {node: FancytreeNode, type: TYPE} object- * TYPE: 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon' | undefined- */- getEventTarget: function(event){- var tcn = event && event.target ? event.target.className : "",- res = {node: this.getNode(event.target), type: undefined};- // We use a fast version of $(res.node).hasClass()- // See http://jsperf.com/test-for-classname/2- if( /\bfancytree-title\b/.test(tcn) ){- res.type = "title";- }else if( /\bfancytree-expander\b/.test(tcn) ){- res.type = (res.node.hasChildren() === false ? "prefix" : "expander");- // }else if( /\bfancytree-checkbox\b/.test(tcn) || /\bfancytree-radio\b/.test(tcn) ){- }else if( /\bfancytree-checkbox\b/.test(tcn) ){- res.type = "checkbox";- }else if( /\bfancytree-icon\b/.test(tcn) ){- res.type = "icon";- }else if( /\bfancytree-node\b/.test(tcn) ){- // Somewhere near the title- res.type = "title";- }else if( event && event.target && $(event.target).closest(".fancytree-title").length ) {- // #228: clicking an embedded element inside a title- res.type = "title";- }- return res;- },- /** Return a FancytreeNode instance from element, event, or jQuery object.- *- * @param {Element | jQueryObject | Event} el- * @returns {FancytreeNode} matching node or null- */- getNode: function(el){- if(el instanceof FancytreeNode){- return el; // el already was a FancytreeNode- }else if( el instanceof jQuery ){- el = el[0]; // el was a jQuery object: use the DOM element- }else if(el.originalEvent !== undefined){- el = el.target; // el was an Event- }- while( el ) {- if(el.ftnode) {- return el.ftnode;- }- el = el.parentNode;- }- return null;- },- /** Return a Fancytree instance, from element, index, event, or jQueryObject.- *- * @param {Element | jQueryObject | Event | integer | string} [el]- * @returns {Fancytree} matching tree or null- * @example- * $.ui.fancytree.getTree(); // Get first Fancytree instance on page- * $.ui.fancytree.getTree(1); // Get second Fancytree instance on page- * $.ui.fancytree.getTree("#tree"); // Get tree for this matching element- *- * @since 2.13- */- getTree: function(el){- var widget;-- if( el instanceof Fancytree ) {- return el; // el already was a Fancytree- }- if( el === undefined ) {- el = 0; // get first tree- }- if( typeof el === "number" ) {- el = $(".fancytree-container").eq(el); // el was an integer: return nth instance- } else if( typeof el === "string" ) {- el = $(el).eq(0); // el was a selector: use first match- } else if( el.selector !== undefined ) {- el = el.eq(0); // el was a jQuery object: use the first DOM element- } else if( el.originalEvent !== undefined ) {- el = $(el.target); // el was an Event- }- el = el.closest(":ui-fancytree");- widget = el.data("ui-fancytree") || el.data("fancytree"); // the latter is required by jQuery <= 1.8- return widget ? widget.tree : null;- },- /** Return an option value that has a default, but may be overridden by a- * callback or a node instance attribute.- *- * Evaluation sequence:<br>- *- * If tree.options.<optionName> is a callback that returns something, use that.<br>- * Else if node.<optionName> is defined, use that.<br>- * Else if tree.options.<optionName> is a value, use that.<br>- * Else use `defaultValue`.- *- * @param {string} optionName name of the option property (on node and tree)- * @param {FancytreeNode} node passed to the callback- * @param {object} nodeObject where to look for the local option property, e.g. `node` or `node.data`- * @param {object} treeOption where to look for the tree option, e.g. `tree.options` or `tree.options.dnd5`- * @param {any} [defaultValue]- * @returns {any}- *- * @example- * // Check for node.foo, tree,options.foo(), and tree.options.foo:- * $.ui.fancytree.evalOption("foo", node, node, tree.options);- * // Check for node.data.bar, tree,options.qux.bar(), and tree.options.qux.bar:- * $.ui.fancytree.evalOption("bar", node, node.data, tree.options.qux);- *- * @since 2.22- */- evalOption: function(optionName, node, nodeObject, treeOptions, defaultValue) {- var ctx, res,- tree = node.tree,- treeOpt = treeOptions[optionName],- nodeOpt = nodeObject[optionName];-- if( $.isFunction(treeOpt) ) {- ctx = { node: node, tree: tree, widget: tree.widget, options: tree.widget.options };- res = treeOpt.call(tree, {type: optionName}, ctx);- if( res == null ) {- res = nodeOpt;- }- } else {- res = (nodeOpt != null) ? nodeOpt : treeOpt;- }- if( res == null ) {- res = defaultValue; // no option set at all: return default- }- return res;- },- /** Convert a keydown or mouse event to a canonical string like 'ctrl+a',- * 'ctrl+shift+f2', 'shift+leftdblclick'.- *- * This is especially handy for switch-statements in event handlers.- *- * @param {event}- * @returns {string}- *- * @example-- switch( $.ui.fancytree.eventToString(event) ) {- case "-":- tree.nodeSetExpanded(ctx, false);- break;- case "shift+return":- tree.nodeSetActive(ctx, true);- break;- case "down":- res = node.navigate(event.which, activate, true);- break;- default:- handled = false;- }- if( handled ){- event.preventDefault();- }- */- eventToString: function(event) {- // Poor-man's hotkeys. See here for a complete implementation:- // https://github.com/jeresig/jquery.hotkeys- var which = event.which,- et = event.type,- s = [];-- if( event.altKey ) { s.push("alt"); }- if( event.ctrlKey ) { s.push("ctrl"); }- if( event.metaKey ) { s.push("meta"); }- if( event.shiftKey ) { s.push("shift"); }-- if( et === "click" || et === "dblclick" ) {- s.push(MOUSE_BUTTONS[event.button] + et);- } else {- if( !IGNORE_KEYCODES[which] ) {- s.push( SPECIAL_KEYCODES[which] || String.fromCharCode(which).toLowerCase() );- }- }- return s.join("+");- },- /** Write message to console if debugLevel >= 1- * @param {string} msg- */- info: function(msg){- /*jshint expr:true */- ($.ui.fancytree.debugLevel >= 1) && consoleApply("info", arguments);- },- /* @deprecated: use eventToString(event) instead.- */- keyEventToString: function(event) {- this.warn("keyEventToString() is deprecated: use eventToString()");- return this.eventToString(event);- },- /** Return a wrapped handler method, that provides `this.super`.- *- * @example- // Implement `opts.createNode` event to add the 'draggable' attribute- $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {- // Default processing if any- this._super.apply(this, arguments);- // Add 'draggable' attribute- data.node.span.draggable = true;- });- *- * @param {object} instance- * @param {string} methodName- * @param {function} handler- */- overrideMethod: function(instance, methodName, handler){- var prevSuper,- _super = instance[methodName] || $.noop;-- // context = context || this;-- instance[methodName] = function() {- try {- prevSuper = this._super;- this._super = _super;- return handler.apply(this, arguments);- } finally {- this._super = prevSuper;- }- };- },- /**- * Parse tree data from HTML <ul> markup- *- * @param {jQueryObject} $ul- * @returns {NodeData[]}- */- parseHtml: function($ul) {- // TODO: understand this:- /*jshint validthis:true */- var classes, className, extraClasses, i, iPos, l, tmp, tmp2,- $children = $ul.find(">li"),- children = [];-- $children.each(function() {- var allData, lowerCaseAttr,- $li = $(this),- $liSpan = $li.find(">span:first", this),- $liA = $liSpan.length ? null : $li.find(">a:first"),- d = { tooltip: null, data: {} };-- if( $liSpan.length ) {- d.title = $liSpan.html();-- } else if( $liA && $liA.length ) {- // If a <li><a> tag is specified, use it literally and extract href/target.- d.title = $liA.html();- d.data.href = $liA.attr("href");- d.data.target = $liA.attr("target");- d.tooltip = $liA.attr("title");-- } else {- // If only a <li> tag is specified, use the trimmed string up to- // the next child <ul> tag.- d.title = $li.html();- iPos = d.title.search(/<ul/i);- if( iPos >= 0 ){- d.title = d.title.substring(0, iPos);- }- }- d.title = $.trim(d.title);-- // Make sure all fields exist- for(i=0, l=CLASS_ATTRS.length; i<l; i++){- d[CLASS_ATTRS[i]] = undefined;- }- // Initialize to `true`, if class is set and collect extraClasses- classes = this.className.split(" ");- extraClasses = [];- for(i=0, l=classes.length; i<l; i++){- className = classes[i];- if(CLASS_ATTR_MAP[className]){- d[className] = true;- }else{- extraClasses.push(className);- }- }- d.extraClasses = extraClasses.join(" ");-- // Parse node options from ID, title and class attributes- tmp = $li.attr("title");- if( tmp ){- d.tooltip = tmp; // overrides <a title='...'>- }- tmp = $li.attr("id");- if( tmp ){- d.key = tmp;- }- // Translate hideCheckbox -> checkbox:false- if( $li.attr("hideCheckbox") ){- d.checkbox = false;- }- // Add <li data-NAME='...'> as node.data.NAME- allData = _getElementDataAsDict($li);- if( allData && !$.isEmptyObject(allData) ) {- // #507: convert data-hidecheckbox (lower case) to hideCheckbox- for( lowerCaseAttr in NODE_ATTR_LOWERCASE_MAP ) {- if( allData.hasOwnProperty(lowerCaseAttr) ) {- allData[NODE_ATTR_LOWERCASE_MAP[lowerCaseAttr]] = allData[lowerCaseAttr];- delete allData[lowerCaseAttr];- }- }- // #56: Allow to set special node.attributes from data-...- for(i=0, l=NODE_ATTRS.length; i<l; i++){- tmp = NODE_ATTRS[i];- tmp2 = allData[tmp];- if( tmp2 != null ) {- delete allData[tmp];- d[tmp] = tmp2;- }- }- // All other data-... goes to node.data...- $.extend(d.data, allData);- }- // Recursive reading of child nodes, if LI tag contains an UL tag- $ul = $li.find(">ul:first");- if( $ul.length ) {- d.children = $.ui.fancytree.parseHtml($ul);- }else{- d.children = d.lazy ? undefined : null;- }- children.push(d);-// FT.debug("parse ", d, children);- });- return children;- },- /** Add Fancytree extension definition to the list of globally available extensions.- *- * @param {object} definition- */- registerExtension: function(definition){- _assert(definition.name != null, "extensions must have a `name` property.");- _assert(definition.version != null, "extensions must have a `version` property.");- $.ui.fancytree._extensions[definition.name] = definition;- },- /** Inverse of escapeHtml().- *- * @param {string} s- * @returns {string}- */- unescapeHtml: function(s){- var e = document.createElement("div");- e.innerHTML = s;- return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;- },- /** Write warning message to console.- * @param {string} msg- */- warn: function(msg){- consoleApply("warn", arguments);- }-});--}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.menu.js b/public/libraries/fancytree/src/jquery.fancytree.menu.jsdeleted file mode 100644index c26c64af66..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.menu.js+++ /dev/null@@ -1,155 +0,0 @@-/*!- * jquery.fancytree.menu.js- *- * Enable jQuery UI Menu as context menu for tree nodes.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * @see http://api.jqueryui.com/menu/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--// prevent duplicate loading-// if ( $.ui.fancytree && $.ui.fancytree.version ) {-// $.ui.fancytree.warn("Fancytree: duplicate include");-// return;-// }--$.ui.fancytree.registerExtension({- name: "menu",- version: "0.0.1",- // Default options for this extension.- options: {- enable: true,- selector: null, //- position: {}, //- // Events:- create: $.noop, //- beforeOpen: $.noop, //- open: $.noop, //- focus: $.noop, //- select: $.noop, //- close: $.noop //- },- // Override virtual methods for this extension.- // `this` : is this extension object- // `this._base` : the Fancytree instance- // `this._super`: the virtual function that was overridden (member of prev. extension or Fancytree)- treeInit: function(ctx){- var opts = ctx.options,- tree = ctx.tree;-- this._superApply(arguments);-- // Prepare an object that will be passed with menu events- tree.ext.menu.data = {- tree: tree,- node: null,- $menu: null,- menuId: null- };--// tree.$container[0].oncontextmenu = function() {return false;};- // Replace the standard browser context menu with out own- tree.$container.delegate("span.fancytree-node", "contextmenu", function(event) {- var node = $.ui.fancytree.getNode(event),- ctx = {node: node, tree: node.tree, originalEvent: event, options: tree.options};- tree.ext.menu._openMenu(ctx);- return false;- });-- // Use jquery.ui.menu- $(opts.menu.selector).menu({- create: function(event, ui){- tree.ext.menu.data.$menu = $(this).menu("widget");- var data = $.extend({}, tree.ext.menu.data);- opts.menu.create.call(tree, event, data);- },- focus: function(event, ui){- var data = $.extend({}, tree.ext.menu.data, {- menuItem: ui.item,- menuId: ui.item.find(">a").attr("href")- });- opts.menu.focus.call(tree, event, data);- },- select: function(event, ui){- var data = $.extend({}, tree.ext.menu.data, {- menuItem: ui.item,- menuId: ui.item.find(">a").attr("href")- });- if( opts.menu.select.call(tree, event, data) !== false){- tree.ext.menu._closeMenu(ctx);- }- }- }).hide();- },- treeDestroy: function(ctx){- this._superApply(arguments);- },- _openMenu: function(ctx){- var data,- tree = ctx.tree,- opts = ctx.options,- $menu = $(opts.menu.selector);-- tree.ext.menu.data.node = ctx.node;- data = $.extend({}, tree.ext.menu.data);-- if( opts.menu.beforeOpen.call(tree, ctx.originalEvent, data) === false){- return;- }-- $(document).bind("keydown.fancytree", function(event){- if( event.which === $.ui.keyCode.ESCAPE ){- tree.ext.menu._closeMenu(ctx);- }- }).bind("mousedown.fancytree", function(event){- // Close menu when clicked outside menu- if( $(event.target).closest(".ui-menu-item").length === 0 ){- tree.ext.menu._closeMenu(ctx);- }- });-// $menu.position($.extend({my: "left top", at: "left bottom", of: event}, opts.menu.position));- $menu- .css("position", "absolute")- .show()- .position({my: "left top", at: "right top", of: ctx.originalEvent, collision: "fit"})- .focus();-- opts.menu.open.call(tree, ctx.originalEvent, data);- },- _closeMenu: function(ctx){- var $menu,- tree = ctx.tree,- opts = ctx.options,- data = $.extend({}, tree.ext.menu.data);- if( opts.menu.close.call(tree, ctx.originalEvent, data) === false){- return;- }- $menu = $(opts.menu.selector);- $(document).off("keydown.fancytree, mousedown.fancytree");- $menu.hide();- tree.ext.menu.data.node = null;- }-// ,-// nodeClick: function(ctx) {-// var event = ctx.originalEvent;-// if(event.which === 2 || (event.which === 1 && event.ctrlKey)){-// event.preventDefault();-// ctx.tree.ext.menu._openMenu(ctx);-// return false;-// }-// this._superApply(arguments);-// }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.persist.js b/public/libraries/fancytree/src/jquery.fancytree.persist.jsdeleted file mode 100644index b371fc58ea..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.persist.js+++ /dev/null@@ -1,389 +0,0 @@-/*!- * jquery.fancytree.persist.js- *- * Persist tree status in cookiesRemove or highlight tree nodes, based on a filter.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * @depends: js-cookie or jquery-cookie- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";-/* global Cookies:false */--/*******************************************************************************- * Private functions and variables- */-var cookieGetter, cookieRemover, cookieSetter,- _assert = $.ui.fancytree.assert,- ACTIVE = "active",- EXPANDED = "expanded",- FOCUS = "focus",- SELECTED = "selected";--if( typeof Cookies === "function" ) {- // Assume https://github.com/js-cookie/js-cookie- cookieSetter = Cookies.set;- cookieGetter = Cookies.get;- cookieRemover = Cookies.remove;-} else {- // Fall back to https://github.com/carhartl/jquery-cookie- cookieSetter = cookieGetter = $.cookie;- cookieRemover = $.removeCookie;-}--/* Recursively load lazy nodes- * @param {string} mode 'load', 'expand', false- */-function _loadLazyNodes(tree, local, keyList, mode, dfd) {- var i, key, l, node,- foundOne = false,- expandOpts = tree.options.persist.expandOpts,- deferredList = [],- missingKeyList = [];-- keyList = keyList || [];- dfd = dfd || $.Deferred();-- for( i=0, l=keyList.length; i<l; i++ ) {- key = keyList[i];- node = tree.getNodeByKey(key);- if( node ) {- if( mode && node.isUndefined() ) {- foundOne = true;- tree.debug("_loadLazyNodes: " + node + " is lazy: loading...");- if( mode === "expand" ) {- deferredList.push(node.setExpanded(true, expandOpts));- } else {- deferredList.push(node.load());- }- } else {- tree.debug("_loadLazyNodes: " + node + " already loaded.");- node.setExpanded(true, expandOpts);- }- } else {- missingKeyList.push(key);- tree.debug("_loadLazyNodes: " + node + " was not yet found.");- }- }-- $.when.apply($, deferredList).always(function(){- // All lazy-expands have finished- if( foundOne && missingKeyList.length > 0 ) {- // If we read new nodes from server, try to resolve yet-missing keys- _loadLazyNodes(tree, local, missingKeyList, mode, dfd);- } else {- if( missingKeyList.length ) {- tree.warn("_loadLazyNodes: could not load those keys: ", missingKeyList);- for( i=0, l=missingKeyList.length; i<l; i++ ) {- key = keyList[i];- local._appendKey(EXPANDED, keyList[i], false);- }- }- dfd.resolve();- }- });- return dfd;-}---/**- * [ext-persist] Remove persistence cookies of the given type(s).- * Called like- * $("#tree").fancytree("getTree").clearCookies("active expanded focus selected");- *- * @alias Fancytree#clearCookies- * @requires jquery.fancytree.persist.js- */-$.ui.fancytree._FancytreeClass.prototype.clearCookies = function(types){- var local = this.ext.persist,- prefix = local.cookiePrefix;-- types = types || "active expanded focus selected";- if(types.indexOf(ACTIVE) >= 0){- local._data(prefix + ACTIVE, null);- }- if(types.indexOf(EXPANDED) >= 0){- local._data(prefix + EXPANDED, null);- }- if(types.indexOf(FOCUS) >= 0){- local._data(prefix + FOCUS, null);- }- if(types.indexOf(SELECTED) >= 0){- local._data(prefix + SELECTED, null);- }-};---/**- * [ext-persist] Return persistence information from cookies- *- * Called like- * $("#tree").fancytree("getTree").getPersistData();- *- * @alias Fancytree#getPersistData- * @requires jquery.fancytree.persist.js- */-$.ui.fancytree._FancytreeClass.prototype.getPersistData = function(){- var local = this.ext.persist,- prefix = local.cookiePrefix,- delim = local.cookieDelimiter,- res = {};-- res[ACTIVE] = local._data(prefix + ACTIVE);- res[EXPANDED] = (local._data(prefix + EXPANDED) || "").split(delim);- res[SELECTED] = (local._data(prefix + SELECTED) || "").split(delim);- res[FOCUS] = local._data(prefix + FOCUS);- return res;-};---/* *****************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "persist",- version: "2.23.0",- // Default options for this extension.- options: {- cookieDelimiter: "~",- cookiePrefix: undefined, // 'fancytree-<treeId>-' by default- cookie: {- raw: false,- expires: "",- path: "",- domain: "",- secure: false- },- expandLazy: false, // true: recursively expand and load lazy nodes- expandOpts: undefined, // optional `opts` argument passed to setExpanded()- fireActivate: true, // false: suppress `activate` event after active node was restored- overrideSource: true, // true: cookie takes precedence over `source` data attributes.- store: "auto", // 'cookie': force cookie, 'local': force localStore, 'session': force sessionStore- types: "active expanded focus selected"- },-- /* Generic read/write string data to cookie, sessionStorage or localStorage. */- _data: function(key, value){- var ls = this._local.localStorage; // null, sessionStorage, or localStorage-- if( value === undefined ) {- return ls ? ls.getItem(key) : cookieGetter(key);- } else if ( value === null ) {- if( ls ) {- ls.removeItem(key);- } else {- cookieRemover(key);- }- } else {- if( ls ) {- ls.setItem(key, value);- } else {- cookieSetter(key, value, this.options.persist.cookie);- }- }- },-- /* Append `key` to a cookie. */- _appendKey: function(type, key, flag){- key = "" + key; // #90- var local = this._local,- instOpts = this.options.persist,- delim = instOpts.cookieDelimiter,- cookieName = local.cookiePrefix + type,- data = local._data(cookieName),- keyList = data ? data.split(delim) : [],- idx = $.inArray(key, keyList);- // Remove, even if we add a key, so the key is always the last entry- if(idx >= 0){- keyList.splice(idx, 1);- }- // Append key to cookie- if(flag){- keyList.push(key);- }- local._data(cookieName, keyList.join(delim));- },-- treeInit: function(ctx){- var tree = ctx.tree,- opts = ctx.options,- local = this._local,- instOpts = this.options.persist;-- // For 'auto' or 'cookie' mode, the cookie plugin must be available- _assert((instOpts.store !== "auto" && instOpts.store !== "cookie") || cookieGetter,- "Missing required plugin for 'persist' extension: js.cookie.js or jquery.cookie.js");-- local.cookiePrefix = instOpts.cookiePrefix || ("fancytree-" + tree._id + "-");- local.storeActive = instOpts.types.indexOf(ACTIVE) >= 0;- local.storeExpanded = instOpts.types.indexOf(EXPANDED) >= 0;- local.storeSelected = instOpts.types.indexOf(SELECTED) >= 0;- local.storeFocus = instOpts.types.indexOf(FOCUS) >= 0;- if( instOpts.store === "cookie" || !window.localStorage ) {- local.localStorage = null;- } else {- local.localStorage = (instOpts.store === "local") ? window.localStorage : window.sessionStorage;- }-- // Bind init-handler to apply cookie state- tree.$div.bind("fancytreeinit", function(event){- if ( tree._triggerTreeEvent("beforeRestore", null, {}) === false ) {- return;- }-- var cookie, dfd, i, keyList, node,- prevFocus = local._data(local.cookiePrefix + FOCUS), // record this before node.setActive() overrides it;- noEvents = instOpts.fireActivate === false;-- // tree.debug("document.cookie:", document.cookie);-- cookie = local._data(local.cookiePrefix + EXPANDED);- keyList = cookie && cookie.split(instOpts.cookieDelimiter);-- if( local.storeExpanded ) {- // Recursively load nested lazy nodes if expandLazy is 'expand' or 'load'- // Also remove expand-cookies for unmatched nodes- dfd = _loadLazyNodes(tree, local, keyList, instOpts.expandLazy ? "expand" : false , null);- } else {- // nothing to do- dfd = new $.Deferred().resolve();- }-- dfd.done(function(){- if(local.storeSelected){- cookie = local._data(local.cookiePrefix + SELECTED);- if(cookie){- keyList = cookie.split(instOpts.cookieDelimiter);- for(i=0; i<keyList.length; i++){- node = tree.getNodeByKey(keyList[i]);- if(node){- if(node.selected === undefined || instOpts.overrideSource && (node.selected === false)){-// node.setSelected();- node.selected = true;- node.renderStatus();- }- }else{- // node is no longer member of the tree: remove from cookie also- local._appendKey(SELECTED, keyList[i], false);- }- }- }- // In selectMode 3 we have to fix the child nodes, since we- // only stored the selected *top* nodes- if( tree.options.selectMode === 3 ){- tree.visit(function(n){- if( n.selected ) {- n.fixSelection3AfterClick();- return "skip";- }- });- }- }- if(local.storeActive){- cookie = local._data(local.cookiePrefix + ACTIVE);- if(cookie && (opts.persist.overrideSource || !tree.activeNode)){- node = tree.getNodeByKey(cookie);- if(node){- node.debug("persist: set active", cookie);- // We only want to set the focus if the container- // had the keyboard focus before- node.setActive(true, {- noFocus: true,- noEvents: noEvents- });- }- }- }- if(local.storeFocus && prevFocus){- node = tree.getNodeByKey(prevFocus);- if(node){- // node.debug("persist: set focus", cookie);- if( tree.options.titlesTabbable ) {- $(node.span).find(".fancytree-title").focus();- } else {- $(tree.$container).focus();- }- // node.setFocus();- }- }- tree._triggerTreeEvent("restore", null, {});- });- });- // Init the tree- return this._superApply(arguments);- },- nodeSetActive: function(ctx, flag, callOpts) {- var res,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if(local.storeActive){- local._data(local.cookiePrefix + ACTIVE, this.activeNode ? this.activeNode.key : null);- }- return res;- },- nodeSetExpanded: function(ctx, flag, callOpts) {- var res,- node = ctx.node,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if(local.storeExpanded){- local._appendKey(EXPANDED, node.key, flag);- }- return res;- },- nodeSetFocus: function(ctx, flag) {- var res,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if( local.storeFocus ) {- local._data(local.cookiePrefix + FOCUS, this.focusNode ? this.focusNode.key : null);- }- return res;- },- nodeSetSelected: function(ctx, flag, callOpts) {- var res, selNodes,- tree = ctx.tree,- node = ctx.node,- local = this._local;-- flag = (flag !== false);- res = this._superApply(arguments);-- if(local.storeSelected){- if( tree.options.selectMode === 3 ){- // In selectMode 3 we only store the the selected *top* nodes.- // De-selecting a node may also de-select some parents, so we- // calculate the current status again- selNodes = $.map(tree.getSelectedNodes(true), function(n){- return n.key;- });- selNodes = selNodes.join(ctx.options.persist.cookieDelimiter);- local._data(local.cookiePrefix + SELECTED, selNodes);- } else {- // beforeSelect can prevent the change - flag doesn't reflect the node.selected state- local._appendKey(SELECTED, node.key, node.selected);- }- }- return res;- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.select.js b/public/libraries/fancytree/src/jquery.fancytree.select.jsdeleted file mode 100644index 91ab000df0..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.select.js+++ /dev/null@@ -1,54 +0,0 @@-/*!- * jquery.fancytree.select.js- *- * Configurable support for hierarchical selection.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";---/*******************************************************************************- * Private functions and variables- */--// var escapeHtml = $.ui.fancytree.escapeHtml;---/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "select",- version: "2.23.0",- // Default options for this extension.- options: {- checkboxIcon: true // bool | "radio" | function- },- treeInit: function(ctx){- // gridnav requires the table extension to be loaded before itself- // this._requireExtension("table", true, true);- this._superApply(arguments);-- this.$container.addClass("fancytree-ext-select");- },- nodeLoadChildren: function(ctx, source) {- return this._superApply(arguments).done(function() {- // TODO- });- },- nodeSetSelected: function(ctx, flag, callOpts) {- return this._superApply(arguments);- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.table.js b/public/libraries/fancytree/src/jquery.fancytree.table.jsdeleted file mode 100644index 8566c1d770..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.table.js+++ /dev/null@@ -1,446 +0,0 @@-/*!- * jquery.fancytree.table.js- *- * Render tree as table (aka 'tree grid', 'table tree').- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/* *****************************************************************************- * Private functions and variables- */-function _assert(cond, msg){- msg = msg || "";- if(!cond){- $.error("Assertion failed " + msg);- }-}--function insertFirstChild(referenceNode, newNode) {- referenceNode.insertBefore(newNode, referenceNode.firstChild);-}--function insertSiblingAfter(referenceNode, newNode) {- referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);-}--/* Show/hide all rows that are structural descendants of `parent`. */-function setChildRowVisibility(parent, flag) {- parent.visit(function(node){- var tr = node.tr;- // currentFlag = node.hide ? false : flag; // fix for ext-filter- if(tr){- tr.style.display = (node.hide || !flag) ? "none" : "";- }- if(!node.expanded){- return "skip";- }- });-}--/* Find node that is rendered in previous row. */-function findPrevRowNode(node){- var i, last, prev,- parent = node.parent,- siblings = parent ? parent.children : null;-- if(siblings && siblings.length > 1 && siblings[0] !== node){- // use the lowest descendant of the preceeding sibling- i = $.inArray(node, siblings);- prev = siblings[i - 1];- _assert(prev.tr);- // descend to lowest child (with a <tr> tag)- while(prev.children && prev.children.length){- last = prev.children[prev.children.length - 1];- if(!last.tr){- break;- }- prev = last;- }- }else{- // if there is no preceding sibling, use the direct parent- prev = parent;- }- return prev;-}--/* Render callback for 'wide' mode. */-// function _renderStatusNodeWide(event, data) {-// var node = data.node,-// nodeColumnIdx = data.options.table.nodeColumnIdx,-// $tdList = $(node.tr).find(">td");--// $tdList.eq(nodeColumnIdx).attr("colspan", data.tree.columnCount);-// $tdList.not(":eq(" + nodeColumnIdx + ")").remove();-// }---$.ui.fancytree.registerExtension({- name: "table",- version: "2.23.0",- // Default options for this extension.- options: {- checkboxColumnIdx: null, // render the checkboxes into the this column index (default: nodeColumnIdx)- // customStatus: false, // true: generate renderColumns events for status nodes- indentation: 16, // indent every node level by 16px- nodeColumnIdx: 0 // render node expander, icon, and title to this column (default: #0)- },- // Overide virtual methods for this extension.- // `this` : is this extension object- // `this._super`: the virtual function that was overriden (member of prev. extension or Fancytree)- treeInit: function(ctx){- var i, columnCount, n, $row, $tbody,- tree = ctx.tree,- opts = ctx.options,- tableOpts = opts.table,- $table = tree.widget.element;-- if( tableOpts.customStatus != null ) {- if( opts.renderStatusColumns != null) {- $.error("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' only instead.");- } else {- tree.warn("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' instead.");- opts.renderStatusColumns = tableOpts.customStatus;- }- }- if( opts.renderStatusColumns ) {- if( opts.renderStatusColumns === true ) {- opts.renderStatusColumns = opts.renderColumns;- // } else if( opts.renderStatusColumns === "wide" ) {- // opts.renderStatusColumns = _renderStatusNodeWide;- }- }-- $table.addClass("fancytree-container fancytree-ext-table");- tree.tbody = $table.find(">tbody")[0];- $tbody = $(tree.tbody);-- // Prepare row templates:- // Determine column count from table header if any- columnCount = $("thead >tr:last >th", $table).length;- // Read TR templates from tbody if any- $row = $tbody.children("tr:first");- if( $row.length ) {- n = $row.children("td").length;- if( columnCount && n !== columnCount ) {- tree.warn("Column count mismatch between thead (" + columnCount + ") and tbody (" + n + "): using tbody.");- columnCount = n;- }- $row = $row.clone();- } else {- // Only thead is defined: create default row markup- _assert(columnCount >= 1, "Need either <thead> or <tbody> with <td> elements to determine column count.");- $row = $("<tr />");- for(i=0; i<columnCount; i++) {- $row.append("<td />");- }- }- $row.find(">td").eq(tableOpts.nodeColumnIdx)- .html("<span class='fancytree-node' />");- if( opts.aria ) {- $row.attr("role", "row");- $row.find("td").attr("role", "gridcell");- }- tree.rowFragment = document.createDocumentFragment();- tree.rowFragment.appendChild($row.get(0));-- // // If tbody contains a second row, use this as status node template- // $row = $tbody.children("tr:eq(1)");- // if( $row.length === 0 ) {- // tree.statusRowFragment = tree.rowFragment;- // } else {- // $row = $row.clone();- // tree.statusRowFragment = document.createDocumentFragment();- // tree.statusRowFragment.appendChild($row.get(0));- // }- //- $tbody.empty();-- // Make sure that status classes are set on the node's <tr> elements- tree.statusClassPropName = "tr";- tree.ariaPropName = "tr";- this.nodeContainerAttrName = "tr";-- // #489: make sure $container is set to <table>, even if ext-dnd is listed before ext-table- tree.$container = $table;-- this._superApply(arguments);-- // standard Fancytree created a root UL- $(tree.rootNode.ul).remove();- tree.rootNode.ul = null;-- // Add container to the TAB chain- // #577: Allow to set tabindex to "0", "-1" and ""- this.$container.attr("tabindex", opts.tabindex);- // this.$container.attr("tabindex", opts.tabbable ? "0" : "-1");- if(opts.aria) {- tree.$container- .attr("role", "treegrid")- .attr("aria-readonly", true);- }- },- nodeRemoveChildMarkup: function(ctx) {- var node = ctx.node;-// node.debug("nodeRemoveChildMarkup()");- node.visit(function(n){- if(n.tr){- $(n.tr).remove();- n.tr = null;- }- });- },- nodeRemoveMarkup: function(ctx) {- var node = ctx.node;-// node.debug("nodeRemoveMarkup()");- if(node.tr){- $(node.tr).remove();- node.tr = null;- }- this.nodeRemoveChildMarkup(ctx);- },- /* Override standard render. */- nodeRender: function(ctx, force, deep, collapsed, _recursive) {- var children, firstTr, i, l, newRow, prevNode, prevTr, subCtx,- tree = ctx.tree,- node = ctx.node,- opts = ctx.options,- isRootNode = !node.parent;-- if( tree._enableUpdate === false ) {- // $.ui.fancytree.debug("*** nodeRender _enableUpdate: false");- return;- }- if( !_recursive ){- ctx.hasCollapsedParents = node.parent && !node.parent.expanded;- }- // $.ui.fancytree.debug("*** nodeRender " + node + ", isRoot=" + isRootNode, "tr=" + node.tr, "hcp=" + ctx.hasCollapsedParents, "parent.tr=" + (node.parent && node.parent.tr));- if( !isRootNode ){- if( node.tr && force ) {- this.nodeRemoveMarkup(ctx);- }- if( !node.tr ) {- if( ctx.hasCollapsedParents && !deep ) {- // #166: we assume that the parent will be (recursively) rendered- // later anyway.- // node.debug("nodeRender ignored due to unrendered parent");- return;- }- // Create new <tr> after previous row- // if( node.isStatusNode() ) {- // newRow = tree.statusRowFragment.firstChild.cloneNode(true);- // } else {- newRow = tree.rowFragment.firstChild.cloneNode(true);- // }- prevNode = findPrevRowNode(node);- // $.ui.fancytree.debug("*** nodeRender " + node + ": prev: " + prevNode.key);- _assert(prevNode);- if(collapsed === true && _recursive){- // hide all child rows, so we can use an animation to show it later- newRow.style.display = "none";- }else if(deep && ctx.hasCollapsedParents){- // also hide this row if deep === true but any parent is collapsed- newRow.style.display = "none";-// newRow.style.color = "red";- }- if(!prevNode.tr){- _assert(!prevNode.parent, "prev. row must have a tr, or be system root");- // tree.tbody.appendChild(newRow);- insertFirstChild(tree.tbody, newRow); // #675- }else{- insertSiblingAfter(prevNode.tr, newRow);- }- node.tr = newRow;- if( node.key && opts.generateIds ){- node.tr.id = opts.idPrefix + node.key;- }- node.tr.ftnode = node;- // if(opts.aria){- // $(node.tr).attr("aria-labelledby", "ftal_" + opts.idPrefix + node.key);- // }- node.span = $("span.fancytree-node", node.tr).get(0);- // Set icon, link, and title (normally this is only required on initial render)- this.nodeRenderTitle(ctx);- // Allow tweaking, binding, after node was created for the first time-// tree._triggerNodeEvent("createNode", ctx);- if ( opts.createNode ){- opts.createNode.call(tree, {type: "createNode"}, ctx);- }- } else {- if( force ) {- // Set icon, link, and title (normally this is only required on initial render)- this.nodeRenderTitle(ctx); // triggers renderColumns()- } else {- // Update element classes according to node state- this.nodeRenderStatus(ctx);- }- }- }- // Allow tweaking after node state was rendered-// tree._triggerNodeEvent("renderNode", ctx);- if ( opts.renderNode ){- opts.renderNode.call(tree, {type: "renderNode"}, ctx);- }- // Visit child nodes- // Add child markup- children = node.children;- if(children && (isRootNode || deep || node.expanded)){- for(i=0, l=children.length; i<l; i++) {- subCtx = $.extend({}, ctx, {node: children[i]});- subCtx.hasCollapsedParents = subCtx.hasCollapsedParents || !node.expanded;- this.nodeRender(subCtx, force, deep, collapsed, true);- }- }- // Make sure, that <tr> order matches node.children order.- if(children && !_recursive){ // we only have to do it once, for the root branch- prevTr = node.tr || null;- firstTr = tree.tbody.firstChild;- // Iterate over all descendants- node.visit(function(n){- if(n.tr){- if(!n.parent.expanded && n.tr.style.display !== "none"){- // fix after a node was dropped over a collapsed- n.tr.style.display = "none";- setChildRowVisibility(n, false);- }- if(n.tr.previousSibling !== prevTr){- node.debug("_fixOrder: mismatch at node: " + n);- var nextTr = prevTr ? prevTr.nextSibling : firstTr;- tree.tbody.insertBefore(n.tr, nextTr);- }- prevTr = n.tr;- }- });- }- // Update element classes according to node state- // if(!isRootNode){- // this.nodeRenderStatus(ctx);- // }- },- nodeRenderTitle: function(ctx, title) {- var $cb, res,- node = ctx.node,- opts = ctx.options,- isStatusNode = node.isStatusNode();-- res = this._super(ctx, title);-- if( node.isRootNode() ) {- return res;- }- // Move checkbox to custom column- if(opts.checkbox && !isStatusNode && opts.table.checkboxColumnIdx != null ){- $cb = $("span.fancytree-checkbox", node.span); //.detach();- $(node.tr).find("td").eq(+opts.table.checkboxColumnIdx).html($cb);- }- // Update element classes according to node state- this.nodeRenderStatus(ctx);-- if( isStatusNode ) {- if( opts.renderStatusColumns ) {- // Let user code write column content- opts.renderStatusColumns.call(ctx.tree, {type: "renderStatusColumns"}, ctx);- } // else: default rendering for status node: leave other cells empty- } else if ( opts.renderColumns ) {- opts.renderColumns.call(ctx.tree, {type: "renderColumns"}, ctx);- }- return res;- },- nodeRenderStatus: function(ctx) {- var indent,- node = ctx.node,- opts = ctx.options;-- this._super(ctx);-- $(node.tr).removeClass("fancytree-node");- // indent- indent = (node.getLevel() - 1) * opts.table.indentation;- $(node.span).css({paddingLeft: indent + "px"}); // #460- // $(node.span).css({marginLeft: indent + "px"});- },- /* Expand node, return Deferred.promise. */- nodeSetExpanded: function(ctx, flag, callOpts) {- // flag defaults to true- flag = (flag !== false);-- if((ctx.node.expanded && flag) || (!ctx.node.expanded && !flag)) {- // Expanded state isn't changed - just call base implementation- return this._superApply(arguments);- }-- var dfd = new $.Deferred(),- subOpts = $.extend({}, callOpts, {noEvents: true, noAnimation: true});-- callOpts = callOpts || {};-- function _afterExpand(ok) {- setChildRowVisibility(ctx.node, flag);- if( ok ) {- if( flag && ctx.options.autoScroll && !callOpts.noAnimation && ctx.node.hasChildren() ) {- // Scroll down to last child, but keep current node visible- ctx.node.getLastChild().scrollIntoView(true, {topNode: ctx.node}).always(function(){- if( !callOpts.noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- dfd.resolveWith(ctx.node);- });- } else {- if( !callOpts.noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- dfd.resolveWith(ctx.node);- }- } else {- if( !callOpts.noEvents ) {- ctx.tree._triggerNodeEvent(flag ? "expand" : "collapse", ctx);- }- dfd.rejectWith(ctx.node);- }- }- // Call base-expand with disabled events and animation- this._super(ctx, flag, subOpts).done(function () {- _afterExpand(true);- }).fail(function () {- _afterExpand(false);- });- return dfd.promise();- },- nodeSetStatus: function(ctx, status, message, details) {- if(status === "ok"){- var node = ctx.node,- firstChild = ( node.children ? node.children[0] : null );- if ( firstChild && firstChild.isStatusNode() ) {- $(firstChild.tr).remove();- }- }- return this._superApply(arguments);- },- treeClear: function(ctx) {- this.nodeRemoveChildMarkup(this._makeHookContext(this.rootNode));- return this._superApply(arguments);- },- treeDestroy: function(ctx) {- this.$container.find("tbody").empty();- this.$source && this.$source.removeClass("ui-helper-hidden");- return this._superApply(arguments);- }- /*,- treeSetFocus: function(ctx, flag) {-// alert("treeSetFocus" + ctx.tree.$container);- ctx.tree.$container.focus();- $.ui.fancytree.focusTree = ctx.tree;- }*/-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.themeroller.js b/public/libraries/fancytree/src/jquery.fancytree.themeroller.jsdeleted file mode 100644index 6b6979ed50..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.themeroller.js+++ /dev/null@@ -1,98 +0,0 @@-/*!- * jquery.fancytree.themeroller.js- *- * Enable jQuery UI ThemeRoller styles.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * @see http://jqueryui.com/themeroller/- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "themeroller",- version: "2.23.0",- // Default options for this extension.- options: {- activeClass: "ui-state-active", // Class added to active node- // activeClass: "ui-state-highlight",- addClass: "ui-corner-all", // Class added to all nodes- focusClass: "ui-state-focus", // Class added to focused node- hoverClass: "ui-state-hover", // Class added to hovered node- selectedClass: "ui-state-highlight" // Class added to selected nodes- // selectedClass: "ui-state-active"- },-- treeInit: function(ctx){- var $el = ctx.widget.element,- opts = ctx.options.themeroller;-- this._superApply(arguments);-- if($el[0].nodeName === "TABLE"){- $el.addClass("ui-widget ui-corner-all");- $el.find(">thead tr").addClass("ui-widget-header");- $el.find(">tbody").addClass("ui-widget-conent");- }else{- $el.addClass("ui-widget ui-widget-content ui-corner-all");- }-- $el.delegate(".fancytree-node", "mouseenter mouseleave", function(event){- var node = $.ui.fancytree.getNode(event.target),- flag = (event.type === "mouseenter");-- $(node.tr ? node.tr : node.span)- .toggleClass(opts.hoverClass + " " + opts.addClass, flag);- });- },- treeDestroy: function(ctx){- this._superApply(arguments);- ctx.widget.element.removeClass("ui-widget ui-widget-content ui-corner-all");- },- nodeRenderStatus: function(ctx){- var classes = {},- node = ctx.node,- $el = $(node.tr ? node.tr : node.span),- opts = ctx.options.themeroller;-- this._super(ctx);-/*- .ui-state-highlight: Class to be applied to highlighted or selected elements. Applies "highlight" container styles to an element and its child text, links, and icons.- .ui-state-error: Class to be applied to error messaging container elements. Applies "error" container styles to an element and its child text, links, and icons.- .ui-state-error-text: An additional class that applies just the error text color without background. Can be used on form labels for instance. Also applies error icon color to child icons.-- .ui-state-default: Class to be applied to clickable button-like elements. Applies "clickable default" container styles to an element and its child text, links, and icons.- .ui-state-hover: Class to be applied on mouseover to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.- .ui-state-focus: Class to be applied on keyboard focus to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.- .ui-state-active: Class to be applied on mousedown to clickable button-like elements. Applies "clickable active" container styles to an element and its child text, links, and icons.-*/- // Set ui-state-* class (handle the case that the same class is assigned- // to different states)- classes[opts.activeClass] = false;- classes[opts.focusClass] = false;- classes[opts.selectedClass] = false;- if( node.isActive() ) { classes[opts.activeClass] = true; }- if( node.hasFocus() ) { classes[opts.focusClass] = true; }- // activeClass takes precedence before selectedClass:- if( node.isSelected() && !node.isActive() ) { classes[opts.selectedClass] = true; }- $el.toggleClass(opts.activeClass, classes[opts.activeClass]);- $el.toggleClass(opts.focusClass, classes[opts.focusClass]);- $el.toggleClass(opts.selectedClass, classes[opts.selectedClass]);- // Additional classes (e.g. 'ui-corner-all')- $el.addClass(opts.addClass);- }-});-}(jQuery, window, document));diff --git a/public/libraries/fancytree/src/jquery.fancytree.wide.js b/public/libraries/fancytree/src/jquery.fancytree.wide.jsdeleted file mode 100644index d28ccd8808..0000000000--- a/public/libraries/fancytree/src/jquery.fancytree.wide.js+++ /dev/null@@ -1,194 +0,0 @@-/*!- * jquery.fancytree.wide.js- * Support for 100% wide selection bars.- * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)- *- * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de)- *- * Released under the MIT license- * https://github.com/mar10/fancytree/wiki/LicenseInfo- *- * @version 2.23.0- * @date 2017-05-27T20:09:38Z- */--;(function($, window, document, undefined) {--"use strict";--var reNumUnit = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; // split "1.5em" to ["1.5", "em"]--/*******************************************************************************- * Private functions and variables- */-// var _assert = $.ui.fancytree.assert;--/* Calculate inner width without scrollbar */-// function realInnerWidth($el) {-// // http://blog.jquery.com/2012/08/16/jquery-1-8-box-sizing-width-csswidth-and-outerwidth/-// // inst.contWidth = parseFloat(this.$container.css("width"), 10);-// // 'Client width without scrollbar' - 'padding'-// return $el[0].clientWidth - ($el.innerWidth() - parseFloat($el.css("width"), 10));-// }--/* Create a global embedded CSS style for the tree. */-function defineHeadStyleElement(id, cssText) {- id = "fancytree-style-" + id;- var $headStyle = $("#" + id);-- if( !cssText ) {- $headStyle.remove();- return null;- }- if( !$headStyle.length ) {- $headStyle = $("<style />")- .attr("id", id)- .addClass("fancytree-style")- .prop("type", "text/css")- .appendTo("head");- }- try {- $headStyle.html(cssText);- } catch ( e ) {- // fix for IE 6-8- $headStyle[0].styleSheet.cssText = cssText;- }- return $headStyle;-}--/* Calculate the CSS rules that indent title spans. */-function renderLevelCss(containerId, depth, levelOfs, lineOfs, labelOfs, measureUnit)-{- var i,- prefix = "#" + containerId + " span.fancytree-level-",- rules = [];-- for(i = 0; i < depth; i++) {- rules.push(prefix + (i + 1) + " span.fancytree-title { padding-left: " +- (i * levelOfs + lineOfs) + measureUnit + "; }");- }- // Some UI animations wrap the UL inside a DIV and set position:relative on both.- // This breaks the left:0 and padding-left:nn settings of the title- rules.push(- "#" + containerId + " div.ui-effects-wrapper ul li span.fancytree-title, " +- "#" + containerId + " ul.fancytree-animating span.fancytree-title " + // #716- "{ padding-left: " + labelOfs + measureUnit + "; position: static; width: auto; }");- return rules.join("\n");-}---// /**-// * [ext-wide] Recalculate the width of the selection bar after the tree container-// * was resized.<br>-// * May be called explicitly on container resize, since there is no resize event-// * for DIV tags.-// *-// * @alias Fancytree#wideUpdate-// * @requires jquery.fancytree.wide.js-// */-// $.ui.fancytree._FancytreeClass.prototype.wideUpdate = function(){-// var inst = this.ext.wide,-// prevCw = inst.contWidth,-// prevLo = inst.lineOfs;--// inst.contWidth = realInnerWidth(this.$container);-// // Each title is precceeded by 2 or 3 icons (16px + 3 margin)-// // + 1px title border and 3px title padding-// // TODO: use code from treeInit() below-// inst.lineOfs = (this.options.checkbox ? 3 : 2) * 19;-// if( prevCw !== inst.contWidth || prevLo !== inst.lineOfs ) {-// this.debug("wideUpdate: " + inst.contWidth);-// this.visit(function(node){-// node.tree._callHook("nodeRenderTitle", node);-// });-// }-// };--/*******************************************************************************- * Extension code- */-$.ui.fancytree.registerExtension({- name: "wide",- version: "2.23.0",- // Default options for this extension.- options: {- iconWidth: null, // Adjust this if @fancy-icon-width != "16px"- iconSpacing: null, // Adjust this if @fancy-icon-spacing != "3px"- labelSpacing: null, // Adjust this if padding between icon and label != "3px"- levelOfs: null // Adjust this if ul padding != "16px"- },-- treeCreate: function(ctx){- this._superApply(arguments);- this.$container.addClass("fancytree-ext-wide");-- var containerId, cssText, iconSpacingUnit, labelSpacingUnit, iconWidthUnit, levelOfsUnit,- instOpts = ctx.options.wide,- // css sniffing- $dummyLI = $("<li id='fancytreeTemp'><span class='fancytree-node'><span class='fancytree-icon' /><span class='fancytree-title' /></span><ul />")- .appendTo(ctx.tree.$container),- $dummyIcon = $dummyLI.find(".fancytree-icon"),- $dummyUL = $dummyLI.find("ul"),- // $dummyTitle = $dummyLI.find(".fancytree-title"),- iconSpacing = instOpts.iconSpacing || $dummyIcon.css("margin-left"),- iconWidth = instOpts.iconWidth || $dummyIcon.css("width"),- labelSpacing = instOpts.labelSpacing || "3px",- levelOfs = instOpts.levelOfs || $dummyUL.css("padding-left");-- $dummyLI.remove();-- iconSpacingUnit = iconSpacing.match(reNumUnit)[2];- iconSpacing = parseFloat(iconSpacing, 10);- labelSpacingUnit = labelSpacing.match(reNumUnit)[2];- labelSpacing = parseFloat(labelSpacing, 10);- iconWidthUnit = iconWidth.match(reNumUnit)[2];- iconWidth = parseFloat(iconWidth, 10);- levelOfsUnit = levelOfs.match(reNumUnit)[2];- if( iconSpacingUnit !== iconWidthUnit || levelOfsUnit !== iconWidthUnit || labelSpacingUnit !== iconWidthUnit ) {- $.error("iconWidth, iconSpacing, and levelOfs must have the same css measure unit");- }- this._local.measureUnit = iconWidthUnit;- this._local.levelOfs = parseFloat(levelOfs);- this._local.lineOfs = (1 + (ctx.options.checkbox ? 1 : 0) +- (ctx.options.icon === false ? 0 : 1)) * (iconWidth + iconSpacing) +- iconSpacing;- this._local.labelOfs = labelSpacing;- this._local.maxDepth = 10;-- // Get/Set a unique Id on the container (if not already exists)- containerId = this.$container.uniqueId().attr("id");- // Generated css rules for some levels (extended on demand)- cssText = renderLevelCss(containerId, this._local.maxDepth,- this._local.levelOfs, this._local.lineOfs, this._local.labelOfs,- this._local.measureUnit);- defineHeadStyleElement(containerId, cssText);- },- treeDestroy: function(ctx){- // Remove generated css rules- defineHeadStyleElement(this.$container.attr("id"), null);- return this._superApply(arguments);- },- nodeRenderStatus: function(ctx) {- var containerId, cssText, res,- node = ctx.node,- level = node.getLevel();-- res = this._super(ctx);- // Generate some more level-n rules if required- if( level > this._local.maxDepth ) {- containerId = this.$container.attr("id");- this._local.maxDepth *= 2;- node.debug("Define global ext-wide css up to level " + this._local.maxDepth);- cssText = renderLevelCss(containerId, this._local.maxDepth,- this._local.levelOfs, this._local.lineOfs, this._local.labelSpacing,- this._local.measureUnit);- defineHeadStyleElement(containerId, cssText);- }- // Add level-n class to apply indentation padding.- // (Setting element style would not work, since it cannot easily be- // overriden while animations run)- $(node.span).addClass("fancytree-level-" + level);- return res;- }-});-}(jQuery, window, document));diff --git a/views/index.ejs b/views/index.ejsindex 0aa4232054..b069438081 100644--- a/views/index.ejs+++ b/views/index.ejs@@ -309,7 +309,7 @@<!-- Include Fancytree skin and library --><link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet">- <script src="libraries/fancytree/jquery.fancytree-all.js"></script>+ <script src="libraries/fancytree/jquery.fancytree-all.min.js"></script><script src="libraries/ckeditor/ckeditor.js"></script>