/usr/share/javascript/dojox/mobile.js is in libjs-dojo-dojox 1.10.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","./Container","./Pane","./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/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/_base/kernel","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/domReady","dojo/ready","dojo/touch","dijit/registry","./sniff","./uacss"],function(_e,_f,_10,_11,win,_12,dom,_13,_14,_15,_16,_17,_18,has){var dm=_11.getObject("dojox.mobile",true);win.doc.dojoClick=true;if(has("touch")){has.add("clicks-prevented",!(has("android")>=4.1||(has("ie")===10)||(!has("ie")&&has("trident")>6)));if(has("clicks-prevented")){dm._sendClick=function(_19,e){for(var _1a=_19;_1a;_1a=_1a.parentNode){if(_1a.dojoClick){return;}}var ev=win.doc.createEvent("MouseEvents");ev.initMouseEvent("click",true,true,win.global,1,e.screenX,e.screenY,e.clientX,e.clientY);_19.dispatchEvent(ev);};}}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(_1b){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var _1c,to;if(sz>=dm.tabletSize&&(_1b||(!this._sz||this._sz<dm.tabletSize))){_1c="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_1b||(!this._sz||this._sz>=dm.tabletSize))){_1c="tablet";to="phone";}}if(to){_13.replace(win.doc.documentElement,"dj_"+to,"dj_"+_1c);_10.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.hideAddressBarWait=typeof (_f.mblHideAddressBarWait)==="number"?_f.mblHideAddressBarWait:1500;dm.hide_1=function(){scrollTo(0,1);dm._hidingTimer=(dm._hidingTimer==0)?200:dm._hidingTimer*2;setTimeout(function(){if(dm.isAddressBarHidden()||dm._hidingTimer>dm.hideAddressBarWait){dm.resizeAll();dm._hiding=false;}else{setTimeout(dm.hide_1,dm._hidingTimer);}},50);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._hidingTimer=has("ios")?200:0;var _1d=screen.availHeight;if(has("android")){_1d=outerHeight/devicePixelRatio;if(_1d==0){dm._hiding=false;setTimeout(function(){dm.hideAddressBar();},200);}if(_1d<=innerHeight){_1d=outerHeight;}if(has("android")<3){win.doc.documentElement.style.overflow=win.body().style.overflow="visible";}}if(win.body().offsetHeight<_1d){win.body().style.minHeight=_1d+"px";dm._resetMinHeight=true;}setTimeout(dm.hide_1,dm._hidingTimer);};dm.isAddressBarHidden=function(){return pageYOffset===1;};dm.resizeAll=function(evt,_1e){if(dm.disableResizeAll){return;}_10.publish("/dojox/mobile/resizeAll",[evt,_1e]);_10.publish("/dojox/mobile/beforeResizeAll",[evt,_1e]);if(dm._resetMinHeight){win.body().style.minHeight=dm.getScreenSize().h+"px";}dm.updateOrient();dm.detectScreenSize();var _1f=function(w){var _20=w.getParent&&w.getParent();return !!((!_20||!_20.resize)&&w.resize);};var _21=function(w){_e.forEach(w.getChildren(),function(_22){if(_1f(_22)){_22.resize();}_21(_22);});};if(_1e){if(_1e.resize){_1e.resize();}_21(_1e);}else{_e.forEach(_e.filter(_18.toArray(),_1f),function(w){w.resize();});}_10.publish("/dojox/mobile/afterResizeAll",[evt,_1e]);};dm.openWindow=function(url,_23){win.global.open(url,_23||"_blank");};dm._detectWindowsTheme=function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){_14.create("style",{innerHTML:"@-ms-viewport {width: auto !important}"},win.doc.head);}var _24=function(){_13.add(win.doc.documentElement,"windows_theme");_12.experimental("Dojo Mobile Windows theme","Behavior and appearance of the Windows theme are experimental.");};var _25=has("windows-theme");if(_25!==undefined){if(_25){_24();}return;}var i,j;var _26=function(_27){if(_27&&_27.indexOf("/windows/")!==-1){has.add("windows-theme",true);_24();return true;}return false;};var s=win.doc.styleSheets;for(i=0;i<s.length;i++){if(s[i].href){continue;}var r=s[i].cssRules||s[i].imports;if(!r){continue;}for(j=0;j<r.length;j++){if(_26(r[j].href)){return;}}}var _28=win.doc.getElementsByTagName("link");for(i=0;i<_28.length;i++){if(_26(_28[i].href)){return;}}};if(_f.mblApplyPageStyles!==false){_13.add(win.doc.documentElement,"mobile");}if(has("chrome")){_13.add(win.doc.documentElement,"dj_chrome");}if(win.global._no_dojo_dm){var _29=win.global._no_dojo_dm;for(var i in _29){dm[i]=_29[i];}dm.deviceTheme.setDm(dm);}has.add("mblAndroidWorkaround",_f.mblAndroidWorkaround!==false&&has("android")<3,undefined,true);has.add("mblAndroid3Workaround",_f.mblAndroid3Workaround!==false&&has("android")>=3,undefined,true);dm._detectWindowsTheme();dm.setSelectable=function(_2a,_2b){var _2c,i;_2a=dom.byId(_2a);if(has("ie")<=9){_2c=_2a.getElementsByTagName("*");i=_2c.length;if(_2b){_2a.removeAttribute("unselectable");while(i--){_2c[i].removeAttribute("unselectable");}}else{_2a.setAttribute("unselectable","on");while(i--){if(_2c[i].tagName!=="INPUT"){_2c[i].setAttribute("unselectable","on");}}}}else{_13.toggle(_2a,"unselectable",!_2b);}};_15(function(){_13.add(win.body(),"mblBackground");});_16(function(){dm.detectScreenSize(true);if(_f.mblAndroidWorkaroundButtonStyle!==false&&has("android")){_14.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;} audio::-webkit-media-controls-play-button,video::-webkit-media-controls-play-button{-webkit-appearance:media-play-button;} video::-webkit-media-controls-fullscreen-button{-webkit-appearance:media-fullscreen-button;}"},win.doc.head,"first");}if(has("mblAndroidWorkaround")){_14.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},win.doc.head,"last");}var f=dm.resizeAll;var _2d=navigator.appVersion.indexOf("Mobile")!=-1&&!(has("ios")>=7);if((_f.mblHideAddressBar!==false&&_2d)||_f.mblForceHideAddressBar===true){dm.hideAddressBar();if(_f.mblAlwaysHideAddressBar===true){f=dm.hideAddressBar;}}var _2e=has("ios")>=6;if((has("android")||_2e)&&win.global.onorientationchange!==undefined){var _2f=f;var _30,_31,_32;if(_2e){_31=win.doc.documentElement.clientWidth;_32=win.doc.documentElement.clientHeight;}else{f=function(evt){var _33=_10.connect(null,"onresize",null,function(e){_10.disconnect(_33);_2f(e);});};_30=dm.getScreenSize();}_10.connect(null,"onresize",null,function(e){if(_2e){var _34=win.doc.documentElement.clientWidth,_35=win.doc.documentElement.clientHeight;if(_34==_31&&_35!=_32){_2f(e);}_31=_34;_32=_35;}else{var _36=dm.getScreenSize();if(_36.w==_30.w&&Math.abs(_36.h-_30.h)>=100){_2f(e);}_30=_36;}});}_10.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./dom-class","./_base/lang","./on","./has","./mouse","./domReady","./_base/window"],function(_37,_38,dom,_39,_3a,on,has,_3b,_3c,win){var _3d=has("ios")<5;var _3e=has("pointer-events")||has("MSPointer"),_3f=(function(){var _40={};for(var _41 in {down:1,move:1,up:1,cancel:1,over:1,out:1}){_40[_41]=has("MSPointer")?"MSPointer"+_41.charAt(0).toUpperCase()+_41.slice(1):"pointer"+_41;}return _40;})();var _42=has("touch-events");var _43,_44,_45=false,_46,_47,_48,_49,_4a,_4b;var _4c;function _4d(_4e,_4f,_50){if(_3e&&_50){return function(_51,_52){return on(_51,_50,_52);};}else{if(_42){return function(_53,_54){var _55=on(_53,_4f,function(evt){_54.call(this,evt);_4c=(new Date()).getTime();}),_56=on(_53,_4e,function(evt){if(!_4c||(new Date()).getTime()>_4c+1000){_54.call(this,evt);}});return {remove:function(){_55.remove();_56.remove();}};};}else{return function(_57,_58){return on(_57,_4e,_58);};}}};function _59(_5a){do{if(_5a.dojoClick!==undefined){return _5a;}}while(_5a=_5a.parentNode);};function _5b(e,_5c,_5d){var _5e=_59(e.target);_44=!e.target.disabled&&_5e&&_5e.dojoClick;if(_44){_45=(_44=="useTarget");_46=(_45?_5e:e.target);if(_45){e.preventDefault();}_47=e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX;_48=e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY;_49=(typeof _44=="object"?_44.x:(typeof _44=="number"?_44:0))||4;_4a=(typeof _44=="object"?_44.y:(typeof _44=="number"?_44:0))||4;if(!_43){_43=true;function _5f(e){if(_45){_44=dom.isDescendant(win.doc.elementFromPoint((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX),(e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)),_46);}else{_44=_44&&(e.changedTouches?e.changedTouches[0].target:e.target)==_46&&Math.abs((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX)-_47)<=_49&&Math.abs((e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)-_48)<=_4a;}};win.doc.addEventListener(_5c,function(e){_5f(e);if(_45){e.preventDefault();}},true);win.doc.addEventListener(_5d,function(e){_5f(e);if(_44){_4b=(new Date()).getTime();var _60=(_45?_46:e.target);if(_60.tagName==="LABEL"){_60=dom.byId(_60.getAttribute("for"))||_60;}var src=(e.changedTouches)?e.changedTouches[0]:e;var _61=document.createEvent("MouseEvents");_61._dojo_click=true;_61.initMouseEvent("click",true,true,e.view,e.detail,src.screenX,src.screenY,src.clientX,src.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);setTimeout(function(){on.emit(_60,"click",_61);_4b=(new Date()).getTime();},0);}},true);function _62(_63){win.doc.addEventListener(_63,function(e){if(!e._dojo_click&&(new Date()).getTime()<=_4b+1000&&!(e.target.tagName=="INPUT"&&_39.contains(e.target,"dijitOffScreen"))){e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();if(_63=="click"&&(e.target.tagName!="INPUT"||e.target.type=="radio"||e.target.type=="checkbox")&&e.target.tagName!="TEXTAREA"&&e.target.tagName!="AUDIO"&&e.target.tagName!="VIDEO"){e.preventDefault();}}},true);};_62("click");_62("mousedown");_62("mouseup");}}};var _64;if(_3e){_3c(function(){win.doc.addEventListener(_3f.down,function(evt){_5b(evt,_3f.move,_3f.up);},true);});}else{if(_42){_3c(function(){_64=win.body();win.doc.addEventListener("touchstart",function(evt){_4c=(new Date()).getTime();var _65=_64;_64=evt.target;on.emit(_65,"dojotouchout",{relatedTarget:_64,bubbles:true});on.emit(_64,"dojotouchover",{relatedTarget:_65,bubbles:true});_5b(evt,"touchmove","touchend");},true);function _66(evt){var _67=_3a.delegate(evt,{bubbles:true});if(has("ios")>=6){_67.touches=evt.touches;_67.altKey=evt.altKey;_67.changedTouches=evt.changedTouches;_67.ctrlKey=evt.ctrlKey;_67.metaKey=evt.metaKey;_67.shiftKey=evt.shiftKey;_67.targetTouches=evt.targetTouches;}return _67;};on(win.doc,"touchmove",function(evt){_4c=(new Date()).getTime();var _68=win.doc.elementFromPoint(evt.pageX-(_3d?0:win.global.pageXOffset),evt.pageY-(_3d?0:win.global.pageYOffset));if(_68){if(_64!==_68){on.emit(_64,"dojotouchout",{relatedTarget:_68,bubbles:true});on.emit(_68,"dojotouchover",{relatedTarget:_64,bubbles:true});_64=_68;}if(!on.emit(_68,"dojotouchmove",_66(evt))){evt.preventDefault();}}});on(win.doc,"touchend",function(evt){_4c=(new Date()).getTime();var _69=win.doc.elementFromPoint(evt.pageX-(_3d?0:win.global.pageXOffset),evt.pageY-(_3d?0:win.global.pageYOffset))||win.body();on.emit(_69,"dojotouchend",_66(evt));});});}}var _6a={press:_4d("mousedown","touchstart",_3f.down),move:_4d("mousemove","dojotouchmove",_3f.move),release:_4d("mouseup","dojotouchend",_3f.up),cancel:_4d(_3b.leave,"touchcancel",_3e?_3f.cancel:null),over:_4d("mouseover","dojotouchover",_3f.over),out:_4d("mouseout","dojotouchout",_3f.out),enter:_3b._eventHandler(_4d("mouseover","dojotouchover",_3f.over)),leave:_3b._eventHandler(_4d("mouseout","dojotouchout",_3f.out))};1&&(_37.touch=_6a);return _6a;});},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(_6b,win,_6c){var _6d={},_6e={};var _6f={length:0,add:function(_70){if(_6e[_70.id]){throw new Error("Tried to register widget with id=="+_70.id+" but that id is already registered");}_6e[_70.id]=_70;this.length++;},remove:function(id){if(_6e[id]){delete _6e[id];this.length--;}},byId:function(id){return typeof id=="string"?_6e[id]:id;},byNode:function(_71){return _6e[_71.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _6e){ar.push(_6e[id]);}return ar;},getUniqueId:function(_72){var id;do{id=_72+"_"+(_72 in _6d?++_6d[_72]:_6d[_72]=0);}while(_6e[id]);return _6c._scopeName=="dijit"?id:_6c._scopeName+"_"+id;},findWidgets:function(_73,_74){var _75=[];function _76(_77){for(var _78=_77.firstChild;_78;_78=_78.nextSibling){if(_78.nodeType==1){var _79=_78.getAttribute("widgetId");if(_79){var _7a=_6e[_79];if(_7a){_75.push(_7a);}}else{if(_78!==_74){_76(_78);}}}}};_76(_73);return _75;},_destroyAll:function(){_6c._curFocus=null;_6c._prevFocus=null;_6c._activeStack=[];_6b.forEach(_6f.findWidgets(win.body()),function(_7b){if(!_7b._destroyed){if(_7b.destroyRecursive){_7b.destroyRecursive();}else{if(_7b.destroy){_7b.destroy();}}}});},getEnclosingWidget:function(_7c){while(_7c){var id=_7c.nodeType==1&&_7c.getAttribute("widgetId");if(id){return _6e[id];}_7c=_7c.parentNode;}return null;},_hash:_6e};_6c.registry=_6f;return _6f;});},"dijit/main":function(){define(["dojo/_base/kernel"],function(_7d){return _7d.dijit;});},"dojox/mobile/sniff":function(){define(["dojo/_base/kernel","dojo/sniff"],function(_7e,has){_7e.deprecated("dojox/mobile/sniff","Use dojo/sniff instead","2.0");has.add("iphone",has("ios"));return has;});},"dojox/mobile/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(_7f,_80,win,has){var _81=win.doc.documentElement;_81.className=_80.trim(_81.className+" "+[has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("ios")?"dj_ios":"",has("ios")>=6?"dj_ios6":"",has("ios")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":"",has("ie")?"dj_ie":""].join(" ").replace(/ +/g," "));return _7f;});},"dojox/mobile/View":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./common","./transition","./viewRegistry","./_css3"],function(_82,_83,_84,_85,_86,has,win,_87,dom,_88,_89,_8a,_8b,_8c,_8d,_8e,_8f,_90,_91,_92,_93,_94){var dm=_86.getObject("dojox.mobile",true);return _85("dojox.mobile.View",[_8f,_8e,_8d],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_95,_96){if(_96){dom.byId(_96).style.visibility="hidden";}},destroy:function(){_93.remove(this.id);this.inherited(arguments);},buildRendering:function(){if(!this.templateString){this.domNode=this.containerNode=this.srcNodeRef||_89.create(this.tag);}this._animEndHandle=this.connect(this.domNode,_94.name("animationEnd"),"onAnimationEnd");this._animStartHandle=this.connect(this.domNode,_94.name("animationStart"),"onAnimationStart");if(!_83.mblCSS3Transition){this._transEndHandle=this.connect(this.domNode,_94.name("transitionEnd"),"onAnimationEnd");}if(has("mblAndroid3Workaround")){_8b.set(this.domNode,_94.name("transformStyle"),"preserve-3d");}_93.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _97=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _98,_99,_9a;_82.forEach(_97,function(v,i){if(_82.indexOf(ids,v.id)!==-1){_98=v;}if(i==0){_9a=v;}if(v.selected){_99=v;}v._visible=false;},this);(_98||_99||_9a)._visible=true;}if(this._visible){this.show(true,true);this.defer(function(){this.onStartView();_84.publish("/dojox/mobile/startView",[this]);});}if(this.domNode.style.visibility==="hidden"){this.domNode.style.visibility="inherit";}this.inherited(arguments);var _9b=this.getParent();if(!_9b||!_9b.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_82.forEach(this.getChildren(),function(_9c){if(_9c.resize){_9c.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_9d,dir,_9e,_9f,_a0){},onAfterTransitionIn:function(_a1,dir,_a2,_a3,_a4){},onBeforeTransitionOut:function(_a5,dir,_a6,_a7,_a8){},onAfterTransitionOut:function(_a9,dir,_aa,_ab,_ac){},_clearClasses:function(_ad){if(!_ad){return;}var _ae=[];_82.forEach(_86.trim(_ad.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_ae.push(c);}},this);_ad.className=_ae.join(" ");},_fixViewState:function(_af){var _b0=this.domNode.parentNode.childNodes;for(var i=0;i<_b0.length;i++){var n=_b0[i];if(n.nodeType===1&&_88.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_af);var _b1=_8c.byNode(_af);if(_b1){_b1._inProgress=false;}},convertToId:function(_b2){if(typeof (_b2)=="string"){return _b2.replace(/^#?([^&?]+).*/,"$1");}return _b2;},_isBookmarkable:function(_b3){return _b3.moveTo&&(_83.mblForceBookmarkable||_b3.moveTo.charAt(0)==="#")&&!_b3.hashchange;},performTransition:function(_b4,_b5,_b6,_b7,_b8){if(this._inProgress){return;}this._inProgress=true;var _b9,_ba;if(_b4&&typeof (_b4)==="object"){_b9=_b4;_ba=_b5;}else{_b9={moveTo:_b4,transitionDir:_b5,transition:_b6,context:_b7,method:_b8};_ba=[];for(var i=5;i<arguments.length;i++){_ba.push(arguments[i]);}}this._detail=_b9;this._optArgs=_ba;this._arguments=[_b9.moveTo,_b9.transitionDir,_b9.transition,_b9.context,_b9.method];if(_b9.moveTo==="#"){return;}var _bb;if(_b9.moveTo){_bb=this.convertToId(_b9.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_bb=this._dummyNode;}if(this.addTransitionInfo&&typeof (_b9.moveTo)=="string"&&this._isBookmarkable(_b9)){this.addTransitionInfo(this.id,_b9.moveTo,{transitionDir:_b9.transitionDir,transition:_b9.transition});}var _bc=this.domNode;var _bd=_bc.offsetTop;_bb=this.toNode=dom.byId(_bb);if(!_bb){return;}_bb.style.visibility="hidden";_bb.style.display="";this._fixViewState(_bb);var _be=_8c.byNode(_bb);if(_be){if(_83.mblAlwaysResizeOnTransition||!_be._resized){_91.resizeAll(null,_be);_be._resized=true;}if(_b9.transition&&_b9.transition!="none"){_be._addTransitionPaddingTop(_bd);}_be.load&&_be.load();_be.movedFrom=_bc.id;}if(has("mblAndroidWorkaround")&&!_83.mblCSS3Transition&&_b9.transition&&_b9.transition!="none"){_8b.set(_bb,_94.name("transformStyle"),"preserve-3d");_8b.set(_bc,_94.name("transformStyle"),"preserve-3d");_88.add(_bb,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_84.publish("/dojox/mobile/beforeTransitionOut",[this].concat(_86._toArray(this._arguments)));if(_be){if(this.keepScrollPos&&!this.getParent()){var _bf=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_bc._scrollTop=_bf;var _c0=(_b9.transitionDir==1)?0:(_bb._scrollTop||0);_bb.style.top="0px";if(_bf>1||_c0!==0){_bc.style.top=_c0-_bf+"px";if(!(has("ios")>=7)&&_83.mblHideAddressBar!==false){this.defer(function(){win.global.scrollTo(0,(_c0||1));});}}}else{_bb.style.top="0px";}_be.onBeforeTransitionIn.apply(_be,this._arguments);_84.publish("/dojox/mobile/beforeTransitionIn",[_be].concat(_86._toArray(this._arguments)));}_bb.style.display="none";_bb.style.visibility="inherit";_91.fromView=this;_91.toView=_be;this._doTransition(_bc,_bb,_b9.transition,_b9.transitionDir);},_addTransitionPaddingTop:function(_c1){this.containerNode.style.paddingTop=_c1+"px";},_removeTransitionPaddingTop:function(){this.containerNode.style.paddingTop="";},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_c2,_c3,_c4,_c5){var rev=(_c5==-1)?" mblReverse":"";_c3.style.display="";if(!_c4||_c4=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_83.mblCSS3Transition){_87.when(_92,_86.hitch(this,function(_c6){var _c7=_8b.get(_c3,"position");_8b.set(_c3,"position","absolute");_87.when(_c6(_c2,_c3,{transition:_c4,reverse:(_c5===-1)?true:false}),_86.hitch(this,function(){_8b.set(_c3,"position",_c7);_c3.style.paddingTop="";this.invokeCallback();}));}));}else{if(_c4.indexOf("cube")!=-1){if(has("ipad")){_8b.set(_c3.parentNode,{webkitPerspective:1600});}else{if(has("ios")){_8b.set(_c3.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_c4);if(has("mblAndroidWorkaround")){var _c8=this;_c8.defer(function(){_88.add(_c2,s+" mblOut"+rev);_88.add(_c3,s+" mblIn"+rev);_88.remove(_c3,"mblAndroidWorkaround");_c8.defer(function(){_88.add(_c2,"mblTransition");_88.add(_c3,"mblTransition");},30);},70);}else{_88.add(_c2,s+" mblOut"+rev);_88.add(_c3,s+" mblIn"+rev);this.defer(function(){_88.add(_c2,"mblTransition");_88.add(_c3,"mblTransition");},100);}var _c9="50% 50%";var _ca="50% 50%";var _cb,_cc,_cd;if(_c4.indexOf("swirl")!=-1||_c4.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_cb=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_cb=-_8a.position(_c2,true).y;}_cd=win.global.innerHeight/2+_cb;_c9="50% "+_cd+"px";_ca="50% "+_cd+"px";}else{if(_c4.indexOf("scale")!=-1){var _ce=_8a.position(_c2,true);_cc=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_ce.x;if(this.keepScrollPos&&!this.getParent()){_cb=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_cb=-_ce.y;}_cd=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_cb;_c9=_cc+"px "+_cd+"px";_ca=_cc+"px "+_cd+"px";}}_8b.set(_c2,_94.add({},{transformOrigin:_c9}));_8b.set(_c3,_94.add({},{transformOrigin:_ca}));}}},onAnimationStart:function(e){},onAnimationEnd:function(e){var _cf=e.animationName||e.target.className;if(_cf.indexOf("Out")===-1&&_cf.indexOf("In")===-1&&_cf.indexOf("Shrink")===-1){return;}var _d0=false;if(_88.contains(this.domNode,"mblOut")){_d0=true;this.domNode.style.display="none";_88.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this._removeTransitionPaddingTop();}_8b.set(this.domNode,_94.add({},{transformOrigin:""}));if(_cf.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_88.remove(li,"mblCloseContent");var p=_93.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_d0){this.invokeCallback();}this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=undefined;if(_cf.indexOf("Cube")!==-1&&_cf.indexOf("In")!==-1&&has("ios")){this.domNode.parentNode.style[_94.name("perspective")]="";}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_84.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _d1=_8c.byNode(this.toNode);if(_d1){_d1.onAfterTransitionIn.apply(_d1,this._arguments);_84.publish("/dojox/mobile/afterTransitionIn",[_d1].concat(this._arguments));_d1.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_d1);}}if(has("mblAndroidWorkaround")){this.defer(function(){if(_d1){_8b.set(this.toNode,_94.name("transformStyle"),"");}_8b.set(this.domNode,_94.name("transformStyle"),"");});}var c=this._detail.context,m=this._detail.method;if(c||m){if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._optArgs);}else{if(typeof (m)=="function"){m.apply(c,this._optArgs);}}}this._detail=this._optArgs=this._arguments=undefined;this._inProgress=false;},isVisible:function(_d2){var _d3=function(_d4){return _8b.get(_d4,"display")!=="none";};if(_d2){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_d3(n)){return false;}}return true;}else{return _d3(this.domNode);}},getShowingView:function(){var _d5=this.domNode.parentNode.childNodes;for(var i=0;i<_d5.length;i++){var n=_d5[i];if(n.nodeType===1&&_88.contains(n,"mblView")&&n.style.display!=="none"){return _8c.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _82.map(_82.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_88.contains(n,"mblView");}),function(n){return _8c.byNode(n);});},show:function(_d6,_d7){var out=this.getShowingView();if(!_d6){if(out){out.onBeforeTransitionOut(out.id);_84.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_84.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_d7){this.domNode.style.display="";}else{_82.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_d6){if(out){out.onAfterTransitionOut(out.id);_84.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_84.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(_d8,_d9){return _d8("dijit._Contained",null,{_getSibling:function(_da){var _db=this.domNode;do{_db=_db[_da+"Sibling"];}while(_db&&_db.nodeType!=1);return _db&&_d9.byNode(_db);},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(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(_dc,_dd,_de,_df){return _dd("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_e0,_e1){var _e2=this.containerNode;if(_e1>0){_e2=_e2.firstChild;while(_e1>0){if(_e2.nodeType==1){_e1--;}_e2=_e2.nextSibling;}if(_e2){_e1="before";}else{_e2=this.containerNode;_e1="last";}}_de.place(_e0.domNode,_e2,_e1);if(this._started&&!_e0._started){_e0.startup();}},removeChild:function(_e3){if(typeof _e3=="number"){_e3=this.getChildren()[_e3];}if(_e3){var _e4=_e3.domNode;if(_e4&&_e4.parentNode){_e4.parentNode.removeChild(_e4);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_e5,dir){_df.deprecated(this.declaredClass+"::_getSiblingOfChild() is deprecated. Use _KeyNavMixin::_getNext() instead.","","2.0");var _e6=this.getChildren(),idx=_dc.indexOf(_e6,_e5);return _e6[idx+dir];},getIndexOfChild:function(_e7){return _dc.indexOf(this.getChildren(),_e7);}});});},"dijit/_WidgetBase":function(){define(["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/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","dojo/has!dojo-bidi?./_BidiMixin","./registry"],function(_e8,_e9,_ea,_eb,_ec,_ed,dom,_ee,_ef,_f0,_f1,_f2,has,_f3,_f4,on,_f5,_f6,_f7,win,_f8,_f9,_fa){has.add("dijit-legacy-requires",!_f3.isAsync);has.add("dojo-bidi",false);if(has("dijit-legacy-requires")){_f5(0,function(){var _fb=["dijit/_base/manager"];_e8(_fb);});}var _fc={};function _fd(obj){var ret={};for(var _fe in obj){ret[_fe.toLowerCase()]=true;}return ret;};function _ff(attr){return function(val){_ee[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};function _100(a,b){return a===b||(a!==a&&b!==b);};var _101=_ed("dijit._WidgetBase",[_f6,_f8],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_ff("lang"),dir:"",_setDirAttr:_ff("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_eb.blankGif||_e8.toUrl("dojo/resources/blank.gif"),_introspect:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var _102=ctor.prototype,_103=ctor._setterAttrs=[],_104=(ctor._onMap={});for(var name in _102.attributeMap){_103.push(name);}for(name in _102){if(/^on/.test(name)){_104[name.substring(2).toLowerCase()]=name;}if(/^_set[A-Z](.*)Attr$/.test(name)){name=name.charAt(4).toLowerCase()+name.substr(5,name.length-9);if(!_102.attributeMap||!(name in _102.attributeMap)){_103.push(name);}}}}},postscript:function(_105,_106){this.create(_105,_106);},create:function(_107,_108){this._introspect();this.srcNodeRef=dom.byId(_108);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_107){this.params=_107;_f4.mixin(this,_107);}this.postMixInProperties();if(!this.id){this.id=_fa.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=win.body(this.ownerDocument);_fa.add(this);this.buildRendering();var _109;if(this.domNode){this._applyAttributes();var _10a=this.srcNodeRef;if(_10a&&_10a.parentNode&&this.domNode!==_10a){_10a.parentNode.replaceChild(this.domNode,_10a);_109=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_109){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _10b={};for(var key in this.params||{}){_10b[key]=this._get(key);}_e9.forEach(this.constructor._setterAttrs,function(key){if(!(key in _10b)){var val=this._get(key);if(val){this.set(key,val);}}},this);for(key in _10b){this.set(key,_10b[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _10c=this.baseClass.split(" ");if(!this.isLeftToRight()){_10c=_10c.concat(_e9.map(_10c,function(name){return name+"Rtl";}));}_ef.add(this.domNode,_10c);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_e9.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_f4.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_10d){this._beingDestroyed=true;this.destroyDescendants(_10d);this.destroy(_10d);},destroy:function(_10e){this._beingDestroyed=true;this.uninitialize();function _10f(w){if(w.destroyRecursive){w.destroyRecursive(_10e);}else{if(w.destroy){w.destroy(_10e);}}};_e9.forEach(this._connects,_f4.hitch(this,"disconnect"));_e9.forEach(this._supportingWidgets,_10f);if(this.domNode){_e9.forEach(_fa.findWidgets(this.domNode,this.containerNode),_10f);}this.destroyRendering(_10e);_fa.remove(this.id);this._destroyed=true;},destroyRendering:function(_110){if(this.bgIframe){this.bgIframe.destroy(_110);delete this.bgIframe;}if(this.domNode){if(_110){_ee.remove(this.domNode,"widgetId");}else{_f0.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_110){_f0.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_111){_e9.forEach(this.getChildren(),function(_112){if(_112.destroyRecursive){_112.destroyRecursive(_111);}});},uninitialize:function(){return false;},_setStyleAttr:function(_113){var _114=this.domNode;if(_f4.isObject(_113)){_f2.set(_114,_113);}else{if(_114.style.cssText){_114.style.cssText+="; "+_113;}else{_114.style.cssText=_113;}}this._set("style",_113);},_attrToDom:function(attr,_115,_116){_116=arguments.length>=3?_116:this.attributeMap[attr];_e9.forEach(_f4.isArray(_116)?_116:[_116],function(_117){var _118=this[_117.node||_117||"domNode"];var type=_117.type||"attribute";switch(type){case "attribute":if(_f4.isFunction(_115)){_115=_f4.hitch(this,_115);}var _119=_117.attribute?_117.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_118.tagName){_ee.set(_118,_119,_115);}else{_118.set(_119,_115);}break;case "innerText":_118.innerHTML="";_118.appendChild(this.ownerDocument.createTextNode(_115));break;case "innerHTML":_118.innerHTML=_115;break;case "class":_ef.replace(_118,_115,this[attr]);break;}},this);},get:function(name){var _11a=this._getAttrNames(name);return this[_11a.g]?this[_11a.g]():this._get(name);},set:function(name,_11b){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _11c=this._getAttrNames(name),_11d=this[_11c.s];if(_f4.isFunction(_11d)){var _11e=_11d.apply(this,Array.prototype.slice.call(arguments,1));}else{var _11f=this.focusNode&&!_f4.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_11f]&&this[_11f].tagName,_120=tag&&(_fc[tag]||(_fc[tag]=_fd(this[_11f]))),map=name in this.attributeMap?this.attributeMap[name]:_11c.s in this?this[_11c.s]:((_120&&_11c.l in _120&&typeof _11b!="function")||/^aria-|^data-|^role$/.test(name))?_11f:null;if(map!=null){this._attrToDom(name,_11b,map);}this._set(name,_11b);}return _11e||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_121){var _122=this[name];this[name]=_121;if(this._created&&!_100(_122,_121)){if(this._watchCallbacks){this._watchCallbacks(name,_122,_121);}this.emit("attrmodified-"+name,{detail:{prevValue:_122,newValue:_121}});}},_get:function(name){return this[name];},emit:function(type,_123,_124){_123=_123||{};if(_123.bubbles===undefined){_123.bubbles=true;}if(_123.cancelable===undefined){_123.cancelable=true;}if(!_123.detail){_123.detail={};}_123.detail.widget=this;var ret,_125=this["on"+type];if(_125){ret=_125.apply(this,_124?_124:[_123]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_123);}return ret;},on:function(type,func){var _126=this._onMap(type);if(_126){return _ea.after(this,_126,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_fa.findWidgets(this.containerNode):[];},getParent:function(){return _fa.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_127,_128){return this.own(_ec.connect(obj,_127,this,_128))[0];},disconnect:function(_129){_129.remove();},subscribe:function(t,_12a){return this.own(_f7.subscribe(t,_f4.hitch(this,_12a)))[0];},unsubscribe:function(_12b){_12b.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_f1.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_f2.get(this.domNode,"display")!="none");},placeAt:function(_12c,_12d){var _12e=!_12c.tagName&&_fa.byId(_12c);if(_12e&&_12e.addChild&&(!_12d||typeof _12d==="number")){_12e.addChild(this,_12d);}else{var ref=_12e&&("domNode" in _12e)?(_12e.containerNode&&!/after|before|replace/.test(_12d||"")?_12e.containerNode:_12e.domNode):dom.byId(_12c,this.ownerDocument);_f0.place(this.domNode,ref,_12d);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},defer:function(fcn,_12f){var _130=setTimeout(_f4.hitch(this,function(){if(!_130){return;}_130=null;if(!this._destroyed){_f4.hitch(this,fcn)();}}),_12f||0);return {remove:function(){if(_130){clearTimeout(_130);_130=null;}return null;}};}});if(has("dojo-bidi")){_101.extend(_f9);}return _101;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_131,lang,_132,when){return _131("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_133){if(_133){this.set(_133);}},_get:function(name,_134){return typeof this[_134.g]==="function"?this[_134.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_135){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _136=this._getAttrNames(name),_137=this._get(name,_136),_138=this[_136.s],_139;if(typeof _138==="function"){_139=_138.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_135;}if(this._watchCallbacks){var self=this;when(_139,function(){self._watchCallbacks(name,_137,_135);});}return this;},_changeAttrValue:function(name,_13a){var _13b=this.get(name);this[name]=_13a;if(this._watchCallbacks){this._watchCallbacks(name,_13b,_13a);}return this;},watch:function(name,_13c){var _13d=this._watchCallbacks;if(!_13d){var self=this;_13d=this._watchCallbacks=function(name,_13e,_13f,_140){var _141=function(_142){if(_142){_142=_142.slice();for(var i=0,l=_142.length;i<l;i++){_142[i].call(self,name,_13e,_13f);}}};_141(_13d["_"+name]);if(!_140){_141(_13d["*"]);}};}if(!_13c&&typeof name==="function"){_13c=name;name="*";}else{name="_"+name;}var _143=_13d[name];if(typeof _143!=="object"){_143=_13d[name]=[];}_143.push(_13c);var _144={};_144.unwatch=_144.remove=function(){var _145=_132.indexOf(_143,_13c);if(_145>-1){_143.splice(_145,1);}};return _144;}});});},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_146,_147,_148){return _148("dijit.Destroyable",null,{destroy:function(_149){this._destroyed=true;},own:function(){var _14a=["destroyRecursive","destroy","remove"];_146.forEach(arguments,function(_14b){var _14c;var odh=_147.before(this,"destroy",function(_14d){_14b[_14c](_14d);});var hdhs=[];function _14e(){odh.remove();_146.forEach(hdhs,function(hdh){hdh.remove();});};if(_14b.then){_14c="cancel";_14b.then(_14e,_14e);}else{_146.forEach(_14a,function(_14f){if(typeof _14b[_14f]==="function"){if(!_14c){_14c=_14f;}hdhs.push(_147.after(_14b,_14f,_14e,true));}});}},this);return arguments;}});});},"dojox/mobile/ViewController":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent","./viewRegistry"],function(dojo,_150,_151,_152,lang,win,_153,dom,_154,_155,on,_156,_157,_158,_159,_15a){var _15b=_152("dojox.mobile.ViewController",null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};_156(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findTransitionViews:function(_15c){if(!_15c){return [];}_15c.match(/^#?([^&?]+)(.*)/);var _15d=RegExp.$2;var view=_157.byId(RegExp.$1);if(!view){return [];}for(var v=view.getParent();v;v=v.getParent()){if(v.isVisible&&!v.isVisible()){var sv=view.getShowingView();if(sv&&sv.id!==view.id){view.show();}view=v;}}return [view.getShowingView(),view,_15d];},openExternalView:function(_15e,_15f){var d=new _153();var id=this.viewMap[_15e.url];if(id){_15e.moveTo=id;if(_15e.noTransition){_157.byId(id).hide();}else{new _159(win.body(),_15e).dispatch();}d.resolve(true);return d;}var _160=null;for(var i=_15f.childNodes.length-1;i>=0;i--){var c=_15f.childNodes[i];if(c.nodeType===1){var _161=c.getAttribute("fixed")||c.getAttribute("data-mobile-fixed")||(_157.byNode(c)&&_157.byNode(c).fixed);if(_161==="bottom"){_160=c;break;}}}var dh=_15e.dataHandlerClass||this.dataHandlerClass;var ds=_15e.dataSourceClass||this.dataSourceClass;var ft=_15e.fileTypeMapClass||this.fileTypeMapClass;require([dh,ds,ft],lang.hitch(this,function(_162,_163,_164){var _165=new _162(new _163(_15e.data||_15e.url),_15f,_160);var _166=_15e.contentType||_164.getContentType(_15e.url)||"html";_165.processData(_166,lang.hitch(this,function(id){if(id){this.viewMap[_15e.url]=_15e.moveTo=id;if(_15e.noTransition){_157.byId(id).hide();}else{new _159(win.body(),_15e).dispatch();}d.resolve(true);}else{d.reject("Failed to load "+_15e.url);}}));}));return d;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail){return;}var _167=evt.detail;if(!_167.moveTo&&!_167.href&&!_167.url&&!_167.scene){return;}if(_167.url&&!_167.moveTo){var _168=_167.urlTarget;var w=_157.byId(_168);var _169=w&&w.containerNode||dom.byId(_168);if(!_169){w=_15a.getEnclosingView(evt.target);_169=w&&w.domNode.parentNode||win.body();}var src=_157.getEnclosingWidget(evt.target);if(src&&src.callback){_167.context=src;_167.method=src.callback;}this.openExternalView(_167,_169);return;}else{if(_167.href){if(_167.hrefTarget&&_167.hrefTarget!="_self"){win.global.open(_167.href,_167.hrefTarget);}else{var view;for(var v=_15a.getEnclosingView(evt.target);v;v=_15a.getParentView(v)){view=v;}if(view){view.performTransition(null,_167.transitionDir,_167.transition,evt.target,function(){location.href=_167.href;});}}return;}else{if(_167.scene){_151.publish("/dojox/mobile/app/pushScene",[_167.scene]);return;}}}var arr=this.findTransitionViews(_167.moveTo),_16a=arr[0],_16b=arr[1],_16c=arr[2];if(!location.hash&&!_167.hashchange){_15a.initialView=_16a;}if(_167.moveTo&&_16b){_167.moveTo=(_167.moveTo.charAt(0)==="#"?"#"+_16b.id:_16b.id)+_16c;}if(!_16a||(_167.moveTo&&_16a===_157.byId(_167.moveTo.replace(/^#?([^&?]+).*/,"$1")))){return;}src=_157.getEnclosingWidget(evt.target);if(src&&src.callback){_167.context=src;_167.method=src.callback;}_16a.performTransition(_167);}});_15b._instance=new _15b();_15b.getInstance=function(){return _15b._instance;};return _15b;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dijit/_Contained","dijit/_WidgetBase","./_css3","dojo/has!dojo-bidi?dojox/mobile/bidi/ProgressIndicator"],function(_16d,_16e,lang,_16f,_170,_171,_172,has,_173,_174,css3,_175){var cls=_16e("dojox.mobile.ProgressIndicator",[_174,_173],{interval:100,size:40,removeOnStop:true,startSpinning:false,center:true,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=[];this._bars=[];},buildRendering:function(){this.inherited(arguments);if(this.center){_16f.add(this.domNode,"mblProgressIndicatorCenter");}this.containerNode=_170.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=_170.create("div",null,this.containerNode);for(var i=0;i<12;i++){var div=_170.create("div",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}this.scale(this.size);if(this.startSpinning){this.start();}},scale:function(size){var _176=size/40;_172.set(this.containerNode,css3.add({},{transform:"scale("+_176+")",transformOrigin:"0 0"}));_171.setMarginBox(this.domNode,{w:size,h:size});_171.setMarginBox(this.containerNode,{w:size/_176,h:size/_176});},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.containerNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.containerNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _177=this;var n=12;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_177.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;if(c[idx]){_177._bars[i].style.backgroundColor=c[idx];}else{_16f.replace(_177._bars[i],"mblProg"+idx+"Color","mblProg"+(idx===n-1?0:idx+1)+"Color");}}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.removeOnStop&&this.domNode&&this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_170.create("img",{src:file},this.containerNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.containerNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}},destroy:function(){this.inherited(arguments);if(this===cls._instance){cls._instance=null;}}});cls=has("dojo-bidi")?_16e("dojox.mobile.ProgressIndicator",[cls,_175]):cls;cls._instance=null;cls.getInstance=function(_178){if(!cls._instance){cls._instance=new cls(_178);}return cls._instance;};return cls;});},"dojox/mobile/_css3":function(){define(["dojo/_base/window","dojo/_base/array","dojo/has"],function(win,arr,has){var _179=[],_17a=[];var _17b=win.doc.createElement("div").style;var _17c=["webkit"];has.add("css3-animations",function(_17d,_17e,_17f){var _180=_17f.style;return (_180["animation"]!==undefined&&_180["transition"]!==undefined)||arr.some(_17c,function(p){return _180[p+"Animation"]!==undefined&&_180[p+"Transition"]!==undefined;});});has.add("t17164",function(_181,_182,_183){return (_183.style["transition"]!==undefined)&&!("TransitionEvent" in window);});var css3={name:function(p,_184){var n=(_184?_17a:_179)[p];if(!n){if(/End|Start/.test(p)){var idx=p.length-(p.match(/End/)?3:5);var s=p.substr(0,idx);var pp=this.name(s);if(pp==s){n=p.toLowerCase();}else{n=pp+p.substr(idx);}}else{if(p=="keyframes"){var pk=this.name("animation",_184);if(pk=="animation"){n=p;}else{if(_184){n=pk.replace(/animation/,"keyframes");}else{n=pk.replace(/Animation/,"Keyframes");}}}else{var cn=_184?p.replace(/-(.)/g,function(_185,p1){return p1.toUpperCase();}):p;if(_17b[cn]!==undefined&&!has("t17164")){n=p;}else{cn=cn.charAt(0).toUpperCase()+cn.slice(1);arr.some(_17c,function(_186){if(_17b[_186+cn]!==undefined){if(_184){n="-"+_186+"-"+p;}else{n=_186+cn;}}});}}}if(!n){n=p;}(_184?_17a:_179)[p]=n;}return n;},add:function(_187,_188){for(var p in _188){if(_188.hasOwnProperty(p)){_187[css3.name(p)]=_188[p];}}return _187;}};return css3;});},"dojox/mobile/TransitionEvent":function(){define(["dojo/_base/declare","dojo/on"],function(_189,on){return _189("dojox.mobile.TransitionEvent",null,{constructor:function(_18a,_18b,_18c){this.transitionOptions=_18b;this.target=_18a;this.triggerEvent=_18c||null;},dispatch:function(){var opts={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",opts);}});});},"dojox/mobile/viewRegistry":function(){define(["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_18d,_18e,_18f){var _190={length:0,hash:{},initialView:null,add:function(view){this.hash[view.id]=view;this.length++;},remove:function(id){if(this.hash[id]){delete this.hash[id];this.length--;}},getViews:function(){var arr=[];for(var i in this.hash){arr.push(this.hash[i]);}return arr;},getParentView:function(view){for(var v=view.getParent();v;v=v.getParent()){if(_18e.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_191){return _18d.filter(this.getViews(),function(v){return this.getParentView(v)===_191;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_18e.contains(n,"mblView")){return _18f.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_18f.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _190;});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_192,_193){if(_193.mblCSS3Transition){var _194=new _192();require([_193.mblCSS3Transition],function(_195){_194.resolve(_195);});return _194;}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","dojo/dom-attr","dijit/registry","./common","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ProgressIndicator","./ToolBarButton","./View","dojo/has","dojo/has!dojo-bidi?dojox/mobile/bidi/Heading"],function(_196,_197,_198,lang,win,_199,_19a,_19b,_19c,_19d,_19e,_19f,_1a0,_1a1,_1a2,_1a3,View,has,_1a4){var dm=lang.getObject("dojox.mobile",true);var _1a5=_198(has("dojo-bidi")?"dojox.mobile.NonBidiHeading":"dojox.mobile.Heading",[_1a1,_1a0,_19f],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:false,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){if(!this.templateString){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);}this.inherited(arguments);if(!this.templateString){if(!this.label){_196.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_19a.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_19a.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_19a.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);}if(this.labelDivNode){_19c.set(this.labelDivNode,"role","heading");_19c.set(this.labelDivNode,"aria-level","1");}_19e.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _1a6=this.getParent&&this.getParent();if(!_1a6||!_1a6.resize){var _1a7=this;_1a7.defer(function(){_1a7.resize();});}this.inherited(arguments);},resize:function(){if(this.labelNode){var _1a8,_1a9;var _1aa=this.containerNode.childNodes;for(var i=_1aa.length-1;i>=0;i--){var c=_1aa[i];if(c.nodeType===1&&_19b.get(c,"display")!=="none"){if(!_1a9&&_19b.get(c,"float")==="right"){_1a9=c;}if(!_1a8&&_19b.get(c,"float")==="left"){_1a8=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=_1a9?bw-_1a9.offsetLeft+5:0;var lw=_1a8?_1a8.offsetLeft+_1a8.offsetWidth+5:0;var tw=this.labelNodeLen||0;_199[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_196.forEach(this.getChildren(),function(_1ab){if(_1ab.resize){_1ab.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _1a3({arrow:"left",label:back,moveTo:this.moveTo,back:!this.moveTo&&!this.href,href:this.href,transition:this.transition,transitionDir:-1,dir:this.isLeftToRight()?"ltr":"rtl"});this.backButton.placeAt(this.domNode,"first");}else{this.backButton.set("label",back);}this.resize();},_setMoveToAttr:function(_1ac){this._set("moveTo",_1ac);if(this.backButton){this.backButton.set("moveTo",_1ac);this.backButton.set("back",!_1ac&&!this.href);}},_setHrefAttr:function(href){this._set("href",href);if(this.backButton){this.backButton.set("href",href);this.backButton.set("back",!this.moveTo&&!href);}},_setTransitionAttr:function(_1ad){this._set("transition",_1ad);if(this.backButton){this.backButton.set("transition",_1ad);}},_setLabelAttr:function(_1ae){this._set("label",_1ae);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_1ae):_1ae;delete this.labelNodeLen;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _1a2({size:30,center:false});_199.add(prog.domNode,this.progStyle);}_19a.place(prog.domNode,this.domNode,"first");prog.start();}else{if(prog){prog.stop();}}this._set("busy",busy);}});return has("dojo-bidi")?_198("dojox.mobile.Heading",[_1a5,_1a4]):_1a5;});},"dojox/mobile/ToolBarButton":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","./sniff","./_ItemBase","dojo/has!dojo-bidi?dojox/mobile/bidi/ToolBarButton"],function(_1af,lang,win,_1b0,_1b1,_1b2,_1b3,has,_1b4,_1b5){var _1b6=_1af(has("dojo-bidi")?"dojox.mobile.NonBidiToolBarButton":"dojox.mobile.ToolBarButton",_1b4,{selected:false,arrow:"",light:true,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){if(!this.label&&this.srcNodeRef){this.label=this.srcNodeRef.innerHTML;}this.label=lang.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_1b1.create("span");_1b3.set(this.domNode,"role","button");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_1b0.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_1b1.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")<10?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_1b0.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_1b1.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_1b1.create("table",{cellPadding:"0",cellSpacing:"0",border:"0",role:"presentation"},this.bodyNode);if(!this.label&&this.arrow){this.tableNode.className="mblToolBarButtonText";}var row=this.tableNode.insertRow(-1);this.iconParentNode=row.insertCell(-1);this.labelNode=row.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";if(this.icon&&this.icon!=="none"&&this.label){_1b0.add(this.domNode,"mblToolBarButtonHasIcon");_1b0.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_1b0.add(this.bodyNode,this.defaultColor);},startup:function(){if(this._started){return;}this.connect(this.domNode,"onkeydown","_onClick");this.inherited(arguments);if(!this._isOnLine){this._isOnLine=true;this.set("icon",this._pendingIcon!==undefined?this._pendingIcon:this.icon);delete this._pendingIcon;}},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}this.defaultClickAction(e);},onClick:function(){},_setLabelAttr:function(text){this.inherited(arguments);_1b0.toggle(this.tableNode,"mblToolBarButtonText",text||this.arrow);},_setSelectedAttr:function(_1b7){var _1b8=function(node,a,b){_1b0.replace(node,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_1b7){_1b0.replace(this.bodyNode,this.selColor,this.defaultColor);if(!(has("ie")<10)&&this.arrowNode){_1b8(this.arrowNode,this.selColor,this.defaultColor);}}else{_1b0.replace(this.bodyNode,this.defaultColor,this.selColor);if(!(has("ie")<10)&&this.arrowNode){_1b8(this.arrowNode,this.defaultColor,this.selColor);}}_1b0.toggle(this.domNode,"mblToolBarButtonSelected",_1b7);_1b0.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_1b7);}});return has("dojo-bidi")?_1af("dojox.mobile.ToolBarButton",[_1b6,_1b5]):_1b6;});},"dojox/mobile/_ItemBase":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/touch","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./iconUtils","./sniff","./viewRegistry","dojo/has!dojo-bidi?dojox/mobile/bidi/_ItemBase"],function(_1b9,_1ba,lang,win,_1bb,_1bc,_1bd,_1be,_1bf,_1c0,_1c1,_1c2,has,_1c3,_1c4){var _1c5=_1ba(has("dojo-bidi")?"dojox.mobile._NonBidiItemBase":"dojox.mobile._ItemBase",[_1c0,_1bf,_1be],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",back:false,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:false,selected:false,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:false,_duration:800,_handleClick:true,buildRendering:function(){this.inherited(arguments);this._isOnLine=this.inheritParams();},startup:function(){if(this._started){return;}if(!this._isOnLine){this.inheritParams();}this._updateHandles();this.inherited(arguments);},inheritParams:function(){var _1c6=this.getParent();if(_1c6){_1b9.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var base=p+"Base",pos=p+"Pos";if(this[p]&&_1c6[base]&&_1c6[base].charAt(_1c6[base].length-1)==="/"){this[p]=_1c6[base]+this[p];}if(!this[p]){this[p]=_1c6[base];}if(!this[pos]){this[pos]=_1c6[pos];}}if(!this[p]){this[p]=_1c6[p];}},this);}return !!_1c6;},_updateHandles:function(){if(this._handleClick&&this._selStartMethod==="touch"){if(!this._onTouchStartHandle){this._onTouchStartHandle=this.connect(this.domNode,_1bc.press,"_onTouchStart");}}else{if(this._onTouchStartHandle){this.disconnect(this._onTouchStartHandle);this._onTouchStartHandle=null;}}},getTransOpts:function(){var opts=this.transitionOptions||{};_1b9.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){opts[p]=opts[p]||this[p];},this);return opts;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){if(this._delayedSelection){this.set("selected",true);}if(this._onTouchEndHandle){this.disconnect(this._onTouchEndHandle);this._onTouchEndHandle=null;}var p=this.getParent();if(this.toggle){this.set("selected",!this._currentSel);}else{if(p&&p.selectOne){this.set("selected",true);}else{if(this._selEndMethod==="touch"){this.set("selected",false);}else{if(this._selEndMethod==="timer"){this.defer(function(){this.set("selected",false);},this._duration);}}}}},makeTransition:function(e){if(this.back&&history){history.back();return;}if(this.href&&this.hrefTarget&&this.hrefTarget!="_self"){win.global.open(this.href,this.hrefTarget||"_blank");this._onNewWindowOpened(e);return;}var opts=this.getTransOpts();var _1c7=!!(opts.moveTo||opts.href||opts.url||opts.target||opts.scene);if(this._prepareForTransition(e,_1c7?opts:null)===false){return;}if(_1c7){this.setTransitionPos(e);new _1c1(this.domNode,opts,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_1c8){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}var _1c9=_1c3.getEnclosingScrollable(this.domNode);if(_1c9&&_1bb.contains(_1c9.containerNode,"mblScrollableScrollTo2")){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_1bc.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_1bc.release,"_onTouchEnd");}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.touchStartY=e.touches?e.touches[0].pageY:e.clientY;this._currentSel=this.selected;if(this._delayedSelection){this._selTimer=this.defer(function(){this.set("selected",true);},100);}else{this.set("selected",true);}},onTouchStart:function(){},_onTouchMove:function(e){var x=e.touches?e.touches[0].pageX:e.clientX;var y=e.touches?e.touches[0].pageY:e.clientY;if(Math.abs(x-this.touchStartX)>=4||Math.abs(y-this.touchStartY)>=4){this.cancel();var p=this.getParent();if(p&&p.selectOne){this._prevSel&&this._prevSel.set("selected",true);}else{this.set("selected",false);}}},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=null;},cancel:function(){if(this._selTimer){this._selTimer.remove();this._selTimer=null;}this._disconnect();},_onTouchEnd:function(e){if(!this._selTimer&&this._delayedSelection){return;}this.cancel();this._onClick(e);},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||_1bb.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_1ca,href,url,_1cb){var opts=(_1ca&&typeof (_1ca)==="object")?_1ca:{moveTo:_1ca,href:href,url:url,scene:_1cb,transition:this.transition,transitionDir:this.transitionDir};new _1c1(this.domNode,opts).dispatch();},_setIconAttr:function(icon){if(!this._isOnLine){this._pendingIcon=icon;return;}this._set("icon",icon);this.iconNode=_1c2.setIcon(icon,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(text){this._set("label",text);this.labelNode.innerHTML=this._cv?this._cv(text):text;},_setSelectedAttr:function(_1cc){if(_1cc){var p=this.getParent();if(p&&p.selectOne){var arr=_1b9.filter(p.getChildren(),function(w){return w.selected;});_1b9.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_1cc);}});return has("dojo-bidi")?_1ba("dojox.mobile._ItemBase",[_1c5,_1c4]):_1c5;});},"dojox/mobile/iconUtils":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff"],function(_1cd,_1ce,_1cf,_1d0,lang,win,_1d1,_1d2,_1d3,has){var dm=lang.getObject("dojox.mobile",true);var _1d4=function(){this.setupSpriteIcon=function(_1d5,_1d6){if(_1d5&&_1d6){var arr=_1cd.map(_1d6.split(/[ ,]/),function(item){return item-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_1d3.set(_1d5,{position:"absolute",clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_1d5.parentNode?_1d3.get(_1d5,"top"):0)-t+"px",left:-l+"px"});_1d1.add(_1d5,"mblSpriteIcon");}};this.createDomButton=function(_1d7,_1d8,_1d9){if(!this._domButtons){if(has("webkit")){var _1da=function(_1db,dic){var i,j;if(!_1db){var _1dc={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_1da(ss[i],_1dc);}return _1dc;}var _1dd=_1db.cssRules||[];for(i=0;i<_1dd.length;i++){var rule=_1dd[i];if(rule.href&&rule.styleSheet){_1da(rule.styleSheet,dic);}else{if(rule.selectorText){var sels=rule.selectorText.split(/,/);for(j=0;j<sels.length;j++){var sel=sels[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;}}}}}}return dic;};this._domButtons=_1da();}else{this._domButtons={};}}var s=_1d7.className;var node=_1d9||_1d7;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _1de=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(this._domButtons[_1de]!==undefined){nDiv=this._domButtons[_1de];}}var _1df=null;if(has("bb")&&_1ce.mblBBBoxShadowWorkaround!==false){_1df={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_1d2.create("div",_1df,p);}if(_1d9){setTimeout(function(){_1d1.remove(_1d7,_1de);},0);_1d1.add(_1d9,_1de);}}else{if(s.indexOf(".")!==-1){_1d2.create("img",{src:s},node);}else{return null;}}_1d1.add(node,"mblDomButton");!!_1d8&&_1d3.set(node,_1d8);return node;};this.createIcon=function(icon,_1e0,node,_1e1,_1e2,_1e3,pos){_1e1=_1e1||"";if(icon&&icon.indexOf("mblDomButton")===0){if(!node){node=_1d2.create("div",null,_1e3||_1e2,pos);}else{if(node.className.match(/(mblDomButton\w+)/)){_1d1.remove(node,RegExp.$1);}}node.title=_1e1;_1d1.add(node,icon);this.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_1d2.create("img",{alt:_1e1},_1e3||_1e2,pos);}node.src=(icon||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(node,_1e0);if(_1e0&&_1e2){var arr=_1e0.split(/[ ,]/);_1d3.set(_1e2,{position:"relative",width:arr[2]+"px",height:arr[3]+"px"});_1d1.add(_1e2,"mblSpriteIconParent");}_1cf.connect(node,"ondragstart",_1d0,"stop");}}return node;};this.iconWrapper=false;this.setIcon=function(icon,_1e4,_1e5,alt,_1e6,_1e7,pos){if(!_1e6||!icon&&!_1e5){return null;}if(icon&&icon!=="none"){if(!this.iconWrapper&&icon.indexOf("mblDomButton")!==0&&!_1e4){if(_1e5&&_1e5.tagName==="DIV"){_1d2.destroy(_1e5);_1e5=null;}_1e5=this.createIcon(icon,null,_1e5,alt,_1e6,_1e7,pos);_1d1.add(_1e5,"mblImageIcon");}else{if(_1e5&&_1e5.tagName==="IMG"){_1d2.destroy(_1e5);_1e5=null;}_1e5&&_1d2.empty(_1e5);if(!_1e5){_1e5=_1d2.create("div",null,_1e7||_1e6,pos);}this.createIcon(icon,_1e4,null,null,_1e5);if(alt){_1e5.title=alt;}}_1d1.remove(_1e6,"mblNoIcon");return _1e5;}else{_1d2.destroy(_1e5);_1d1.add(_1e6,"mblNoIcon");return null;}};};return new _1d4();});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/declare","dojo/dom-class","./Container"],function(_1e8,_1e9,_1ea){return _1e8("dojox.mobile.RoundRect",_1ea,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_1e9.add(this.domNode,"mblShadow");}}});});},"dojox/mobile/Container":function(){define(["dojo/_base/declare","dijit/_Container","./Pane"],function(_1eb,_1ec,Pane){return _1eb("dojox.mobile.Container",[Pane,_1ec],{baseClass:"mblContainer"});});},"dojox/mobile/Pane":function(){define(["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_1ed,_1ee,_1ef,_1f0){return _1ee("dojox.mobile.Pane",[_1f0,_1ef],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_1ed.forEach(this.getChildren(),function(_1f1){if(_1f1.resize){_1f1.resize();}});}});});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase","dojo/has","dojo/has!dojo-bidi?dojox/mobile/bidi/RoundRectCategory"],function(_1f2,win,_1f3,_1f4,_1f5,has,_1f6){var _1f7=_1f2(has("dojo-bidi")?"dojox.mobile.NonBidiRoundRectCategory":"dojox.mobile.RoundRectCategory",[_1f5,_1f4],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _1f8=this.domNode=this.containerNode=this.srcNodeRef||_1f3.create(this.tag);this.inherited(arguments);if(!this.label&&_1f8.childNodes.length===1&&_1f8.firstChild.nodeType===3){this.label=_1f8.firstChild.nodeValue;}},_setLabelAttr:function(_1f9){this.label=_1f9;this.domNode.innerHTML=this._cv?this._cv(_1f9):_1f9;}});return has("dojo-bidi")?_1f2("dojox.mobile.RoundRectCategory",[_1f7,_1f6]):_1f7;});},"dojox/mobile/EdgeToEdgeCategory":function(){define(["dojo/_base/declare","./RoundRectCategory"],function(_1fa,_1fb){return _1fa("dojox.mobile.EdgeToEdgeCategory",_1fb,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";if(this.type&&this.type=="long"){this.domNode.className+=" mblEdgeToEdgeCategoryLong";}}});});},"dojox/mobile/RoundRectList":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-construct","dojo/dom-attr","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_1fc,_1fd,_1fe,lang,win,_1ff,_200,_201,_202,_203){return _1fd("dojox.mobile.RoundRectList",[_203,_202,_201],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,syncWithViews:false,editable:false,tag:"ul",editableMixinClass:"dojox/mobile/_EditableListMixin",baseClass:"mblRoundRectList",filterBoxClass:"mblFilteredRoundRectListSearchBox",buildRendering:function(){this.domNode=this.srcNodeRef||_1ff.create(this.tag);if(this.select){_200.set(this.domNode,"role","listbox");if(this.select==="multiple"){_200.set(this.domNode,"aria-multiselectable","true");}}this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],lang.hitch(this,function(_204){_1fd.safeMixin(this,new _204());}));}this.connect(this.domNode,"onselectstart",_1fe.stop);if(this.syncWithViews){var f=function(view,_205,dir,_206,_207,_208){var _209=_1fc.filter(this.getChildren(),function(w){return w.moveTo==="#"+view.id||w.moveTo===view.id;})[0];if(_209){_209.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_1fc.forEach(this.getChildren(),function(_20a){if(_20a.resize){_20a.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_20b){this._set("stateful",_20b);this.selectOne=_20b;_1fc.forEach(this.getChildren(),function(_20c){_20c.setArrow&&_20c.setArrow();});},deselectItem:function(item){item.set("selected",false);},deselectAll:function(){_1fc.forEach(this.getChildren(),function(_20d){_20d.set("selected",false);});},selectItem:function(item){item.set("selected",true);}});});},"dojox/mobile/EdgeToEdgeList":function(){define(["dojo/_base/declare","./RoundRectList"],function(_20e,_20f){return _20e("dojox.mobile.EdgeToEdgeList",_20f,{filterBoxClass:"mblFilteredEdgeToEdgeListSearchBox",buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/ListItem":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","dijit/registry","dijit/_WidgetBase","./iconUtils","./_ItemBase","./ProgressIndicator","dojo/has","dojo/has!dojo-bidi?dojox/mobile/bidi/ListItem"],function(_210,_211,lang,_212,_213,_214,_215,_216,_217,_218,_219,_21a,has,_21b){var _21c=_211(has("dojo-bidi")?"dojox.mobile.NonBidiListItem":"dojox.mobile.ListItem",_219,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:false,noArrow:false,checked:false,arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",header:false,tag:"li",busy:false,progStyle:"",layoutOnResize:false,paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:true,_selClass:"mblListItemSelected",buildRendering:function(){this._templated=!!this.templateString;if(!this._templated){this.domNode=this.containerNode=this.srcNodeRef||_213.create(this.tag);}this.inherited(arguments);if(this.selected){_212.add(this.domNode,this._selClass);}if(this.header){_212.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}if(!this._templated){this.labelNode=_213.create("div",{className:"mblListItemLabel"});var ref=this.srcNodeRef;if(ref&&ref.childNodes.length===1&&ref.firstChild.nodeType===3){this.labelNode.appendChild(ref.firstChild);}this.domNode.appendChild(this.labelNode);}this._layoutChildren=[];},startup:function(){if(this._started){return;}var _21d=this.getParent();var opts=this.getTransOpts();if((!this._templated||this.labelNode)&&this.anchorLabel){this.labelNode.style.display="inline";this.labelNode.style.cursor="pointer";this.connect(this.labelNode,"onclick","_onClick");this.onTouchStart=function(e){return (e.target!==this.labelNode);};}this.inherited(arguments);if(_212.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_212.add(this.domNode,"mblVariableHeight");this.defer("layoutVariableHeight");}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this._pending_icon!==undefined?this._pending_icon:this.icon,deleteIcon:this._pending_deleteIcon!==undefined?this._pending_deleteIcon:this.deleteIcon,rightIcon:this._pending_rightIcon!==undefined?this._pending_rightIcon:this.rightIcon,rightIcon2:this._pending_rightIcon2!==undefined?this._pending_rightIcon2:this.rightIcon2,uncheckIcon:this._pending_uncheckIcon!==undefined?this._pending_uncheckIcon:this.uncheckIcon});delete this._pending_icon;delete this._pending_deleteIcon;delete this._pending_rightIcon;delete this._pending_rightIcon2;delete this._pending_uncheckIcon;}if(_21d&&_21d.select){this.set("checked",this._pendingChecked!==undefined?this._pendingChecked:this.checked);_215.set(this.domNode,"role","option");if(this._pendingChecked||this.checked){_215.set(this.domNode,"aria-selected","true");}delete this._pendingChecked;}this.setArrow();this.layoutChildren();},_updateHandles:function(){var _21e=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable||(_21e&&_21e.select)){if(!this._keydownHandle){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}this._handleClick=true;}else{if(this._keydownHandle){this.disconnect(this._keydownHandle);this._keydownHandle=null;}this._handleClick=false;}this.inherited(arguments);},layoutChildren:function(){var _21f;_210.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _220=n.getAttribute("layout")||n.getAttribute("data-mobile-layout")||(_216.byNode(n)||{}).layout;if(_220){_212.add(n,"mblListItemLayout"+_220.charAt(0).toUpperCase()+_220.substring(1));this._layoutChildren.push(n);if(_220==="center"){_21f=n;}}},this);if(_21f){this.domNode.insertBefore(_21f,this.domNode.firstChild);}},resize:function(){if(this.layoutOnResize&&this.variableHeight){this.layoutVariableHeight();}if(!this._templated||this.labelNode){this.labelNode.style.display=this.labelNode.firstChild?"block":"inline";}},_onTouchStart:function(e){if(e.target.getAttribute("preventTouch")||e.target.getAttribute("data-mobile-prevent-touch")||(_216.getEnclosingWidget(e.target)||{}).preventTouch){return;}this.inherited(arguments);},_onClick:function(e){if(this.getParent().isEditing||e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}var n=this.labelNode;if((this._templated||n)&&this.anchorLabel&&e.currentTarget===n){_212.add(n,"mblListItemLabelSelected");this.defer(function(){_212.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _221=this.getParent();if(_221.select){if(_221.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_221.select==="multiple"){this.set("checked",!this.checked);}}}this.defaultClickAction(e);},onClick:function(){},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.domNode.offsetHeight;if(h===this.domNodeHeight){return;}this.domNodeHeight=h;_210.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _222=this.domNode;var f=function(){var t=Math.round((_222.offsetHeight-n.offsetHeight)/2)-_214.get(_222,"paddingTop");n.style.marginTop=t+"px";};if(n.offsetHeight===0&&n.tagName==="IMG"){n.onload=f;}else{f();}}},this);},setArrow:function(){if(this.checked){return;}var c="";var _223=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable){if(!this.noArrow&&!(_223&&_223.selectOne)){c=this.arrowClass||"mblDomButtonArrow";_215.set(this.domNode,"role","button");}}if(c){this._setRightIconAttr(c);}},_findRef:function(type){var i,node,list=["deleteIcon","icon","rightIcon","uncheckIcon","rightIcon2","rightText"];for(i=_210.indexOf(list,type)+1;i<list.length;i++){node=this[list[i]+"Node"];if(node){return node;}}for(i=list.length-1;i>=0;i--){node=this[list[i]+"Node"];if(node){return node.nextSibling;}}return this.domNode.firstChild;},_setIcon:function(icon,type){if(!this._isOnLine){this["_pending_"+type]=icon;return;}this._set(type,icon);this[type+"Node"]=_218.setIcon(icon,this[type+"Pos"],this[type+"Node"],this[type+"Title"]||this.alt,this.domNode,this._findRef(type),"before");if(this[type+"Node"]){var cap=type.charAt(0).toUpperCase()+type.substring(1);_212.add(this[type+"Node"],"mblListItem"+cap);}var role=this[type+"Role"];if(role){this[type+"Node"].setAttribute("role",role);}},_setDeleteIconAttr:function(icon){this._setIcon(icon,"deleteIcon");},_setIconAttr:function(icon){this._setIcon(icon,"icon");},_setRightTextAttr:function(text){if(!this._templated&&!this.rightTextNode){this.rightTextNode=_213.create("div",{className:"mblListItemRightText"},this.labelNode,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){this._setIcon(icon,"rightIcon");},_setUncheckIconAttr:function(icon){this._setIcon(icon,"uncheckIcon");},_setRightIcon2Attr:function(icon){this._setIcon(icon,"rightIcon2");},_setCheckedAttr:function(_224){if(!this._isOnLine){this._pendingChecked=_224;return;}var _225=this.getParent();if(_225&&_225.select==="single"&&_224){_210.forEach(_225.getChildren(),function(_226){_226!==this&&_226.checked&&_226.set("checked",false)&&_215.set(_226.domNode,"aria-selected","false");},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_212.toggle(this.domNode,"mblListItemChecked",_224);_212.toggle(this.domNode,"mblListItemUnchecked",!_224);_212.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_224)?"absolute":"";if(_225&&this.checked!==_224){_225.onCheckStateChanged(this,_224);}this._set("checked",_224);_215.set(this.domNode,"aria-selected",_224?"true":"false");},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!this._progNode){this._progNode=_213.create("div",{className:"mblListItemIcon"});prog=this._prog=new _21a({size:25,center:false,removeOnStop:false});_212.add(prog.domNode,this.progStyle);this._progNode.appendChild(prog.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_213.place(this._progNode,this._findRef("icon"),"before");}prog.start();}else{if(this._progNode){if(this.iconNode){this.domNode.replaceChild(this.iconNode,this._progNode);}else{this.domNode.removeChild(this._progNode);}prog.stop();}}this._set("busy",busy);},_setSelectedAttr:function(_227){this.inherited(arguments);_212.toggle(this.domNode,this._selClass,_227);},_setClickableAttr:function(_228){this._set("clickable",_228);this._updateHandles();},_setMoveToAttr:function(_229){this._set("moveTo",_229);this._updateHandles();},_setHrefAttr:function(href){this._set("href",href);this._updateHandles();},_setUrlAttr:function(url){this._set("url",url);this._updateHandles();}});_21c.ChildWidgetProperties={layout:"",preventTouch:false};lang.extend(_217,_21c.ChildWidgetProperties);return has("dojo-bidi")?_211("dojox.mobile.ListItem",[_21c,_21b]):_21c;});},"dojox/mobile/Switch":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","dojo/touch","dijit/_Contained","dijit/_WidgetBase","./sniff","./_maskUtils","./common","dojo/has!dojo-bidi?dojox/mobile/bidi/Switch"],function(_22a,_22b,_22c,_22d,win,_22e,_22f,_230,_231,_232,_233,_234,has,_235,dm,_236){var _237=_22c(has("dojo-bidi")?"dojox.mobile.NonBidiSwitch":"dojox.mobile.Switch",[_234,_233],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",buildRendering:function(){if(!this.templateString){this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_22f.create("span");}if(typeof this.domNode.style.msTouchAction!="undefined"){this.domNode.style.msTouchAction="none";}this.inherited(arguments);if(!this.templateString){var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];if((c=c.match(/mblSw.*Shape\d*/))){this.shape=c;}_22e.add(this.domNode,this.shape);var _238=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\""+_238+"></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];}_231.set(this.domNode,"role","checkbox");_231.set(this.domNode,"aria-checked",(this.value==="on")?"true":"false");this.switchNode=this.domNode;if(has("windows-theme")){var _239=_22f.create("div",{className:"mblSwitchContainer"});this.labelNode=_22f.create("label",{"class":"mblSwitchLabel","for":this.id},_239);_239.appendChild(this.domNode.cloneNode(true));this.domNode=_239;this.focusNode=_239.childNodes[1];this.labelNode.innerHTML=(this.value=="off")?this.rightLabel:this.leftLabel;this.switchNode=this.domNode.childNodes[1];var _23a=this.inner=this.domNode.childNodes[1].firstChild;this.left=_23a.childNodes[0];this.right=_23a.childNodes[1];this.knob=_23a.childNodes[2];this.input=_23a.childNodes[3];}},postCreate:function(){this.connect(this.switchNode,"onclick","_onClick");this.connect(this.switchNode,"onkeydown","_onClick");this._startHandle=this.connect(this.switchNode,_232.press,"onTouchStart");this._initialValue=this.value;},startup:function(){if(!this._started){this.resize();}},resize:function(){if(has("windows-theme")){_230.set(this.domNode,"width","100%");}else{var _23b=_230.get(this.domNode,"width");var _23c=_23b+"px";var _23d=(_23b-_230.get(this.knob,"width"))+"px";_230.set(this.left,"width",_23c);_230.set(this.right,this.isLeftToRight()?{width:_23c,left:_23d}:{width:_23c});_230.set(this.left.firstChild,"width",_23d);_230.set(this.right.firstChild,"width",_23d);_230.set(this.knob,"left",_23d);if(this.value=="off"){_230.set(this.inner,"left",this.isLeftToRight()?("-"+_23d):0);}this._hasMaskImage=false;this._createMaskImage();}},_changeState:function(_23e,anim){var on=(_23e==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_22e.add(this.switchNode,"mblSwitchAnimation");}_22e.remove(this.switchNode,on?"mblSwitchOff":"mblSwitchOn");_22e.add(this.switchNode,on?"mblSwitchOn":"mblSwitchOff");_231.set(this.switchNode,"aria-checked",on?"true":"false");if(!on&&!has("windows-theme")){this.inner.style.left=(this.isLeftToRight()?(-(_230.get(this.domNode,"width")-_230.get(this.knob,"width"))):0)+"px";}var _23f=this;_23f.defer(function(){_23f.left.style.display=on?"":"none";_23f.right.style.display=!on?"":"none";_22e.remove(_23f.switchNode,"mblSwitchAnimation");},anim?300:0);},_createMaskImage:function(){if(this._timer){this._timer.remove();delete this._timer;}if(this._hasMaskImage){return;}var w=_230.get(this.domNode,"width"),h=_230.get(this.domNode,"height");this._width=(w-_230.get(this.knob,"width"));this._hasMaskImage=true;if(!(has("mask-image"))){return;}var rDef=_230.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _240=rDef.split(" ");var rx=parseFloat(_240[0]),ry=(_240.length==1)?rx:parseFloat(_240[1]);var id=(this.shape+"Mask"+w+h+rx+ry).replace(/\./,"_");_235.createRoundMask(this.switchNode,0,0,0,0,w,h,rx,ry,1);},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}if(this._moved){return;}this._set("value",this.input.value=(this.value=="on")?"off":"on");this._changeState(this.value,true);this.onStateChanged(this.value);},onClick:function(){},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[this.connect(this.inner,_232.move,"onTouchMove"),this.connect(win.doc,_232.release,"onTouchEnd")];if(has("windows-theme")){this._conn.push(this.connect(win.doc,"MSPointerCancel","onTouchEnd"));}}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_22d.stop(e);this._createMaskImage();},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return;}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){_22a.forEach(this._conn,_22b.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")&&has("clicks-prevented")){dm._sendClick(this.inner,e);}return;}var _241=(this.inner.offsetLeft<-(this._width/2))?"off":"on";_241=this._newState(_241);this._changeState(_241,true);if(_241!=this.value){this._set("value",this.input.value=_241);this.onStateChanged(_241);}},_newState:function(_242){return _242;},onStateChanged:function(_243){if(this.labelNode){this.labelNode.innerHTML=_243=="off"?this.rightLabel:this.leftLabel;}},_setValueAttr:function(_244){this._changeState(_244,false);if(this.value!=_244){this._set("value",this.input.value=_244);this.onStateChanged(_244);}},_setLeftLabelAttr:function(_245){this.leftLabel=_245;this.left.firstChild.innerHTML=this._cv?this._cv(_245):_245;},_setRightLabelAttr:function(_246){this.rightLabel=_246;this.right.firstChild.innerHTML=this._cv?this._cv(_246):_246;},reset:function(){this.set("value",this._initialValue);}});return has("dojo-bidi")?_22c("dojox.mobile.Switch",[_237,_236]):_237;});},"dojox/mobile/_maskUtils":function(){define(["dojo/_base/window","dojo/dom-style","./sniff"],function(win,_247,has){has.add("mask-image-css",function(_248,doc,elt){return typeof doc.getCSSCanvasContext==="function"&&typeof elt.style.webkitMaskImage!=="undefined";});has.add("mask-image",function(){return has("mask-image-css")||has("svg");});var _249={};return {createRoundMask:function(node,x,y,r,b,w,h,rx,ry,e){var tw=x+w+r;var th=y+h+b;if(has("mask-image-css")){var id=("DojoMobileMask"+x+y+w+h+rx+ry).replace(/\./g,"_");if(!_249[id]){_249[id]=1;var ctx=win.doc.getCSSCanvasContext("2d",id,tw,th);ctx.beginPath();if(rx==ry){if(rx==2&&w==5){ctx.fillStyle="rgba(0,0,0,0.5)";ctx.fillRect(1,0,3,2);ctx.fillRect(0,1,5,1);ctx.fillRect(0,h-2,5,1);ctx.fillRect(1,h-1,3,2);ctx.fillStyle="rgb(0,0,0)";ctx.fillRect(0,2,5,h-4);}else{if(rx==2&&h==5){ctx.fillStyle="rgba(0,0,0,0.5)";ctx.fillRect(0,1,2,3);ctx.fillRect(1,0,1,5);ctx.fillRect(w-2,0,1,5);ctx.fillRect(w-1,1,2,3);ctx.fillStyle="rgb(0,0,0)";ctx.fillRect(2,0,w-4,5);}else{ctx.fillStyle="#000000";ctx.moveTo(x+rx,y);ctx.arcTo(x,y,x,y+rx,rx);ctx.lineTo(x,y+h-rx);ctx.arcTo(x,y+h,x+rx,y+h,rx);ctx.lineTo(x+w-rx,y+h);ctx.arcTo(x+w,y+h,x+w,y+rx,rx);ctx.lineTo(x+w,y+rx);ctx.arcTo(x+w,y,x+w-rx,y,rx);}}}else{var pi=Math.PI;ctx.scale(1,ry/rx);ctx.moveTo(x+rx,y);ctx.arc(x+rx,y+rx,rx,1.5*pi,0.5*pi,true);ctx.lineTo(x+w-rx,y+2*rx);ctx.arc(x+w-rx,y+rx,rx,0.5*pi,1.5*pi,true);}ctx.closePath();ctx.fill();}node.style.webkitMaskImage="-webkit-canvas("+id+")";}else{if(has("svg")){if(node._svgMask){node.removeChild(node._svgMask);}var bg=null;for(var p=node.parentNode;p;p=p.parentNode){bg=_247.getComputedStyle(p).backgroundColor;if(bg&&bg!="transparent"&&!bg.match(/rgba\(.*,\s*0\s*\)/)){break;}}var _24a="http://www.w3.org/2000/svg";var svg=win.doc.createElementNS(_24a,"svg");svg.setAttribute("width",tw);svg.setAttribute("height",th);svg.style.position="absolute";svg.style.pointerEvents="none";svg.style.opacity="1";svg.style.zIndex="2147483647";var path=win.doc.createElementNS(_24a,"path");e=e||0;rx+=e;ry+=e;var d=" M"+(x+rx-e)+","+(y-e)+" a"+rx+","+ry+" 0 0,0 "+(-rx)+","+ry+" v"+(-ry)+" h"+rx+" Z"+" M"+(x-e)+","+(y+h-ry+e)+" a"+rx+","+ry+" 0 0,0 "+rx+","+ry+" h"+(-rx)+" v"+(-ry)+" z"+" M"+(x+w-rx+e)+","+(y+h+e)+" a"+rx+","+ry+" 0 0,0 "+rx+","+(-ry)+" v"+ry+" h"+(-rx)+" z"+" M"+(x+w+e)+","+(y+ry-e)+" a"+rx+","+ry+" 0 0,0 "+(-rx)+","+(-ry)+" h"+rx+" v"+ry+" z";if(y>0){d+=" M0,0 h"+tw+" v"+y+" h"+(-tw)+" z";}if(b>0){d+=" M0,"+(y+h)+" h"+tw+" v"+b+" h"+(-tw)+" z";}path.setAttribute("d",d);path.setAttribute("fill",bg);path.setAttribute("stroke",bg);path.style.opacity="1";svg.appendChild(path);node._svgMask=svg;node.appendChild(svg);}}}};});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_24b,lang,base){lang.getObject("mobile",true,_24b);return _24b.mobile;});
|