From 4c9b1f374e35d785772e4363a7152e83ce421844 Mon Sep 17 00:00:00 2001
From: jonatanklosko =v[n+1]?v[n+1]-1:v[n-1],c=h-(n-C)-w;const l=h;for(;h>e&&c>i&&this.ElementsAreEqual(h,c);)h--,c--;if(v[n]=h,S&&Math.abs(n-b)<=k&&h<=_[n])return s[0]=h,r[0]=c,l>=_[n]&&k<=1448?this.WALKTRACE(b,d,u,y,C,g,p,w,_,v,h,t,s,c,o,r,S,a):null}if(k<=1447){let e=new Int32Array(u-d+2);e[0]=b-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,u,y,C,g,p,w,_,v,h,t,s,c,o,r,S,a)}PrettifyChanges(e){for(let t=0;t "+e+">>32-s)+t}function c(e,t,i,n,o,s,r){var a=e+(t&n|i&~n)+o+r;return(a<>>32-s)+t}function d(e,t,i,n,o,s,r){var a=e+(t^i^n)+o+r;return(a<>>32-s)+t}function u(e,t,i,n,o,s,r){var a=e+(i^(t|~n))+o+r;return(a<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),n.MD5)},4470:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},r=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var n,o=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!s)return!1;for(n in e);return void 0===n||t.call(e,n)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,i){if("__proto__"===i){if(!t.call(e,i))return;if(o)return o(e,i).value}return e[i]};e.exports=function e(){var t,i,n,o,h,c,d=arguments[0],u=1,g=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},u=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});u=a)){var z=void 0;(o>0||e.hskipBeforeAndAfter)&&0!==(z=h(B.pregap,g))&&((T=Je.makeSpan(["arraycolsep"],[])).style.width=z+"em",M.push(T));var U=[];for(i=0;i0){for(var q=Je.makeLineSpan("hline",t,d),G=Je.makeLineSpan("hdashline",t,d),Y=[{type:"elem",elem:l,shift:0}];c.length>0;){var Q=c.pop(),Z=Q.pos-I;Q.isDashed?Y.push({type:"elem",elem:G,shift:Z}):Y.push({type:"elem",elem:q,shift:Z})}l=Je.makeVList({positionType:"individualShift",children:Y},t)}if(e.addEqnNum){var X=Je.makeVList({positionType:"individualShift",children:O},t);return X=Je.makeSpan(["tag"],[X],t),Je.makeFragment([l,X])}return Je.makeSpan(["mord"],[l],t)},Ui={c:"center ",l:"left ",r:"right "},Ki=function(e,t){for(var i=[],n=new Tt.MathNode("mtd",[],["mtr-glue"]),o=new Tt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null})),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const w={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class S{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class k{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class x{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;tn,JH:()=>o,fS:()=>s,ry:()=>r,lG:()=>a,HW:()=>l,vM:()=>h,kX:()=>c,XY:()=>d,Of:()=>u,EB:()=>g,dF:()=>p,Xh:()=>m,xH:()=>f,w6:()=>_,Zv:()=>v,zI:()=>b,al:()=>C,_2:()=>y,db:()=>w,H9:()=>k});class k{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}(i,t):(o=_.exec(k(i,t)))?x(o[1].substr(1),i,!0):(o=v.exec(k(i,t)))?x(o[1],i,!1):function(e){try{const t=new RegExp(`^${u(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return y}}(i);return b.set(n,s),S(s,e)}function S(e,t){return"string"==typeof t?e:function(i,n){return o.KM(i,t.base)?e(r.Gf(t.base,i),n):null}}function k(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function x(e,t,i){const n=r.ir===r.KR.sep,o=n?e:e.replace(h,r.ir),s=r.ir+o,a=r.KR.sep+e,l=i?function(i,r){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,s){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t};return l.allPaths=[(i?"*/":"./")+e],l}function L(e,t,i){return!(!e||"string"!=typeof t)&&E(e)(t,void 0,i)}function E(e,t={}){if(!e)return C;if("string"==typeof e||function(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){const i=w(e,t);if(i===y)return C;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=N(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return y;const o=w(e,i);if(o===y)return y;if("boolean"==typeof t)return o;if(t){const i=t.when;if("string"==typeof i){const t=(t,s,r,a)=>{if(!a||!o(t,s))return null;const l=a(i.replace("$(basename)",r));return(0,n.J8)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(i,e[i],t))).filter((e=>e!==y))),o=i.length;if(!o)return y;if(!i.some((e=>!!e.requiresSiblings))){if(1===o)return i[0];const e=function(e,t){for(let n=0,o=i.length;n{"use strict";i.d(t,{gm:()=>o,QC:()=>r,X_:()=>a,BQ:()=>l,f1:()=>h});var n=i(7301);function o(e,t){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[s(i,t),s(n,t)]:[s(i,t)])}function s(e,t){const i=!!(2048&e),n=!!(256&e);return new r(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}class r{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new a([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,n.b1)("parts");this.parts=e}}class l{constructor(e,t,i,n,o,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=s}}class h{}},8843:(e,t,i)=>{"use strict";i.d(t,{p:()=>l,D:()=>h});var n=i(5527),o=i(6663),s=i(1432),r=i(5935),a=i(666);function l(e){if(!e)return;"string"==typeof e&&(e=a.o.file(e));const t=(0,r.EZ)(e)||(e.scheme===o.lg.file?e.fsPath:e.path);return s.ED&&(0,n.vY)(t)?h(t):t}function h(e,t){return(0,n.oP)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null)},5976:(e,t,i)=>{"use strict";i.d(t,{dk:()=>s,Wf:()=>a,B9:()=>l,F8:()=>h,OF:()=>c,SL:()=>d,JT:()=>u,XK:()=>g,Jz:()=>p});var n=i(8289),o=i(3725);function s(e){return e}class r extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function a(e){return"function"==typeof e.dispose&&0===e.dispose.length}function l(e){if(o.$.is(e)){let t=[];for(const i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new r(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=c((()=>l(e)));return t}function c(e){const t={dispose:(0,n.I)((()=>{e()}))};return t}class d{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{l(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}d.DISABLE_DISPOSED_WARNING=!1;class u{constructor(){this._store=new d,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}u.None=Object.freeze({dispose(){}});class g{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class p{constructor(e){this.object=e}dispose(){}}},1741:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class o{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},3702:(e,t,i)=>{"use strict";i.d(t,{Id:()=>d,Y9:()=>g,z6:()=>m});var n,o,s=i(7295);class r{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos
\n":"'+(i?e:q(e,!0))+"
\n"},t.blockquote=function(e){return""+(i?e:q(e,!0))+"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,i,n){return this.options.headerIds?"
\n":"
\n"},t.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+""+n+">\n"},t.listitem=function(e){return"\n\n"+e+"\n"+t+"
\n"},t.tablerow=function(e){return"\n"+e+" \n"},t.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+""+i+">\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+"
"},t.br=function(){return this.options.xhtml?"
":"
"},t.del=function(e){return""+e+""},t.link=function(e,t,i){if(null===(e=$(this.options.sanitize,this.options.baseUrl,e)))return i;var n='"+i+""},t.image=function(e,t,i){if(null===(e=$(this.options.sanitize,this.options.baseUrl,e)))return i;var n='":">")},t.text=function(e){return e},e}(),Y=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),Q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),Z=G,X=Y,J=Q,ee=n.exports.defaults,te=y,ie=function(){function e(e){this.options=e||ee,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new X,this.slugger=new J}e.parse=function(t,i){return new e(i).parse(t)},e.parseInline=function(t,i){return new e(i).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,h,c,d,u,g,p,m,f,_,v,b,C,y="",w=e.length;for(i=0;i"+de(e.message+"",!0)+"
";throw e}}return me.options=me.setOptions=function(e){return he(me.defaults,e),ge(me.defaults),me},me.getDefaults=ue,me.defaults=pe,me.use=function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n
"+de(e.message+"",!0)+"";throw e}},me.Parser=oe,me.parser=oe.parse,me.Renderer=re,me.TextRenderer=ae,me.Lexer=ne,me.lexer=ne.lex,me.Tokenizer=se,me.Slugger=le,me.parse=me,me},"object"==typeof exports?e.exports=o():t.amd?t(o):(i="undefined"!=typeof globalThis?globalThis:i||self).marked=o()}(),n||exports,(n||exports).Parser,(n||exports).parser;var o=(n||exports).Renderer,s=((n||exports).TextRenderer,(n||exports).Lexer,(n||exports).lexer,(n||exports).Tokenizer,(n||exports).Slugger,(n||exports).parse)},3897:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});var n=i(3060),o=i(666);function s(e){let t=JSON.parse(e);return t=r(t),t}function r(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i
${e}
`,t.codeBlockRenderer&&(g.code=(e,i)=>{const o=t.codeBlockRenderer(i,e),s=ue.a.nextId();return(0,re.eP)(Promise.all([o,u]),a.token).then((e=>{var i;if(!r&&e){const o=l.querySelector(`div[data-code="${s}"]`);o&&n.mc(o,e[0]),null===(i=t.asyncRenderCallback)||void 0===i||i.call(t)}})).catch((()=>{})),`