//>>built
define("dijit/a11y","dojo/_base/array dojo/dom dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/sniff ./main".split(" "),function(A,n,g,v,w,x,y){var f={_isElementShown:function(b){var d=v.get(b);return"hidden"!=d.visibility&&"collapsed"!=d.visibility&&"none"!=d.display&&"hidden"!=g.get(b,"type")},hasDefaultTabStop:function(b){switch(b.nodeName.toLowerCase()){case "a":return g.has(b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":try{var d=
b.contentDocument;if("designMode"in d&&"on"==d.designMode)return!0;var c=d.body}catch(h){try{c=b.contentWindow.document.body}catch(k){return!1}}return c&&("true"==c.contentEditable||c.firstChild&&"true"==c.firstChild.contentEditable);default:return"true"==b.contentEditable}},effectiveTabIndex:function(b){if(!g.get(b,"disabled"))return g.has(b,"tabIndex")?+g.get(b,"tabIndex"):f.hasDefaultTabStop(b)?0:void 0},isTabNavigable:function(b){return 0<=f.effectiveTabIndex(b)},isFocusable:function(b){return-1<=
f.effectiveTabIndex(b)},_getTabNavigable:function(b){function d(a){return a&&"input"==a.tagName.toLowerCase()&&a.type&&"radio"==a.type.toLowerCase()&&a.name&&a.name.toLowerCase()}function c(a){return p[d(a)]||a}var h,k,l,q,m,r,p={},t=f._isElementShown,z=f.effectiveTabIndex,u=function(a){for(a=a.firstChild;a;a=a.nextSibling)if(!(1!=a.nodeType||9>=x("ie")&&"HTML"!==a.scopeName)&&t(a)){var e=z(a);if(0<=e){if(0==e)h||(h=a),k=a;else if(0<e){if(!l||e<q)q=e,l=a;if(!m||e>=r)r=e,m=a}e=d(a);g.get(a,"checked")&&
e&&(p[e]=a)}"SELECT"!=a.nodeName.toUpperCase()&&u(a)}};t(b)&&u(b);return{first:c(h),last:c(k),lowest:c(l),highest:c(m)}},getFirstInTabbingOrder:function(b,d){var c=f._getTabNavigable(n.byId(b,d));return c.lowest?c.lowest:c.first},getLastInTabbingOrder:function(b,d){var c=f._getTabNavigable(n.byId(b,d));return c.last?c.last:c.highest}};w.mixin(y,f);return f});