/*! For license information please see dll.RTable.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[91],{1113:function(t,e,n){"use strict";n.r(e);var a=n(13),r=n.n(a),i=n(12),o=n.n(i),c=n(6),s=n.n(c),l=n(14),u=n.n(l),p=n(15),d=n.n(p),f=n(8),h=n.n(f),g=n(5),v=n.n(g),b=n(0),m=n.n(b),y=n(1),w=n.n(y),R=n(536),T=n(533),x=n(1354),k=n(20);function C(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,a=h()(t);if(e){var r=h()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return d()(this,n)}}var E=function(t){u()(n,t);var e=C(n);function n(t){var a;return r()(this,n),a=e.call(this,t),v()(s()(a),"getTable",(function(t){var e;if((e=t?t.code:a.props.code)!==a.state.last){a.setState({waiting:!0,last:a.props.code});var n=a.context,r=a.props,i=r.libraries,o=r.prependCode,c="library( jsonlite );\n";c=c+(o=Object(x.default)(i,o,n))+e.replace(/\n\s*([ A-Z0-9._():=]+)\n*$/i,"\n toJSON($1)"),n.executeRCode({code:c,onResult:function(t,e,n){a.setState({data:JSON.parse(n),waiting:!1})}})}})),a.state={data:null,last:"",waiting:!1},a}return o()(n,[{key:"componentDidMount",value:function(){this.getTable()}},{key:"componentDidUpdate",value:function(){this.getTable(this.props)}},{key:"render",value:function(){var t=this.props;return m.a.createElement("div",{className:"rtable"},m.a.createElement(T.default,{running:this.state.waiting,width:256,height:128}),this.state.data&&!this.state.waiting?m.a.createElement("div",{style:{marginTop:"10px",marginBottom:"10px"}},m.a.createElement(R.default,{data:this.state.data,width:"".concat(100*t.width,"%")})):m.a.createElement("span",null))}}]),n}(b.Component);E.propTypes={code:w.a.string,libraries:w.a.array,prependCode:w.a.oneOfType([w.a.string,w.a.array]),width:w.a.number},E.defaultProps={code:"",width:.5,libraries:[],prependCode:""},E.contextType=k.default,e.default=E},1354:function(t,e,n){"use strict";n.r(e);var a=n(19),r=n.n(a);e.default=function(t,e,n){var a=n.config.rshell;a&&a.libraries&&(t=t.concat(a.libraries));var i=function(t){return t.map((function(t){return"library("+t+");"})).join(" ")}(t);return a&&a.global&&(i+=a.global+"\n"),e=r()(e)?e.join("\n"):e,i+=e+="\n"}}}]);