This file is indexed.

/usr/share/javascript/dojox/mobile.js is in libjs-dojo-dojox 1.7.2+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
require({cache:{"dojox/main":function(){define(["dojo/_base/kernel"],function(_1){return _1.dojox;});},"dojox/mobile/_base":function(){define(["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Switch","./ToolBarButton","./ProgressIndicator"],function(_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){return _2;});},"dojox/mobile/common":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dijit/registry","./sniff","./uacss"],function(_e,_f,_10,_11,_12,win,_13,_14,_15,_16,_17,has,_18){var dm=_12.getObject("dojox.mobile",true);dm.getScreenSize=function(){return {h:win.global.innerHeight||win.doc.documentElement.clientHeight,w:win.global.innerWidth||win.doc.documentElement.clientWidth};};dm.updateOrient=function(){var dim=dm.getScreenSize();_13.replace(win.doc.documentElement,dim.h>dim.w?"dj_portrait":"dj_landscape",dim.h>dim.w?"dj_landscape":"dj_portrait");};dm.updateOrient();dm.tabletSize=500;dm.detectScreenSize=function(_19){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var _1a,to;if(sz>=dm.tabletSize&&(_19||(!this._sz||this._sz<dm.tabletSize))){_1a="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_19||(!this._sz||this._sz>=dm.tabletSize))){_1a="tablet";to="phone";}}if(to){_13.replace(win.doc.documentElement,"dj_"+to,"dj_"+_1a);_11.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_1b,_1c){if(_1b&&_1c){var arr=_f.map(_1c.split(/[ ,]/),function(_1d){return _1d-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_15.set(_1b,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_1b.parentNode?_15.get(_1b,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_10["mblHideAddressBarWait"])==="number"?_10["mblHideAddressBarWait"]:1500;dm.hide_1=function(_1e){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_1e){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_1e||dm._h===h&&h!==win.body().style.minHeight){win.body().style.minHeight=h;dm.resizeAll();}}dm._h=h;};dm.hide_fs=function(){var t=win.body().style.minHeight;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";scrollTo(0,1);setTimeout(function(){dm.hide_1(1);dm._hiding=false;},1000);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._h=0;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";setTimeout(dm.hide_1,0);setTimeout(dm.hide_1,200);setTimeout(dm.hide_1,800);setTimeout(dm.hide_fs,dm.hideAddressBarWait);};dm.resizeAll=function(evt,_1f){if(dm.disableResizeAll){return;}_11.publish("/dojox/mobile/resizeAll",[evt,_1f]);dm.updateOrient();dm.detectScreenSize();var _20=function(w){var _21=w.getParent&&w.getParent();return !!((!_21||!_21.resize)&&w.resize);};var _22=function(w){_f.forEach(w.getChildren(),function(_23){if(_20(_23)){_23.resize();}_22(_23);});};if(_1f){if(_1f.resize){_1f.resize();}_22(_1f);}else{_f.forEach(_f.filter(_17.toArray(),_20),function(w){w.resize();});}};dm.openWindow=function(url,_24){win.global.open(url,_24||"_blank");};dm.createDomButton=function(_25,_26,_27){if(!dm._domButtons){if(has("webkit")){var _28=function(_29,dic){var i,j;if(!_29){var dic={};var ss=_e.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_28(ss[i],dic);}return dic;}var _2a=_29.cssRules||[];for(i=0;i<_2a.length;i++){var _2b=_2a[i];if(_2b.href&&_2b.styleSheet){_28(_2b.styleSheet,dic);}else{if(_2b.selectorText){var _2c=_2b.selectorText.split(/,/);for(j=0;j<_2c.length;j++){var sel=_2c[j];var n=sel.split(/>/).length-1;if(sel.match(/(mblDomButton\w+)/)){var cls=RegExp.$1;if(!dic[cls]||n>dic[cls]){dic[cls]=n;}}}}}}};dm._domButtons=_28();}else{dm._domButtons={};}}var s=_25.className;var _2d=_27||_25;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _2e=RegExp.$1;var _2f=4;if(s.match(/(mblDomButton\w+_(\d+))/)){_2f=RegExp.$2-0;}else{if(dm._domButtons[_2e]!==undefined){_2f=dm._domButtons[_2e];}}var _30=null;if(has("bb")&&_10["mblBBBoxShadowWorkaround"]!==false){_30={style:"-webkit-box-shadow:none"};}for(var i=0,p=_2d;i<_2f;i++){p=p.firstChild||_14.create("DIV",_30,p);}if(_27){setTimeout(function(){_13.remove(_25,_2e);},0);_13.add(_27,_2e);}}else{if(s.indexOf(".")!==-1){_14.create("IMG",{src:s},_2d);}else{return null;}}_13.add(_2d,"mblDomButton");if(_10["mblAndroidWorkaround"]!==false&&has("android")>=2.2){_15.set(_2d,"webkitTransform","translate3d(0,0,0)");}!!_26&&_15.set(_2d,_26);return _2d;};dm.createIcon=function(_31,_32,_33,_34,_35){if(_31&&_31.indexOf("mblDomButton")===0){if(_33&&_33.className.match(/(mblDomButton\w+)/)){_13.remove(_33,RegExp.$1);}else{_33=_14.create("DIV");}_33.title=_34;_13.add(_33,_31);dm.createDomButton(_33);}else{if(_31&&_31!=="none"){if(!_33||_33.nodeName!=="IMG"){_33=_14.create("IMG",{alt:_34});}_33.src=(_31||"").replace("${theme}",dm.currentTheme);dm.setupIcon(_33,_32);if(_35&&_32){var arr=_32.split(/[ ,]/);_15.set(_35,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_35){_35.appendChild(_33);}return _33;};dm._iw=_10["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_14.create("div");}if(_10.parseOnLoad){_16(90,function(){var _36=win.body().getElementsByTagName("*");var i,len,s;len=_36.length;for(i=0;i<len;i++){s=_36[i].getAttribute("dojoType");if(s){if(_36[i].parentNode.getAttribute("lazy")=="true"){_36[i].setAttribute("__dojoType",s);_36[i].removeAttribute("dojoType");}}}});}_16(function(){dm.detectScreenSize(true);if(_10["mblApplyPageStyles"]!==false){_13.add(win.doc.documentElement,"mobile");}if(has("chrome")){_13.add(win.doc.documentElement,"dj_chrome");}if(_10["mblAndroidWorkaround"]!==false&&has("android")>=2.2){if(_10["mblAndroidWorkaroundButtonStyle"]!==false){_14.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("android")<3){_15.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_11.connect(null,"onfocus",null,function(e){_15.set(win.doc.documentElement,"webkitTransform","");});_11.connect(null,"onblur",null,function(e){_15.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_10["mblAndroid3Workaround"]!==false){_15.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_10["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_10["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_10["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_11.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _37=win.body().getElementsByTagName("*");var i,len=_37.length,s;for(i=0;i<len;i++){s=_37[i].getAttribute("__dojoType");if(s){_37[i].setAttribute("dojoType",s);_37[i].removeAttribute("__dojoType");}}if(_e.hash){var _38=function(_39){if(!_39){return [];}var arr=_17.findWidgets(_39);var _3a=arr;for(var i=0;i<_3a.length;i++){arr=arr.concat(_38(_3a[i].containerNode));}return arr;};_11.subscribe("/dojo/hashchange",null,function(_3b){var _3c=dm.currentView;if(!_3c){return;}var _3d=dm._params;if(!_3d){var _3e=_3b?_3b:dm._defaultView.id;var _3f=_38(_3c.domNode);var dir=1,_40="slide";for(i=0;i<_3f.length;i++){var w=_3f[i];if("#"+_3e==w.moveTo){_40=w.transition;dir=(w instanceof dm.Heading)?-1:1;break;}}_3d=[_3e,dir,_40];}_3c.performTransition.apply(_3c,_3d);dm._params=null;});}win.body().style.visibility="visible";});_17.getEnclosingWidget=function(_41){while(_41){var id=_41.getAttribute&&_41.getAttribute("widgetId");if(id){return _17.byId(id);}_41=_41._parentNode||_41.parentNode;}return null;};return dm;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_42,has,_43,win,_44){var _45={},_46={};var _47={length:0,add:function(_48){if(_46[_48.id]){throw new Error("Tried to register widget with id=="+_48.id+" but that id is already registered");}_46[_48.id]=_48;this.length++;},remove:function(id){if(_46[id]){delete _46[id];this.length--;}},byId:function(id){return typeof id=="string"?_46[id]:id;},byNode:function(_49){return _46[_49.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _46){ar.push(_46[id]);}return ar;},getUniqueId:function(_4a){var id;do{id=_4a+"_"+(_4a in _45?++_45[_4a]:_45[_4a]=0);}while(_46[id]);return _44._scopeName=="dijit"?id:_44._scopeName+"_"+id;},findWidgets:function(_4b){var _4c=[];function _4d(_4e){for(var _4f=_4e.firstChild;_4f;_4f=_4f.nextSibling){if(_4f.nodeType==1){var _50=_4f.getAttribute("widgetId");if(_50){var _51=_46[_50];if(_51){_4c.push(_51);}}else{_4d(_4f);}}}};_4d(_4b);return _4c;},_destroyAll:function(){_44._curFocus=null;_44._prevFocus=null;_44._activeStack=[];_42.forEach(_47.findWidgets(win.body()),function(_52){if(!_52._destroyed){if(_52.destroyRecursive){_52.destroyRecursive();}else{if(_52.destroy){_52.destroy();}}}});},getEnclosingWidget:function(_53){while(_53){var id=_53.getAttribute&&_53.getAttribute("widgetId");if(id){return _46[id];}_53=_53.parentNode;}return null;},_hash:_46};if(has("ie")){_43.addOnWindowUnload(function(){_47._destroyAll();});}_44.registry=_47;return _47;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(_54){return _54.dijit;});},"dojox/mobile/sniff":function(){define(["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","dojox/mobile/sniff"],function(_55,_56,win,has){win.doc.documentElement.className+=_56.trim([has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return _55;});},"dojox/mobile/View":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./transition"],function(_57,_58,_59,_5a,_5b,_5c,has,win,_5d,dom,_5e,_5f,_60,_61,_62,_63,_64,_65,_66){var dm=_5c.getObject("dojox.mobile",true);return _5b("dojox.mobile.View",[_64,_63,_62],{selected:false,keepScrollPos:true,constructor:function(_67,_68){if(_68){dom.byId(_68).style.visibility="hidden";}this._aw=has("android")>=2.2&&has("android")<3;},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className="mblView";this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_59["mblCSS3Transition"]){this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}var id=location.href.match(/#(\w+)([^\w=]|$)/)?RegExp.$1:null;this._visible=this.selected&&!id||this.id==id;if(this.selected){dm._defaultView=this;}},startup:function(){if(this._started){return;}var _69=[];var _6a=this.domNode.parentNode.childNodes;var _6b=false;for(var i=0;i<_6a.length;i++){var c=_6a[i];if(c.nodeType===1&&_5e.contains(c,"mblView")){_69.push(c);_6b=_6b||_61.byNode(c)._visible;}}var _6c=this._visible;if(_69.length===1||(!_6b&&_69[0]===this.domNode)){_6c=true;}var _6d=this;setTimeout(function(){if(!_6c){_6d.domNode.style.display="none";}else{dm.currentView=_6d;_6d.onStartView();_5a.publish("/dojox/mobile/startView",[_6d]);}if(_6d.domNode.style.visibility!="visible"){_6d.domNode.style.visibility="visible";}var _6e=_6d.getParent&&_6d.getParent();if(!_6e||!_6e.resize){_6d.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_58.forEach(this.getChildren(),function(_6f){if(_6f.resize){_6f.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_70,dir,_71,_72,_73){},onAfterTransitionIn:function(_74,dir,_75,_76,_77){},onBeforeTransitionOut:function(_78,dir,_79,_7a,_7b){},onAfterTransitionOut:function(_7c,dir,_7d,_7e,_7f){},_saveState:function(_80,dir,_81,_82,_83){this._context=_82;this._method=_83;if(_81=="none"){_81=null;}this._moveTo=_80;this._dir=dir;this._transition=_81;this._arguments=_5c._toArray(arguments);this._args=[];if(_82||_83){for(var i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},_fixViewState:function(_84){var _85=this.domNode.parentNode.childNodes;for(var i=0;i<_85.length;i++){var n=_85[i];if(n.nodeType===1&&_5e.contains(n,"mblView")){n.className="mblView";}}_84.className="mblView";},convertToId:function(_86){if(typeof (_86)=="string"){_86.match(/^#?([^&?]+)/);return RegExp.$1;}return _86;},performTransition:function(_87,dir,_88,_89,_8a){if(_87==="#"){return;}if(_57.hash){if(typeof (_87)=="string"&&_87.charAt(0)=="#"&&!dm._params){dm._params=[];for(var i=0;i<arguments.length;i++){dm._params.push(arguments[i]);}_57.hash(_87);return;}}this._saveState.apply(this,arguments);var _8b;if(_87){_8b=this.convertToId(_87);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("DIV");win.body().appendChild(this._dummyNode);}_8b=this._dummyNode;}var _8c=this.domNode;var _8d=_8c.offsetTop;_8b=this.toNode=dom.byId(_8b);if(!_8b){return;}_8b.style.visibility=this._aw?"visible":"hidden";_8b.style.display="";this._fixViewState(_8b);var _8e=_61.byNode(_8b);if(_8e){if(_59["mblAlwaysResizeOnTransition"]||!_8e._resized){dm.resizeAll(null,_8e);_8e._resized=true;}if(_88&&_88!="none"){_8e.containerNode.style.paddingTop=_8d+"px";}_8e.movedFrom=_8c.id;}this.onBeforeTransitionOut.apply(this,arguments);_5a.publish("/dojox/mobile/beforeTransitionOut",[this].concat(_5c._toArray(arguments)));if(_8e){if(this.keepScrollPos&&!this.getParent()){var _8f=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_8c._scrollTop=_8f;var _90=(dir==1)?0:(_8b._scrollTop||0);_8b.style.top="0px";if(_8f>1||_90!==0){_8c.style.top=_90-_8f+"px";if(_59["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_90||1));},0);}}}else{_8b.style.top="0px";}_8e.onBeforeTransitionIn.apply(_8e,arguments);_5a.publish("/dojox/mobile/beforeTransitionIn",[_8e].concat(_5c._toArray(arguments)));}if(!this._aw){_8b.style.display="none";_8b.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_60.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_60.get(win.body(),"background-color"),zIndex:-10000,display:""});_60.set(_8b,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(_5c.hitch(this,function(){this._doTransition(_8c,_8b,_88,dir);}),80);}else{this._doTransition(_8c,_8b,_88,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_91,_92,_93,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_60.set(_92,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_92.style.display="";}}if(!_93||_93=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_59["mblCSS3Transition"]){_5d.when(_66,_5c.hitch(this,function(_94){var _95=_60.get(_92,"position");_60.set(_92,"position","absolute");_5d.when(_94(_91,_92,{transition:_93,reverse:(dir===-1)?true:false}),_5c.hitch(this,function(){_60.set(_92,"position",_95);this.invokeCallback();}));}));}else{var s=this._toCls(_93);_5e.add(_91,s+" mblOut"+rev);_5e.add(_92,s+" mblIn"+rev);setTimeout(function(){_5e.add(_91,"mblTransition");_5e.add(_92,"mblTransition");},100);var _96="50% 50%";var _97="50% 50%";var _98,_99,_9a;if(_93.indexOf("swirl")!=-1||_93.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_98=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_98=-_5f.position(_91,true).y;}_9a=win.global.innerHeight/2+_98;_96="50% "+_9a+"px";_97="50% "+_9a+"px";}else{if(_93.indexOf("scale")!=-1){var _9b=_5f.position(_91,true);_99=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_9b.x;if(this.keepScrollPos&&!this.getParent()){_98=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_98=-_9b.y;}_9a=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_98;_96=_99+"px "+_9a+"px";_97=_99+"px "+_9a+"px";}}_60.set(_91,{webkitTransformOrigin:_96});_60.set(_92,{webkitTransformOrigin:_97});}}dm.currentView=_61.byNode(_92);},onAnimationStart:function(e){},onAnimationEnd:function(e){var _9c=e.animationName||e.target.className;if(_9c.indexOf("Out")===-1&&_9c.indexOf("In")===-1&&_9c.indexOf("Shrink")===-1){return;}var _9d=false;if(_5e.contains(this.domNode,"mblOut")){_9d=true;this.domNode.style.display="none";_5e.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_60.set(this.domNode,{webkitTransformOrigin:""});if(_9c.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_5e.remove(li,"mblCloseContent");}if(_9d){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_5a.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _9e=_61.byNode(this.toNode);if(_9e){_9e.onAfterTransitionIn.apply(_9e,this._arguments);_5a.publish("/dojox/mobile/afterTransitionIn",[_9e].concat(this._arguments));_9e.movedFrom=undefined;}var c=this._context,m=this._method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._args);}else{m.apply(c,this._args);}},getShowingView:function(){var _9f=this.domNode.parentNode.childNodes;for(var i=0;i<_9f.length;i++){var n=_9f[i];if(n.nodeType===1&&_5e.contains(n,"mblView")&&_60.get(n,"display")!=="none"){return _61.byNode(n);}}return null;},show:function(){var _a0=this.getShowingView();if(_a0){_a0.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_a1,_a2){return _a1("dijit._Contained",null,{_getSibling:function(_a3){var _a4=this.domNode;do{_a4=_a4[_a3+"Sibling"];}while(_a4&&_a4.nodeType!=1);return _a4&&_a2.byNode(_a4);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_a5,_a6,_a7,_a8){return _a6("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_a9,_aa){var _ab=this.containerNode;if(_aa&&typeof _aa=="number"){var _ac=this.getChildren();if(_ac&&_ac.length>=_aa){_ab=_ac[_aa-1].domNode;_aa="after";}}_a7.place(_a9.domNode,_ab,_aa);if(this._started&&!_a9._started){_a9.startup();}},removeChild:function(_ad){if(typeof _ad=="number"){_ad=this.getChildren()[_ad];}if(_ad){var _ae=_ad.domNode;if(_ae&&_ae.parentNode){_ae.parentNode.removeChild(_ae);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_af,dir){var _b0=_af.domNode,_b1=(dir>0?"nextSibling":"previousSibling");do{_b0=_b0[_b1];}while(_b0&&(_b0.nodeType!=1||!_a8.byNode(_b0)));return _b0&&_a8.byNode(_b0);},getIndexOfChild:function(_b2){return _a5.indexOf(this.getChildren(),_b2);}});});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_b3,_b4,_b5,_b6,_b7,_b8,dom,_b9,_ba,_bb,_bc,_bd,_be,_bf,on,_c0,_c1,_c2,win,_c3){if(!_be.isAsync){_c0(0,function(){var _c4=["dijit/_base/manager"];_b3(_c4);});}var _c5={};function _c6(obj){var ret={};for(var _c7 in obj){ret[_c7.toLowerCase()]=true;}return ret;};function _c8(_c9){return function(val){_b9[val?"set":"remove"](this.domNode,_c9,val);this._set(_c9,val);};};return _b8("dijit._WidgetBase",_c1,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_c8("lang"),dir:"",_setDirAttr:_c8("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_b6.blankGif||_b3.toUrl("dojo/resources/blank.gif"),postscript:function(_ca,_cb){this.create(_ca,_cb);},create:function(_cc,_cd){this.srcNodeRef=dom.byId(_cd);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_cc){this.params=_cc;_bf.mixin(this,_cc);}this.postMixInProperties();if(!this.id){this.id=_c3.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_c3.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _ce=this.srcNodeRef;if(_ce&&_ce.parentNode&&this.domNode!==_ce){_ce.parentNode.replaceChild(this.domNode,_ce);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _cf=this.constructor,_d0=_cf._setterAttrs;if(!_d0){_d0=(_cf._setterAttrs=[]);for(var _d1 in this.attributeMap){_d0.push(_d1);}var _d2=_cf.prototype;for(var _d3 in _d2){if(_d3 in this.attributeMap){continue;}var _d4="_set"+_d3.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_d4 in _d2){_d0.push(_d3);}}}_b4.forEach(_d0,function(_d5){if(this.params&&_d5 in this.params){}else{if(this[_d5]){this.set(_d5,this[_d5]);}}},this);for(var _d6 in this.params){this.set(_d6,this[_d6]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_bb.create("div");}if(this.baseClass){var _d7=this.baseClass.split(" ");if(!this.isLeftToRight()){_d7=_d7.concat(_b4.map(_d7,function(_d8){return _d8+"Rtl";}));}_ba.add(this.domNode,_d7);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_b4.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_bf.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_d9){this._beingDestroyed=true;this.destroyDescendants(_d9);this.destroy(_d9);},destroy:function(_da){this._beingDestroyed=true;this.uninitialize();var c;while(c=this._connects.pop()){c.remove();}var w;while(w=this._supportingWidgets.pop()){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_da);_c3.remove(this.id);this._destroyed=true;},destroyRendering:function(_db){if(this.bgIframe){this.bgIframe.destroy(_db);delete this.bgIframe;}if(this.domNode){if(_db){_b9.remove(this.domNode,"widgetId");}else{_bb.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_db){_bb.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_dc){_b4.forEach(this.getChildren(),function(_dd){if(_dd.destroyRecursive){_dd.destroyRecursive(_dc);}});},uninitialize:function(){return false;},_setStyleAttr:function(_de){var _df=this.domNode;if(_bf.isObject(_de)){_bd.set(_df,_de);}else{if(_df.style.cssText){_df.style.cssText+="; "+_de;}else{_df.style.cssText=_de;}}this._set("style",_de);},_attrToDom:function(_e0,_e1,_e2){_e2=arguments.length>=3?_e2:this.attributeMap[_e0];_b4.forEach(_bf.isArray(_e2)?_e2:[_e2],function(_e3){var _e4=this[_e3.node||_e3||"domNode"];var _e5=_e3.type||"attribute";switch(_e5){case "attribute":if(_bf.isFunction(_e1)){_e1=_bf.hitch(this,_e1);}var _e6=_e3.attribute?_e3.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_e0)?_e0.toLowerCase():_e0);_b9.set(_e4,_e6,_e1);break;case "innerText":_e4.innerHTML="";_e4.appendChild(win.doc.createTextNode(_e1));break;case "innerHTML":_e4.innerHTML=_e1;break;case "class":_ba.replace(_e4,_e1,this[_e0]);break;}},this);},get:function(_e7){var _e8=this._getAttrNames(_e7);return this[_e8.g]?this[_e8.g]():this[_e7];},set:function(_e9,_ea){if(typeof _e9==="object"){for(var x in _e9){this.set(x,_e9[x]);}return this;}var _eb=this._getAttrNames(_e9),_ec=this[_eb.s];if(_bf.isFunction(_ec)){var _ed=_ec.apply(this,Array.prototype.slice.call(arguments,1));}else{var _ee=this.focusNode&&!_bf.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_ee].tagName,_ef=_c5[tag]||(_c5[tag]=_c6(this[_ee])),map=_e9 in this.attributeMap?this.attributeMap[_e9]:_eb.s in this?this[_eb.s]:((_eb.l in _ef&&typeof _ea!="function")||/^aria-|^data-|^role$/.test(_e9))?_ee:null;if(map!=null){this._attrToDom(_e9,_ea,map);}this._set(_e9,_ea);}return _ed||this;},_attrPairNames:{},_getAttrNames:function(_f0){var apn=this._attrPairNames;if(apn[_f0]){return apn[_f0];}var uc=_f0.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_f0]={n:_f0+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_f1,_f2){var _f3=this[_f1];this[_f1]=_f2;if(this._watchCallbacks&&this._created&&_f2!==_f3){this._watchCallbacks(_f1,_f3,_f2);}},on:function(_f4,_f5){return _b5.after(this,this._onMap(_f4),_f5,true);},_onMap:function(_f6){var _f7=this.constructor,map=_f7._onMap;if(!map){map=(_f7._onMap={});for(var _f8 in _f7.prototype){if(/^on/.test(_f8)){map[_f8.replace(/^on/,"").toLowerCase()]=_f8;}}}return map[_f6.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_c3.findWidgets(this.containerNode):[];},getParent:function(){return _c3.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_f9,_fa){var _fb=_b7.connect(obj,_f9,this,_fa);this._connects.push(_fb);return _fb;},disconnect:function(_fc){var i=_b4.indexOf(this._connects,_fc);if(i!=-1){_fc.remove();this._connects.splice(i,1);}},subscribe:function(t,_fd){var _fe=_c2.subscribe(t,_bf.hitch(this,_fd));this._connects.push(_fe);return _fe;},unsubscribe:function(_ff){this.disconnect(_ff);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_bc.isBodyLtr();},isFocusable:function(){return this.focus&&(_bd.get(this.domNode,"display")!="none");},placeAt:function(_100,_101){if(_100.declaredClass&&_100.addChild){_100.addChild(this,_101);}else{_bb.place(this.domNode,_100,_101);}return this;},getTextDir:function(text,_102){return _102;},applyTextDir:function(){}});});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(dojo,_103,lang,_104){return dojo.declare("dojo.Stateful",null,{postscript:function(_105){if(_105){lang.mixin(this,_105);}},get:function(name){return this[name];},set:function(name,_106){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _107=this[name];this[name]=_106;if(this._watchCallbacks){this._watchCallbacks(name,_107,_106);}return this;},watch:function(name,_108){var _109=this._watchCallbacks;if(!_109){var self=this;_109=this._watchCallbacks=function(name,_10a,_10b,_10c){var _10d=function(_10e){if(_10e){_10e=_10e.slice();for(var i=0,l=_10e.length;i<l;i++){try{_10e[i].call(self,name,_10a,_10b);}catch(e){console.error(e);}}}};_10d(_109["_"+name]);if(!_10c){_10d(_109["*"]);}};}if(!_108&&typeof name==="function"){_108=name;name="*";}else{name="_"+name;}var _10f=_109[name];if(typeof _10f!=="object"){_10f=_109[name]=[];}_10f.push(_108);return {unwatch:function(){_10f.splice(_104.indexOf(_10f,_108),1);}};}});});},"dojox/mobile/ViewController":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent"],function(dojo,_110,_111,_112,lang,win,dom,_113,_114,on,_115,_116,_117,_118){var dm=lang.getObject("dojox.mobile",true);var _119=_112("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_115(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findCurrentView:function(_11a,src){if(_11a){var w=_116.byId(_11a);if(w&&w.getShowingView){return w.getShowingView();}}if(dm.currentView){return dm.currentView;}w=src;while(true){w=w.getParent();if(!w){return null;}if(_113.contains(w.domNode,"mblView")){break;}}return w;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail||(evt.detail&&!evt.detail.moveTo&&!evt.detail.href&&!evt.detail.url&&!evt.detail.scene)){return;}var w=this.findCurrentView(evt.detail.moveTo,(evt.target&&evt.target.id)?_116.byId(evt.target.id):_116.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_116.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_116.byId(evt.target.id).hrefTarget;if(t){dm.openWindow(evt.detail.href,t);}else{w.performTransition(null,evt.detail.transitionDir,evt.detail.transition,evt.target,function(){location.href=evt.detail.href;});}return;}else{if(evt.detail.scene){_111.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _11b=evt.detail.moveTo;if(evt.detail.url){var id;if(dm._viewMap&&dm._viewMap[evt.detail.url]){id=dm._viewMap[evt.detail.url];}else{var text=this._text;if(!text){if(_116.byId(evt.target.id).sync){dojo.xhrGet({url:evt.detail.url,sync:true,load:function(_11c){text=lang.trim(_11c);}});}else{var s="dojo/_base/xhr";require([s],lang.hitch(this,function(xhr){var prog=_117.getInstance();win.body().appendChild(prog.domNode);prog.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(lang.hitch(this,function(_11d,_11e){prog.stop();if(_11d){this._text=_11d;new _118(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_11b,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_11f){prog.stop();});}));return;}}this._text=null;id=this._parse(text,_116.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_11b=id;w=this.findCurrentView(_11b,_116.byId(evt.target.id))||w;}w.performTransition(_11b,evt.detail.transitionDir,evt.detail.transition,null,null);},_parse:function(text,id){var _120,view,i,j,len;var _121=this.findCurrentView();var _122=_116.byId(id)&&_116.byId(id).containerNode||dom.byId(id)||_121&&_121.domNode.parentNode||win.body();var _123=null;for(j=_122.childNodes.length-1;j>=0;j--){var c=_122.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_123=c;}break;}}if(text.charAt(0)==="<"){_120=_114.create("DIV",{innerHTML:text});for(i=0;i<_120.childNodes.length;i++){var n=_120.childNodes[i];if(n.nodeType===1){view=n;break;}}if(!view){return;}view.style.visibility="hidden";_122.insertBefore(_120,_123);var ws=dojo.parser.parse(_120);_110.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_120.childNodes.length;i<len;i++){_122.insertBefore(_120.firstChild,_123);}_122.removeChild(_120);_116.byNode(view)._visible=true;}else{if(text.charAt(0)==="{"){_120=_114.create("DIV");_122.insertBefore(_120,_123);this._ws=[];view=this._instantiate(eval("("+text+")"),_120);for(i=0;i<this._ws.length;i++){var w=this._ws[i];w.startup&&!w._started&&(!w.getParent||!w.getParent())&&w.startup();}this._ws=null;}}view.style.display="none";view.style.visibility="visible";return dojo.hash?"#"+view.id:view.id;},_instantiate:function(obj,node,_124){var _125;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=lang.getObject(key);if(!cls){continue;}var _126={};var _127=cls.prototype;var objs=lang.isArray(obj[key])?obj[key]:[obj[key]];for(var i=0;i<objs.length;i++){for(var prop in objs[i]){if(prop.charAt(0)=="@"){var val=objs[i][prop];prop=prop.substring(1);if(typeof _127[prop]=="string"){_126[prop]=val;}else{if(typeof _127[prop]=="number"){_126[prop]=val-0;}else{if(typeof _127[prop]=="boolean"){_126[prop]=(val!="false");}else{if(typeof _127[prop]=="object"){_126[prop]=eval("("+val+")");}}}}}}_125=new cls(_126,node);if(node){_125._visible=true;this._ws.push(_125);}if(_124&&_124.addChild){_124.addChild(_125);}this._instantiate(objs[i],null,_125);}}return _125&&_125.domNode;}});new _119();return _119;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/has"],function(_128,_129,_12a,_12b,has){var cls=_129("dojox.mobile.ProgressIndicator",null,{interval:100,colors:["#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#B8B9B8","#AEAFAE","#A4A5A4","#9A9A9A","#8E8E8E","#838383"],constructor:function(){this._bars=[];this.domNode=_12a.create("DIV");this.domNode.className="mblProgContainer";if(_128["mblAndroidWorkaround"]!==false&&has("android")>=2.2&&has("android")<3){_12b.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_12a.create("DIV",null,this.domNode);for(var i=0;i<this.colors.length;i++){var div=_12a.create("DIV",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.domNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.domNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _12c=this;var n=this.colors.length;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_12c.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;_12c._bars[i].style.backgroundColor=c[idx];}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_12a.create("IMG",{src:file},this.domNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.domNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}}});cls._instance=null;cls.getInstance=function(){if(!cls._instance){cls._instance=new cls();}return cls._instance;};return cls;});},"dojox/mobile/TransitionEvent":function(){define(["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_12d,_12e,lang,on,_12f){return _12d("dojox.mobile.TransitionEvent",null,{constructor:function(_130,_131,_132){this.transitionOptions=_131;this.target=_130;this.triggerEvent=_132||null;},dispatch:function(){var opts={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",opts);if(evt){_12e.when(_12f,lang.hitch(this,function(_133){_12e.when(_133.call(this,evt),lang.hitch(this,function(_134){this.endTransition(_134);}));}));}},endTransition:function(_135){on.emit(this.target,"endTransition",{detail:_135.transitionOptions});}});});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_136,_137){if(_137["mblCSS3Transition"]){var _138=new _136();require([_137["mblCSS3Transition"]],function(_139){_138.resolve(_139);});return _138;}return null;});},"dojox/mobile/Heading":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./View"],function(_13a,_13b,_13c,lang,win,_13d,_13e,_13f,_140,_141,_142,_143,View){var dm=lang.getObject("dojox.mobile",true);return _13c("dojox.mobile.Heading",[_143,_142,_141],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",backProp:{className:"mblArrowButton"},tag:"H1",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.domNode.className="mblHeading";if(!this.label){_13a.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_13e.create("SPAN",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_13e.create("SPAN",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_13e.create("DIV",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);},startup:function(){if(this._started){return;}var _144=this.getParent&&this.getParent();if(!_144||!_144.resize){var _145=this;setTimeout(function(){_145.resize();},0);}this.inherited(arguments);},resize:function(){if(this._btn){this._btn.style.width=this._body.offsetWidth+this._head.offsetWidth+"px";}if(this.labelNode){var _146,_147;var _148=this.containerNode.childNodes;for(var i=_148.length-1;i>=0;i--){var c=_148[i];if(c.nodeType===1){if(!_147&&_13d.contains(c,"mblToolBarButton")&&_13f.get(c,"float")==="right"){_147=c;}if(!_146&&(_13d.contains(c,"mblToolBarButton")&&_13f.get(c,"float")==="left"||c===this._btn)){_146=c;}}}if(!this.labelNodeLen&&this.label){this.labelNode.style.display="inline";this.labelNodeLen=this.labelNode.offsetWidth;this.labelNode.style.display="";}var bw=this.domNode.offsetWidth;var rw=_147?bw-_147.offsetLeft+5:0;var lw=_146?_146.offsetLeft+_146.offsetWidth+5:0;var tw=this.labelNodeLen||0;_13d[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_13a.forEach(this.getChildren(),function(_149){if(_149.resize){_149.resize();}});},_setBackAttr:function(back){if(!back){_13e.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_13e.create("DIV",this.backProp,this.domNode,"first");var head=_13e.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_13e.create("DIV",{className:"mblArrowButtonBody mblArrowButtonText"},btn);this._body=body;this._head=head;this._btn=btn;this.backBtnNode=btn;this.connect(body,"onclick","onClick");}this.back=back;this._body.innerHTML=this._cv?this._cv(this.back):this.back;}this.resize();},_setLabelAttr:function(_14a){this.label=_14a;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_14a):_14a;},findCurrentView:function(){var w=this;while(true){w=w.getParent();if(!w){return null;}if(w instanceof View){break;}}return w;},onClick:function(e){var h1=this.domNode;_13d.add(h1,"mblArrowButtonSelected");setTimeout(function(){_13d.remove(h1,"mblArrowButtonSelected");},1000);if(this.back&&!this.moveTo&&!this.href&&history){history.back();return;}var view=this.findCurrentView();if(view){view.clickedPosX=e.clientX;view.clickedPosY=e.clientY;}this.goTo(this.moveTo,this.href);},goTo:function(_14b,href){var view=this.findCurrentView();if(!view){return;}if(href){view.performTransition(null,-1,this.transition,this,function(){location.href=href;});}else{if(dm.app&&dm.app.STAGE_CONTROLLER_ACTIVE){_13b.publish("/dojox/mobile/app/goback");}else{var node=_140.byId(view.convertToId(_14b));if(node){var _14c=node.getParent();while(view){var _14d=view.getParent();if(_14c===_14d){break;}view=_14d;}}if(view){view.performTransition(_14b,-1,this.transition);}}}}});});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_14e,_14f,win,_150,_151,_152){return _14f("dojox.mobile.RoundRect",[_152,_151,_150],{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";},resize:function(){_14e.forEach(this.getChildren(),function(_153){if(_153.resize){_153.resize();}});}});});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_WidgetBase"],function(_154,win,_155,_156){return _154("dojox.mobile.RoundRectCategory",[_156,_155],{label:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("H2");this.domNode.className="mblRoundRectCategory";if(!this.label){this.label=this.domNode.innerHTML;}},_setLabelAttr:function(_157){this.label=_157;this.domNode.innerHTML=this._cv?this._cv(_157):_157;}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define(["dojo/_base/declare","./RoundRectCategory"],function(_158,_159){return _158("dojox.mobile.EdgeToEdgeCategory",_159,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/RoundRectList":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_15a,_15b,win,_15c,_15d,_15e){return _15b("dojox.mobile.RoundRectList",[_15e,_15d,_15c],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("UL");this.domNode.className="mblRoundRectList";},resize:function(){_15a.forEach(this.getChildren(),function(_15f){if(_15f.resize){_15f.resize();}});},onCheckStateChanged:function(_160,_161){},_setStatefulAttr:function(_162){this.stateful=_162;_15a.forEach(this.getChildren(),function(_163){_163.setArrow&&_163.setArrow();});},deselectItem:function(item){item.deselect();},deselectAll:function(){_15a.forEach(this.getChildren(),function(_164){_164.deselect&&_164.deselect();});},selectItem:function(item){item.select();}});});},"dojox/mobile/EdgeToEdgeList":function(){define(["dojo/_base/declare","./RoundRectList"],function(_165,_166){return _165("dojox.mobile.EdgeToEdgeList",_166,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/ListItem":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_167,_168,_169,lang,_16a,_16b,has,_16c,_16d,_16e){return _169("dojox.mobile.ListItem",_16d,{rightText:"",rightIcon:"",rightIcon2:"",anchorLabel:false,noArrow:false,selected:false,checked:false,arrowClass:"mblDomButtonArrow",checkClass:"mblDomButtonCheck",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",btnClass:"",btnClass2:"",tag:"li",postMixInProperties:function(){if(this.btnClass){this.rightIcon=this.btnClass;}this._setBtnClassAttr=this._setRightIconAttr;this._setBtnClass2Attr=this._setRightIcon2Attr;},buildRendering:function(){this.domNode=this.srcNodeRef||_16b.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_16b.create("DIV");box.className="mblListItemTextBox";if(this.anchorLabel){box.style.cursor="pointer";}var r=this.srcNodeRef;if(r&&!this.label){this.label="";for(var i=0,len=r.childNodes.length;i<len;i++){var n=r.firstChild;if(n.nodeType===3&&lang.trim(n.nodeValue)!==""){n.nodeValue=this._cv?this._cv(n.nodeValue):n.nodeValue;this.labelNode=_16b.create("SPAN",{className:"mblListItemLabel"});this.labelNode.appendChild(n);n=this.labelNode;}box.appendChild(n);}}if(!this.labelNode){this.labelNode=_16b.create("SPAN",{className:"mblListItemLabel"},box);}if(this.anchorLabel){box.style.display="inline";}var a=this.anchorNode=_16b.create("A");a.className="mblListItemAnchor";this.domNode.appendChild(a);a.appendChild(box);},startup:function(){if(this._started){return;}this.inheritParams();var _16f=this.getParent();if(this.moveTo||this.href||this.url||this.clickable||(_16f&&_16f.select)){this._onClickHandle=this.connect(this.anchorNode,"onclick","onClick");}this.setArrow();if(_16a.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_16a.add(this.domNode,"mblVariableHeight");setTimeout(lang.hitch(this,"layoutVariableHeight"));}this.set("icon",this.icon);if(!this.checked&&this.checkClass.indexOf(",")!==-1){this.set("checked",this.checked);}this.inherited(arguments);},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}},onClick:function(e){var a=e.currentTarget;var li=a.parentNode;if(_16a.contains(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!==this.tag.toUpperCase();p=p.parentNode){if(p.className=="mblListItemTextBox"){_16a.add(p,"mblListItemTextBoxSelected");setTimeout(function(){_16a.remove(p,"mblListItemTextBoxSelected");},has("android")?300:1000);this.onAnchorLabelClicked(e);return;}}}var _170=this.getParent();if(_170.select){if(_170.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_170.select==="multiple"){this.set("checked",!this.checked);}}}this.select();if(this.href&&this.hrefTarget){_16c.openWindow(this.href,this.hrefTarget);return;}var _171;if(this.moveTo||this.href||this.url||this.scene){_171={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_171=this.transitionOptions;}}if(_171){this.setTransitionPos(e);return new _16e(this.domNode,_171,e).dispatch();}},select:function(){var _172=this.getParent();if(_172.stateful){_172.deselectAll();}else{var _173=this;setTimeout(function(){_173.deselect();},has("android")?300:1000);}_16a.add(this.domNode,"mblItemSelected");},deselect:function(){_16a.remove(this.domNode,"mblItemSelected");},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.anchorNode.offsetHeight;if(h===this.anchorNodeHeight){return;}this.anchorNodeHeight=h;_167.forEach([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.iconNode],function(n){if(n){var t=Math.round((h-n.offsetHeight)/2);n.style.marginTop=t+"px";}});},setArrow:function(){if(this.checked){return;}var c="";var _174=this.getParent();if(this.moveTo||this.href||this.url||this.clickable){if(!this.noArrow&&!(_174&&_174.stateful)){c=this.arrowClass;}}if(c){this._setRightIconAttr(c);}},_setIconAttr:function(icon){if(!this.getParent()){return;}this.icon=icon;var a=this.anchorNode;if(!this.iconNode){if(icon){var ref=this.rightIconNode||this.rightIcon2Node||this.rightTextNode||this.box;this.iconNode=_16b.create("DIV",{className:"mblListItemIcon"},ref,"before");}}else{_16b.empty(this.iconNode);}if(icon&&icon!=="none"){_16c.createIcon(icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_16a.add(this.iconNode.firstChild,"mblListItemSpriteIcon");}_16a.remove(a,"mblListItemAnchorNoIcon");}else{_16a.add(a,"mblListItemAnchorNoIcon");}},_setCheckedAttr:function(_175){var _176=this.getParent();if(_176&&_176.select==="single"&&_175){_167.forEach(_176.getChildren(),function(_177){_177.set("checked",false);});}this._setRightIconAttr(this.checkClass);var _178=this.rightIconNode.childNodes;if(_178.length===1){this.rightIconNode.style.display=_175?"":"none";}else{_178[0].style.display=_175?"":"none";_178[1].style.display=!_175?"":"none";}_16a.toggle(this.domNode,"mblListItemChecked",_175);if(_176&&this.checked!==_175){_176.onCheckStateChanged(this,_175);}this.checked=_175;},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_16b.create("DIV",{className:"mblListItemRightText"},this.box,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){if(!this.rightIconNode){var ref=this.rightIcon2Node||this.rightTextNode||this.box;this.rightIconNode=_16b.create("DIV",{className:"mblListItemRightIcon"},ref,"before");}else{_16b.empty(this.rightIconNode);}this.rightIcon=icon;var arr=(icon||"").split(/,/);if(arr.length===1){_16c.createIcon(icon,null,null,this.rightIconTitle,this.rightIconNode);}else{_16c.createIcon(arr[0],null,null,this.rightIconTitle,this.rightIconNode);_16c.createIcon(arr[1],null,null,this.rightIconTitle,this.rightIconNode);}},_setRightIcon2Attr:function(icon){if(!this.rightIcon2Node){var ref=this.rightTextNode||this.box;this.rightIcon2Node=_16b.create("DIV",{className:"mblListItemRightIcon2"},ref,"before");}else{_16b.empty(this.rightIcon2Node);}this.rightIcon2=icon;_16c.createIcon(icon,null,null,this.rightIcon2Title,this.rightIcon2Node);},_setLabelAttr:function(text){this.label=text;this.labelNode.innerHTML=this._cv?this._cv(text):text;}});});},"dojox/mobile/_ItemBase":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_179,_17a,_17b,_17c,_17d,_17e,_17f,_180,View){return _17b("dojox.mobile._ItemBase",[_17f,_17e,_17d],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",transition:"",transitionDir:1,transitionOptions:null,callback:null,sync:true,label:"",toggle:false,_duration:800,inheritParams:function(){var _181=this.getParent();if(_181){if(!this.transition){this.transition=_181.transition;}if(this.icon&&_181.iconBase&&_181.iconBase.charAt(_181.iconBase.length-1)==="/"){this.icon=_181.iconBase+this.icon;}if(!this.icon){this.icon=_181.iconBase;}if(!this.iconPos){this.iconPos=_181.iconPos;}}},select:function(){},deselect:function(){},defaultClickAction:function(e){if(this.toggle){if(this.selected){this.deselect();}else{this.select();}}else{if(!this.selected){this.select();if(!this.selectOne){var _182=this;setTimeout(function(){_182.deselect();},this._duration);}var _183;if(this.moveTo||this.href||this.url||this.scene){_183={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_183=this.transitionOptions;}}if(_183){return new _180(this.domNode,_183,e).dispatch();}}}},getParent:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_17c.getEnclosingWidget(ref.parentNode):null;},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||w instanceof View){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_184,href,url,_185){if(_17a.isDebug){var _186=arguments.callee._ach||(arguments.callee._ach={}),_187=(arguments.callee.caller||"unknown caller").toString();if(!_186[_187]){_179.deprecated(this.declaredClass+"::transitionTo() is deprecated."+_187,"","2.0");_186[_187]=true;}}new _180(this.domNode,{moveTo:_184,href:href,url:url,scene:_185,transition:this.transition,transitionDir:this.transitionDir}).dispatch();}});});},"dojox/mobile/Switch":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_188,_189,_18a,_18b,win,_18c,_18d,_18e,has){return _18a("dojox.mobile.Switch",[_18e,_18d],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",_width:53,buildRendering:function(){this.domNode=win.doc.createElement("DIV");var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];this._swClass=(c||"").replace(/ .*/,"");this.domNode.className="mblSwitch";var _18f=this.name?" name=\""+this.name+"\"":"";this.domNode.innerHTML="<div class=\"mblSwitchInner\">"+"<div class=\"mblSwitchBg mblSwitchBgLeft\">"+"<div class=\"mblSwitchText mblSwitchTextLeft\"></div>"+"</div>"+"<div class=\"mblSwitchBg mblSwitchBgRight\">"+"<div class=\"mblSwitchText mblSwitchTextRight\"></div>"+"</div>"+"<div class=\"mblSwitchKnob\"></div>"+"<input type=\"hidden\""+_18f+"></div>"+"</div>";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];this.input=n.childNodes[3];},postCreate:function(){this.connect(this.domNode,"onclick","onClick");this.connect(this.domNode,has("touch")?"touchstart":"onmousedown","onTouchStart");this._initialValue=this.value;},_changeState:function(_190,anim){var on=(_190==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_18c.add(this.domNode,"mblSwitchAnimation");}_18c.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_18c.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _191=this;setTimeout(function(){_191.left.style.display=on?"":"none";_191.right.style.display=!on?"":"none";_18c.remove(_191.domNode,"mblSwitchAnimation");},anim?300:0);},startup:function(){if(this._swClass.indexOf("Round")!=-1){var r=Math.round(this.domNode.offsetHeight/2);this.createRoundMask(this._swClass,r,this.domNode.offsetWidth);}},createRoundMask:function(_192,r,w){if(!has("webkit")||!_192){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_192]){return;}this._createdMasks[_192]=1;var ctx=win.doc.getCSSCanvasContext("2d",_192+"Mask",w,100);ctx.fillStyle="#000000";ctx.beginPath();ctx.moveTo(r,0);ctx.arcTo(0,0,0,2*r,r);ctx.arcTo(0,2*r,r,2*r,r);ctx.lineTo(w-r,2*r);ctx.arcTo(w,2*r,w,r,r);ctx.arcTo(w,0,w-r,0,r);ctx.closePath();ctx.fill();},onClick:function(e){if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[];this._conn.push(_189.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_189.connect(this.inner,has("touch")?"touchend":"onmouseup",this,"onTouchEnd"));}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_18b.stop(e);},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return false;}dx=e.targetTouches[0].clientX-this.touchStartX;}else{dx=e.clientX-this.touchStartX;}var pos=this.innerStartX+dx;var d=10;if(pos<=-(this._width-d)){pos=-this._width;}if(pos>=-d){pos=0;}this.inner.style.left=pos+"px";if(Math.abs(dx)>d){this._moved=true;}},onTouchEnd:function(e){_188.forEach(this._conn,_189.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _193=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_193,true);if(_193!=this.value){this.value=this.input.value=_193;this.onStateChanged(_193);}},onStateChanged:function(_194){},_setValueAttr:function(_195){this._changeState(_195,false);if(this.value!=_195){this.onStateChanged(_195);}this.value=this.input.value=_195;},_setLeftLabelAttr:function(_196){this.leftLabel=_196;this.left.firstChild.innerHTML=this._cv?this._cv(_196):_196;},_setRightLabelAttr:function(_197){this.rightLabel=_197;this.right.firstChild.innerHTML=this._cv?this._cv(_197):_197;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/ToolBarButton":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./common","./_ItemBase"],function(_198,win,_199,_19a,_19b,_19c,_19d){return _198("dojox.mobile.ToolBarButton",_19d,{selected:false,btnClass:"",_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("div");this.inheritParams();_199.add(this.domNode,"mblToolBarButton mblArrowButtonText");var _19e;if(this.selected){_19e=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_19e=this._defaultColor;}}_199.add(this.domNode,_19e);if(!this.label){this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){this.iconNode=_19a.create("div",{className:"mblToolBarButtonIcon"},this.domNode);_19c.createIcon(this.icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_199.add(this.iconNode.firstChild,"mblToolBarButtonSpriteIcon");}}else{if(_19c.createDomButton(this.domNode)){_199.add(this.domNode,"mblToolBarButtonDomButton");}else{_199.add(this.domNode,"mblToolBarButtonText");}}this.connect(this.domNode,"onclick","onClick");},select:function(){_199.toggle(this.domNode,this._selColor,!arguments[0]);this.selected=!arguments[0];},deselect:function(){this.select(true);},onClick:function(e){this.setTransitionPos(e);this.defaultClickAction();},_setBtnClassAttr:function(_19f){var node=this.domNode;if(node.className.match(/(mblDomButton\w+)/)){_199.remove(node,RegExp.$1);}_199.add(node,_19f);if(_19c.createDomButton(this.domNode)){_199.add(this.domNode,"mblToolBarButtonDomButton");}},_setLabelAttr:function(text){this.label=text;this.domNode.innerHTML=this._cv?this._cv(text):text;}});});}}});require(["dojo/i18n"],function(i18n){i18n._preloadLocalizations("dojox/nls/mobile",[]);});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_1a0,lang,base){lang.getObject("mobile",true,_1a0);return _1a0.mobile;});