text: !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports["react-async-bootstrapper"]=n(require("react")):t["react-async-bootstrapper"]=n(t.React)}(this,function(t){return function(t){function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=0)}([function(t,n,e){"use strict";function o(t,n){var e=function(t,n){return!n||"function"!=typeof n.asyncBootstrap||n.asyncBootstrap()};return(0,c.default)(t,e,{},n)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var r=e(1),c=function(t){return t&&t.__esModule?t:{default:t}}(r)},function(t,n,e){"use strict";function o(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c;return new Promise(function(c){var s=function(t,e,s){var a=function(e){e||c();var l=t(),a="function"==typeof s?s():s;if(null==l)c();else if(r.Children.count(l)){var f=function(t){return t?o(t,n,a,u):void 0};i(r.Children.map(l,function(t){return t}),f).then(c)}else o(l,n,a,u).then(c)};!1===e?c():l(e)?e.then(a).catch(function(t){console.log("Error occurred in Promise based visitor result provided to react-tree-walker."),t&&(console.log(t),t.stack&&console.log(t.stack))}):a(!0)};if("function"==typeof t.type){var a=t.type,f=Object.assign({},a.defaultProps,t.props);if(a.prototype&&(a.prototype.isReactComponent||a.prototype.isPureReactComponent)){var p=new a(f,e);p.props=p.props||f,p.context=p.context||e,p.setState=function(t){p.state=Object.assign({},p.state,t)},s(function(){p.componentWillMount&&p.componentWillMount();var t=p.render();if(u.componentWillUnmount&&p.componentWillUnmount)try{p.componentWillUnmount()}catch(t){console.warn("Error calling componentWillUnmount whilst walking your react tree"),console.warn(t)}return t},n(t,p,e),function(){return p.getChildContext?Object.assign({},e,p.getChildContext()):e})}else s(function(){return a(f,e)},n(t,null,e),e)}else s(function(){return t.props&&t.props.children?t.props.children:void 0},n(t,null,e),e)}).catch(function(t){console.error("Error walking your react tree"),console.error(t)})}Object.defineProperty(n,"__esModule",{value:!0}),n.isPromise=void 0,n.default=o;var r=e(2),c={componentWillUnmount:!1},u=function(t,n,e){return new Promise(function(o,r){var c=t[Symbol.iterator](),u=0;!function t(e){var i=c.next();if(i.done)return void o(e);Promise.all([e,i.value]).then(function(e){t(n(e[0],e[1],u++))}).catch(r)}(e)})},i=function(t,n){var e=[];return u(t,function(t,o,r){return Promise.resolve(n(o,r)).then(function(t){e.push(t)})}).then(function(){return e})},l=n.isPromise=function(t){return null!=t&&"function"==typeof t.then}},function(n,e){n.exports=t}])});