!function(e){vart={};functionn(o){if(t[o])returnt[o].exports;vari=t[o]={i:o,l:!1,exports:{}};returne[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(variine)n.d(o,i,function(t){returne[t]}.bind(null,i));returno},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});leto=void0;functioni(e){constt=document.getElementById("vscode-markdown-preview-data");if(t){constn=t.getAttribute(e);if(n)returnJSON.parse(n)}thrownewError(`Could not load data for ${e}`)}t.getData=i,t.getSettings=function(){if(o)returno;if(o=i("data-settings"))returno;thrownewError("Could not load settings")}},function(e,t){varn;n=function(){returnthis}();try{n=n||newFunction("return this")()}catch(e){"object"==typeofwindow&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});consto=n(0),i="code-line";functionr(e){returnt=0,n=o.getSettings().lineCount-1,i=e,Math.min(n,Math.max(t,i));vart,n,i}constc=(()=>{lete;return()=>{if(!e){e=[{element:document.body,line:0}];for(consttofdocument.getElementsByClassName(i)){constn=+t.getAttribute("data-line");isNaN(n)||("CODE"===t.tagName&&t.parentElement&&"PRE"===t.parentElement.tagName?e.push({element:t.parentElement,line:n}):e.push({element:t,line:n}))}}returne}})();functions(e){constt=Math.floor(e),n=c();leto=n[0]||null;for(consteofn){if(e.line===t)return{previous:e,next:void0};if(e.line>t)return{previous:o,next:e};o=e}return{previous:o}}functiona(e){constt=c(),n=e-window.scrollY;leto=-1,i=t.length-1;for(;o+1<i;){conste=Math.floor((o+i)/2),r=u(t[e]);r.top+r.height>=n?i=e:o=e}constr=t[i],s=u(r);if(i>=1&&s.top>n){return{previous:t[o],next:r}}returni>1&&i<t.length&&s.top+s.height>n?{previous:r,next:t[i+1]}:{previous:r}}functionu({element:e}){constt=e.getBoundingClientRect(),n=e.querySelector(`.${i}`);if(n){conste=n.getBoundingClientRect(),o=Math.max(1,e.top-t.top);return{top:t.top,height:o}}returnt}t.getElementsForSourceLine=s,t.getLineElementsAtPageOffset=a,t.scrollToRevealSourceLine=function(e){if(!o.getSettings().scrollPreviewWithEditor)return;if(e<=0)returnvoidwindow.scroll(window.scrollX,0);const{previous:t,next:n}=s(e);if(!t)return;leti=0;constr=u(t),c=r.top;if(n&&n.line!==t.line){i=c+(e-t.line)/(n.line-t.line)*(n.element.getBoundingClientRect().top-c)}else{constt=e-Math.floor(e);i=c+r.height*t}window.scroll(window.scrollX,Math.max(1,window.scrollY+i))},t.getEditorLineNumberForPageOffset=function(e){const{previous:t,next:n}=a(e);if(t){consto=u(t),i=e-window.scrollY-o.top;if(n){conste=i/(u(n).top-o.top);returnr(t.line+e*(n.line-t.line))}{conste=i/o.height;returnr(t.line+e)}}returnnull},t.getLineElementForFragment=function(e){returnc().find(t=>t.element.id===e)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});consto=n(7),i=n(8),r=n(9),c=n(2),s=n(0),a=n(10);letu=!0;constl=newo.ActiveLineMarker,f=s.getSettings(),d=acquireVsCodeApi(),m={...d.getState(),...s.getData("data-state")};d.setState(m);constp=r.createPosterForVsCode(d);window.cspAlerter.setPoster(p),window.styleLoadingMonitor.setPoster(p),window.onload=()=>{h()},i.onceDocumentLoaded(()=>{constt=m.scrollProgress;"number"!=typeoft||f.fragment?f.scrollPreviewWithEditor&&e(()=>{if(f.fragment){m.fragment=void0,d.setState(m);conste=c.getLineElementForFragment(f.fragment);e&&(u=!0,c.scrollToRevealSourceLine(e.line))}elseisNaN(f.line)||(u=!0,c.scrollToRevealSourceLine(f.line))}):e(()=>{u=!0,window.scrollTo(0,t*document.body.clientHeight)})});constg=(()=>{conste=a(e=>{u=!0,c.scrollToRevealSourceLine(e)},50);returnt=>{isNaN(t)||(m.line=t,e(t))}})();leth=a(()=>{conste=[];lett=document.getElementsByTagName("img");if(t){letn;for(n=0;n<t.length;n++){consto=t[n];o.classList.contains("loading")&&o.classList.remove("loading"),e.push({id:o.id,height:o.height,width:o.width})}p.postMessage("cacheImageSizes",e)}},50);window.addEventListener("resize",()=>{u=!0,y(),h()},!0),window.addEventListener("message",e=>{if(e.data.source===f.source)switch(e.data.type){case"onDidChangeTextEditorSelection":l.onDidChangeTextEditorSelection(e.data.line);break;case"updateView":g(e.data.line)}},!1),document.addEventListener("dblclick",e=>{if(!f.doubleClickToSwitchToEditor)return;for(lett=e.target;t;t=t.parentNode)if("A"===t.tagName)return;constt=e.pageY,n=c.getEditorLineNumberForPageOffset(t);"number"!=typeofn||isNaN(n)||p.postMessage("didClick",{line:Math.floor(n)})});constv=["http:","https:","mailto:","vscode:","vscode-insiders:"];functiony(){m.scrollProgress=window.scrollY/document.body.clientHeight,d.setState(m)}document.addEventListener("click",e=>{if(!e)return;lett=e.target;for(;t;){if(t.tagName&&"A"===t.tagName&&t.href){if(t.getAttribute("href").startsWith("#"))return;if(v.some(e=>t.href.startsWith(e)))return;constn=t.getAttribute("data-href")||t.getAttribute("href");return/^[a-z\-]+:/i.test(n)?void0:(p.postMessage("openLink",{href:n}),e.preventDefault(),voide.stopPropagation())}t=t.parentNode}},!0),window.addEventListener("scroll",a(()=>{if(y(),u)u=!1;else{conste=c.getEditorLineNumberForPageOffset(window.scrollY);"number"!=typeofe||isNaN(e)||p.postMessage("revealLine",{line:e})}},50))}).call(this,n(4).setImmediate)},function(e,t,n){(function(e){varo=Function.prototype.apply;functioni(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){returnnewi(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){returnnewi(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);vart=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(5),t.setImmediate="undefined"!=typeofself&&self.setImmediate||void0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeofself&&self.clearImmediate||void0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(1))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){varo,i,r,c,s,a=1,u={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){vart=!0,n=e.onmessage;returne.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=newMessageChannel).port1.onmessage=function(e){p(e.data)},o=function(e){r.port2.postMessage(e)}):f&&"onreadystatechange"inf.createElement("script")?(i=f.documentElement,o=function(e){vart=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):o=function(e){setTimeout(p,0,e)}:(c="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeoft.data&&0===t.data.indexOf(c)&&p(+t.data.slice(c.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),o=function(t){e.postMessage(c+t,"*")}),d.setImmediate=function(e){"function"!=typeofe&&(e=newFunction(""+e));for(vart=newArray(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];vari={callback:e,args:t};returnu[a]=i,o(a),a++},d.clearImmediate=m}functionm(e){deleteu[e]}functionp(e){if(l)setTimeout(p,0,e);else{vart=u[e];if(t){l=!0;try{!function(e){vart=e.callback,o=e.args;switch(o.length){case0:t();break;case1:t(o[0]);break;case2:t(o[0],o[1]);break;case3:t(o[0],o[1],o[2]);break;default:t.apply(n,o)}}(t)}finally{m(e),l=!1}}}}}("undefined"==typeofself?void0===e?this:e:self)}).call(this,n(1),n(6))},function(e,t){varn,o,i=e.exports={};functionr(){thrownewError("setTimeout has not been defined")}functionc(){thrownewError("clearTimeout has not been defined")}functions(e){if(n===setTimeout)returnsetTimeout(e,0);if((n===r||!n)&&setTimeout)returnn=setTimeout,setTimeout(e,0);try{returnn(e,0)}catch(t){try{returnn.call(null,e,0)}catch(t){returnn.call(this,e,0)}}}!function(){try{n="function"==typeofsetTimeout?setTimeout:r}catch(e){n=r}try{o="function"==typeofclearTimeout?clearTimeout:c}catch(e){o=c}}();vara,u=[],l=!1,f=-1;functiond(){l&&a&&(l=!1,a.length?u=a.concat(u):f=-1,u.length&&m())}functionm(){if(!l){vare=s(d);l=!0;for(vart=u.length;t;){for(a=u,u=[];++f<t;)a&&a[f].run();f=-1,t=u.length}a=null,l=!1,function(e){if(o===clearTimeout)returnclearTimeout(e);if((o===c||!o)&&clearTimeout)returno=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{returno.call(null,e)}catch(t){returno.call(this,e)}}}(e)}}functionp(e,t){this.fun=e,this.array=t}functiong(){}i.nextTick=function(e){vart=newArray(arguments.length-1);if(arguments.length>1)for(varn=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(newp(e,t)),1!==u.length||l||s(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){thrownewError("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){thrownewError("process.chdir is not supported")},i.umask=function(){return0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});consto=n(2);t.ActiveLineMarker=class{onDidChangeTextEditorSelection(e){const{previous:t}=o.getElementsForSourceLine(e);this._update(t&&t.element)}_update(e){this._unmarkActiveElement(this._current),this._markActiveElement(e),this._current=e}_unmarkActiveElement(e){e&&(e.className=e.className.replace(/\bcode-active-line\b/g,""))}_markActiveElement(e){e&&(e.className+=" code-active-line")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onceDocumentLoaded=function(e){"loading"===document.readyState||"uninitialized"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});consto=n(0);t.createPosterForVsCode=e=>newclass{postMessage(t,n){e.postMessage({type:t,source:o.getSettings().source,body:n})}}},function(e,t,n){(function(t){varn="Expected a function",o=NaN,i="[object Symbol]",r=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,l="object"==typeoft&&t&&t.Object===Object&&t,f="object"==typeofself&&self&&self.Object===Object&&self,d=l||f||Function("return this")(),m=Object.prototype.toString,p=Math.max,g=Math.min,h=function(){returnd.Date.now()};functionv(e,t,o){vari,r,c,s,a,u,l=0,f=!1,d=!1,m=!0;if("function"!=typeofe)thrownewTypeError(n);functionv(t){varn=i,o=r;returni=r=void0,l=t,s=e.apply(o,n)}functionb(e){varn=e-u;returnvoid0===u||n>=t||n<0||d&&e-l>=c}functionT(){vare=h();if(b(e))returnE(e);a=setTimeout(T,function(e){varn=t-(e-u);returnd?g(n,c-(e-l)):n}(e))}functionE(e){returna=void0,m&&i?v(e):(i=r=void0,s)}function_(){vare=h(),n=b(e);if(i=arguments,r=this,u=e,n){if(void0===a)returnfunction(e){returnl=e,a=setTimeout(T,t),f?v(e):s}(u);if(d)returna=setTimeout(T,t),v(u)}returnvoid0===a&&(a=setTimeout(T,t)),s}returnt=w(t)||0,y(o)&&(f=!!o.leading,c=(d="maxWait"ino)?p(w(o.maxWait)||0,t):c,m="trailing"ino?!!o.trailing:m),_.cancel=function(){void0!==a&&clearTimeout(a),l=0,i=u=r=a=void0},_.flush=function(){returnvoid0===a?s:E(h())},_}functiony(e){vart=typeofe;return!!e&&("object"==t||"function"==t)}functionw(e){if("number"==typeofe)returne;if(function(e){return"symbol"==typeofe||function(e){return!!e&&"object"==typeofe}(e)&&m.call(e)==i}(e))returno;if(y(e)){vart="function"==typeofe.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeofe)return0===e?e:+e;e=e.replace(r,"");varn=s.test(e);returnn||a.test(e)?u(e.slice(2),n?2:8):c.test(e)?o:+e}e.exports=function(e,t,o){vari=!0,r=!0;if("function"!=typeofe)thrownewTypeError(n);returny(o)&&(i="leading"ino?!!o.leading:i,r="trailing"ino?!!o.trailing:r),v(e,t,{leading:i,maxWait:t,trailing:r})}}).call(this,n(1))}]);
!function(e){vart={};functionn(s){if(t[s])returnt[s].exports;varo=t[s]={i:s,l:!1,exports:{}};returne[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;vars=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varoine)n.d(s,o,function(t){returne[t]}.bind(null,o));returns},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});lets=void0;functiono(e){constt=document.getElementById("vscode-markdown-preview-data");if(t){constn=t.getAttribute(e);if(n)returnJSON.parse(n)}thrownewError(`Could not load data for ${e}`)}t.getData=o,t.getSettings=function(){if(s)returns;if(s=o("data-settings"))returns;thrownewError("Could not load settings")}},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});consts=n(12),o=n(14);window.cspAlerter=news.CspAlerter,window.styleLoadingMonitor=newo.StyleLoadingMonitor},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});consts=n(0),o=n(13);t.CspAlerter=class{constructor(){this.didShow=!1,this.didHaveCspWarning=!1,document.addEventListener("securitypolicyviolation",()=>{this.onCspWarning()}),window.addEventListener("message",e=>{e&&e.data&&"vscode-did-block-svg"===e.data.name&&this.onCspWarning()})}setPoster(e){this.messaging=e,this.didHaveCspWarning&&this.showCspWarning()}onCspWarning(){this.didHaveCspWarning=!0,this.showCspWarning()}showCspWarning(){conste=o.getStrings(),t=s.getSettings();if(this.didShow||t.disableSecurityWarnings||!this.messaging)return;this.didShow=!0;constn=document.createElement("a");n.innerText=e.cspAlertMessageText,n.setAttribute("id","code-csp-warning"),n.setAttribute("title",e.cspAlertMessageTitle),n.setAttribute("role","button"),n.setAttribute("aria-label",e.cspAlertMessageLabel),n.onclick=()=>{this.messaging.postMessage("showPreviewSecuritySelector",{source:t.source})},document.body.appendChild(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStrings=function(){conste=document.getElementById("vscode-markdown-preview-data");if(e){constt=e.getAttribute("data-strings");if(t)returnJSON.parse(t)}thrownewError("Could not load strings")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.StyleLoadingMonitor=class{constructor(){this.unloadedStyles=[],this.finishedLoading=!1;conste=e=>{constt=e.target.dataset.source;this.unloadedStyles.push(t)};window.addEventListener("DOMContentLoaded",()=>{for(consttofdocument.getElementsByClassName("code-user-style"))t.dataset.source&&(t.onerror=e)}),window.addEventListener("load",()=>{this.unloadedStyles.length&&(this.finishedLoading=!0,this.poster&&this.poster.postMessage("previewStyleLoadError",{unloadedStyles:this.unloadedStyles}))})}setPoster(e){this.poster=e,this.finishedLoading&&e.postMessage("previewStyleLoadError",{unloadedStyles:this.unloadedStyles})}}}]);