
__d('setImmediate',['TimerStorage','setImmediateAcrossTransitions'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();f.exports=function(){for(var h=arguments.length,i=Array(h),j=0;j<h;j++)i[j]=arguments[j];var k,l=i[0];i[0]=function(){c('TimerStorage').unset(c('TimerStorage').IMMEDIATE,k);Function.prototype.apply.call(l,this,arguments);};k=c('setImmediateAcrossTransitions').apply(b,i);c('TimerStorage').set(c('TimerStorage').IMMEDIATE,k);return k;}.bind(this);}),null);
__d('Layer',['KeyStatus','ArbiterMixin','BehaviorsMixin','BootloadedReact','ContextualThing','CSS','DataStore','DOM','Event','HTML','KeyEventController','Parent','Style','ge','isNode','mixin','removeFromArray','setImmediate'],(function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();c('KeyStatus');var j=[];h=babelHelpers.inherits(k,c('mixin')(c('ArbiterMixin'),c('BehaviorsMixin')));i=h&&h.prototype;function k(n,o){'use strict';i.constructor.call(this);this._config=n||{};if(o){this._configure(this._config,o);var p=this._config.addedBehaviors||[];this.enableBehaviors(this._getDefaultBehaviors().concat(p));}}k.prototype.init=function(n){'use strict';this._configure(this._config,n);var o=this._config.addedBehaviors||[];this.enableBehaviors(this._getDefaultBehaviors().concat(o));this._initialized=true;return this;};k.prototype._configure=function(n,o){'use strict';if(o){var p=c('isNode')(o),q=typeof o==='string'||c('HTML').isHTML(o);this.containsReactComponent=c('BootloadedReact').isValidElement(o);if(q){o=c('HTML')(o).getRootNode();}else if(this.containsReactComponent){var r=document.createElement('div');c('BootloadedReact').render(o,r,function(){this.inform('reactshow');}.bind(this));o=this._reactContainer=r;}}this._root=this._buildWrapper(n,o);if(n.attributes)c('DOM').setAttributes(this._root,n.attributes);if(n.classNames)n.classNames.forEach(c('CSS').addClass.bind(null,this._root));c('CSS').addClass(this._root,'uiLayer');if(n.causalElement)this._causalElement=c('ge')(n.causalElement);if(n.permanent)this._permanent=n.permanent;c('DataStore').set(this._root,'layer',this);};k.prototype._getDefaultBehaviors=function(){'use strict';return [];};k.prototype.getCausalElement=function(){'use strict';return this._causalElement;};k.prototype.setCausalElement=function(n){'use strict';this._causalElement=n;return this;};k.prototype.getInsertParent=function(){'use strict';return this._insertParent||document.body;};k.prototype.getRoot=function(){'use strict';return this._root;};k.prototype.getContentRoot=function(){'use strict';return th