3 lines
1.1 MiB
JavaScript
3 lines
1.1 MiB
JavaScript
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealMermaid=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r={exports:{}},i=n,a=Object.defineProperty,o=function(t,e){try{a(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},s=o,c="__core-js_shared__",u=n[c]||s(c,{}),l=u;(r.exports=function(t,e){return l[t]||(l[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var h,f,d=Function.prototype,p=d.bind,y=d.call,g=p&&p.bind(y),v=p?function(t){return t&&g(y,t)}:function(t){return t&&function(){return y.apply(t,arguments)}},m=n.TypeError,b=function(t){if(null==t)throw m("Can't call method on "+t);return t},_=b,x=n.Object,w=function(t){return x(_(t))},k=w,T=v({}.hasOwnProperty),E=Object.hasOwn||function(t,e){return T(k(t),e)},C=v,S=0,A=Math.random(),M=C(1..toString),N=function(t){return"Symbol("+(void 0===t?"":t)+")_"+M(++S+A,36)},D=function(t){return"function"==typeof t},O=n,B=D,L=function(t){return B(t)?t:void 0},I=function(t,e){return arguments.length<2?L(O[t]):O[t]&&O[t][e]},R=n,F=I("navigator","userAgent")||"",P=R.process,j=R.Deno,Y=P&&P.versions||j&&j.version,z=Y&&Y.v8;z&&(f=(h=z.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!f&&F&&(!(h=F.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=F.match(/Chrome\/(\d+)/))&&(f=+h[1]);var U=function(t){try{return!!t()}catch(t){return!0}},q=f,H=U,$=!!Object.getOwnPropertySymbols&&!H((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),W=$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=n,G=r.exports,X=E,Z=N,K=$,Q=W,J=G("wks"),tt=V.Symbol,et=tt&&tt.for,nt=Q?tt:tt&&tt.withoutSetter||Z,rt=function(t){if(!X(J,t)||!K&&"string"!=typeof J[t]){var e="Symbol."+t;K&&X(tt,t)?J[t]=tt[t]:J[t]=Q&&et?et(e):nt(e)}return J[t]},it={};it[rt("toStringTag")]="z";var at="[object z]"===String(it),ot={exports:{}},st=!U((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ct={},ut=D,lt=function(t){return"object"==typeof t?null!==t:ut(t)},ht=lt,ft=n.document,dt=ht(ft)&&ht(ft.createElement),pt=function(t){return dt?ft.createElement(t):{}},yt=pt,gt=!st&&!U((function(){return 7!=Object.defineProperty(yt("div"),"a",{get:function(){return 7}}).a})),vt=n,mt=lt,bt=vt.String,_t=vt.TypeError,xt=function(t){if(mt(t))return t;throw _t(bt(t)+" is not an object")},wt=Function.prototype.call,kt=wt.bind?wt.bind(wt):function(){return wt.apply(wt,arguments)},Tt=v({}.isPrototypeOf),Et=I,Ct=D,St=Tt,At=W,Mt=n.Object,Nt=At?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return Ct(e)&&St(e.prototype,Mt(t))},Dt=n.String,Ot=function(t){try{return Dt(t)}catch(t){return"Object"}},Bt=D,Lt=Ot,It=n.TypeError,Rt=function(t){if(Bt(t))return t;throw It(Lt(t)+" is not a function")},Ft=Rt,Pt=function(t,e){var n=t[e];return null==n?void 0:Ft(n)},jt=kt,Yt=D,zt=lt,Ut=n.TypeError,qt=kt,Ht=lt,$t=Nt,Wt=Pt,Vt=function(t,e){var n,r;if("string"===e&&Yt(n=t.toString)&&!zt(r=jt(n,t)))return r;if(Yt(n=t.valueOf)&&!zt(r=jt(n,t)))return r;if("string"!==e&&Yt(n=t.toString)&&!zt(r=jt(n,t)))return r;throw Ut("Can't convert object to primitive value")},Gt=rt,Xt=n.TypeError,Zt=Gt("toPrimitive"),Kt=function(t,e){if(!Ht(t)||$t(t))return t;var n,r=Wt(t,Zt);if(r){if(void 0===e&&(e="default"),n=qt(r,t,e),!Ht(n)||$t(n))return n;throw Xt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Vt(t,e)},Qt=Nt,Jt=function(t){var e=Kt(t,"string");return Qt(e)?e:e+""},te=st,ee=gt,ne=xt,re=Jt,ie=n.TypeError,ae=Object.defineProperty;ct.f=te?ae:function(t,e,n){if(ne(t),e=re(e),ne(n)
|
||
|
/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */;var $s={5051:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,6],n=[1,7],r=[1,8],i=[1,9],a=[1,12],o=[1,11],s=[1,15,24],c=[1,19],u=[1,31],l=[1,34],h=[1,32],f=[1,33],d=[1,35],p=[1,36],y=[1,37],g=[1,38],v=[1,41],m=[1,42],b=[1,43],_=[1,44],x=[15,24],w=[1,56],k=[1,57],T=[1,58],E=[1,59],C=[1,60],S=[1,61],A=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],M=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],N=[7,8,9,10,15,18,22,24],D=[47,77,78,79,80],O=[47,54,55,77,78,79,80],B=[47,50,51,52,53,77,78,79,80],L=[15,24,31],I=[1,93],R={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:r.parseDirective(a[s],"type_directive");break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=a[s];break;case 21:this.$=a[s-1]+a[s];break;case 22:case 23:this.$=a[s-1]+"~"+a[s];break;case 24:r.addRelation(a[s]);break;case 25:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 33:r.addClass(a[s]);break;case 34:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 35:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 36:r.addClass(a[s-5]),r.setCssClass(a[s-5
|