"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[8409],{51421:function(J,v,D){var s,A=this&&this.__extends||(s=function(r,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])})(r,t)},function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}s(r,t),r.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0}),v.AbstractHandler=void 0;var M=function(s){function r(){return null!==s&&s.apply(this,arguments)||this}return A(r,s),r}(D(67582).AbstractMathDocument),m=function(){function s(r,t){void 0===t&&(t=5),this.documentClass=M,this.adaptor=r,this.priority=t}return Object.defineProperty(s.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),s.prototype.handlesDocument=function(r){return!1},s.prototype.create=function(r,t){return new this.documentClass(r,this.adaptor,t)},s.NAME="generic",s}();v.AbstractHandler=m},67582:function(J,v,D){var p,A=this&&this.__extends||(p=function(a,h){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,y){o.__proto__=y}||function(o,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(o[x]=y[x])})(a,h)},function(a,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function o(){this.constructor=a}p(a,h),a.prototype=null===h?Object.create(h):(o.prototype=h.prototype,new o)}),S=this&&this.__values||function(p){var a="function"==typeof Symbol&&Symbol.iterator,h=a&&p[a],o=0;if(h)return h.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&o>=p.length&&(p=void 0),{value:p&&p[o++],done:!p}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},M=this&&this.__read||function(p,a){var h="function"==typeof Symbol&&p[Symbol.iterator];if(!h)return p;var y,g,o=h.call(p),x=[];try{for(;(void 0===a||a-- >0)&&!(y=o.next()).done;)x.push(y.value)}catch(w){g={error:w}}finally{try{y&&!y.done&&(h=o.return)&&h.call(o)}finally{if(g)throw g.error}}return x},m=this&&this.__spreadArray||function(p,a,h){if(h||2===arguments.length)for(var x,o=0,y=a.length;o=o&&O.item.renderDoc(h))return}}catch(E){y={error:E}}finally{try{w&&!w.done&&(x=g.return)&&x.call(g)}finally{if(y)throw y.error}}},a.prototype.renderMath=function(h,o,y){var x,g;void 0===y&&(y=n.STATE.UNPROCESSED);try{for(var w=S(this.items),O=w.next();!O.done;O=w.next()){var E=O.value;if(E.priority>=y&&E.item.renderMath(h,o))return}}catch(j){x={error:j}}finally{try{O&&!O.done&&(g=w.return)&&g.call(w)}finally{if(x)throw x.error}}},a.prototype.renderConvert=function(h,o,y){var x,g;void 0===y&&(y=n.STATE.LAST);try{for(var w=S(this.items),O=w.next();!O.done;O=w.next()){var E=O.value;if(E.priority>y||E.item.convert&&E.item.renderMath(h,o))return}}catch(j){x={error:j}}finally{try{O&&!O.done&&(g=w.return)&&g.call(w)}finally{if(x)throw x.error}}},a.prototype.findID=function(h){var o,y;try{for(var x=S(this.items),g=x.next();!g.done;g=x.next()){var w=g.value;if(w.item.id===h)return w.item}}catch(O){o={error:O}}finally{try{g&&!g.done&&(y=x.return)&&y.call(x)}finally{if(o)throw o.error}}return null},a}(D(63670).PrioritizedList);v.RenderList=d,v.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},v.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var c=function(p){function a(){return null!==p&&p.apply(this,arguments)||this}return A(a,p),a.prototype.compile=function(h){return null},a}(r.AbstractInputJax),u=function(p){function a(){return null!==p&&p.apply(this,arguments)||this}return A(a,p),a.prototype.typeset=function(h,o){return void 0===o&&(o=null),null},a.prototype.escaped=function(h,o){return null},a}(t.AbstractOutputJax),T=function(p){function a(){return null!==p&&p.apply(this,arguments)||this}return A(a,p),a}(e.AbstractMathList),_=function(p){function a(){return null!==p&&p.apply(this,arguments)||this}return A(a,p),a}(n.AbstractMathItem),L=function(){function p(a,h,o){var y=this,x=this.constructor;this.document=a,this.options=(0,s.userOptions)((0,s.defaultOptions)({},x.OPTIONS),o),this.math=new(this.options.MathList||T),this.renderActions=d.create(this.options.renderActions),this.processed=new p.ProcessBits,this.outputJax=this.options.OutputJax||new u;var g=this.options.InputJax||[new c];Array.isArray(g)||(g=[g]),this.inputJax=g,this.adaptor=h,this.outputJax.setAdaptor(h),this.inputJax.map(function(w){return w.setAdaptor(h)}),this.mmlFactory=this.options.MmlFactory||new i.MmlFactory,this.inputJax.map(function(w){return w.setMmlFactory(y.mmlFactory)}),this.outputJax.initialize(),this.inputJax.map(function(w){return w.initialize()})}return Object.defineProperty(p.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),p.prototype.addRenderAction=function(a){for(var h=[],o=1;o0)&&!(T=u.next()).done;)_.push(T.value)}catch(p){L={error:p}}finally{try{T&&!T.done&&(c=u.return)&&c.call(u)}finally{if(L)throw L.error}}return _},m=this&&this.__values||function(f){var d="function"==typeof Symbol&&Symbol.iterator,c=d&&f[d],u=0;if(c)return c.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&u>=f.length&&(f=void 0),{value:f&&f[u++],done:!f}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(v,"__esModule",{value:!0}),v.HTMLDocument=void 0;var s=D(67582),r=D(80084),t=D(93312),e=D(90310),n=D(6087),i=D(5520),l=function(f){function d(c,u,T){var _=this,L=M((0,r.separateOptions)(T,n.HTMLDomStrings.OPTIONS),2),p=L[0],a=L[1];return(_=f.call(this,c,u,p)||this).domStrings=_.options.DomStrings||new n.HTMLDomStrings(a),_.domStrings.adaptor=u,_.styles=[],_}return A(d,f),d.prototype.findPosition=function(c,u,T,_){var L,p,a=this.adaptor;try{for(var h=m(_[c]),o=h.next();!o.done;o=h.next()){var y=o.value,x=M(y,2),g=x[0],w=x[1];if(u<=w&&"#text"===a.kind(g))return{node:g,n:Math.max(u,0),delim:T};u-=w}}catch(O){L={error:O}}finally{try{o&&!o.done&&(p=h.return)&&p.call(h)}finally{if(L)throw L.error}}return{node:null,n:0,delim:T}},d.prototype.mathItem=function(c,u,T){var _=c.math,L=this.findPosition(c.n,c.start.n,c.open,T),p=this.findPosition(c.n,c.end.n,c.close,T);return new this.options.MathItem(_,u,c.display,L,p)},d.prototype.findMath=function(c){var u,T,_,L,p,a,h,o,y;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,c=(0,r.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},c);try{for(var x=m(this.adaptor.getElements(c.elements,this.document)),g=x.next();!g.done;g=x.next()){var w=g.value,O=M([null,null],2),E=O[0],j=O[1];try{for(var b=(_=void 0,m(this.inputJax)),P=b.next();!P.done;P=b.next()){var I=P.value,H=new this.options.MathList;if(I.processStrings){null===E&&(E=(p=M(this.domStrings.find(w),2))[0],j=p[1]);try{for(var C=(a=void 0,m(I.findMath(E))),F=C.next();!F.done;F=C.next()){var R=F.value;H.push(this.mathItem(R,I,j))}}catch(N){a={error:N}}finally{try{F&&!F.done&&(h=C.return)&&h.call(C)}finally{if(a)throw a.error}}}else try{for(var B=(o=void 0,m(I.findMath(w))),k=B.next();!k.done;k=B.next()){R=k.value;var z=new this.options.MathItem(R.math,I,R.display,R.start,R.end);H.push(z)}}catch(N){o={error:N}}finally{try{k&&!k.done&&(y=B.return)&&y.call(B)}finally{if(o)throw o.error}}this.math.merge(H)}}catch(N){_={error:N}}finally{try{P&&!P.done&&(L=b.return)&&L.call(b)}finally{if(_)throw _.error}}}}catch(N){u={error:N}}finally{try{g&&!g.done&&(T=x.return)&&T.call(x)}finally{if(u)throw u.error}}this.processed.set("findMath")}return this},d.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),f.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},d.prototype.addPageElements=function(){var c=this.adaptor.body(this.document),u=this.documentPageElements();u&&this.adaptor.append(c,u)},d.prototype.addStyleSheet=function(){var c=this.documentStyleSheet(),u=this.adaptor;if(c&&!u.parent(c)){var T=u.head(this.document),_=this.findSheet(T,u.getAttribute(c,"id"));_?u.replace(c,_):u.append(T,c)}},d.prototype.findSheet=function(c,u){var T,_;if(u)try{for(var L=m(this.adaptor.tags(c,"style")),p=L.next();!p.done;p=L.next()){var a=p.value;if(this.adaptor.getAttribute(a,"id")===u)return a}}catch(h){T={error:h}}finally{try{p&&!p.done&&(_=L.return)&&_.call(L)}finally{if(T)throw T.error}}return null},d.prototype.removeFromDocument=function(c){var u,T;if(void 0===c&&(c=!1),this.processed.isSet("updateDocument"))try{for(var _=m(this.math),L=_.next();!L.done;L=_.next()){var p=L.value;p.state()>=i.STATE.INSERTED&&p.state(i.STATE.TYPESET,c)}}catch(a){u={error:a}}finally{try{L&&!L.done&&(T=_.return)&&T.call(_)}finally{if(u)throw u.error}}return this.processed.clear("updateDocument"),this},d.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},d.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},d.prototype.addStyles=function(c){this.styles.push(c)},d.prototype.getStyles=function(){return this.styles},d.KIND="HTML",d.OPTIONS=S(S({},s.AbstractMathDocument.OPTIONS),{renderActions:(0,r.expandable)(S(S({},s.AbstractMathDocument.OPTIONS.renderActions),{styles:[i.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:e.HTMLMathList,MathItem:t.HTMLMathItem,DomStrings:null}),d}(s.AbstractMathDocument);v.HTMLDocument=l},6087:function(J,v,D){var A=this&&this.__read||function(m,s){var r="function"==typeof Symbol&&m[Symbol.iterator];if(!r)return m;var e,i,t=r.call(m),n=[];try{for(;(void 0===s||s-- >0)&&!(e=t.next()).done;)n.push(e.value)}catch(l){i={error:l}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error}}return n};Object.defineProperty(v,"__esModule",{value:!0}),v.HTMLDomStrings=void 0;var S=D(80084),M=function(){function m(s){void 0===s&&(s=null);var r=this.constructor;this.options=(0,S.userOptions)((0,S.defaultOptions)({},r.OPTIONS),s),this.init(),this.getPatterns()}return m.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},m.prototype.getPatterns=function(){var s=(0,S.makeArray)(this.options.skipHtmlTags),r=(0,S.makeArray)(this.options.ignoreHtmlClass),t=(0,S.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+s.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+r.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+t+")(?: |$)")},m.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},m.prototype.extendString=function(s,r){this.snodes.push([s,r.length]),this.string+=r},m.prototype.handleText=function(s,r){return r||this.extendString(s,this.adaptor.value(s)),this.adaptor.next(s)},m.prototype.handleTag=function(s,r){if(!r){var t=this.options.includeHtmlTags[this.adaptor.kind(s)];this.extendString(s,t)}return this.adaptor.next(s)},m.prototype.handleContainer=function(s,r){this.pushString();var t=this.adaptor.getAttribute(s,"class")||"",e=this.adaptor.kind(s)||"",n=this.processHtmlClass.exec(t),i=s;return!this.adaptor.firstChild(s)||this.adaptor.getAttribute(s,"data-MJX")||!n&&this.skipHtmlTags.exec(e)?i=this.adaptor.next(s):(this.adaptor.next(s)&&this.stack.push([this.adaptor.next(s),r]),i=this.adaptor.firstChild(s),r=(r||this.ignoreHtmlClass.exec(t))&&!n),[i,r]},m.prototype.handleOther=function(s,r){return this.pushString(),this.adaptor.next(s)},m.prototype.find=function(s){var r,t;this.init();for(var e=this.adaptor.next(s),n=!1,i=this.options.includeHtmlTags;s&&s!==e;){var l=this.adaptor.kind(s);"#text"===l?s=this.handleText(s,n):i.hasOwnProperty(l)?s=this.handleTag(s,n):l?(s=(r=A(this.handleContainer(s,n),2))[0],n=r[1]):s=this.handleOther(s,n),!s&&this.stack.length&&(this.pushString(),s=(t=A(this.stack.pop(),2))[0],n=t[1])}this.pushString();var f=[this.strings,this.nodes];return this.init(),f},m.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},m}();v.HTMLDomStrings=M},59996:function(J,v,D){var s,A=this&&this.__extends||(s=function(r,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])})(r,t)},function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=r}s(r,t),r.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0}),v.HTMLHandler=void 0;var S=D(51421),M=D(72161),m=function(s){function r(){var t=null!==s&&s.apply(this,arguments)||this;return t.documentClass=M.HTMLDocument,t}return A(r,s),r.prototype.handlesDocument=function(t){var e=this.adaptor;if("string"==typeof t)try{t=e.parse(t,"text/html")}catch{}return t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment},r.prototype.create=function(t,e){var n=this.adaptor;if("string"==typeof t)t=n.parse(t,"text/html");else if(t instanceof n.window.HTMLElement||t instanceof n.window.DocumentFragment){var i=t;t=n.parse("","text/html"),n.append(n.body(t),i)}return s.prototype.create.call(this,t,e)},r}(S.AbstractHandler);v.HTMLHandler=m},93312:function(J,v,D){var m,A=this&&this.__extends||(m=function(s,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(s,r)},function(s,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=s}m(s,r),s.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(v,"__esModule",{value:!0}),v.HTMLMathItem=void 0;var S=D(5520),M=function(m){function s(r,t,e,n,i){return void 0===e&&(e=!0),void 0===n&&(n={node:null,n:0,delim:""}),void 0===i&&(i={node:null,n:0,delim:""}),m.call(this,r,t,e,n,i)||this}return A(s,m),Object.defineProperty(s.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),s.prototype.updateDocument=function(r){if(this.state()=S.STATE.TYPESET){var t=this.adaptor,e=this.start.node,n=t.text("");if(r){var i=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)n=t.text(i);else{var l=t.parse(i,"text/html");n=t.firstChild(t.body(l))}}t.parent(e)&&t.replace(n,e),this.start.node=this.end.node=n,this.start.n=this.end.n=0}},s}(S.AbstractMathItem);v.HTMLMathItem=M},90310:function(J,v,D){var m,A=this&&this.__extends||(m=function(s,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(s,r)},function(s,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=s}m(s,r),s.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(v,"__esModule",{value:!0}),v.HTMLMathList=void 0;var M=function(m){function s(){return null!==m&&m.apply(this,arguments)||this}return A(s,m),s}(D(57484).AbstractMathList);v.HTMLMathList=M},97698:function(J,v){var r,D=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(n[l]=i[l])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),A=this&&this.__values||function(r){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},S=this&&this.__read||function(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var i,f,n=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)l.push(i.value)}catch(d){f={error:d}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(f)throw f.error}}return l},M=this&&this.__spreadArray||function(r,t,e){if(e||2===arguments.length)for(var l,n=0,i=t.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},M=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var l,d,i=n.call(t),f=[];try{for(;(void 0===e||e-- >0)&&!(l=i.next()).done;)f.push(l.value)}catch(c){d={error:c}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(d)throw d.error}}return f},m=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var f,i=0,l=e.length;i0&&l[l.length-1])&&(6===u[0]||2===u[0])){e=0;continue}if(3===u[0]&&(!l||u[1]>l[0]&&u[1]0)&&!(i=n.next()).done;)l.push(i.value)}catch(d){f={error:d}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(f)throw f.error}}return l},S=this&&this.__spreadArray||function(r,t,e){if(e||2===arguments.length)for(var l,n=0,i=t.length;n=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(v,"__esModule",{value:!0}),v.LinkedList=v.ListItem=v.END=void 0,v.END=Symbol();var m=function r(t){void 0===t&&(t=null),this.next=null,this.prev=null,this.data=t};v.ListItem=m;var s=function(){function r(){for(var t=[],e=0;e1;){var c=i.shift(),u=i.shift();c.merge(u,t),i.push(c)}return i.length&&(this.list=i[0].list),this},r.prototype.merge=function(t,e){var n,i,l,f,d;void 0===e&&(e=null),null===e&&(e=this.isBefore.bind(this));for(var c=this.list.next,u=t.list.next;c.data!==v.END&&u.data!==v.END;)e(u.data,c.data)?(n=A([c,u],2),u.prev.next=n[0],c.prev.next=n[1],i=A([c.prev,u.prev],2),u.prev=i[0],c.prev=i[1],l=A([t.list,this.list],2),this.list.prev.next=l[0],t.list.prev.next=l[1],f=A([t.list.prev,this.list.prev],2),this.list.prev=f[0],t.list.prev=f[1],c=(d=A([u.next,c],2))[0],u=d[1]):c=c.next;return u.data!==v.END&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this},r}();v.LinkedList=s},63670:(J,v)=>{Object.defineProperty(v,"__esModule",{value:!0}),v.PrioritizedList=void 0;var D=function(){function A(){this.items=[],this.items=[]}return A.prototype[Symbol.iterator]=function(){var S=0,M=this.items;return{next:function(){return{value:M[S++],done:S>M.length}}}},A.prototype.add=function(S,M){void 0===M&&(M=A.DEFAULTPRIORITY);var m=this.items.length;do{m--}while(m>=0&&M=0&&this.items[M].item!==S);M>=0&&this.items.splice(M,1)},A.DEFAULTPRIORITY=5,A}();v.PrioritizedList=D}}]);