var Ka={bqb:function(a,b){var d=a.getSelection();if(void 0===b)return d[0];var e=E.ho(b),f=E.ho(d),g=0;for(i=0;i<e.length;i++){var h=e[i];-1!=E.Ig(f,h)&&g++}if(0<f.length)return f[0];if(e.length==g)return null;f=E.ho(d);for(i=0;i<f.length;i++)h=f[i],E.Ig(e,h);return e[0]}};m("AdfShuttleUtils.getLastSelectionChange",Ka.bqb);Ka.Sqb=function(a,b){var d=a.getSelection();return 0<=E.indexOf(d,b)};m("AdfShuttleUtils.isSelected",Ka.Sqb);Ka.HTa=function(a,b){var d=a.getValue();return 0>E.indexOf(d,b)};
m("AdfShuttleUtils.isLeading",Ka.HTa);Ka.dqb=function(a){var b=[],d=a.getSelection();if(!d)return b;for(i=0;i<d.length;i++)Ka.HTa(a,d[i])&&b.push(d[i]);return b};m("AdfShuttleUtils.getLeadSelection",Ka.dqb);Ka.tqb=function(a){var b=[],d=a.getSelection();if(!d)return b;for(i=0;i<d.length;i++)Ka.Yvb(a,d[i])==Ka.$sb&&b.push(d[i]);return b};m("AdfShuttleUtils.getTrailSelection",Ka.tqb);