//>>built
define("dojox/html/ellipsis",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/Color","dojo/colors"],function(c){if(7>c.isFF){var g=1;"dojoxFFEllipsisDelay"in c.config&&(g=Number(c.config.dojoxFFEllipsisDelay),isNaN(g)&&(g=1));try{var m=function(){var a=document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","window"),b=document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","description");b.setAttribute("crop",
"end");a.appendChild(b);return function(d){var b=a.cloneNode(!0);b.firstChild.setAttribute("value",d.textContent);d.innerHTML="";d.appendChild(b)}}()}catch(s){}var l=c.create,n=c.doc,o=c.place,p=l("iframe",{className:"dojoxEllipsisIFrame",src:"javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}<\/script></head><body></body></html>'",style:{display:"none"}}),i=function(a,b){if(!a.collapsed)if(0<b){do i(a),b--;while(b)}else if(3==a.endContainer.nodeType&&
0<a.endOffset)a.setEnd(a.endContainer,a.endOffset-1);else if(3==a.endContainer.nodeType)a.setEndBefore(a.endContainer),i(a);else if(a.endOffset&&a.endContainer.childNodes.length>=a.endOffset){var d=a.endContainer.childNodes[a.endOffset-1];3==d.nodeType?a.setEnd(d,d.length-1):(d.childNodes.length?a.setEnd(d,d.childNodes.length):a.setEndBefore(d),i(a))}else a.setEndBefore(a.endContainer),i(a)},q=function(a){var b=l("div",{className:"dojoxEllipsisContainer"}),d=l("div",{className:"dojoxEllipsisShown",
style:{display:"none"}});a.parentNode.replaceChild(b,a);b.appendChild(a);b.appendChild(d);var c=p.cloneNode(!0),f=a.style,g=d.style,e=function(){f.display="";g.display="none";if(!(a.scrollWidth<=a.offsetWidth)){var b=n.createRange();b.selectNodeContents(a);f.display="none";g.display="";var c=!1;do{var e=1;o(b.cloneContents(),d,"only");var j=d.scrollWidth,h=d.offsetWidth,c=j<=h,j=1-1*h/j;0<j&&(e=Math.max(Math.round(d.textContent.length*j)-1,1));i(b,e)}while(!b.collapsed&&!c)}};c.onload=function(){c.contentWindow.onresize=
e;e()};b.appendChild(c)},r=c.hasClass,e=c.doc,f,h,k;e.querySelectorAll?(f=e,h="querySelectorAll",k=".dojoxEllipsis"):e.getElementsByClassName?(f=e,h="getElementsByClassName",k="dojoxEllipsis"):(f=c,h="query",k=".dojoxEllipsis");fx=function(){c.forEach(f[h].apply(f,[k]),function(a){if(a&&!a._djx_ellipsis_done)a._djx_ellipsis_done=!0,m&&a.textContent==a.innerHTML&&!r(a,"dojoxEllipsisSelectable")?m(a):q(a)})};c.addOnLoad(function(){var a=null,b=null,d=function(){b&&(c.disconnect(b),b=null);a&&clearTimeout(a);
a=setTimeout(function(){a=null;fx();b=c.connect(c.body(),"DOMSubtreeModified",d)},g)};d()})}});