/*! For license information please see dll.TeX.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[139],{3239:function(e,t,o){"use strict";o.r(t);var n=o(22),a=o.n(n),r=o(3240),s={insert:"head",singleton:!1};a()(r.default,s);t.default=r.default.locals||{}},3240:function(e,t,o){"use strict";o.r(t);var n=o(23),a=o.n(n)()(!1);a.push([e.i,".katex .mord {\n\tcolor: inherit;\n}\n",""]),t.default=a},939:function(e,t,o){"use strict";o.r(t);var n=o(205),a=o.n(n),r=o(14),s=o.n(r),l=o(13),i=o.n(l),p=o(15),c=o.n(p),u=o(16),h=o.n(u),d=o(8),f=o.n(d),m=o(0),v=o.n(m),y=o(26),g=o(1),b=o.n(g),w=o(1054),k=o(214),E=o(974),T=o(826),x=o(831),C=o.n(x),P=o(40),M=o.n(P),N=o(27),S=o.n(N),R=o(88),j=o.n(R),O=o(206),_=o(107);o(3239);function q(e){var t=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(e){return!1}}();return function(){var o,n=f()(e);if(t){var a=f()(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return h()(this,o)}}var D=1,I=function(e){c()(o,e);var t=q(o);function o(e){var n;s()(this,o),n=t.call(this,e);var a={legend:"",showTooltip:!1,tooltipText:"",showPopover:!1,popoverContent:null,popoverName:null};return!0===e.displayMode&&(a.id=D,D+=1),n.state=a,n}return i()(o,[{key:"componentDidMount",value:function(){this.registerElements()}},{key:"componentDidUpdate",value:function(){this.registerElements()}},{key:"componentWillUnmount",value:function(){D=1}},{key:"registerElements",value:function(){var e=Object(y.findDOMNode)(this),t=this;Object(T.select)(e).selectAll(".mord").each((function(e){var o=Object(T.select)(this);t.state.popoverTarget!==this&&o.style("color","inherit");j()(t.props.elems).forEach((function(e){var n=t.props.elems[e];o.text()===e&&(n.variable&&(o.style("cursor","pointer"),o.style("color","blue")),o.on("mouseover",(function(){o.style("color","red"),n.tooltip&&t.setState({showTooltip:!0,tooltipText:n.tooltip,tooltipTarget:this})})).on("mouseout",(function(){t.state.showPopover||o.style("color","blue"),n.tooltip&&t.setState({showTooltip:!1})})).on("click",(function(){if(n.variable){var o={legend:n.legend||n.variable,min:n.min||M.a,max:n.max||S.a,step:n.step||"any"};n.onChange?(o.onChange=n.onChange,o.defaultValue=n.defaultValue):o.bind=n.variable,t.state.popoverName!==e?(t.setState({showTooltip:!1,showPopover:!0,popoverContent:n.body,popoverTarget:this,popoverName:e,config:o}),t.props.onPopover(!0)):(t.setState({showTooltip:!1,showPopover:!1,popoverContent:null,popoverTarget:null,popoverName:null}),t.props.onPopover(!1))}})))}))}))}},{key:"render",value:function(){var e,t=this,o=Object(_.isPrimitive)(this.props.raw)?this.props.raw.toString():this.props.raw,n=v.a.createElement("span",null,v.a.createElement(w.default,{show:this.state.showTooltip,container:document.body,target:this.state.tooltipTarget,placement:"top"},v.a.createElement(k.default,{id:"tooltip-top"},this.state.tooltipText)),v.a.createElement(w.default,{show:this.state.showPopover,container:document.body,target:this.state.popoverTarget,placement:this.props.popoverPlacement},v.a.createElement(E.default,{id:"popover-top"},v.a.createElement(O.default,a()({inline:!0},this.state.config)))));try{e=C.a.renderToString(o,{displayMode:this.props.displayMode})}catch(t){e=""}var r={__html:e};if(!0===this.props.displayMode){var s=this.props.numbered?v.a.createElement("div",{className:"tag",style:{float:"right",marginTop:5,marginRight:5}},null!==this.props.tag?this.props.tag:"["+this.state.id+"]"):null,l=v.a.createElement("span",{ref:function(e){t.katex=e},dangerouslySetInnerHTML:r,"aria-hidden":!!r});return this.props.onClick?v.a.createElement("div",{className:"tex",role:"button",tabIndex:0,style:this.props.style,onClick:this.props.onClick,onKeyPress:this.props.onClick,"aria-label":"Equation"},s,l,n):v.a.createElement("div",{className:"tex",style:this.props.style,"aria-label":"Equation"},s,l,n)}var i=v.a.createElement("span",{dangerouslySetInnerHTML:r,"aria-hidden":!!r,style:{whiteSpace:"nowrap"}});return this.props.onClick?v.a.createElement("span",{className:"tex",role:"button",tabIndex:0,ref:function(e){t.katex=e},style:this.props.style,onClick:this.props.onClick,onKeyPress:this.props.onClick,"aria-label":"Equation"},i,n):v.a.createElement("span",{className:"tex",ref:function(e){t.katex=e},style:this.props.style,"aria-label":"Equation"},i,n)}}]),o}(m.Component);I.propTypes={raw:b.a.oneOfType([b.a.string,b.a.number]).isRequired,displayMode:b.a.bool,numbered:b.a.bool,style:b.a.object,tag:b.a.string,elems:b.a.object,popoverPlacement:b.a.string,onPopover:b.a.func,onClick:b.a.func},I.defaultProps={displayMode:!1,numbered:!1,style:{},tag:null,elems:{},popoverPlacement:"top",onPopover:function(){},onClick:null},t.default=I}}]);