varr=n(421),i=n(422),a=n(191);functiono(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functions(t,e){if(o()<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&&a(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>=o())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().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:returnj(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnU(t).length;default:if(r)returnj(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":returnD(this,e,n);case"utf8":case"utf-8":returnS(this,e,n);case"ascii":returnM(this,e,n);case"latin1":case"binary":returnT(this,e,n);case"base64":returnA(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnC(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:v(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):v(t,[e],n,r,i);thrownewTypeError("val must be string, number or Buffer")}functionv(t,e,n,r,i){vara,o=1,s=t.length,u=e.length;if(void0!==r&&("ucs2"===(r=String(r).toLowerCase())
void0!==arguments[0]&&(zr.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeofarguments[arguments.length-1]?(e=arguments[arguments.length-1],_.debug("Callback function found")):void0!==r.mermaid&&("function"==typeofr.mermaid.callback?(e=r.mermaid.callback,_.debug("Callback function found")):_.debug("No Callback function found")),t=void0===t?document.querySelectorAll(".mermaid"):"string"==typeoft?document.querySelectorAll(t):tinstanceofwindow.Node?[t]:t,_.debug("Start On Load before: "+zr.startOnLoad),void0!==zr.startOnLoad&&(_.debug("Start On Load inner: "+zr.startOnLoad),jr.initialize({startOnLoad:zr.startOnLoad})),void0!==zr.ganttConfig&&jr.initialize({gantt:zr.ganttConfig});for(vara=function(r){vara=t[r];
/*! Check if previously processed */if(a.getAttribute("data-processed"))return"continue";a.setAttribute("data-processed",!0);varo="mermaid-".concat(Date.now());n=a.innerHTML,n=i.a.decode(n).trim().replace(/<br\s*\/?>/gi,"<br/>"),jr.render(o,n,(function(t,n){a.innerHTML=t,void0!==e&&e(o),n&&n(a)}),a)},o=0;o<t.length;o++)a(o)},initialize:function(t){void0!==t.mermaid&&(void0!==t.mermaid.startOnLoad&&(zr.startOnLoad=t.mermaid.startOnLoad),void0!==t.mermaid.htmlLabels&&(zr.htmlLabels=t.mermaid.htmlLabels)),jr.initialize(t),_.debug("Initializing mermaid ")},contentLoaded:Ur};e.default=zr}]).default}));