2017-01-20 18:29:59 +01:00
|
|
|
define("dojo/parser",["require","./_base/kernel","./_base/lang","./_base/array","./_base/config","./dom","./_base/window","./_base/url","./aspect","./promise/all","./date/stamp","./Deferred","./has","./query","./on","./ready"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10){new Date("X");function _11(_12){return eval("("+_12+")");};var _13=0;_9.after(_3,"extend",function(){_13++;},true);function _14(_15){var map=_15._nameCaseMap,_16=_15.prototype;if(!map||map._extendCnt<_13){map=_15._nameCaseMap={};for(var _17 in _16){if(_17.charAt(0)==="_"){continue;}map[_17.toLowerCase()]=_17;}map._extendCnt=_13;}return map;};function _18(_19,_1a){if(!_1a){_1a=_1;}var _1b=_1a._dojoParserCtorMap||(_1a._dojoParserCtorMap={});var ts=_19.join();if(!_1b[ts]){var _1c=[];for(var i=0,l=_19.length;i<l;i++){var t=_19[i];_1c[_1c.length]=(_1b[t]=_1b[t]||(_3.getObject(t)||(~t.indexOf("/")&&_1a(t))));}var _1d=_1c.shift();_1b[ts]=_1c.length?(_1d.createSubclass?_1d.createSubclass(_1c):_1d.extend.apply(_1d,_1c)):_1d;}return _1b[ts];};var _1e={_clearCache:function(){_13++;_ctorMap={};},_functionFromScript:function(_1f,_20){var _21="",_22="",_23=(_1f.getAttribute(_20+"args")||_1f.getAttribute("args")),_24=_1f.getAttribute("with");var _25=(_23||"").split(/\s*,\s*/);if(_24&&_24.length){_4.forEach(_24.split(/\s*,\s*/),function(_26){_21+="with("+_26+"){";_22+="}";});}return new Function(_25,_21+_1f.innerHTML+_22);},instantiate:function(_27,_28,_29){_28=_28||{};_29=_29||{};var _2a=(_29.scope||_2._scopeName)+"Type",_2b="data-"+(_29.scope||_2._scopeName)+"-",_2c=_2b+"type",_2d=_2b+"mixins";var _2e=[];_4.forEach(_27,function(_2f){var _30=_2a in _28?_28[_2a]:_2f.getAttribute(_2c)||_2f.getAttribute(_2a);if(_30){var _31=_2f.getAttribute(_2d),_32=_31?[_30].concat(_31.split(/\s*,\s*/)):[_30];_2e.push({node:_2f,types:_32});}});return this._instantiate(_2e,_28,_29);},_instantiate:function(_33,_34,_35,_36){var _37=_4.map(_33,function(obj){var _38=obj.ctor||_18(obj.types,_35.contextRequire);if(!_38){throw new Error("Unable to resolve constructor for: '"+obj.types.join()+"'");}return this.construct(_38,obj.node,_34,_35,obj.scripts,obj.inherited);},this);function _39(_3a){if(!_34._started&&!_35.noStart){_4.forEach(_3a,function(_3b){if(typeof _3b.startup==="function"&&!_3b._started){_3b.startup();}});}return _3a;};if(_36){return _a(_37).then(_39);}else{return _39(_37);}},construct:function(_3c,_3d,_3e,_3f,_40,_41){var _42=_3c&&_3c.prototype;_3f=_3f||{};var _43={};if(_3f.defaults){_3.mixin(_43,_3f.defaults);}if(_41){_3.mixin(_43,_41);}var _44;if(_d("dom-attributes-explicit")){_44=_3d.attributes;}else{if(_d("dom-attributes-specified-flag")){_44=_4.filter(_3d.attributes,function(a){return a.specified;});}else{var _45=/^input$|^img$/i.test(_3d.nodeName)?_3d:_3d.cloneNode(false),_46=_45.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");_44=_4.map(_46.split(/\s+/),function(_47){var _48=_47.toLowerCase();return {name:_47,value:(_3d.nodeName=="LI"&&_47=="value")||_48=="enctype"?_3d.getAttribute(_48):_3d.getAttributeNode(_48).value};});}}var _49=_3f.scope||_2._scopeName,_4a="data-"+_49+"-",_4b={};if(_49!=="dojo"){_4b[_4a+"props"]="data-dojo-props";_4b[_4a+"type"]="data-dojo-type";_4b[_4a+"mixins"]="data-dojo-mixins";_4b[_49+"type"]="dojotype";_4b[_4a+"id"]="data-dojo-id";}var i=0,_4c,_4d=[],_4e,_4f;while(_4c=_44[i++]){var _50=_4c.name,_51=_50.toLowerCase(),_52=_4c.value;switch(_4b[_51]||_51){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":_4f=_52;break;case "data-dojo-id":case "jsid":_4e=_52;break;case "data-dojo-attach-point":case "dojoattachpoint":_43.dojoAttachPoint=_52;break;case "data-dojo-attach-event":case "dojoattachevent":_43.dojoAttachEvent=_52;break;case "class":_43["class"]=_3d.className;break;case "style":_43["style"]=_3d.style&&_3d.style.cssText;break;default:if(!(_50 in _42)){var map=_14(_3c);_50=map[_51]||_50;}if(_50 in _42){switch(typeof _42[_50]){case "string":_43[_50]=_52;break;case "number":_43[_50]=_52.length?Number(_52):NaN;break;case "boolean":_43
|