varr=n(419),i=n(420),o=n(191);functiona(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functions(t,e){if(a()<e)thrownewRangeError("Invalid typed array length");returnu.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=u.prototype:(null===t&&(t=newu(e)),t.length=e),t}functionu(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||thisinstanceofu))returnnewu(t,e,n);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnl(this,t)}returnc(this,t,e,n)}functionc(t,e,n,r){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");e=void0===n&&void0===r?newUint8Array(e):void0===r?newUint8Array(e,n):newUint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);returnt}(t,e,n,r):"string"==typeofe?function(t,e,n){"string"==typeofn&&""!==n||(n="utf8");if(!u.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));returnt}(t,e,n):function(t,e){if(u.isBuffer(e)){varn=0|d(e.length);return0===(t=s(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(r=e.length)!=r?s(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))returnh(t,e.data)}varr;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functionf(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionl(t,e){if(f(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(varn=0;n<e;++n)t[n]=0;returnt}functionh(t,e){varn=e.length<0?0:0|d(e.length);t=s(t,n);for(varr=0;r<n;r+=1)t[r]=255&e[r];returnt}functiond(t){if(t>=a())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return0|t}functionp(t,e){if(u.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varn=t.length;if(0===n)return0;for(varr=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":casevoid0:returnU(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnz(t).length;default:if(r)returnU(t).length;e=(""+e).toLowerCase(),r=!0}}functiong(t,e,n){varr=!1;if((void0===e||e<0)&&(e=0),e>this.length)return"";if((void0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":returnC(this,e,n);case"utf8":case"utf-8":returnS(this,e,n);case"ascii":returnM(this,e,n);case"latin1":case"binary":returnD(this,e,n);case"base64":returnA(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnO(this,e,n);default:if(r)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}functiony(t,e,n){varr=t[e];t[e]=t[n],t[n]=r}functionb(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeofn?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}elseif(n<0){if(!i)return-1;n=0}if("string"==typeofe&&(e=u.from(e,r)),u.isBuffer(e))return0===e.length?-1:m(t,e,n,r,i);if("number"==typeofe)returne&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);thrownewTypeError("val must be string, number or Buffer")}functionm(t,e,n,r,i){varo,a=1,s=t.length,u=e.length;if(void0!==r&&("ucs2"===(r=String(r).toLowerCase())
void0!==arguments[0]&&(gr.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0],"function"==typeofarguments[arguments.length-1]?(n=arguments[arguments.length-1],v.debug("Callback function found")):void0!==t.mermaid&&("function"==typeoft.mermaid.callback?(n=t.mermaid.callback,v.debug("Callback function found")):v.debug("No Callback function found")),e=void0===e?document.querySelectorAll(".mermaid"):"string"==typeofe?document.querySelectorAll(e):einstanceofwindow.Node?[e]:e,v.debug("Start On Load before: "+gr.startOnLoad),void0!==gr.startOnLoad&&(v.debug("Start On Load inner: "+gr.startOnLoad),dr.initialize({startOnLoad:gr.startOnLoad})),void0!==gr.ganttConfig&&dr.initialize({gantt:gr.ganttConfig});for(lett=0;t<e.length;t++){consto=e[t];
/*! Check if previously processed */if(o.getAttribute("data-processed"))continue;o.setAttribute("data-processed",!0);consta=`mermaid-${Date.now()}`;r=o.innerHTML,r=i.a.decode(r).trim().replace(/<br>/gi,"<br/>"),dr.render(a,r,(t,e)=>{o.innerHTML=t,void0!==n&&n(a),e&&e(o)},o)}},initialize:function(t){v.debug("Initializing mermaid "),void0!==t.mermaid&&(void0!==t.mermaid.startOnLoad&&(gr.startOnLoad=t.mermaid.startOnLoad),void0!==t.mermaid.htmlLabels&&(gr.htmlLabels=t.mermaid.htmlLabels)),dr.initialize(t)},contentLoaded:pr};e.default=gr}]).default}));