/*! For license information please see dll.ROutput.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[88],{1110:function(t,e,n){"use strict";n.r(e);var r=n(13),a=n.n(r),i=n(12),o=n.n(i),u=n(6),s=n.n(u),l=n(14),c=n.n(l),p=n(15),f=n.n(p),d=n(8),g=n.n(d),m=n(5),h=n.n(m),y=n(0),v=n.n(y),R=n(1),b=n.n(R),E=n(2257),x=n.n(E),w=n(533),T=n(1354),_=n(20);function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var C=function(t){c()(n,t);var e=k(n);function n(t){var r;return a()(this,n),r=e.call(this,t),h()(s()(r),"getResult",(function(t){var e;if((e=t?t.code:r.props.code)!==r.state.last){r.setState({last:r.props.code,running:!0});var n=r.context,a=Object(T.default)(r.props.libraries,r.props.prependCode,n)+e;n.executeRCode({code:a,onError:function(t){r.setState({result:t,running:!1})},onResult:function(t,e,n){r.setState({result:n,running:!1})}})}})),r.state={result:null,running:!1,last:""},r}return o()(n,[{key:"componentDidMount",value:function(){this.getResult(this.props)}},{key:"componentDidUpdate",value:function(){this.getResult(this.props)}},{key:"render",value:function(){return v.a.createElement("span",{className:"ROutput"},this.state.result?v.a.createElement("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"10px",marginBottom:"10px"}},v.a.createElement(w.default,{width:128,height:64,style:{marginTop:"8px",marginBottom:"-12px"},running:this.state.running}),this.state.running?v.a.createElement("span",null):function(t){if(t){var e={__html:x.a.sanitize(t)};return v.a.createElement("pre",{id:"output"},v.a.createElement("span",{dangerouslySetInnerHTML:e}))}return v.a.createElement("span",null)}(this.state.result)):v.a.createElement("span",null))}}]),n}(y.Component);C.propTypes={code:b.a.string,libraries:b.a.array,prependCode:b.a.oneOfType([b.a.string,b.a.array])},C.defaultProps={code:"",libraries:[],prependCode:""},C.contextType=_.default,e.default=C},1354:function(t,e,n){"use strict";n.r(e);var r=n(19),a=n.n(r);e.default=function(t,e,n){var r=n.config.rshell;r&&r.libraries&&(t=t.concat(r.libraries));var i=function(t){return t.map((function(t){return"library("+t+");"})).join(" ")}(t);return r&&r.global&&(i+=r.global+"\n"),e=a()(e)?e.join("\n"):e,i+=e+="\n"}}}]);