{"size": 21225, "ext": "js", "max_stars_repo_path": "js/libs/oj/v2.0.0/min/internal-deps/dvt/DvtBaseTreeView.js", "max_stars_repo_name": "ninckblokje/oraclejet-chrome-extension", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/libs/oj/v2.0.0/min/internal-deps/dvt/DvtBaseTreeView.js", "max_issues_repo_name": "ninckblokje/oraclejet-chrome-extension", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/libs/oj/v2.0.0/min/internal-deps/dvt/DvtBaseTreeView.js", "max_forks_repo_name": "ninckblokje/oraclejet-chrome-extension", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 312.1323529412, "max_line_length": 674, "alphanum_fraction": 0.634958775}
/**
 * Copyright (c) 2014, 2016, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(['./DvtToolkit', './DvtSubcomponent'], function(dvt) {
  // Internal use only.  All APIs and functionality are subject to change at any time.

  // Map the D namespace to dvt, which is used to provide access across partitions.
  var D = dvt;
  
D.vR=(0,D.j)();(0,D.ca)("DvtBaseTreeView",D.vR);D.w.l(D.vR,D.nj,"DvtBaseTreeView");D.vR.prototype.Init=function(a,b,c){D.vR.o.Init.call(this,a,b,c);this.fb=this.tI(this,a,this.dispatchEvent,this);this.fb.le(this);this.Gd=new D.gu(a);this.ul=new D.WU(this);(0,D.Gq)(this.fb,this.Gd);this.Cb=null;this.Rka=!1;this.fQ=null};D.vR.prototype.ud=function(a){a?(this.D=this.pf.Tj(a),(0,D.Uk)()||(this.D.animationOnDisplay="none",this.D.animationOnDataChange="none")):this.D||(this.D=(0,D.vj)(this))};
D.vR.prototype.P=function(a,b,c){var d=a||!this.D;this.ud(a);var e=this.q();if(null==e.nodes)a=null;else{a=[];for(var f=D.H.$G(e.hiddenCategories),g=0;g<e.nodes.length;g++){var h=e.nodes[g];h._index=g;(h=(0,D.cV)(this,f,h))&&a.push(h)}if(1==a.length)a=a[0];else{for(var g=e=0;g<a.length;g++)e+=a[g].Tc();g=this.Wp({value:e,TGa:!0});g.P0(a);a=g}}this.eN({root:a});!(0,window.isNaN)(b)&&!(0,window.isNaN)(c)&&(this.Ga=b,this.Ua=c);this.fb&&this.fb.Ac();c=new D.z(0,0,this.Ga,this.Ua);this.aq(c);b=new D.B(this.j());
this.k(b);this.bZ&&(this.Ec=new D.Hg(this.j(),this.fb),this.Ec.ZK=!0);this.Gj(b,c);this.Vp&&(this.BT=!0,this.Vp.stop());a=this.q().animationOnDataChange;g=new D.z(0,0,this.Ga,this.Ua);c=!1;this.X?a&&d&&(D.Zk.isSupported(a)?(this.Vp=D.Zk.pD(this.j(),a,this.X,b,g,this.nI),c=!0):this.pQ&&"auto"==a&&(this.lf=this.W1(),this.k(this.lf),a=new D.TU(this.j(),this.lf),g=this.pQ,e=this.Ka,f=this.NX,h=this.$I,a.mO=!1,a.pQ=g,a.NX=f,(0,D.UU)(h,g)||(0,D.UU)(f,e)?(a.mO=!0,f=(0,D.$R)(g),h=(0,D.$R)(e),f.push(g),h.push(e),
(0,D.Km)(a,f,h)):(0,D.Km)(a,[g],[e]),this.Vp=a.Nq(!0))):this.Vp=this.X1(b,g);this.NX=this.pQ=null;this.Vp&&(this.fb.ei(this),this.Vp.he(this.qr,this),this.Vp.play());c?this.Mg=this.X:this.X&&this.removeChild(this.X);this.X=b;d?this.$z():this.i3();(0,D.dV)(this,!this.Vp);this.Vp||(0,D.eV)(this);this.Pn();this.Vp||(0,D.el)(this)};D.vR.prototype.render=D.vR.prototype.P;D.vR.prototype.AE=(0,D.ba)(null);D.vR.prototype.aq=(0,D.j)();D.vR.prototype.Gj=(0,D.j)();
D.BR=function(a,b){var c=new D.C(a.j(),0,0,a.Ga,a.Ua);(0,D.si)(c);b.k(c)};D.yR=function(a,b){if(0<a.$I.length){var c=a.Ka?a.Ka.Mc():null;a.Ym&&(0,D.Pr)(a.fb,a.Ym.la());a.Ym=D.fV.P(a,b,a.$I,c);(0,D.Qr)(a.fb,a.Ym.la())}else a.Ym&&(0,D.Pr)(a.fb,a.Ym.la()),a.Ym=null};D.FR=function(a,b){var c=a.q(),d=c.emptyText;d||(d=(0,D.ik)(c,"labelNoData","DvtUtilBundle","NO_DATA"));D.Xe.Lm(b,d,new D.z(0,0,a.Ga,a.Ua),a.la(),c._statusMessageStyle)};D.CR=function(a){return a.Ka&&0<a.Ka.Tc()};D.u=D.vR.prototype;
D.u.X1=function(a,b){var c=this.q().animationOnDisplay;return D.Zk.isSupported(c)?D.Zk.by(this.j(),c,a,b,this.nI):null};D.u.qr=function(){this.lf&&(this.removeChild(this.lf),this.lf=null);this.Mg&&(this.removeChild(this.Mg),this.Mg=null);this.fb.le(this);(0,D.dV)(this,!0);(0,D.eV)(this);this.BT||(0,D.el)(this);this.BT=!1;this.Vp=null};D.u.W1=function(){return new D.B(this.j())};D.u.xw=function(a){return new D.aV(a)};D.u.tI=function(a,b,c,d){return new D.QR(a,b,c,d)};
D.u.Oea=function(a){if(a&&a.VB){var b=a.xc();if(b&&0<b.length)return b[0]}return a};D.u.Ee=function(a){this.q().highlightedCategories=D.kl.Y(a);(0,D.ll)(a,D.$U.IR(this.Ka),"any"==this.q().highlightMatch)};D.vR.prototype.highlight=D.vR.prototype.Ee;D.vR.prototype.select=function(a){var b=this.q();b.selection=D.kl.Y(a);this.Hb&&(a=D.$U.IR(this.Ka),(0,D.Cl)(this.Hb,b.selection,a))};D.vR.prototype.select=D.vR.prototype.select;D.vR.prototype.la=(0,D.s)("fb");
D.vR.prototype.eN=function(a){var b=this.q();this.pQ=this.Ka;this.NX=this.$I;this.Ka=a.root;this.$I=b._ancestors?b._ancestors:[];this.Wr=this.Ka?D.$U.Hpa(this.Ka):0;this.ut=this.Ka?D.$U.Gpa(this.Ka,0):0;this.nI=(0,D.So)(b.animationDuration)/1E3;this.YPa=a.PNa?a.PNa:{};(this.p8="none"==b.selectionMode?null:"single"==b.selectionMode?"s":"m")?(this.Hb=new D.Vk(this.p8),this.h7=b.selection):this.Hb=null;this.fb.yu(this.Hb);(0,D.tj)(this.fb,this.xw(this.fb));this.uX=null;this.Xha=[];if(b.attributeGroups){a=
D.$U.IR(this.Ka);for(var c=0;c<b.attributeGroups.length;c++){var d=b.attributeGroups[c],e=null;if("continuous"==d.attributeType)D.$U.YGa(d,a),e=new D.bR(d.min,d.max,d.minLabel,d.maxLabel,d.colors);else for(var e=new D.cR,f=0;f<d.groups.length;f++){var g=d.groups[f];e.add(g.id,g.label,{color:g.color,pattern:g.pattern})}this.Xha.push({QGa:e,ONa:d.S,id:d.id});!b._adf&&!b._legendSource&&0==c?this.uX=e:b._legendSource&&b._legendSource==d.id&&(this.uX=e)}D.$U.$Ma(this.Xha,a)}if((a=b._contextMenus)&&0<a.length)this.fb.iN=
new D.Vv(this.j(),a);if(b=b._templates){this.bZ={};for(var h in b)a=D.x.aT(b[h]),this.bZ[h]=a}};D.vR.prototype.i3=function(){for(var a=this.Hb?this.Hb.getSelection():[],b=0;b<a.length;b++)a[b].jb(!0)};D.vR.prototype.$z=function(){if(this.Hb&&this.h7){var a=D.$U.IR(this.Ka);(0,D.Cl)(this.Hb,this.h7,a);this.h7=null}};D.eV=function(a){var b=a.q().highlightedCategories;b&&0<b.length&&a.Ee(b)};
D.dV=function(a,b){var c=null,d=a.fQ;d&&(c=(0,D.bV)(a.Ka,d),a.fb.vs(c));b&&(a.fQ=null);c||(c=a.Oea(a.Ka),a.fb.vs(c));b&&a.Mp(a.Z_())};D.u=D.vR.prototype;D.u.Mp=function(a){this.Rka=a;this.fb.Mp(a)};D.u.Z_=(0,D.s)("Rka");D.u.ME=function(a,b){return this.Ka.zD(a,b)};D.u.VI=function(a){return this.Hb?a[0]:null};D.u.QB=function(a){a.Ca()||(this.Hb.Km(a,!1),this.fb.Nv());a=[];for(var b=this.Hb.getSelection(),c=0;c<b.length;c++)a.push(b[c].getId());return a};
D.u.PB=function(){for(var a=[],b=this.Hb.getSelection(),c=0;c<b.length;c++)a.push(b[c].ia());return a};D.u.Hu=function(a){this.zf&&(this.removeChild(this.zf),this.zf=null);if(a&&(this.zf=a.jH()))a=this.q().styleDefaults,this.zf.pa(a._dropSiteFillColor,a._dropSiteOpacity),this.zf.Qa(a._dropSiteBorderColor),this.k(this.zf);return this.zf};D.u.Yya=function(a){a instanceof D.Ts&&(0,D.ZU)(this,a.getId(),!1)};
D.ZU=function(a,b,c){c&&a.Ka&&b==a.Ka.getId()&&0<a.$I.length?(a.fQ=b,a.dispatchEvent(new D.IC(a.$I[0].id))):c||a.dispatchEvent(new D.IC(b));a.j().fe().Ac()};D.vR.prototype.$aa=function(a){return(0,D.Aj)(this.fb,a)};D.vR.prototype.Wp=(0,D.ba)(null);D.vR.prototype.XZ=(0,D.ba)(null);D.vR.prototype.Df=function(){return new D.gV(this)};D.vR.prototype.getAutomation=D.vR.prototype.Df;D.vR.prototype.Baa=(0,D.s)("Ym");
D.cV=function(a,b,c){if(D.$U.XLa(b,c))return null;var d=a.Wp(c);if(d.Pa()){var e=[];c=c.nodes?c.nodes:[];for(var f=0;f<c.length;f++){var g=c[f];g._index=f;(g=(0,D.cV)(a,b,g))&&e.push(g)}d.P0(e)}return d};D.ER=function(a,b){if((0,D.Gf)()||(0,D.sf)())for(var c=D.$U.cIa(b),d=0;d<c.length-1;d++){var e=a.getId()+(c[d+1].getId()?c[d+1].getId():c[d+1].Mc()),e=e.replace(/\s+/g,"");c[d+1].ia().setId(e,!0);c[d].ia().Zb("flowto",e)}};
D.u=D.vR.prototype;D.u.xj=function(a,b,c){return this.Gd.xj(c)};D.u.wk=function(a,b){return this.Gd.wk(a,b)};D.u.Zt=function(a,b){return this.Gd.Zt(a,b)};D.u.wp=function(a,b){return this.Gd.wp(a,b)};D.u.Ov=function(a,b){return this.Gd.Ov(a,b)};D.u.Vv=function(a,b){return this.Gd.Vv(a,b)};D.u.Zv=function(){this.Gd.Zv()};D.u.ds=function(){this.Gd.ds()};
D.vR.prototype.po=function(a,b,c){return this.ul.po(a,b,c)};D.vR.prototype.js=function(a,b){return this.ul.js(a,b)};
D.TU=function(a,b){this.Init(a,b)};D.w.l(D.TU,D.Jm,"DvtBaseTreeAnimationHandler");D.UU=function(a,b){if(!b||!a)return!1;for(var c=0;c<a.length;c++)if(a[c].id==b.getId())return!0;return!1};
D.WU=(0,D.q)("H");D.w.l(D.WU,D.iu,"DvtBaseTreeDropTarget");D.WU.prototype.po=function(a,b,c){if(a=this.H.ME(a,b))a!=this.vF&&(this.H.Hu(a),this.vF=a);else return this.H.Hu(null),null;return c[0]};D.WU.prototype.js=function(a,b){var c=this.H.ME(a,b);return c?{eHa:c.getId()}:null};
D.QR=function(a,b,c,d){this.Init(b,c,d);this.H=a};D.w.l(D.QR,D.Lj,"DvtBaseTreeEventManager");D.u=D.QR.prototype;D.u.Ky=function(a){var b=(0,D.Aj)(this,a.target);b&&b.Aa&&b.Aa()&&(0,D.XU)(this,b,a.shiftKey)};D.u.Hh=function(a){D.QR.o.Hh.call(this,a);var b=(0,D.Aj)(this,a.target);(0,D.YU)(this,b);b&&(!b.Aa||!b.Aa())&&(0,D.XU)(this,b,a.shiftKey)};D.u.Ly=function(a){D.QR.o.Ly.call(this,a);(a=(0,D.Aj)(this,a.target))&&a.gu&&a.gu()};
D.u.Om=function(a){D.QR.o.Om.call(this,a);var b=(0,D.Aj)(this,a.target);b&&b.fu&&(a=(a=(0,D.Aj)(this,a.relatedTarget))&&a.getId?a.getId():null,(null==b.getId()||a!=b.getId())&&b.fu())};D.u.Ih=function(a){var b=!1,b=this.dd();13==a.keyCode&&!a.ctrlKey?(b=this.dd(),b.ju&&b.ju()&&(a.shiftKey&&(b=this.H.Ka),(0,D.ZU)(this.H,b.getId(),a.shiftKey)),(0,D.di)(a),b=!0):b=D.QR.o.Ih.call(this,a);return b};
D.u.pr=function(a){var b=(0,D.Aj)(this,a.target);(0,D.YU)(this,b);this.UO&&this.UO!=b&&(this.UO.fu(),this.UO=null);b&&(b instanceof D.UR&&this.UO!=b&&(this.UO=b,b.gu()),(!b.Aa||!b.Aa())&&(0,D.XU)(this,b,a.shiftKey))};D.u.wB=function(a){(a=(0,D.Aj)(this,a.target))&&a.Aa&&a.Aa()&&(0,D.XU)(this,a,!1)};D.YU=function(a,b){b&&(b instanceof D.DR&&b.Sg())&&(0,D.ZU)(a.H,b.getId(),!1)};D.XU=function(a,b,c){b.ju&&b.ju()&&(0,D.ZU)(a.H,b.getId(),c)};
D.QR.prototype.dm=function(a,b,c){a=this.H.q();if("dim"==a.hoverBehavior){b=b.Lc?b.Lc():[];a.highlightedCategories=c?b.slice():null;c=new D.qm(c?"categoryRollOver":"categoryRollOut",a.highlightedCategories);b=D.$U.IR(this.H.Ka);var d=(0,D.So)(a.hoverBehaviorDelay);this.GB.Od(c,b,d,"any"==a.highlightMatch)}};D.QR.prototype.Bu=function(){return this.H.q().touchResponse};
D.UR=(0,D.j)();D.w.l(D.UR,D.w,"DvtBaseTreeNode");D.HR=new D.Do("#000000",2,5,5,45,0.5);
D.UR.prototype.Init=function(a,b){this.H=a;this.de=b;var c=this.H.q().nodeDefaults;this.Xa=b.id||b.label;this.fk=b.color?b.color:"#000000";this.gD=b.label;this.vq="string"==typeof b.labelStyle?new D.F(b.labelStyle):b.labelStyle;this.Zr=b.pattern;this.FG=b.selectable;this.Kt=b.shortDesc?b.shortDesc:b.tooltip;this.lo=b.value;this.uF=b.drilling?b.drilling:c.drilling;this.fD=b.S;this.VB=b.TGa;this.Sw=1;this.sX=null;this.HN=this.Ib=!1};
D.UR.prototype.P0=function(a){if(null!=a)for(var b=0;b<a.length;b++)a[b].kg=this;this.sl=a};D.UR.prototype.xc=function(){return this.sl?this.sl:[]};D.$R=function(a){var b=[],c,d;if(!a.gf())return b;for(var e=0;e<a.sl.length;e++)d=a.sl[e],c=(0,D.$R)(d),b.push(d),b=b.concat(c);return b};D.bS=function(a){var b=a.kg;b&&(b.sX=a)};D.UR.prototype.NA=function(a){return!a||!this.kg?!1:this.kg==a?!0:this.kg.NA(a)};
D.XR=function(a,b,c){var d=[];if(0>c)return d;if(0==c)return[a];if(b.gf()){a=b.xc();for(var e=0;e<a.length;e++)b=a[e],d=d.concat((0,D.XR)(b,b,c-1))}return d};D.bV=function(a,b){if(a.getId()==b)return a;for(var c=null,d=a.xc(),e=d.length,c=null,f=0;f<e;f++)if(c=d[f],c=(0,D.bV)(c,b))return c;return null};D.u=D.UR.prototype;D.u.q=(0,D.s)("de");D.u.Lc=function(){if(this.VB)return[];var a=this.q().categories;a||(a=(a=(a=this.kg)?a.Lc():null)?a.slice():[],a.push(this.getId()));return a};D.u.getId=(0,D.s)("Xa");
D.u.Tc=(0,D.s)("lo");D.u.rb=(0,D.s)("fk");D.u.Be=function(){var a=this.H.q().tooltip;return a?(0,D.ap)(this.H.j().fe(),a,this.up()):this.Kt};D.u.si=(0,D.s)("fk");D.u.zc=(0,D.s)("Kt");D.u.up=function(){return{id:this.getId(),label:this.Mc(),value:this.Tc(),color:this.rb()}};D.u.wa=function(){return this.q()._index};D.u.fa=(0,D.s)("Sw");D.u.B=function(a){this.Sw=a;this.G&&this.G.B(this.Sw)};D.u.wf=function(a){this.q()._expanded=a};D.u.Pa=function(){return!1!==this.q()._expanded};
D.u.ju=function(){return"replace"==this.uF||"insertAndReplace"==this.uF};D.u.pd=function(){var a=this.H.q()._spb;if(!a||!a[this.fD])a=null;else{for(var a=a[this.fD],b=[],c=0;c<a.length;c++)b.push(new D.Ci(a[c].popupId,a[c].triggerType,a[c].alignId,a[c].align));a=b}return a};D.u.P=(0,D.j)();D.u.wy=function(a){var b=this.xc();if(null!=b)for(var c=0;c<b.length;c++)b[c].P(a)};D.u.zd=function(){(0,D.bS)(this);return this};D.u.Ce=function(){return new D.z(0,0,0,0)};D.u.wj=(0,D.ba)(null);
D.u.Ud=function(){this.Ib=!0;this.Ob();this.gu&&this.gu()};D.u.ic=function(){this.Ib&&(this.Ib=!1,this.Db());this.fu&&this.fu()};D.u.oc=(0,D.s)("Ib");D.u.gu=function(){this.HN=!0};D.u.fu=function(){this.HN=!1};D.u.Aa=function(){return"off"!=this.FG&&null!=this.H.p8};D.u.Ca=(0,D.s)("Me");D.u.jb=function(a){this.Me=a;this.Wm()};D.u.Ob=(0,D.j)();D.u.Db=(0,D.j)();D.u.Ee=function(a,b){this.B(b)};D.u.xj=function(a){return this.H.VI(a)};D.u.wk=function(){return this.H.QB(this)};D.u.Yt=function(){return this.H.PB()};
D.u.jH=(0,D.ba)(null);D.u.vH=(0,D.ba)(null);D.u.contains=(0,D.ba)(!1);D.u.zD=(0,D.ba)(null);D.u.Nm=function(){return[]};D.u.tr=(0,D.j)();D.u.ff=function(a,b){a.mO||(0,D.Km)(a,b.xc(),this.xc());var c=this.Nm(),d=b.Nm(c),e;if(!D.H.Xc(d,c)&&(e=new D.gn(this.H.j(),this,this.H.nI),(0,D.T)(e.J,"typeNumberArray",this,this.Nm,this.tr,c),a.add(e,1),c=this.lo!=b.lo,e=D.M.kba(this.fk)!=D.M.kba(b.fk),this.tr(d),(d=this.H.q().animationUpdateColor)&&(c||e)))this.fk=d};
D.u.pg=function(a){if(!a.mO||!a.mO||!(a.pQ.getId()==this.getId()||(0,D.UU)(a.NX,this))){this.B(0);var b=new D.Mm(this.H.j(),this,this.H.nI);a.add(b,2);if(this.gf())for(b=0;b<this.sl.length;b++)this.sl[b].pg(a)}};D.u.hh=function(a,b){b.k(this.G);var c=new D.jn(this.H.j(),this,this.H.nI);a.add(c,0);if(!a.mO&&this.gf())for(c=0;c<this.sl.length;c++)this.sl[c].hh(a,b)};D.u.gf=function(){return null!=this.sl&&0<this.sl.length};D.YR=function(a){var b=0;for(a=a.kg;a;)b++,a=a.kg;return b};
D.UR.prototype.AI=function(){return this.Zr?new D.ah(this.Zr,this.fk):new D.vn(this.fk)};D.gS=function(a,b){var c=a.Zr?"#000000":D.M.rj(a.fk);b.pa(c);var d=[];d.push(a.H.q().nodeDefaults.labelStyle);a.vq&&d.push(a.vq);b.Ha((0,D.xo)(d));!0===D.zo&&b.pa(c)};D.WR=function(a){var b=11;(a=a.H.q().nodeDefaults.labelStyle.zA())&&(b=(0,window.parseFloat)(a));return b};D.UR.prototype.ia=(0,D.s)("G");D.UR.prototype.Mc=(0,D.s)("gD");D.VR=function(a){return a.H.bZ?a.H.bZ[a.fD]:null};D.UR.prototype.Bh=function(){return this.ju()};
D.UR.prototype.Wm=(0,D.j)();
D.DR=function(a,b,c,d,e){this.Init(c,d,e);this.Pb=a;this.Xa=b;this.nO=!1};D.w.l(D.DR,D.Bj,"DvtBaseTreePeer");D.u=D.DR.prototype;D.u.getId=(0,D.s)("Xa");D.u.Sg=(0,D.s)("nO");D.u.kda=(0,D.q)("nO");D.u.gu=function(){this.Pb&&this.Pb.gu&&this.Pb.gu()};D.u.fu=function(){this.Pb&&this.Pb.fu&&this.Pb.fu()};
D.fV=(0,D.j)();D.w.l(D.fV,D.w,"DvtTreeBreadcrumbsRenderer");D.fV.Pwa=6;D.fV.Hxa="color: #003286;";
D.fV.P=function(a,b,c,d){var e=a.j(),f=a.q().styleDefaults,g=[];g.push(new D.F(D.fV.Hxa));g.push(f._drillTextStyle);var g=(0,D.xo)(g).toString(),h=g+"text-decoration: underline;",i=[];i.push(f._currentTextStyle);f=(0,D.xo)(i).toString();e=new D.Or(e,a.Yya,a,{aw:g,fca:h,eca:h,fqa:f});a.k(e);c=c.slice(0).reverse();c.push({label:d});e.P({items:c},b.e);d=e.F();(0,D.kk)(e,b.x,b.y);d=d.g+D.fV.Pwa;b.y+=d;b.g-=d;a.removeChild(e);return e};
D.zR=(0,D.j)();D.w.l(D.zR,D.w,"DvtTreeLegendRenderer");D.zR.Mxa=4;D.zR.Mw=7;D.zR.PU=24;D.zR.Lxa=11;D.zR.iha="#636363";D.zR.DOa="color:"+D.zR.iha+";";
D.zR.P=function(a,b,c){var d=a.q(),e=d.sizeLabel,f=d.colorLabel;if(!(null==e&&null==f&&null==c)){var g=a.j(),h=a.la(),i=new D.B(g);a.k(i);var k=D.zR.OQ(g,a,i,b.e,e,f,c),l=(0,D.SH)(a.q().skin)?null:"#000000",m=[];m.push(d.styleDefaults._labelStyle);var l={borderColor:l,aw:(0,D.xo)(m)},d=D.dR.Rca(g,h,i,b.e,b.g,c,l),m=k?k.F():null,n=d?d.F():null;if(k&&!d)k.I(b.y+(b.e-m.e)/2);else if(d&&!k)d.I(b.y+(b.e-n.e)/2);else if(d&&k){var o=b.e-D.zR.PU;m.e+n.e>o&&(m.e>o/2&&n.e>o/2?(i.removeChild(k),i.removeChild(d),
k=D.zR.OQ(g,a,i,o/2,e,f,c),d=D.dR.Rca(g,h,i,o/2,b.g,c,l)):m.e>n.e?(h=o-n.e,i.removeChild(k),k=D.zR.OQ(g,a,i,h,e,f,c)):(e=o-m.e,i.removeChild(d),d=D.dR.Rca(g,h,i,e,b.g,c,l)),m=k.F(),n=d.F());(0,D.D)(g)?(d.I(b.x),k.I(b.x+b.e-m.e)):(k.I(b.x),d.I(b.x+b.e-n.e))}c=i.F();i.O(b.y+b.g-c.g);b.g-=c.g+D.zR.Mxa;a.removeChild(i);return i}};
D.zR.OQ=function(a,b,c,d,e,f){var g=(0,D.D)(a),h=b.la(),i=b.q().styleDefaults,k=null;if(e||f){k=new D.B(a);c.k(k);var l=[];l.push(i._attributeTypeTextStyle);c=(0,D.xo)(l);l=[];l.push(i._attributeValueTextStyle);var i=(0,D.xo)(l),m,n,o,p,l=0;e&&(m=(0,D.ik)(b.q(),"labelSize",b.XZ(),"SIZE"),m=new D.Hf(a,m,0,0),m.Ha(c),k.k(m),o=m.Eb().e,n=new D.Hf(a,e,0,0),n.Ha(i),k.k(n),p=n.Eb().e,l=o+p+D.zR.Mw);var r,t,v,y,L=0;f&&(r=(0,D.ik)(b.q(),"labelColor",b.XZ(),"COLOR"),r=new D.Hf(a,r,0,0),r.Ha(c),k.k(r),v=r.Eb().e,
t=new D.Hf(a,f,0,0),t.Ha(i),k.k(t),y=t.Eb().e,L=v+y+D.zR.Mw);d-=D.zR.PU;l+L>d&&(a=d/2,l>a&&L>a?(D.Xe.Qb(n,a-o-D.zR.Mw,window.Infinity,k)?(p=n.Eb().e,h.Fa(n,new D.Bj(e))):(k.removeChild(m),k.removeChild(n),n=null,p=0),D.Xe.Qb(t,a-v-D.zR.Mw,window.Infinity,k)?(y=t.Eb().e,h.Fa(t,new D.Bj(f))):(k.removeChild(r),k.removeChild(t),t=null,y=0)):l>L?D.Xe.Qb(n,d-L-o-D.zR.Mw,window.Infinity,k)?(p=n.Eb().e,h.Fa(n,new D.Bj(e))):(k.removeChild(m),k.removeChild(n),n=null,p=0):D.Xe.Qb(t,d-l-v-D.zR.Mw,window.Infinity,
k)?(y=t.Eb().e,h.Fa(t,new D.Bj(f))):(k.removeChild(r),k.removeChild(t),t=null,y=0));d=0;g?(t&&(t.ca(d),d+=y+D.zR.Mw,r.ca(d),d+=v+D.zR.PU),n&&(n.ca(d),d+=p+D.zR.Mw,m.ca(d))):(n&&(m.ca(d),d+=o+D.zR.Mw,n.ca(d),d+=p+D.zR.PU),t&&(r.ca(d),d+=v+D.zR.Mw,t.ca(d)))}return k};
D.aV=function(a){this.Init(a)};D.w.l(D.aV,D.ek,"DvtBaseTreeKeyboardHandler");D.aV.prototype.qy=function(a){return this.sg(a)&&!a.ctrlKey};D.aV.prototype.$q=function(a){return 32==a.keyCode&&a.ctrlKey};
D.PR=(0,D.j)();D.w.l(D.PR,D.Jj,"DvtBaseTreeDefaults");
D.VU={skin:"alta",animationDuration:500,animationOnDataChange:"none",animationOnDisplay:"none",highlightMatch:"all",hoverBehavior:"none",hoverBehaviorDelay:200,nodeDefaults:{labelStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 11px;")},selectionMode:"multiple",sorting:"off",_statusMessageStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"),styleDefaults:{_attributeTypeTextStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;font-weight:bold;color:#4F4F4F"),_attributeValueTextStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;"),
_currentTextStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;"),_drillTextStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:12px;"),_labelStyle:new D.F("font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;")},touchResponse:"auto",_resources:{}};D.PR.prototype.Init=function(a){a={skyros:D.kl.bd(a.skyros,D.VU),alta:D.kl.bd(a.alta,{})};D.PR.o.Init.call(this,a)};
D.$U={};D.w.l(D.$U,D.w,"DvtBaseTreeUtils");D.$U.Gpa=function(a,b){var c=b,d=a.xc();if(d)for(var e=0;e<d.length;e++)var f=D.$U.Gpa(d[e],b+1),c=window.Math.max(c,f);return c};D.$U.Hpa=function(a){var b=1;if(a=a.xc())for(var c=0;c<a.length;c++)b+=D.$U.Hpa(a[c]);return b};D.$U.IR=function(a){var b=[];D.$U.VU(a,b);return b};D.$U.cIa=function(a){var b=[];D.$U.VU(a,b,!1,!0);return b};D.$U.fra=function(a){var b=[];D.$U.VU(a,b,!0);return b};D.$U.XLa=function(a,b){return D.H.tM(a,b.categories)};
D.$U.YGa=function(a,b){var c=a.S;if(!(null==c||null!=a.min&&null!=a.max)){for(var d=window.Infinity,e=-window.Infinity,f=0;f<b.length;f++){var g=b[f];c==g.fD&&(g=g.q()._cv,null!=g&&(e=window.Math.max(e,g),d=window.Math.min(d,g)))}null==a.min&&(a.min=d);null==a.max&&(a.max=e)}};D.$U.$Ma=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=d.QGa,d=d.ONa;if(e instanceof D.bR&&null!=d)for(var f=0;f<b.length;f++){var g=b[f];if(d==g.fD){var h=e.get(g.q()._cv);h&&(g.fk=h)}}}};
D.$U.VU=function(a,b,c,d){if(a){var e=a.xc(),f=e?e.length:0;(!c||0==f)&&(!d||a.ia())&&b.push(a);for(a=0;a<f;a++)D.$U.VU(e[a],b,c,d)}};
D.gV=function(a){this.ipa=a;this.Ka=a.Ka};(0,D.ca)("DvtTreeAutomation",D.gV);D.w.l(D.gV,D.zj,"DvtTreeAutomation");D.gV.prototype.ol=function(a){var b=this.ipa.$aa(a);if(!b)return a.getParent()instanceof D.Me&&(a=a.getParent()),b=a.getParent(),b instanceof D.Or?"breadcrumbs["+(0,D.Ht)(b,a)+"]":null;if(b instanceof D.UR){a="";if(!this.Ka.VB){if(b==this.Ka)return"node[0]";a+="[0]"}a=(b=this.sP(b,this.Ka.xc()))?a+b:a;if(0<a.length)return"node"+a}return null};
D.gV.prototype.sP=function(a,b){if(b&&0<b.length)for(var c=0;c<b.length;c++){if(b[c]==a)return"["+c+"]";var d=this.sP(a,b[c].xc());if(d)return"["+c+"]"+d}return null};
D.gV.prototype.Ff=function(a){return!a?null:"tooltip"==a?(0,D.Tl)(this.ipa):0==a.indexOf("breadcrumbs")?(a=(0,D.Kt)(this.Ka.H.Baa(),a.substring(a.indexOf("[")+1,a.indexOf("]"))))?a.ta():null:!this.Ka.VB&&(a=a.substring(0,a.indexOf("["))+a.substring(a.indexOf("]")+1),"node"==a)?this.Ka.ia().ta():(a=(0,D.hV)(this,this.Ka,a))?a.ia().ta():null};D.gV.prototype.getDomElementForSubId=D.gV.prototype.Ff;
D.hV=function(a,b,c){var d=c.indexOf("["),e=c.indexOf("]");if(0<=d&&0<=e){d=c.substring(d+1,e);c=c.substring(e+1);var e=c.indexOf("["),f=c.indexOf("]");return(b=(0,D.iV)(b.xc(),d))&&0<=e&&0<=f?(0,D.hV)(a,b,c):b}};D.jV=function(a,b,c){var d=c.shift();b=(0,D.iV)(b.xc(),d);return 0==c.length?b:0<c.length?(0,D.jV)(a,b,c):null};
D.gV.prototype.Nb=function(a){!this.Ka.VB&&0==a[0]&&a.shift();a=0==a.length?this.Ka:(0,D.jV)(this,this.Ka,a);return{color:a.rb(),label:a.Mc(),selected:void 0==a.Ca()?!1:a.Ca(),size:a.Tc(),tooltip:a.zc()}};D.gV.prototype.getNode=D.gV.prototype.Nb;D.iV=function(a,b){for(var c=0;c<a.length;c++)if(b==a[c].wa())return a[c];return null};

  return D;
});