define("Olives/OObject",["StateMachine","Store","Olives/Plugins","Olives/DomUtils","Tools"],function(f,g,i,k,d){returnfunction(a){varc=function(a){varb=j||document.createElement("div");if(a.template){typeofa.template=="string"?b.innerHTML=a.template.trim():a.templateinstanceofHTMLElement&&b.appendChild(a.template);if(b.childNodes.length>1)throwError("UI.template should have only one parent node");elsea.dom=b.childNodes[0];a.plugins.apply(a.dom)}elsethrowError("UI.template must be set prior to render");
define("Olives/UI-plugin",["Olives/OObject","Tools"],function(f,g){returnfunction(i){vark={};this.place=function(d,a){if(k[a]instanceoff)k[a].place(d);elsethrowError(a+" is not an OObject UI in place:"+a);};this.set=function(d,a){returntypeofd=="string"&&ainstanceoff?(k[d]=a,true):false};this.setAll=function(d){g.loop(d,function(a,c){this.set(c,a)},this)};this.get=function(d){returnk[d]};this.setAll(i)}});
s[i])i=z(e,a),b.depCallbacks[g](i);returnc?m[c]:void0}}functionA(){varb=p.waitSeconds*1E3,a=b&&g.startTime+b<(newDate).getTime(),b="",c=!1,h=!1,j;if(!(g.pausedCount>0)){if(p.priorityWait)if(k())w();elsereturn;for(jins)if(!(jinK)&&(c=!0,!s[j]))if(a)b+=j+"";else{h=!0;break}if(c||g.waitCount){if(a&&b)returnj=N("timeout","Load timeout for modules: "+b),j.requireType="timeout",j.requireModules=b,d.onError(j);if(h||g.scriptCount){if((G||ca)&&!W)W=setTimeout(function(){W=0;A()},50)}else{if(g.waitCount){for(H=
b,c);c=h(b,c);b=c.fullName;return!(binm)?d.onError(N("notloaded","Module name '"+c.fullName+"' has not been loaded yet for context: "+a)):m[b]}(b&&b.length||c)&&x(null,b,c,f);if(!g.requireWait)for(;!g.scriptCount&&g.paused.length;)g.takeGlobalQueue(),w();returng.require},takeGlobalQueue:function(){U.length&&(ha.apply(g.defQueue,[g.defQueue.length-1,0].concat(U)),U=[])},completeLoad:function(b){vara;for(g.takeGlobalQueue();P.length;)if(a=P.shift(),a[0]===null){a[0]=b;break}elseif(a[0]===b)break;