//>>built
("undefined"===typeof define?function(d,l){l()}:define)(["dojo/_base/config","dojo/_base/lang","dojo/_base/window","require"],function(d,l,g,t){var c=l&&l.getObject("dojox.mobile",!0)||{};l=new function(){g||(g=window,g.doc=document,g._no_dojo_dm=c);d=d||g.mblConfig||{};for(var m=g.doc.getElementsByTagName("script"),q=0;q<m.length;q++){var r=m[q],p=r.getAttribute("src")||"";if(p.match(/\/deviceTheme\.js/i)){d.baseUrl=p.replace("deviceTheme.js","../../dojo/");if(m=r.getAttribute("data-dojo-config")||
r.getAttribute("djConfig")){m=eval("({ "+m+" })");for(var u in m)d[u]=m[u]}break}else if(p.match(/\/dojo\.js/i)){d.baseUrl=p.replace("dojo.js","");break}}this.loadCssFile=function(e){var a=g.doc.createElement("link");a.href=e;a.type="text/css";a.rel="stylesheet";e=g.doc.getElementsByTagName("head")[0];e.insertBefore(a,e.firstChild);c.loadedCssFiles.push(a)};this.toUrl=function(e){return t?t.toUrl(e):d.baseUrl+"../"+e};this.setDm=function(e){c=e};this.themeMap=d.themeMap||[["Holodark","holodark",[]],
["Android [3-9]","holodark",[]],["Android","android",[]],["BlackBerry","blackberry",[]],["BB10","blackberry",[]],["ios7","ios7",[]],["iPhone;.*OS ([7-9]|1[0-9])_","ios7",[]],["iPad;.*OS ([7-9]|1[0-9])_","ios7",[]],["iPhone","iphone",[]],["iPad","iphone",[this.toUrl("dojox/mobile/themes/iphone/ipad.css")]],["WindowsPhone","windows",[]],["Windows Phone","windows",[]],["Trident","ios7",[]],["Custom","custom",[]],[".*","ios7",[]]];c.loadedCssFiles=[];this.loadDeviceTheme=function(e){var a=d.mblThemeFiles||
c.themeFiles||["@theme"],f;var b=this.themeMap;var h=e||d.mblUserAgent||(location.search.match(/theme=(\w+)/)?RegExp.$1:navigator.userAgent);for(f=0;f<b.length;f++)if(h.match(new RegExp(b[f][0]))){var k=b[f][1];if("windows"!=k||!d.mblDisableWindowsTheme){h=g.doc.documentElement.className;h=h.replace(new RegExp(" *"+c.currentTheme+"_theme"),"")+" "+k+"_theme";g.doc.documentElement.className=h;c.currentTheme=k;f=[].concat(b[f][2]);for(b=0;b<a.length;b++){var n=a[b]instanceof Array||"array"==typeof a[b];
n||-1===a[b].indexOf("/")?(h=n?(a[b][0]||"").replace(/\./g,"/"):"dojox/mobile",n=(n?a[b][1]:a[b]).replace(/\./g,"/"),h=h+"/themes/"+(k+"/"+("@theme"===n?k:n)+".css")):h=a[b];f.unshift(this.toUrl(h))}for(a=0;a<c.loadedCssFiles.length;a++)k=c.loadedCssFiles[a],k.parentNode.removeChild(k);c.loadedCssFiles=[];for(b=0;b<f.length;b++)a=f[b].toString(),1==d["dojo-bidi"]&&-1==a.indexOf("_rtl")&&(k=a.substr(a.lastIndexOf("/")+1),-1!="android.css blackberry.css custom.css iphone.css holodark.css base.css Carousel.css ComboBox.css IconContainer.css IconMenu.css ListItem.css RoundRectCategory.css SpinWheel.css Switch.css TabBar.css ToggleButton.css ToolBarButton.css ProgressIndicator.css Accordion.css GridLayout.css FormLayout.css".indexOf(k)&&
this.loadCssFile(a.replace(".css","_rtl.css"))),this.loadCssFile(f[b].toString());e&&c.loadCompatCssFiles&&c.loadCompatCssFiles();break}}}};l.loadDeviceTheme();return window.deviceTheme=c.deviceTheme=l});