wg-backend-django/dell-env/lib/python3.11/site-packages/dash/dcc/async-markdown.js

3 lines
193 KiB
JavaScript
Raw Normal View History

2023-10-30 03:40:43 -04:00
/*! For license information please see async-markdown.js.LICENSE.txt */
(self.webpackChunkdash_core_components=self.webpackChunkdash_core_components||[]).push([[754],{54679:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return T}});var i=r(99196),n=r.n(i),s=r(84214),a=r(83923),o=r.n(a),c=r(94838),h=r.n(c),u=r(3933),l=r.n(u),p=r(69064),f=r.n(p),d=r(20748);function m(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(n=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key))?n:String(n)),i)}var n}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(o,t);var e,r,i,s,a=(i=o,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=v(i);if(s){var r=v(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=a.call(this,t)).span_element=n().createRef(),e}return e=o,(r=[{key:"componentDidMount",value:function(){this.renderMath()}},{key:"componentDidUpdate",value:function(t){t.tex===this.props.tex&&t.inline===this.props.inline||this.renderMath()}},{key:"renderMath",value:function(){var t=this.span_element.current;(0,d.Z)().then((function(){window.MathJax.typeset([t])}))}},{key:"render",value:function(){return n().createElement("span",{ref:this.span_element},this.props.inline?"\\(":"\\[",this.props.tex,this.props.inline?"\\)":"\\]")}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.Component);x.propTypes={tex:f().string,inline:f().bool},x.defaultProps={tex:"",inline:!0},x.propTypes,x.defaultProps;var y={loadhljs:function(){var t=this;return Promise.resolve(window.hljs||r.e(790).then(r.bind(r,73266)).then((function(t){return t.default}))).then((function(e){t.hljs=e,t.hljsResolve(),t.isReady=!0}))}},b=new Promise((function(t){y.hljsResolve=t}));y.isReady=b;var k=y,w=r(48786),_=r(16111);function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function C(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(n=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key))?n:String(n)),i)}var n}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.
//# sourceMappingURL=async-markdown.js.map