L2I4LHWQOUWOGNASGEY2OJMU3MKOHHJ4G45CMKLRFQFGPHN4GS7AC
VLEQZIGPIBVTKBWFHNMK3PG3ZLTKCG2IFHHGFFDWWQ36OCT4HDSAC
OFECOC2S3D55N3N5OJDLLPDDMVC4GKL5SIUWAGDKKWKLU4OMTHUAC
D53Y6ERA4VWH4MEPD2HIXU3FHUC32V7TM4UA5ZSYIMZIGWLQCXWAC
6MDGMZZIZM6LG32OW4Q3B2KF4CJ7TV3QNGZC6BKG6YLGUEQYX77AC
6NJH6OYJ4E2SLWL22UH2VFFPQEQQW4OPAMQYXEJSKAIBPBT2DD4AC
NOEKFT3DJR5OMI5QMFBEOLMN7PMV2NMQOHPMLPNO4RK442U7TB5QC
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-BUsVpa2s.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-CSZldN_k.js"></script>
import{p as e,f as o}from"./flowDb-147da10a-D1NRua4U.js";import{f as t,a}from"./styles-c171666c-DVu2lf3q.js";import{u as i}from"./slidev/Mermaid-D0r0_ggr.js";import"./graph-af3d5df6-BS2fJ_rm.js";import"./index-c8395ba2-JxgMKpMl.js";import"./layout-6685625a-COnxZM2s.js";import"./clone-d2e37f8c-Cf5luijK.js";import"./edges-1e1ebc73-Bgkdu3Bw.js";import"./createText-f6615236-B0dX0IeG.js";import"./line-65d70945-B8zvfP93.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-yXma448J.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram};
import{Z as zt,$ as ot,W as wt,V as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,U as qt,i as jt,d as Gt}from"./slidev/Mermaid-D0r0_ggr.js";import{c as Qt}from"./createText-f6615236-B0dX0IeG.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-Dfl-jUvU.js";import{l as ft}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Wt=a.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(W.yy[J]=this.yy[J]);k.setInput(r,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Bt=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,B,v,it,O={},q,M,dt,j;;){if(B=u[u.length-1],this.defaultActions[B]?v=this.defaultActions[B]:((D===null||typeof D>"u")&&(D=Ot()),v=F[B]&&F[B][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[B])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
import{Z as zt,$ as ot,W as wt,V as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,U as qt,i as jt,d as Gt}from"./slidev/Mermaid-BK6vYFFb.js";import{c as Qt}from"./createText-f6615236-DMiA32T3.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-CG9g9-Er.js";import{l as ft}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Wt=a.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(W.yy[J]=this.yy[J]);k.setInput(r,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Bt=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,B,v,it,O={},q,M,dt,j;;){if(B=u[u.length-1],this.defaultActions[B]?v=this.defaultActions[B]:((D===null||typeof D>"u")&&(D=Ot()),v=F[B]&&F[B][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[B])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
import{b6 as ft,E as gt,c as mt,l as E,h as G,t as xt,b7 as bt,b8 as _t,b9 as kt}from"./slidev/Mermaid-D0r0_ggr.js";import{d as D}from"./arc-5aa99581-CWkVT26Z.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
import{b6 as ft,E as gt,c as mt,l as E,h as G,t as xt,b7 as bt,b8 as _t,b9 as kt}from"./slidev/Mermaid-BK6vYFFb.js";import{d as D}from"./arc-5aa99581-jr_3UB9E.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
import{m as i,ar as o}from"./slidev/Mermaid-D0r0_ggr.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{m as i,ar as o}from"./slidev/Mermaid-BK6vYFFb.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/Mermaid-D0r0_ggr.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/Mermaid-BK6vYFFb.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
import{G as R}from"./graph-af3d5df6-BS2fJ_rm.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/Mermaid-D0r0_ggr.js";import{r as Q}from"./index-c8395ba2-JxgMKpMl.js";import{c as Y}from"./channel-d3ac35ac-yXma448J.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
import{G as R}from"./graph-af3d5df6-CpzLvc9u.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/Mermaid-BK6vYFFb.js";import{r as Q}from"./index-c8395ba2-zsT_SlMY.js";import{c as Y}from"./channel-d3ac35ac-CX7CKzfx.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,a8 as Jt}from"./slidev/Mermaid-D0r0_ggr.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,a8 as Jt}from"./slidev/Mermaid-BK6vYFFb.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-B0RUbRnc.js";import{G as tt}from"./graph-af3d5df6-BS2fJ_rm.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/Mermaid-D0r0_ggr.js";import{r as st}from"./index-c8395ba2-JxgMKpMl.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-COnxZM2s.js";import"./clone-d2e37f8c-Cf5luijK.js";import"./edges-1e1ebc73-Bgkdu3Bw.js";import"./createText-f6615236-B0dX0IeG.js";import"./line-65d70945-B8zvfP93.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Wt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Wt as diagram};
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-rlHTEi_g.js";import{G as tt}from"./graph-af3d5df6-CpzLvc9u.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/Mermaid-BK6vYFFb.js";import{r as st}from"./index-c8395ba2-zsT_SlMY.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-shznRzcW.js";import"./clone-d2e37f8c-CHMHSaUq.js";import"./edges-1e1ebc73-BMNQBDYv.js";import"./createText-f6615236-DMiA32T3.js";import"./line-65d70945-R41ce_xR.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Wt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Wt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-B0RUbRnc.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/Mermaid-D0r0_ggr.js";import{G as C}from"./graph-af3d5df6-BS2fJ_rm.js";import{l as F}from"./layout-6685625a-COnxZM2s.js";import{l as $}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:D},pt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{pt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-rlHTEi_g.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/Mermaid-BK6vYFFb.js";import{G as C}from"./graph-af3d5df6-CpzLvc9u.js";import{l as F}from"./layout-6685625a-shznRzcW.js";import{l as $}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:D},pt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{pt as diagram};
import{t as o,al as z,am as F,an as j,y as c,ao as A,ap as B,Q as t,S as _,R as E,aq as L,d as g,_ as x,o as m,b as C,F as P,g as O,e as T,Y as i,ar as S,c as $,h as N,i as R,af as D,A as M,as as q,v as I}from"../modules/vue-O-XuQLLR.js";import{f as V,_ as W,c as r,b,w as G,x as K,y as U,z as H,A as Q,B as X}from"../index-BUsVpa2s.js";const ie=o(!1),le=o(!1),re=o(!1),Y=o(!1),ce=o(!0),de=z({xs:460,...L}),y=F(),ue=j(),ve=c(()=>y.height.value-y.width.value/V.value>120),fe=A(_?document.body:null),h=B(),pe=c(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=h.value)==null?void 0:s.tagName)||"")||((e=h.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),ge=c(()=>{var s;return["BUTTON","A"].includes(((s=h.value)==null?void 0:s.tagName)||"")});t("slidev-camera","default",{listenToStorageChanges:!1});t("slidev-mic","default",{listenToStorageChanges:!1});const me=t("slidev-scale",0),he=t("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),_e=t("slidev-show-editor",!1,{listenToStorageChanges:!1}),we=t("slidev-editor-vertical",!1,{listenToStorageChanges:!1});t("slidev-editor-width",_?window.innerWidth*.4:318,{listenToStorageChanges:!1});t("slidev-editor-height",_?window.innerHeight*.4:300,{listenToStorageChanges:!1});const p=t("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),f=t("slidev-presenter-layout",1,{listenToStorageChanges:!1});function Ce(){f.value=f.value+1,f.value>2&&(f.value=1)}function Se(){p.value=Math.min(2,p.value+.1)}function ye(){p.value=Math.max(.5,p.value-.1)}const xe=E(Y);function Te(s,e=""){var d,n;const a=["slidev-page",e],l=(n=(d=s==null?void 0:s.meta)==null?void 0:d.slide)==null?void 0:n.no;return l!=null&&a.push(`slidev-page-${l}`),a.filter(Boolean).join(" ")}async function be(){const{saveAs:s}=await W(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof r.download=="string"?r.download:r.exportFilename?`${r.exportFilename}.pdf`:"/slides/fosdem2024slidev-exported.pdf",`${r.title}.pdf`)}const Z={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},J=T("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ee=T("div",null,"Loading slide...",-1),se=g({__name:"SlideLoading",setup(s){const e=o(!1);return x(()=>{setTimeout(()=>{e.value=!0},200)}),(a,l)=>(m(),C("div",Z,[e.value?(m(),C(P,{key:0},[J,ee],64)):O("v-if",!0)]))}}),te=b(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),ae=g({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,a=c(()=>{var n,u;return((u=(n=e.route.meta)==null?void 0:n.slide)==null?void 0:u.frontmatter.zoom)??1});i(G,e.route),i(K,o(e.route.no)),i(U,o(e.renderContext)),i(H,S(e,"active")),i(Q,S(e,"clicksContext")),i(X,a);const l=c(()=>a.value===1?void 0:{width:`${100/a.value}%`,height:`${100/a.value}%`,transformOrigin:"top left",transform:`scale(${a.value})`}),d=q({loader:async()=>{const n=await e.is();return g({setup(u,{attrs:k}){return x(()=>{var v,w;(w=(v=e.clicksContext)==null?void 0:v.onMounted)==null||w.call(v)}),()=>I(n.default,k)}})},delay:300,loadingComponent:te});return(n,u)=>(m(),$(D(M(d)),{style:N(l.value),"data-slidev-no":e.route.no,class:R({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),ke=b(ae,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),ze={render(){return[]}},Fe={render(){return[]}};export{Fe as G,ke as S,ze as a,Y as b,p as c,ye as d,ie as e,le as f,Te as g,ve as h,Se as i,_e as j,me as k,we as l,re as m,ue as n,be as o,f as p,ce as q,ge as r,he as s,xe as t,pe as u,fe as v,y as w,de as x,Ce as y,h as z};
import{d as _,y as p,o as c,b as f,e as s,f as m,h,c as v,k as g,q as x,s as y,A as a}from"../modules/vue-O-XuQLLR.js";import{u as d,p as k,f as b}from"./context-CUJW2l2i.js";import{b as u,D as i}from"../index-BUsVpa2s.js";import"../modules/shiki-CBnMlxcT.js";function l(e){return e.startsWith("/")?"/slides/fosdem2024"+e.slice(1):e}function P(e,r=!1){const o=e&&["#","rgb","hsl"].some(n=>e.indexOf(n)===0),t={background:o?e:void 0,color:e&&!o?"white":void 0,backgroundImage:o?void 0:e?r?`linear-gradient(#0005, #0008), url(${l(e)})`:`url("${l(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return t.background||delete t.background,t}const B={class:"my-auto w-full"},C=_({__name:"cover",props:{background:{default:""}},setup(e){d();const r=e,o=p(()=>P(r.background,!0));return(t,n)=>(c(),f("div",{class:"slidev-layout cover",style:h(o.value)},[s("div",B,[m(t.$slots,"default")])],4))}}),S=u(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/cover.vue"]]),$=s("h1",null,"Nix for genetics",-1),w=s("h2",null,"Powering a bioinformatics pipeline",-1),z=s("p",null,"Alexis Praga (M. D, Ph.D in Computer Science)",-1),A=s("p",null,"Besançon Hospital (France)",-1),D={__name:"1",setup(e){return k(i),d(),(r,o)=>(c(),v(S,x(y(a(b)(a(i),0))),{default:g(()=>[$,w,z,A]),_:1},16))}},j=u(D,[["__file","/@slidev/slides/1.md"]]);export{j as default};
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-B8tdt9J-.js","assets/modules/vue-O-XuQLLR.js","assets/index-BUsVpa2s.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/slidev/bottom-Hm8dPPYZ.js","assets/bottom-DbIWt59F.css"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-DrCSk8QH.js","assets/modules/vue-O-XuQLLR.js","assets/index-CSZldN_k.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/slidev/bottom-BtwZqUlF.js","assets/bottom-DbIWt59F.css"]
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as a,i as B,c as f,g as _,h as M,F as v,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-O-XuQLLR.js";import{t as W}from"../modules/shiki-CBnMlxcT.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-Hm8dPPYZ.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-BUsVpa2s.js";import{P as Q}from"./PrintStyle-C_l0U0Ja.js";function U(l){return Array.from(new Set(l))}function q(...l){let t,n,e;l.length===1?(t=0,e=1,[n]=l):[t,n,e=1]=l;const s=[];let i=t;for(;i<n;)s.push(i),i+=e||1;return s}function ee(l,t){if(!t||t==="all"||t==="*")return q(1,l+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,i]=e.split("-",2);n.push(...q(+s,i?+i+1:l+1))}return U(n).filter(e=>e<=l).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(l){const{nav:t}=l,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-B8tdt9J-.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(o=>s.value=o.default);const i=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:i.value,class:"print-slide-container",style:M(e.value)},[d(a(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(a(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(a(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(a(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(l){const{route:t}=l,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,i)=>(r(),u(v,null,[d(A,{"clicks-context":a(e),nav:a(N)(s.route,a(e))},null,8,["clicks-context","nav"]),a(n)?(r(),u(v,{key:0},[_(`
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as a,i as B,c as f,g as _,h as M,F as v,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-O-XuQLLR.js";import{t as W}from"../modules/shiki-CBnMlxcT.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-BtwZqUlF.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-CSZldN_k.js";import{P as Q}from"./PrintStyle-DfLhnhq5.js";function U(l){return Array.from(new Set(l))}function q(...l){let t,n,e;l.length===1?(t=0,e=1,[n]=l):[t,n,e=1]=l;const s=[];let i=t;for(;i<n;)s.push(i),i+=e||1;return s}function ee(l,t){if(!t||t==="all"||t==="*")return q(1,l+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,i]=e.split("-",2);n.push(...q(+s,i?+i+1:l+1))}return U(n).filter(e=>e<=l).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(l){const{nav:t}=l,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-DrCSk8QH.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(o=>s.value=o.default);const i=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:i.value,class:"print-slide-container",style:M(e.value)},[d(a(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(a(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(a(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(a(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(l){const{route:t}=l,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,i)=>(r(),u(v,null,[d(A,{"clicks-context":a(e),nav:a(N)(s.route,a(e))},null,8,["clicks-context","nav"]),a(n)?(r(),u(v,{key:0},[_(`
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-O-XuQLLR.js";import{u as y,h as N,c as m,b as k}from"../index-BUsVpa2s.js";import{N as w}from"./NoteDisplay-Dsd-m7JS.js";import"../modules/shiki-CBnMlxcT.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-O-XuQLLR.js";import{u as y,h as N,c as m,b as k}from"../index-CSZldN_k.js";import{N as w}from"./NoteDisplay-DTKxrgB2.js";import"../modules/shiki-CBnMlxcT.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-DhLcIxB1.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-O-XuQLLR.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-BUsVpa2s.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-ozim-3x_.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-Hm8dPPYZ.js";import{N as Te}from"./NoteDisplay-Dsd-m7JS.js";import Ve from"./DrawingControls-C_MrCHSC.js";import{u as qe}from"./DrawingPreview-B8tdt9J-.js";import"../modules/shiki-CBnMlxcT.js";import"./context-CUJW2l2i.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-DhLcIxB1.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-O-XuQLLR.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-CSZldN_k.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-6r791Jri.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-BtwZqUlF.js";import{N as Te}from"./NoteDisplay-DTKxrgB2.js";import Ve from"./DrawingControls-CFFJhpqk.js";import{u as qe}from"./DrawingPreview-DrCSk8QH.js";import"../modules/shiki-CBnMlxcT.js";import"./context-CokfLzX0.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-C_MrCHSC.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-B8tdt9J-.js","assets/index-BUsVpa2s.js","assets/index-BAThGyva.css","assets/slidev/bottom-Hm8dPPYZ.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-ozim-3x_.js","assets/slidev/context-CUJW2l2i.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-CFFJhpqk.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-DrCSk8QH.js","assets/index-CSZldN_k.js","assets/index-BAThGyva.css","assets/slidev/bottom-BtwZqUlF.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-6r791Jri.js","assets/slidev/context-CokfLzX0.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
import{b as w,c as y,u as $,_ as z}from"../index-BUsVpa2s.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-O-XuQLLR.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-Hm8dPPYZ.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-ozim-3x_.js";import{P as q}from"./PrintStyle-C_l0U0Ja.js";import{u as J}from"./DrawingPreview-B8tdt9J-.js";import"../modules/shiki-CBnMlxcT.js";import"../modules/unplugin-icons-DhLcIxB1.js";import"./context-CUJW2l2i.js";const Z="/slides/fosdem2024/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-C_MrCHSC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{b as w,c as y,u as $,_ as z}from"../index-CSZldN_k.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-O-XuQLLR.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-BtwZqUlF.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-6r791Jri.js";import{P as q}from"./PrintStyle-DfLhnhq5.js";import{u as J}from"./DrawingPreview-DrCSk8QH.js";import"../modules/shiki-CBnMlxcT.js";import"../modules/unplugin-icons-DhLcIxB1.js";import"./context-CokfLzX0.js";const Z="/slides/fosdem2024/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-CFFJhpqk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{at as n,ar as r,t as u,y as j,Y as $,au as v}from"../modules/vue-O-XuQLLR.js";import{g as p,B as x,K as l,i as C,A as S,x as R,y as T,w as g,L as k,M as E}from"../index-BUsVpa2s.js";function F(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,j(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function A(t){var a,c;$(l,t);const{$slidev:s,$page:i}=F(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:E),frontmatter:t}}export{O as f,A as p,F as u};
import{at as n,ar as r,t as u,y as j,Y as $,au as v}from"../modules/vue-O-XuQLLR.js";import{g as p,B as x,K as l,i as C,A as S,x as R,y as T,w as g,L as k,M as E}from"../index-CSZldN_k.js";function F(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,j(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function A(t){var a,c;$(l,t);const{$slidev:s,$page:i}=F(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:E),frontmatter:t}}export{O as f,A as p,F as u};
import{t as o,al as z,am as F,an as j,y as c,ao as A,ap as B,Q as t,S as _,R as E,aq as L,d as g,_ as x,o as m,b as C,F as P,g as O,e as T,Y as i,ar as S,c as $,h as N,i as R,af as D,A as M,as as q,v as I}from"../modules/vue-O-XuQLLR.js";import{f as V,_ as W,c as r,b,w as G,x as K,y as U,z as H,A as Q,B as X}from"../index-CSZldN_k.js";const ie=o(!1),le=o(!1),re=o(!1),Y=o(!1),ce=o(!0),de=z({xs:460,...L}),y=F(),ue=j(),ve=c(()=>y.height.value-y.width.value/V.value>120),fe=A(_?document.body:null),h=B(),pe=c(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=h.value)==null?void 0:s.tagName)||"")||((e=h.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),ge=c(()=>{var s;return["BUTTON","A"].includes(((s=h.value)==null?void 0:s.tagName)||"")});t("slidev-camera","default",{listenToStorageChanges:!1});t("slidev-mic","default",{listenToStorageChanges:!1});const me=t("slidev-scale",0),he=t("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),_e=t("slidev-show-editor",!1,{listenToStorageChanges:!1}),we=t("slidev-editor-vertical",!1,{listenToStorageChanges:!1});t("slidev-editor-width",_?window.innerWidth*.4:318,{listenToStorageChanges:!1});t("slidev-editor-height",_?window.innerHeight*.4:300,{listenToStorageChanges:!1});const p=t("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),f=t("slidev-presenter-layout",1,{listenToStorageChanges:!1});function Ce(){f.value=f.value+1,f.value>2&&(f.value=1)}function Se(){p.value=Math.min(2,p.value+.1)}function ye(){p.value=Math.max(.5,p.value-.1)}const xe=E(Y);function Te(s,e=""){var d,n;const a=["slidev-page",e],l=(n=(d=s==null?void 0:s.meta)==null?void 0:d.slide)==null?void 0:n.no;return l!=null&&a.push(`slidev-page-${l}`),a.filter(Boolean).join(" ")}async function be(){const{saveAs:s}=await W(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof r.download=="string"?r.download:r.exportFilename?`${r.exportFilename}.pdf`:"/slides/fosdem2024/slidev-exported.pdf",`${r.title}.pdf`)}const Z={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},J=T("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ee=T("div",null,"Loading slide...",-1),se=g({__name:"SlideLoading",setup(s){const e=o(!1);return x(()=>{setTimeout(()=>{e.value=!0},200)}),(a,l)=>(m(),C("div",Z,[e.value?(m(),C(P,{key:0},[J,ee],64)):O("v-if",!0)]))}}),te=b(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),ae=g({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,a=c(()=>{var n,u;return((u=(n=e.route.meta)==null?void 0:n.slide)==null?void 0:u.frontmatter.zoom)??1});i(G,e.route),i(K,o(e.route.no)),i(U,o(e.renderContext)),i(H,S(e,"active")),i(Q,S(e,"clicksContext")),i(X,a);const l=c(()=>a.value===1?void 0:{width:`${100/a.value}%`,height:`${100/a.value}%`,transformOrigin:"top left",transform:`scale(${a.value})`}),d=q({loader:async()=>{const n=await e.is();return g({setup(u,{attrs:k}){return x(()=>{var v,w;(w=(v=e.clicksContext)==null?void 0:v.onMounted)==null||w.call(v)}),()=>I(n.default,k)}})},delay:300,loadingComponent:te});return(n,u)=>(m(),$(D(M(d)),{style:N(l.value),"data-slidev-no":e.route.no,class:R({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),ke=b(ae,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),ze={render(){return[]}},Fe={render(){return[]}};export{Fe as G,ke as S,ze as a,Y as b,p as c,ye as d,ie as e,le as f,Te as g,ve as h,Se as i,_e as j,me as k,we as l,re as m,ue as n,be as o,f as p,ce as q,ge as r,he as s,xe as t,pe as u,fe as v,y as w,de as x,Ce as y,h as z};
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-C_MrCHSC.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-B8tdt9J-.js","assets/index-BUsVpa2s.js","assets/index-BAThGyva.css","assets/slidev/bottom-Hm8dPPYZ.js","assets/bottom-DbIWt59F.css","assets/slidev/context-CUJW2l2i.js","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-DzakBQB2.js"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-CFFJhpqk.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-DrCSk8QH.js","assets/index-CSZldN_k.js","assets/index-BAThGyva.css","assets/slidev/bottom-BtwZqUlF.js","assets/bottom-DbIWt59F.css","assets/slidev/context-CokfLzX0.js","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-bUAtGFYk.js"]
import{t as D,a8 as Ot,a9 as Dt,y as N,aa as L,ab as W,U as Ft,D as me,ac as Vt,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as k,e as A,f as le,h as ce,i as F,o as h,a6 as Ve,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as C,g as b,a7 as zt,k as R,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as rt,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-O-XuQLLR.js";import{u as se,n as ts,t as Ne,f as we,a as xe,s as ss,c as ie,g as ns,b as U,o as ze,_ as it,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-BUsVpa2s.js";import{u as je,D as rs}from"./DrawingPreview-B8tdt9J-.js";import{b as G,t as Re,m as Z,n as ct,o as ut,q as is,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-Hm8dPPYZ.js";import{e as fs,f as ps,g as vs,h as _s,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-DhLcIxB1.js";import{u as Ns}from"./context-CUJW2l2i.js";import{t as Rs}from"../modules/shiki-CBnMlxcT.js";function No(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:r}=je(),i=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){r.value||(i.value=Dt())},onSwipeEnd(){if(!i.value||r.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const _e=D(1),ge=N(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>_e.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ts(){if(O.value>_e.value){let t=O.value-Be.value;t<_e.value&&(t=_e.value),O.value=t}}function Ps(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:r,prevSlide:i}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:v,down:y,enter:_,d:M,g:S,o:I,"`":w}=ct,T={next:n,prev:r,nextSlide:o,prevSlide:i,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Ne,toggleOverview:Re,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let g=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:r,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:r,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:r,autoRepeat:!0},{name:"next_down",key:L(y,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(v,W(G)),fn:()=>i(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>i(!1),autoRepeat:!0},{name:"toggle_dark",key:L(M,W(a)),fn:Ne},{name:"toggle_overview",key:L(Ft(I,w),W(a)),fn:Re},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(S,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(v,G),fn:Ts},{name:"down_overview",key:L(y,G),fn:Ps},{name:"goto_from_overview",key:L(_,G),fn:()=>{t(O.value),G.value=!1}}];const P=new Set(g.map($=>$.name));for(const $ of Os){const j=$(T,g);g=g.concat(j)}if(g.filter($=>$.name&&P.has($.name)).length===0){const $=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
import{t as D,a8 as Ot,a9 as Dt,y as N,aa as L,ab as W,U as Ft,D as me,ac as Vt,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as k,e as A,f as le,h as ce,i as F,o as h,a6 as Ve,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as C,g as b,a7 as zt,k as R,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as rt,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-O-XuQLLR.js";import{u as se,n as ts,t as Ne,f as we,a as xe,s as ss,c as ie,g as ns,b as U,o as ze,_ as it,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-CSZldN_k.js";import{u as je,D as rs}from"./DrawingPreview-DrCSk8QH.js";import{b as G,t as Re,m as Z,n as ct,o as ut,q as is,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-BtwZqUlF.js";import{e as fs,f as ps,g as vs,h as _s,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-DhLcIxB1.js";import{u as Ns}from"./context-CokfLzX0.js";import{t as Rs}from"../modules/shiki-CBnMlxcT.js";function No(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:r}=je(),i=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){r.value||(i.value=Dt())},onSwipeEnd(){if(!i.value||r.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const _e=D(1),ge=N(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>_e.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ts(){if(O.value>_e.value){let t=O.value-Be.value;t<_e.value&&(t=_e.value),O.value=t}}function Ps(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:r,prevSlide:i}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:v,down:y,enter:_,d:M,g:S,o:I,"`":w}=ct,T={next:n,prev:r,nextSlide:o,prevSlide:i,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Ne,toggleOverview:Re,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let g=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:r,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:r,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:r,autoRepeat:!0},{name:"next_down",key:L(y,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(v,W(G)),fn:()=>i(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>i(!1),autoRepeat:!0},{name:"toggle_dark",key:L(M,W(a)),fn:Ne},{name:"toggle_overview",key:L(Ft(I,w),W(a)),fn:Re},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(S,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(v,G),fn:Ts},{name:"down_overview",key:L(y,G),fn:Ps},{name:"goto_from_overview",key:L(_,G),fn:()=>{t(O.value),G.value=!1}}];const P=new Set(g.map($=>$.name));for(const $ of Os){const j=$(T,g);g=g.concat(j)}if(g.filter($=>$.name&&P.has($.name)).length===0){const $=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`)),Gt(ns,c),(p,v)=>(h(),k("div",{id:"slide-container",ref_key:"root",ref:o,class:F(["slidev-slides-container",f.value])},[A("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0});return(r,i)=>{const a=fs;return h(),k("div",Gs,[A("div",Ws,X(t.title),1),A("div",Ks,[(h(!0),k(H,null,ke(t.items,l=>(h(),k("div",{key:l.value,class:F(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:F(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),k("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0}),r=D();return Kt(r,()=>{o.value=!1}),(i,a)=>(h(),k("div",{ref_key:"el",ref:r,class:"flex relative"},[A("button",{class:F({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(i.$slots,"button",{class:F({disabled:t.disabled})})],2),(h(),C(zt,null,[u(o)?(h(),k("div",Js,[le(i.$slots,"menu")])):b("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),k("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),C(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:R(()=>[A("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[A("div",{class:F(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:r,isEmbedded:i,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:v}=je(),y=Ae.smaller("md"),{isFullscreen:_,toggle:M}=dt,S=N(()=>s.value.query.password),I=N(()=>S.value?`?password=${S.value}`:""),w=N(()=>`${ze(n.value,!0)}${I.value}`),T=N(()=>`${ze(n.value,!1)}${I.value}`),g=D();function P(){g.value&&ae.value&&g.value.contains(ae.value)&&ae.value.blur()}const E=N(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),$=Ie(),j=Ie();return it(()=>import("./DrawingControls-C_MrCHSC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(re=>j.value=re.default),(re,V)=>{const q=ps,We=vs,B=_s,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Nt=Ss,Ke=Ht("RouterLink"),Rt=Ms,At=$s,Lt=Cs,Tt=Es,Pt=xs;return h(),k("nav",{ref_key:"root",ref:g,class:"flex flex-col"},[A("div",{class:F(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",E.value]),onMouseleave:P},[u(i)?b("v-if",!0):(h(),C(z,{key:0,title:u(_)?"Close fullscreen":"Enter fullscreen",onClick:u(M)},{default:R(()=>[u(_)?(h(),C(q,{key:0})):(h(),C(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:F({disabled:!u(r)}),title:"Go to previous slide",onClick:u(d)},{default:R(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:F({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:R(()=>[x(ne)]),_:1},8,["class","onClick"]),u(i)?b("v-if",!0):(h(),C(z,{key:1,title:"Show slide overview",onClick:V[0]||(V[0]=de=>u(Re)())},{default:R(()=>[x(ue)]),_:1})),u(os)?b("v-if",!0):(h(),C(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:V[1]||(V[1]=de=>u(Ne)())},{default:R(()=>[u(He)?(h(),C(Mt,{key:0})):(h(),C($t,{key:1}))]),_:1},8,["title"])),x(pe),u(i)?b("v-if",!0):(h(),k(H,{key:3},[!u(a)&&!u(y)&&$.value?(h(),k(H,{key:0},[x(u($)),x(pe)],64)):b("v-if",!0),u(a)?(h(),C(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:V[2]||(V[2]=de=>fe.value=!u(fe))},{default:R(()=>[u(fe)?(h(),C(Ct,{key:0})):(h(),C(Et,{key:1}))]),_:1},8,["title"])):b("v-if",!0)],64)),(!u(ie).drawings.presenterOnly||u(a))&&!u(i)?(h(),k(H,{key:4},[x(z,{class:"relative",title:u(v)?"Hide drawing toolbar":"Show drawing toolbar",onClick:V[3]||(V[3]=de=>v.value=!u(v))},{default:R(()=>[x(It),u(v)?(h(),k("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):b("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):b("v-if",!0),u(i)?b("v-if",!0):(h(),k(H,{key:5},[u(a)?(h(),C(Ke,{key:0,to:T.value,class:"slidev-icon-btn",title:"Play Mode"},{default:R(()=>[x(Nt)]),_:1},8,["to"])):b("v-if",!0),u(l)?(h(),C(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:R(()=>[x(Rt)]),_:1},8,["to"])):b("v-if",!0),b("v-if",!0),u(a)?(h(),C(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:R(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):b("v-if",!0)],64)),(h(),k(H,{key:6},[u(ie).download?(h(),C(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:R(()=>[x(Lt)]),_:1},8,["onClick"])):b("v-if",!0)],64)),!u(a)&&u(ie).info&&!u(i)?(h(),C(z,{key:7,title:"Show info",onClick:V[5]||(V[5]=de=>Qe.value=!u(Qe))},{default:R(()=>[x(Tt)]),_:1})):b("v-if",!0),!u(a)&&!u(i)?(h(),C(Zs,{key:8},{button:R(()=>[x(z,{title:"Adjust settings"},{default:R(()=>[x(Pt)]),_:1})]),menu:R(()=>[x(Xs)]),_:1})):b("v-if",!0),u(i)?b("v-if",!0):(h(),C(pe,{key:9})),A("div",an,[A("div",ln,[Ee(X(u(n))+" ",1),A("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),Ao=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},vn={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,_n=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Ve(t,"modelValue",e),{currentSlideNo:r,go:i,slides:a}=se();function l(){o.value=!1}function c(M){i(M),l()}function d(M){return M===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),v=N(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),y=N(()=>Math.floor((Me.width.value-$e)/(v.value+Xe))),_=D("");return Ut("keypress",M=>{if(!G.value){_.value="";return}if(M.key==="Enter"){M.preventDefault(),_.value?(c(+_.value),_.value=""):c(O.value);return}const S=Number.parseInt(M.key.replace(/[^0-9]/g,""));if(Number.isNaN(S)){_.value="";return}if(!_.value&&S===0)return;if(_.value+=String(S),+_.value>=a.value.length){_.value="";return}const I=a.value.findIndex(w=>`/${w.no}`===_.value);I!==-1&&(O.value=I+1),+_.value*10>a.value.length&&(c(+_.value),_.value="")}),st(()=>{O.value=r.value,Be.value=y.value}),(M,S)=>{const I=Is;return h(),k(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:R(()=>[ot(A("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:S[0]||(S[0]=w=>l())},[A("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${v.value}px,1fr))`)},[(h(!0),k(H,null,ke(u(a),(w,T)=>(h(),k("div",{key:w.no,class:"relative"},[A("div",{class:F(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(T+1)||u(O)===T+1?"border-primary":"border-main"]),onClick:g=>c(w.no)},[(h(),C(Bs,{key:w.no,width:v.value,class:"pointer-events-none"},{default:R(()=>[w!=null&&w.component?(h(),C(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:F(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):b("v-if",!0),x(rs,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),A("div",{class:"absolute top-0",style:ce(`left: ${v.value+5}px`)},[_.value&&String(T+1).startsWith(_.value)?(h(),k(H,{key:0},[A("span",hn,X(_.value),1),A("span",fn,X(String(T+1).slice(_.value.length)),1)],64)):(h(),k("span",pn,X(T+1),1))],4)]))),128))],4)],512),[[rt,u(o)]])]),_:1}),u(o)?(h(),k("div",vn,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:R(()=>[x(I)]),_:1}),b("v-if",!0)])):b("v-if",!0)],64)}}}),Lo=U(_n,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function _t(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,r=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const i=t.name;if(n=i,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(i));e=qe(i),s=Le(i),r=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:r}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(r,i,a)=>{if(K(r))if(!i[a])s.push(r);else{let l=i[a];const c=r[l];if(!K(c))return;if(a===i.length-1&&(Q(c)||_t(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],i,a+1)}else i.length&&o(c,i,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Nn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Rn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var m={...Nn,...In,...Rn,...An};const Ln=/[^ ]+/g;function Tn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const r=o.match(Ln).length;if(s.has(r))return s.get(r);const i=1/Math.pow(r,.5*t),a=parseFloat(Math.round(i*n)/n);return s.set(r,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){this.norm=Tn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,r)=>{let i=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(i)){if(J(i)){let a=[];const l=[{nestedArrIndex:-1,value:i}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[r]=a}else if(Q(i)&&!Ce(i)){let a={v:i,n:this.norm.get(i)};n.$[r]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=m.getFn,fieldNormWeight:n=m.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Pn(t,{getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){const{keys:n,records:o}=t,r=new Ge({getFn:e,fieldNormWeight:s});return r.setKeys(n),r.setIndexRecords(o),r}function ve(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=m.distance,ignoreLocation:r=m.ignoreLocation}={}){const i=e/t.length;if(r)return i;const a=Math.abs(n-s);return o?i+a/o:a?1:i}function On(t=[],e=m.minMatchCharLength){let s=[],n=-1,o=-1,r=0;for(let i=t.length;r<i;r+=1){let a=t[r];a&&n===-1?n=r:!a&&n!==-1&&(o=r-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[r-1]&&r-n>=e&&s.push([n,r-1]),s}const te=32;function Dn(t,e,s,{location:n=m.location,distance:o=m.distance,threshold:r=m.threshold,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let v=r,y=p;const _=a>1||l,M=_?Array(f):[];let S;for(;(S=t.indexOf(e,y))>-1;){let E=ve(e,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:c});if(v=Math.min(E,v),y=S+d,_){let $=0;for(;$<d;)M[S+$]=1,$+=1}}y=-1;let I=[],w=1,T=d+f;const g=1<<d-1;for(let E=0;E<d;E+=1){let $=0,j=T;for(;$<j;)ve(e,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=v?$=j:T=j,j=Math.floor((T-$)/2+$);T=j;let re=Math.max(1,p-j+1),V=i?f:Math.min(p+j,f)+d,q=Array(V+2);q[V+1]=(1<<E)-1;for(let B=V;B>=re;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(_&&(M[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,E&&(q[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),q[B]&g&&(w=ve(e,{errors:E,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=v)){if(v=w,y=ne,y<=p)break;re=Math.max(1,2*p-y)}}if(ve(e,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>v)break;I=q}const P={isMatch:y>=0,score:Math.max(.001,w)};if(_){const E=On(M,a);E.length?l&&(P.indices=E):P.isMatch=!1}return P}function Fn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,v)=>{this.chunks.push({pattern:p,alphabet:Fn(p),startIndex:v})},f=this.pattern.length;if(f>te){let p=0;const v=f%te,y=f-v;for(;p<y;)d(this.pattern.substr(p,te),p),p+=te;if(v){const _=f-te;d(this.pattern.substr(_),_)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let y={isMatch:!0,score:0};return n&&(y.indices=[[0,e.length-1]]),y}const{location:o,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:_,startIndex:M})=>{const{isMatch:S,score:I,indices:w}=Dn(e,y,_,{location:o+M,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});S&&(p=!0),f+=I,S&&w&&(d=[...d,...w])});let v={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(v.indices=d),v}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Vn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],r=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+r,o.push([n,s-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Te=[Vn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Te.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(r=>r&&!!r.trim()),o=[];for(let r=0,i=n.length;r<i;r+=1){const a=n[r];let l=!1,c=-1;for(;!l&&++c<et;){const d=Te[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Te[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=m.isCaseSensitive,includeMatches:n=m.includeMatches,minMatchCharLength:o=m.minMatchCharLength,ignoreLocation:r=m.ignoreLocation,findAllMatches:i=m.findAllMatches,location:a=m.location,threshold:l=m.threshold,distance:c=m.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:i,ignoreLocation:r,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let r=0,i=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];i.length=0,r=0;for(let f=0,p=d.length;f<p;f+=1){const v=d[f],{isMatch:y,indices:_,score:M}=v.search(e);if(y){if(r+=1,a+=M,n){const S=v.constructor.type;Yn.has(S)?i=[...i,..._]:i.push(_)}}else{a=0,r=0,i.length=0;break}}if(r){let f={isMatch:!0,score:a/r};return n&&(f.indices=i),f}}return{isMatch:!1,score:1}}}const Pe=[];function Xn(...t){Pe.push(...t)}function Oe(t,e){for(let s=0,n=Pe.length;s<n;s+=1){let o=Pe[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Fe=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Fe(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let r=Object.keys(o);const i=Jn(o);if(!i&&r.length>1&&!Fe(o))return n(tt(o));if(qn(o)){const l=i?o[De.PATH]:r[0],c=i?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:r[0]};return r.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Fe(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=m.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:r,score:i})=>{const a=o?o.weight:null;n*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(e?1:r))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:r}=n;let i={indices:o,value:r};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),e.matches.push(i)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=m.includeMatches,includeScore:n=m.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(r=>{const{idx:i}=r,a={item:e[i],refIndex:i};return o.length&&o.forEach(l=>{l(r,a)}),a})}class oe{constructor(e,s={},n){this.options={...m,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const r=this._docs[n];e(r,n)&&(this.removeAt(n),n-=1,o-=1,s.push(r))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:r,sortFn:i,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),r&&l.sort(i),_t(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=s.searchIn(r);l&&o.push({item:r,idx:i,matches:[{score:c,value:r,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,v=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return v&&v.length?[{idx:c,item:l,matches:v}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const v=a.children[f],y=n(v,l,c);if(y.length)d.push(...y);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,r={},i=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(r[l]||(r[l]={idx:l,item:a,matches:[]},i.push(r[l])),c.forEach(({matches:d})=>{r[l].matches.push(...d)}))}}),i}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,r=[];return o.forEach(({$:i,i:a})=>{if(!K(i))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:i[d],searcher:s}))}),l.length&&r.push({idx:a,item:i,matches:l})}),r}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=n.searchIn(r);l&&o.push({score:c,key:e,value:r,idx:i,norm:a,indices:d})});else{const{v:r,n:i}=s,{isMatch:a,score:l,indices:c}=n.searchIn(r);a&&o.push({score:l,key:e,value:r,norm:i,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Pn;oe.config=m;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},ro={key:2},io={key:3},ao={key:4},lo=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Ns(),n=N(()=>+(e.no??s.value));return(o,r)=>(h(),k("div",null,[n.value===1?(h(),k("p",no,"Nix for genetics")):n.value===2?(h(),k("p",oo,"Next-generation sequencing")):n.value===3?(h(),k("p",ro,"Bioinformatics pipeline")):n.value===4?(h(),k("p",io,"Nix : excellent community")):n.value===5?(h(),k("p",ao,"Thank you !")):b("v-if",!0)]))}}),co=U(lo,[["__file","/@slidev/title-renderer.md"]]),uo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},ho=["value","disabled"],fo=["border","onClick"],po={"w-4":"","text-right":"",op50:"","text-sm":""},vo=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),r=D(""),i=D(0),{go:a,slides:l}=se();function c(g){return g!=null}const d=N(()=>new oe(l.value.map(g=>{var P;return(P=g.meta)==null?void 0:P.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=N(()=>r.value.startsWith("/")?r.value.substring(1):r.value),p=N(()=>d.value.search(f.value).map(g=>g.item)),v=N(()=>!!p.value.length);function y(){if(v.value){const g=p.value.at(i.value||0);g&&a(g.no)}_()}function _(){r.value="",Z.value=!1}function M(g){g.preventDefault(),i.value++,i.value>=p.value.length&&(i.value=0),I()}function S(g){g.preventDefault(),i.value--,i.value<=-2&&(i.value=p.value.length-1),I()}function I(){var P;const g=(P=o.value)==null?void 0:P[i.value];g&&n.value&&(g.offsetTop+g.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:g.offsetTop+g.offsetHeight-n.value.offsetHeight+1}):g.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:g.offsetTop}))}function w(g){i.value=0,r.value=g.target.value}function T(g){a(g),_()}return me(Z,async g=>{var P;g?(r.value="",i.value=0,setTimeout(()=>{var E;return(E=s.value)==null?void 0:E.focus()},0)):(P=s.value)==null||P.blur()}),me(ae,()=>{var g;(g=e.value)!=null&&g.contains(ae.value)||_()}),(g,P)=>(h(),k("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:F(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[A("div",uo,[A("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:r.value,type:"text",disabled:!u(Z),class:F(["outline-none bg-transparent",{"text-red-400":!v.value&&r.value}]),placeholder:"Goto...",onKeydown:[he(y,["enter"]),he(_,["escape"]),he(M,["down"]),he(S,["up"])],onInput:w},null,42,ho)]),p.value.length>0?(h(),k("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),k(H,null,ke(p.value,(E,$)=>(h(),k("li",{ref_for:!0,ref_key:"items",ref:o,key:E.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:$===0?"":"t main",class:F(i.value===$?"bg-active op100":"op80"),onClick:Qt(j=>T(E.no),["stop","prevent"])},[A("div",po,X(E.no),1),x(u(co),{no:E.no},null,8,["no"])],10,fo))),128))],512)):b("v-if",!0)],2))}}),To=U(vo,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function _o(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((r,i)=>{var _,M,S,I;const a=(_=Ue(i.params.no))==null?void 0:_.meta,l=(M=Ue(r.params.no))==null?void 0:M.meta,c=(S=a==null?void 0:a.slide)==null?void 0:S.no,d=(I=l==null?void 0:l.slide)==null?void 0:I.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??ie.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,T)=>{s=w,n=T});let v;const y=new Promise(w=>v=w);return setTimeout(()=>{document.startViewTransition(()=>(v(),p))},50),y}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const go={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},mo=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),k("div",go,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):b("v-if",!0)}}}),yo=U(mo,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),ko=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),wo=ko(()=>A("div",{id:"twoslash-container"},null,-1)),xo=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:r,slides:i,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var v,y;(v=e.value)!=null&&v.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(y=r.value)!=null&&y.meta&&r.value.meta.preload!==!1&&(r.value.meta.__preloaded=!0)},{immediate:!0});const c=_o(),d=Ie();it(()=>import("./DrawingLayer-DzakBQB2.js"),__vite__mapDeps([12,2,10,6,3,4,7,5,8,9])).then(v=>d.value=v.default);const f=N(()=>i.value.filter(v=>{var y;return((y=v.meta)==null?void 0:y.__preloaded)||v===e.value}));function p(){Ye.value=!0,Rs()}return(v,y)=>(h(),k(H,null,[b(" Global Bottom "),x(u(ds)),b(" Slides "),(h(),C(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:R(()=>[(h(!0),k(H,null,ke(f.value,_=>ot((h(),k("div",{key:_.no},[x(ht,{is:_.component,"clicks-context":u(a)&&!u(l)?u(at)(_,u(lt)):u(n)(_),class:F([u(ft)(_),"overflow-hidden"]),route:_,"render-context":v.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[rt,_===u(e)]])),128))]),_:1},16)),wo,b(" Global Top "),x(u(hs)),d.value?(h(),C(u(d),{key:0})):b("v-if",!0),u(o)?b("v-if",!0):(h(),C(yo,{key:1}))],64))}}),Po=U(xo,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{To as G,z as I,Ao as N,Lo as Q,Bs as S,pe as V,Po as a,Ro as r,No as u};
`)),Gt(ns,c),(p,v)=>(h(),k("div",{id:"slide-container",ref_key:"root",ref:o,class:F(["slidev-slides-container",f.value])},[A("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0});return(r,i)=>{const a=fs;return h(),k("div",Gs,[A("div",Ws,X(t.title),1),A("div",Ks,[(h(!0),k(H,null,ke(t.items,l=>(h(),k("div",{key:l.value,class:F(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:F(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),k("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0}),r=D();return Kt(r,()=>{o.value=!1}),(i,a)=>(h(),k("div",{ref_key:"el",ref:r,class:"flex relative"},[A("button",{class:F({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(i.$slots,"button",{class:F({disabled:t.disabled})})],2),(h(),C(zt,null,[u(o)?(h(),k("div",Js,[le(i.$slots,"menu")])):b("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),k("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),C(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:R(()=>[A("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[A("div",{class:F(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:r,isEmbedded:i,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:v}=je(),y=Ae.smaller("md"),{isFullscreen:_,toggle:M}=dt,S=N(()=>s.value.query.password),I=N(()=>S.value?`?password=${S.value}`:""),w=N(()=>`${ze(n.value,!0)}${I.value}`),T=N(()=>`${ze(n.value,!1)}${I.value}`),g=D();function P(){g.value&&ae.value&&g.value.contains(ae.value)&&ae.value.blur()}const E=N(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),$=Ie(),j=Ie();return it(()=>import("./DrawingControls-CFFJhpqk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(re=>j.value=re.default),(re,V)=>{const q=ps,We=vs,B=_s,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Nt=Ss,Ke=Ht("RouterLink"),Rt=Ms,At=$s,Lt=Cs,Tt=Es,Pt=xs;return h(),k("nav",{ref_key:"root",ref:g,class:"flex flex-col"},[A("div",{class:F(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",E.value]),onMouseleave:P},[u(i)?b("v-if",!0):(h(),C(z,{key:0,title:u(_)?"Close fullscreen":"Enter fullscreen",onClick:u(M)},{default:R(()=>[u(_)?(h(),C(q,{key:0})):(h(),C(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:F({disabled:!u(r)}),title:"Go to previous slide",onClick:u(d)},{default:R(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:F({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:R(()=>[x(ne)]),_:1},8,["class","onClick"]),u(i)?b("v-if",!0):(h(),C(z,{key:1,title:"Show slide overview",onClick:V[0]||(V[0]=de=>u(Re)())},{default:R(()=>[x(ue)]),_:1})),u(os)?b("v-if",!0):(h(),C(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:V[1]||(V[1]=de=>u(Ne)())},{default:R(()=>[u(He)?(h(),C(Mt,{key:0})):(h(),C($t,{key:1}))]),_:1},8,["title"])),x(pe),u(i)?b("v-if",!0):(h(),k(H,{key:3},[!u(a)&&!u(y)&&$.value?(h(),k(H,{key:0},[x(u($)),x(pe)],64)):b("v-if",!0),u(a)?(h(),C(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:V[2]||(V[2]=de=>fe.value=!u(fe))},{default:R(()=>[u(fe)?(h(),C(Ct,{key:0})):(h(),C(Et,{key:1}))]),_:1},8,["title"])):b("v-if",!0)],64)),(!u(ie).drawings.presenterOnly||u(a))&&!u(i)?(h(),k(H,{key:4},[x(z,{class:"relative",title:u(v)?"Hide drawing toolbar":"Show drawing toolbar",onClick:V[3]||(V[3]=de=>v.value=!u(v))},{default:R(()=>[x(It),u(v)?(h(),k("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):b("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):b("v-if",!0),u(i)?b("v-if",!0):(h(),k(H,{key:5},[u(a)?(h(),C(Ke,{key:0,to:T.value,class:"slidev-icon-btn",title:"Play Mode"},{default:R(()=>[x(Nt)]),_:1},8,["to"])):b("v-if",!0),u(l)?(h(),C(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:R(()=>[x(Rt)]),_:1},8,["to"])):b("v-if",!0),b("v-if",!0),u(a)?(h(),C(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:R(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):b("v-if",!0)],64)),(h(),k(H,{key:6},[u(ie).download?(h(),C(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:R(()=>[x(Lt)]),_:1},8,["onClick"])):b("v-if",!0)],64)),!u(a)&&u(ie).info&&!u(i)?(h(),C(z,{key:7,title:"Show info",onClick:V[5]||(V[5]=de=>Qe.value=!u(Qe))},{default:R(()=>[x(Tt)]),_:1})):b("v-if",!0),!u(a)&&!u(i)?(h(),C(Zs,{key:8},{button:R(()=>[x(z,{title:"Adjust settings"},{default:R(()=>[x(Pt)]),_:1})]),menu:R(()=>[x(Xs)]),_:1})):b("v-if",!0),u(i)?b("v-if",!0):(h(),C(pe,{key:9})),A("div",an,[A("div",ln,[Ee(X(u(n))+" ",1),A("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),Ao=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},vn={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,_n=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Ve(t,"modelValue",e),{currentSlideNo:r,go:i,slides:a}=se();function l(){o.value=!1}function c(M){i(M),l()}function d(M){return M===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),v=N(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),y=N(()=>Math.floor((Me.width.value-$e)/(v.value+Xe))),_=D("");return Ut("keypress",M=>{if(!G.value){_.value="";return}if(M.key==="Enter"){M.preventDefault(),_.value?(c(+_.value),_.value=""):c(O.value);return}const S=Number.parseInt(M.key.replace(/[^0-9]/g,""));if(Number.isNaN(S)){_.value="";return}if(!_.value&&S===0)return;if(_.value+=String(S),+_.value>=a.value.length){_.value="";return}const I=a.value.findIndex(w=>`/${w.no}`===_.value);I!==-1&&(O.value=I+1),+_.value*10>a.value.length&&(c(+_.value),_.value="")}),st(()=>{O.value=r.value,Be.value=y.value}),(M,S)=>{const I=Is;return h(),k(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:R(()=>[ot(A("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:S[0]||(S[0]=w=>l())},[A("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${v.value}px,1fr))`)},[(h(!0),k(H,null,ke(u(a),(w,T)=>(h(),k("div",{key:w.no,class:"relative"},[A("div",{class:F(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(T+1)||u(O)===T+1?"border-primary":"border-main"]),onClick:g=>c(w.no)},[(h(),C(Bs,{key:w.no,width:v.value,class:"pointer-events-none"},{default:R(()=>[w!=null&&w.component?(h(),C(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:F(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):b("v-if",!0),x(rs,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),A("div",{class:"absolute top-0",style:ce(`left: ${v.value+5}px`)},[_.value&&String(T+1).startsWith(_.value)?(h(),k(H,{key:0},[A("span",hn,X(_.value),1),A("span",fn,X(String(T+1).slice(_.value.length)),1)],64)):(h(),k("span",pn,X(T+1),1))],4)]))),128))],4)],512),[[rt,u(o)]])]),_:1}),u(o)?(h(),k("div",vn,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:R(()=>[x(I)]),_:1}),b("v-if",!0)])):b("v-if",!0)],64)}}}),Lo=U(_n,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function _t(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,r=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const i=t.name;if(n=i,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(i));e=qe(i),s=Le(i),r=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:r}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(r,i,a)=>{if(K(r))if(!i[a])s.push(r);else{let l=i[a];const c=r[l];if(!K(c))return;if(a===i.length-1&&(Q(c)||_t(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],i,a+1)}else i.length&&o(c,i,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Nn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Rn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var m={...Nn,...In,...Rn,...An};const Ln=/[^ ]+/g;function Tn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const r=o.match(Ln).length;if(s.has(r))return s.get(r);const i=1/Math.pow(r,.5*t),a=parseFloat(Math.round(i*n)/n);return s.set(r,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){this.norm=Tn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,r)=>{let i=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(i)){if(J(i)){let a=[];const l=[{nestedArrIndex:-1,value:i}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[r]=a}else if(Q(i)&&!Ce(i)){let a={v:i,n:this.norm.get(i)};n.$[r]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=m.getFn,fieldNormWeight:n=m.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Pn(t,{getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){const{keys:n,records:o}=t,r=new Ge({getFn:e,fieldNormWeight:s});return r.setKeys(n),r.setIndexRecords(o),r}function ve(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=m.distance,ignoreLocation:r=m.ignoreLocation}={}){const i=e/t.length;if(r)return i;const a=Math.abs(n-s);return o?i+a/o:a?1:i}function On(t=[],e=m.minMatchCharLength){let s=[],n=-1,o=-1,r=0;for(let i=t.length;r<i;r+=1){let a=t[r];a&&n===-1?n=r:!a&&n!==-1&&(o=r-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[r-1]&&r-n>=e&&s.push([n,r-1]),s}const te=32;function Dn(t,e,s,{location:n=m.location,distance:o=m.distance,threshold:r=m.threshold,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let v=r,y=p;const _=a>1||l,M=_?Array(f):[];let S;for(;(S=t.indexOf(e,y))>-1;){let E=ve(e,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:c});if(v=Math.min(E,v),y=S+d,_){let $=0;for(;$<d;)M[S+$]=1,$+=1}}y=-1;let I=[],w=1,T=d+f;const g=1<<d-1;for(let E=0;E<d;E+=1){let $=0,j=T;for(;$<j;)ve(e,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=v?$=j:T=j,j=Math.floor((T-$)/2+$);T=j;let re=Math.max(1,p-j+1),V=i?f:Math.min(p+j,f)+d,q=Array(V+2);q[V+1]=(1<<E)-1;for(let B=V;B>=re;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(_&&(M[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,E&&(q[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),q[B]&g&&(w=ve(e,{errors:E,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=v)){if(v=w,y=ne,y<=p)break;re=Math.max(1,2*p-y)}}if(ve(e,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>v)break;I=q}const P={isMatch:y>=0,score:Math.max(.001,w)};if(_){const E=On(M,a);E.length?l&&(P.indices=E):P.isMatch=!1}return P}function Fn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,v)=>{this.chunks.push({pattern:p,alphabet:Fn(p),startIndex:v})},f=this.pattern.length;if(f>te){let p=0;const v=f%te,y=f-v;for(;p<y;)d(this.pattern.substr(p,te),p),p+=te;if(v){const _=f-te;d(this.pattern.substr(_),_)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let y={isMatch:!0,score:0};return n&&(y.indices=[[0,e.length-1]]),y}const{location:o,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:_,startIndex:M})=>{const{isMatch:S,score:I,indices:w}=Dn(e,y,_,{location:o+M,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});S&&(p=!0),f+=I,S&&w&&(d=[...d,...w])});let v={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(v.indices=d),v}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Vn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],r=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+r,o.push([n,s-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Te=[Vn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Te.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(r=>r&&!!r.trim()),o=[];for(let r=0,i=n.length;r<i;r+=1){const a=n[r];let l=!1,c=-1;for(;!l&&++c<et;){const d=Te[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Te[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=m.isCaseSensitive,includeMatches:n=m.includeMatches,minMatchCharLength:o=m.minMatchCharLength,ignoreLocation:r=m.ignoreLocation,findAllMatches:i=m.findAllMatches,location:a=m.location,threshold:l=m.threshold,distance:c=m.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:i,ignoreLocation:r,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let r=0,i=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];i.length=0,r=0;for(let f=0,p=d.length;f<p;f+=1){const v=d[f],{isMatch:y,indices:_,score:M}=v.search(e);if(y){if(r+=1,a+=M,n){const S=v.constructor.type;Yn.has(S)?i=[...i,..._]:i.push(_)}}else{a=0,r=0,i.length=0;break}}if(r){let f={isMatch:!0,score:a/r};return n&&(f.indices=i),f}}return{isMatch:!1,score:1}}}const Pe=[];function Xn(...t){Pe.push(...t)}function Oe(t,e){for(let s=0,n=Pe.length;s<n;s+=1){let o=Pe[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Fe=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Fe(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let r=Object.keys(o);const i=Jn(o);if(!i&&r.length>1&&!Fe(o))return n(tt(o));if(qn(o)){const l=i?o[De.PATH]:r[0],c=i?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:r[0]};return r.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Fe(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=m.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:r,score:i})=>{const a=o?o.weight:null;n*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(e?1:r))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:r}=n;let i={indices:o,value:r};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),e.matches.push(i)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=m.includeMatches,includeScore:n=m.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(r=>{const{idx:i}=r,a={item:e[i],refIndex:i};return o.length&&o.forEach(l=>{l(r,a)}),a})}class oe{constructor(e,s={},n){this.options={...m,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const r=this._docs[n];e(r,n)&&(this.removeAt(n),n-=1,o-=1,s.push(r))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:r,sortFn:i,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),r&&l.sort(i),_t(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=s.searchIn(r);l&&o.push({item:r,idx:i,matches:[{score:c,value:r,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,v=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return v&&v.length?[{idx:c,item:l,matches:v}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const v=a.children[f],y=n(v,l,c);if(y.length)d.push(...y);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,r={},i=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(r[l]||(r[l]={idx:l,item:a,matches:[]},i.push(r[l])),c.forEach(({matches:d})=>{r[l].matches.push(...d)}))}}),i}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,r=[];return o.forEach(({$:i,i:a})=>{if(!K(i))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:i[d],searcher:s}))}),l.length&&r.push({idx:a,item:i,matches:l})}),r}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=n.searchIn(r);l&&o.push({score:c,key:e,value:r,idx:i,norm:a,indices:d})});else{const{v:r,n:i}=s,{isMatch:a,score:l,indices:c}=n.searchIn(r);a&&o.push({score:l,key:e,value:r,norm:i,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Pn;oe.config=m;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},ro={key:2},io={key:3},ao={key:4},lo=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Ns(),n=N(()=>+(e.no??s.value));return(o,r)=>(h(),k("div",null,[n.value===1?(h(),k("p",no,"Nix for genetics")):n.value===2?(h(),k("p",oo,"Next-generation sequencing")):n.value===3?(h(),k("p",ro,"Bioinformatics pipeline")):n.value===4?(h(),k("p",io,"Nix : excellent community")):n.value===5?(h(),k("p",ao,"Thank you !")):b("v-if",!0)]))}}),co=U(lo,[["__file","/@slidev/title-renderer.md"]]),uo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},ho=["value","disabled"],fo=["border","onClick"],po={"w-4":"","text-right":"",op50:"","text-sm":""},vo=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),r=D(""),i=D(0),{go:a,slides:l}=se();function c(g){return g!=null}const d=N(()=>new oe(l.value.map(g=>{var P;return(P=g.meta)==null?void 0:P.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=N(()=>r.value.startsWith("/")?r.value.substring(1):r.value),p=N(()=>d.value.search(f.value).map(g=>g.item)),v=N(()=>!!p.value.length);function y(){if(v.value){const g=p.value.at(i.value||0);g&&a(g.no)}_()}function _(){r.value="",Z.value=!1}function M(g){g.preventDefault(),i.value++,i.value>=p.value.length&&(i.value=0),I()}function S(g){g.preventDefault(),i.value--,i.value<=-2&&(i.value=p.value.length-1),I()}function I(){var P;const g=(P=o.value)==null?void 0:P[i.value];g&&n.value&&(g.offsetTop+g.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:g.offsetTop+g.offsetHeight-n.value.offsetHeight+1}):g.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:g.offsetTop}))}function w(g){i.value=0,r.value=g.target.value}function T(g){a(g),_()}return me(Z,async g=>{var P;g?(r.value="",i.value=0,setTimeout(()=>{var E;return(E=s.value)==null?void 0:E.focus()},0)):(P=s.value)==null||P.blur()}),me(ae,()=>{var g;(g=e.value)!=null&&g.contains(ae.value)||_()}),(g,P)=>(h(),k("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:F(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[A("div",uo,[A("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:r.value,type:"text",disabled:!u(Z),class:F(["outline-none bg-transparent",{"text-red-400":!v.value&&r.value}]),placeholder:"Goto...",onKeydown:[he(y,["enter"]),he(_,["escape"]),he(M,["down"]),he(S,["up"])],onInput:w},null,42,ho)]),p.value.length>0?(h(),k("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),k(H,null,ke(p.value,(E,$)=>(h(),k("li",{ref_for:!0,ref_key:"items",ref:o,key:E.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:$===0?"":"t main",class:F(i.value===$?"bg-active op100":"op80"),onClick:Qt(j=>T(E.no),["stop","prevent"])},[A("div",po,X(E.no),1),x(u(co),{no:E.no},null,8,["no"])],10,fo))),128))],512)):b("v-if",!0)],2))}}),To=U(vo,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function _o(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((r,i)=>{var _,M,S,I;const a=(_=Ue(i.params.no))==null?void 0:_.meta,l=(M=Ue(r.params.no))==null?void 0:M.meta,c=(S=a==null?void 0:a.slide)==null?void 0:S.no,d=(I=l==null?void 0:l.slide)==null?void 0:I.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??ie.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,T)=>{s=w,n=T});let v;const y=new Promise(w=>v=w);return setTimeout(()=>{document.startViewTransition(()=>(v(),p))},50),y}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const go={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},mo=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),k("div",go,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):b("v-if",!0)}}}),yo=U(mo,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),ko=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),wo=ko(()=>A("div",{id:"twoslash-container"},null,-1)),xo=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:r,slides:i,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var v,y;(v=e.value)!=null&&v.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(y=r.value)!=null&&y.meta&&r.value.meta.preload!==!1&&(r.value.meta.__preloaded=!0)},{immediate:!0});const c=_o(),d=Ie();it(()=>import("./DrawingLayer-bUAtGFYk.js"),__vite__mapDeps([12,2,10,6,3,4,7,5,8,9])).then(v=>d.value=v.default);const f=N(()=>i.value.filter(v=>{var y;return((y=v.meta)==null?void 0:y.__preloaded)||v===e.value}));function p(){Ye.value=!0,Rs()}return(v,y)=>(h(),k(H,null,[b(" Global Bottom "),x(u(ds)),b(" Slides "),(h(),C(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:R(()=>[(h(!0),k(H,null,ke(f.value,_=>ot((h(),k("div",{key:_.no},[x(ht,{is:_.component,"clicks-context":u(a)&&!u(l)?u(at)(_,u(lt)):u(n)(_),class:F([u(ft)(_),"overflow-hidden"]),route:_,"render-context":v.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[rt,_===u(e)]])),128))]),_:1},16)),wo,b(" Global Top "),x(u(hs)),d.value?(h(),C(u(d),{key:0})):b("v-if",!0),u(o)?b("v-if",!0):(h(),C(yo,{key:1}))],64))}}),Po=U(xo,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{To as G,z as I,Ao as N,Lo as Q,Bs as S,pe as V,Po as a,Ro as r,No as u};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-O-XuQLLR.js";import{a as _,s as d,b as f}from"../index-BUsVpa2s.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-O-XuQLLR.js";import{a as _,s as d,b as f}from"../index-CSZldN_k.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-O-XuQLLR.js";import{C as w,b as $}from"../index-BUsVpa2s.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-O-XuQLLR.js";import{C as w,b as $}from"../index-CSZldN_k.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-BRbyaeDj.js","assets/svgDrawCommon-99ae2c94-BJlLlfGv.js","assets/modules/vue-O-XuQLLR.js","assets/index-BUsVpa2s.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/modules/file-saver-EUMWMpoS.js","assets/flowDiagram-e44a2353-WFPMzLOr.js","assets/flowDb-147da10a-D1NRua4U.js","assets/graph-af3d5df6-BS2fJ_rm.js","assets/layout-6685625a-COnxZM2s.js","assets/styles-c171666c-DVu2lf3q.js","assets/index-c8395ba2-JxgMKpMl.js","assets/clone-d2e37f8c-Cf5luijK.js","assets/edges-1e1ebc73-Bgkdu3Bw.js","assets/createText-f6615236-B0dX0IeG.js","assets/line-65d70945-B8zvfP93.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-yXma448J.js","assets/flowDiagram-v2-a8396bb5-CcdUz_1q.js","assets/erDiagram-582bd92f-Ds-Q3CPj.js","assets/gitGraphDiagram-d5d647e9-BlDjKktt.js","assets/ganttDiagram-05e48839-D9Iv6HJ5.js","assets/linear-d94cf28d-Dfl-jUvU.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-C3pjhlTu.js","assets/pieDiagram-35c7eafc-CISpfGGH.js","assets/arc-5aa99581-CWkVT26Z.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-B4xvk7_J.js","assets/xychartDiagram-7b46ecfd-D7YRajY9.js","assets/requirementDiagram-e882bd67-VCT0xQHh.js","assets/sequenceDiagram-1767341c-CG7Vwpx3.js","assets/classDiagram-3275847a-D3ntnK2s.js","assets/styles-d48462a7-DZ_OM2oG.js","assets/classDiagram-v2-2ed0a7d3-E4wxW5RY.js","assets/stateDiagram-d2e6f24f-Bl83BCdW.js","assets/styles-15409a09-B0RUbRnc.js","assets/stateDiagram-v2-21d485ae-BxaUNmg2.js","assets/journeyDiagram-a5efd2e1-idE9XkUP.js","assets/flowchart-elk-definition-1a3aaf5d-BJPX6r39.js","assets/timeline-definition-f8c5dfc0-CvoHurLw.js","assets/mindmap-definition-74120bdd-BfMBNkAo.js","assets/sankeyDiagram-f5d051b7-DbdaYnNY.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-awXQhr0f.js"]
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-DeF7HqNZ.js","assets/svgDrawCommon-99ae2c94-DY3yFwjd.js","assets/modules/vue-O-XuQLLR.js","assets/index-CSZldN_k.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/modules/file-saver-EUMWMpoS.js","assets/flowDiagram-e44a2353-CjMOy7p1.js","assets/flowDb-147da10a-clI92EYU.js","assets/graph-af3d5df6-CpzLvc9u.js","assets/layout-6685625a-shznRzcW.js","assets/styles-c171666c-BU23Wltq.js","assets/index-c8395ba2-zsT_SlMY.js","assets/clone-d2e37f8c-CHMHSaUq.js","assets/edges-1e1ebc73-BMNQBDYv.js","assets/createText-f6615236-DMiA32T3.js","assets/line-65d70945-R41ce_xR.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-CX7CKzfx.js","assets/flowDiagram-v2-a8396bb5-rRRfApUl.js","assets/erDiagram-582bd92f-ZlmC73o-.js","assets/gitGraphDiagram-d5d647e9-Dkc3a-s3.js","assets/ganttDiagram-05e48839-huL-xrDv.js","assets/linear-d94cf28d-CG9g9-Er.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-Co_iHzLg.js","assets/pieDiagram-35c7eafc-BsEZnAw9.js","assets/arc-5aa99581-jr_3UB9E.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-HEeGs87B.js","assets/xychartDiagram-7b46ecfd-DxIFSIFM.js","assets/requirementDiagram-e882bd67-Bj5Z8pnl.js","assets/sequenceDiagram-1767341c-CC6jPNwc.js","assets/classDiagram-3275847a-BVNDw-zo.js","assets/styles-d48462a7-w69QL5dg.js","assets/classDiagram-v2-2ed0a7d3-Wd5fqnpI.js","assets/stateDiagram-d2e6f24f-4HpZx-Bf.js","assets/styles-15409a09-rlHTEi_g.js","assets/stateDiagram-v2-21d485ae-DAXPA4VE.js","assets/journeyDiagram-a5efd2e1-DwECIydP.js","assets/flowchart-elk-definition-1a3aaf5d-BcsOHvFU.js","assets/timeline-definition-f8c5dfc0-DEoi28kU.js","assets/mindmap-definition-74120bdd-Ra318KiJ.js","assets/sankeyDiagram-f5d051b7-BjqrfbhW.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-DWhLQC6k.js"]
import{d as Us,t as Xe,y as Bc,C as Ii,o as en,b as Ys,D as Ac,x as Lc,c as Fc,I as Ec}from"../modules/vue-O-XuQLLR.js";import{_ as Z,H as Bo,I as Oc,b as Gs,q as Mc}from"../index-BUsVpa2s.js";import{g as $c}from"../modules/file-saver-EUMWMpoS.js";function Ic(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
import{d as Us,t as Xe,y as Bc,C as Ii,o as en,b as Ys,D as Ac,x as Lc,c as Fc,I as Ec}from"../modules/vue-O-XuQLLR.js";import{_ as Z,H as Bo,I as Oc,b as Gs,q as Mc}from"../index-CSZldN_k.js";import{g as $c}from"../modules/file-saver-EUMWMpoS.js";function Ic(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},N_=function(t){return t.replace(ei,"")},R_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function P_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $_[i]??e}function q_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Xs.sanitizeUrl(i):i}const z_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function dl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t){let e,i=0;t.forEach(n=>{i+=dl(n,e),e=n});const r=i/2;return Hn(t,r)}function H_(t){return t.length===1?t[0]:W_(t)}const bs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=dl(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:bs((1-s)*i.x+s*n.x,5),y:bs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},j_=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function U_(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Y_(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const G_=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function V_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const X_=t=>V_(t.length),K_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Z_=function(t,e){const i=e.text.replace(Rn.lineBreakRegex," "),[,r]=Un(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},J_=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Rn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=ar(`${s} `,i),c=ar(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=Q_(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Q_=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(ar(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function t0(t,e){return jn(t,e).height}function ar(t,e){return jn(t,e).width}const jn=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Un(i),s=["sans-serif",r],a=t.split(Rn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=K_();w.text=T||M_;const A=Z_(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class e0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const i0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function pl(t){return"str"in t}const r0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Un=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gl(t,e){return O_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:J_,calculateTextHeight:t0,calculateTextWidth:ar,calculateTextDimensions:jn,cleanAndMerge:gl,detectInit:D_,detectDirective:fl,isSubstringInArray:R_,interpolateToCurve:P_,calcLabelPosition:H_,calcCardinalityPosition:j_,calcTerminalLabelPosition:U_,formatUrl:q_,getStylesFromArray:Y_,generateId:G_,random:X_,runFunc:z_,entityDecode:i0,insertTitle:r0,parseFontSize:Un,InitIDGenerator:e0},n0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},o0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var ml="comm",_l="rule",yl="decl",s0="@import",a0="@keyframes",l0="@layer",Cl=Math.abs,Yn=String.fromCharCode;function bl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function c0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function h0(t){return t.length}function $i(t,e){return e.push(t),t}var Lr=1,$e=1,xl=0,kt=0,tt=0,qe="";function Gn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Lr,column:$e,length:s,return:"",siblings:a}}function u0(){return tt}function f0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Lr--),tt}function Lt(){return tt=kt<xl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Lr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Fr(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d0(t){return Lr=$e=1,xl=Yt(qe=t),kt=0,[]}function p0(t){return qe="",t}function Xr(t){return bl(Fr(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function g0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function m0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Fr(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function _0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Fr(e,kt-1)+"*"+Yn(t===47?t:Lt())}function y0(t){for(;!_n(de());)Lt();return Fr(t,kt)}function C0(t){return p0(Ui("",null,null,null,[""],t=d0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){c0(b+=Hi(Xr(y),"&","&\f"),"&\f",Cl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Xr(y);break;case 9:case 10:case 13:case 32:b+=g0(_);break;case 92:b+=m0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(b0(_0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?vs(b+";",r,i,f-1,l):vs(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ts(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ts(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&f0()==125)continue}switch(b+=Yn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Xr(Lt())),h=de(),u=f=Yt(E=b+=y0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ts(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=h0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Cl(w=s[T])),L=t;y<_;++y)(L=bl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Gn(t,e,i,n===0?_l:a,l,c,u,f)}function b0(t,e,i,r){return Gn(t,e,i,ml,Yn(u0()),di(t,2,-2),0,r)}function vs(t,e,i,r,n){return Gn(t,e,i,yl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function x0(t,e,i,r){switch(t.type){case l0:if(t.children.length)break;case s0:case yl:return t.return=t.return||t.value;case ml:return"";case a0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case _l:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const ks="10.9.0",Ie=Object.freeze(Dp);let gt=lt({},Ie),Tl,De=[],ni=lt({},Ie);const Er=(t,e)=>{let i=lt({},t),r={};for(const n of e)Sl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Tl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,wl(ni),ni},T0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Er(gt,De),gt),v0=t=>{Tl=lt({},t)},k0=t=>(gt=lt(gt,t),Er(gt,De),gt),vl=()=>lt({},gt),kl=t=>(wl(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Sl=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Sl(t[e])}))},S0=t=>{ir(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Er(gt,De)},lr=(t=gt)=>{De=[],Er(t,De)},w0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ss={},B0=t=>{Ss[t]||(N.warn(w0[t]),Ss[t]=!0)},wl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&B0("LAZY_LOAD_DEPRECATED")},Bl="c4",A0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),L0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-BRbyaeDj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]));return{id:Bl,diagram:t}},F0={id:Bl,detector:A0,loader:L0},E0=F0,Al="flowchart",O0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},M0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-WFPMzLOr.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Al,diagram:t}},$0={id:Al,detector:O0,loader:M0},I0=$0,Ll="flowchart-v2",D0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},N0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-CcdUz_1q.js"),__vite__mapDeps([21,9,12,10,13,11,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Ll,diagram:t}},R0={id:Ll,detector:D0,loader:N0},P0=R0,Fl="er",q0=t=>/^\s*erDiagram/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-Ds-Q3CPj.js"),__vite__mapDeps([22,10,11,17,18,19,2,3,4,5,6,7]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="gitGraph",j0=t=>/^\s*gitGraph/.test(t),U0=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-BlDjKktt.js"),__vite__mapDeps([23,2,3,4,5,6,7]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="gantt",V0=t=>/^\s*gantt/.test(t),X0=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-D9Iv6HJ5.js"),__vite__mapDeps([24,25,26,2,3,4,5,6,7]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="info",J0=t=>/^\s*info/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-C3pjhlTu.js"),__vite__mapDeps([27,2,3,4,5,6,7]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},$l="pie",ey=t=>/^\s*pie/.test(t),iy=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-CISpfGGH.js"),__vite__mapDeps([28,29,19,30,26,18,2,3,4,5,6,7]));return{id:$l,diagram:t}},ry={id:$l,detector:ey,loader:iy},Il="quadrantChart",ny=t=>/^\s*quadrantChart/.test(t),oy=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-B4xvk7_J.js"),__vite__mapDeps([31,25,26,2,3,4,5,6,7]));return{id:Il,diagram:t}},sy={id:Il,detector:ny,loader:oy},ay=sy,Dl="xychart",ly=t=>/^\s*xychart-beta/.test(t),cy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-D7YRajY9.js"),__vite__mapDeps([32,16,26,30,25,17,18,19,2,3,4,5,6,7]));return{id:Dl,diagram:t}},hy={id:Dl,detector:ly,loader:cy},uy=hy,Nl="requirement",fy=t=>/^\s*requirement(Diagram)?/.test(t),dy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-VCT0xQHh.js"),__vite__mapDeps([33,10,11,17,18,19,2,3,4,5,6,7]));return{id:Nl,diagram:t}},py={id:Nl,detector:fy,loader:dy},gy=py,Rl="sequence",my=t=>/^\s*sequenceDiagram/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-CG7Vwpx3.js"),__vite__mapDeps([34,1,2,3,4,5,6,7]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="class",by=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},xy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-D3ntnK2s.js"),__vite__mapDeps([35,36,10,11,17,18,19,2,3,4,5,6,7]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="classDiagram",ky=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Sy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-E4wxW5RY.js"),__vite__mapDeps([37,36,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="state",Ay=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Ly=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-Bl83BCdW.js"),__vite__mapDeps([38,39,10,11,17,18,19,2,3,4,5,6,7]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="stateDiagram",Oy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},My=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-BxaUNmg2.js"),__vite__mapDeps([40,39,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="journey",Dy=t=>/^\s*journey/.test(t),Ny=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-idE9XkUP.js"),__vite__mapDeps([41,1,29,19,2,3,4,5,6,7]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,qy=function(t,e){for(let i of e)t.attr(i[0],i[1])},zy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},jl=function(t,e,i,r){const n=zy(e,i,r);qy(t,n)},Wy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),jl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},Hy=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},N_=function(t){return t.replace(ei,"")},R_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function P_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $_[i]??e}function q_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Xs.sanitizeUrl(i):i}const z_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function dl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t){let e,i=0;t.forEach(n=>{i+=dl(n,e),e=n});const r=i/2;return Hn(t,r)}function H_(t){return t.length===1?t[0]:W_(t)}const bs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=dl(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:bs((1-s)*i.x+s*n.x,5),y:bs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},j_=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function U_(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Y_(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const G_=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function V_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const X_=t=>V_(t.length),K_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Z_=function(t,e){const i=e.text.replace(Rn.lineBreakRegex," "),[,r]=Un(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},J_=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Rn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=ar(`${s} `,i),c=ar(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=Q_(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Q_=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(ar(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function t0(t,e){return jn(t,e).height}function ar(t,e){return jn(t,e).width}const jn=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Un(i),s=["sans-serif",r],a=t.split(Rn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=K_();w.text=T||M_;const A=Z_(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class e0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const i0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function pl(t){return"str"in t}const r0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Un=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gl(t,e){return O_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:J_,calculateTextHeight:t0,calculateTextWidth:ar,calculateTextDimensions:jn,cleanAndMerge:gl,detectInit:D_,detectDirective:fl,isSubstringInArray:R_,interpolateToCurve:P_,calcLabelPosition:H_,calcCardinalityPosition:j_,calcTerminalLabelPosition:U_,formatUrl:q_,getStylesFromArray:Y_,generateId:G_,random:X_,runFunc:z_,entityDecode:i0,insertTitle:r0,parseFontSize:Un,InitIDGenerator:e0},n0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},o0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var ml="comm",_l="rule",yl="decl",s0="@import",a0="@keyframes",l0="@layer",Cl=Math.abs,Yn=String.fromCharCode;function bl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function c0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function h0(t){return t.length}function $i(t,e){return e.push(t),t}var Lr=1,$e=1,xl=0,kt=0,tt=0,qe="";function Gn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Lr,column:$e,length:s,return:"",siblings:a}}function u0(){return tt}function f0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Lr--),tt}function Lt(){return tt=kt<xl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Lr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Fr(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d0(t){return Lr=$e=1,xl=Yt(qe=t),kt=0,[]}function p0(t){return qe="",t}function Xr(t){return bl(Fr(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function g0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function m0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Fr(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function _0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Fr(e,kt-1)+"*"+Yn(t===47?t:Lt())}function y0(t){for(;!_n(de());)Lt();return Fr(t,kt)}function C0(t){return p0(Ui("",null,null,null,[""],t=d0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){c0(b+=Hi(Xr(y),"&","&\f"),"&\f",Cl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Xr(y);break;case 9:case 10:case 13:case 32:b+=g0(_);break;case 92:b+=m0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(b0(_0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?vs(b+";",r,i,f-1,l):vs(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ts(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ts(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&f0()==125)continue}switch(b+=Yn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Xr(Lt())),h=de(),u=f=Yt(E=b+=y0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ts(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=h0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Cl(w=s[T])),L=t;y<_;++y)(L=bl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Gn(t,e,i,n===0?_l:a,l,c,u,f)}function b0(t,e,i,r){return Gn(t,e,i,ml,Yn(u0()),di(t,2,-2),0,r)}function vs(t,e,i,r,n){return Gn(t,e,i,yl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function x0(t,e,i,r){switch(t.type){case l0:if(t.children.length)break;case s0:case yl:return t.return=t.return||t.value;case ml:return"";case a0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case _l:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const ks="10.9.0",Ie=Object.freeze(Dp);let gt=lt({},Ie),Tl,De=[],ni=lt({},Ie);const Er=(t,e)=>{let i=lt({},t),r={};for(const n of e)Sl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Tl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,wl(ni),ni},T0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Er(gt,De),gt),v0=t=>{Tl=lt({},t)},k0=t=>(gt=lt(gt,t),Er(gt,De),gt),vl=()=>lt({},gt),kl=t=>(wl(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Sl=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Sl(t[e])}))},S0=t=>{ir(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Er(gt,De)},lr=(t=gt)=>{De=[],Er(t,De)},w0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ss={},B0=t=>{Ss[t]||(N.warn(w0[t]),Ss[t]=!0)},wl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&B0("LAZY_LOAD_DEPRECATED")},Bl="c4",A0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),L0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-DeF7HqNZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]));return{id:Bl,diagram:t}},F0={id:Bl,detector:A0,loader:L0},E0=F0,Al="flowchart",O0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},M0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-CjMOy7p1.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Al,diagram:t}},$0={id:Al,detector:O0,loader:M0},I0=$0,Ll="flowchart-v2",D0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},N0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-rRRfApUl.js"),__vite__mapDeps([21,9,12,10,13,11,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Ll,diagram:t}},R0={id:Ll,detector:D0,loader:N0},P0=R0,Fl="er",q0=t=>/^\s*erDiagram/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-ZlmC73o-.js"),__vite__mapDeps([22,10,11,17,18,19,2,3,4,5,6,7]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="gitGraph",j0=t=>/^\s*gitGraph/.test(t),U0=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-Dkc3a-s3.js"),__vite__mapDeps([23,2,3,4,5,6,7]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="gantt",V0=t=>/^\s*gantt/.test(t),X0=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-huL-xrDv.js"),__vite__mapDeps([24,25,26,2,3,4,5,6,7]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="info",J0=t=>/^\s*info/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-Co_iHzLg.js"),__vite__mapDeps([27,2,3,4,5,6,7]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},$l="pie",ey=t=>/^\s*pie/.test(t),iy=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-BsEZnAw9.js"),__vite__mapDeps([28,29,19,30,26,18,2,3,4,5,6,7]));return{id:$l,diagram:t}},ry={id:$l,detector:ey,loader:iy},Il="quadrantChart",ny=t=>/^\s*quadrantChart/.test(t),oy=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-HEeGs87B.js"),__vite__mapDeps([31,25,26,2,3,4,5,6,7]));return{id:Il,diagram:t}},sy={id:Il,detector:ny,loader:oy},ay=sy,Dl="xychart",ly=t=>/^\s*xychart-beta/.test(t),cy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-DxIFSIFM.js"),__vite__mapDeps([32,16,26,30,25,17,18,19,2,3,4,5,6,7]));return{id:Dl,diagram:t}},hy={id:Dl,detector:ly,loader:cy},uy=hy,Nl="requirement",fy=t=>/^\s*requirement(Diagram)?/.test(t),dy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-Bj5Z8pnl.js"),__vite__mapDeps([33,10,11,17,18,19,2,3,4,5,6,7]));return{id:Nl,diagram:t}},py={id:Nl,detector:fy,loader:dy},gy=py,Rl="sequence",my=t=>/^\s*sequenceDiagram/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-CC6jPNwc.js"),__vite__mapDeps([34,1,2,3,4,5,6,7]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="class",by=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},xy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-BVNDw-zo.js"),__vite__mapDeps([35,36,10,11,17,18,19,2,3,4,5,6,7]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="classDiagram",ky=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Sy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-Wd5fqnpI.js"),__vite__mapDeps([37,36,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="state",Ay=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Ly=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-4HpZx-Bf.js"),__vite__mapDeps([38,39,10,11,17,18,19,2,3,4,5,6,7]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="stateDiagram",Oy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},My=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-DAXPA4VE.js"),__vite__mapDeps([40,39,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="journey",Dy=t=>/^\s*journey/.test(t),Ny=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-DwECIydP.js"),__vite__mapDeps([41,1,29,19,2,3,4,5,6,7]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,qy=function(t,e){for(let i of e)t.attr(i[0],i[1])},zy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},jl=function(t,e,i,r){const n=zy(e,i,r);qy(t,n)},Wy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),jl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},Hy=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
`);const r=sC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),jl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ul={draw:aC},lC=Ul,cC={db:{},renderer:Ul,parser:{parser:{yy:{}},parse:()=>{}}},hC=cC,Yl="flowchart-elk",uC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},fC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d-BJPX6r39.js"),__vite__mapDeps([42,9,15,16,17,18,19,2,3,4,5,6,7]));return{id:Yl,diagram:t}},dC={id:Yl,detector:uC,loader:fC},pC=dC,Gl="timeline",gC=t=>/^\s*timeline/.test(t),mC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-CvoHurLw.js"),__vite__mapDeps([43,29,19,2,3,4,5,6,7]));return{id:Gl,diagram:t}},_C={id:Gl,detector:gC,loader:mC},yC=_C,Vl="mindmap",CC=t=>/^\s*mindmap/.test(t),bC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-BfMBNkAo.js"),__vite__mapDeps([44,16,2,3,4,5,6,7]));return{id:Vl,diagram:t}},xC={id:Vl,detector:CC,loader:bC},TC=xC,Xl="sankey",vC=t=>/^\s*sankey-beta/.test(t),kC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-DbdaYnNY.js"),__vite__mapDeps([45,30,26,46,2,3,4,5,6,7]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="block",BC=t=>/^\s*block-beta/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-awXQhr0f.js"),__vite__mapDeps([47,14,10,20,15,16,17,18,19,30,26,46,2,3,4,5,6,7]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC;let ws=!1;const to=()=>{ws||(ws=!0,hr("error",hC,t=>t.toLowerCase().trim()==="error"),hr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ka(E0,By,vy,H0,Z0,ty,ry,gy,Cy,pC,P0,I0,TC,yC,G0,Iy,Ey,Py,ay,wC,uy,FC))};class Zl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=n0(e),this.text+=`
`);const r=sC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),jl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ul={draw:aC},lC=Ul,cC={db:{},renderer:Ul,parser:{parser:{yy:{}},parse:()=>{}}},hC=cC,Yl="flowchart-elk",uC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},fC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d-BcsOHvFU.js"),__vite__mapDeps([42,9,15,16,17,18,19,2,3,4,5,6,7]));return{id:Yl,diagram:t}},dC={id:Yl,detector:uC,loader:fC},pC=dC,Gl="timeline",gC=t=>/^\s*timeline/.test(t),mC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-DEoi28kU.js"),__vite__mapDeps([43,29,19,2,3,4,5,6,7]));return{id:Gl,diagram:t}},_C={id:Gl,detector:gC,loader:mC},yC=_C,Vl="mindmap",CC=t=>/^\s*mindmap/.test(t),bC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-Ra318KiJ.js"),__vite__mapDeps([44,16,2,3,4,5,6,7]));return{id:Vl,diagram:t}},xC={id:Vl,detector:CC,loader:bC},TC=xC,Xl="sankey",vC=t=>/^\s*sankey-beta/.test(t),kC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-BjqrfbhW.js"),__vite__mapDeps([45,30,26,46,2,3,4,5,6,7]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="block",BC=t=>/^\s*block-beta/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-DWhLQC6k.js"),__vite__mapDeps([47,14,10,20,15,16,17,18,19,30,26,46,2,3,4,5,6,7]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC;let ws=!1;const to=()=>{ws||(ws=!0,hr("error",hC,t=>t.toLowerCase().trim()==="error"),hr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ka(E0,By,vy,H0,Z0,ty,ry,gy,Cy,pC,P0,I0,TC,yC,G0,Iy,Ey,Py,ay,wC,uy,FC))};class Zl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=n0(e),this.text+=`
import{T as Nt,Q as st,av as kt,t as z,y as rt,J as It,aw as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-O-XuQLLR.js";import{u as Rt,c as dt,N as nt,O as ft,P as zt,b as Ut}from"../index-BUsVpa2s.js";import{u as Vt}from"./bottom-Hm8dPPYZ.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{T as Nt,Q as st,av as kt,t as z,y as rt,J as It,aw as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-O-XuQLLR.js";import{u as Rt,c as dt,N as nt,O as ft,P as zt,b as Ut}from"../index-CSZldN_k.js";import{u as Vt}from"./bottom-BtwZqUlF.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-O-XuQLLR.js";import{u as _}from"./context-CUJW2l2i.js";import{u as v}from"./DrawingPreview-B8tdt9J-.js";import{b as g}from"../index-BUsVpa2s.js";import"./bottom-Hm8dPPYZ.js";import"../modules/shiki-CBnMlxcT.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-O-XuQLLR.js";import{u as _}from"./context-CokfLzX0.js";import{u as v}from"./DrawingPreview-DrCSk8QH.js";import{b as g}from"../index-CSZldN_k.js";import"./bottom-BtwZqUlF.js";import"../modules/shiki-CBnMlxcT.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-DhLcIxB1.js";import{d as B,t as $,Q as le,ax as ae,b as L,f as ie,h as z,A as e,o as g,c as C,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-O-XuQLLR.js";import{L as pe}from"../modules/shiki-CBnMlxcT.js";import{u as me}from"./DrawingPreview-B8tdt9J-.js";import{I as a,V as D}from"./SlidesShow-ozim-3x_.js";import{b as M}from"../index-BUsVpa2s.js";import"./bottom-Hm8dPPYZ.js";import"./context-CUJW2l2i.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},xe=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let x="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(x=p)}function E(p){u.color=p,d.value=!0,i.value=x}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),C(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(x))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),C(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:Ce=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),C(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(xe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-DhLcIxB1.js";import{d as B,t as $,Q as le,ax as ae,b as L,f as ie,h as z,A as e,o as g,c as C,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-O-XuQLLR.js";import{L as pe}from"../modules/shiki-CBnMlxcT.js";import{u as me}from"./DrawingPreview-DrCSk8QH.js";import{I as a,V as D}from"./SlidesShow-6r791Jri.js";import{b as M}from"../index-CSZldN_k.js";import"./bottom-BtwZqUlF.js";import"./context-CokfLzX0.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},xe=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let x="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(x=p)}function E(p){u.color=p,d.value=!0,i.value=x}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),C(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(x))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),C(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:Ce=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),C(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(xe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{d as p,y as f,o as a,b as u,f as d,h,e,c as v,k as r,a0 as c,l as y,q as g,s as x,A as _}from"../modules/vue-O-XuQLLR.js";import{b as l,J as i}from"../index-BUsVpa2s.js";import{u as m,p as b,f as $}from"./context-CUJW2l2i.js";import"../modules/shiki-CBnMlxcT.js";const q=p({__name:"Transform",props:{scale:{type:[Number,String],required:!1},origin:{type:String,required:!1}},setup(o){const t=o,n=f(()=>{const s=[];return t.scale!=null&&s.push(`scale(${t.scale||1})`),{transform:s.join(" "),"transform-origin":t.origin||"top left"}});return(s,E)=>(a(),u("div",{style:h(n.value)},[d(s.$slots,"default")],4))}}),T=l(q,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Transform.vue"]]),k={class:"slidev-layout quote"},B={class:"my-auto"},C={__name:"quote",setup(o){return m(),(t,n)=>(a(),u("div",k,[e("div",B,[d(t.$slots,"default")])]))}},S=l(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/quote.vue"]]),N=e("h1",null,"Thank you !",-1),F=e("p",null,"And to:",-1),P=e("p",null,"Besançon Hospital",-1),V=e("p",null,"Mésocentre de calcul de Franche-Comté",-1),j=e("br",null,null,-1),z=e("br",null,null,-1),A=e("br",null,null,-1),I=e("br",null,null,-1),w={__name:"5",setup(o){return b(i),m(),(t,n)=>{const s=T;return a(),v(S,g(x(_($)(_(i),4))),{default:r(()=>[N,F,P,V,j,z,c(" Contact: alexis.praga (at) proton.me "),A,I,y(s,{scale:.5},{default:r(()=>[c(" Images courtesy of Flaticon ")]),_:1})]),_:1},16)}}},R=l(w,[["__file","/@slidev/slides/5.md"]]);export{R as default};
import{d as p,y as f,o as a,b as u,f as d,h,e,c as v,k as r,a0 as c,l as y,q as g,s as x,A as _}from"../modules/vue-O-XuQLLR.js";import{b as l,J as i}from"../index-CSZldN_k.js";import{u as m,p as b,f as $}from"./context-CokfLzX0.js";import"../modules/shiki-CBnMlxcT.js";const q=p({__name:"Transform",props:{scale:{type:[Number,String],required:!1},origin:{type:String,required:!1}},setup(o){const t=o,n=f(()=>{const s=[];return t.scale!=null&&s.push(`scale(${t.scale||1})`),{transform:s.join(" "),"transform-origin":t.origin||"top left"}});return(s,E)=>(a(),u("div",{style:h(n.value)},[d(s.$slots,"default")],4))}}),T=l(q,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Transform.vue"]]),k={class:"slidev-layout quote"},B={class:"my-auto"},C={__name:"quote",setup(o){return m(),(t,n)=>(a(),u("div",k,[e("div",B,[d(t.$slots,"default")])]))}},S=l(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/quote.vue"]]),N=e("h1",null,"Thank you !",-1),F=e("p",null,"And to:",-1),P=e("p",null,"Besançon Hospital",-1),V=e("p",null,"Mésocentre de calcul de Franche-Comté",-1),j=e("br",null,null,-1),z=e("br",null,null,-1),A=e("br",null,null,-1),I=e("br",null,null,-1),w={__name:"5",setup(o){return b(i),m(),(t,n)=>{const s=T;return a(),v(S,g(x(_($)(_(i),4))),{default:r(()=>[N,F,P,V,j,z,c(" Contact: alexis.praga (at) proton.me "),A,I,y(s,{scale:.5},{default:r(()=>[c(" Images courtesy of Flaticon ")]),_:1})]),_:1},16)}}},R=l(w,[["__file","/@slidev/slides/5.md"]]);export{R as default};
import{_ as A}from"./Mermaid-D0r0_ggr.js";import{o,b as l,f as d,c,k as i,l as m,m as _,q as p,s as u,A as t,e as f}from"../modules/vue-O-XuQLLR.js";import{b as r,G as s}from"../index-BUsVpa2s.js";import{p as g,u as C,f as F}from"./context-CUJW2l2i.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const Y={},T={class:"slidev-layout default"};function k(e,n){return o(),l("div",T,[d(e.$slots,"default")])}const x=r(Y,[["render",k],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]),B=f("h1",null,"Nix : excellent community",-1),w={__name:"4",setup(e){return g(s),C(),(n,X)=>{const a=A;return o(),c(x,p(u(t(F)(t(s),3))),{default:i(()=>[B,m(a,_({"code-lz":"OYQwdgLhBQAE+wCYggUwGIHsBOBbF8AmsYQLQCy5pAItXAqgB4DGANgK6KoDOCsA7qlQBrVGETd68AKTTYACgAGTNpx6LYIZs1QAHCL267UzAJYAzU8yQoesU2FgkylGtVjmc+CABobAT15Mc1gIAAtUASFhBQAibnZxEH9YgEpYHFhYwRExCVi/ACN2CFgwTFLwyP4cRCyc4WRA2IA6VOgpWG4TCFNMRwA5VH5YAAUtYRBgHk6wkF1SXX9YAC4tXoA3SJ8AJgAGHYAWUj2ARlIdgFY/faOTnZPTzq3dVfXTLdhdg+Ozi4BmG4/e6PTrkdisXoAR2sb2Ym22t3+JwAHKRTtdYLdfg8zp0jKZXmt4R9EQdkXs0XsAGxAu4HUF8bAQYCkCCYTCsXjEhFfJEnS4nWlY4EMvF8Qp9JgQECsUzARwrRD9Mk7XFo06A24PU57C5PCV9UiS4CWViRJUqvkHdXorXk9Hnf57ToAIT61FdAAkACoAZXglrAqttmu+Owpxx21M6kswxmwrFWyuD1rVqNR4dDLvxPT6jgAqrpkGhOgBpMSlIOqinInYAdnDFMFe3rnWDjAg5lYmBG1bTkceTaF6MunVAEBiyatWYzewAnLOF+iXXwJzF+0v5+jadqVyvOgBxFDCUiHFo7FrUlqnaeprejh+nalAA==="},{theme:"neutral"}),null,16)]),_:1},16)}}},E=r(w,[["__file","/@slidev/slides/4.md"]]);export{E as default};
import{_ as A}from"./Mermaid-BK6vYFFb.js";import{o,b as l,f as d,c,k as i,l as m,m as _,q as p,s as u,A as t,e as f}from"../modules/vue-O-XuQLLR.js";import{b as r,G as s}from"../index-CSZldN_k.js";import{p as g,u as C,f as F}from"./context-CokfLzX0.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const Y={},T={class:"slidev-layout default"};function k(e,n){return o(),l("div",T,[d(e.$slots,"default")])}const x=r(Y,[["render",k],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]),B=f("h1",null,"Nix : excellent community",-1),w={__name:"4",setup(e){return g(s),C(),(n,X)=>{const a=A;return o(),c(x,p(u(t(F)(t(s),3))),{default:i(()=>[B,m(a,_({"code-lz":"OYQwdgLhBQAE+wCYggUwGIHsBOBbF8AmsYQLQCy5pAItXAqgB4DGANgK6KoDOCsA7qlQBrVGETd68AKTTYACgAGTNpx6LYIZs1QAHCL267UzAJYAzU8yQoesU2FgkylGtVjmc+CABobAT15Mc1gIAAtUASFhBQAibnZxEH9YgEpYHFhYwRExCVi/ACN2CFgwTFLwyP4cRCyc4WRA2IA6VOgpWG4TCFNMRwA5VH5YAAUtYRBgHk6wkF1SXX9YAC4tXoA3SJ8AJgAGHYAWUj2ARlIdgFY/faOTnZPTzq3dVfXTLdhdg+Ozi4BmG4/e6PTrkdisXoAR2sb2Ym22t3+JwAHKRTtdYLdfg8zp0jKZXmt4R9EQdkXs0XsAGxAu4HUF8bAQYCkCCYTCsXjEhFfJEnS4nWlY4EMvF8Qp9JgQECsUzARwrRD9Mk7XFo06A24PU57C5PCV9UiS4CWViRJUqvkHdXorXk9Hnf57ToAIT61FdAAkACoAZXglrAqttmu+Owpxx21M6kswxmwrFWyuD1rVqNR4dDLvxPT6jgAqrpkGhOgBpMSlIOqinInYAdnDFMFe3rnWDjAg5lYmBG1bTkceTaF6MunVAEBiyatWYzewAnLOF+iXXwJzF+0v5+jadqVyvOgBxFDCUiHFo7FrUlqnaeprejh+nalAA==="},{theme:"neutral"}),null,16)]),_:1},16)}}},E=r(w,[["__file","/@slidev/slides/4.md"]]);export{E as default};
import{_ as m}from"./Mermaid-D0r0_ggr.js";import{d as p,o as d,b as _,e,f as t,i as l,c as f,k as n,l as g,m as h,q as v,s as A,A as i}from"../modules/vue-O-XuQLLR.js";import{b as u,F as c}from"../index-BUsVpa2s.js";import{p as w,u as B,f as C}from"./context-CUJW2l2i.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const k={class:"col-header"},M=p({__name:"two-cols-header",props:{class:{type:String},layoutClass:{type:String}},setup(a){const o=a;return(s,r)=>(d(),_("div",{class:l(["slidev-layout two-cols-header w-full h-full",a.layoutClass])},[e("div",k,[t(s.$slots,"default",{},void 0,!0)]),e("div",{class:l(["col-left",o.class])},[t(s.$slots,"left",{},void 0,!0)],2),e("div",{class:l(["col-right",o.class])},[t(s.$slots,"right",{},void 0,!0)],2),e("div",{class:l(["col-bottom",o.class])},[t(s.$slots,"bottom",{},void 0,!0)],2)],2))}}),Y=u(M,[["__scopeId","data-v-1401df1d"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/two-cols-header.vue"]]),b=e("h1",null,"Bioinformatics pipeline",-1),y=e("h1",null,"Nix ?",-1),F=e("ul",null,[e("li",null,"Reproducible dependencies : ok ! (it’s the law)"),e("li",null,"High Performance Computing : ok !"),e("li",null,"Manage workflow ?"),e("li",null,"Manage databases ?")],-1),x={__name:"3",setup(a){return w(c),B(),(o,s)=>{const r=m;return d(),f(Y,v(A(i(C)(i(c),2))),{right:n(I=>[y,F]),default:n(()=>[b,g(r,h({"code-lz":"OYJwhgDgFgBAMgJQFBgDYEtgDsYFpcB8MAxmqgNqmqowBuYI6YWALgLp6EzNYD2LYFgFNORAGbpUwkEgAmAIwCMACnIARQWHlgAziMUAaAEwA6M2wCUo7lj4Dhc+UdUaB2vTACsBgGxmTltYSUkIgQA="},{theme:"neutral",scale:.8}),null,16)]),_:1},16)}}},E=u(x,[["__file","/@slidev/slides/3.md"]]);export{E as default};
import{_ as m}from"./Mermaid-BK6vYFFb.js";import{d as p,o as d,b as _,e,f as t,i as l,c as f,k as n,l as g,m as h,q as v,s as A,A as i}from"../modules/vue-O-XuQLLR.js";import{b as u,F as c}from"../index-CSZldN_k.js";import{p as w,u as B,f as C}from"./context-CokfLzX0.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const k={class:"col-header"},M=p({__name:"two-cols-header",props:{class:{type:String},layoutClass:{type:String}},setup(a){const o=a;return(s,r)=>(d(),_("div",{class:l(["slidev-layout two-cols-header w-full h-full",a.layoutClass])},[e("div",k,[t(s.$slots,"default",{},void 0,!0)]),e("div",{class:l(["col-left",o.class])},[t(s.$slots,"left",{},void 0,!0)],2),e("div",{class:l(["col-right",o.class])},[t(s.$slots,"right",{},void 0,!0)],2),e("div",{class:l(["col-bottom",o.class])},[t(s.$slots,"bottom",{},void 0,!0)],2)],2))}}),Y=u(M,[["__scopeId","data-v-1401df1d"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/two-cols-header.vue"]]),b=e("h1",null,"Bioinformatics pipeline",-1),y=e("h1",null,"Nix ?",-1),F=e("ul",null,[e("li",null,"Reproducible dependencies : ok ! (it’s the law)"),e("li",null,"High Performance Computing : ok !"),e("li",null,"Manage workflow ?"),e("li",null,"Manage databases ?")],-1),x={__name:"3",setup(a){return w(c),B(),(o,s)=>{const r=m;return d(),f(Y,v(A(i(C)(i(c),2))),{right:n(I=>[y,F]),default:n(()=>[b,g(r,h({"code-lz":"OYJwhgDgFgBAMgJQFBgDYEtgDsYFpcB8MAxmqgNqmqowBuYI6YWALgLp6EzNYD2LYFgFNORAGbpUwkEgAmAIwCMACnIARQWHlgAziMUAaAEwA6M2wCUo7lj4Dhc+UdUaB2vTACsBgGxmTltYSUkIgQA="},{theme:"neutral",scale:.8}),null,16)]),_:1},16)}}},E=u(x,[["__file","/@slidev/slides/3.md"]]);export{E as default};
import{o as n,b as l,e,f as c,c as i,k as _,a0 as d,q as u,s as m,A as s}from"../modules/vue-O-XuQLLR.js";import{b as r,E as o}from"../index-BUsVpa2s.js";import{p as f,u as p,f as h}from"./context-CUJW2l2i.js";import"../modules/shiki-CBnMlxcT.js";const g="/slides/fosdem2024/img/ngs.png",v={},x={class:"slidev-layout center h-full grid place-content-center"},b={class:"my-auto"};function B(t,a){return n(),l("div",x,[e("div",b,[c(t.$slots,"default")])])}const k=r(v,[["render",B],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/center.vue"]]),y=e("h1",null,"Next-generation sequencing",-1),$=e("br",null,null,-1),N=e("p",null,[e("img",{src:g,alt:""})],-1),P=e("br",null,null,-1),q=e("br",null,null,-1),C={__name:"2",setup(t){return f(o),p(),(a,E)=>(n(),i(k,u(m(s(h)(s(o),1))),{default:_(()=>[y,$,N,P,q,d(" Bioinformatics: 1 million -> 1 000 candidates ")]),_:1},16))}},w=r(C,[["__file","/@slidev/slides/2.md"]]);export{w as default};
import{o as n,b as l,e,f as c,c as i,k as _,a0 as d,q as u,s as m,A as s}from"../modules/vue-O-XuQLLR.js";import{b as r,E as o}from"../index-CSZldN_k.js";import{p as f,u as p,f as h}from"./context-CokfLzX0.js";import"../modules/shiki-CBnMlxcT.js";const g="/slides/fosdem2024/img/ngs.png",v={},x={class:"slidev-layout center h-full grid place-content-center"},b={class:"my-auto"};function B(t,a){return n(),l("div",x,[e("div",b,[c(t.$slots,"default")])])}const k=r(v,[["render",B],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/center.vue"]]),y=e("h1",null,"Next-generation sequencing",-1),$=e("br",null,null,-1),N=e("p",null,[e("img",{src:g,alt:""})],-1),P=e("br",null,null,-1),q=e("br",null,null,-1),C={__name:"2",setup(t){return f(o),p(),(a,E)=>(n(),i(k,u(m(s(h)(s(o),1))),{default:_(()=>[y,$,N,P,q,d(" Bioinformatics: 1 million -> 1 000 candidates ")]),_:1},16))}},w=r(C,[["__file","/@slidev/slides/2.md"]]);export{w as default};
import{d as _,y as p,o as c,b as f,e as s,f as m,h,c as v,k as g,q as x,s as y,A as a}from"../modules/vue-O-XuQLLR.js";import{u as d,p as k,f as b}from"./context-CokfLzX0.js";import{b as u,D as i}from"../index-CSZldN_k.js";import"../modules/shiki-CBnMlxcT.js";function l(e){return e.startsWith("/")?"/slides/fosdem2024/"+e.slice(1):e}function P(e,r=!1){const o=e&&["#","rgb","hsl"].some(n=>e.indexOf(n)===0),t={background:o?e:void 0,color:e&&!o?"white":void 0,backgroundImage:o?void 0:e?r?`linear-gradient(#0005, #0008), url(${l(e)})`:`url("${l(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return t.background||delete t.background,t}const B={class:"my-auto w-full"},C=_({__name:"cover",props:{background:{default:""}},setup(e){d();const r=e,o=p(()=>P(r.background,!0));return(t,n)=>(c(),f("div",{class:"slidev-layout cover",style:h(o.value)},[s("div",B,[m(t.$slots,"default")])],4))}}),S=u(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/cover.vue"]]),$=s("h1",null,"Nix for genetics",-1),w=s("h2",null,"Powering a bioinformatics pipeline",-1),z=s("p",null,"Alexis Praga (M. D, Ph.D in Computer Science)",-1),A=s("p",null,"Besançon Hospital (France)",-1),D={__name:"1",setup(e){return k(i),d(),(r,o)=>(c(),v(S,x(y(a(b)(a(i),0))),{default:g(()=>[$,w,z,A]),_:1},16))}},j=u(D,[["__file","/@slidev/slides/1.md"]]);export{j as default};
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,X as ee,a5 as nt,E as Le,l as G,d as At,r as se,$ as Bt,a6 as Ie,a7 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/Mermaid-D0r0_ggr.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-BJlLlfGv.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Xt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Xt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Gt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var X,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((X===null||typeof X>"u")&&(X=me()),et=Et[ut]&&Et[ut][X]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,X as ee,a5 as nt,E as Le,l as G,d as At,r as se,$ as Bt,a6 as Ie,a7 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/Mermaid-BK6vYFFb.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-DY3yFwjd.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Xt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Xt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Gt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var X,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((X===null||typeof X>"u")&&(X=me()),et=Et[ut]&&Et[ut][X]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,as as Lt,h as G,t as Et}from"./slidev/Mermaid-D0r0_ggr.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,as as Lt,h as G,t as Et}from"./slidev/Mermaid-BK6vYFFb.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/Mermaid-D0r0_ggr.js";import{G as Ue}from"./graph-af3d5df6-BS2fJ_rm.js";import{l as Be}from"./layout-6685625a-COnxZM2s.js";import{l as Qe}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/Mermaid-BK6vYFFb.js";import{G as Ue}from"./graph-af3d5df6-CpzLvc9u.js";import{l as Be}from"./layout-6685625a-shznRzcW.js";import{l as Qe}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
import{Z as vt,c as yt,V as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/Mermaid-D0r0_ggr.js";import{l as _t}from"./linear-d94cf28d-Dfl-jUvU.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
import{Z as vt,c as yt,V as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/Mermaid-BK6vYFFb.js";import{l as _t}from"./linear-d94cf28d-CG9g9-Er.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
import{V as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,W as gt,U as dt,X as mt,i as _t,Y as H}from"./slidev/Mermaid-D0r0_ggr.js";import{d as tt}from"./arc-5aa99581-CWkVT26Z.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,V){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],V=this.table,x="",f=0,P=0,R=2,M=1,Y=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(N.yy[B]=this.yy[B]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var X=h.yylloc;s.push(X);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},W,D,Q,j;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=V[L]&&V[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";j=[];for(W in V[L])this.terminals_[W]&&W>R&&j.push("'"+this.terminals_[W]+"'");h.showPosition?q="Parse error on line "+(f+1)+`:
import{V as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,W as gt,U as dt,X as mt,i as _t,Y as H}from"./slidev/Mermaid-BK6vYFFb.js";import{d as tt}from"./arc-5aa99581-jr_3UB9E.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,V){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],V=this.table,x="",f=0,P=0,R=2,M=1,Y=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(N.yy[B]=this.yy[B]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var X=h.yylloc;s.push(X);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},W,D,Q,j;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=V[L]&&V[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";j=[];for(W in V[L])this.terminals_[W]&&W>R&&j.push("'"+this.terminals_[W]+"'");h.showPosition?q="Parse error on line "+(f+1)+`:
import{M as Ca,O as Ul,l as qr,c as Ji,U as pp,t as yp,V as ti,d as ri,h as mp,b7 as bp,b8 as Ep,b9 as wp,X as xp}from"./slidev/Mermaid-D0r0_ggr.js";import{a as Tp}from"./createText-f6615236-B0dX0IeG.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
import{M as Ca,O as Ul,l as qr,c as Ji,U as pp,t as yp,V as ti,d as ri,h as mp,b7 as bp,b8 as Ep,b9 as wp,X as xp}from"./slidev/Mermaid-BK6vYFFb.js";import{a as Tp}from"./createText-f6615236-DMiA32T3.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
import{a0 as I,a1 as un,a2 as U,a3 as Y,a4 as fn}from"./slidev/Mermaid-D0r0_ggr.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?I:i==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,g=h.type;g==="n"?(T=!0,g="g"):H[g]||(w===void 0&&(w=12),G=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=H[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}T&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(T&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-A(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Bn(n[0],n[s-1])),u=s>2?On:Gn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Un(){return Xn()(x,x)}function Yn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Yn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,vn as t};
import{a0 as I,a1 as un,a2 as U,a3 as Y,a4 as fn}from"./slidev/Mermaid-BK6vYFFb.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?I:i==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,g=h.type;g==="n"?(T=!0,g="g"):H[g]||(w===void 0&&(w=12),G=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=H[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}T&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(T&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-A(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Bn(n[0],n[s-1])),u=s>2?On:Gn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Un(){return Xn()(x,x)}function Yn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Yn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,vn as t};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/Mermaid-D0r0_ggr.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/Mermaid-BK6vYFFb.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{b as xn,a as P,f as s,G as x,c as Un,d as L,e as kn,g as En,t as zn,i as g,h as w,v as y,r as V,j as Hn,k as yn,l as Nn,m as jn,n as M,o as F,p as Jn,q as Kn,s as Zn}from"./graph-af3d5df6-BS2fJ_rm.js";import{a9 as Ln,aa as $,ab as _n,ac as Qn,ad as ne,ae as ee,af as J,ag as H,ah as Cn,ai as K,aj as re,ak as te,al as ie,am as A,an as ae,ao as In,ap as oe,aq as ue}from"./slidev/Mermaid-D0r0_ggr.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,ke=4;function Ee(n){return Hn(n,xe|ke)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||Qn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Kn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Zn(n,L(e),i)}var Te=Ce(Re);const Z=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&kn(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function Y(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function k(n){return n&&n.length?Q(n,J,Pe):void 0}function R(n){return n&&n.length?Q(n,J,Mn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=En(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return En(a,o.length===1?o[0]:o)}:o}):e=[J];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ve(n,e){return Fe(n,e,function(r,t){return jn(n,t)})}var Ye=ge(function(n,e){return n==null?{}:Ve(n,e)});const G=Ye;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var Ue=Xe();const N=Ue;var ze=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=ze;var He=0;function en(n){var e=++He;return zn(n)+e}function je(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Je(n,e){return je(n||[],e||[],In)}class Ke{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Ze)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Ze(n,e){if(n!=="_next"&&n!=="_prev")return e}var Qe=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||Qe),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,j(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,j(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Ke}),a=t+1;return s(r.nodes(),function(u){j(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function j(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return k(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=kr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),Er(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function kr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function Er(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}E.initLowLimValues=an;E.initCutValues=tn;E.calcCutValue=Bn;E.leaveEdge=Vn;E.enterEdge=Yn;E.exchangeEdges=Dn;function E(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Vn(e);)t=Yn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Vn(n){return Z(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Yn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){E(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=k(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return V(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=Je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Vr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=k(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Yr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=V(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Ur(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Ur(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Yr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);zr(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function zr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function jr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Vr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=Ee(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function Jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Kr(n){var e=Qr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Zr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Zr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Qr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return V(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return V(e,i),r}function rt(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=k(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-k(c),f&&(n[u]=Y(d,function(h){return h+f}))}})})}function ft(n,e){return Y(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=Y(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=k(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Vt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Kr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){jr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],kt={width:0,height:0},Et=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(H({},bt,U(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,_e(U(i,xt),kt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,H({},yt,U(i,Et),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=k(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function U(n,e){return Y(G(n,e),Number)}function z(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Vt as l,m,G as p,N as r,en as u};
import{b as xn,a as P,f as s,G as x,c as Un,d as L,e as kn,g as En,t as zn,i as g,h as w,v as y,r as V,j as Hn,k as yn,l as Nn,m as jn,n as M,o as F,p as Jn,q as Kn,s as Zn}from"./graph-af3d5df6-CpzLvc9u.js";import{a9 as Ln,aa as $,ab as _n,ac as Qn,ad as ne,ae as ee,af as J,ag as H,ah as Cn,ai as K,aj as re,ak as te,al as ie,am as A,an as ae,ao as In,ap as oe,aq as ue}from"./slidev/Mermaid-BK6vYFFb.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,ke=4;function Ee(n){return Hn(n,xe|ke)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||Qn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Kn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Zn(n,L(e),i)}var Te=Ce(Re);const Z=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&kn(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function Y(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function k(n){return n&&n.length?Q(n,J,Pe):void 0}function R(n){return n&&n.length?Q(n,J,Mn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=En(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return En(a,o.length===1?o[0]:o)}:o}):e=[J];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ve(n,e){return Fe(n,e,function(r,t){return jn(n,t)})}var Ye=ge(function(n,e){return n==null?{}:Ve(n,e)});const G=Ye;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var Ue=Xe();const N=Ue;var ze=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=ze;var He=0;function en(n){var e=++He;return zn(n)+e}function je(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Je(n,e){return je(n||[],e||[],In)}class Ke{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Ze)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Ze(n,e){if(n!=="_next"&&n!=="_prev")return e}var Qe=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||Qe),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,j(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,j(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Ke}),a=t+1;return s(r.nodes(),function(u){j(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function j(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return k(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=kr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),Er(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function kr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function Er(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}E.initLowLimValues=an;E.initCutValues=tn;E.calcCutValue=Bn;E.leaveEdge=Vn;E.enterEdge=Yn;E.exchangeEdges=Dn;function E(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Vn(e);)t=Yn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Vn(n){return Z(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Yn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){E(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=k(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return V(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=Je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Vr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=k(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Yr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=V(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Ur(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Ur(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Yr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);zr(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function zr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function jr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Vr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=Ee(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function Jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Kr(n){var e=Qr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Zr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Zr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Qr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return V(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return V(e,i),r}function rt(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=k(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-k(c),f&&(n[u]=Y(d,function(h){return h+f}))}})})}function ft(n,e){return Y(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=Y(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=k(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Vt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Kr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){jr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],kt={width:0,height:0},Et=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(H({},bt,U(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,_e(U(i,xt),kt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,H({},yt,U(i,Et),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=k(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function U(n,e){return Y(G(n,e),Number)}function z(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Vt as l,m,G as p,N as r,en as u};
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/Mermaid-D0r0_ggr.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-BJlLlfGv.js";import{d as Q}from"./arc-5aa99581-CWkVT26Z.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/Mermaid-BK6vYFFb.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-DY3yFwjd.js";import{d as Q}from"./arc-5aa99581-jr_3UB9E.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
import{l as Y,U as D,i as M}from"./slidev/Mermaid-D0r0_ggr.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
import{l as Y,U as D,i as M}from"./slidev/Mermaid-BK6vYFFb.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
import{i as N,G as A}from"./graph-af3d5df6-BS2fJ_rm.js";import{m as $,l as H}from"./layout-6685625a-COnxZM2s.js";import{c as V}from"./clone-d2e37f8c-Cf5luijK.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-Bgkdu3Bw.js";import{l as s,c as T,o as S,h as L}from"./slidev/Mermaid-D0r0_ggr.js";import{a as I}from"./createText-f6615236-B0dX0IeG.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
import{i as N,G as A}from"./graph-af3d5df6-CpzLvc9u.js";import{m as $,l as H}from"./layout-6685625a-shznRzcW.js";import{c as V}from"./clone-d2e37f8c-CHMHSaUq.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-BMNQBDYv.js";import{l as s,c as T,o as S,h as L}from"./slidev/Mermaid-BK6vYFFb.js";import{a as I}from"./createText-f6615236-DMiA32T3.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
__vite__mapDeps.viteFileDeps = ["assets/slidev/1-DmMiLb_r.js","assets/modules/vue-O-XuQLLR.js","assets/slidev/context-CUJW2l2i.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-COdgysnS.js","assets/slidev/3-rG8qGyOk.js","assets/slidev/Mermaid-D0r0_ggr.js","assets/modules/file-saver-EUMWMpoS.js","assets/3-DBxdtZqV.css","assets/slidev/4-B06ThEbw.js","assets/slidev/5-BkkGak3M.js","assets/slidev/print-C8pYroeD.js","assets/slidev/bottom-Hm8dPPYZ.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-C_l0U0Ja.js","assets/print-Nssgrd1X.css","assets/slidev/print-kPQxFMR9.js","assets/slidev/NoteDisplay-Dsd-m7JS.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-UXxDsqK_.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/slidev/SlidesShow-ozim-3x_.js","assets/slidev/DrawingPreview-B8tdt9J-.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-C_MrCHSC.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-BiQsy-jW.js","assets/play-CoA43pdi.css"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/1-CI6Q_juj.js","assets/modules/vue-O-XuQLLR.js","assets/slidev/context-CokfLzX0.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-CzELjp9q.js","assets/slidev/3-Czi4S_-j.js","assets/slidev/Mermaid-BK6vYFFb.js","assets/modules/file-saver-EUMWMpoS.js","assets/3-DBxdtZqV.css","assets/slidev/4-z1WBY7pk.js","assets/slidev/5-CcFbzPko.js","assets/slidev/print-wLGmAf5J.js","assets/slidev/bottom-BtwZqUlF.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-DfLhnhq5.js","assets/print-Nssgrd1X.css","assets/slidev/print-pZnoOJFd.js","assets/slidev/NoteDisplay-DTKxrgB2.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-ALS5RmN6.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/slidev/SlidesShow-6r791Jri.js","assets/slidev/DrawingPreview-DrCSk8QH.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-CFFJhpqk.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-Bgg--Xr0.js","assets/play-CoA43pdi.css"]
`,raw:"",frontmatter:Z,filepath:"/home/alex/notes/slides/fosdem2024.md",start:85,id:3,no:4},__clicksContext:null,__preloaded:!1}),J=E({layout:"quote",class:"text-center"}),Ti=E({layout:y(()=>J.layout),transition:y(()=>J.transition),class:y(()=>J.class),clicks:y(()=>J.clicks),name:y(()=>J.name),preload:y(()=>J.preload),slide:{index:4,content:"",note:"",title:"Thank you !",level:1,noteHTML:"",raw:"",frontmatter:J,filepath:"/home/alex/notes/slides/fosdem2024.md",start:121,id:4,no:5},__clicksContext:null,__preloaded:!1}),Ai=[{no:1,meta:wi,component:async()=>{try{return await V(()=>import("./slidev/1-DmMiLb_r.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),fe}}},{no:2,meta:xi,component:async()=>{try{return await V(()=>import("./slidev/2-COdgysnS.js"),__vite__mapDeps([5,1,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),fe}}},{no:3,meta:Mi,component:async()=>{try{return await V(()=>import("./slidev/3-rG8qGyOk.js"),__vite__mapDeps([6,7,1,8,2,3,4,9]))}catch(t){return console.error("Failed to load slide 3:",t),fe}}},{no:4,meta:Si,component:async()=>{try{return await V(()=>import("./slidev/4-B06ThEbw.js"),__vite__mapDeps([10,7,1,8,2,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),fe}}},{no:5,meta:Ti,component:async()=>{try{return await V(()=>import("./slidev/5-BkkGak3M.js"),__vite__mapDeps([11,1,2,3,4]))}catch(t){return console.error("Failed to load slide 5:",t),fe}}}],j=Wt(Ai);function ye(t){return j.value.find(e=>{var s;return e.no===+t||((s=e.meta.slide)==null?void 0:s.frontmatter.routeAlias)===t})}function $e(t,e){var n;(typeof t=="number"||typeof t=="string")&&(t=ye(t));const s=((n=t.meta.slide)==null?void 0:n.frontmatter.routeAlias)??t.no;return e?`/presenter/${s}`:`/${s}`}function Pi(t,e,{mode:s="replace"}={}){const n=He();return y({get(){const r=n.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){Ce(()=>{(n.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&n[lt(s)]({query:{...n.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const et=P(0);function ns(t,e=0,s){const n=new Map,r=Ps(new Map);return{get current(){return me(+t.value,e,this.total)},set current(i){t.value=me(+i,e,this.total)},clicksStart:e,relativeOffsets:n,map:r,onMounted(){},resolve(i,o=1){const[a,l]=gi(i);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+o-1,delta:l+o-1}}else return{start:l,end:l+o-1,delta:0}},register(i,o){n.set(i,o.delta),r.set(i,o)},unregister(i){n.delete(i),r.delete(i)},get currentOffset(){return et.value,zs(...n.values())},get total(){return et.value,s??Math.max(0,...[...r.values()].map(i=>i.max||0))}}}function Oi(t,e=0){var n,r;const s=((n=t==null?void 0:t.meta.slide)==null?void 0:n.frontmatter.clicksStart)??0;return ns(P(Math.max(e,s)),s,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const At=Os(),Be=Cs("slidev-color-schema","auto"),Pt=y(()=>T.colorSchema!=="auto"),rs=y({get(){return Pt.value?T.colorSchema==="dark":Be.value==="auto"?At.value:Be.value==="dark"},set(t){Pt.value||(Be.value=t===At.value?"auto":t?"dark":"light")}}),Bo=Es(rs);Ls&&oe(rs,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const Ci={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Ei(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let s=t.name.includes("|")?t.name:Ci[t.name]||t.name;if(s.includes("|")){const[n,r]=s.split("|").map(i=>i.trim());s=e?r:n}if(s)return{...t,name:s}}function Li(t,e,s){var r,i;let n=t>0?(r=s==null?void 0:s.meta)==null?void 0:r.transition:(i=e==null?void 0:e.meta)==null?void 0:i.transition;return n||(n=T.transition),Ei(n,t<0)}function is(t,e,s=1){var r,i,o,a,l,c,u,f,h;const n=(i=(r=e.meta)==null?void 0:r.slide)==null?void 0:i.level;n&&n>s&&t.length>0?is(t[t.length-1].children,e,s+1):t.push({no:e.no,children:[],level:s,path:$e(((a=(o=e.meta.slide)==null?void 0:o.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function os(t,e,s=!1,n,r){return t.map(i=>{const o={...i,active:i.no===(r==null?void 0:r.value),hasActiveParent:s};return o.children.length>0&&(o.children=os(o.children,e,o.active||o.hasActiveParent,o,r)),n&&(o.active||o.activeParent)&&(n.activeParent=!0),o})}function as(t,e=1){return t.filter(s=>!s.hideInToc).map(s=>({...s,children:as(s.children,e+1)}))}function Ii(t,e,s){const n=y(()=>t.value.filter(i=>{var o,a;return(a=(o=i.meta)==null?void 0:o.slide)==null?void 0:a.title}).reduce((i,o)=>(is(i,o),i),[])),r=y(()=>os(n.value,s.value,void 0,void 0,e));return y(()=>as(r.value))}function ls(t,e,s=P(0),n,r,i){const o=y(()=>j.value.length),a=P(0),l=P(0),c=y(()=>$e(t.value,n.value)),u=y(()=>t.value.no),f=y(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=y(()=>e.value.current),d=y(()=>e.value.clicksStart),p=y(()=>e.value.total),g=y(()=>j.value[Math.min(j.value.length,u.value+1)-1]),v=y(()=>j.value[Math.max(1,u.value-1)-1]),m=y(()=>u.value<j.value.length||h.value<p.value),_=y(()=>u.value>1||h.value>0),b=y(()=>Li(a.value,t.value,v.value));oe(t,(w,M)=>{a.value=w.no-M.no});async function x(w){return!1}const L=Ii(j,u,t);async function D(){l.value=1,p.value<=s.value?await W():s.value+=1}async function se(){l.value=-1,s.value<=d.value?await z():s.value-=1}async function W(){l.value=1,u.value<j.value.length&&await S(u.value+1)}async function z(w=!0){var q,R;l.value=-1;const M=Math.max(1,u.value-1);await S(M,w?r.value?void 0:((R=(q=ye(M))==null?void 0:q.meta.__clicksContext)==null?void 0:R.total)??Ie:void 0)}function _e(){return S(1)}function be(){return S(o.value)}async function S(w,M=0){var we,ae,gt;Jt.value=!1;const q=u.value!==w,R=M!==s.value,H=(we=ye(w))==null?void 0:we.meta,De=((ae=H==null?void 0:H.slide)==null?void 0:ae.frontmatter.clicksStart)??0;M=me(M,De,((gt=H==null?void 0:H.__clicksContext)==null?void 0:gt.total)??Ie),(q||R)&&await(i==null?void 0:i.push({path:$e(w,n.value),query:{...i.currentRoute.value.query,clicks:M===0?void 0:M.toString()}}))}return{slides:j,total:o,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:v,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:p,hasNext:m,hasPrev:_,tocTree:L,navDirection:a,openInEditor:x,next:D,prev:se,go:S,goLast:be,goFirst:_e,nextSlide:W,prevSlide:z}}function Uo(t,e){const s=async()=>{};return{...ls(y(()=>t),y(()=>e),P(Ie),P(!1),P(!1)),next:s,prev:s,nextSlide:s,prevSlide:s,goFirst:s,goLast:s,go:s}}const $i=zt(()=>{const t=He(),e=y(()=>t.currentRoute.value),s=y(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),n=y(()=>s.value.has("print")),r=y(()=>s.value.get("print")==="clicks"),i=y(()=>s.value.has("embedded")),o=y(()=>e.value.name==="play"),a=y(()=>e.value.name==="presenter"),l=y(()=>e.value.name==="notes"),c=y(()=>!a.value&&(!T.remote||s.value.get("password")===T.remote)),u=Is(o,a),f=y(()=>{var m;return u.value?((m=ye(e.value.params.no))==null?void 0:m.no)??1:1}),h=y(()=>j.value[f.value-1]),d=Pi("clicks","0"),p=y(()=>v(h.value)),g=y({get(){let m=+(d.value||0);return Number.isNaN(m)&&(m=0),m},set(m){d.value=m.toString()}});function v(m){var x,L;if((x=m==null?void 0:m.meta)!=null&&x.__clicksContext)return m.meta.__clicksContext;const _=m.no,b=ns(y({get(){return f.value===_?Math.max(+(d.value??0),b.clicksStart):f.value>_?Ie:b.clicksStart},set(D){f.value===_&&(d.value=me(D,b.clicksStart,b.total).toString())}}),((L=m==null?void 0:m.meta.slide)==null?void 0:L.frontmatter.clicksStart)??0,m==null?void 0:m.meta.clicks);return b.onMounted=()=>{f.value===_&&(d.value=me(+d.value,b.clicksStart,b.total).toString())},m!=null&&m.meta&&(m.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:n,isPrintWithClicks:r,isEmbedded:i,isPlaying:o,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:p,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:v}}),Ot=zt(()=>{const t=$i(),e=He(),s=ls(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return oe([s.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!ye(t.currentRoute.value.params.no)&&await s.goLast()},{flush:"pre",immediate:!0}),{...s,...t}}),Ni=[];function Ri(){const t=jt().appContext.app,e=E({nav:Ot(),configs:T,themeConfigs:y(()=>T.themeConfig)});t.provide(Gn,P("none")),t.provide(Yn,e),t.provide(Un,y(()=>e.nav.currentSlideNo)),t.provide(ut,Wt(Oi()));for(const f of Ni)f();const s=T.titleTemplate.replace("%s",T.title||"Slidev"),{clicksContext:n,currentSlideNo:r,hasPrimarySlide:i,isNotesViewer:o,isPresenter:a}=Ot();Fn({title:s,htmlAttrs:T.htmlAttrs}),Wn(`${s} - shared`),Bn(`${s} - drawings`);const l=`${location.origin}_${pi()}`;function c(){o.value||!a.value&&!Kn.includes(location.host.split(":")[0])||(a.value?(le("page",+r.value),le("clicks",n.value.current)):(le("viewerPage",+r.value),le("viewerClicks",n.value.current)),le("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=He();u.afterEach(c),oe(n,c),zn(f=>{var h;i.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+n.value.current!=+f.clicks)&&(Jt.value=!1,u.replace({path:$e(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const Fi=$s({__name:"App",setup(t){return Ri(),ie(()=>{for(const[e,s]of Object.entries(Ks.value))document.body.style.setProperty(e,s.toString())}),(e,s)=>{const n=Ns("RouterView");return Dt(),Rs(n)}}}),Hi=ss(Fi,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function cs(t,e,s){var n;return((n=t.instance)==null?void 0:n.$).provides[e]??s}function ji(){return{install(t){t.directive("click",{name:"v-click",mounted(e,s){const n=Pe(e,s,s.value);if(n==null)return;e.classList.toggle(Ae,!0);const r=Array.isArray(n.clicks)?n.clicks:[n.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ie(()=>{const i=n.isActive.value,o=n.isCurrent.value,a=i&&!o;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,i),e.classList.toggle(ze,i)):e.classList.toggle(n.flagFade?ue:ce,!i),e.classList.toggle(qe,o),e.classList.toggle(Ve,a)})},unmounted:Ye}),t.directive("after",{name:"v-after",mounted(e,s){const n=Pe(e,s,s.value,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r)):e.classList.toggle(n.flagFade?ue:ce,!r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye}),t.directive("click-hide",{name:"v-click-hide",mounted(e,s){const n=Pe(e,s,s.value,!1,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye})}}}function Ue(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function Di(t,e){return Array.isArray(t)?t[0]===e:t===e}function Pe(t,e,s,n=!1,r=!1){var f;const i=(f=cs(e,ut))==null?void 0:f.value;if(!t||!i||s===!1||s==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const o=e.modifiers.fade!==!1&&e.modifiers.fade!=null;n?s="+0":(s==null||s===!0||s==="true")&&(s="+1");let a,l,c;Array.isArray(s)?(a=0,l=s,c=+s[1]):{start:l,end:c,delta:a}=i.resolve(s);const u={max:c,clicks:l,delta:a,isActive:y(()=>Ue(l,i.current)),isCurrent:y(()=>Di(l,i.current)),isShown:y(()=>r?!Ue(l,i.current):Ue(l,i.current)),flagFade:o,flagHide:r};return i.register(t,u),u}function Ye(t,e){var n;t.classList.toggle(Ae,!1);const s=(n=cs(e,ut))==null?void 0:n.value;s==null||s.unregister(t)}function us(){return Math.floor(Math.random()*2**31)}class Wi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function tt(t,e,s){if(t&&t.length){const[n,r]=e,i=Math.PI/180*s,o=Math.cos(i),a=Math.sin(i);for(const l of t){const[c,u]=l;l[0]=(c-n)*o-(u-r)*a+n,l[1]=(c-n)*a+(u-r)*o+r}}}function zi(t,e,s){const n=[];t.forEach(r=>n.push(...r)),tt(n,e,s)}function qi(t,e){return t[0]===e[0]&&t[1]===e[1]}function Vi(t,e,s,n=1){const r=s,i=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of o)tt(c,a,r);const l=Bi(o,i,n);if(r){for(const c of o)tt(c,a,-r);zi(l,a,-r)}return l}function Bi(t,e,s){const n=[];for(const c of t){const u=[...c];qi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&n.push(u)}const r=[];e=Math.max(e,.1);const i=[];for(const c of n)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);i.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(i.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!i.length)return r;let o=[],a=i[0].ymin,l=0;for(;o.length||i.length;){if(i.length){let c=-1;for(let f=0;f<i.length&&!(i[f].ymin>a);f++)c=f;i.splice(0,c+1).forEach(f=>{o.push({s:a,edge:f})})}if(o=o.filter(c=>!(c.edge.ymax<=a)),o.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(s!==1||l%e===0)&&o.length>1)for(let c=0;c<o.length;c=c+2){const u=c+1;if(u>=o.length)break;const f=o[c].edge,h=o[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=s,o.forEach(c=>{c.edge.x=c.edge.x+s*c.edge.islope}),l++}return r}function ke(t,e){var s;const n=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return e.roughness>=1&&(((s=e.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(i=r),Vi(t,r,n,i||1)}class dt{constructor(e){this.helper=e}fillPolygons(e,s){return this._fillPolygons(e,s)}_fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.renderLines(n,s)}}renderLines(e,s){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],s));return n}}function je(t){const e=t[0],s=t[1];return Math.sqrt(Math.pow(e[0]-s[0],2)+Math.pow(e[1]-s[1],2))}class Ui extends dt{fillPolygons(e,s){let n=s.hachureGap;n<0&&(n=s.strokeWidth*4),n=Math.max(n,.1);const r=Object.assign({},s,{hachureGap:n}),i=ke(e,r),o=Math.PI/180*s.hachureAngle,a=[],l=n*.5*Math.cos(o),c=n*.5*Math.sin(o);for(const[f,h]of i)je([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,s)}}}class Yi extends dt{fillPolygons(e,s){const n=this._fillPolygons(e,s),r=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class Gi{constructor(e){this.helper=e}fillPolygons(e,s){s=Object.assign({},s,{hachureAngle:0});const n=ke(e,s);return this.dotsOnLines(n,s)}dotsOnLines(e,s){const n=[];let r=s.hachureGap;r<0&&(r=s.strokeWidth*4),r=Math.max(r,.1);let i=s.fillWeight;i<0&&(i=s.strokeWidth/2);const o=r/4;for(const a of e){const l=je(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<u;p++){const g=d+f+p*r,v=h-o+Math.random()*2*o,m=g-o+Math.random()*2*o,_=this.helper.ellipse(v,m,i,i,s);n.push(..._.ops)}}return{type:"fillSketch",ops:n}}}class Ki{constructor(e){this.helper=e}fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.dashedLine(n,s)}}dashedLine(e,s){const n=s.dashOffset<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashOffset,r=s.dashGap<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashGap,i=[];return e.forEach(o=>{const a=je(o),l=Math.floor(a/(n+r)),c=(a+r-l*(n+r))/2;let u=o[0],f=o[1];u[0]>f[0]&&(u=o[1],f=o[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const p=d*(n+r),g=p+n,v=[u[0]+p*Math.cos(h)+c*Math.cos(h),u[1]+p*Math.sin(h)+c*Math.sin(h)],m=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];i.push(...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],s))}}),i}}class Zi{constructor(e){this.helper=e}fillPolygons(e,s){const n=s.hachureGap<0?s.strokeWidth*4:s.hachureGap,r=s.zigzagOffset<0?n:s.zigzagOffset;s=Object.assign({},s,{hachureGap:n+r});const i=ke(e,s);return{type:"fillSketch",ops:this.zigzagLines(i,r,s)}}zigzagLines(e,s,n){const r=[];return e.forEach(i=>{const o=je(i),a=Math.round(o/(2*s));let l=i[0],c=i[1];l[0]>c[0]&&(l=i[1],c=i[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*s,d=(f+1)*2*s,p=Math.sqrt(2*Math.pow(s,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],v=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],n),...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}}),r}}const O={};function Ji(t,e){let s=t.fillStyle||"hachure";if(!O[s])switch(s){case"zigzag":O[s]||(O[s]=new Ui(e));break;case"cross-hatch":O[s]||(O[s]=new Yi(e));break;case"dots":O[s]||(O[s]=new Gi(e));break;case"dashed":O[s]||(O[s]=new Ki(e));break;case"zigzag-line":O[s]||(O[s]=new Zi(e));break;case"hachure":default:s="hachure",O[s]||(O[s]=new dt(e));break}return O[s]}const Qi=0,st=1,fs=2,xe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Qi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:st,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:fs,text:""},e}function Ge(t,e){return t.type===e}function pt(t){const e=[],s=Xi(t);let n="BOD",r=0,i=s[r];for(;!Ge(i,fs);){let o=0;const a=[];if(n==="BOD")if(i.text==="M"||i.text==="m")r++,o=xe[i.text],n=i.text;else return pt("M0,0"+t);else Ge(i,st)?o=xe[n]:(r++,o=xe[i.text],n=i.text);if(r+o<s.length){for(let l=r;l<r+o;l++){const c=s[l];if(Ge(c,st))a[a.length]=+c.text;else throw new Error("Param not a number: "+n+","+c.text)}if(typeof xe[n]=="number"){const l={key:n,data:a};e.push(l),r+=o,i=s[r],n==="M"&&(n="L"),n==="m"&&(n="l")}else throw new Error("Bad segment: "+n)}else throw new Error("Path data ended short")}return e}function hs(t){let e=0,s=0,n=0,r=0;const i=[];for(const{key:o,data:a}of t)switch(o){case"M":i.push({key:"M",data:[...a]}),[e,s]=a,[n,r]=a;break;case"m":e+=a[0],s+=a[1],i.push({key:"M",data:[e,s]}),n=e,r=s;break;case"L":i.push({key:"L",data:[...a]}),[e,s]=a;break;case"l":e+=a[0],s+=a[1],i.push({key:"L",data:[e,s]});break;case"C":i.push({key:"C",data:[...a]}),e=a[4],s=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"C",data:l}),e=l[4],s=l[5];break}case"Q":i.push({key:"Q",data:[...a]}),e=a[2],s=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"Q",data:l}),e=l[2],s=l[3];break}case"A":i.push({key:"A",data:[...a]}),e=a[5],s=a[6];break;case"a":e+=a[5],s+=a[6],i.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,s]});break;case"H":i.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...a]}),s=a[0];break;case"v":s+=a[0],i.push({key:"V",data:[s]});break;case"S":i.push({key:"S",data:[...a]}),e=a[2],s=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"S",data:l}),e=l[2],s=l[3];break}case"T":i.push({key:"T",data:[...a]}),e=a[0],s=a[1];break;case"t":e+=a[0],s+=a[1],i.push({key:"T",data:[e,s]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,s=r;break}return i}function ds(t){const e=[];let s="",n=0,r=0,i=0,o=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,r]=u,[i,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,r]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,r]});break;case"V":r=u[0],e.push({key:"L",data:[n,r]});break;case"S":{let f=0,h=0;s==="C"||s==="S"?(f=n+(n-a),h=r+(r-l)):(f=n,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],n=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,p=0;s==="Q"||s==="T"?(d=n+(n-a),p=r+(r-l)):(d=n,p=r);const g=n+2*(d-n)/3,v=r+2*(p-r)/3,m=f+2*(d-f)/3,_=h+2*(p-h)/3;e.push({key:"C",data:[g,v,m,_,f,h]}),a=d,l=p,n=f,r=h;break}case"Q":{const[f,h,d,p]=u,g=n+2*(f-n)/3,v=r+2*(h-r)/3,m=d+2*(f-d)/3,_=p+2*(h-p)/3;e.push({key:"C",data:[g,v,m,_,d,p]}),a=f,l=h,n=d,r=p;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],v=u[5],m=u[6];f===0||h===0?(e.push({key:"C",data:[n,r,v,m,v,m]}),n=v,r=m):(n!==v||r!==m)&&(ps(n,r,v,m,f,h,d,p,g).forEach(function(b){e.push({key:"C",data:b})}),n=v,r=m);break}case"Z":e.push({key:"Z",data:[]}),n=i,r=o;break}s=c}return e}function eo(t){return Math.PI*t/180}function he(t,e,s){const n=t*Math.cos(s)-e*Math.sin(s),r=t*Math.sin(s)+e*Math.cos(s);return[n,r]}function ps(t,e,s,n,r,i,o,a,l,c){const u=eo(o);let f=[],h=0,d=0,p=0,g=0;if(c)[h,d,p,g]=c;else{[t,e]=he(t,e,-u),[s,n]=he(s,n,-u);const S=(t-s)/2,w=(e-n)/2;let M=S*S/(r*r)+w*w/(i*i);M>1&&(M=Math.sqrt(M),r=M*r,i=M*i);const q=a===l?-1:1,R=r*r,H=i*i,De=R*H-R*w*w-H*S*S,we=R*w*w+H*S*S,ae=q*Math.sqrt(Math.abs(De/we));p=ae*r*w/i+(t+s)/2,g=ae*-i*S/r+(e+n)/2,h=Math.asin(parseFloat(((e-g)/i).toFixed(9))),d=Math.asin(parseFloat(((n-g)/i).toFixed(9))),t<p&&(h=Math.PI-h),s<p&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let v=d-h;if(Math.abs(v)>Math.PI*120/180){const S=d,w=s,M=n;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,s=p+r*Math.cos(d),n=g+i*Math.sin(d),f=ps(s,n,w,M,r,i,o,0,l,[d,S,p,g])}v=d-h;const m=Math.cos(h),_=Math.sin(h),b=Math.cos(d),x=Math.sin(d),L=Math.tan(v/4),D=4/3*r*L,se=4/3*i*L,W=[t,e],z=[t+D*_,e-se*m],_e=[s+D*x,n-se*b],be=[s,n];if(z[0]=2*W[0]-z[0],z[1]=2*W[1]-z[1],c)return[z,_e,be].concat(f);{f=[z,_e,be].concat(f);const S=[];for(let w=0;w<f.length;w+=3){const M=he(f[w][0],f[w][1],u),q=he(f[w+1][0],f[w+1][1],u),R=he(f[w+2][0],f[w+2][1],u);S.push([M[0],M[1],q[0],q[1],R[0],R[1]])}return S}}const to={randOffset:ro,randOffsetWithRange:io,ellipse:nt,doubleLineOps:oo};function $(t,e,s,n,r){return{type:"path",ops:U(t,e,s,n,r)}}function pe(t,e,s){const n=(t||[]).length;if(n>2){const r=[];for(let i=0;i<n-1;i++)r.push(...U(t[i][0],t[i][1],t[i+1][0],t[i+1][1],s));return e&&r.push(...U(t[n-1][0],t[n-1][1],t[0][0],t[0][1],s)),{type:"path",ops:r}}else if(n===2)return $(t[0][0],t[0][1],t[1][0],t[1][1],s);return{type:"path",ops:[]}}function so(t,e){return pe(t,!0,e)}function gs(t,e,s,n,r){const i=[[t,e],[t+s,e],[t+s,e+n],[t,e+n]];return so(i,r)}function Ct(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Me(n[0],1*(1+e.roughness*.2),e),i=e.disableMultiStroke?[]:Me(n[0],1.5*(1+e.roughness*.22),It(e));for(let o=1;o<n.length;o++){const a=n[o];if(a.length){const l=Me(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:Me(a,1.5*(1+e.roughness*.22),It(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&i.push(u)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function nt(t,e,s,n,r){const i=ms(s,n,r);return rt(t,e,r,i).opset}function ms(t,e,s){const n=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*n)),i=Math.PI*2/r;let o=Math.abs(t/2),a=Math.abs(e/2);const l=1-s.curveFitting;return o+=k(o*l,s),a+=k(a*l,s),{increment:i,rx:o,ry:a}}function rt(t,e,s,n){const[r,i]=$t(n.increment,t,e,n.rx,n.ry,1,n.increment*Ne(.1,Ne(.4,1,s),s),s);let o=Re(r,null,s);if(!s.disableMultiStroke&&s.roughness!==0){const[a]=$t(n.increment,t,e,n.rx,n.ry,1.5,0,s),l=Re(a,null,s);o=o.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function Et(t,e,s,n,r,i,o,a,l){const c=t,u=e;let f=Math.abs(s/2),h=Math.abs(n/2);f+=k(f*.01,l),h+=k(h*.01,l);let d=r,p=i;for(;d<0;)d+=Math.PI*2,p+=Math.PI*2;p-d>Math.PI*2&&(d=0,p=Math.PI*2);const g=Math.PI*2/l.curveStepCount,v=Math.min(g/2,(p-d)/2),m=Nt(v,c,u,f,h,d,p,1,l);if(!l.disableMultiStroke){const _=Nt(v,c,u,f,h,d,p,1.5,l);m.push(..._)}return o&&(a?m.push(...U(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...U(c,u,c+f*Math.cos(p),u+h*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:m}}function Lt(t,e){const s=ds(hs(pt(t))),n=[];let r=[0,0],i=[0,0];for(const{key:o,data:a}of s)switch(o){case"M":{i=[a[0],a[1]],r=[a[0],a[1]];break}case"L":n.push(...U(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;n.push(...ao(l,c,u,f,h,d,i,e)),i=[h,d];break}case"Z":n.push(...U(i[0],i[1],r[0],r[1],e)),i=[r[0],r[1]];break}return{type:"path",ops:n}}function Ke(t,e){const s=[];for(const n of t)if(n.length){const r=e.maxRandomnessOffset||0,i=n.length;if(i>2){s.push({op:"move",data:[n[0][0]+k(r,e),n[0][1]+k(r,e)]});for(let o=1;o<i;o++)s.push({op:"lineTo",data:[n[o][0]+k(r,e),n[o][1]+k(r,e)]})}}return{type:"fillPath",ops:s}}function re(t,e){return Ji(e,to).fillPolygons(t,e)}function no(t,e,s,n,r,i,o){const a=t,l=e;let c=Math.abs(s/2),u=Math.abs(n/2);c+=k(c*.01,o),u+=k(u*.01,o);let f=r,h=i;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/o.curveStepCount,p=[];for(let g=f;g<=h;g=g+d)p.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return p.push([a+c*Math.cos(h),l+u*Math.sin(h)]),p.push([a,l]),re([p],o)}function ro(t,e){return k(t,e)}function io(t,e,s){return Ne(t,e,s)}function oo(t,e,s,n,r){return U(t,e,s,n,r,!0)}function It(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function vs(t){return t.randomizer||(t.randomizer=new Wi(t.seed||0)),t.randomizer.next()}function Ne(t,e,s,n=1){return s.roughness*n*(vs(s)*(e-t)+t)}function k(t,e,s=1){return Ne(-t,t,e,s)}function U(t,e,s,n,r,i=!1){const o=i?r.disableMultiStrokeFill:r.disableMultiStroke,a=it(t,e,s,n,r,!0,!1);if(o)return a;const l=it(t,e,s,n,r,!0,!0);return a.concat(l)}function it(t,e,s,n,r,i,o){const a=Math.pow(t-s,2)+Math.pow(e-n,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+vs(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(n-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-s)/200;d=k(d,r,c),p=k(p,r,c);const g=[],v=()=>k(f,r,c),m=()=>k(u,r,c),_=r.preserveVertices;return i&&(o?g.push({op:"move",data:[t+(_?0:v()),e+(_?0:v())]}):g.push({op:"move",data:[t+(_?0:k(u,r,c)),e+(_?0:k(u,r,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(s-t)*h+v(),p+e+(n-e)*h+v(),d+t+2*(s-t)*h+v(),p+e+2*(n-e)*h+v(),s+(_?0:v()),n+(_?0:v())]}):g.push({op:"bcurveTo",data:[d+t+(s-t)*h+m(),p+e+(n-e)*h+m(),d+t+2*(s-t)*h+m(),p+e+2*(n-e)*h+m(),s+(_?0:m()),n+(_?0:m())]}),g}function Me(t,e,s){if(!t.length)return[];const n=[];n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]),n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]);for(let r=1;r<t.length;r++)n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]),r===t.length-1&&n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]);return Re(n,null,s)}function Re(t,e,s){const n=t.length,r=[];if(n>3){const i=[],o=1-s.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<n;a++){const l=t[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*t[a+1][0]-o*t[a-1][0])/6,l[1]+(o*t[a+1][1]-o*t[a-1][1])/6],i[2]=[t[a+1][0]+(o*t[a][0]-o*t[a+2][0])/6,t[a+1][1]+(o*t[a][1]-o*t[a+2][1])/6],i[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(e&&e.length===2){const a=s.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+k(a,s),e[1]+k(a,s)]})}}else n===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&r.push(...it(t[0][0],t[0][1],t[1][0],t[1][1],s,!0,!0));return r}function $t(t,e,s,n,r,i,o,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+n*Math.cos(-t),s+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+n*Math.cos(f),s+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+n*Math.cos(0),s+r*Math.sin(0)]),u.push([e+n*Math.cos(t),s+r*Math.sin(t)])}else{const f=k(.5,a)-Math.PI/2;u.push([k(i,a)+e+.9*n*Math.cos(f-t),k(i,a)+s+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const p=[k(i,a)+e+n*Math.cos(d),k(i,a)+s+r*Math.sin(d)];c.push(p),u.push(p)}u.push([k(i,a)+e+n*Math.cos(f+Math.PI*2+o*.5),k(i,a)+s+r*Math.sin(f+Math.PI*2+o*.5)]),u.push([k(i,a)+e+.98*n*Math.cos(f+o),k(i,a)+s+.98*r*Math.sin(f+o)]),u.push([k(i,a)+e+.9*n*Math.cos(f+o*.5),k(i,a)+s+.9*r*Math.sin(f+o*.5)])}return[u,c]}function Nt(t,e,s,n,r,i,o,a,l){const c=i+k(.1,l),u=[];u.push([k(a,l)+e+.9*n*Math.cos(c-t),k(a,l)+s+.9*r*Math.sin(c-t)]);for(let f=c;f<=o;f=f+t)u.push([k(a,l)+e+n*Math.cos(f),k(a,l)+s+r*Math.sin(f)]);return u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),Re(u,null,l)}function ao(t,e,s,n,r,i,o,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(h?0:k(c[0],a)),o[1]+(h?0:k(c[0],a))]}),u=h?[r,i]:[r+k(c[d],a),i+k(c[d],a)],l.push({op:"bcurveTo",data:[t+k(c[d],a),e+k(c[d],a),s+k(c[d],a),n+k(c[d],a),u[0],u[1]]});return l}function de(t){return[...t]}function Rt(t,e=0){const s=t.length;if(s<3)throw new Error("A curve must have at least three points.");const n=[];if(s===3)n.push(de(t[0]),de(t[1]),de(t[2]),de(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const i=[],o=1-e;n.push(de(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*r[a+1][0]-o*r[a-1][0])/6,l[1]+(o*r[a+1][1]-o*r[a-1][1])/6],i[2]=[r[a+1][0]+(o*r[a][0]-o*r[a+2][0])/6,r[a+1][1]+(o*r[a][1]-o*r[a+2][1])/6],i[3]=[r[a+1][0],r[a+1][1]],n.push(i[1],i[2],i[3])}}return n}function lo(t,e){return Math.sqrt(Oe(t,e))}function Oe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function co(t,e,s){const n=Oe(e,s);if(n===0)return Oe(t,e);let r=((t[0]-e[0])*(s[0]-e[0])+(t[1]-e[1])*(s[1]-e[1]))/n;return r=Math.max(0,Math.min(1,r)),Oe(t,Q(e,s,r))}function Q(t,e,s){return[t[0]+(e[0]-t[0])*s,t[1]+(e[1]-t[1])*s]}function uo(t,e){const s=t[e+0],n=t[e+1],r=t[e+2],i=t[e+3];let o=3*n[0]-2*s[0]-i[0];o*=o;let a=3*n[1]-2*s[1]-i[1];a*=a;let l=3*r[0]-2*i[0]-s[0];l*=l;let c=3*r[1]-2*i[1]-s[1];return c*=c,o<l&&(o=l),a<c&&(a=c),o+a}function ot(t,e,s,n){const r=n||[];if(uo(t,e)<s){const i=t[e+0];r.length?lo(r[r.length-1],i)>1&&r.push(i):r.push(i),r.push(t[e+3])}else{const o=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=Q(o,a,.5),f=Q(a,l,.5),h=Q(l,c,.5),d=Q(u,f,.5),p=Q(f,h,.5),g=Q(d,p,.5);ot([o,u,d,g],0,s,r),ot([g,p,h,c],0,s,r)}return r}function fo(t,e){return Fe(t,0,t.length,e)}function Fe(t,e,s,n,r){const i=r||[],o=t[e],a=t[s-1];let l=0,c=1;for(let u=e+1;u<s-1;++u){const f=co(t[u],o,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>n?(Fe(t,e,c+1,n,i),Fe(t,c,s,n,i)):(i.length||i.push(o),i.push(a)),i}function at(t,e=.15,s){const n=[],r=(t.length-1)/3;for(let i=0;i<r;i++){const o=i*3;ot(t,o,e,n)}return s&&s>0?Fe(n,0,n.length,s):n}function ho(t,e,s){const n=pt(t),r=ds(hs(n)),i=[];let o=[],a=[0,0],l=[];const c=()=>{l.length>=4&&o.push(...at(l,e)),l=[]},u=()=>{c(),o.length&&(i.push(o),o=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],o.push(a);break;case"L":c(),o.push([d[0],d[1]]);break;case"C":if(!l.length){const p=o.length?o[o.length-1]:a;l.push([p[0],p[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),o.push([a[0],a[1]]);break}if(u(),!s)return i;const f=[];for(const h of i){const d=fo(h,s);d.length&&f.push(d)}return f}const I="none";class po{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return us()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,s,n){return{shape:e,sets:s||[],options:n||this.defaultOptions}}line(e,s,n,r,i){const o=this._o(i);return this._d("line",[$(e,s,n,r,o)],o)}rectangle(e,s,n,r,i){const o=this._o(i),a=[],l=gs(e,s,n,r,o);if(o.fill){const c=[[e,s],[e+n,s],[e+n,s+r],[e,s+r]];o.fillStyle==="solid"?a.push(Ke([c],o)):a.push(re([c],o))}return o.stroke!==I&&a.push(l),this._d("rectangle",a,o)}ellipse(e,s,n,r,i){const o=this._o(i),a=[],l=ms(n,r,o),c=rt(e,s,o,l);if(o.fill)if(o.fillStyle==="solid"){const u=rt(e,s,o,l).opset;u.type="fillPath",a.push(u)}else a.push(re([c.estimatedPoints],o));return o.stroke!==I&&a.push(c.opset),this._d("ellipse",a,o)}circle(e,s,n,r){const i=this.ellipse(e,s,n,n,r);return i.shape="circle",i}linearPath(e,s){const n=this._o(s);return this._d("linearPath",[pe(e,!1,n)],n)}arc(e,s,n,r,i,o,a=!1,l){const c=this._o(l),u=[],f=Et(e,s,n,r,i,o,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Et(e,s,n,r,i,o,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(no(e,s,n,r,i,o,c));return c.stroke!==I&&u.push(f),this._d("arc",u,c)}curve(e,s){const n=this._o(s),r=[],i=Ct(e,n);if(n.fill&&n.fill!==I)if(n.fillStyle==="solid"){const o=Ct(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?o.push(...u):u.length===3?o.push(...at(Rt([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):o.push(...at(Rt(u),10,(1+n.roughness)/2))}o.length&&r.push(re([o],n))}return n.stroke!==I&&r.push(i),this._d("curve",r,n)}polygon(e,s){const n=this._o(s),r=[],i=pe(e,!0,n);return n.fill&&(n.fillStyle==="solid"?r.push(Ke([e],n)):r.push(re([e],n))),n.stroke!==I&&r.push(i),this._d("polygon",r,n)}path(e,s){const n=this._o(s),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==I,o=n.stroke!==I,a=!!(n.simplification&&n.simplification<1),l=a?4-4*(n.simplification||1):(1+n.roughness)/2,c=ho(e,1,l),u=Lt(e,n);if(i)if(n.fillStyle==="solid")if(c.length===1){const f=Lt(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(Ke(c,n));else r.push(re(c,n));return o&&(a?c.forEach(f=>{r.push(pe(f,!1,n))}):r.push(u)),this._d("path",r,n)}opsToPath(e,s){let n="";for(const r of e.ops){const i=typeof s=="number"&&s>=0?r.data.map(o=>+o.toFixed(s)):r.data;switch(r.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}return n.trim()}toPaths(e){const s=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const i of s){let o=null;switch(i.type){case"path":o={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:I};break;case"fillPath":o={d:this.opsToPath(i),stroke:I,strokeWidth:0,fill:n.fill||I};break;case"fillSketch":o=this.fillSketch(i,n);break}o&&r.push(o)}return r}fillSketch(e,s){let n=s.fillWeight;return n<0&&(n=s.strokeWidth/2),{d:this.opsToPath(e),stroke:s.fill||I,strokeWidth:n,fill:I}}_mergedShape(e){return e.filter((s,n)=>n===0?!0:s.op!=="move")}}const ys="http://www.w3.org/2000/svg",go=800;let Ze=null;function mo(){return Ze||(Ze=new po().defaultOptions),Ze}function Je(t,e,s){return{...mo(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...s}}function vo(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const s=e;if(s.length)switch(s.length){case 4:return[...s];case 1:return[s[0],s[0],s[0],s[0]];case 2:return[...s,...s];case 3:return[...s,s[1]];default:return[s[0],s[1],s[2],s[3]]}}}return[5,5,5,5]}function yo(t,e,s,n,r,i){const o=[];let a=s.strokeWidth||2;const l=vo(s),c=s.animate===void 0?!0:!!s.animate,u=s.iterations||2,f=s.rtl?1:0,h=Je("single",i,s);switch(s.type){case"underline":{const d=e.y+e.h+l[2];for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],p=e.y-l[0],g=e.w+(l[1]+l[3]),v=e.h+(l[0]+l[2]);for(let m=0;m<u;m++)o.push(gs(d,p,g,v,h));break}case"bracket":{const d=Array.isArray(s.brackets)?s.brackets:s.brackets?[s.brackets]:["right"],p=e.x-l[3]*2,g=e.x+e.w+l[1]*2,v=e.y-l[0]*2,m=e.y+e.h+l[2]*2;for(const _ of d){let b;switch(_){case"bottom":b=[[p,e.y+e.h],[p,m],[g,m],[g,e.y+e.h]];break;case"top":b=[[p,e.y],[p,v],[g,v],[g,e.y]];break;case"left":b=[[e.x,v],[p,v],[p,m],[e.x,m]];break;case"right":b=[[e.x+e.w,v],[g,v],[g,m],[e.x+e.w,m]];break}b&&o.push(pe(b,!1,h))}break}case"crossed-off":{const d=e.x,p=e.y,g=d+e.w,v=p+e.h;for(let m=f;m<u+f;m++)m%2?o.push($(g,v,d,p,h)):o.push($(d,p,g,v,h));for(let m=f;m<u+f;m++)m%2?o.push($(d,v,g,p,h)):o.push($(g,p,d,v,h));break}case"circle":{const d=Je("double",i,s),p=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),v=e.x-l[3]+p/2,m=e.y-l[0]+g/2,_=Math.floor(u/2),b=u-_*2;for(let x=0;x<_;x++)o.push(nt(v,m,p,g,d));for(let x=0;x<b;x++)o.push(nt(v,m,p,g,h));break}case"highlight":{const d=Je("highlight",i,s);a=e.h*.95;const p=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?o.push($(e.x+e.w,p,e.x,p,d)):o.push($(e.x,p,e.x+e.w,p,d));break}}if(o.length){const d=ko(o),p=[],g=[];let v=0;const m=(_,b,x)=>_.setAttribute(b,x);for(const _ of d){const b=document.createElementNS(ys,"path");if(m(b,"d",_),m(b,"fill","none"),m(b,"stroke",s.color||"currentColor"),m(b,"stroke-width",`${a}`),s.opacity!==void 0&&m(b,"style",`opacity:${s.opacity}`),c){const x=b.getTotalLength();p.push(x),v+=x}t.appendChild(b),g.push(b)}if(c){let _=0;for(let b=0;b<g.length;b++){const x=g[b],L=p[b],D=v?r*(L/v):0,se=n+_,W=x.style;W.strokeDashoffset=`${L}`,W.strokeDasharray=`${L}`,W.animation=`rough-notation-dash ${D}ms ease-out ${se}ms forwards`,_+=D}return Ft(r+n)}}return Ft(0)}function Ft(t){return new Promise(e=>setTimeout(e,t))}function ko(t){const e=[];for(const s of t){let n="";for(const r of s.ops){const i=r.data;switch(r.op){case"move":n.trim()&&e.push(n.trim()),n=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}n.trim()&&e.push(n.trim())}return e}function _o(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var bo=Object.defineProperty,wo=(t,e,s)=>e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,F=(t,e,s)=>(wo(t,typeof e!="symbol"?e+"":e,s),s);class xo{constructor(e,s){F(this,"_state","unattached"),F(this,"_config"),F(this,"_resizing",!1),F(this,"_ro"),F(this,"_seed",us()),F(this,"_e"),F(this,"_svg"),F(this,"_lastSizes",[]),F(this,"_animationDelay",0),F(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),F(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(s)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,s){this._config[e]!==s&&(this._config[e]=s,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){_o();const e=this._svg=document.createElementNS(ys,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const n=this._config.type==="highlight";if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",e),this._state="not-showing",n){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const s of e)s.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let s=0;s<e.length;s++)if(!this.isSameRect(e[s],this._lastSizes[s]))return!0}else return!0}return!1}isSameRect(e,s){const n=(r,i)=>Math.round(r)===Math.round(i);return n(e.x,s.x)&&n(e.y,s.y)&&n(e.w,s.w)&&n(e.h,s.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,s){let n=this._config;s&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);const r=this.rects();let i=0;r.forEach(c=>i+=c.w);const o=n.animationDuration||go;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=o*(u.w/i);l.push(yo(e,r[c],n,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const s=this._e.getClientRects();for(let n=0;n<s.length;n++)e.push(this.svgRect(this._svg,s[n]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,s){const n=e.getBoundingClientRect(),r=s;return{x:(r.x||r.left)-(n.x||n.left),y:(r.y||r.top)-(n.y||n.top),w:r.width,h:r.height}}}function Mo(t,e){return new xo(t,e)}function C(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Ht={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>C(t,"text-black"),blue:t=>C(t,"text-blue"),cyan:t=>C(t,"text-cyan"),gray:t=>C(t,"text-gray"),green:t=>C(t,"text-green"),indigo:t=>C(t,"text-indigo"),lime:t=>C(t,"text-lime"),orange:t=>C(t,"text-orange"),pink:t=>C(t,"text-pink"),purple:t=>C(t,"text-purple"),red:t=>C(t,"text-red"),teal:t=>C(t,"text-teal"),white:t=>C(t,"text-white"),yellow:t=>C(t,"text-yellow")},So=[[/^delay-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||300;return e.delay=n,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||100;return e.opacity=n/100,e}]];function To(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,s)=>{const n=y(()=>{const o=typeof s.value=="object"&&!Array.isArray(s.value)?{...s.value}:{at:s.value};let a={at:o.at};const l=Object.entries(s.modifiers).filter(([u,f])=>{if(Ht[u])return a=Ht[u](a,f),!1;for(const[h,d]of So){const p=u.match(h);if(p)return a=d(p,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...o};return c.type||(c.type="underline"),c}),r=Mo(e,n.value),i=Pe(e,s,n.value.at);if(!i){r.show();return}ie(()=>{let o;n.value.class&&(r.class=n.value.class),n.value.color&&(r.color=n.value.color);const a=n.value.at;a===!0?o=!0:a===!1?o=!1:o=i.isActive.value,o!=null&&(o?r.show():r.hide())})}})}}}const ge=[{name:"print",path:"/print",component:()=>V(()=>import("./slidev/print-C8pYroeD.js"),__vite__mapDeps([12,1,3,4,13,14,15,16]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!T.remote||T.remote===e.query.password)return!0;if(T.remote&&e.query.password===void 0){const s=prompt("Enter password");if(T.remote===s)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};ge.push({path:"/presenter/print",component:()=>V(()=>import("./slidev/print-kPQxFMR9.js"),__vite__mapDeps([17,1,18,19,3,4]))}),ge.push({name:"presenter",path:"/presenter/:no",component:()=>V(()=>import("./slidev/presenter-UXxDsqK_.js"),__vite__mapDeps([20,21,1,22,23,13,14,2,3,4,24,18,19,25,26,27])),beforeEnter:t}),ge.push({path:"/presenter",redirect:{path:"/presenter/1"}})}ge.push({name:"play",path:"/:no",component:()=>V(()=>import("./slidev/play-BiQsy-jW.js"),__vite__mapDeps([28,1,13,14,22,23,21,2,3,4,24,15,29]))});const Ao=[];async function Po(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const s=Fs({history:Hs("/slides/fosdem2024"),routes:ge});t.use(s),t.use(Nn()),t.use(ji()),t.use(To()),t.use(js),t.use(Ws,{container:"#twoslash-container"});const n={app:t,router:s};Ce(()=>{s.afterEach(async()=>{await Ce(),et.value+=1})});for(const r of Ao)await r(n)}const ks=Ds(Hi);Po(ks);ks.mount("#app");export{ut as A,zo as B,Ie as C,Y as D,G as E,K as F,Z as G,Lo as H,pi as I,J,Wo as K,qo as L,Zn as M,Fo as N,Ro as O,No as P,V as _,Gs as a,ss as b,T as c,Oi as d,Uo as e,Ys as f,Ho as g,Fn as h,Yn as i,ye as j,me as k,Vo as l,$o as m,j as n,$e as o,Pt as p,rs as q,Eo as r,Io as s,Bo as t,Ot as u,Jt as v,jo as w,Un as x,Gn as y,Do as z};
`,raw:"",frontmatter:Z,filepath:"/home/alex/notes/slides/fosdem2024.md",start:85,id:3,no:4},__clicksContext:null,__preloaded:!1}),J=E({layout:"quote",class:"text-center"}),Ti=E({layout:y(()=>J.layout),transition:y(()=>J.transition),class:y(()=>J.class),clicks:y(()=>J.clicks),name:y(()=>J.name),preload:y(()=>J.preload),slide:{index:4,content:"",note:"",title:"Thank you !",level:1,noteHTML:"",raw:"",frontmatter:J,filepath:"/home/alex/notes/slides/fosdem2024.md",start:121,id:4,no:5},__clicksContext:null,__preloaded:!1}),Ai=[{no:1,meta:wi,component:async()=>{try{return await V(()=>import("./slidev/1-CI6Q_juj.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),fe}}},{no:2,meta:xi,component:async()=>{try{return await V(()=>import("./slidev/2-CzELjp9q.js"),__vite__mapDeps([5,1,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),fe}}},{no:3,meta:Mi,component:async()=>{try{return await V(()=>import("./slidev/3-Czi4S_-j.js"),__vite__mapDeps([6,7,1,8,2,3,4,9]))}catch(t){return console.error("Failed to load slide 3:",t),fe}}},{no:4,meta:Si,component:async()=>{try{return await V(()=>import("./slidev/4-z1WBY7pk.js"),__vite__mapDeps([10,7,1,8,2,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),fe}}},{no:5,meta:Ti,component:async()=>{try{return await V(()=>import("./slidev/5-CcFbzPko.js"),__vite__mapDeps([11,1,2,3,4]))}catch(t){return console.error("Failed to load slide 5:",t),fe}}}],j=Wt(Ai);function ye(t){return j.value.find(e=>{var s;return e.no===+t||((s=e.meta.slide)==null?void 0:s.frontmatter.routeAlias)===t})}function $e(t,e){var n;(typeof t=="number"||typeof t=="string")&&(t=ye(t));const s=((n=t.meta.slide)==null?void 0:n.frontmatter.routeAlias)??t.no;return e?`/presenter/${s}`:`/${s}`}function Pi(t,e,{mode:s="replace"}={}){const n=He();return y({get(){const r=n.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){Ce(()=>{(n.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&n[lt(s)]({query:{...n.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const et=P(0);function ns(t,e=0,s){const n=new Map,r=Ps(new Map);return{get current(){return me(+t.value,e,this.total)},set current(i){t.value=me(+i,e,this.total)},clicksStart:e,relativeOffsets:n,map:r,onMounted(){},resolve(i,o=1){const[a,l]=gi(i);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+o-1,delta:l+o-1}}else return{start:l,end:l+o-1,delta:0}},register(i,o){n.set(i,o.delta),r.set(i,o)},unregister(i){n.delete(i),r.delete(i)},get currentOffset(){return et.value,zs(...n.values())},get total(){return et.value,s??Math.max(0,...[...r.values()].map(i=>i.max||0))}}}function Oi(t,e=0){var n,r;const s=((n=t==null?void 0:t.meta.slide)==null?void 0:n.frontmatter.clicksStart)??0;return ns(P(Math.max(e,s)),s,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const At=Os(),Be=Cs("slidev-color-schema","auto"),Pt=y(()=>T.colorSchema!=="auto"),rs=y({get(){return Pt.value?T.colorSchema==="dark":Be.value==="auto"?At.value:Be.value==="dark"},set(t){Pt.value||(Be.value=t===At.value?"auto":t?"dark":"light")}}),Bo=Es(rs);Ls&&oe(rs,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const Ci={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Ei(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let s=t.name.includes("|")?t.name:Ci[t.name]||t.name;if(s.includes("|")){const[n,r]=s.split("|").map(i=>i.trim());s=e?r:n}if(s)return{...t,name:s}}function Li(t,e,s){var r,i;let n=t>0?(r=s==null?void 0:s.meta)==null?void 0:r.transition:(i=e==null?void 0:e.meta)==null?void 0:i.transition;return n||(n=T.transition),Ei(n,t<0)}function is(t,e,s=1){var r,i,o,a,l,c,u,f,h;const n=(i=(r=e.meta)==null?void 0:r.slide)==null?void 0:i.level;n&&n>s&&t.length>0?is(t[t.length-1].children,e,s+1):t.push({no:e.no,children:[],level:s,path:$e(((a=(o=e.meta.slide)==null?void 0:o.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function os(t,e,s=!1,n,r){return t.map(i=>{const o={...i,active:i.no===(r==null?void 0:r.value),hasActiveParent:s};return o.children.length>0&&(o.children=os(o.children,e,o.active||o.hasActiveParent,o,r)),n&&(o.active||o.activeParent)&&(n.activeParent=!0),o})}function as(t,e=1){return t.filter(s=>!s.hideInToc).map(s=>({...s,children:as(s.children,e+1)}))}function Ii(t,e,s){const n=y(()=>t.value.filter(i=>{var o,a;return(a=(o=i.meta)==null?void 0:o.slide)==null?void 0:a.title}).reduce((i,o)=>(is(i,o),i),[])),r=y(()=>os(n.value,s.value,void 0,void 0,e));return y(()=>as(r.value))}function ls(t,e,s=P(0),n,r,i){const o=y(()=>j.value.length),a=P(0),l=P(0),c=y(()=>$e(t.value,n.value)),u=y(()=>t.value.no),f=y(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=y(()=>e.value.current),d=y(()=>e.value.clicksStart),p=y(()=>e.value.total),g=y(()=>j.value[Math.min(j.value.length,u.value+1)-1]),v=y(()=>j.value[Math.max(1,u.value-1)-1]),m=y(()=>u.value<j.value.length||h.value<p.value),_=y(()=>u.value>1||h.value>0),b=y(()=>Li(a.value,t.value,v.value));oe(t,(w,M)=>{a.value=w.no-M.no});async function x(w){return!1}const L=Ii(j,u,t);async function D(){l.value=1,p.value<=s.value?await W():s.value+=1}async function se(){l.value=-1,s.value<=d.value?await z():s.value-=1}async function W(){l.value=1,u.value<j.value.length&&await S(u.value+1)}async function z(w=!0){var q,R;l.value=-1;const M=Math.max(1,u.value-1);await S(M,w?r.value?void 0:((R=(q=ye(M))==null?void 0:q.meta.__clicksContext)==null?void 0:R.total)??Ie:void 0)}function _e(){return S(1)}function be(){return S(o.value)}async function S(w,M=0){var we,ae,gt;Jt.value=!1;const q=u.value!==w,R=M!==s.value,H=(we=ye(w))==null?void 0:we.meta,De=((ae=H==null?void 0:H.slide)==null?void 0:ae.frontmatter.clicksStart)??0;M=me(M,De,((gt=H==null?void 0:H.__clicksContext)==null?void 0:gt.total)??Ie),(q||R)&&await(i==null?void 0:i.push({path:$e(w,n.value),query:{...i.currentRoute.value.query,clicks:M===0?void 0:M.toString()}}))}return{slides:j,total:o,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:v,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:p,hasNext:m,hasPrev:_,tocTree:L,navDirection:a,openInEditor:x,next:D,prev:se,go:S,goLast:be,goFirst:_e,nextSlide:W,prevSlide:z}}function Uo(t,e){const s=async()=>{};return{...ls(y(()=>t),y(()=>e),P(Ie),P(!1),P(!1)),next:s,prev:s,nextSlide:s,prevSlide:s,goFirst:s,goLast:s,go:s}}const $i=zt(()=>{const t=He(),e=y(()=>t.currentRoute.value),s=y(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),n=y(()=>s.value.has("print")),r=y(()=>s.value.get("print")==="clicks"),i=y(()=>s.value.has("embedded")),o=y(()=>e.value.name==="play"),a=y(()=>e.value.name==="presenter"),l=y(()=>e.value.name==="notes"),c=y(()=>!a.value&&(!T.remote||s.value.get("password")===T.remote)),u=Is(o,a),f=y(()=>{var m;return u.value?((m=ye(e.value.params.no))==null?void 0:m.no)??1:1}),h=y(()=>j.value[f.value-1]),d=Pi("clicks","0"),p=y(()=>v(h.value)),g=y({get(){let m=+(d.value||0);return Number.isNaN(m)&&(m=0),m},set(m){d.value=m.toString()}});function v(m){var x,L;if((x=m==null?void 0:m.meta)!=null&&x.__clicksContext)return m.meta.__clicksContext;const _=m.no,b=ns(y({get(){return f.value===_?Math.max(+(d.value??0),b.clicksStart):f.value>_?Ie:b.clicksStart},set(D){f.value===_&&(d.value=me(D,b.clicksStart,b.total).toString())}}),((L=m==null?void 0:m.meta.slide)==null?void 0:L.frontmatter.clicksStart)??0,m==null?void 0:m.meta.clicks);return b.onMounted=()=>{f.value===_&&(d.value=me(+d.value,b.clicksStart,b.total).toString())},m!=null&&m.meta&&(m.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:n,isPrintWithClicks:r,isEmbedded:i,isPlaying:o,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:p,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:v}}),Ot=zt(()=>{const t=$i(),e=He(),s=ls(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return oe([s.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!ye(t.currentRoute.value.params.no)&&await s.goLast()},{flush:"pre",immediate:!0}),{...s,...t}}),Ni=[];function Ri(){const t=jt().appContext.app,e=E({nav:Ot(),configs:T,themeConfigs:y(()=>T.themeConfig)});t.provide(Gn,P("none")),t.provide(Yn,e),t.provide(Un,y(()=>e.nav.currentSlideNo)),t.provide(ut,Wt(Oi()));for(const f of Ni)f();const s=T.titleTemplate.replace("%s",T.title||"Slidev"),{clicksContext:n,currentSlideNo:r,hasPrimarySlide:i,isNotesViewer:o,isPresenter:a}=Ot();Fn({title:s,htmlAttrs:T.htmlAttrs}),Wn(`${s} - shared`),Bn(`${s} - drawings`);const l=`${location.origin}_${pi()}`;function c(){o.value||!a.value&&!Kn.includes(location.host.split(":")[0])||(a.value?(le("page",+r.value),le("clicks",n.value.current)):(le("viewerPage",+r.value),le("viewerClicks",n.value.current)),le("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=He();u.afterEach(c),oe(n,c),zn(f=>{var h;i.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+n.value.current!=+f.clicks)&&(Jt.value=!1,u.replace({path:$e(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const Fi=$s({__name:"App",setup(t){return Ri(),ie(()=>{for(const[e,s]of Object.entries(Ks.value))document.body.style.setProperty(e,s.toString())}),(e,s)=>{const n=Ns("RouterView");return Dt(),Rs(n)}}}),Hi=ss(Fi,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function cs(t,e,s){var n;return((n=t.instance)==null?void 0:n.$).provides[e]??s}function ji(){return{install(t){t.directive("click",{name:"v-click",mounted(e,s){const n=Pe(e,s,s.value);if(n==null)return;e.classList.toggle(Ae,!0);const r=Array.isArray(n.clicks)?n.clicks:[n.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ie(()=>{const i=n.isActive.value,o=n.isCurrent.value,a=i&&!o;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,i),e.classList.toggle(ze,i)):e.classList.toggle(n.flagFade?ue:ce,!i),e.classList.toggle(qe,o),e.classList.toggle(Ve,a)})},unmounted:Ye}),t.directive("after",{name:"v-after",mounted(e,s){const n=Pe(e,s,s.value,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r)):e.classList.toggle(n.flagFade?ue:ce,!r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye}),t.directive("click-hide",{name:"v-click-hide",mounted(e,s){const n=Pe(e,s,s.value,!1,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye})}}}function Ue(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function Di(t,e){return Array.isArray(t)?t[0]===e:t===e}function Pe(t,e,s,n=!1,r=!1){var f;const i=(f=cs(e,ut))==null?void 0:f.value;if(!t||!i||s===!1||s==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const o=e.modifiers.fade!==!1&&e.modifiers.fade!=null;n?s="+0":(s==null||s===!0||s==="true")&&(s="+1");let a,l,c;Array.isArray(s)?(a=0,l=s,c=+s[1]):{start:l,end:c,delta:a}=i.resolve(s);const u={max:c,clicks:l,delta:a,isActive:y(()=>Ue(l,i.current)),isCurrent:y(()=>Di(l,i.current)),isShown:y(()=>r?!Ue(l,i.current):Ue(l,i.current)),flagFade:o,flagHide:r};return i.register(t,u),u}function Ye(t,e){var n;t.classList.toggle(Ae,!1);const s=(n=cs(e,ut))==null?void 0:n.value;s==null||s.unregister(t)}function us(){return Math.floor(Math.random()*2**31)}class Wi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function tt(t,e,s){if(t&&t.length){const[n,r]=e,i=Math.PI/180*s,o=Math.cos(i),a=Math.sin(i);for(const l of t){const[c,u]=l;l[0]=(c-n)*o-(u-r)*a+n,l[1]=(c-n)*a+(u-r)*o+r}}}function zi(t,e,s){const n=[];t.forEach(r=>n.push(...r)),tt(n,e,s)}function qi(t,e){return t[0]===e[0]&&t[1]===e[1]}function Vi(t,e,s,n=1){const r=s,i=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of o)tt(c,a,r);const l=Bi(o,i,n);if(r){for(const c of o)tt(c,a,-r);zi(l,a,-r)}return l}function Bi(t,e,s){const n=[];for(const c of t){const u=[...c];qi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&n.push(u)}const r=[];e=Math.max(e,.1);const i=[];for(const c of n)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);i.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(i.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!i.length)return r;let o=[],a=i[0].ymin,l=0;for(;o.length||i.length;){if(i.length){let c=-1;for(let f=0;f<i.length&&!(i[f].ymin>a);f++)c=f;i.splice(0,c+1).forEach(f=>{o.push({s:a,edge:f})})}if(o=o.filter(c=>!(c.edge.ymax<=a)),o.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(s!==1||l%e===0)&&o.length>1)for(let c=0;c<o.length;c=c+2){const u=c+1;if(u>=o.length)break;const f=o[c].edge,h=o[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=s,o.forEach(c=>{c.edge.x=c.edge.x+s*c.edge.islope}),l++}return r}function ke(t,e){var s;const n=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return e.roughness>=1&&(((s=e.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(i=r),Vi(t,r,n,i||1)}class dt{constructor(e){this.helper=e}fillPolygons(e,s){return this._fillPolygons(e,s)}_fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.renderLines(n,s)}}renderLines(e,s){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],s));return n}}function je(t){const e=t[0],s=t[1];return Math.sqrt(Math.pow(e[0]-s[0],2)+Math.pow(e[1]-s[1],2))}class Ui extends dt{fillPolygons(e,s){let n=s.hachureGap;n<0&&(n=s.strokeWidth*4),n=Math.max(n,.1);const r=Object.assign({},s,{hachureGap:n}),i=ke(e,r),o=Math.PI/180*s.hachureAngle,a=[],l=n*.5*Math.cos(o),c=n*.5*Math.sin(o);for(const[f,h]of i)je([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,s)}}}class Yi extends dt{fillPolygons(e,s){const n=this._fillPolygons(e,s),r=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class Gi{constructor(e){this.helper=e}fillPolygons(e,s){s=Object.assign({},s,{hachureAngle:0});const n=ke(e,s);return this.dotsOnLines(n,s)}dotsOnLines(e,s){const n=[];let r=s.hachureGap;r<0&&(r=s.strokeWidth*4),r=Math.max(r,.1);let i=s.fillWeight;i<0&&(i=s.strokeWidth/2);const o=r/4;for(const a of e){const l=je(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<u;p++){const g=d+f+p*r,v=h-o+Math.random()*2*o,m=g-o+Math.random()*2*o,_=this.helper.ellipse(v,m,i,i,s);n.push(..._.ops)}}return{type:"fillSketch",ops:n}}}class Ki{constructor(e){this.helper=e}fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.dashedLine(n,s)}}dashedLine(e,s){const n=s.dashOffset<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashOffset,r=s.dashGap<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashGap,i=[];return e.forEach(o=>{const a=je(o),l=Math.floor(a/(n+r)),c=(a+r-l*(n+r))/2;let u=o[0],f=o[1];u[0]>f[0]&&(u=o[1],f=o[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const p=d*(n+r),g=p+n,v=[u[0]+p*Math.cos(h)+c*Math.cos(h),u[1]+p*Math.sin(h)+c*Math.sin(h)],m=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];i.push(...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],s))}}),i}}class Zi{constructor(e){this.helper=e}fillPolygons(e,s){const n=s.hachureGap<0?s.strokeWidth*4:s.hachureGap,r=s.zigzagOffset<0?n:s.zigzagOffset;s=Object.assign({},s,{hachureGap:n+r});const i=ke(e,s);return{type:"fillSketch",ops:this.zigzagLines(i,r,s)}}zigzagLines(e,s,n){const r=[];return e.forEach(i=>{const o=je(i),a=Math.round(o/(2*s));let l=i[0],c=i[1];l[0]>c[0]&&(l=i[1],c=i[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*s,d=(f+1)*2*s,p=Math.sqrt(2*Math.pow(s,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],v=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],n),...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}}),r}}const O={};function Ji(t,e){let s=t.fillStyle||"hachure";if(!O[s])switch(s){case"zigzag":O[s]||(O[s]=new Ui(e));break;case"cross-hatch":O[s]||(O[s]=new Yi(e));break;case"dots":O[s]||(O[s]=new Gi(e));break;case"dashed":O[s]||(O[s]=new Ki(e));break;case"zigzag-line":O[s]||(O[s]=new Zi(e));break;case"hachure":default:s="hachure",O[s]||(O[s]=new dt(e));break}return O[s]}const Qi=0,st=1,fs=2,xe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Qi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:st,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:fs,text:""},e}function Ge(t,e){return t.type===e}function pt(t){const e=[],s=Xi(t);let n="BOD",r=0,i=s[r];for(;!Ge(i,fs);){let o=0;const a=[];if(n==="BOD")if(i.text==="M"||i.text==="m")r++,o=xe[i.text],n=i.text;else return pt("M0,0"+t);else Ge(i,st)?o=xe[n]:(r++,o=xe[i.text],n=i.text);if(r+o<s.length){for(let l=r;l<r+o;l++){const c=s[l];if(Ge(c,st))a[a.length]=+c.text;else throw new Error("Param not a number: "+n+","+c.text)}if(typeof xe[n]=="number"){const l={key:n,data:a};e.push(l),r+=o,i=s[r],n==="M"&&(n="L"),n==="m"&&(n="l")}else throw new Error("Bad segment: "+n)}else throw new Error("Path data ended short")}return e}function hs(t){let e=0,s=0,n=0,r=0;const i=[];for(const{key:o,data:a}of t)switch(o){case"M":i.push({key:"M",data:[...a]}),[e,s]=a,[n,r]=a;break;case"m":e+=a[0],s+=a[1],i.push({key:"M",data:[e,s]}),n=e,r=s;break;case"L":i.push({key:"L",data:[...a]}),[e,s]=a;break;case"l":e+=a[0],s+=a[1],i.push({key:"L",data:[e,s]});break;case"C":i.push({key:"C",data:[...a]}),e=a[4],s=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"C",data:l}),e=l[4],s=l[5];break}case"Q":i.push({key:"Q",data:[...a]}),e=a[2],s=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"Q",data:l}),e=l[2],s=l[3];break}case"A":i.push({key:"A",data:[...a]}),e=a[5],s=a[6];break;case"a":e+=a[5],s+=a[6],i.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,s]});break;case"H":i.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...a]}),s=a[0];break;case"v":s+=a[0],i.push({key:"V",data:[s]});break;case"S":i.push({key:"S",data:[...a]}),e=a[2],s=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"S",data:l}),e=l[2],s=l[3];break}case"T":i.push({key:"T",data:[...a]}),e=a[0],s=a[1];break;case"t":e+=a[0],s+=a[1],i.push({key:"T",data:[e,s]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,s=r;break}return i}function ds(t){const e=[];let s="",n=0,r=0,i=0,o=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,r]=u,[i,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,r]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,r]});break;case"V":r=u[0],e.push({key:"L",data:[n,r]});break;case"S":{let f=0,h=0;s==="C"||s==="S"?(f=n+(n-a),h=r+(r-l)):(f=n,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],n=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,p=0;s==="Q"||s==="T"?(d=n+(n-a),p=r+(r-l)):(d=n,p=r);const g=n+2*(d-n)/3,v=r+2*(p-r)/3,m=f+2*(d-f)/3,_=h+2*(p-h)/3;e.push({key:"C",data:[g,v,m,_,f,h]}),a=d,l=p,n=f,r=h;break}case"Q":{const[f,h,d,p]=u,g=n+2*(f-n)/3,v=r+2*(h-r)/3,m=d+2*(f-d)/3,_=p+2*(h-p)/3;e.push({key:"C",data:[g,v,m,_,d,p]}),a=f,l=h,n=d,r=p;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],v=u[5],m=u[6];f===0||h===0?(e.push({key:"C",data:[n,r,v,m,v,m]}),n=v,r=m):(n!==v||r!==m)&&(ps(n,r,v,m,f,h,d,p,g).forEach(function(b){e.push({key:"C",data:b})}),n=v,r=m);break}case"Z":e.push({key:"Z",data:[]}),n=i,r=o;break}s=c}return e}function eo(t){return Math.PI*t/180}function he(t,e,s){const n=t*Math.cos(s)-e*Math.sin(s),r=t*Math.sin(s)+e*Math.cos(s);return[n,r]}function ps(t,e,s,n,r,i,o,a,l,c){const u=eo(o);let f=[],h=0,d=0,p=0,g=0;if(c)[h,d,p,g]=c;else{[t,e]=he(t,e,-u),[s,n]=he(s,n,-u);const S=(t-s)/2,w=(e-n)/2;let M=S*S/(r*r)+w*w/(i*i);M>1&&(M=Math.sqrt(M),r=M*r,i=M*i);const q=a===l?-1:1,R=r*r,H=i*i,De=R*H-R*w*w-H*S*S,we=R*w*w+H*S*S,ae=q*Math.sqrt(Math.abs(De/we));p=ae*r*w/i+(t+s)/2,g=ae*-i*S/r+(e+n)/2,h=Math.asin(parseFloat(((e-g)/i).toFixed(9))),d=Math.asin(parseFloat(((n-g)/i).toFixed(9))),t<p&&(h=Math.PI-h),s<p&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let v=d-h;if(Math.abs(v)>Math.PI*120/180){const S=d,w=s,M=n;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,s=p+r*Math.cos(d),n=g+i*Math.sin(d),f=ps(s,n,w,M,r,i,o,0,l,[d,S,p,g])}v=d-h;const m=Math.cos(h),_=Math.sin(h),b=Math.cos(d),x=Math.sin(d),L=Math.tan(v/4),D=4/3*r*L,se=4/3*i*L,W=[t,e],z=[t+D*_,e-se*m],_e=[s+D*x,n-se*b],be=[s,n];if(z[0]=2*W[0]-z[0],z[1]=2*W[1]-z[1],c)return[z,_e,be].concat(f);{f=[z,_e,be].concat(f);const S=[];for(let w=0;w<f.length;w+=3){const M=he(f[w][0],f[w][1],u),q=he(f[w+1][0],f[w+1][1],u),R=he(f[w+2][0],f[w+2][1],u);S.push([M[0],M[1],q[0],q[1],R[0],R[1]])}return S}}const to={randOffset:ro,randOffsetWithRange:io,ellipse:nt,doubleLineOps:oo};function $(t,e,s,n,r){return{type:"path",ops:U(t,e,s,n,r)}}function pe(t,e,s){const n=(t||[]).length;if(n>2){const r=[];for(let i=0;i<n-1;i++)r.push(...U(t[i][0],t[i][1],t[i+1][0],t[i+1][1],s));return e&&r.push(...U(t[n-1][0],t[n-1][1],t[0][0],t[0][1],s)),{type:"path",ops:r}}else if(n===2)return $(t[0][0],t[0][1],t[1][0],t[1][1],s);return{type:"path",ops:[]}}function so(t,e){return pe(t,!0,e)}function gs(t,e,s,n,r){const i=[[t,e],[t+s,e],[t+s,e+n],[t,e+n]];return so(i,r)}function Ct(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Me(n[0],1*(1+e.roughness*.2),e),i=e.disableMultiStroke?[]:Me(n[0],1.5*(1+e.roughness*.22),It(e));for(let o=1;o<n.length;o++){const a=n[o];if(a.length){const l=Me(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:Me(a,1.5*(1+e.roughness*.22),It(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&i.push(u)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function nt(t,e,s,n,r){const i=ms(s,n,r);return rt(t,e,r,i).opset}function ms(t,e,s){const n=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*n)),i=Math.PI*2/r;let o=Math.abs(t/2),a=Math.abs(e/2);const l=1-s.curveFitting;return o+=k(o*l,s),a+=k(a*l,s),{increment:i,rx:o,ry:a}}function rt(t,e,s,n){const[r,i]=$t(n.increment,t,e,n.rx,n.ry,1,n.increment*Ne(.1,Ne(.4,1,s),s),s);let o=Re(r,null,s);if(!s.disableMultiStroke&&s.roughness!==0){const[a]=$t(n.increment,t,e,n.rx,n.ry,1.5,0,s),l=Re(a,null,s);o=o.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function Et(t,e,s,n,r,i,o,a,l){const c=t,u=e;let f=Math.abs(s/2),h=Math.abs(n/2);f+=k(f*.01,l),h+=k(h*.01,l);let d=r,p=i;for(;d<0;)d+=Math.PI*2,p+=Math.PI*2;p-d>Math.PI*2&&(d=0,p=Math.PI*2);const g=Math.PI*2/l.curveStepCount,v=Math.min(g/2,(p-d)/2),m=Nt(v,c,u,f,h,d,p,1,l);if(!l.disableMultiStroke){const _=Nt(v,c,u,f,h,d,p,1.5,l);m.push(..._)}return o&&(a?m.push(...U(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...U(c,u,c+f*Math.cos(p),u+h*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:m}}function Lt(t,e){const s=ds(hs(pt(t))),n=[];let r=[0,0],i=[0,0];for(const{key:o,data:a}of s)switch(o){case"M":{i=[a[0],a[1]],r=[a[0],a[1]];break}case"L":n.push(...U(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;n.push(...ao(l,c,u,f,h,d,i,e)),i=[h,d];break}case"Z":n.push(...U(i[0],i[1],r[0],r[1],e)),i=[r[0],r[1]];break}return{type:"path",ops:n}}function Ke(t,e){const s=[];for(const n of t)if(n.length){const r=e.maxRandomnessOffset||0,i=n.length;if(i>2){s.push({op:"move",data:[n[0][0]+k(r,e),n[0][1]+k(r,e)]});for(let o=1;o<i;o++)s.push({op:"lineTo",data:[n[o][0]+k(r,e),n[o][1]+k(r,e)]})}}return{type:"fillPath",ops:s}}function re(t,e){return Ji(e,to).fillPolygons(t,e)}function no(t,e,s,n,r,i,o){const a=t,l=e;let c=Math.abs(s/2),u=Math.abs(n/2);c+=k(c*.01,o),u+=k(u*.01,o);let f=r,h=i;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/o.curveStepCount,p=[];for(let g=f;g<=h;g=g+d)p.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return p.push([a+c*Math.cos(h),l+u*Math.sin(h)]),p.push([a,l]),re([p],o)}function ro(t,e){return k(t,e)}function io(t,e,s){return Ne(t,e,s)}function oo(t,e,s,n,r){return U(t,e,s,n,r,!0)}function It(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function vs(t){return t.randomizer||(t.randomizer=new Wi(t.seed||0)),t.randomizer.next()}function Ne(t,e,s,n=1){return s.roughness*n*(vs(s)*(e-t)+t)}function k(t,e,s=1){return Ne(-t,t,e,s)}function U(t,e,s,n,r,i=!1){const o=i?r.disableMultiStrokeFill:r.disableMultiStroke,a=it(t,e,s,n,r,!0,!1);if(o)return a;const l=it(t,e,s,n,r,!0,!0);return a.concat(l)}function it(t,e,s,n,r,i,o){const a=Math.pow(t-s,2)+Math.pow(e-n,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+vs(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(n-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-s)/200;d=k(d,r,c),p=k(p,r,c);const g=[],v=()=>k(f,r,c),m=()=>k(u,r,c),_=r.preserveVertices;return i&&(o?g.push({op:"move",data:[t+(_?0:v()),e+(_?0:v())]}):g.push({op:"move",data:[t+(_?0:k(u,r,c)),e+(_?0:k(u,r,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(s-t)*h+v(),p+e+(n-e)*h+v(),d+t+2*(s-t)*h+v(),p+e+2*(n-e)*h+v(),s+(_?0:v()),n+(_?0:v())]}):g.push({op:"bcurveTo",data:[d+t+(s-t)*h+m(),p+e+(n-e)*h+m(),d+t+2*(s-t)*h+m(),p+e+2*(n-e)*h+m(),s+(_?0:m()),n+(_?0:m())]}),g}function Me(t,e,s){if(!t.length)return[];const n=[];n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]),n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]);for(let r=1;r<t.length;r++)n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]),r===t.length-1&&n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]);return Re(n,null,s)}function Re(t,e,s){const n=t.length,r=[];if(n>3){const i=[],o=1-s.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<n;a++){const l=t[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*t[a+1][0]-o*t[a-1][0])/6,l[1]+(o*t[a+1][1]-o*t[a-1][1])/6],i[2]=[t[a+1][0]+(o*t[a][0]-o*t[a+2][0])/6,t[a+1][1]+(o*t[a][1]-o*t[a+2][1])/6],i[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(e&&e.length===2){const a=s.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+k(a,s),e[1]+k(a,s)]})}}else n===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&r.push(...it(t[0][0],t[0][1],t[1][0],t[1][1],s,!0,!0));return r}function $t(t,e,s,n,r,i,o,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+n*Math.cos(-t),s+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+n*Math.cos(f),s+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+n*Math.cos(0),s+r*Math.sin(0)]),u.push([e+n*Math.cos(t),s+r*Math.sin(t)])}else{const f=k(.5,a)-Math.PI/2;u.push([k(i,a)+e+.9*n*Math.cos(f-t),k(i,a)+s+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const p=[k(i,a)+e+n*Math.cos(d),k(i,a)+s+r*Math.sin(d)];c.push(p),u.push(p)}u.push([k(i,a)+e+n*Math.cos(f+Math.PI*2+o*.5),k(i,a)+s+r*Math.sin(f+Math.PI*2+o*.5)]),u.push([k(i,a)+e+.98*n*Math.cos(f+o),k(i,a)+s+.98*r*Math.sin(f+o)]),u.push([k(i,a)+e+.9*n*Math.cos(f+o*.5),k(i,a)+s+.9*r*Math.sin(f+o*.5)])}return[u,c]}function Nt(t,e,s,n,r,i,o,a,l){const c=i+k(.1,l),u=[];u.push([k(a,l)+e+.9*n*Math.cos(c-t),k(a,l)+s+.9*r*Math.sin(c-t)]);for(let f=c;f<=o;f=f+t)u.push([k(a,l)+e+n*Math.cos(f),k(a,l)+s+r*Math.sin(f)]);return u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),Re(u,null,l)}function ao(t,e,s,n,r,i,o,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(h?0:k(c[0],a)),o[1]+(h?0:k(c[0],a))]}),u=h?[r,i]:[r+k(c[d],a),i+k(c[d],a)],l.push({op:"bcurveTo",data:[t+k(c[d],a),e+k(c[d],a),s+k(c[d],a),n+k(c[d],a),u[0],u[1]]});return l}function de(t){return[...t]}function Rt(t,e=0){const s=t.length;if(s<3)throw new Error("A curve must have at least three points.");const n=[];if(s===3)n.push(de(t[0]),de(t[1]),de(t[2]),de(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const i=[],o=1-e;n.push(de(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*r[a+1][0]-o*r[a-1][0])/6,l[1]+(o*r[a+1][1]-o*r[a-1][1])/6],i[2]=[r[a+1][0]+(o*r[a][0]-o*r[a+2][0])/6,r[a+1][1]+(o*r[a][1]-o*r[a+2][1])/6],i[3]=[r[a+1][0],r[a+1][1]],n.push(i[1],i[2],i[3])}}return n}function lo(t,e){return Math.sqrt(Oe(t,e))}function Oe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function co(t,e,s){const n=Oe(e,s);if(n===0)return Oe(t,e);let r=((t[0]-e[0])*(s[0]-e[0])+(t[1]-e[1])*(s[1]-e[1]))/n;return r=Math.max(0,Math.min(1,r)),Oe(t,Q(e,s,r))}function Q(t,e,s){return[t[0]+(e[0]-t[0])*s,t[1]+(e[1]-t[1])*s]}function uo(t,e){const s=t[e+0],n=t[e+1],r=t[e+2],i=t[e+3];let o=3*n[0]-2*s[0]-i[0];o*=o;let a=3*n[1]-2*s[1]-i[1];a*=a;let l=3*r[0]-2*i[0]-s[0];l*=l;let c=3*r[1]-2*i[1]-s[1];return c*=c,o<l&&(o=l),a<c&&(a=c),o+a}function ot(t,e,s,n){const r=n||[];if(uo(t,e)<s){const i=t[e+0];r.length?lo(r[r.length-1],i)>1&&r.push(i):r.push(i),r.push(t[e+3])}else{const o=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=Q(o,a,.5),f=Q(a,l,.5),h=Q(l,c,.5),d=Q(u,f,.5),p=Q(f,h,.5),g=Q(d,p,.5);ot([o,u,d,g],0,s,r),ot([g,p,h,c],0,s,r)}return r}function fo(t,e){return Fe(t,0,t.length,e)}function Fe(t,e,s,n,r){const i=r||[],o=t[e],a=t[s-1];let l=0,c=1;for(let u=e+1;u<s-1;++u){const f=co(t[u],o,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>n?(Fe(t,e,c+1,n,i),Fe(t,c,s,n,i)):(i.length||i.push(o),i.push(a)),i}function at(t,e=.15,s){const n=[],r=(t.length-1)/3;for(let i=0;i<r;i++){const o=i*3;ot(t,o,e,n)}return s&&s>0?Fe(n,0,n.length,s):n}function ho(t,e,s){const n=pt(t),r=ds(hs(n)),i=[];let o=[],a=[0,0],l=[];const c=()=>{l.length>=4&&o.push(...at(l,e)),l=[]},u=()=>{c(),o.length&&(i.push(o),o=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],o.push(a);break;case"L":c(),o.push([d[0],d[1]]);break;case"C":if(!l.length){const p=o.length?o[o.length-1]:a;l.push([p[0],p[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),o.push([a[0],a[1]]);break}if(u(),!s)return i;const f=[];for(const h of i){const d=fo(h,s);d.length&&f.push(d)}return f}const I="none";class po{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return us()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,s,n){return{shape:e,sets:s||[],options:n||this.defaultOptions}}line(e,s,n,r,i){const o=this._o(i);return this._d("line",[$(e,s,n,r,o)],o)}rectangle(e,s,n,r,i){const o=this._o(i),a=[],l=gs(e,s,n,r,o);if(o.fill){const c=[[e,s],[e+n,s],[e+n,s+r],[e,s+r]];o.fillStyle==="solid"?a.push(Ke([c],o)):a.push(re([c],o))}return o.stroke!==I&&a.push(l),this._d("rectangle",a,o)}ellipse(e,s,n,r,i){const o=this._o(i),a=[],l=ms(n,r,o),c=rt(e,s,o,l);if(o.fill)if(o.fillStyle==="solid"){const u=rt(e,s,o,l).opset;u.type="fillPath",a.push(u)}else a.push(re([c.estimatedPoints],o));return o.stroke!==I&&a.push(c.opset),this._d("ellipse",a,o)}circle(e,s,n,r){const i=this.ellipse(e,s,n,n,r);return i.shape="circle",i}linearPath(e,s){const n=this._o(s);return this._d("linearPath",[pe(e,!1,n)],n)}arc(e,s,n,r,i,o,a=!1,l){const c=this._o(l),u=[],f=Et(e,s,n,r,i,o,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Et(e,s,n,r,i,o,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(no(e,s,n,r,i,o,c));return c.stroke!==I&&u.push(f),this._d("arc",u,c)}curve(e,s){const n=this._o(s),r=[],i=Ct(e,n);if(n.fill&&n.fill!==I)if(n.fillStyle==="solid"){const o=Ct(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?o.push(...u):u.length===3?o.push(...at(Rt([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):o.push(...at(Rt(u),10,(1+n.roughness)/2))}o.length&&r.push(re([o],n))}return n.stroke!==I&&r.push(i),this._d("curve",r,n)}polygon(e,s){const n=this._o(s),r=[],i=pe(e,!0,n);return n.fill&&(n.fillStyle==="solid"?r.push(Ke([e],n)):r.push(re([e],n))),n.stroke!==I&&r.push(i),this._d("polygon",r,n)}path(e,s){const n=this._o(s),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==I,o=n.stroke!==I,a=!!(n.simplification&&n.simplification<1),l=a?4-4*(n.simplification||1):(1+n.roughness)/2,c=ho(e,1,l),u=Lt(e,n);if(i)if(n.fillStyle==="solid")if(c.length===1){const f=Lt(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(Ke(c,n));else r.push(re(c,n));return o&&(a?c.forEach(f=>{r.push(pe(f,!1,n))}):r.push(u)),this._d("path",r,n)}opsToPath(e,s){let n="";for(const r of e.ops){const i=typeof s=="number"&&s>=0?r.data.map(o=>+o.toFixed(s)):r.data;switch(r.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}return n.trim()}toPaths(e){const s=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const i of s){let o=null;switch(i.type){case"path":o={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:I};break;case"fillPath":o={d:this.opsToPath(i),stroke:I,strokeWidth:0,fill:n.fill||I};break;case"fillSketch":o=this.fillSketch(i,n);break}o&&r.push(o)}return r}fillSketch(e,s){let n=s.fillWeight;return n<0&&(n=s.strokeWidth/2),{d:this.opsToPath(e),stroke:s.fill||I,strokeWidth:n,fill:I}}_mergedShape(e){return e.filter((s,n)=>n===0?!0:s.op!=="move")}}const ys="http://www.w3.org/2000/svg",go=800;let Ze=null;function mo(){return Ze||(Ze=new po().defaultOptions),Ze}function Je(t,e,s){return{...mo(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...s}}function vo(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const s=e;if(s.length)switch(s.length){case 4:return[...s];case 1:return[s[0],s[0],s[0],s[0]];case 2:return[...s,...s];case 3:return[...s,s[1]];default:return[s[0],s[1],s[2],s[3]]}}}return[5,5,5,5]}function yo(t,e,s,n,r,i){const o=[];let a=s.strokeWidth||2;const l=vo(s),c=s.animate===void 0?!0:!!s.animate,u=s.iterations||2,f=s.rtl?1:0,h=Je("single",i,s);switch(s.type){case"underline":{const d=e.y+e.h+l[2];for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],p=e.y-l[0],g=e.w+(l[1]+l[3]),v=e.h+(l[0]+l[2]);for(let m=0;m<u;m++)o.push(gs(d,p,g,v,h));break}case"bracket":{const d=Array.isArray(s.brackets)?s.brackets:s.brackets?[s.brackets]:["right"],p=e.x-l[3]*2,g=e.x+e.w+l[1]*2,v=e.y-l[0]*2,m=e.y+e.h+l[2]*2;for(const _ of d){let b;switch(_){case"bottom":b=[[p,e.y+e.h],[p,m],[g,m],[g,e.y+e.h]];break;case"top":b=[[p,e.y],[p,v],[g,v],[g,e.y]];break;case"left":b=[[e.x,v],[p,v],[p,m],[e.x,m]];break;case"right":b=[[e.x+e.w,v],[g,v],[g,m],[e.x+e.w,m]];break}b&&o.push(pe(b,!1,h))}break}case"crossed-off":{const d=e.x,p=e.y,g=d+e.w,v=p+e.h;for(let m=f;m<u+f;m++)m%2?o.push($(g,v,d,p,h)):o.push($(d,p,g,v,h));for(let m=f;m<u+f;m++)m%2?o.push($(d,v,g,p,h)):o.push($(g,p,d,v,h));break}case"circle":{const d=Je("double",i,s),p=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),v=e.x-l[3]+p/2,m=e.y-l[0]+g/2,_=Math.floor(u/2),b=u-_*2;for(let x=0;x<_;x++)o.push(nt(v,m,p,g,d));for(let x=0;x<b;x++)o.push(nt(v,m,p,g,h));break}case"highlight":{const d=Je("highlight",i,s);a=e.h*.95;const p=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?o.push($(e.x+e.w,p,e.x,p,d)):o.push($(e.x,p,e.x+e.w,p,d));break}}if(o.length){const d=ko(o),p=[],g=[];let v=0;const m=(_,b,x)=>_.setAttribute(b,x);for(const _ of d){const b=document.createElementNS(ys,"path");if(m(b,"d",_),m(b,"fill","none"),m(b,"stroke",s.color||"currentColor"),m(b,"stroke-width",`${a}`),s.opacity!==void 0&&m(b,"style",`opacity:${s.opacity}`),c){const x=b.getTotalLength();p.push(x),v+=x}t.appendChild(b),g.push(b)}if(c){let _=0;for(let b=0;b<g.length;b++){const x=g[b],L=p[b],D=v?r*(L/v):0,se=n+_,W=x.style;W.strokeDashoffset=`${L}`,W.strokeDasharray=`${L}`,W.animation=`rough-notation-dash ${D}ms ease-out ${se}ms forwards`,_+=D}return Ft(r+n)}}return Ft(0)}function Ft(t){return new Promise(e=>setTimeout(e,t))}function ko(t){const e=[];for(const s of t){let n="";for(const r of s.ops){const i=r.data;switch(r.op){case"move":n.trim()&&e.push(n.trim()),n=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}n.trim()&&e.push(n.trim())}return e}function _o(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var bo=Object.defineProperty,wo=(t,e,s)=>e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,F=(t,e,s)=>(wo(t,typeof e!="symbol"?e+"":e,s),s);class xo{constructor(e,s){F(this,"_state","unattached"),F(this,"_config"),F(this,"_resizing",!1),F(this,"_ro"),F(this,"_seed",us()),F(this,"_e"),F(this,"_svg"),F(this,"_lastSizes",[]),F(this,"_animationDelay",0),F(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),F(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(s)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,s){this._config[e]!==s&&(this._config[e]=s,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){_o();const e=this._svg=document.createElementNS(ys,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const n=this._config.type==="highlight";if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",e),this._state="not-showing",n){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const s of e)s.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let s=0;s<e.length;s++)if(!this.isSameRect(e[s],this._lastSizes[s]))return!0}else return!0}return!1}isSameRect(e,s){const n=(r,i)=>Math.round(r)===Math.round(i);return n(e.x,s.x)&&n(e.y,s.y)&&n(e.w,s.w)&&n(e.h,s.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,s){let n=this._config;s&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);const r=this.rects();let i=0;r.forEach(c=>i+=c.w);const o=n.animationDuration||go;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=o*(u.w/i);l.push(yo(e,r[c],n,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const s=this._e.getClientRects();for(let n=0;n<s.length;n++)e.push(this.svgRect(this._svg,s[n]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,s){const n=e.getBoundingClientRect(),r=s;return{x:(r.x||r.left)-(n.x||n.left),y:(r.y||r.top)-(n.y||n.top),w:r.width,h:r.height}}}function Mo(t,e){return new xo(t,e)}function C(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Ht={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>C(t,"text-black"),blue:t=>C(t,"text-blue"),cyan:t=>C(t,"text-cyan"),gray:t=>C(t,"text-gray"),green:t=>C(t,"text-green"),indigo:t=>C(t,"text-indigo"),lime:t=>C(t,"text-lime"),orange:t=>C(t,"text-orange"),pink:t=>C(t,"text-pink"),purple:t=>C(t,"text-purple"),red:t=>C(t,"text-red"),teal:t=>C(t,"text-teal"),white:t=>C(t,"text-white"),yellow:t=>C(t,"text-yellow")},So=[[/^delay-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||300;return e.delay=n,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||100;return e.opacity=n/100,e}]];function To(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,s)=>{const n=y(()=>{const o=typeof s.value=="object"&&!Array.isArray(s.value)?{...s.value}:{at:s.value};let a={at:o.at};const l=Object.entries(s.modifiers).filter(([u,f])=>{if(Ht[u])return a=Ht[u](a,f),!1;for(const[h,d]of So){const p=u.match(h);if(p)return a=d(p,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...o};return c.type||(c.type="underline"),c}),r=Mo(e,n.value),i=Pe(e,s,n.value.at);if(!i){r.show();return}ie(()=>{let o;n.value.class&&(r.class=n.value.class),n.value.color&&(r.color=n.value.color);const a=n.value.at;a===!0?o=!0:a===!1?o=!1:o=i.isActive.value,o!=null&&(o?r.show():r.hide())})}})}}}const ge=[{name:"print",path:"/print",component:()=>V(()=>import("./slidev/print-wLGmAf5J.js"),__vite__mapDeps([12,1,3,4,13,14,15,16]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!T.remote||T.remote===e.query.password)return!0;if(T.remote&&e.query.password===void 0){const s=prompt("Enter password");if(T.remote===s)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};ge.push({path:"/presenter/print",component:()=>V(()=>import("./slidev/print-pZnoOJFd.js"),__vite__mapDeps([17,1,18,19,3,4]))}),ge.push({name:"presenter",path:"/presenter/:no",component:()=>V(()=>import("./slidev/presenter-ALS5RmN6.js"),__vite__mapDeps([20,21,1,22,23,13,14,2,3,4,24,18,19,25,26,27])),beforeEnter:t}),ge.push({path:"/presenter",redirect:{path:"/presenter/1"}})}ge.push({name:"play",path:"/:no",component:()=>V(()=>import("./slidev/play-Bgg--Xr0.js"),__vite__mapDeps([28,1,13,14,22,23,21,2,3,4,24,15,29]))});const Ao=[];async function Po(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const s=Fs({history:Hs("/slides/fosdem2024/"),routes:ge});t.use(s),t.use(Nn()),t.use(ji()),t.use(To()),t.use(js),t.use(Ws,{container:"#twoslash-container"});const n={app:t,router:s};Ce(()=>{s.afterEach(async()=>{await Ce(),et.value+=1})});for(const r of Ao)await r(n)}const ks=Ds(Hi);Po(ks);ks.mount("#app");export{ut as A,zo as B,Ie as C,Y as D,G as E,K as F,Z as G,Lo as H,pi as I,J,Wo as K,qo as L,Zn as M,Fo as N,Ro as O,No as P,V as _,Gs as a,ss as b,T as c,Oi as d,Uo as e,Ys as f,Ho as g,Fn as h,Yn as i,ye as j,me as k,Vo as l,$o as m,j as n,$e as o,Pt as p,rs as q,Eo as r,Io as s,Bo as t,Ot as u,Jt as v,jo as w,Un as x,Gn as y,Do as z};
import{at as E,au as x,av as B,a9 as Ze,aq as M,B as re,ah as Te,aw as Je,ax as Qe,ay as Xe,az as We,aA as ze,aB as Ve,an as ke,ai as y,aC as ve,af as Ee,aD as te,am as $e,aE as en,aF as I,aG as q,aH as nn,aI as rn,aJ as L,ao as tn,ap as sn,aK as C,aL as an,aM as G,ab as J,aN as un,aO as Oe,aj as me,aP as fn,aQ as on,ac as hn,aR as ie}from"./slidev/Mermaid-D0r0_ggr.js";var ln="[object Symbol]";function Q(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=E?E.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(Q(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Je(e):Qe(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function X(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Q(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function En(e){var n=Xe(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var $n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=En(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace($n,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:X(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||Q(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function W(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=E?E.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):W(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,J(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)W(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:W(t,r(e))}function Z(e){return De(e,T,z)}function jn(e){return De(e,J,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zn=/\w*$/;function Jn(e){var n=new e.constructor(e.source,Zn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=E?E.prototype:void 0,he=oe?oe.valueOf:void 0;function Qn(e){return he?Object(he.call(e)):{}}var Xn="[object Boolean]",Wn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Xn:case Wn:return new t(+e);case ir:return qn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Jn(e);case er:return new t;case rr:return Qn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const Er=vr;var $r=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",qr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",Jr="[object Uint16Array]",Qr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[qr]=l[Zr]=l[Jr]=l[Qr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&$r,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!$e(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(q(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),Er(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:Z:f?J:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Xr="__lodash_hash_undefined__";function Wr(e){return this.__data__.set(e,Xr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Wr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,$){if(!Ue(A,$)&&(p===_||i(p,_,r,t,s)))return A.push($)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=E?E.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=Z(e),f=u.length,d=Z(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],$=n[h];if(t)var ne=a?t($,_,h,n,e,s):t(_,$,h,e,n,s);if(!(ne===void 0?_===$||i(_,$,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function Et(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&q(e)){if(!q(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:Et(e,n,r,t,k,i)}var $t=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,$t|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!$e(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return X(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return X(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?Ee:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:Ee}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function qt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:qt(e,T(e))}function w(e){return e===void 0}function Zt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Jt(e,n,r){var t=y(e)?Sn:Zt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Qt=1/0,Xt=B&&1/V(new B([,-0]))[1]==Qt?function(e){return new B(e)}:dn;const Wt=Xt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Wt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=Ze(function(e){return Vt(Se(e,1,We,!0))});const ei=kt;var ni="\0",m="\0",be="";class qe{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}qe.prototype._nodeCount=0;qe.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{qe as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,Q as o,U as p,T as q,Jt as r,cn as s,Pn as t,H as v};
import{at as E,au as x,av as B,a9 as Ze,aq as M,B as re,ah as Te,aw as Je,ax as Qe,ay as Xe,az as We,aA as ze,aB as Ve,an as ke,ai as y,aC as ve,af as Ee,aD as te,am as $e,aE as en,aF as I,aG as q,aH as nn,aI as rn,aJ as L,ao as tn,ap as sn,aK as C,aL as an,aM as G,ab as J,aN as un,aO as Oe,aj as me,aP as fn,aQ as on,ac as hn,aR as ie}from"./slidev/Mermaid-BK6vYFFb.js";var ln="[object Symbol]";function Q(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=E?E.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(Q(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Je(e):Qe(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function X(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Q(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function En(e){var n=Xe(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var $n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=En(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace($n,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:X(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||Q(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function W(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=E?E.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):W(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,J(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)W(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:W(t,r(e))}function Z(e){return De(e,T,z)}function jn(e){return De(e,J,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zn=/\w*$/;function Jn(e){var n=new e.constructor(e.source,Zn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=E?E.prototype:void 0,he=oe?oe.valueOf:void 0;function Qn(e){return he?Object(he.call(e)):{}}var Xn="[object Boolean]",Wn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Xn:case Wn:return new t(+e);case ir:return qn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Jn(e);case er:return new t;case rr:return Qn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const Er=vr;var $r=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",qr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",Jr="[object Uint16Array]",Qr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[qr]=l[Zr]=l[Jr]=l[Qr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&$r,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!$e(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(q(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),Er(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:Z:f?J:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Xr="__lodash_hash_undefined__";function Wr(e){return this.__data__.set(e,Xr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Wr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,$){if(!Ue(A,$)&&(p===_||i(p,_,r,t,s)))return A.push($)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=E?E.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=Z(e),f=u.length,d=Z(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],$=n[h];if(t)var ne=a?t($,_,h,n,e,s):t(_,$,h,e,n,s);if(!(ne===void 0?_===$||i(_,$,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function Et(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&q(e)){if(!q(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:Et(e,n,r,t,k,i)}var $t=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,$t|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!$e(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return X(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return X(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?Ee:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:Ee}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function qt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:qt(e,T(e))}function w(e){return e===void 0}function Zt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Jt(e,n,r){var t=y(e)?Sn:Zt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Qt=1/0,Xt=B&&1/V(new B([,-0]))[1]==Qt?function(e){return new B(e)}:dn;const Wt=Xt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Wt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=Ze(function(e){return Vt(Se(e,1,We,!0))});const ei=kt;var ni="\0",m="\0",be="";class qe{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}qe.prototype._nodeCount=0;qe.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{qe as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,Q as o,U as p,T as q,Jt as r,cn as s,Pn as t,H as v};
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/Mermaid-COGy-la-.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/Mermaid-BK6vYFFb.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
import{J as Be,K as Ze,R as Xe,L as qe,M as ye,N as nt,O as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,P as Fn,E as Ln,m as En,l as qt,h as zt,i as An,j as In,v as Wn,Q as Kt,T as On}from"./slidev/Mermaid-D0r0_ggr.js";import{l as Hn,c as Nn,a as Vn,b as Pn,t as Ue}from"./linear-d94cf28d-Dfl-jUvU.js";import{i as zn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=Pn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:Pr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:zr,M:Rr,p:_,q:G,Q:Ve,s:Pe,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:P,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:Pe,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function P(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return z(t.getDate(),e,2)}function Hr(t,e){return z(t.getHours(),e,2)}function Nr(t,e){return z(t.getHours()%12||12,e,2)}function Vr(t,e){return z(1+yt.count(mt(t),t),e,3)}function cn(t,e){return z(t.getMilliseconds(),e,3)}function Pr(t,e){return cn(t,e)+"000"}function zr(t,e){return z(t.getMonth()+1,e,2)}function Rr(t,e){return z(t.getMinutes(),e,2)}function Br(t,e){return z(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return z(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),z(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return z(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return z(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),z(t.getFullYear()%100,e,2)}function $r(t,e){return z(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),z(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function He(t,e){return z(t.getUTCDate(),e,2)}function ei(t,e){return z(t.getUTCHours(),e,2)}function ni(t,e){return z(t.getUTCHours()%12||12,e,2)}function ri(t,e){return z(1+Te.count(pt(t),t),e,3)}function un(t,e){return z(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return z(t.getUTCMonth()+1,e,2)}function ai(t,e){return z(t.getUTCMinutes(),e,2)}function oi(t,e){return z(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return z(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),z(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return z(jt.count(pt(t)-1,t),e,2)}function di(t,e){return z(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),z(t.getUTCFullYear()%100,e,2)}function gi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function Pe(t){return Math.floor(+t/1e3)}var xt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return zn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),P={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(P.yy[st]=this.yy[st]);I.setInput(o,P.yy),P.yy.lexer=I,P.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";Pt=[];for(J in X[l])this.terminals_[J]&&J>G&&Pt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
import{J as Be,K as Ze,R as Xe,L as qe,M as ye,N as nt,O as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,P as Fn,E as Ln,m as En,l as qt,h as zt,i as An,j as In,v as Wn,Q as Kt,T as On}from"./slidev/Mermaid-BK6vYFFb.js";import{l as Hn,c as Nn,a as Vn,b as Pn,t as Ue}from"./linear-d94cf28d-CG9g9-Er.js";import{i as zn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=Pn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:Pr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:zr,M:Rr,p:_,q:G,Q:Ve,s:Pe,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:P,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:Pe,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function P(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return z(t.getDate(),e,2)}function Hr(t,e){return z(t.getHours(),e,2)}function Nr(t,e){return z(t.getHours()%12||12,e,2)}function Vr(t,e){return z(1+yt.count(mt(t),t),e,3)}function cn(t,e){return z(t.getMilliseconds(),e,3)}function Pr(t,e){return cn(t,e)+"000"}function zr(t,e){return z(t.getMonth()+1,e,2)}function Rr(t,e){return z(t.getMinutes(),e,2)}function Br(t,e){return z(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return z(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),z(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return z(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return z(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),z(t.getFullYear()%100,e,2)}function $r(t,e){return z(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),z(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function He(t,e){return z(t.getUTCDate(),e,2)}function ei(t,e){return z(t.getUTCHours(),e,2)}function ni(t,e){return z(t.getUTCHours()%12||12,e,2)}function ri(t,e){return z(1+Te.count(pt(t),t),e,3)}function un(t,e){return z(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return z(t.getUTCMonth()+1,e,2)}function ai(t,e){return z(t.getUTCMinutes(),e,2)}function oi(t,e){return z(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return z(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),z(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return z(jt.count(pt(t)-1,t),e,2)}function di(t,e){return z(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),z(t.getUTCFullYear()%100,e,2)}function gi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function Pe(t){return Math.floor(+t/1e3)}var xt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return zn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),P={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(P.yy[st]=this.yy[st]);I.setInput(o,P.yy),P.yy.lexer=I,P.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";Pt=[];for(J in X[l])this.terminals_[J]&&J>G&&Pt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
import{d as xDe,p as RDe}from"./flowDb-147da10a-D1NRua4U.js";import{M as Dse,O as KDe,l as Ba,h as OA,$ as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/Mermaid-D0r0_ggr.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-Bgkdu3Bw.js";import{l as XDe}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-B0dX0IeG.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
import{d as xDe,p as RDe}from"./flowDb-147da10a-clI92EYU.js";import{M as Dse,O as KDe,l as Ba,h as OA,$ as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/Mermaid-BK6vYFFb.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-BMNQBDYv.js";import{l as XDe}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DMiA32T3.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
import{p as e,f as o}from"./flowDb-147da10a-clI92EYU.js";import{f as t,a}from"./styles-c171666c-BU23Wltq.js";import{u as i}from"./slidev/Mermaid-BK6vYFFb.js";import"./graph-af3d5df6-CpzLvc9u.js";import"./index-c8395ba2-zsT_SlMY.js";import"./layout-6685625a-shznRzcW.js";import"./clone-d2e37f8c-CHMHSaUq.js";import"./edges-1e1ebc73-BMNQBDYv.js";import"./createText-f6615236-DMiA32T3.js";import"./line-65d70945-R41ce_xR.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-CX7CKzfx.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram};
import{p as Lt,f as V}from"./flowDb-147da10a-D1NRua4U.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-BS2fJ_rm.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/Mermaid-D0r0_ggr.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-COnxZM2s.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-DVu2lf3q.js";import{l as Dt}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./index-c8395ba2-JxgMKpMl.js";import"./clone-d2e37f8c-Cf5luijK.js";import"./edges-1e1ebc73-Bgkdu3Bw.js";import"./createText-f6615236-B0dX0IeG.js";import"./channel-d3ac35ac-yXma448J.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
import{p as Lt,f as V}from"./flowDb-147da10a-clI92EYU.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-CpzLvc9u.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/Mermaid-BK6vYFFb.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-shznRzcW.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-BU23Wltq.js";import{l as Dt}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./index-c8395ba2-zsT_SlMY.js";import"./clone-d2e37f8c-CHMHSaUq.js";import"./edges-1e1ebc73-BMNQBDYv.js";import"./createText-f6615236-DMiA32T3.js";import"./channel-d3ac35ac-CX7CKzfx.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
import{c as et,as as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/Mermaid-D0r0_ggr.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
import{c as et,as as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/Mermaid-BK6vYFFb.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/Mermaid-COGy-la-.js";import{G as Mt}from"./graph-af3d5df6-G4pt95e-.js";import{l as St}from"./layout-6685625a-Cy4EINjB.js";import{l as wt}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/Mermaid-BK6vYFFb.js";import{G as Mt}from"./graph-af3d5df6-CpzLvc9u.js";import{l as St}from"./layout-6685625a-shznRzcW.js";import{l as wt}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
import{o as H,c as b,d as q,aU as Q,h as E,l as g,v as j,F as lt}from"./slidev/Mermaid-D0r0_ggr.js";import{a as st}from"./createText-f6615236-B0dX0IeG.js";import{l as ct}from"./line-65d70945-B8zvfP93.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
import{o as H,c as b,d as q,aU as Q,h as E,l as g,v as j,F as lt}from"./slidev/Mermaid-BK6vYFFb.js";import{a as st}from"./createText-f6615236-DMiA32T3.js";import{l as ct}from"./line-65d70945-R41ce_xR.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
import{l as At,aU as zt,aV as It}from"./slidev/Mermaid-D0r0_ggr.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
import{l as At,aU as zt,aV as It}from"./slidev/Mermaid-BK6vYFFb.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
import{p as M,d as _,s as R}from"./styles-d48462a7-DZ_OM2oG.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/Mermaid-D0r0_ggr.js";import{G as q}from"./graph-af3d5df6-BS2fJ_rm.js";import{r as z}from"./index-c8395ba2-JxgMKpMl.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-COnxZM2s.js";import"./clone-d2e37f8c-Cf5luijK.js";import"./edges-1e1ebc73-Bgkdu3Bw.js";import"./createText-f6615236-B0dX0IeG.js";import"./line-65d70945-B8zvfP93.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
import{p as M,d as _,s as R}from"./styles-d48462a7-w69QL5dg.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/Mermaid-BK6vYFFb.js";import{G as q}from"./graph-af3d5df6-CpzLvc9u.js";import{r as z}from"./index-c8395ba2-zsT_SlMY.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-shznRzcW.js";import"./clone-d2e37f8c-CHMHSaUq.js";import"./edges-1e1ebc73-BMNQBDYv.js";import"./createText-f6615236-DMiA32T3.js";import"./line-65d70945-R41ce_xR.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
import{p as G,d as v,s as A}from"./styles-d48462a7-DZ_OM2oG.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/Mermaid-D0r0_ggr.js";import{G as O}from"./graph-af3d5df6-BS2fJ_rm.js";import{l as P}from"./layout-6685625a-COnxZM2s.js";import{l as X}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
import{p as G,d as v,s as A}from"./styles-d48462a7-w69QL5dg.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/Mermaid-BK6vYFFb.js";import{G as O}from"./graph-af3d5df6-CpzLvc9u.js";import{l as P}from"./layout-6685625a-shznRzcW.js";import{l as X}from"./line-65d70945-R41ce_xR.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/Mermaid-D0r0_ggr.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-BJlLlfGv.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/Mermaid-BK6vYFFb.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-DY3yFwjd.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
import{c as _e,$ as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/Mermaid-D0r0_ggr.js";import{c as ve}from"./clone-d2e37f8c-Cf5luijK.js";import{c as Ne}from"./channel-d3ac35ac-yXma448J.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-Bgkdu3Bw.js";import{G as Ce}from"./graph-af3d5df6-BS2fJ_rm.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-B0dX0IeG.js";import"./line-65d70945-B8zvfP93.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
import{c as _e,$ as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/Mermaid-BK6vYFFb.js";import{c as ve}from"./clone-d2e37f8c-CHMHSaUq.js";import{c as Ne}from"./channel-d3ac35ac-CX7CKzfx.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-BMNQBDYv.js";import{G as Ce}from"./graph-af3d5df6-CpzLvc9u.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-CSZldN_k.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DMiA32T3.js";import"./line-65d70945-R41ce_xR.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
import{w as ln,c as S}from"./path-39bad7e2-CbwjOpE9.js";import{aW as an,aX as j,aY as w,aZ as rn,a_ as y,Y as on,a$ as C,b0 as _,b1 as un,b2 as t,b3 as sn,b4 as tn,b5 as fn}from"./slidev/Mermaid-D0r0_ggr.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,q,Y,v,A,W,a){var D=q-l,i=Y-h,n=W-v,m=a-A,r=m*D-n*i;if(!(r*r<y))return r=(n*(h-A)-m*(l-v))/r,[l+r*D,h+r*i]}function L(l,h,q,Y,v,A,W){var a=l-q,D=h-Y,i=(W?A:-A)/C(a*a+D*D),n=i*D,m=-i*a,r=l+n,s=h+m,f=q+n,c=Y+m,X=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,R=p*p+g*g,T=v-A,b=r*c-f*s,E=(g<0?-1:1)*C(fn(0,T*T*R-b*b)),I=(b*g-p*E)/R,O=(-b*p-g*E)/R,P=(b*g+p*E)/R,d=(-b*p+g*E)/R,x=I-X,e=O-o,u=P-X,Z=d-o;return x*x+e*e>u*u+Z*Z&&(I=P,O=d),{cx:I,cy:O,x01:-n,y01:-m,x11:I*(v/T-1),y11:O*(v/T-1)}}function vn(){var l=cn,h=yn,q=S(0),Y=null,v=gn,A=mn,W=pn,a=null,D=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,X=un(c-f),o=c>f;if(a||(a=n=D()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(X>on-y)a.moveTo(s*j(f),s*w(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*j(c),r*w(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,R=f,T=c,b=X,E=X,I=W.apply(this,arguments)/2,O=I>y&&(Y?+Y.apply(this,arguments):C(r*r+s*s)),P=_(un(s-r)/2,+q.apply(this,arguments)),d=P,x=P,e,u;if(O>y){var Z=sn(O/r*w(I)),F=sn(O/s*w(I));(b-=Z*2)>y?(Z*=o?1:-1,R+=Z,T-=Z):(b=0,R=T=(f+c)/2),(E-=F*2)>y?(F*=o?1:-1,p+=F,g-=F):(E=0,p=g=(f+c)/2)}var z=s*j(p),B=s*w(p),G=r*j(T),H=r*w(T);if(P>y){var J=s*j(g),K=s*w(g),M=r*j(R),N=r*w(R),$;if(X<an)if($=dn(z,B,M,N,J,K,G,H)){var Q=z-$[0],U=B-$[1],V=J-$[0],k=K-$[1],nn=1/w(tn((Q*V+U*k)/(C(Q*Q+U*U)*C(V*V+k*k)))/2),en=C($[0]*$[0]+$[1]*$[1]);d=_(P,(r-en)/(nn-1)),x=_(P,(s-en)/(nn+1))}else d=x=0}E>y?x>y?(e=L(M,N,z,B,s,x,o),u=L(J,K,G,H,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<P?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo(z,B),a.arc(0,0,s,p,g,!o)):a.moveTo(z,B),!(r>y)||!(b>y)?a.lineTo(G,H):d>y?(e=L(G,H,J,K,r,-d,o),u=L(z,B,M,N,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<P?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,R,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[j(m)*n,w(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:S(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:S(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:S(+n),i):q},i.padRadius=function(n){return arguments.length?(Y=n==null?null:typeof n=="function"?n:S(+n),i):Y},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:S(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:S(+n),i):A},i.padAngle=function(n){return arguments.length?(W=typeof n=="function"?n:S(+n),i):W},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
import{w as ln,c as S}from"./path-39bad7e2-CbwjOpE9.js";import{aW as an,aX as j,aY as w,aZ as rn,a_ as y,Y as on,a$ as C,b0 as _,b1 as un,b2 as t,b3 as sn,b4 as tn,b5 as fn}from"./slidev/Mermaid-BK6vYFFb.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,q,Y,v,A,W,a){var D=q-l,i=Y-h,n=W-v,m=a-A,r=m*D-n*i;if(!(r*r<y))return r=(n*(h-A)-m*(l-v))/r,[l+r*D,h+r*i]}function L(l,h,q,Y,v,A,W){var a=l-q,D=h-Y,i=(W?A:-A)/C(a*a+D*D),n=i*D,m=-i*a,r=l+n,s=h+m,f=q+n,c=Y+m,X=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,R=p*p+g*g,T=v-A,b=r*c-f*s,E=(g<0?-1:1)*C(fn(0,T*T*R-b*b)),I=(b*g-p*E)/R,O=(-b*p-g*E)/R,P=(b*g+p*E)/R,d=(-b*p+g*E)/R,x=I-X,e=O-o,u=P-X,Z=d-o;return x*x+e*e>u*u+Z*Z&&(I=P,O=d),{cx:I,cy:O,x01:-n,y01:-m,x11:I*(v/T-1),y11:O*(v/T-1)}}function vn(){var l=cn,h=yn,q=S(0),Y=null,v=gn,A=mn,W=pn,a=null,D=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,X=un(c-f),o=c>f;if(a||(a=n=D()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(X>on-y)a.moveTo(s*j(f),s*w(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*j(c),r*w(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,R=f,T=c,b=X,E=X,I=W.apply(this,arguments)/2,O=I>y&&(Y?+Y.apply(this,arguments):C(r*r+s*s)),P=_(un(s-r)/2,+q.apply(this,arguments)),d=P,x=P,e,u;if(O>y){var Z=sn(O/r*w(I)),F=sn(O/s*w(I));(b-=Z*2)>y?(Z*=o?1:-1,R+=Z,T-=Z):(b=0,R=T=(f+c)/2),(E-=F*2)>y?(F*=o?1:-1,p+=F,g-=F):(E=0,p=g=(f+c)/2)}var z=s*j(p),B=s*w(p),G=r*j(T),H=r*w(T);if(P>y){var J=s*j(g),K=s*w(g),M=r*j(R),N=r*w(R),$;if(X<an)if($=dn(z,B,M,N,J,K,G,H)){var Q=z-$[0],U=B-$[1],V=J-$[0],k=K-$[1],nn=1/w(tn((Q*V+U*k)/(C(Q*Q+U*U)*C(V*V+k*k)))/2),en=C($[0]*$[0]+$[1]*$[1]);d=_(P,(r-en)/(nn-1)),x=_(P,(s-en)/(nn+1))}else d=x=0}E>y?x>y?(e=L(M,N,z,B,s,x,o),u=L(J,K,G,H,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<P?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo(z,B),a.arc(0,0,s,p,g,!o)):a.moveTo(z,B),!(r>y)||!(b>y)?a.lineTo(G,H):d>y?(e=L(G,H,J,K,r,-d,o),u=L(z,B,M,N,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<P?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,R,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[j(m)*n,w(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:S(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:S(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:S(+n),i):q},i.padRadius=function(n){return arguments.length?(Y=n==null?null:typeof n=="function"?n:S(+n),i):Y},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:S(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:S(+n),i):A},i.padAngle=function(n){return arguments.length?(W=typeof n=="function"?n:S(+n),i):W},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-BUsVpa2s.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-CSZldN_k.js"></script>
import{p as e,f as o}from"./flowDb-147da10a-Xbh17yDm.js";import{f as t,a}from"./styles-c171666c-DE2DbEDk.js";import{u as i}from"./slidev/Mermaid-COGy-la-.js";import"./graph-af3d5df6-G4pt95e-.js";import"./index-c8395ba2-CUL26JYA.js";import"./layout-6685625a-Cy4EINjB.js";import"./clone-d2e37f8c-dAYgJWEV.js";import"./edges-1e1ebc73-DfL1UQzG.js";import"./createText-f6615236-DUF4ZUeq.js";import"./line-65d70945-Dh_qJL7L.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-SDQyM1dq.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram};
import{d as b,o,b as n,x as _,y as d,e as c,f as U,F as m,Z as q,l as g,g as i,h as $,c as D,k as L,q as C,s as T,A as k}from"./modules/vue-Dn3czbSS.js";import{u as f,p as W,f as z}from"./slidev/context-CthXNIh0.js";import{b as p,D as y}from"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";const O={key:0},P=["href"],w=b({__name:"TextWithOptionalLink",props:{link:{type:String,required:!1},text:{type:String,required:!0}},setup(e){return f(),(t,a)=>t.link?(o(),n("a",{key:1,href:t.link,rel:"noreferrer",target:"_blank"},_(t.text),9,P)):(o(),n("span",O,_(t.text),1))}}),F=p(w,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/components/TextWithOptionalLink.vue"]]);function S(e){const t="/slides/bisonex";return e.startsWith("/")?t.endsWith("/")?t+e.slice(1):t+e:e}function I(e,t=!1){const a=e&&["#","rgb","hsl"].some(s=>e.indexOf(s)===0),l={background:a?e:void 0,backgroundImage:a?void 0:e?t?`linear-gradient(#0009, #0009), url(${S(e)})`:`url("${S(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return l.background||delete l.background,l}const N={class:"my-auto w-full"},V={key:0,class:"absolute bottom-12 flex"},j={key:0},E={key:0},R={key:1},G={key:1},H={key:1,class:"absolute bottom-0 font-extralight mb-1 mr-2 right-0 text-xs"},M=b({__name:"cover",props:{coverAuthor:{type:[String,Array],required:!1},coverAuthorUrl:{type:[String,Array],required:!1},coverBackgroundUrl:{type:String,required:!1},coverBackgroundSource:{type:String,required:!1},coverBackgroundSourceUrl:{type:String,required:!1},coverDate:{type:[String,Date],required:!1,default:new Date().toLocaleDateString()}},setup(e){f();const{coverAuthor:t,coverAuthorUrl:a,coverBackgroundUrl:l}=e,s=d(()=>v(t)),A=d(()=>v(a)),x=d(()=>I(l,!0)),v=r=>Array.isArray(r)?r:r?[r]:[];return(r,Y)=>{const h=F;return o(),n("div",{class:"slidev-layout cover",style:$(x.value)},[c("div",N,[U(r.$slots,"default"),s.value.length||r.coverDate?(o(),n("div",V,[s.value.length?(o(),n("p",j,[(o(!0),n(m,null,q(s.value,(B,u)=>(o(),n(m,null,[g(h,{link:A.value[u],text:B},null,8,["link","text"]),u<s.value.length-2?(o(),n("span",E,", ")):i("v-if",!0),u===s.value.length-2?(o(),n("span",R," and ")):i("v-if",!0)],64))),256))])):i("v-if",!0),r.coverDate?(o(),n("p",G,_(s.value.length?`, ${r.coverDate}`:r.coverDate),1)):i("v-if",!0)])):i("v-if",!0),r.coverBackgroundSource?(o(),n("div",H,[g(h,{link:r.coverBackgroundSourceUrl,text:r.coverBackgroundSource},null,8,["link","text"])])):i("v-if",!0)])],4)}}}),Z=p(M,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/layouts/cover.vue"]]),J=c("h1",null,"BisonEx",-1),K=c("h2",null,"Un pipeline bioinformatique de ré-interprétation d’analyses constitutionnelles d’exome",-1),Q=c("p",null,"Laboratoire de Génétique, CHU Minjoz, Besançon",-1),X={__name:"1",setup(e){return W(y),f(),(t,a)=>(o(),D(Z,C(T(k(z)(k(y),0))),{default:L(()=>[J,K,Q]),_:1},16))}},ne=p(X,[["__file","/@slidev/slides/1.md"]]);export{ne as default};
import{b0 as zt,b1 as ot,aN as wt,aM as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,aL as qt,i as jt,d as Gt}from"./slidev/Mermaid-COGy-la-.js";import{a as Qt}from"./createText-f6615236-DUF4ZUeq.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-B8lBgl9v.js";import{l as ft}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Bt=a.slice.call(arguments,1),k=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);k.setInput(r,B.yy),B.yy.lexer=k,B.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
import{b0 as zt,b1 as ot,aN as wt,aM as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,aL as qt,i as jt,d as Gt}from"./slidev/Mermaid-DKLwMm57.js";import{a as Qt}from"./createText-f6615236-DKVxcDu5.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-DicpOm0k.js";import{l as ft}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Bt=a.slice.call(arguments,1),k=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);k.setInput(r,B.yy),B.yy.lexer=k,B.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,v,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?v=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),v=F[W]&&F[W][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
import{b6 as ft,E as gt,c as mt,l as E,h as G,t as xt,b7 as bt,b8 as _t,b9 as kt}from"./slidev/Mermaid-COGy-la-.js";import{d as D}from"./arc-5aa99581-BAt7L7b4.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
import{b6 as ft,E as gt,c as mt,l as E,h as G,t as xt,b7 as bt,b8 as _t,b9 as kt}from"./slidev/Mermaid-DKLwMm57.js";import{d as D}from"./arc-5aa99581-BVENIv5_.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
import{m as i,J as o}from"./slidev/Mermaid-COGy-la-.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{m as i,J as o}from"./slidev/Mermaid-DKLwMm57.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/Mermaid-COGy-la-.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/Mermaid-DKLwMm57.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
import{G as R}from"./graph-af3d5df6-G4pt95e-.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/Mermaid-COGy-la-.js";import{r as Q}from"./index-c8395ba2-CUL26JYA.js";import{c as Y}from"./channel-d3ac35ac-SDQyM1dq.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
import{G as R}from"./graph-af3d5df6-BLtirX5X.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/Mermaid-DKLwMm57.js";import{r as Q}from"./index-c8395ba2-DEokOxbK.js";import{c as Y}from"./channel-d3ac35ac-CbTvIsJJ.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,b5 as Jt}from"./slidev/Mermaid-COGy-la-.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,b5 as Jt}from"./slidev/Mermaid-DKLwMm57.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-Btn6fNFs.js";import{G as tt}from"./graph-af3d5df6-G4pt95e-.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/Mermaid-COGy-la-.js";import{r as st}from"./index-c8395ba2-CUL26JYA.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-Cy4EINjB.js";import"./clone-d2e37f8c-dAYgJWEV.js";import"./edges-1e1ebc73-DfL1UQzG.js";import"./createText-f6615236-DUF4ZUeq.js";import"./line-65d70945-Dh_qJL7L.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Wt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Wt as diagram};
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-DA-f8OQK.js";import{G as tt}from"./graph-af3d5df6-BLtirX5X.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/Mermaid-DKLwMm57.js";import{r as st}from"./index-c8395ba2-DEokOxbK.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-DMWKrSBP.js";import"./clone-d2e37f8c-BJe3gSoD.js";import"./edges-1e1ebc73-BZ06lMIy.js";import"./createText-f6615236-DKVxcDu5.js";import"./line-65d70945-CE24BujY.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Wt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Wt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-Btn6fNFs.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/Mermaid-COGy-la-.js";import{G as C}from"./graph-af3d5df6-G4pt95e-.js";import{l as F}from"./layout-6685625a-Cy4EINjB.js";import{l as $}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:D},pt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{pt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-DA-f8OQK.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/Mermaid-DKLwMm57.js";import{G as C}from"./graph-af3d5df6-BLtirX5X.js";import{l as F}from"./layout-6685625a-DMWKrSBP.js";import{l as $}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:D},pt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{pt as diagram};
import{d as r,y as n,o as c,b as d,e as a,f as u,i as f,h as m}from"../modules/vue-Dn3czbSS.js";import{b as p}from"../index-DAyAARJ6.js";function i(e){return e.startsWith("/")?"/slides/bisonex"+e.slice(1):e}function g(e,s=!1,l="cover"){const t=e&&(e[0]==="#"||e.startsWith("rgb")),o={background:t?e:void 0,color:e&&!t?"white":void 0,backgroundImage:t?void 0:e?s?`linear-gradient(#0005, #0008), url(${i(e)})`:`url("${i(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:l};return o.background||delete o.background,o}const v={class:"grid grid-cols-2 w-full h-full auto-rows-fr"},h=r({__name:"image-right",props:{image:{type:String},class:{type:String},backgroundSize:{type:String,default:"cover"}},setup(e){const s=e,l=n(()=>g(s.image,!1,s.backgroundSize));return(t,o)=>(c(),d("div",v,[a("div",{class:f(["slidev-layout default",s.class])},[u(t.$slots,"default")],2),a("div",{class:"w-full h-full",style:m(l.value)},null,4)]))}}),S=p(h,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/image-right.vue"]]);export{S as I};
import{t as l,al as D,am as O,an as R,y as _,ao as V,ap as M,Q as i,S as T,R as q,aq as I,d as m,_ as P,o as d,b as f,F as W,g as A,e as z,Y as p,ar as $,c as F,h as G,i as j,af as X,A as a,as as Y,v as B,x as E,l as N,a0 as K}from"../modules/vue-Dn3czbSS.js";import{f as U,_ as H,c as v,b as g,w as Q,x as Z,y as J,z as ee,A as se,B as te}from"../index-DAyAARJ6.js";import{u as S}from"./context-CthXNIh0.js";const Se=l(!1),ye=l(!1),we=l(!1),ne=l(!1),Te=l(!0),be=D({xs:460,...I}),k=O(),$e=R(),Ne=_(()=>k.height.value-k.width.value/U.value>120),ke=V(T?document.body:null),w=M(),Pe=_(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=w.value)==null?void 0:s.tagName)||"")||((e=w.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),Ae=_(()=>{var s;return["BUTTON","A"].includes(((s=w.value)==null?void 0:s.tagName)||"")});i("slidev-camera","default",{listenToStorageChanges:!1});i("slidev-mic","default",{listenToStorageChanges:!1});const ze=i("slidev-scale",0),Fe=i("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),je=i("slidev-show-editor",!1,{listenToStorageChanges:!1}),Be=i("slidev-editor-vertical",!1,{listenToStorageChanges:!1});i("slidev-editor-width",T?window.innerWidth*.4:318,{listenToStorageChanges:!1});i("slidev-editor-height",T?window.innerHeight*.4:300,{listenToStorageChanges:!1});const C=i("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),x=i("slidev-presenter-layout",1,{listenToStorageChanges:!1});function Ee(){x.value=x.value+1,x.value>2&&(x.value=1)}function Le(){C.value=Math.min(2,C.value+.1)}function De(){C.value=Math.max(.5,C.value-.1)}const Oe=q(ne);function Re(s,e=""){var r,o;const t=["slidev-page",e],n=(o=(r=s==null?void 0:s.meta)==null?void 0:r.slide)==null?void 0:o.no;return n!=null&&t.push(`slidev-page-${n}`),t.filter(Boolean).join(" ")}async function Ve(){const{saveAs:s}=await H(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof v.download=="string"?v.download:v.exportFilename?`${v.exportFilename}.pdf`:"/slides/bisonexslidev-exported.pdf",`${v.title}.pdf`)}const ae={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},oe=z("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ie=z("div",null,"Loading slide...",-1),le=m({__name:"SlideLoading",setup(s){const e=l(!1);return P(()=>{setTimeout(()=>{e.value=!0},200)}),(t,n)=>(d(),f("div",ae,[e.value?(d(),f(W,{key:0},[oe,ie],64)):A("v-if",!0)]))}}),re=g(le,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),ce=m({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,t=_(()=>{var o,u;return((u=(o=e.route.meta)==null?void 0:o.slide)==null?void 0:u.frontmatter.zoom)??1});p(Q,e.route),p(Z,l(e.route.no)),p(J,l(e.renderContext)),p(ee,$(e,"active")),p(se,$(e,"clicksContext")),p(te,t);const n=_(()=>t.value===1?void 0:{width:`${100/t.value}%`,height:`${100/t.value}%`,transformOrigin:"top left",transform:`scale(${t.value})`}),r=Y({loader:async()=>{const o=await e.is();return m({setup(u,{attrs:h}){return P(()=>{var c,y;(y=(c=e.clicksContext)==null?void 0:c.onMounted)==null||y.call(c)}),()=>B(o.default,h)}})},delay:300,loadingComponent:re});return(o,u)=>(d(),F(X(a(r)),{style:G(n.value),"data-slidev-no":e.route.no,class:j({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),Me=g(ce,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),de=m({__name:"SlidesTotal",setup(s){const{$nav:e}=S();return(t,n)=>(d(),f("span",null,E(a(e).total),1))}}),ue=g(de,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/SlidesTotal.vue"]]),pe=m({__name:"SlideCurrentNo",setup(s){const{$page:e}=S();return(t,n)=>(d(),f("span",null,E(a(e)),1))}}),_e=g(pe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/SlideCurrentNo.vue"]]),me=m({__name:"Pagination",props:{classNames:{type:[Array,String]},x:{default:"r",type:String,validator:s=>s==="l"||s==="r"},y:{default:"t",type:String,validator:s=>s==="b"||s==="t"}},setup(s){S();const{classNames:e,x:t,y:n}=s,r=_(()=>[...e?Array.isArray(e)?e:[e]:[],t==="l"&&"left-0",t==="r"&&"right-0",n==="t"&&"top-0",n==="b"&&"bottom-0"]);return(o,u)=>{const h=_e,c=ue;return d(),f("div",{class:j(["absolute p-2 text-xs",r.value])},[N(h),K(" / "),N(c)],2)}}}),ge=g(me,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/components/Pagination.vue"]]),ve={__name:"global-top",setup(s){const{$slidev:e,$nav:t,$clicksContext:n,$clicks:r,$page:o,$renderContext:u,$frontmatter:h}=S();return(c,y)=>{var b;const L=ge;return a(e).nav.currentPage!==a(e).nav.total+1&&!((b=a(e).themeConfigs.paginationPagesDisabled)!=null&&b.includes(a(e).nav.currentPage))&&(a(e).themeConfigs.paginationX||a(e).themeConfigs.paginationY)?(d(),F(L,{key:0,x:a(e).themeConfigs.paginationX,y:a(e).themeConfigs.paginationY},null,8,["x","y"])):A("v-if",!0)}}},fe=g(ve,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/global-top.vue"]]),qe={render(){return[B(fe)]}},Ie={render(){return[]}};export{Ie as G,Me as S,qe as a,ne as b,C as c,De as d,Se as e,ye as f,Re as g,Ne as h,Le as i,je as j,ze as k,Be as l,we as m,$e as n,Ve as o,x as p,Te as q,Ae as r,Fe as s,Oe as t,Pe as u,ke as v,k as w,be as x,Ee as y,w as z};
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-TQ9F-p3r.js","assets/modules/vue-Dn3czbSS.js","assets/index-DAyAARJ6.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/index-BhXaT91_.css","assets/slidev/bottom-CwmVxbzO.js","assets/slidev/context-CthXNIh0.js","assets/bottom-DbIWt59F.css"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-Bb9cUdpI.js","assets/modules/vue-Dn3czbSS.js","assets/index-In0nWnaA.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/index-BhXaT91_.css","assets/slidev/bottom-C-2Y5Vyd.js","assets/slidev/context-0STE4blS.js","assets/bottom-DbIWt59F.css"]
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as l,i as B,c as f,g as _,h as M,F as p,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-Dn3czbSS.js";import{t as W}from"../modules/shiki-CuMFyo6Z.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-CwmVxbzO.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-DAyAARJ6.js";import{P as Q}from"./PrintStyle-BEFYTj9f.js";import"./context-CthXNIh0.js";function U(i){return Array.from(new Set(i))}function q(...i){let t,n,e;i.length===1?(t=0,e=1,[n]=i):[t,n,e=1]=i;const s=[];let a=t;for(;a<n;)s.push(a),a+=e||1;return s}function ee(i,t){if(!t||t==="all"||t==="*")return q(1,i+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,a]=e.split("-",2);n.push(...q(+s,a?+a+1:i+1))}return U(n).filter(e=>e<=i).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(i){const{nav:t}=i,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-TQ9F-p3r.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(o=>s.value=o.default);const a=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:a.value,class:"print-slide-container",style:M(e.value)},[d(l(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(l(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(l(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(l(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(i){const{route:t}=i,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,a)=>(r(),u(p,null,[d(A,{"clicks-context":l(e),nav:l(N)(s.route,l(e))},null,8,["clicks-context","nav"]),l(n)?(r(),u(p,{key:0},[_(`
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as l,i as B,c as f,g as _,h as M,F as p,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-Dn3czbSS.js";import{t as W}from"../modules/shiki-CuMFyo6Z.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-C-2Y5Vyd.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-In0nWnaA.js";import{P as Q}from"./PrintStyle-BKEyK1hB.js";import"./context-0STE4blS.js";function U(i){return Array.from(new Set(i))}function q(...i){let t,n,e;i.length===1?(t=0,e=1,[n]=i):[t,n,e=1]=i;const s=[];let a=t;for(;a<n;)s.push(a),a+=e||1;return s}function ee(i,t){if(!t||t==="all"||t==="*")return q(1,i+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,a]=e.split("-",2);n.push(...q(+s,a?+a+1:i+1))}return U(n).filter(e=>e<=i).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(i){const{nav:t}=i,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-Bb9cUdpI.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(o=>s.value=o.default);const a=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:a.value,class:"print-slide-container",style:M(e.value)},[d(l(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(l(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(l(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(l(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(i){const{route:t}=i,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,a)=>(r(),u(p,null,[d(A,{"clicks-context":l(e),nav:l(N)(s.route,l(e))},null,8,["clicks-context","nav"]),l(n)?(r(),u(p,{key:0},[_(`
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-Dn3czbSS.js";import{u as y,h as N,c as m,b as k}from"../index-DAyAARJ6.js";import{N as w}from"./NoteDisplay-BICLT5z3.js";import"../modules/shiki-CuMFyo6Z.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-Dn3czbSS.js";import{u as y,h as N,c as m,b as k}from"../index-In0nWnaA.js";import{N as w}from"./NoteDisplay-DJpPZjGO.js";import"../modules/shiki-CuMFyo6Z.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-CXhi-ET8.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-Dn3czbSS.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-DAyAARJ6.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-USTpomv6.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-CwmVxbzO.js";import{N as Te}from"./NoteDisplay-BICLT5z3.js";import Ve from"./DrawingControls-do95qUIH.js";import{u as qe}from"./DrawingPreview-TQ9F-p3r.js";import"../modules/shiki-CuMFyo6Z.js";import"./context-CthXNIh0.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-CXhi-ET8.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-Dn3czbSS.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-In0nWnaA.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-A8z_DqaN.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-C-2Y5Vyd.js";import{N as Te}from"./NoteDisplay-DJpPZjGO.js";import Ve from"./DrawingControls-CKFjkIZz.js";import{u as qe}from"./DrawingPreview-Bb9cUdpI.js";import"../modules/shiki-CuMFyo6Z.js";import"./context-0STE4blS.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-do95qUIH.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/modules/vue-Dn3czbSS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-TQ9F-p3r.js","assets/index-DAyAARJ6.js","assets/index-BhXaT91_.css","assets/slidev/bottom-CwmVxbzO.js","assets/slidev/context-CthXNIh0.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-USTpomv6.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-CKFjkIZz.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/modules/vue-Dn3czbSS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-Bb9cUdpI.js","assets/index-In0nWnaA.js","assets/index-BhXaT91_.css","assets/slidev/bottom-C-2Y5Vyd.js","assets/slidev/context-0STE4blS.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-A8z_DqaN.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
import{b as w,c as y,u as $,_ as z}from"../index-DAyAARJ6.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-Dn3czbSS.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-CwmVxbzO.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-USTpomv6.js";import{P as q}from"./PrintStyle-BEFYTj9f.js";import{u as J}from"./DrawingPreview-TQ9F-p3r.js";import"../modules/shiki-CuMFyo6Z.js";import"./context-CthXNIh0.js";import"../modules/unplugin-icons-CXhi-ET8.js";const Z="/slides/bisonex/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-do95qUIH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{b as w,c as y,u as $,_ as z}from"../index-In0nWnaA.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-Dn3czbSS.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-C-2Y5Vyd.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-A8z_DqaN.js";import{P as q}from"./PrintStyle-BKEyK1hB.js";import{u as J}from"./DrawingPreview-Bb9cUdpI.js";import"../modules/shiki-CuMFyo6Z.js";import"./context-0STE4blS.js";import"../modules/unplugin-icons-CXhi-ET8.js";const Z="/slides/bisonex/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-CKFjkIZz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{d as r,y as n,o as c,b as d,e as a,f as u,i as f,h as m}from"../modules/vue-Dn3czbSS.js";import{b as p}from"../index-In0nWnaA.js";function i(e){return e.startsWith("/")?"/slides/bisonex/"+e.slice(1):e}function g(e,s=!1,l="cover"){const t=e&&(e[0]==="#"||e.startsWith("rgb")),o={background:t?e:void 0,color:e&&!t?"white":void 0,backgroundImage:t?void 0:e?s?`linear-gradient(#0005, #0008), url(${i(e)})`:`url("${i(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:l};return o.background||delete o.background,o}const v={class:"grid grid-cols-2 w-full h-full auto-rows-fr"},h=r({__name:"image-right",props:{image:{type:String},class:{type:String},backgroundSize:{type:String,default:"cover"}},setup(e){const s=e,l=n(()=>g(s.image,!1,s.backgroundSize));return(t,o)=>(c(),d("div",v,[a("div",{class:f(["slidev-layout default",s.class])},[u(t.$slots,"default")],2),a("div",{class:"w-full h-full",style:m(l.value)},null,4)]))}}),S=p(h,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/image-right.vue"]]);export{S as I};
import{o,b as s,f as t}from"../modules/vue-Dn3czbSS.js";import{b as l}from"../index-DAyAARJ6.js";const a={},n={class:"slidev-layout default"};function c(e,r){return o(),s("div",n,[t(e.$slots,"default")])}const f=l(a,[["render",c],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]);export{f as I};
import{o,b as s,f as t}from"../modules/vue-Dn3czbSS.js";import{b as l}from"../index-In0nWnaA.js";const a={},n={class:"slidev-layout default"};function c(e,r){return o(),s("div",n,[t(e.$slots,"default")])}const f=l(a,[["render",c],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]);export{f as I};
import{ax as n,ar as r,t as u,y as $,Y as j,ay as v}from"../modules/vue-Dn3czbSS.js";import{g as p,B as x,Y as l,i as C,A as S,x as R,y as T,w as g,Z as k,$ as y}from"../index-DAyAARJ6.js";function E(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,$(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function L(t){var a,c;j(l,t);const{$slidev:s,$page:i}=E(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:y),frontmatter:t}}export{O as f,L as p,E as u};
import{ax as n,ar as r,t as u,y as $,Y as j,ay as v}from"../modules/vue-Dn3czbSS.js";import{g as p,B as x,Y as l,i as C,A as S,x as R,y as T,w as g,Z as k,$ as y}from"../index-In0nWnaA.js";function E(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,$(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function L(t){var a,c;j(l,t);const{$slidev:s,$page:i}=E(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:y),frontmatter:t}}export{O as f,L as p,E as u};
import{t as l,al as D,am as O,an as R,y as _,ao as V,ap as M,Q as i,S as T,R as q,aq as I,d as m,_ as P,o as d,b as f,F as W,g as A,e as z,Y as p,ar as $,c as F,h as G,i as j,af as X,A as a,as as Y,v as B,x as E,l as N,a0 as K}from"../modules/vue-Dn3czbSS.js";import{f as U,_ as H,c as v,b as g,w as Q,x as Z,y as J,z as ee,A as se,B as te}from"../index-In0nWnaA.js";import{u as S}from"./context-0STE4blS.js";const Se=l(!1),ye=l(!1),we=l(!1),ne=l(!1),Te=l(!0),be=D({xs:460,...I}),k=O(),$e=R(),Ne=_(()=>k.height.value-k.width.value/U.value>120),ke=V(T?document.body:null),w=M(),Pe=_(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=w.value)==null?void 0:s.tagName)||"")||((e=w.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),Ae=_(()=>{var s;return["BUTTON","A"].includes(((s=w.value)==null?void 0:s.tagName)||"")});i("slidev-camera","default",{listenToStorageChanges:!1});i("slidev-mic","default",{listenToStorageChanges:!1});const ze=i("slidev-scale",0),Fe=i("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),je=i("slidev-show-editor",!1,{listenToStorageChanges:!1}),Be=i("slidev-editor-vertical",!1,{listenToStorageChanges:!1});i("slidev-editor-width",T?window.innerWidth*.4:318,{listenToStorageChanges:!1});i("slidev-editor-height",T?window.innerHeight*.4:300,{listenToStorageChanges:!1});const C=i("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),x=i("slidev-presenter-layout",1,{listenToStorageChanges:!1});function Ee(){x.value=x.value+1,x.value>2&&(x.value=1)}function Le(){C.value=Math.min(2,C.value+.1)}function De(){C.value=Math.max(.5,C.value-.1)}const Oe=q(ne);function Re(s,e=""){var r,o;const t=["slidev-page",e],n=(o=(r=s==null?void 0:s.meta)==null?void 0:r.slide)==null?void 0:o.no;return n!=null&&t.push(`slidev-page-${n}`),t.filter(Boolean).join(" ")}async function Ve(){const{saveAs:s}=await H(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof v.download=="string"?v.download:v.exportFilename?`${v.exportFilename}.pdf`:"/slides/bisonex/slidev-exported.pdf",`${v.title}.pdf`)}const ae={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},oe=z("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ie=z("div",null,"Loading slide...",-1),le=m({__name:"SlideLoading",setup(s){const e=l(!1);return P(()=>{setTimeout(()=>{e.value=!0},200)}),(t,n)=>(d(),f("div",ae,[e.value?(d(),f(W,{key:0},[oe,ie],64)):A("v-if",!0)]))}}),re=g(le,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),ce=m({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,t=_(()=>{var o,u;return((u=(o=e.route.meta)==null?void 0:o.slide)==null?void 0:u.frontmatter.zoom)??1});p(Q,e.route),p(Z,l(e.route.no)),p(J,l(e.renderContext)),p(ee,$(e,"active")),p(se,$(e,"clicksContext")),p(te,t);const n=_(()=>t.value===1?void 0:{width:`${100/t.value}%`,height:`${100/t.value}%`,transformOrigin:"top left",transform:`scale(${t.value})`}),r=Y({loader:async()=>{const o=await e.is();return m({setup(u,{attrs:h}){return P(()=>{var c,y;(y=(c=e.clicksContext)==null?void 0:c.onMounted)==null||y.call(c)}),()=>B(o.default,h)}})},delay:300,loadingComponent:re});return(o,u)=>(d(),F(X(a(r)),{style:G(n.value),"data-slidev-no":e.route.no,class:j({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),Me=g(ce,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),de=m({__name:"SlidesTotal",setup(s){const{$nav:e}=S();return(t,n)=>(d(),f("span",null,E(a(e).total),1))}}),ue=g(de,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/SlidesTotal.vue"]]),pe=m({__name:"SlideCurrentNo",setup(s){const{$page:e}=S();return(t,n)=>(d(),f("span",null,E(a(e)),1))}}),_e=g(pe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/SlideCurrentNo.vue"]]),me=m({__name:"Pagination",props:{classNames:{type:[Array,String]},x:{default:"r",type:String,validator:s=>s==="l"||s==="r"},y:{default:"t",type:String,validator:s=>s==="b"||s==="t"}},setup(s){S();const{classNames:e,x:t,y:n}=s,r=_(()=>[...e?Array.isArray(e)?e:[e]:[],t==="l"&&"left-0",t==="r"&&"right-0",n==="t"&&"top-0",n==="b"&&"bottom-0"]);return(o,u)=>{const h=_e,c=ue;return d(),f("div",{class:j(["absolute p-2 text-xs",r.value])},[N(h),K(" / "),N(c)],2)}}}),ge=g(me,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/components/Pagination.vue"]]),ve={__name:"global-top",setup(s){const{$slidev:e,$nav:t,$clicksContext:n,$clicks:r,$page:o,$renderContext:u,$frontmatter:h}=S();return(c,y)=>{var b;const L=ge;return a(e).nav.currentPage!==a(e).nav.total+1&&!((b=a(e).themeConfigs.paginationPagesDisabled)!=null&&b.includes(a(e).nav.currentPage))&&(a(e).themeConfigs.paginationX||a(e).themeConfigs.paginationY)?(d(),F(L,{key:0,x:a(e).themeConfigs.paginationX,y:a(e).themeConfigs.paginationY},null,8,["x","y"])):A("v-if",!0)}}},fe=g(ve,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/global-top.vue"]]),qe={render(){return[B(fe)]}},Ie={render(){return[]}};export{Ie as G,Me as S,qe as a,ne as b,C as c,De as d,Se as e,ye as f,Re as g,Ne as h,Le as i,je as j,ze as k,Be as l,we as m,$e as n,Ve as o,x as p,Te as q,Ae as r,Fe as s,Oe as t,Pe as u,ke as v,k as w,be as x,Ee as y,w as z};
import{T as C,b as S,W as z,X as V}from"../index-DAyAARJ6.js";import{d as g,_ as w,C as G,o as I,c as $,F as B,au as M,v as n,av as f,aw as D,l as T,a1 as F}from"../modules/vue-Dn3czbSS.js";import{u as L}from"./context-CthXNIh0.js";const E=g({__name:"VClickGap",props:{size:{type:[String,Number],default:1}},setup(c){const d=c,{$clicksContext:a}=L();return w(()=>{G(u=>{if(!a)return;let l=+d.size;Number.isNaN(l)&&(console.warn(`[slidev] Invalid size for VClickGap: ${d.size}`),l=1);const o=a.currentOffset+l-1,t=C();a.register(t,{max:o,delta:l}),u(()=>a.unregister(t))})}),(u,l)=>(I(),$(B))}}),O=S(E,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/VClickGap.vue"]]),b=["ul","ol"],X=g({props:{depth:{type:[Number,String],default:1},every:{type:[Number,String],default:1},at:{type:[Number,String],default:"+1"},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1}},render(){var N,A;const c=+this.every,[d,a]=z(this.at),u=M("click"),l=(s,e)=>F(s,[[u,e,"",{hide:this.hide,fade:this.fade}]]),o=s=>s.flatMap(e=>f(e)&&typeof e.type=="symbol"&&Array.isArray(e.children)?o(e.children):[e]);let t=(A=(N=this.$slots).default)==null?void 0:A.call(N);if(!t)return;t=o(V(t));const k=(s,e=1)=>o(s).map(r=>{if(!f(r))return r;if(b.includes(r.type)&&Array.isArray(r.children)){const i=p(r.children,e+1);return n(r,{},i)}return n(r)});let _=1,h=0;const p=(s,e=1)=>o(s).map(r=>{if(!f(r)||r.type===D)return r;const i=+a+Math.ceil(_++/c)-1;let m;e<+this.depth&&Array.isArray(r.children)?m=n(r,{},k(r.children,e)):m=n(r);const v=i-h;return h=i,l(m,d?v>=0?`+${v}`:`${v}`:i)}),y=()=>T(O,{size:+a+Math.ceil((_-1)/c)-1-h});if(t.length===1&&b.includes(t[0].type)&&Array.isArray(t[0].children))return n(t[0],{},[...p(t[0].children),y()]);if(t.length===1&&t[0].type==="table"){const s=t[0];if(Array.isArray(s.children))return n(s,{},s.children.map(e=>f(e)?e.type==="tbody"&&Array.isArray(e.children)?n(e,{},[...p(e.children),y()]):n(e):e))}return[...p(t),y()]}});export{X as _};
import{T as C,b as S,W as z,X as V}from"../index-In0nWnaA.js";import{d as g,_ as w,C as G,o as I,c as $,F as B,au as M,v as n,av as f,aw as D,l as T,a1 as F}from"../modules/vue-Dn3czbSS.js";import{u as L}from"./context-0STE4blS.js";const E=g({__name:"VClickGap",props:{size:{type:[String,Number],default:1}},setup(c){const d=c,{$clicksContext:a}=L();return w(()=>{G(u=>{if(!a)return;let l=+d.size;Number.isNaN(l)&&(console.warn(`[slidev] Invalid size for VClickGap: ${d.size}`),l=1);const o=a.currentOffset+l-1,t=C();a.register(t,{max:o,delta:l}),u(()=>a.unregister(t))})}),(u,l)=>(I(),$(B))}}),O=S(E,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/VClickGap.vue"]]),b=["ul","ol"],X=g({props:{depth:{type:[Number,String],default:1},every:{type:[Number,String],default:1},at:{type:[Number,String],default:"+1"},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1}},render(){var N,A;const c=+this.every,[d,a]=z(this.at),u=M("click"),l=(s,e)=>F(s,[[u,e,"",{hide:this.hide,fade:this.fade}]]),o=s=>s.flatMap(e=>f(e)&&typeof e.type=="symbol"&&Array.isArray(e.children)?o(e.children):[e]);let t=(A=(N=this.$slots).default)==null?void 0:A.call(N);if(!t)return;t=o(V(t));const k=(s,e=1)=>o(s).map(r=>{if(!f(r))return r;if(b.includes(r.type)&&Array.isArray(r.children)){const i=p(r.children,e+1);return n(r,{},i)}return n(r)});let _=1,h=0;const p=(s,e=1)=>o(s).map(r=>{if(!f(r)||r.type===D)return r;const i=+a+Math.ceil(_++/c)-1;let m;e<+this.depth&&Array.isArray(r.children)?m=n(r,{},k(r.children,e)):m=n(r);const v=i-h;return h=i,l(m,d?v>=0?`+${v}`:`${v}`:i)}),y=()=>T(O,{size:+a+Math.ceil((_-1)/c)-1-h});if(t.length===1&&b.includes(t[0].type)&&Array.isArray(t[0].children))return n(t[0],{},[...p(t[0].children),y()]);if(t.length===1&&t[0].type==="table"){const s=t[0];if(Array.isArray(s.children))return n(s,{},s.children.map(e=>f(e)?e.type==="tbody"&&Array.isArray(e.children)?n(e,{},[...p(e.children),y()]):n(e):e))}return[...p(t),y()]}});export{X as _};
import{d as n,v as o,at as p}from"../modules/vue-Dn3czbSS.js";import{C as s}from"../index-DAyAARJ6.js";import{_ as r}from"./VClicks-B4QnOWIs.js";const l=n({props:{at:{type:[Number,String],default:"+1"},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},wrapText:{type:Function,default:e=>o("span",e)}},render(){return o(r,{every:s,at:this.at,hide:this.hide,fade:this.fade},{default:()=>{var e,a;return(a=(e=this.$slots).default)==null?void 0:a.call(e).map(t=>t.type===p?this.wrapText(t):t)}})}});export{l as _};
import{d as n,v as o,at as p}from"../modules/vue-Dn3czbSS.js";import{C as s}from"../index-In0nWnaA.js";import{_ as r}from"./VClicks-CK3utqQa.js";const l=n({props:{at:{type:[Number,String],default:"+1"},hide:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},wrapText:{type:Function,default:e=>o("span",e)}},render(){return o(r,{every:s,at:this.at,hide:this.hide,fade:this.fade},{default:()=>{var e,a;return(a=(e=this.$slots).default)==null?void 0:a.call(e).map(t=>t.type===p?this.wrapText(t):t)}})}});export{l as _};
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-do95qUIH.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/modules/vue-Dn3czbSS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-TQ9F-p3r.js","assets/index-DAyAARJ6.js","assets/index-BhXaT91_.css","assets/slidev/bottom-CwmVxbzO.js","assets/slidev/context-CthXNIh0.js","assets/bottom-DbIWt59F.css","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-B2LbI7yb.js"]
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-CKFjkIZz.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/modules/vue-Dn3czbSS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-Bb9cUdpI.js","assets/index-In0nWnaA.js","assets/index-BhXaT91_.css","assets/slidev/bottom-C-2Y5Vyd.js","assets/slidev/context-0STE4blS.js","assets/bottom-DbIWt59F.css","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-DClEm0Ct.js"]
import{t as D,a8 as Ot,a9 as Dt,y as N,aa as L,ab as W,U as Vt,D as me,ac as Ft,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as g,e as b,f as le,h as ce,i as V,o as h,a6 as Fe,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as E,g as S,a7 as zt,k as A,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as it,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-Dn3czbSS.js";import{u as se,n as ts,t as Re,f as we,a as xe,s as ss,c as re,g as ns,b as U,o as ze,_ as rt,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-DAyAARJ6.js";import{u as je,D as is}from"./DrawingPreview-TQ9F-p3r.js";import{b as G,t as Ne,m as Z,n as ct,o as ut,q as rs,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-CwmVxbzO.js";import{e as fs,f as ps,g as _s,h as vs,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-CXhi-ET8.js";import{u as Rs}from"./context-CthXNIh0.js";import{t as Ns}from"../modules/shiki-CuMFyo6Z.js";function li(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:i}=je(),r=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){i.value||(r.value=Dt())},onSwipeEnd(){if(!r.value||i.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const ve=D(1),ge=N(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>ve.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ts(){if(O.value>ve.value){let t=O.value-Be.value;t<ve.value&&(t=ve.value),O.value=t}}function Ps(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:i,prevSlide:r}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:_,down:k,enter:v,d:$,g:M,o:R,"`":w}=ct,T={next:n,prev:i,nextSlide:o,prevSlide:r,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Re,toggleOverview:Ne,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let m=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:i,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:i,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:i,autoRepeat:!0},{name:"next_down",key:L(k,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(_,W(G)),fn:()=>r(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>r(!1),autoRepeat:!0},{name:"toggle_dark",key:L($,W(a)),fn:Re},{name:"toggle_overview",key:L(Vt(R,w),W(a)),fn:Ne},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(M,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(_,G),fn:Ts},{name:"down_overview",key:L(k,G),fn:Ps},{name:"goto_from_overview",key:L(v,G),fn:()=>{t(O.value),G.value=!1}}];const P=new Set(m.map(C=>C.name));for(const C of Os){const j=C(T,m);m=m.concat(j)}if(m.filter(C=>C.name&&P.has(C.name)).length===0){const C=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
import{t as D,a8 as Ot,a9 as Dt,y as N,aa as L,ab as W,U as Vt,D as me,ac as Ft,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as g,e as b,f as le,h as ce,i as V,o as h,a6 as Fe,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as E,g as S,a7 as zt,k as A,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as it,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-Dn3czbSS.js";import{u as se,n as ts,t as Re,f as we,a as xe,s as ss,c as re,g as ns,b as U,o as ze,_ as rt,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-In0nWnaA.js";import{u as je,D as is}from"./DrawingPreview-Bb9cUdpI.js";import{b as G,t as Ne,m as Z,n as ct,o as ut,q as rs,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-C-2Y5Vyd.js";import{e as fs,f as ps,g as _s,h as vs,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-CXhi-ET8.js";import{u as Rs}from"./context-0STE4blS.js";import{t as Ns}from"../modules/shiki-CuMFyo6Z.js";function li(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:i}=je(),r=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){i.value||(r.value=Dt())},onSwipeEnd(){if(!r.value||i.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const ve=D(1),ge=N(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>ve.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ts(){if(O.value>ve.value){let t=O.value-Be.value;t<ve.value&&(t=ve.value),O.value=t}}function Ps(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:i,prevSlide:r}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:_,down:k,enter:v,d:$,g:M,o:R,"`":w}=ct,T={next:n,prev:i,nextSlide:o,prevSlide:r,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Re,toggleOverview:Ne,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let m=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:i,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:i,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:i,autoRepeat:!0},{name:"next_down",key:L(k,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(_,W(G)),fn:()=>r(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>r(!1),autoRepeat:!0},{name:"toggle_dark",key:L($,W(a)),fn:Re},{name:"toggle_overview",key:L(Vt(R,w),W(a)),fn:Ne},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(M,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(_,G),fn:Ts},{name:"down_overview",key:L(k,G),fn:Ps},{name:"goto_from_overview",key:L(v,G),fn:()=>{t(O.value),G.value=!1}}];const P=new Set(m.map(C=>C.name));for(const C of Os){const j=C(T,m);m=m.concat(j)}if(m.filter(C=>C.name&&P.has(C.name)).length===0){const C=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`)),Gt(ns,c),(p,_)=>(h(),g("div",{id:"slide-container",ref_key:"root",ref:o,class:V(["slidev-slides-container",f.value])},[b("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Fe(t,"modelValue",e,{passive:!0});return(i,r)=>{const a=fs;return h(),g("div",Gs,[b("div",Ws,X(t.title),1),b("div",Ks,[(h(!0),g(H,null,ke(t.items,l=>(h(),g("div",{key:l.value,class:V(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:V(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),g("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Fe(t,"modelValue",e,{passive:!0}),i=D();return Kt(i,()=>{o.value=!1}),(r,a)=>(h(),g("div",{ref_key:"el",ref:i,class:"flex relative"},[b("button",{class:V({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(r.$slots,"button",{class:V({disabled:t.disabled})})],2),(h(),E(zt,null,[u(o)?(h(),g("div",Js,[le(r.$slots,"menu")])):S("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),g("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),E(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:A(()=>[b("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[b("div",{class:V(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:i,isEmbedded:r,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:_}=je(),k=Ae.smaller("md"),{isFullscreen:v,toggle:$}=dt,M=N(()=>s.value.query.password),R=N(()=>M.value?`?password=${M.value}`:""),w=N(()=>`${ze(n.value,!0)}${R.value}`),T=N(()=>`${ze(n.value,!1)}${R.value}`),m=D();function P(){m.value&&ae.value&&m.value.contains(ae.value)&&ae.value.blur()}const I=N(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),C=Ie(),j=Ie();return rt(()=>import("./DrawingControls-do95qUIH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(ie=>j.value=ie.default),(ie,F)=>{const q=ps,We=_s,B=vs,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Rt=Ss,Ke=Ht("RouterLink"),Nt=Ms,At=$s,Lt=Cs,Tt=Es,Pt=xs;return h(),g("nav",{ref_key:"root",ref:m,class:"flex flex-col"},[b("div",{class:V(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",I.value]),onMouseleave:P},[u(r)?S("v-if",!0):(h(),E(z,{key:0,title:u(v)?"Close fullscreen":"Enter fullscreen",onClick:u($)},{default:A(()=>[u(v)?(h(),E(q,{key:0})):(h(),E(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:V({disabled:!u(i)}),title:"Go to previous slide",onClick:u(d)},{default:A(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:V({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:A(()=>[x(ne)]),_:1},8,["class","onClick"]),u(r)?S("v-if",!0):(h(),E(z,{key:1,title:"Show slide overview",onClick:F[0]||(F[0]=de=>u(Ne)())},{default:A(()=>[x(ue)]),_:1})),u(os)?S("v-if",!0):(h(),E(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:F[1]||(F[1]=de=>u(Re)())},{default:A(()=>[u(He)?(h(),E(Mt,{key:0})):(h(),E($t,{key:1}))]),_:1},8,["title"])),x(pe),u(r)?S("v-if",!0):(h(),g(H,{key:3},[!u(a)&&!u(k)&&C.value?(h(),g(H,{key:0},[x(u(C)),x(pe)],64)):S("v-if",!0),u(a)?(h(),E(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:F[2]||(F[2]=de=>fe.value=!u(fe))},{default:A(()=>[u(fe)?(h(),E(Ct,{key:0})):(h(),E(Et,{key:1}))]),_:1},8,["title"])):S("v-if",!0)],64)),(!u(re).drawings.presenterOnly||u(a))&&!u(r)?(h(),g(H,{key:4},[x(z,{class:"relative",title:u(_)?"Hide drawing toolbar":"Show drawing toolbar",onClick:F[3]||(F[3]=de=>_.value=!u(_))},{default:A(()=>[x(It),u(_)?(h(),g("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):S("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):S("v-if",!0),u(r)?S("v-if",!0):(h(),g(H,{key:5},[u(a)?(h(),E(Ke,{key:0,to:T.value,class:"slidev-icon-btn",title:"Play Mode"},{default:A(()=>[x(Rt)]),_:1},8,["to"])):S("v-if",!0),u(l)?(h(),E(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:A(()=>[x(Nt)]),_:1},8,["to"])):S("v-if",!0),S("v-if",!0),u(a)?(h(),E(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:A(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):S("v-if",!0)],64)),(h(),g(H,{key:6},[u(re).download?(h(),E(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:A(()=>[x(Lt)]),_:1},8,["onClick"])):S("v-if",!0)],64)),!u(a)&&u(re).info&&!u(r)?(h(),E(z,{key:7,title:"Show info",onClick:F[5]||(F[5]=de=>Qe.value=!u(Qe))},{default:A(()=>[x(Tt)]),_:1})):S("v-if",!0),!u(a)&&!u(r)?(h(),E(Zs,{key:8},{button:A(()=>[x(z,{title:"Adjust settings"},{default:A(()=>[x(Pt)]),_:1})]),menu:A(()=>[x(Xs)]),_:1})):S("v-if",!0),u(r)?S("v-if",!0):(h(),E(pe,{key:9})),b("div",an,[b("div",ln,[Ee(X(u(n))+" ",1),b("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),ui=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},_n={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,vn=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Fe(t,"modelValue",e),{currentSlideNo:i,go:r,slides:a}=se();function l(){o.value=!1}function c($){r($),l()}function d($){return $===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),_=N(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),k=N(()=>Math.floor((Me.width.value-$e)/(_.value+Xe))),v=D("");return Ut("keypress",$=>{if(!G.value){v.value="";return}if($.key==="Enter"){$.preventDefault(),v.value?(c(+v.value),v.value=""):c(O.value);return}const M=Number.parseInt($.key.replace(/[^0-9]/g,""));if(Number.isNaN(M)){v.value="";return}if(!v.value&&M===0)return;if(v.value+=String(M),+v.value>=a.value.length){v.value="";return}const R=a.value.findIndex(w=>`/${w.no}`===v.value);R!==-1&&(O.value=R+1),+v.value*10>a.value.length&&(c(+v.value),v.value="")}),st(()=>{O.value=i.value,Be.value=k.value}),($,M)=>{const R=Is;return h(),g(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:A(()=>[ot(b("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:M[0]||(M[0]=w=>l())},[b("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${_.value}px,1fr))`)},[(h(!0),g(H,null,ke(u(a),(w,T)=>(h(),g("div",{key:w.no,class:"relative"},[b("div",{class:V(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(T+1)||u(O)===T+1?"border-primary":"border-main"]),onClick:m=>c(w.no)},[(h(),E(Bs,{key:w.no,width:_.value,class:"pointer-events-none"},{default:A(()=>[w!=null&&w.component?(h(),E(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:V(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):S("v-if",!0),x(is,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),b("div",{class:"absolute top-0",style:ce(`left: ${_.value+5}px`)},[v.value&&String(T+1).startsWith(v.value)?(h(),g(H,{key:0},[b("span",hn,X(v.value),1),b("span",fn,X(String(T+1).slice(v.value.length)),1)],64)):(h(),g("span",pn,X(T+1),1))],4)]))),128))],4)],512),[[it,u(o)]])]),_:1}),u(o)?(h(),g("div",_n,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:A(()=>[x(R)]),_:1}),S("v-if",!0)])):S("v-if",!0)],64)}}}),di=U(vn,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function vt(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,i=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const r=t.name;if(n=r,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(r));e=qe(r),s=Le(r),i=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:i}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(i,r,a)=>{if(K(i))if(!r[a])s.push(i);else{let l=r[a];const c=i[l];if(!K(c))return;if(a===r.length-1&&(Q(c)||vt(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],r,a+1)}else r.length&&o(c,r,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Rn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Nn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var y={...Rn,...In,...Nn,...An};const Ln=/[^ ]+/g;function Tn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const i=o.match(Ln).length;if(s.has(i))return s.get(i);const r=1/Math.pow(i,.5*t),a=parseFloat(Math.round(r*n)/n);return s.set(i,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=y.getFn,fieldNormWeight:s=y.fieldNormWeight}={}){this.norm=Tn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,i)=>{let r=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(r)){if(J(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[i]=a}else if(Q(r)&&!Ce(r)){let a={v:r,n:this.norm.get(r)};n.$[i]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Pn(t,{getFn:e=y.getFn,fieldNormWeight:s=y.fieldNormWeight}={}){const{keys:n,records:o}=t,i=new Ge({getFn:e,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(o),i}function _e(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=y.distance,ignoreLocation:i=y.ignoreLocation}={}){const r=e/t.length;if(i)return r;const a=Math.abs(n-s);return o?r+a/o:a?1:r}function On(t=[],e=y.minMatchCharLength){let s=[],n=-1,o=-1,i=0;for(let r=t.length;i<r;i+=1){let a=t[i];a&&n===-1?n=i:!a&&n!==-1&&(o=i-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[i-1]&&i-n>=e&&s.push([n,i-1]),s}const te=32;function Dn(t,e,s,{location:n=y.location,distance:o=y.distance,threshold:i=y.threshold,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,includeMatches:l=y.includeMatches,ignoreLocation:c=y.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let _=i,k=p;const v=a>1||l,$=v?Array(f):[];let M;for(;(M=t.indexOf(e,k))>-1;){let I=_e(e,{currentLocation:M,expectedLocation:p,distance:o,ignoreLocation:c});if(_=Math.min(I,_),k=M+d,v){let C=0;for(;C<d;)$[M+C]=1,C+=1}}k=-1;let R=[],w=1,T=d+f;const m=1<<d-1;for(let I=0;I<d;I+=1){let C=0,j=T;for(;C<j;)_e(e,{errors:I,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=_?C=j:T=j,j=Math.floor((T-C)/2+C);T=j;let ie=Math.max(1,p-j+1),F=r?f:Math.min(p+j,f)+d,q=Array(F+2);q[F+1]=(1<<I)-1;for(let B=F;B>=ie;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(v&&($[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,I&&(q[B]|=(R[B+1]|R[B])<<1|1|R[B+1]),q[B]&m&&(w=_e(e,{errors:I,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=_)){if(_=w,k=ne,k<=p)break;ie=Math.max(1,2*p-k)}}if(_e(e,{errors:I+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>_)break;R=q}const P={isMatch:k>=0,score:Math.max(.001,w)};if(v){const I=On($,a);I.length?l&&(P.indices=I):P.isMatch=!1}return P}function Vn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=y.location,threshold:n=y.threshold,distance:o=y.distance,includeMatches:i=y.includeMatches,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:l=y.isCaseSensitive,ignoreLocation:c=y.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,_)=>{this.chunks.push({pattern:p,alphabet:Vn(p),startIndex:_})},f=this.pattern.length;if(f>te){let p=0;const _=f%te,k=f-_;for(;p<k;)d(this.pattern.substr(p,te),p),p+=te;if(_){const v=f-te;d(this.pattern.substr(v),v)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let k={isMatch:!0,score:0};return n&&(k.indices=[[0,e.length-1]]),k}const{location:o,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:k,alphabet:v,startIndex:$})=>{const{isMatch:M,score:R,indices:w}=Dn(e,k,v,{location:o+$,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});M&&(p=!0),f+=R,M&&w&&(d=[...d,...w])});let _={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(_.indices=d),_}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Fn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=y.location,threshold:n=y.threshold,distance:o=y.distance,includeMatches:i=y.includeMatches,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:l=y.isCaseSensitive,ignoreLocation:c=y.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+i,o.push([n,s-1]);const r=!!o.length;return{isMatch:r,score:r?0:1,indices:o}}}const Te=[Fn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Te.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(i=>i&&!!i.trim()),o=[];for(let i=0,r=n.length;i<r;i+=1){const a=n[i];let l=!1,c=-1;for(;!l&&++c<et;){const d=Te[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Te[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=y.isCaseSensitive,includeMatches:n=y.includeMatches,minMatchCharLength:o=y.minMatchCharLength,ignoreLocation:i=y.ignoreLocation,findAllMatches:r=y.findAllMatches,location:a=y.location,threshold:l=y.threshold,distance:c=y.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:r,ignoreLocation:i,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let i=0,r=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];r.length=0,i=0;for(let f=0,p=d.length;f<p;f+=1){const _=d[f],{isMatch:k,indices:v,score:$}=_.search(e);if(k){if(i+=1,a+=$,n){const M=_.constructor.type;Yn.has(M)?r=[...r,...v]:r.push(v)}}else{a=0,i=0,r.length=0;break}}if(i){let f={isMatch:!0,score:a/i};return n&&(f.indices=r),f}}return{isMatch:!1,score:1}}}const Pe=[];function Xn(...t){Pe.push(...t)}function Oe(t,e){for(let s=0,n=Pe.length;s<n;s+=1){let o=Pe[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Ve=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Ve(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let i=Object.keys(o);const r=Jn(o);if(!r&&i.length>1&&!Ve(o))return n(tt(o));if(qn(o)){const l=r?o[De.PATH]:i[0],c=r?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:i[0]};return i.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Ve(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=y.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:i,score:r})=>{const a=o?o.weight:null;n*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(e?1:i))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:i}=n;let r={indices:o,value:i};n.key&&(r.key=n.key.src),n.idx>-1&&(r.refIndex=n.idx),e.matches.push(r)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=y.includeMatches,includeScore:n=y.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(i=>{const{idx:r}=i,a={item:e[r],refIndex:r};return o.length&&o.forEach(l=>{l(i,a)}),a})}class oe{constructor(e,s={},n){this.options={...y,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,o-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:i,sortFn:r,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),i&&l.sort(r),vt(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:i,i:r,n:a})=>{if(!K(i))return;const{isMatch:l,score:c,indices:d}=s.searchIn(i);l&&o.push({item:i,idx:r,matches:[{score:c,value:i,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,_=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return _&&_.length?[{idx:c,item:l,matches:_}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const _=a.children[f],k=n(_,l,c);if(k.length)d.push(...k);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,i={},r=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(i[l]||(i[l]={idx:l,item:a,matches:[]},r.push(i[l])),c.forEach(({matches:d})=>{i[l].matches.push(...d)}))}}),r}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,i=[];return o.forEach(({$:r,i:a})=>{if(!K(r))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:r[d],searcher:s}))}),l.length&&i.push({idx:a,item:r,matches:l})}),i}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:i,i:r,n:a})=>{if(!K(i))return;const{isMatch:l,score:c,indices:d}=n.searchIn(i);l&&o.push({score:c,key:e,value:i,idx:r,norm:a,indices:d})});else{const{v:i,n:r}=s,{isMatch:a,score:l,indices:c}=n.searchIn(i);a&&o.push({score:l,key:e,value:i,norm:r,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Pn;oe.config=y;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},io={key:2},ro=b("li",null,"Contexte",-1),ao=[ro],lo={key:3},co=b("li",null,"Contexte",-1),uo=[co],ho={key:4},fo=b("li",null,"Pipeline",-1),po=[fo],_o={key:5,start:"2"},vo=b("li",null,"Reproductibilité",-1),go=[vo],mo={key:6,start:"2"},yo=b("li",null,"Reproductibilité",-1),ko=[yo],wo={key:7,start:"2"},xo=b("li",null,"Portabilité",-1),bo=[xo],So={key:8,start:"2"},Mo=b("li",null,"Performances",-1),$o=[Mo],Co={key:9,start:"3"},Eo=b("li",null,"Validation",-1),Io=[Eo],Ro={key:10,start:"3"},No=b("li",null,"Validation: séquencage et pipeline",-1),Ao=[No],Lo={key:11,start:"3"},To=b("li",null,"Validation",-1),Po=[To],Oo={key:12},Do={key:13},Vo={key:14},Fo={key:15},jo={key:16},Bo=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Rs(),n=N(()=>+(e.no??s.value));return(o,i)=>(h(),g("div",null,[n.value===1?(h(),g("p",no,"Bisonex")):n.value===2?(h(),g("p",oo,"Plan")):n.value===3?(h(),g("ol",io,[...ao])):n.value===4?(h(),g("ol",lo,[...uo])):n.value===5?(h(),g("ol",ho,[...po])):n.value===6?(h(),g("ol",_o,[...go])):n.value===7?(h(),g("ol",mo,[...ko])):n.value===8?(h(),g("ol",wo,[...bo])):n.value===9?(h(),g("ol",So,[...$o])):n.value===10?(h(),g("ol",Co,[...Io])):n.value===11?(h(),g("ol",Ro,[...Ao])):n.value===12?(h(),g("ol",Lo,[...Po])):n.value===13?(h(),g("p",Oo,"In silico")):n.value===14?(h(),g("p",Do,"In silico")):n.value===15?(h(),g("p",Vo,"Non-infériorité")):n.value===16?(h(),g("p",Fo,"Nouveaux diagnostics")):n.value===17?(h(),g("p",jo,"Conclusion")):S("v-if",!0)]))}}),Go=U(Bo,[["__file","/@slidev/title-renderer.md"]]),Wo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},Ko=["value","disabled"],zo=["border","onClick"],Ho={"w-4":"","text-right":"",op50:"","text-sm":""},Uo=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),i=D(""),r=D(0),{go:a,slides:l}=se();function c(m){return m!=null}const d=N(()=>new oe(l.value.map(m=>{var P;return(P=m.meta)==null?void 0:P.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=N(()=>i.value.startsWith("/")?i.value.substring(1):i.value),p=N(()=>d.value.search(f.value).map(m=>m.item)),_=N(()=>!!p.value.length);function k(){if(_.value){const m=p.value.at(r.value||0);m&&a(m.no)}v()}function v(){i.value="",Z.value=!1}function $(m){m.preventDefault(),r.value++,r.value>=p.value.length&&(r.value=0),R()}function M(m){m.preventDefault(),r.value--,r.value<=-2&&(r.value=p.value.length-1),R()}function R(){var P;const m=(P=o.value)==null?void 0:P[r.value];m&&n.value&&(m.offsetTop+m.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:m.offsetTop+m.offsetHeight-n.value.offsetHeight+1}):m.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:m.offsetTop}))}function w(m){r.value=0,i.value=m.target.value}function T(m){a(m),v()}return me(Z,async m=>{var P;m?(i.value="",r.value=0,setTimeout(()=>{var I;return(I=s.value)==null?void 0:I.focus()},0)):(P=s.value)==null||P.blur()}),me(ae,()=>{var m;(m=e.value)!=null&&m.contains(ae.value)||v()}),(m,P)=>(h(),g("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:V(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[b("div",Wo,[b("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:i.value,type:"text",disabled:!u(Z),class:V(["outline-none bg-transparent",{"text-red-400":!_.value&&i.value}]),placeholder:"Goto...",onKeydown:[he(k,["enter"]),he(v,["escape"]),he($,["down"]),he(M,["up"])],onInput:w},null,42,Ko)]),p.value.length>0?(h(),g("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),g(H,null,ke(p.value,(I,C)=>(h(),g("li",{ref_for:!0,ref_key:"items",ref:o,key:I.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:C===0?"":"t main",class:V(r.value===C?"bg-active op100":"op80"),onClick:Qt(j=>T(I.no),["stop","prevent"])},[b("div",Ho,X(I.no),1),x(u(Go),{no:I.no},null,8,["no"])],10,zo))),128))],512)):S("v-if",!0)],2))}}),hi=U(Uo,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function Yo(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((i,r)=>{var v,$,M,R;const a=(v=Ue(r.params.no))==null?void 0:v.meta,l=($=Ue(i.params.no))==null?void 0:$.meta,c=(M=a==null?void 0:a.slide)==null?void 0:M.no,d=(R=l==null?void 0:l.slide)==null?void 0:R.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??re.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,T)=>{s=w,n=T});let _;const k=new Promise(w=>_=w);return setTimeout(()=>{document.startViewTransition(()=>(_(),p))},50),k}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const Qo={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},Xo=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),g("div",Qo,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):S("v-if",!0)}}}),Jo=U(Xo,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),qo=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),Zo=qo(()=>b("div",{id:"twoslash-container"},null,-1)),ei=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:i,slides:r,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var _,k;(_=e.value)!=null&&_.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(k=i.value)!=null&&k.meta&&i.value.meta.preload!==!1&&(i.value.meta.__preloaded=!0)},{immediate:!0});const c=Yo(),d=Ie();rt(()=>import("./DrawingLayer-B2LbI7yb.js"),__vite__mapDeps([12,2,9,6,3,4,7,5,8,10])).then(_=>d.value=_.default);const f=N(()=>r.value.filter(_=>{var k;return((k=_.meta)==null?void 0:k.__preloaded)||_===e.value}));function p(){Ye.value=!0,Ns()}return(_,k)=>(h(),g(H,null,[S(" Global Bottom "),x(u(ds)),S(" Slides "),(h(),E(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:A(()=>[(h(!0),g(H,null,ke(f.value,v=>ot((h(),g("div",{key:v.no},[x(ht,{is:v.component,"clicks-context":u(a)&&!u(l)?u(at)(v,u(lt)):u(n)(v),class:V([u(ft)(v),"overflow-hidden"]),route:v,"render-context":_.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[it,v===u(e)]])),128))]),_:1},16)),Zo,S(" Global Top "),x(u(hs)),d.value?(h(),E(u(d),{key:0})):S("v-if",!0),u(o)?S("v-if",!0):(h(),E(Jo,{key:1}))],64))}}),fi=U(ei,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{hi as G,z as I,ui as N,di as Q,Bs as S,pe as V,fi as a,ci as r,li as u};
`)),Gt(ns,c),(p,_)=>(h(),g("div",{id:"slide-container",ref_key:"root",ref:o,class:V(["slidev-slides-container",f.value])},[b("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Fe(t,"modelValue",e,{passive:!0});return(i,r)=>{const a=fs;return h(),g("div",Gs,[b("div",Ws,X(t.title),1),b("div",Ks,[(h(!0),g(H,null,ke(t.items,l=>(h(),g("div",{key:l.value,class:V(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:V(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),g("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Fe(t,"modelValue",e,{passive:!0}),i=D();return Kt(i,()=>{o.value=!1}),(r,a)=>(h(),g("div",{ref_key:"el",ref:i,class:"flex relative"},[b("button",{class:V({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(r.$slots,"button",{class:V({disabled:t.disabled})})],2),(h(),E(zt,null,[u(o)?(h(),g("div",Js,[le(r.$slots,"menu")])):S("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),g("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),E(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:A(()=>[b("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[b("div",{class:V(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:i,isEmbedded:r,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:_}=je(),k=Ae.smaller("md"),{isFullscreen:v,toggle:$}=dt,M=N(()=>s.value.query.password),R=N(()=>M.value?`?password=${M.value}`:""),w=N(()=>`${ze(n.value,!0)}${R.value}`),T=N(()=>`${ze(n.value,!1)}${R.value}`),m=D();function P(){m.value&&ae.value&&m.value.contains(ae.value)&&ae.value.blur()}const I=N(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),C=Ie(),j=Ie();return rt(()=>import("./DrawingControls-CKFjkIZz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(ie=>j.value=ie.default),(ie,F)=>{const q=ps,We=_s,B=vs,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Rt=Ss,Ke=Ht("RouterLink"),Nt=Ms,At=$s,Lt=Cs,Tt=Es,Pt=xs;return h(),g("nav",{ref_key:"root",ref:m,class:"flex flex-col"},[b("div",{class:V(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",I.value]),onMouseleave:P},[u(r)?S("v-if",!0):(h(),E(z,{key:0,title:u(v)?"Close fullscreen":"Enter fullscreen",onClick:u($)},{default:A(()=>[u(v)?(h(),E(q,{key:0})):(h(),E(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:V({disabled:!u(i)}),title:"Go to previous slide",onClick:u(d)},{default:A(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:V({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:A(()=>[x(ne)]),_:1},8,["class","onClick"]),u(r)?S("v-if",!0):(h(),E(z,{key:1,title:"Show slide overview",onClick:F[0]||(F[0]=de=>u(Ne)())},{default:A(()=>[x(ue)]),_:1})),u(os)?S("v-if",!0):(h(),E(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:F[1]||(F[1]=de=>u(Re)())},{default:A(()=>[u(He)?(h(),E(Mt,{key:0})):(h(),E($t,{key:1}))]),_:1},8,["title"])),x(pe),u(r)?S("v-if",!0):(h(),g(H,{key:3},[!u(a)&&!u(k)&&C.value?(h(),g(H,{key:0},[x(u(C)),x(pe)],64)):S("v-if",!0),u(a)?(h(),E(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:F[2]||(F[2]=de=>fe.value=!u(fe))},{default:A(()=>[u(fe)?(h(),E(Ct,{key:0})):(h(),E(Et,{key:1}))]),_:1},8,["title"])):S("v-if",!0)],64)),(!u(re).drawings.presenterOnly||u(a))&&!u(r)?(h(),g(H,{key:4},[x(z,{class:"relative",title:u(_)?"Hide drawing toolbar":"Show drawing toolbar",onClick:F[3]||(F[3]=de=>_.value=!u(_))},{default:A(()=>[x(It),u(_)?(h(),g("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):S("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):S("v-if",!0),u(r)?S("v-if",!0):(h(),g(H,{key:5},[u(a)?(h(),E(Ke,{key:0,to:T.value,class:"slidev-icon-btn",title:"Play Mode"},{default:A(()=>[x(Rt)]),_:1},8,["to"])):S("v-if",!0),u(l)?(h(),E(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:A(()=>[x(Nt)]),_:1},8,["to"])):S("v-if",!0),S("v-if",!0),u(a)?(h(),E(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:A(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):S("v-if",!0)],64)),(h(),g(H,{key:6},[u(re).download?(h(),E(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:A(()=>[x(Lt)]),_:1},8,["onClick"])):S("v-if",!0)],64)),!u(a)&&u(re).info&&!u(r)?(h(),E(z,{key:7,title:"Show info",onClick:F[5]||(F[5]=de=>Qe.value=!u(Qe))},{default:A(()=>[x(Tt)]),_:1})):S("v-if",!0),!u(a)&&!u(r)?(h(),E(Zs,{key:8},{button:A(()=>[x(z,{title:"Adjust settings"},{default:A(()=>[x(Pt)]),_:1})]),menu:A(()=>[x(Xs)]),_:1})):S("v-if",!0),u(r)?S("v-if",!0):(h(),E(pe,{key:9})),b("div",an,[b("div",ln,[Ee(X(u(n))+" ",1),b("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),ui=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},_n={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,vn=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Fe(t,"modelValue",e),{currentSlideNo:i,go:r,slides:a}=se();function l(){o.value=!1}function c($){r($),l()}function d($){return $===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),_=N(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),k=N(()=>Math.floor((Me.width.value-$e)/(_.value+Xe))),v=D("");return Ut("keypress",$=>{if(!G.value){v.value="";return}if($.key==="Enter"){$.preventDefault(),v.value?(c(+v.value),v.value=""):c(O.value);return}const M=Number.parseInt($.key.replace(/[^0-9]/g,""));if(Number.isNaN(M)){v.value="";return}if(!v.value&&M===0)return;if(v.value+=String(M),+v.value>=a.value.length){v.value="";return}const R=a.value.findIndex(w=>`/${w.no}`===v.value);R!==-1&&(O.value=R+1),+v.value*10>a.value.length&&(c(+v.value),v.value="")}),st(()=>{O.value=i.value,Be.value=k.value}),($,M)=>{const R=Is;return h(),g(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:A(()=>[ot(b("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:M[0]||(M[0]=w=>l())},[b("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${_.value}px,1fr))`)},[(h(!0),g(H,null,ke(u(a),(w,T)=>(h(),g("div",{key:w.no,class:"relative"},[b("div",{class:V(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(T+1)||u(O)===T+1?"border-primary":"border-main"]),onClick:m=>c(w.no)},[(h(),E(Bs,{key:w.no,width:_.value,class:"pointer-events-none"},{default:A(()=>[w!=null&&w.component?(h(),E(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:V(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):S("v-if",!0),x(is,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),b("div",{class:"absolute top-0",style:ce(`left: ${_.value+5}px`)},[v.value&&String(T+1).startsWith(v.value)?(h(),g(H,{key:0},[b("span",hn,X(v.value),1),b("span",fn,X(String(T+1).slice(v.value.length)),1)],64)):(h(),g("span",pn,X(T+1),1))],4)]))),128))],4)],512),[[it,u(o)]])]),_:1}),u(o)?(h(),g("div",_n,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:A(()=>[x(R)]),_:1}),S("v-if",!0)])):S("v-if",!0)],64)}}}),di=U(vn,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function vt(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,i=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const r=t.name;if(n=r,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(r));e=qe(r),s=Le(r),i=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:i}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(i,r,a)=>{if(K(i))if(!r[a])s.push(i);else{let l=r[a];const c=i[l];if(!K(c))return;if(a===r.length-1&&(Q(c)||vt(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],r,a+1)}else r.length&&o(c,r,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Rn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Nn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var y={...Rn,...In,...Nn,...An};const Ln=/[^ ]+/g;function Tn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const i=o.match(Ln).length;if(s.has(i))return s.get(i);const r=1/Math.pow(i,.5*t),a=parseFloat(Math.round(r*n)/n);return s.set(i,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=y.getFn,fieldNormWeight:s=y.fieldNormWeight}={}){this.norm=Tn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,i)=>{let r=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(r)){if(J(r)){let a=[];const l=[{nestedArrIndex:-1,value:r}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[i]=a}else if(Q(r)&&!Ce(r)){let a={v:r,n:this.norm.get(r)};n.$[i]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Pn(t,{getFn:e=y.getFn,fieldNormWeight:s=y.fieldNormWeight}={}){const{keys:n,records:o}=t,i=new Ge({getFn:e,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(o),i}function _e(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=y.distance,ignoreLocation:i=y.ignoreLocation}={}){const r=e/t.length;if(i)return r;const a=Math.abs(n-s);return o?r+a/o:a?1:r}function On(t=[],e=y.minMatchCharLength){let s=[],n=-1,o=-1,i=0;for(let r=t.length;i<r;i+=1){let a=t[i];a&&n===-1?n=i:!a&&n!==-1&&(o=i-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[i-1]&&i-n>=e&&s.push([n,i-1]),s}const te=32;function Dn(t,e,s,{location:n=y.location,distance:o=y.distance,threshold:i=y.threshold,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,includeMatches:l=y.includeMatches,ignoreLocation:c=y.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let _=i,k=p;const v=a>1||l,$=v?Array(f):[];let M;for(;(M=t.indexOf(e,k))>-1;){let I=_e(e,{currentLocation:M,expectedLocation:p,distance:o,ignoreLocation:c});if(_=Math.min(I,_),k=M+d,v){let C=0;for(;C<d;)$[M+C]=1,C+=1}}k=-1;let R=[],w=1,T=d+f;const m=1<<d-1;for(let I=0;I<d;I+=1){let C=0,j=T;for(;C<j;)_e(e,{errors:I,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=_?C=j:T=j,j=Math.floor((T-C)/2+C);T=j;let ie=Math.max(1,p-j+1),F=r?f:Math.min(p+j,f)+d,q=Array(F+2);q[F+1]=(1<<I)-1;for(let B=F;B>=ie;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(v&&($[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,I&&(q[B]|=(R[B+1]|R[B])<<1|1|R[B+1]),q[B]&m&&(w=_e(e,{errors:I,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=_)){if(_=w,k=ne,k<=p)break;ie=Math.max(1,2*p-k)}}if(_e(e,{errors:I+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>_)break;R=q}const P={isMatch:k>=0,score:Math.max(.001,w)};if(v){const I=On($,a);I.length?l&&(P.indices=I):P.isMatch=!1}return P}function Vn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=y.location,threshold:n=y.threshold,distance:o=y.distance,includeMatches:i=y.includeMatches,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:l=y.isCaseSensitive,ignoreLocation:c=y.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,_)=>{this.chunks.push({pattern:p,alphabet:Vn(p),startIndex:_})},f=this.pattern.length;if(f>te){let p=0;const _=f%te,k=f-_;for(;p<k;)d(this.pattern.substr(p,te),p),p+=te;if(_){const v=f-te;d(this.pattern.substr(v),v)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let k={isMatch:!0,score:0};return n&&(k.indices=[[0,e.length-1]]),k}const{location:o,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:k,alphabet:v,startIndex:$})=>{const{isMatch:M,score:R,indices:w}=Dn(e,k,v,{location:o+$,distance:i,threshold:r,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});M&&(p=!0),f+=R,M&&w&&(d=[...d,...w])});let _={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(_.indices=d),_}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Fn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=y.location,threshold:n=y.threshold,distance:o=y.distance,includeMatches:i=y.includeMatches,findAllMatches:r=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:l=y.isCaseSensitive,ignoreLocation:c=y.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:i,findAllMatches:r,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+i,o.push([n,s-1]);const r=!!o.length;return{isMatch:r,score:r?0:1,indices:o}}}const Te=[Fn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Te.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(i=>i&&!!i.trim()),o=[];for(let i=0,r=n.length;i<r;i+=1){const a=n[i];let l=!1,c=-1;for(;!l&&++c<et;){const d=Te[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Te[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=y.isCaseSensitive,includeMatches:n=y.includeMatches,minMatchCharLength:o=y.minMatchCharLength,ignoreLocation:i=y.ignoreLocation,findAllMatches:r=y.findAllMatches,location:a=y.location,threshold:l=y.threshold,distance:c=y.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:r,ignoreLocation:i,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let i=0,r=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];r.length=0,i=0;for(let f=0,p=d.length;f<p;f+=1){const _=d[f],{isMatch:k,indices:v,score:$}=_.search(e);if(k){if(i+=1,a+=$,n){const M=_.constructor.type;Yn.has(M)?r=[...r,...v]:r.push(v)}}else{a=0,i=0,r.length=0;break}}if(i){let f={isMatch:!0,score:a/i};return n&&(f.indices=r),f}}return{isMatch:!1,score:1}}}const Pe=[];function Xn(...t){Pe.push(...t)}function Oe(t,e){for(let s=0,n=Pe.length;s<n;s+=1){let o=Pe[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Ve=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Ve(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let i=Object.keys(o);const r=Jn(o);if(!r&&i.length>1&&!Ve(o))return n(tt(o));if(qn(o)){const l=r?o[De.PATH]:i[0],c=r?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:i[0]};return i.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Ve(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=y.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:i,score:r})=>{const a=o?o.weight:null;n*=Math.pow(r===0&&a?Number.EPSILON:r,(a||1)*(e?1:i))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:i}=n;let r={indices:o,value:i};n.key&&(r.key=n.key.src),n.idx>-1&&(r.refIndex=n.idx),e.matches.push(r)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=y.includeMatches,includeScore:n=y.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(i=>{const{idx:r}=i,a={item:e[r],refIndex:r};return o.length&&o.forEach(l=>{l(i,a)}),a})}class oe{constructor(e,s={},n){this.options={...y,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,o-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:i,sortFn:r,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),i&&l.sort(r),vt(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:i,i:r,n:a})=>{if(!K(i))return;const{isMatch:l,score:c,indices:d}=s.searchIn(i);l&&o.push({item:i,idx:r,matches:[{score:c,value:i,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,_=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return _&&_.length?[{idx:c,item:l,matches:_}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const _=a.children[f],k=n(_,l,c);if(k.length)d.push(...k);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,i={},r=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(i[l]||(i[l]={idx:l,item:a,matches:[]},r.push(i[l])),c.forEach(({matches:d})=>{i[l].matches.push(...d)}))}}),r}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,i=[];return o.forEach(({$:r,i:a})=>{if(!K(r))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:r[d],searcher:s}))}),l.length&&i.push({idx:a,item:r,matches:l})}),i}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:i,i:r,n:a})=>{if(!K(i))return;const{isMatch:l,score:c,indices:d}=n.searchIn(i);l&&o.push({score:c,key:e,value:i,idx:r,norm:a,indices:d})});else{const{v:i,n:r}=s,{isMatch:a,score:l,indices:c}=n.searchIn(i);a&&o.push({score:l,key:e,value:i,norm:r,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Pn;oe.config=y;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},io={key:2},ro=b("li",null,"Contexte",-1),ao=[ro],lo={key:3},co=b("li",null,"Contexte",-1),uo=[co],ho={key:4},fo=b("li",null,"Pipeline",-1),po=[fo],_o={key:5,start:"2"},vo=b("li",null,"Reproductibilité",-1),go=[vo],mo={key:6,start:"2"},yo=b("li",null,"Reproductibilité",-1),ko=[yo],wo={key:7,start:"2"},xo=b("li",null,"Portabilité",-1),bo=[xo],So={key:8,start:"2"},Mo=b("li",null,"Performances",-1),$o=[Mo],Co={key:9,start:"3"},Eo=b("li",null,"Validation",-1),Io=[Eo],Ro={key:10,start:"3"},No=b("li",null,"Validation: séquencage et pipeline",-1),Ao=[No],Lo={key:11,start:"3"},To=b("li",null,"Validation",-1),Po=[To],Oo={key:12},Do={key:13},Vo={key:14},Fo={key:15},jo={key:16},Bo=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Rs(),n=N(()=>+(e.no??s.value));return(o,i)=>(h(),g("div",null,[n.value===1?(h(),g("p",no,"Bisonex")):n.value===2?(h(),g("p",oo,"Plan")):n.value===3?(h(),g("ol",io,[...ao])):n.value===4?(h(),g("ol",lo,[...uo])):n.value===5?(h(),g("ol",ho,[...po])):n.value===6?(h(),g("ol",_o,[...go])):n.value===7?(h(),g("ol",mo,[...ko])):n.value===8?(h(),g("ol",wo,[...bo])):n.value===9?(h(),g("ol",So,[...$o])):n.value===10?(h(),g("ol",Co,[...Io])):n.value===11?(h(),g("ol",Ro,[...Ao])):n.value===12?(h(),g("ol",Lo,[...Po])):n.value===13?(h(),g("p",Oo,"In silico")):n.value===14?(h(),g("p",Do,"In silico")):n.value===15?(h(),g("p",Vo,"Non-infériorité")):n.value===16?(h(),g("p",Fo,"Nouveaux diagnostics")):n.value===17?(h(),g("p",jo,"Conclusion")):S("v-if",!0)]))}}),Go=U(Bo,[["__file","/@slidev/title-renderer.md"]]),Wo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},Ko=["value","disabled"],zo=["border","onClick"],Ho={"w-4":"","text-right":"",op50:"","text-sm":""},Uo=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),i=D(""),r=D(0),{go:a,slides:l}=se();function c(m){return m!=null}const d=N(()=>new oe(l.value.map(m=>{var P;return(P=m.meta)==null?void 0:P.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=N(()=>i.value.startsWith("/")?i.value.substring(1):i.value),p=N(()=>d.value.search(f.value).map(m=>m.item)),_=N(()=>!!p.value.length);function k(){if(_.value){const m=p.value.at(r.value||0);m&&a(m.no)}v()}function v(){i.value="",Z.value=!1}function $(m){m.preventDefault(),r.value++,r.value>=p.value.length&&(r.value=0),R()}function M(m){m.preventDefault(),r.value--,r.value<=-2&&(r.value=p.value.length-1),R()}function R(){var P;const m=(P=o.value)==null?void 0:P[r.value];m&&n.value&&(m.offsetTop+m.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:m.offsetTop+m.offsetHeight-n.value.offsetHeight+1}):m.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:m.offsetTop}))}function w(m){r.value=0,i.value=m.target.value}function T(m){a(m),v()}return me(Z,async m=>{var P;m?(i.value="",r.value=0,setTimeout(()=>{var I;return(I=s.value)==null?void 0:I.focus()},0)):(P=s.value)==null||P.blur()}),me(ae,()=>{var m;(m=e.value)!=null&&m.contains(ae.value)||v()}),(m,P)=>(h(),g("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:V(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[b("div",Wo,[b("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:i.value,type:"text",disabled:!u(Z),class:V(["outline-none bg-transparent",{"text-red-400":!_.value&&i.value}]),placeholder:"Goto...",onKeydown:[he(k,["enter"]),he(v,["escape"]),he($,["down"]),he(M,["up"])],onInput:w},null,42,Ko)]),p.value.length>0?(h(),g("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),g(H,null,ke(p.value,(I,C)=>(h(),g("li",{ref_for:!0,ref_key:"items",ref:o,key:I.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:C===0?"":"t main",class:V(r.value===C?"bg-active op100":"op80"),onClick:Qt(j=>T(I.no),["stop","prevent"])},[b("div",Ho,X(I.no),1),x(u(Go),{no:I.no},null,8,["no"])],10,zo))),128))],512)):S("v-if",!0)],2))}}),hi=U(Uo,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function Yo(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((i,r)=>{var v,$,M,R;const a=(v=Ue(r.params.no))==null?void 0:v.meta,l=($=Ue(i.params.no))==null?void 0:$.meta,c=(M=a==null?void 0:a.slide)==null?void 0:M.no,d=(R=l==null?void 0:l.slide)==null?void 0:R.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??re.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,T)=>{s=w,n=T});let _;const k=new Promise(w=>_=w);return setTimeout(()=>{document.startViewTransition(()=>(_(),p))},50),k}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const Qo={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},Xo=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),g("div",Qo,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):S("v-if",!0)}}}),Jo=U(Xo,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),qo=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),Zo=qo(()=>b("div",{id:"twoslash-container"},null,-1)),ei=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:i,slides:r,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var _,k;(_=e.value)!=null&&_.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(k=i.value)!=null&&k.meta&&i.value.meta.preload!==!1&&(i.value.meta.__preloaded=!0)},{immediate:!0});const c=Yo(),d=Ie();rt(()=>import("./DrawingLayer-DClEm0Ct.js"),__vite__mapDeps([12,2,9,6,3,4,7,5,8,10])).then(_=>d.value=_.default);const f=N(()=>r.value.filter(_=>{var k;return((k=_.meta)==null?void 0:k.__preloaded)||_===e.value}));function p(){Ye.value=!0,Ns()}return(_,k)=>(h(),g(H,null,[S(" Global Bottom "),x(u(ds)),S(" Slides "),(h(),E(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:A(()=>[(h(!0),g(H,null,ke(f.value,v=>ot((h(),g("div",{key:v.no},[x(ht,{is:v.component,"clicks-context":u(a)&&!u(l)?u(at)(v,u(lt)):u(n)(v),class:V([u(ft)(v),"overflow-hidden"]),route:v,"render-context":_.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[it,v===u(e)]])),128))]),_:1},16)),Zo,S(" Global Top "),x(u(hs)),d.value?(h(),E(u(d),{key:0})):S("v-if",!0),u(o)?S("v-if",!0):(h(),E(Jo,{key:1}))],64))}}),fi=U(ei,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{hi as G,z as I,ui as N,di as Q,Bs as S,pe as V,fi as a,ci as r,li as u};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-Dn3czbSS.js";import{a as _,s as d,b as f}from"../index-DAyAARJ6.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-Dn3czbSS.js";import{a as _,s as d,b as f}from"../index-In0nWnaA.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-Dn3czbSS.js";import{C as w,b as $}from"../index-DAyAARJ6.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-Dn3czbSS.js";import{C as w,b as $}from"../index-In0nWnaA.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-DRxG33ha.js","assets/svgDrawCommon-99ae2c94-nN3IEmPJ.js","assets/modules/vue-Dn3czbSS.js","assets/index-DAyAARJ6.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/index-BhXaT91_.css","assets/modules/file-saver-EUMWMpoS.js","assets/flowDiagram-e44a2353-C6Blc42y.js","assets/flowDb-147da10a-Xbh17yDm.js","assets/graph-af3d5df6-G4pt95e-.js","assets/layout-6685625a-Cy4EINjB.js","assets/styles-c171666c-DE2DbEDk.js","assets/index-c8395ba2-CUL26JYA.js","assets/clone-d2e37f8c-dAYgJWEV.js","assets/edges-1e1ebc73-DfL1UQzG.js","assets/createText-f6615236-DUF4ZUeq.js","assets/line-65d70945-Dh_qJL7L.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-SDQyM1dq.js","assets/flowDiagram-v2-a8396bb5-B74dbC3N.js","assets/erDiagram-582bd92f-Ccqg-yjr.js","assets/gitGraphDiagram-d5d647e9-BratCnip.js","assets/ganttDiagram-05e48839-Dz-Sj_Vw.js","assets/linear-d94cf28d-B8lBgl9v.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-Dg1nOsZP.js","assets/pieDiagram-35c7eafc-CXFq73Yx.js","assets/arc-5aa99581-BAt7L7b4.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-sS1oBIBM.js","assets/xychartDiagram-7b46ecfd-8rmcSBfO.js","assets/requirementDiagram-e882bd67-Gt3FZorp.js","assets/sequenceDiagram-1767341c-BixUKZlS.js","assets/classDiagram-3275847a-DD52247R.js","assets/styles-d48462a7-gbf5kprD.js","assets/classDiagram-v2-2ed0a7d3-DMBta84D.js","assets/stateDiagram-d2e6f24f-CNUc15EO.js","assets/styles-15409a09-Btn6fNFs.js","assets/stateDiagram-v2-21d485ae-ZqgnNm3K.js","assets/journeyDiagram-a5efd2e1-ByB5ifbD.js","assets/flowchart-elk-definition-1a3aaf5d-Dp3LSEVo.js","assets/timeline-definition-f8c5dfc0-WZbFYFHM.js","assets/mindmap-definition-74120bdd-DcBUF-Id.js","assets/sankeyDiagram-f5d051b7-QfPRBOF9.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-CLRp_jQY.js"]
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-BthsVdlf.js","assets/svgDrawCommon-99ae2c94-C6DMen8v.js","assets/modules/vue-Dn3czbSS.js","assets/index-In0nWnaA.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/index-BhXaT91_.css","assets/modules/file-saver-EUMWMpoS.js","assets/flowDiagram-e44a2353-Bd51ruzh.js","assets/flowDb-147da10a-C4o8C-8b.js","assets/graph-af3d5df6-BLtirX5X.js","assets/layout-6685625a-DMWKrSBP.js","assets/styles-c171666c-CQKiCzoi.js","assets/index-c8395ba2-DEokOxbK.js","assets/clone-d2e37f8c-BJe3gSoD.js","assets/edges-1e1ebc73-BZ06lMIy.js","assets/createText-f6615236-DKVxcDu5.js","assets/line-65d70945-CE24BujY.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-CbTvIsJJ.js","assets/flowDiagram-v2-a8396bb5-mtMFyXJa.js","assets/erDiagram-582bd92f-DOIiJc_E.js","assets/gitGraphDiagram-d5d647e9-Bn6kD8v_.js","assets/ganttDiagram-05e48839-Ve1EYjux.js","assets/linear-d94cf28d-DicpOm0k.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-BnduELRN.js","assets/pieDiagram-35c7eafc-r555z7WS.js","assets/arc-5aa99581-BVENIv5_.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-DbcN-CiM.js","assets/xychartDiagram-7b46ecfd-C6bDt0kE.js","assets/requirementDiagram-e882bd67-CB0dhQHI.js","assets/sequenceDiagram-1767341c-BtmQPpcK.js","assets/classDiagram-3275847a-BbnOSsY_.js","assets/styles-d48462a7-HecvWbXS.js","assets/classDiagram-v2-2ed0a7d3-D4xK4OQk.js","assets/stateDiagram-d2e6f24f-BlG5qRMI.js","assets/styles-15409a09-DA-f8OQK.js","assets/stateDiagram-v2-21d485ae-Ka-eHEml.js","assets/journeyDiagram-a5efd2e1-BLhhTe7f.js","assets/flowchart-elk-definition-1a3aaf5d-e6CJZ48z.js","assets/timeline-definition-f8c5dfc0-D7dS-dC4.js","assets/mindmap-definition-74120bdd-C0A4iBuz.js","assets/sankeyDiagram-f5d051b7-D5qVDU31.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-DISuSZd4.js"]
import{d as Us,t as Xe,y as Bc,C as Ii,o as en,b as Ys,D as Ac,x as Lc,c as Fc,I as Ec}from"../modules/vue-Dn3czbSS.js";import{_ as Z,S as Bo,T as Oc,b as Gs,q as Mc}from"../index-DAyAARJ6.js";import{g as $c}from"../modules/file-saver-EUMWMpoS.js";function Ic(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
import{d as Us,t as Xe,y as Bc,C as Ii,o as en,b as Ys,D as Ac,x as Lc,c as Fc,I as Ec}from"../modules/vue-Dn3czbSS.js";import{_ as Z,S as Bo,T as Oc,b as Gs,q as Mc}from"../index-In0nWnaA.js";import{g as $c}from"../modules/file-saver-EUMWMpoS.js";function Ic(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},N_=function(t){return t.replace(ei,"")},R_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function P_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $_[i]??e}function q_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Xs.sanitizeUrl(i):i}const z_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function dl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t){let e,i=0;t.forEach(n=>{i+=dl(n,e),e=n});const r=i/2;return Hn(t,r)}function H_(t){return t.length===1?t[0]:W_(t)}const bs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=dl(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:bs((1-s)*i.x+s*n.x,5),y:bs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},j_=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function U_(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Y_(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const G_=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function V_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const X_=t=>V_(t.length),K_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Z_=function(t,e){const i=e.text.replace(Rn.lineBreakRegex," "),[,r]=Un(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},J_=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Rn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=ar(`${s} `,i),c=ar(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=Q_(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Q_=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(ar(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function t0(t,e){return jn(t,e).height}function ar(t,e){return jn(t,e).width}const jn=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Un(i),s=["sans-serif",r],a=t.split(Rn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=K_();w.text=T||M_;const A=Z_(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class e0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const i0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function pl(t){return"str"in t}const r0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Un=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gl(t,e){return O_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:J_,calculateTextHeight:t0,calculateTextWidth:ar,calculateTextDimensions:jn,cleanAndMerge:gl,detectInit:D_,detectDirective:fl,isSubstringInArray:R_,interpolateToCurve:P_,calcLabelPosition:H_,calcCardinalityPosition:j_,calcTerminalLabelPosition:U_,formatUrl:q_,getStylesFromArray:Y_,generateId:G_,random:X_,runFunc:z_,entityDecode:i0,insertTitle:r0,parseFontSize:Un,InitIDGenerator:e0},n0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},o0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var ml="comm",_l="rule",yl="decl",s0="@import",a0="@keyframes",l0="@layer",Cl=Math.abs,Yn=String.fromCharCode;function bl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function c0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function h0(t){return t.length}function $i(t,e){return e.push(t),t}var Lr=1,$e=1,xl=0,kt=0,tt=0,qe="";function Gn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Lr,column:$e,length:s,return:"",siblings:a}}function u0(){return tt}function f0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Lr--),tt}function Lt(){return tt=kt<xl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Lr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Fr(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d0(t){return Lr=$e=1,xl=Yt(qe=t),kt=0,[]}function p0(t){return qe="",t}function Xr(t){return bl(Fr(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function g0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function m0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Fr(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function _0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Fr(e,kt-1)+"*"+Yn(t===47?t:Lt())}function y0(t){for(;!_n(de());)Lt();return Fr(t,kt)}function C0(t){return p0(Ui("",null,null,null,[""],t=d0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){c0(b+=Hi(Xr(y),"&","&\f"),"&\f",Cl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Xr(y);break;case 9:case 10:case 13:case 32:b+=g0(_);break;case 92:b+=m0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(b0(_0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?vs(b+";",r,i,f-1,l):vs(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ts(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ts(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&f0()==125)continue}switch(b+=Yn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Xr(Lt())),h=de(),u=f=Yt(E=b+=y0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ts(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=h0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Cl(w=s[T])),L=t;y<_;++y)(L=bl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Gn(t,e,i,n===0?_l:a,l,c,u,f)}function b0(t,e,i,r){return Gn(t,e,i,ml,Yn(u0()),di(t,2,-2),0,r)}function vs(t,e,i,r,n){return Gn(t,e,i,yl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function x0(t,e,i,r){switch(t.type){case l0:if(t.children.length)break;case s0:case yl:return t.return=t.return||t.value;case ml:return"";case a0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case _l:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const ks="10.9.0",Ie=Object.freeze(Dp);let gt=lt({},Ie),Tl,De=[],ni=lt({},Ie);const Er=(t,e)=>{let i=lt({},t),r={};for(const n of e)Sl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Tl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,wl(ni),ni},T0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Er(gt,De),gt),v0=t=>{Tl=lt({},t)},k0=t=>(gt=lt(gt,t),Er(gt,De),gt),vl=()=>lt({},gt),kl=t=>(wl(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Sl=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Sl(t[e])}))},S0=t=>{ir(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Er(gt,De)},lr=(t=gt)=>{De=[],Er(t,De)},w0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ss={},B0=t=>{Ss[t]||(N.warn(w0[t]),Ss[t]=!0)},wl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&B0("LAZY_LOAD_DEPRECATED")},Bl="c4",A0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),L0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-DRxG33ha.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]));return{id:Bl,diagram:t}},F0={id:Bl,detector:A0,loader:L0},E0=F0,Al="flowchart",O0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},M0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-C6Blc42y.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Al,diagram:t}},$0={id:Al,detector:O0,loader:M0},I0=$0,Ll="flowchart-v2",D0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},N0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-B74dbC3N.js"),__vite__mapDeps([21,9,12,10,13,11,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Ll,diagram:t}},R0={id:Ll,detector:D0,loader:N0},P0=R0,Fl="er",q0=t=>/^\s*erDiagram/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-Ccqg-yjr.js"),__vite__mapDeps([22,10,11,17,18,19,2,3,4,5,6,7]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="gitGraph",j0=t=>/^\s*gitGraph/.test(t),U0=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-BratCnip.js"),__vite__mapDeps([23,2,3,4,5,6,7]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="gantt",V0=t=>/^\s*gantt/.test(t),X0=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-Dz-Sj_Vw.js"),__vite__mapDeps([24,25,26,2,3,4,5,6,7]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="info",J0=t=>/^\s*info/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-Dg1nOsZP.js"),__vite__mapDeps([27,2,3,4,5,6,7]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},$l="pie",ey=t=>/^\s*pie/.test(t),iy=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-CXFq73Yx.js"),__vite__mapDeps([28,29,19,30,26,18,2,3,4,5,6,7]));return{id:$l,diagram:t}},ry={id:$l,detector:ey,loader:iy},Il="quadrantChart",ny=t=>/^\s*quadrantChart/.test(t),oy=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-sS1oBIBM.js"),__vite__mapDeps([31,25,26,2,3,4,5,6,7]));return{id:Il,diagram:t}},sy={id:Il,detector:ny,loader:oy},ay=sy,Dl="xychart",ly=t=>/^\s*xychart-beta/.test(t),cy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-8rmcSBfO.js"),__vite__mapDeps([32,16,26,30,25,17,18,19,2,3,4,5,6,7]));return{id:Dl,diagram:t}},hy={id:Dl,detector:ly,loader:cy},uy=hy,Nl="requirement",fy=t=>/^\s*requirement(Diagram)?/.test(t),dy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-Gt3FZorp.js"),__vite__mapDeps([33,10,11,17,18,19,2,3,4,5,6,7]));return{id:Nl,diagram:t}},py={id:Nl,detector:fy,loader:dy},gy=py,Rl="sequence",my=t=>/^\s*sequenceDiagram/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-BixUKZlS.js"),__vite__mapDeps([34,1,2,3,4,5,6,7]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="class",by=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},xy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-DD52247R.js"),__vite__mapDeps([35,36,10,11,17,18,19,2,3,4,5,6,7]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="classDiagram",ky=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Sy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-DMBta84D.js"),__vite__mapDeps([37,36,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="state",Ay=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Ly=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-CNUc15EO.js"),__vite__mapDeps([38,39,10,11,17,18,19,2,3,4,5,6,7]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="stateDiagram",Oy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},My=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-ZqgnNm3K.js"),__vite__mapDeps([40,39,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="journey",Dy=t=>/^\s*journey/.test(t),Ny=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-ByB5ifbD.js"),__vite__mapDeps([41,1,29,19,2,3,4,5,6,7]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,qy=function(t,e){for(let i of e)t.attr(i[0],i[1])},zy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},jl=function(t,e,i,r){const n=zy(e,i,r);qy(t,n)},Wy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),jl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},Hy=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},N_=function(t){return t.replace(ei,"")},R_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function P_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $_[i]??e}function q_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Xs.sanitizeUrl(i):i}const z_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function dl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t){let e,i=0;t.forEach(n=>{i+=dl(n,e),e=n});const r=i/2;return Hn(t,r)}function H_(t){return t.length===1?t[0]:W_(t)}const bs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=dl(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:bs((1-s)*i.x+s*n.x,5),y:bs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},j_=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function U_(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Y_(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const G_=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function V_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const X_=t=>V_(t.length),K_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Z_=function(t,e){const i=e.text.replace(Rn.lineBreakRegex," "),[,r]=Un(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},J_=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Rn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=ar(`${s} `,i),c=ar(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=Q_(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Q_=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(ar(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function t0(t,e){return jn(t,e).height}function ar(t,e){return jn(t,e).width}const jn=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Un(i),s=["sans-serif",r],a=t.split(Rn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=K_();w.text=T||M_;const A=Z_(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class e0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const i0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function pl(t){return"str"in t}const r0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Un=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gl(t,e){return O_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:J_,calculateTextHeight:t0,calculateTextWidth:ar,calculateTextDimensions:jn,cleanAndMerge:gl,detectInit:D_,detectDirective:fl,isSubstringInArray:R_,interpolateToCurve:P_,calcLabelPosition:H_,calcCardinalityPosition:j_,calcTerminalLabelPosition:U_,formatUrl:q_,getStylesFromArray:Y_,generateId:G_,random:X_,runFunc:z_,entityDecode:i0,insertTitle:r0,parseFontSize:Un,InitIDGenerator:e0},n0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},o0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var ml="comm",_l="rule",yl="decl",s0="@import",a0="@keyframes",l0="@layer",Cl=Math.abs,Yn=String.fromCharCode;function bl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function c0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function h0(t){return t.length}function $i(t,e){return e.push(t),t}var Lr=1,$e=1,xl=0,kt=0,tt=0,qe="";function Gn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Lr,column:$e,length:s,return:"",siblings:a}}function u0(){return tt}function f0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Lr--),tt}function Lt(){return tt=kt<xl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Lr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Fr(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d0(t){return Lr=$e=1,xl=Yt(qe=t),kt=0,[]}function p0(t){return qe="",t}function Xr(t){return bl(Fr(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function g0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function m0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Fr(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function _0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Fr(e,kt-1)+"*"+Yn(t===47?t:Lt())}function y0(t){for(;!_n(de());)Lt();return Fr(t,kt)}function C0(t){return p0(Ui("",null,null,null,[""],t=d0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){c0(b+=Hi(Xr(y),"&","&\f"),"&\f",Cl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Xr(y);break;case 9:case 10:case 13:case 32:b+=g0(_);break;case 92:b+=m0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(b0(_0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?vs(b+";",r,i,f-1,l):vs(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ts(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ts(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&f0()==125)continue}switch(b+=Yn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Xr(Lt())),h=de(),u=f=Yt(E=b+=y0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ts(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=h0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Cl(w=s[T])),L=t;y<_;++y)(L=bl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Gn(t,e,i,n===0?_l:a,l,c,u,f)}function b0(t,e,i,r){return Gn(t,e,i,ml,Yn(u0()),di(t,2,-2),0,r)}function vs(t,e,i,r,n){return Gn(t,e,i,yl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function x0(t,e,i,r){switch(t.type){case l0:if(t.children.length)break;case s0:case yl:return t.return=t.return||t.value;case ml:return"";case a0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case _l:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const ks="10.9.0",Ie=Object.freeze(Dp);let gt=lt({},Ie),Tl,De=[],ni=lt({},Ie);const Er=(t,e)=>{let i=lt({},t),r={};for(const n of e)Sl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Tl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,wl(ni),ni},T0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Er(gt,De),gt),v0=t=>{Tl=lt({},t)},k0=t=>(gt=lt(gt,t),Er(gt,De),gt),vl=()=>lt({},gt),kl=t=>(wl(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Sl=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Sl(t[e])}))},S0=t=>{ir(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Er(gt,De)},lr=(t=gt)=>{De=[],Er(t,De)},w0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ss={},B0=t=>{Ss[t]||(N.warn(w0[t]),Ss[t]=!0)},wl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&B0("LAZY_LOAD_DEPRECATED")},Bl="c4",A0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),L0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-BthsVdlf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]));return{id:Bl,diagram:t}},F0={id:Bl,detector:A0,loader:L0},E0=F0,Al="flowchart",O0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},M0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-Bd51ruzh.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Al,diagram:t}},$0={id:Al,detector:O0,loader:M0},I0=$0,Ll="flowchart-v2",D0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},N0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-mtMFyXJa.js"),__vite__mapDeps([21,9,12,10,13,11,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Ll,diagram:t}},R0={id:Ll,detector:D0,loader:N0},P0=R0,Fl="er",q0=t=>/^\s*erDiagram/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-DOIiJc_E.js"),__vite__mapDeps([22,10,11,17,18,19,2,3,4,5,6,7]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="gitGraph",j0=t=>/^\s*gitGraph/.test(t),U0=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-Bn6kD8v_.js"),__vite__mapDeps([23,2,3,4,5,6,7]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="gantt",V0=t=>/^\s*gantt/.test(t),X0=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-Ve1EYjux.js"),__vite__mapDeps([24,25,26,2,3,4,5,6,7]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="info",J0=t=>/^\s*info/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-BnduELRN.js"),__vite__mapDeps([27,2,3,4,5,6,7]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},$l="pie",ey=t=>/^\s*pie/.test(t),iy=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-r555z7WS.js"),__vite__mapDeps([28,29,19,30,26,18,2,3,4,5,6,7]));return{id:$l,diagram:t}},ry={id:$l,detector:ey,loader:iy},Il="quadrantChart",ny=t=>/^\s*quadrantChart/.test(t),oy=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-DbcN-CiM.js"),__vite__mapDeps([31,25,26,2,3,4,5,6,7]));return{id:Il,diagram:t}},sy={id:Il,detector:ny,loader:oy},ay=sy,Dl="xychart",ly=t=>/^\s*xychart-beta/.test(t),cy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-C6bDt0kE.js"),__vite__mapDeps([32,16,26,30,25,17,18,19,2,3,4,5,6,7]));return{id:Dl,diagram:t}},hy={id:Dl,detector:ly,loader:cy},uy=hy,Nl="requirement",fy=t=>/^\s*requirement(Diagram)?/.test(t),dy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-CB0dhQHI.js"),__vite__mapDeps([33,10,11,17,18,19,2,3,4,5,6,7]));return{id:Nl,diagram:t}},py={id:Nl,detector:fy,loader:dy},gy=py,Rl="sequence",my=t=>/^\s*sequenceDiagram/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-BtmQPpcK.js"),__vite__mapDeps([34,1,2,3,4,5,6,7]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="class",by=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},xy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-BbnOSsY_.js"),__vite__mapDeps([35,36,10,11,17,18,19,2,3,4,5,6,7]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="classDiagram",ky=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Sy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-D4xK4OQk.js"),__vite__mapDeps([37,36,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="state",Ay=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Ly=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-BlG5qRMI.js"),__vite__mapDeps([38,39,10,11,17,18,19,2,3,4,5,6,7]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="stateDiagram",Oy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},My=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-Ka-eHEml.js"),__vite__mapDeps([40,39,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="journey",Dy=t=>/^\s*journey/.test(t),Ny=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-BLhhTe7f.js"),__vite__mapDeps([41,1,29,19,2,3,4,5,6,7]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,qy=function(t,e){for(let i of e)t.attr(i[0],i[1])},zy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},jl=function(t,e,i,r){const n=zy(e,i,r);qy(t,n)},Wy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),jl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},Hy=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
`);const r=sC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),jl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ul={draw:aC},lC=Ul,cC={db:{},renderer:Ul,parser:{parser:{yy:{}},parse:()=>{}}},hC=cC,Yl="flowchart-elk",uC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},fC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d-Dp3LSEVo.js"),__vite__mapDeps([42,9,15,16,17,18,19,2,3,4,5,6,7]));return{id:Yl,diagram:t}},dC={id:Yl,detector:uC,loader:fC},pC=dC,Gl="timeline",gC=t=>/^\s*timeline/.test(t),mC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-WZbFYFHM.js"),__vite__mapDeps([43,29,19,2,3,4,5,6,7]));return{id:Gl,diagram:t}},_C={id:Gl,detector:gC,loader:mC},yC=_C,Vl="mindmap",CC=t=>/^\s*mindmap/.test(t),bC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-DcBUF-Id.js"),__vite__mapDeps([44,16,2,3,4,5,6,7]));return{id:Vl,diagram:t}},xC={id:Vl,detector:CC,loader:bC},TC=xC,Xl="sankey",vC=t=>/^\s*sankey-beta/.test(t),kC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-QfPRBOF9.js"),__vite__mapDeps([45,30,26,46,2,3,4,5,6,7]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="block",BC=t=>/^\s*block-beta/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-CLRp_jQY.js"),__vite__mapDeps([47,14,10,20,15,16,17,18,19,30,26,46,2,3,4,5,6,7]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC;let ws=!1;const to=()=>{ws||(ws=!0,hr("error",hC,t=>t.toLowerCase().trim()==="error"),hr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ka(E0,By,vy,H0,Z0,ty,ry,gy,Cy,pC,P0,I0,TC,yC,G0,Iy,Ey,Py,ay,wC,uy,FC))};class Zl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=n0(e),this.text+=`
`);const r=sC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),jl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ul={draw:aC},lC=Ul,cC={db:{},renderer:Ul,parser:{parser:{yy:{}},parse:()=>{}}},hC=cC,Yl="flowchart-elk",uC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},fC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d-e6CJZ48z.js"),__vite__mapDeps([42,9,15,16,17,18,19,2,3,4,5,6,7]));return{id:Yl,diagram:t}},dC={id:Yl,detector:uC,loader:fC},pC=dC,Gl="timeline",gC=t=>/^\s*timeline/.test(t),mC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-D7dS-dC4.js"),__vite__mapDeps([43,29,19,2,3,4,5,6,7]));return{id:Gl,diagram:t}},_C={id:Gl,detector:gC,loader:mC},yC=_C,Vl="mindmap",CC=t=>/^\s*mindmap/.test(t),bC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-C0A4iBuz.js"),__vite__mapDeps([44,16,2,3,4,5,6,7]));return{id:Vl,diagram:t}},xC={id:Vl,detector:CC,loader:bC},TC=xC,Xl="sankey",vC=t=>/^\s*sankey-beta/.test(t),kC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-D5qVDU31.js"),__vite__mapDeps([45,30,26,46,2,3,4,5,6,7]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="block",BC=t=>/^\s*block-beta/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-DISuSZd4.js"),__vite__mapDeps([47,14,10,20,15,16,17,18,19,30,26,46,2,3,4,5,6,7]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC;let ws=!1;const to=()=>{ws||(ws=!0,hr("error",hC,t=>t.toLowerCase().trim()==="error"),hr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ka(E0,By,vy,H0,Z0,ty,ry,gy,Cy,pC,P0,I0,TC,yC,G0,Iy,Ey,Py,ay,wC,uy,FC))};class Zl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=n0(e),this.text+=`
import{T as Nt,Q as st,az as kt,t as z,y as rt,J as It,aA as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-Dn3czbSS.js";import{u as Rt,c as dt,a0 as nt,a1 as ft,a2 as zt,b as Ut}from"../index-DAyAARJ6.js";import{u as Vt}from"./bottom-CwmVxbzO.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{T as Nt,Q as st,az as kt,t as z,y as rt,J as It,aA as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-Dn3czbSS.js";import{u as Rt,c as dt,a0 as nt,a1 as ft,a2 as zt,b as Ut}from"../index-In0nWnaA.js";import{u as Vt}from"./bottom-C-2Y5Vyd.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-Dn3czbSS.js";import{u as _}from"./context-CthXNIh0.js";import{u as v}from"./DrawingPreview-TQ9F-p3r.js";import{b as g}from"../index-DAyAARJ6.js";import"./bottom-CwmVxbzO.js";import"../modules/shiki-CuMFyo6Z.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-Dn3czbSS.js";import{u as _}from"./context-0STE4blS.js";import{u as v}from"./DrawingPreview-Bb9cUdpI.js";import{b as g}from"../index-In0nWnaA.js";import"./bottom-C-2Y5Vyd.js";import"../modules/shiki-CuMFyo6Z.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-CXhi-ET8.js";import{d as B,t as $,Q as le,aB as ae,b as L,f as ie,h as z,A as e,o as g,c as x,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-Dn3czbSS.js";import{L as pe}from"../modules/shiki-CuMFyo6Z.js";import{u as me}from"./DrawingPreview-TQ9F-p3r.js";import{I as a,V as D}from"./SlidesShow-USTpomv6.js";import{b as M}from"../index-DAyAARJ6.js";import"./bottom-CwmVxbzO.js";import"./context-CthXNIh0.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},Ce=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let C="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(C=p)}function E(p){u.color=p,d.value=!0,i.value=C}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),x(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(C))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),x(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:xe=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),x(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(Ce,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-CXhi-ET8.js";import{d as B,t as $,Q as le,aB as ae,b as L,f as ie,h as z,A as e,o as g,c as x,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-Dn3czbSS.js";import{L as pe}from"../modules/shiki-CuMFyo6Z.js";import{u as me}from"./DrawingPreview-Bb9cUdpI.js";import{I as a,V as D}from"./SlidesShow-A8z_DqaN.js";import{b as M}from"../index-In0nWnaA.js";import"./bottom-C-2Y5Vyd.js";import"./context-0STE4blS.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},Ce=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let C="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(C=p)}function E(p){u.color=p,d.value=!0,i.value=C}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),x(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(C))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),x(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:xe=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),x(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(Ce,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{o as a,c as r,k as s,q as l,s as n,A as t,e}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./image-right-CRS14ZbX.js";import{b as c,L as o}from"../index-DAyAARJ6.js";import{p as m,u,f as p}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const _=e("h1",null,"2. Performances",-1),d=e("ul",null,[e("li",null,"Mésocentre de Franche-Comté"),e("li",null,"Parallélisation de l’alignement"),e("li",null,"1 patient = 5h de calcul"),e("li",null,"20 patients/jour")],-1),f={__name:"9",setup(h){return m(o),u(),(x,P)=>(a(),r(i,l(n(t(p)(t(o),8))),{default:s(()=>[_,d]),_:1},16))}},j=c(f,[["__file","/@slidev/slides/9.md"]]);export{j as default};
import{o as a,c as r,k as s,q as l,s as n,A as t,e}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./image-right-BJTNy-vV.js";import{b as c,L as o}from"../index-In0nWnaA.js";import{p as m,u,f as p}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const _=e("h1",null,"2. Performances",-1),d=e("ul",null,[e("li",null,"Mésocentre de Franche-Comté"),e("li",null,"Parallélisation de l’alignement"),e("li",null,"1 patient = 5h de calcul"),e("li",null,"20 patients/jour")],-1),f={__name:"9",setup(h){return m(o),u(),(x,P)=>(a(),r(i,l(n(t(p)(t(o),8))),{default:s(()=>[_,d]),_:1},16))}},j=c(f,[["__file","/@slidev/slides/9.md"]]);export{j as default};
import{_ as a}from"./VClicks-B4QnOWIs.js";import{o as l,c as n,k as e,l as i,q as u,s as _,A as o,e as t}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./image-right-CRS14ZbX.js";import{b as p,K as s}from"../index-DAyAARJ6.js";import{p as m,u as d,f}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const h=t("h1",null,"2. Portabilité",-1),x=t("p",null,[t("strong",null,"Nextflow")],-1),v=t("ul",null,[t("li",null,"Maîtrise des risques liés au matériel"),t("li",null,"Exécution sur de multiple architecture (super-calculateur…)")],-1),k={__name:"8",setup(P){return m(s),d(),(g,B)=>{const r=a;return l(),n(c,u(_(o(f)(o(s),7))),{default:e(()=>[h,x,i(r,{every:"1"},{default:e(()=>[v]),_:1})]),_:1},16)}}},I=p(k,[["__file","/@slidev/slides/8.md"]]);export{I as default};
import{_ as a}from"./VClicks-CK3utqQa.js";import{o as l,c as n,k as e,l as i,q as u,s as _,A as o,e as t}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./image-right-BJTNy-vV.js";import{b as p,K as s}from"../index-In0nWnaA.js";import{p as m,u as d,f}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const h=t("h1",null,"2. Portabilité",-1),x=t("p",null,[t("strong",null,"Nextflow")],-1),v=t("ul",null,[t("li",null,"Maîtrise des risques liés au matériel"),t("li",null,"Exécution sur de multiple architecture (super-calculateur…)")],-1),k={__name:"8",setup(P){return m(s),d(),(g,B)=>{const r=a;return l(),n(c,u(_(o(f)(o(s),7))),{default:e(()=>[h,x,i(r,{every:"1"},{default:e(()=>[v]),_:1})]),_:1},16)}}},I=p(k,[["__file","/@slidev/slides/8.md"]]);export{I as default};
import{o as s,c as a,k as r,q as i,s as n,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as l}from"./image-right-CRS14ZbX.js";import{b as c,J as o}from"../index-DAyAARJ6.js";import{p,u,f as _}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const d=t("h1",null,"2. Reproductibilité",-1),m=t("p",null,"Incorporation dans Nix :",-1),f=t("ul",null,[t("li",null,"6 logiciels + 3 dépendences"),t("li",null,"3/6 déjà utilisables par la communauté (nixpkgs)")],-1),x={__name:"7",setup(h){return p(o),u(),(k,b)=>(s(),a(l,i(n(e(_)(e(o),6))),{default:r(()=>[d,m,f]),_:1},16))}},j=c(x,[["__file","/@slidev/slides/7.md"]]);export{j as default};
import{o as s,c as a,k as r,q as i,s as n,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as l}from"./image-right-BJTNy-vV.js";import{b as c,J as o}from"../index-In0nWnaA.js";import{p,u,f as _}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const d=t("h1",null,"2. Reproductibilité",-1),m=t("p",null,"Incorporation dans Nix :",-1),f=t("ul",null,[t("li",null,"6 logiciels + 3 dépendences"),t("li",null,"3/6 déjà utilisables par la communauté (nixpkgs)")],-1),x={__name:"7",setup(h){return p(o),u(),(k,b)=>(s(),a(l,i(n(e(_)(e(o),6))),{default:r(()=>[d,m,f]),_:1},16))}},j=c(x,[["__file","/@slidev/slides/7.md"]]);export{j as default};
import{_}from"./VClicks-B4QnOWIs.js";import{_ as a}from"./VClick-B5OQoH5Q.js";import{o as i,c as u,k as t,l as e,q as c,s as p,A as s,e as o}from"../modules/vue-Dn3czbSS.js";import{I as m}from"./image-right-CRS14ZbX.js";import{b as d,I as l}from"../index-DAyAARJ6.js";import{p as f,u as h,f as v}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const x=o("h1",null,"2. Reproductibilité",-1),b=o("p",null,"Comment assurer au COFRAC des résultats reproductibles ?",-1),g=o("br",null,null,-1),k=o("p",null,[o("strong",null,"Nix")],-1),C=o("ol",null,[o("li",null,"bloque la version de tous les logiciels"),o("li",null,"quelque soit l’ordinateur (Linux +/- OSX)")],-1),q={__name:"6",setup(B){return f(l),h(),(I,N)=>{const n=a,r=_;return i(),u(m,c(p(s(v)(s(l),5))),{default:t(()=>[x,b,g,e(n,null,{default:t(()=>[k]),_:1}),e(r,{every:"1"},{default:t(()=>[C]),_:1})]),_:1},16)}}},S=d(q,[["__file","/@slidev/slides/6.md"]]);export{S as default};
import{_}from"./VClicks-CK3utqQa.js";import{_ as a}from"./VClick-DHC_RLNz.js";import{o as i,c as u,k as t,l as e,q as c,s as p,A as s,e as o}from"../modules/vue-Dn3czbSS.js";import{I as m}from"./image-right-BJTNy-vV.js";import{b as d,I as l}from"../index-In0nWnaA.js";import{p as f,u as h,f as v}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const x=o("h1",null,"2. Reproductibilité",-1),b=o("p",null,"Comment assurer au COFRAC des résultats reproductibles ?",-1),g=o("br",null,null,-1),k=o("p",null,[o("strong",null,"Nix")],-1),C=o("ol",null,[o("li",null,"bloque la version de tous les logiciels"),o("li",null,"quelque soit l’ordinateur (Linux +/- OSX)")],-1),q={__name:"6",setup(B){return f(l),h(),(I,N)=>{const n=a,r=_;return i(),u(m,c(p(s(v)(s(l),5))),{default:t(()=>[x,b,g,e(n,null,{default:t(()=>[k]),_:1}),e(r,{every:"1"},{default:t(()=>[C]),_:1})]),_:1},16)}}},S=d(q,[["__file","/@slidev/slides/6.md"]]);export{S as default};
import{_ as r}from"./Mermaid-COGy-la-.js";import{o as s,c as a,k as n,l as p,m,q as c,s as i,A as e,e as l}from"../modules/vue-Dn3czbSS.js";import{I as _}from"./default-DYCwk-G0.js";import{b as A,H as o}from"../index-DAyAARJ6.js";import{p as B,u as g,f as d}from"./context-CthXNIh0.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CuMFyo6Z.js";const u=l("h1",null,"1. Pipeline",-1),f={__name:"5",setup(h){return B(o),g(),(P,U)=>{const t=r;return s(),a(_,c(i(e(d)(e(o),4))),{default:n(()=>[u,p(t,m({"code-lz":"GYGw9g7gxgFghgJwC4AIAyAlAUClBnAVwCMBzBOABxhQIDsUBtABTDyQFo4QBLE2gUwC2/WkgC6OXCgAm3BPyhJuYegBUAQpNzqGAWUQBHAnBL8Z/PDLDFwtPGJTt2APhQBhBhgVduRckpUJXBFpSUJScipzAgAPRgBBWlowJDgA+n5UYG4QJHkgqVl5RWU1TSkUAFEGADEcvP4HJ1cahkTk1PSmlxQAcVr6/MkQyXi2nj4hEXFHHrpJOlnXABE2igp+EHMUADdEbjhRbtdpfligA==="},{}),null,16)]),_:1},16)}}},E=A(f,[["__file","/@slidev/slides/5.md"]]);export{E as default};
import{_ as r}from"./Mermaid-DKLwMm57.js";import{o as s,c as a,k as n,l as p,m,q as c,s as i,A as e,e as l}from"../modules/vue-Dn3czbSS.js";import{I as _}from"./default-etBa1EKU.js";import{b as A,H as o}from"../index-In0nWnaA.js";import{p as B,u as g,f as d}from"./context-0STE4blS.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CuMFyo6Z.js";const u=l("h1",null,"1. Pipeline",-1),f={__name:"5",setup(h){return B(o),g(),(P,U)=>{const t=r;return s(),a(_,c(i(e(d)(e(o),4))),{default:n(()=>[u,p(t,m({"code-lz":"GYGw9g7gxgFghgJwC4AIAyAlAUClBnAVwCMBzBOABxhQIDsUBtABTDyQFo4QBLE2gUwC2/WkgC6OXCgAm3BPyhJuYegBUAQpNzqGAWUQBHAnBL8Z/PDLDFwtPGJTt2APhQBhBhgVduRckpUJXBFpSUJScipzAgAPRgBBWlowJDgA+n5UYG4QJHkgqVl5RWU1TSkUAFEGADEcvP4HJ1cahkTk1PSmlxQAcVr6/MkQyXi2nj4hEXFHHrpJOlnXABE2igp+EHMUADdEbjhRbtdpfligA==="},{}),null,16)]),_:1},16)}}},E=A(f,[["__file","/@slidev/slides/5.md"]]);export{E as default};
import{_ as l}from"./VClick-B5OQoH5Q.js";import{o as i,c as _,k as t,e,a0 as s,l as n,q as u,s as p,A as r}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./image-right-CRS14ZbX.js";import{b as d,G as a}from"../index-DAyAARJ6.js";import{p as m,u as f,f as x}from"./context-CthXNIh0.js";import"./VClicks-B4QnOWIs.js";import"../modules/shiki-CuMFyo6Z.js";const h=e("h1",null,"1. Contexte",-1),v=e("p",null,"Patients en errance diagnostique",-1),g=e("strong",null,"disponibles depuis 2022",-1),k=e("strong",null,"pipeline maison",-1),P={__name:"4",setup(b){return m(a),f(),(B,C)=>{const o=l;return i(),_(c,u(p(r(x)(r(a),3))),{default:t(()=>[h,v,e("ul",null,[e("li",null,[s("ré-intérpréter données existantes "),n(o,null,{default:t(()=>[g]),_:1})]),e("li",null,[s("ré-analyser données brutes : "),n(o,null,{default:t(()=>[k]),_:1}),s(),n(o,null,{default:t(()=>[s(" (v0.1 par Dr. A. Overs) ")]),_:1})])])]),_:1},16)}}},j=d(P,[["__file","/@slidev/slides/4.md"]]);export{j as default};
import{_ as l}from"./VClick-DHC_RLNz.js";import{o as i,c as _,k as t,e,a0 as s,l as n,q as u,s as p,A as r}from"../modules/vue-Dn3czbSS.js";import{I as c}from"./image-right-BJTNy-vV.js";import{b as d,G as a}from"../index-In0nWnaA.js";import{p as m,u as f,f as x}from"./context-0STE4blS.js";import"./VClicks-CK3utqQa.js";import"../modules/shiki-CuMFyo6Z.js";const h=e("h1",null,"1. Contexte",-1),v=e("p",null,"Patients en errance diagnostique",-1),g=e("strong",null,"disponibles depuis 2022",-1),k=e("strong",null,"pipeline maison",-1),P={__name:"4",setup(b){return m(a),f(),(B,C)=>{const o=l;return i(),_(c,u(p(r(x)(r(a),3))),{default:t(()=>[h,v,e("ul",null,[e("li",null,[s("ré-intérpréter données existantes "),n(o,null,{default:t(()=>[g]),_:1})]),e("li",null,[s("ré-analyser données brutes : "),n(o,null,{default:t(()=>[k]),_:1}),s(),n(o,null,{default:t(()=>[s(" (v0.1 par Dr. A. Overs) ")]),_:1})])])]),_:1},16)}}},j=d(P,[["__file","/@slidev/slides/4.md"]]);export{j as default};
import{o as a,c as o,k as s,q as l,s as n,A as t,e,a0 as i}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./default-DYCwk-G0.js";import{b as m,F as r}from"../index-DAyAARJ6.js";import{p as c,u as d,f as p}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const _=e("h1",null,"1. Contexte",-1),f=e("ul",null,[e("li",null,"Consultations de maladies rares (Centre de Génétique Humaine)"),e("li",null,[e("em",null,"Exome"),i(" souvent prescrit après un premier bilan "),e("ul",null,[e("li",null,"1% de l’ADN"),e("li",null,"rendement diagnostic 32%"),e("li",null,"sous-traité à un laboratoire privé accrédité")])])],-1),x={__name:"3",setup(h){return c(r),d(),(v,C)=>(a(),o(u,l(n(t(p)(t(r),2))),{default:s(()=>[_,f]),_:1},16))}},g=m(x,[["__file","/@slidev/slides/3.md"]]);export{g as default};
import{o as a,c as o,k as s,q as l,s as n,A as t,e,a0 as i}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./default-etBa1EKU.js";import{b as m,F as r}from"../index-In0nWnaA.js";import{p as c,u as d,f as p}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const _=e("h1",null,"1. Contexte",-1),f=e("ul",null,[e("li",null,"Consultations de maladies rares (Centre de Génétique Humaine)"),e("li",null,[e("em",null,"Exome"),i(" souvent prescrit après un premier bilan "),e("ul",null,[e("li",null,"1% de l’ADN"),e("li",null,"rendement diagnostic 32%"),e("li",null,"sous-traité à un laboratoire privé accrédité")])])],-1),x={__name:"3",setup(h){return c(r),d(),(v,C)=>(a(),o(u,l(n(t(p)(t(r),2))),{default:s(()=>[_,f]),_:1},16))}},g=m(x,[["__file","/@slidev/slides/3.md"]]);export{g as default};
import{o as r,c as a,k as s,q as l,s as i,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as n}from"./default-DYCwk-G0.js";import{b as p,E as o}from"../index-DAyAARJ6.js";import{p as c,u as _,f as m}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const u=t("h1",null,"Plan",-1),d=t("ol",null,[t("li",null,"Contexte"),t("li",null,"Reproductibilité, portabilité et performance"),t("li",null,"Validation"),t("li",null,"Réinterprétation")],-1),f={__name:"2",setup(x){return c(o),_(),(h,P)=>(r(),a(n,l(i(e(m)(e(o),1))),{default:s(()=>[u,d]),_:1},16))}},R=p(f,[["__file","/@slidev/slides/2.md"]]);export{R as default};
import{o as r,c as a,k as s,q as l,s as i,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as n}from"./default-etBa1EKU.js";import{b as p,E as o}from"../index-In0nWnaA.js";import{p as c,u as _,f as m}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const u=t("h1",null,"Plan",-1),d=t("ol",null,[t("li",null,"Contexte"),t("li",null,"Reproductibilité, portabilité et performance"),t("li",null,"Validation"),t("li",null,"Réinterprétation")],-1),f={__name:"2",setup(x){return c(o),_(),(h,P)=>(r(),a(n,l(i(e(m)(e(o),1))),{default:s(()=>[u,d]),_:1},16))}},R=p(f,[["__file","/@slidev/slides/2.md"]]);export{R as default};
import{_ as i}from"./VClick-B5OQoH5Q.js";import{o as l,b as _,e,f as u,c as d,k as o,l as m,q as f,s as p,A as s}from"../modules/vue-Dn3czbSS.js";import{b as r,V as n}from"../index-DAyAARJ6.js";import{p as h,u as v,f as x}from"./context-CthXNIh0.js";import"./VClicks-B4QnOWIs.js";import"../modules/shiki-CuMFyo6Z.js";const g={},k={class:"slidev-layout center h-full grid place-content-center"},P={class:"my-auto"};function b(t,a){return l(),_("div",k,[e("div",P,[u(t.$slots,"default")])])}const y=r(g,[["render",b],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/center.vue"]]),B=e("h1",null,"Conclusion",-1),V=e("ul",null,[e("li",null,"Reproductible"),e("li",null,"Portable"),e("li",null,"Performant"),e("li",null,"Validation à affiner"),e("li",null,"Recherche nouveaux diagnostics en cours")],-1),$=e("p",null,[e("strong",null,"Merci de votre attention !")],-1),C={__name:"17",setup(t){return h(n),v(),(a,R)=>{const c=i;return l(),d(y,f(p(s(x)(s(n),16))),{default:o(()=>[B,V,m(c,null,{default:o(()=>[$]),_:1})]),_:1},16)}}},A=r(C,[["__file","/@slidev/slides/17.md"]]);export{A as default};
import{_ as i}from"./VClick-DHC_RLNz.js";import{o as l,b as _,e,f as u,c as d,k as o,l as m,q as f,s as p,A as s}from"../modules/vue-Dn3czbSS.js";import{b as r,V as n}from"../index-In0nWnaA.js";import{p as h,u as v,f as x}from"./context-0STE4blS.js";import"./VClicks-CK3utqQa.js";import"../modules/shiki-CuMFyo6Z.js";const g={},k={class:"slidev-layout center h-full grid place-content-center"},P={class:"my-auto"};function b(t,a){return l(),_("div",k,[e("div",P,[u(t.$slots,"default")])])}const y=r(g,[["render",b],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/center.vue"]]),B=e("h1",null,"Conclusion",-1),V=e("ul",null,[e("li",null,"Reproductible"),e("li",null,"Portable"),e("li",null,"Performant"),e("li",null,"Validation à affiner"),e("li",null,"Recherche nouveaux diagnostics en cours")],-1),$=e("p",null,[e("strong",null,"Merci de votre attention !")],-1),C={__name:"17",setup(t){return h(n),v(),(a,R)=>{const c=i;return l(),d(y,f(p(s(x)(s(n),16))),{default:o(()=>[B,V,m(c,null,{default:o(()=>[$]),_:1})]),_:1},16)}}},A=r(C,[["__file","/@slidev/slides/17.md"]]);export{A as default};
import{_ as A}from"./VClick-B5OQoH5Q.js";import{_ as i}from"./Mermaid-COGy-la-.js";import{o as m,c as _,k as r,l as t,m as c,q as p,s as u,A as l,e as o,a0 as e}from"../modules/vue-Dn3czbSS.js";import{I as d}from"./default-DYCwk-G0.js";import{b as g,R as s}from"../index-DAyAARJ6.js";import{p as f,u as B,f as k}from"./context-CthXNIh0.js";import"./VClicks-B4QnOWIs.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CuMFyo6Z.js";const C=o("h1",null,"Non-infériorité",-1),R=o("ul",null,[o("li",null,[e("3 variants filtré sur la profondeur ("),o("em",null,"CHD3"),e(", "),o("em",null,"GABRA5"),e(", "),o("em",null,"RRAS2"),e(")")]),o("li",null,[e("1 variant sur le nombre de reads porteurs ("),o("em",null,"PITX3"),e(")")])],-1),h={__name:"15",setup(v){return f(s),B(),(F,I)=>{const n=i,a=A;return m(),_(d,p(u(l(k)(l(s),14))),{default:r(()=>[C,t(n,c({"code-lz":"GYGw9g7gxgFghgJwC4AIAyAlAUClBBAbQFEAPMAWwFMBnFAHQDsUBGZgdgA4BdFAWl4B8KAEIEAImAYMAlzRQAjBAFckcxigBMAFm44RfQSgDCBDNLgM4IAJ7VKPfkLHMCAOWkBzOEgCWwWurMAKwAzDwAZChiBAAKYNQ+vv70TACcurhiBkJEppRICGBKAG7SAWlaESgAYgTVPiAF0ikolSh61dkoAOIERpLAPgjkZSgAyhYelAgtlXrUSNYglD0ogyAgAFwAxMDAbPIH84vLKERrDVvbcJRQcGwAJkA==="},{}),null,16),t(a,null,{default:r(()=>[R]),_:1})]),_:1},16)}}},K=g(h,[["__file","/@slidev/slides/15.md"]]);export{K as default};
import{_ as A}from"./VClick-DHC_RLNz.js";import{_ as i}from"./Mermaid-DKLwMm57.js";import{o as m,c as _,k as r,l as t,m as c,q as p,s as u,A as l,e as o,a0 as e}from"../modules/vue-Dn3czbSS.js";import{I as d}from"./default-etBa1EKU.js";import{b as g,R as s}from"../index-In0nWnaA.js";import{p as f,u as B,f as k}from"./context-0STE4blS.js";import"./VClicks-CK3utqQa.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CuMFyo6Z.js";const C=o("h1",null,"Non-infériorité",-1),R=o("ul",null,[o("li",null,[e("3 variants filtré sur la profondeur ("),o("em",null,"CHD3"),e(", "),o("em",null,"GABRA5"),e(", "),o("em",null,"RRAS2"),e(")")]),o("li",null,[e("1 variant sur le nombre de reads porteurs ("),o("em",null,"PITX3"),e(")")])],-1),h={__name:"15",setup(v){return f(s),B(),(F,I)=>{const n=i,a=A;return m(),_(d,p(u(l(k)(l(s),14))),{default:r(()=>[C,t(n,c({"code-lz":"GYGw9g7gxgFghgJwC4AIAyAlAUClBBAbQFEAPMAWwFMBnFAHQDsUBGZgdgA4BdFAWl4B8KAEIEAImAYMAlzRQAjBAFckcxigBMAFm44RfQSgDCBDNLgM4IAJ7VKPfkLHMCAOWkBzOEgCWwWurMAKwAzDwAZChiBAAKYNQ+vv70TACcurhiBkJEppRICGBKAG7SAWlaESgAYgTVPiAF0ikolSh61dkoAOIERpLAPgjkZSgAyhYelAgtlXrUSNYglD0ogyAgAFwAxMDAbPIH84vLKERrDVvbcJRQcGwAJkA==="},{}),null,16),t(a,null,{default:r(()=>[R]),_:1})]),_:1},16)}}},K=g(h,[["__file","/@slidev/slides/15.md"]]);export{K as default};
import{o as r,c as a,k as l,q as n,s as u,A as s,e,a0 as o}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-DYCwk-G0.js";import{b as c,Q as t}from"../index-DAyAARJ6.js";import{p as m,u as p,f as _}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const d=e("h1",null,"In silico",-1),f=e("p",null,[o("Données simulées avec "),e("strong",null,"simuscop")],-1),h=e("ul",null,[e("li",null,[o("126 même variants "),e("ul",null,[e("li",null,"1 non appelé (3 read sur 34)"),e("li",null,"1 manqué"),e("li",null,"2 en dehors du kit de capture"),e("li",null,"122 retrouvés")])])],-1),v={__name:"14",setup(x){return m(t),p(),(k,B)=>(r(),a(i,n(u(s(_)(s(t),13))),{default:l(()=>[d,f,h]),_:1},16))}},N=c(v,[["__file","/@slidev/slides/14.md"]]);export{N as default};
import{o as r,c as a,k as l,q as n,s as u,A as s,e,a0 as o}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-etBa1EKU.js";import{b as c,Q as t}from"../index-In0nWnaA.js";import{p as m,u as p,f as _}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const d=e("h1",null,"In silico",-1),f=e("p",null,[o("Données simulées avec "),e("strong",null,"simuscop")],-1),h=e("ul",null,[e("li",null,[o("126 même variants "),e("ul",null,[e("li",null,"1 non appelé (3 read sur 34)"),e("li",null,"1 manqué"),e("li",null,"2 en dehors du kit de capture"),e("li",null,"122 retrouvés")])])],-1),v={__name:"14",setup(x){return m(t),p(),(k,B)=>(r(),a(i,n(u(s(_)(s(t),13))),{default:l(()=>[d,f,h]),_:1},16))}},N=c(v,[["__file","/@slidev/slides/14.md"]]);export{N as default};
import{o,c as a,k as n,q as l,s as i,A as t,e,a0 as r}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./image-right-CRS14ZbX.js";import{b as c,P as s}from"../index-DAyAARJ6.js";import{p as _,u as m,f as p}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const f=e("h1",null,"In silico",-1),d=e("ul",null,[e("li",null,[r("Patient de synthèse avec "),e("strong",null,"varben")]),e("li",null,[r("126 variants confirmés en Sanger "),e("ul",null,[e("li",null,"1 non inséré"),e("li",null,"1 filtré sur la profondeur (21 < 30)"),e("li",null,"124 retrouvés")])])],-1),v={__name:"13",setup(h){return _(s),m(),(x,P)=>(o(),a(u,l(i(t(p)(t(s),12))),{default:n(()=>[f,d]),_:1},16))}},y=c(v,[["__file","/@slidev/slides/13.md"]]);export{y as default};
import{o,c as a,k as n,q as l,s as i,A as t,e,a0 as r}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./image-right-BJTNy-vV.js";import{b as c,P as s}from"../index-In0nWnaA.js";import{p as _,u as m,f as p}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const f=e("h1",null,"In silico",-1),d=e("ul",null,[e("li",null,[r("Patient de synthèse avec "),e("strong",null,"varben")]),e("li",null,[r("126 variants confirmés en Sanger "),e("ul",null,[e("li",null,"1 non inséré"),e("li",null,"1 filtré sur la profondeur (21 < 30)"),e("li",null,"124 retrouvés")])])],-1),v={__name:"13",setup(h){return _(s),m(),(x,P)=>(o(),a(u,l(i(t(p)(t(s),12))),{default:n(()=>[f,d]),_:1},16))}},y=c(v,[["__file","/@slidev/slides/13.md"]]);export{y as default};
import{o as s,c as o,k as l,q as r,s as i,A as t,e,a0 as n}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./image-right-CRS14ZbX.js";import{b as c,O as a}from"../index-DAyAARJ6.js";import{p,u as d,f as _}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const m=e("h1",null,"3. Validation",-1),f=e("ul",null,[e("li",null,"7 Patients GIAB"),e("li",null,[n("Google (Baid et al. 2022) "),e("ul",null,[e("li",null,"3 kits de capture"),e("li",null,"2 séquenceurs (HiSeq4000, Novaseq)"),e("li",null,"alignement et appel de variant identiques")])])],-1),x={__name:"12",setup(h){return p(a),d(),(q,v)=>(s(),o(u,r(i(t(_)(t(a),11))),{default:l(()=>[m,f]),_:1},16))}},N=c(x,[["__file","/@slidev/slides/12.md"]]);export{N as default};
import{o as s,c as o,k as l,q as r,s as i,A as t,e,a0 as n}from"../modules/vue-Dn3czbSS.js";import{I as u}from"./image-right-BJTNy-vV.js";import{b as c,O as a}from"../index-In0nWnaA.js";import{p,u as d,f as _}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const m=e("h1",null,"3. Validation",-1),f=e("ul",null,[e("li",null,"7 Patients GIAB"),e("li",null,[n("Google (Baid et al. 2022) "),e("ul",null,[e("li",null,"3 kits de capture"),e("li",null,"2 séquenceurs (HiSeq4000, Novaseq)"),e("li",null,"alignement et appel de variant identiques")])])],-1),x={__name:"12",setup(h){return p(a),d(),(q,v)=>(s(),o(u,r(i(t(_)(t(a),11))),{default:l(()=>[m,f]),_:1},16))}},N=c(x,[["__file","/@slidev/slides/12.md"]]);export{N as default};
import{o as n,c as o,k as s,q as a,s as r,A as t,e as l}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-DYCwk-G0.js";import{b as u,N as e}from"../index-DAyAARJ6.js";import{p as d,u as _,f as c}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const p=l("h1",null,"3. Validation: séquencage et pipeline",-1),m=l("p",null,"Patient NA12878",-1),f=l("ul",null,[l("li",null,"ADN commandé à Coriell"),l("li",null,"séquencé à Centogène"),l("li",null,"analysé par notre pipeline")],-1),h=l("br",null,null,-1),P=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Type"),l("th",null,"Sensibilité"),l("th",null,"Valeur Prédictive Positive")])]),l("tbody",null,[l("tr",null,[l("td",null,"Indel"),l("td",null,"0.954"),l("td",null,"0.775")]),l("tr",null,[l("td",null,"SNV"),l("td",null,"0.983"),l("td",null,"0.965")])])],-1),b={__name:"11",setup(v){return d(e),_(),(x,N)=>(n(),o(i,a(r(t(c)(t(e),10))),{default:s(()=>[p,m,f,h,P]),_:1},16))}},q=u(b,[["__file","/@slidev/slides/11.md"]]);export{q as default};
import{o as n,c as o,k as s,q as a,s as r,A as t,e as l}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-etBa1EKU.js";import{b as u,N as e}from"../index-In0nWnaA.js";import{p as d,u as _,f as c}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const p=l("h1",null,"3. Validation: séquencage et pipeline",-1),m=l("p",null,"Patient NA12878",-1),f=l("ul",null,[l("li",null,"ADN commandé à Coriell"),l("li",null,"séquencé à Centogène"),l("li",null,"analysé par notre pipeline")],-1),h=l("br",null,null,-1),P=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Type"),l("th",null,"Sensibilité"),l("th",null,"Valeur Prédictive Positive")])]),l("tbody",null,[l("tr",null,[l("td",null,"Indel"),l("td",null,"0.954"),l("td",null,"0.775")]),l("tr",null,[l("td",null,"SNV"),l("td",null,"0.983"),l("td",null,"0.965")])])],-1),b={__name:"11",setup(v){return d(e),_(),(x,N)=>(n(),o(i,a(r(t(c)(t(e),10))),{default:s(()=>[p,m,f,h,P]),_:1},16))}},q=u(b,[["__file","/@slidev/slides/11.md"]]);export{q as default};
import{o as s,c as r,k as a,q as n,s as l,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-DYCwk-G0.js";import{b as m,M as o}from"../index-DAyAARJ6.js";import{p as c,u,f as _}from"./context-CthXNIh0.js";import"../modules/shiki-CuMFyo6Z.js";const d=t("h1",null,"3. Validation",-1),p=t("ul",null,[t("li",null,'"Gold standard" sur patients de référence (Genome In A Bottle Consortium)'),t("li",null,[t("em",null,"In silico")])],-1),f={__name:"10",setup(h){return c(o),u(),(x,B)=>(s(),r(i,n(l(e(_)(e(o),9))),{default:a(()=>[d,p]),_:1},16))}},A=m(f,[["__file","/@slidev/slides/10.md"]]);export{A as default};
import{o as s,c as r,k as a,q as n,s as l,A as e,e as t}from"../modules/vue-Dn3czbSS.js";import{I as i}from"./default-etBa1EKU.js";import{b as m,M as o}from"../index-In0nWnaA.js";import{p as c,u,f as _}from"./context-0STE4blS.js";import"../modules/shiki-CuMFyo6Z.js";const d=t("h1",null,"3. Validation",-1),p=t("ul",null,[t("li",null,'"Gold standard" sur patients de référence (Genome In A Bottle Consortium)'),t("li",null,[t("em",null,"In silico")])],-1),f={__name:"10",setup(h){return c(o),u(),(x,B)=>(s(),r(i,n(l(e(_)(e(o),9))),{default:a(()=>[d,p]),_:1},16))}},A=m(f,[["__file","/@slidev/slides/10.md"]]);export{A as default};
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,aO as ee,b2 as nt,E as Le,l as X,d as At,r as se,b1 as Bt,b3 as Ie,b4 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/Mermaid-COGy-la-.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-nN3IEmPJ.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,aO as ee,b2 as nt,E as Le,l as X,d as At,r as se,b1 as Bt,b3 as Ie,b4 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/Mermaid-DKLwMm57.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-C6DMen8v.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Gt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Gt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Gt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Xt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var G,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((G===null||typeof G>"u")&&(G=me()),et=Et[ut]&&Et[ut][G]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,K as Lt,h as G,t as Et}from"./slidev/Mermaid-COGy-la-.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,K as Lt,h as G,t as Et}from"./slidev/Mermaid-DKLwMm57.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/Mermaid-COGy-la-.js";import{G as Ue}from"./graph-af3d5df6-G4pt95e-.js";import{l as Be}from"./layout-6685625a-Cy4EINjB.js";import{l as Qe}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/Mermaid-DKLwMm57.js";import{G as Ue}from"./graph-af3d5df6-BLtirX5X.js";import{l as Be}from"./layout-6685625a-DMWKrSBP.js";import{l as Qe}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
import{b0 as vt,c as yt,aM as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/Mermaid-COGy-la-.js";import{l as _t}from"./linear-d94cf28d-B8lBgl9v.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
import{b0 as vt,c as yt,aM as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/Mermaid-DKLwMm57.js";import{l as _t}from"./linear-d94cf28d-DicpOm0k.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
import{aM as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,aN as gt,aL as dt,aO as mt,i as _t,aP as J}from"./slidev/Mermaid-COGy-la-.js";import{d as tt}from"./arc-5aa99581-BAt7L7b4.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(J),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(J,Math.max(-J,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var K=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Z=h.yylloc;s.push(Z);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,q,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var H="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?H="Parse error on line "+(f+1)+`:
import{aM as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,aN as gt,aL as dt,aO as mt,i as _t,aP as J}from"./slidev/Mermaid-DKLwMm57.js";import{d as tt}from"./arc-5aa99581-BVENIv5_.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(J),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(J,Math.max(-J,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var K=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",f=0,V=0,R=2,M=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Z=h.yylloc;s.push(Z);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,q,z={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var H="";W=[];for(j in P[L])this.terminals_[j]&&j>R&&W.push("'"+this.terminals_[j]+"'");h.showPosition?H="Parse error on line "+(f+1)+`:
import{aA as Ca,aC as Ul,l as qr,c as Ji,aL as pp,t as yp,aM as ti,d as ri,h as mp,b7 as bp,b8 as Ep,b9 as wp,aO as xp}from"./slidev/Mermaid-COGy-la-.js";import{c as Tp}from"./createText-f6615236-DUF4ZUeq.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
import{aA as Ca,aC as Ul,l as qr,c as Ji,aL as pp,t as yp,aM as ti,d as ri,h as mp,b7 as bp,b8 as Ep,b9 as wp,aO as xp}from"./slidev/Mermaid-DKLwMm57.js";import{c as Tp}from"./createText-f6615236-DKVxcDu5.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
import{aG as T,aH as un,aI as H,aJ as J,aK as fn}from"./slidev/Mermaid-COGy-la-.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?T:i==="string"?(r=H(t))?(t=r,J):fn:t instanceof H?J:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:T)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new G({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=G.prototype;function G(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}G.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function K(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const U={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>K(n*100,t),r:K,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Y(n){return n}var Z=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?Y:Pn(Z.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Y:zn(Z.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,I=h.comma,w=h.precision,B=h.trim,g=h.type;g==="n"?(I=!0,g="g"):U[g]||(w===void 0&&(w=12),B=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=U[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),B&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}I&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(I&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function In(n){return Math.max(0,-A(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Gn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Gn(n[0],n[s-1])),u=s>2?On:Bn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),T)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Hn(){return Xn()(x,x)}function Jn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=In(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Kn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Jn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Hn();return n.copy=function(){return Vn(n,Un())},cn.apply(n,arguments),Kn(n)}export{Vn as a,_ as b,Hn as c,Un as l,vn as t};
import{aG as T,aH as un,aI as H,aJ as J,aK as fn}from"./slidev/Mermaid-DKLwMm57.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?T:i==="string"?(r=H(t))?(t=r,J):fn:t instanceof H?J:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:T)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new G({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=G.prototype;function G(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}G.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function K(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const U={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>K(n*100,t),r:K,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Y(n){return n}var Z=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?Y:Pn(Z.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Y:zn(Z.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,I=h.comma,w=h.precision,B=h.trim,g=h.type;g==="n"?(I=!0,g="g"):U[g]||(w===void 0&&(w=12),B=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=U[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),B&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}I&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(I&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function In(n){return Math.max(0,-A(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Gn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Gn(n[0],n[s-1])),u=s>2?On:Bn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),T)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Hn(){return Xn()(x,x)}function Jn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=In(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Kn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Jn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Hn();return n.copy=function(){return Vn(n,Un())},cn.apply(n,arguments),Kn(n)}export{Vn as a,_ as b,Hn as c,Un as l,vn as t};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/Mermaid-COGy-la-.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/Mermaid-DKLwMm57.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{b as xn,a as P,f as s,G as x,c as Un,d as L,e as kn,g as En,t as zn,i as g,h as w,v as y,r as Y,j as Hn,k as yn,l as Nn,m as Zn,n as M,o as F,p as Jn,q as Kn,s as Qn}from"./graph-af3d5df6-G4pt95e-.js";import{O as Ln,am as $,ae as _n,ak as jn,an as ne,ao as ee,a0 as J,ap as H,Q as Cn,Z as K,ah as re,aq as te,ar as ie,a2 as A,Y as ae,a9 as In,aa as oe,P as ue}from"./slidev/Mermaid-COGy-la-.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,ke=4;function Ee(n){return Hn(n,xe|ke)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||jn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Kn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Qn(n,L(e),i)}var Te=Ce(Re);const Q=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&kn(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function V(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function j(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function k(n){return n&&n.length?j(n,J,Pe):void 0}function R(n){return n&&n.length?j(n,J,Mn):void 0}function nn(n,e){return n&&n.length?j(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=En(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return En(a,o.length===1?o[0]:o)}:o}):e=[J];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ye(n,e){return Fe(n,e,function(r,t){return Zn(n,t)})}var Ve=ge(function(n,e){return n==null?{}:Ye(n,e)});const G=Ve;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var Ue=Xe();const N=Ue;var ze=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=ze;var He=0;function en(n){var e=++He;return zn(n)+e}function Ze(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Je(n,e){return Ze(n||[],e||[],In)}class Ke{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Qe)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Qe(n,e){if(n!=="_next"&&n!=="_prev")return e}var je=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||je),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,Z(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,Z(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Ke}),a=t+1;return s(r.nodes(),function(u){Z(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function Z(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return k(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=kr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),Er(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function kr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function Er(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}E.initLowLimValues=an;E.initCutValues=tn;E.calcCutValue=Bn;E.leaveEdge=Yn;E.enterEdge=Vn;E.exchangeEdges=Dn;function E(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Yn(e);)t=Vn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Yn(n){return Q(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Vn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=Q(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){E(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=k(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=Je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Yr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=k(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Vr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Ur(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Ur(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Vr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);zr(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function zr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Zr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Yr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=Ee(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function Jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Kr(n){var e=jr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Qr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Qr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function jr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return Y(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function rt(n,e){if(n.node(e).dummy)return Q(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=k(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-k(c),f&&(n[u]=V(d,function(h){return h+f}))}})})}function ft(n,e){return V(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=V(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=k(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Yt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Kr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){Zr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],kt={width:0,height:0},Et=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(H({},bt,U(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,_e(U(i,xt),kt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,H({},yt,U(i,Et),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=k(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function U(n,e){return V(G(n,e),Number)}function z(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Yt as l,m,G as p,N as r,en as u};
import{b as xn,a as P,f as s,G as x,c as Un,d as L,e as kn,g as En,t as zn,i as g,h as w,v as y,r as Y,j as Hn,k as yn,l as Nn,m as Zn,n as M,o as F,p as Jn,q as Kn,s as Qn}from"./graph-af3d5df6-BLtirX5X.js";import{O as Ln,am as $,ae as _n,ak as jn,an as ne,ao as ee,a0 as J,ap as H,Q as Cn,Z as K,ah as re,aq as te,ar as ie,a2 as A,Y as ae,a9 as In,aa as oe,P as ue}from"./slidev/Mermaid-DKLwMm57.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,ke=4;function Ee(n){return Hn(n,xe|ke)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||jn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Kn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Qn(n,L(e),i)}var Te=Ce(Re);const Q=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&kn(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function V(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function j(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function k(n){return n&&n.length?j(n,J,Pe):void 0}function R(n){return n&&n.length?j(n,J,Mn):void 0}function nn(n,e){return n&&n.length?j(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=En(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return En(a,o.length===1?o[0]:o)}:o}):e=[J];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ye(n,e){return Fe(n,e,function(r,t){return Zn(n,t)})}var Ve=ge(function(n,e){return n==null?{}:Ye(n,e)});const G=Ve;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var Ue=Xe();const N=Ue;var ze=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=ze;var He=0;function en(n){var e=++He;return zn(n)+e}function Ze(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Je(n,e){return Ze(n||[],e||[],In)}class Ke{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Qe)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Qe(n,e){if(n!=="_next"&&n!=="_prev")return e}var je=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||je),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,Z(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,Z(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Ke}),a=t+1;return s(r.nodes(),function(u){Z(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function Z(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return k(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=kr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),Er(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function kr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function Er(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}E.initLowLimValues=an;E.initCutValues=tn;E.calcCutValue=Bn;E.leaveEdge=Yn;E.enterEdge=Vn;E.exchangeEdges=Dn;function E(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Yn(e);)t=Vn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Yn(n){return Q(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Vn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=Q(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){E(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=k(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return Y(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=Je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Yr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=k(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Vr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=Y(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Ur(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Ur(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Vr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);zr(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function zr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Zr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Yr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=Ee(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function Jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Kr(n){var e=jr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Qr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Qr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function jr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return Y(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return Y(e,i),r}function rt(n,e){if(n.node(e).dummy)return Q(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=k(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-k(c),f&&(n[u]=V(d,function(h){return h+f}))}})})}function ft(n,e){return V(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=V(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=k(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Yt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Kr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){Zr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],kt={width:0,height:0},Et=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(H({},bt,U(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,_e(U(i,xt),kt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,H({},yt,U(i,Et),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=k(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function U(n,e){return V(G(n,e),Number)}function z(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Yt as l,m,G as p,N as r,en as u};
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/Mermaid-COGy-la-.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-nN3IEmPJ.js";import{d as Q}from"./arc-5aa99581-BAt7L7b4.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/Mermaid-DKLwMm57.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-C6DMen8v.js";import{d as Q}from"./arc-5aa99581-BVENIv5_.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
import{l as Y,aL as D,i as M}from"./slidev/Mermaid-COGy-la-.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
import{l as Y,aL as D,i as M}from"./slidev/Mermaid-DKLwMm57.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
import{i as N,G as A}from"./graph-af3d5df6-G4pt95e-.js";import{m as $,l as H}from"./layout-6685625a-Cy4EINjB.js";import{c as V}from"./clone-d2e37f8c-dAYgJWEV.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-DfL1UQzG.js";import{l as s,c as T,o as S,h as L}from"./slidev/Mermaid-COGy-la-.js";import{c as I}from"./createText-f6615236-DUF4ZUeq.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
import{i as N,G as A}from"./graph-af3d5df6-BLtirX5X.js";import{m as $,l as H}from"./layout-6685625a-DMWKrSBP.js";import{c as V}from"./clone-d2e37f8c-BJe3gSoD.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-BZ06lMIy.js";import{l as s,c as T,o as S,h as L}from"./slidev/Mermaid-DKLwMm57.js";import{c as I}from"./createText-f6615236-DKVxcDu5.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
__vite__mapDeps.viteFileDeps = ["assets/1-DOAIpdiG.js","assets/modules/vue-Dn3czbSS.js","assets/slidev/context-CthXNIh0.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-qS6JtaUP.js","assets/slidev/default-DYCwk-G0.js","assets/slidev/3-C9T7E0hZ.js","assets/slidev/4-DckuG4Lj.js","assets/slidev/VClick-B5OQoH5Q.js","assets/slidev/VClicks-B4QnOWIs.js","assets/slidev/image-right-CRS14ZbX.js","assets/slidev/5-BLasDc3K.js","assets/slidev/Mermaid-COGy-la-.js","assets/modules/file-saver-EUMWMpoS.js","assets/slidev/6-6FwIsVhv.js","assets/slidev/7-iPcRTWwy.js","assets/slidev/8-DpROzZzb.js","assets/slidev/9-L9yvqSKG.js","assets/slidev/10-CEatRM2p.js","assets/slidev/11-DwTKsUg8.js","assets/slidev/12-Br8HD0ry.js","assets/slidev/13-BpdoOWP8.js","assets/slidev/14-K7PfMbDa.js","assets/slidev/15-KxS-zp5K.js","assets/16-bxaB7CET.js","assets/slidev/17-E5K1nUtU.js","assets/slidev/print-Cuoz4ihj.js","assets/slidev/bottom-CwmVxbzO.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-BEFYTj9f.js","assets/print-Nssgrd1X.css","assets/slidev/print-D_Ohj4Z4.js","assets/slidev/NoteDisplay-BICLT5z3.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-DISpLE2-.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/slidev/SlidesShow-USTpomv6.js","assets/slidev/DrawingPreview-TQ9F-p3r.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-do95qUIH.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-DrsfZ8aC.js","assets/play-CoA43pdi.css"]
__vite__mapDeps.viteFileDeps = ["assets/1-CNaGU8bv.js","assets/modules/vue-Dn3czbSS.js","assets/slidev/context-0STE4blS.js","assets/modules/shiki-CuMFyo6Z.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-DCJpLkj0.js","assets/slidev/default-etBa1EKU.js","assets/slidev/3-Bn7knO2P.js","assets/slidev/4-CmMHf5y_.js","assets/slidev/VClick-DHC_RLNz.js","assets/slidev/VClicks-CK3utqQa.js","assets/slidev/image-right-BJTNy-vV.js","assets/slidev/5-JfvtsrXh.js","assets/slidev/Mermaid-DKLwMm57.js","assets/modules/file-saver-EUMWMpoS.js","assets/slidev/6-BVM9Ke8g.js","assets/slidev/7-Dolx9XtB.js","assets/slidev/8-DMFu6OKT.js","assets/slidev/9-C_HPX4D4.js","assets/slidev/10-B45Uc2JQ.js","assets/slidev/11-DWWF-DyE.js","assets/slidev/12-D9vCIVP-.js","assets/slidev/13-CpxYvKZF.js","assets/slidev/14-CCERSGCi.js","assets/slidev/15-j7cMwZ1G.js","assets/16-CW2TP1nL.js","assets/slidev/17-B0923ZyW.js","assets/slidev/print-CzT8XG9N.js","assets/slidev/bottom-C-2Y5Vyd.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-BKEyK1hB.js","assets/print-Nssgrd1X.css","assets/slidev/print-C2Pr3kg-.js","assets/slidev/NoteDisplay-DJpPZjGO.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-C9jPMFxm.js","assets/modules/unplugin-icons-CXhi-ET8.js","assets/slidev/SlidesShow-A8z_DqaN.js","assets/slidev/DrawingPreview-Bb9cUdpI.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-CKFjkIZz.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-DBEYLiGV.js","assets/play-CoA43pdi.css"]
`,raw:"",frontmatter:ue,filepath:"/home/alex/notes/slides/bisonex.md",start:365,id:16,no:17},__clicksContext:null,__preloaded:!1}),Xo=[{no:1,meta:Ro,component:async()=>{try{return await T(()=>import("./1-DOAIpdiG.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),P}}},{no:2,meta:Ho,component:async()=>{try{return await T(()=>import("./slidev/2-qS6JtaUP.js"),__vite__mapDeps([5,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),P}}},{no:3,meta:Fo,component:async()=>{try{return await T(()=>import("./slidev/3-C9T7E0hZ.js"),__vite__mapDeps([7,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 3:",t),P}}},{no:4,meta:No,component:async()=>{try{return await T(()=>import("./slidev/4-DckuG4Lj.js"),__vite__mapDeps([8,9,1,10,2,11,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),P}}},{no:5,meta:jo,component:async()=>{try{return await T(()=>import("./slidev/5-BLasDc3K.js"),__vite__mapDeps([12,13,1,14,6,2,3,4]))}catch(t){return console.error("Failed to load slide 5:",t),P}}},{no:6,meta:Do,component:async()=>{try{return await T(()=>import("./slidev/6-6FwIsVhv.js"),__vite__mapDeps([15,10,1,2,9,11,3,4]))}catch(t){return console.error("Failed to load slide 6:",t),P}}},{no:7,meta:qo,component:async()=>{try{return await T(()=>import("./slidev/7-iPcRTWwy.js"),__vite__mapDeps([16,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 7:",t),P}}},{no:8,meta:zo,component:async()=>{try{return await T(()=>import("./slidev/8-DpROzZzb.js"),__vite__mapDeps([17,10,1,2,11,3,4]))}catch(t){return console.error("Failed to load slide 8:",t),P}}},{no:9,meta:Vo,component:async()=>{try{return await T(()=>import("./slidev/9-L9yvqSKG.js"),__vite__mapDeps([18,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 9:",t),P}}},{no:10,meta:Wo,component:async()=>{try{return await T(()=>import("./slidev/10-CEatRM2p.js"),__vite__mapDeps([19,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 10:",t),P}}},{no:11,meta:Bo,component:async()=>{try{return await T(()=>import("./slidev/11-DwTKsUg8.js"),__vite__mapDeps([20,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 11:",t),P}}},{no:12,meta:Uo,component:async()=>{try{return await T(()=>import("./slidev/12-Br8HD0ry.js"),__vite__mapDeps([21,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 12:",t),P}}},{no:13,meta:Yo,component:async()=>{try{return await T(()=>import("./slidev/13-BpdoOWP8.js"),__vite__mapDeps([22,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 13:",t),P}}},{no:14,meta:Go,component:async()=>{try{return await T(()=>import("./slidev/14-K7PfMbDa.js"),__vite__mapDeps([23,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 14:",t),P}}},{no:15,meta:Ko,component:async()=>{try{return await T(()=>import("./slidev/15-KxS-zp5K.js"),__vite__mapDeps([24,9,1,10,2,13,14,6,3,4]))}catch(t){return console.error("Failed to load slide 15:",t),P}}},{no:16,meta:Zo,component:async()=>{try{return await T(()=>import("./16-bxaB7CET.js"),__vite__mapDeps([25,1,2,3,4]))}catch(t){return console.error("Failed to load slide 16:",t),P}}},{no:17,meta:Jo,component:async()=>{try{return await T(()=>import("./slidev/17-E5K1nUtU.js"),__vite__mapDeps([26,9,1,10,2,3,4]))}catch(t){return console.error("Failed to load slide 17:",t),P}}}],q=Qt(Xo);function Ee(t){return q.value.find(e=>{var n;return e.no===+t||((n=e.meta.slide)==null?void 0:n.frontmatter.routeAlias)===t})}function Ue(t,e){var s;(typeof t=="number"||typeof t=="string")&&(t=Ee(t));const n=((s=t.meta.slide)==null?void 0:s.frontmatter.routeAlias)??t.no;return e?`/presenter/${n}`:`/${n}`}function Qo(t,e,{mode:n="replace"}={}){const s=Ze();return p({get(){const r=s.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){ze(()=>{(s.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&s[kt(n)]({query:{...s.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const ht=C(0);function gn(t,e=0,n){const s=new Map,r=qn(new Map);return{get current(){return Pe(+t.value,e,this.total)},set current(o){t.value=Pe(+o,e,this.total)},clicksStart:e,relativeOffsets:s,map:r,onMounted(){},resolve(o,i=1){const[a,l]=Po(o);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+i-1,delta:l+i-1}}else return{start:l,end:l+i-1,delta:0}},register(o,i){s.set(o,i.delta),r.set(o,i)},unregister(o){s.delete(o),r.delete(o)},get currentOffset(){return ht.value,ts(...s.values())},get total(){return ht.value,n??Math.max(0,...[...r.values()].map(o=>o.max||0))}}}function ei(t,e=0){var s,r;const n=((s=t==null?void 0:t.meta.slide)==null?void 0:s.frontmatter.clicksStart)??0;return gn(C(Math.max(e,n)),n,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const jt=zn(),st=Vn("slidev-color-schema","auto"),Dt=p(()=>O.colorSchema!=="auto"),vn=p({get(){return Dt.value?O.colorSchema==="dark":st.value==="auto"?jt.value:st.value==="dark"},set(t){Dt.value||(st.value=t===jt.value?"auto":t?"dark":"light")}}),ma=Wn(vn);Bn&&_e(vn,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const ti={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function ni(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let n=t.name.includes("|")?t.name:ti[t.name]||t.name;if(n.includes("|")){const[s,r]=n.split("|").map(o=>o.trim());n=e?r:s}if(n)return{...t,name:n}}function si(t,e,n){var r,o;let s=t>0?(r=n==null?void 0:n.meta)==null?void 0:r.transition:(o=e==null?void 0:e.meta)==null?void 0:o.transition;return s||(s=O.transition),ni(s,t<0)}function yn(t,e,n=1){var r,o,i,a,l,c,u,f,h;const s=(o=(r=e.meta)==null?void 0:r.slide)==null?void 0:o.level;s&&s>n&&t.length>0?yn(t[t.length-1].children,e,n+1):t.push({no:e.no,children:[],level:n,path:Ue(((a=(i=e.meta.slide)==null?void 0:i.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function _n(t,e,n=!1,s,r){return t.map(o=>{const i={...o,active:o.no===(r==null?void 0:r.value),hasActiveParent:n};return i.children.length>0&&(i.children=_n(i.children,e,i.active||i.hasActiveParent,i,r)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function kn(t,e=1){return t.filter(n=>!n.hideInToc).map(n=>({...n,children:kn(n.children,e+1)}))}function ri(t,e,n){const s=p(()=>t.value.filter(o=>{var i,a;return(a=(i=o.meta)==null?void 0:i.slide)==null?void 0:a.title}).reduce((o,i)=>(yn(o,i),o),[])),r=p(()=>_n(s.value,n.value,void 0,void 0,e));return p(()=>kn(r.value))}function bn(t,e,n=C(0),s,r,o){const i=p(()=>q.value.length),a=C(0),l=C(0),c=p(()=>Ue(t.value,s.value)),u=p(()=>t.value.no),f=p(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=p(()=>e.value.current),d=p(()=>e.value.clicksStart),m=p(()=>e.value.total),g=p(()=>q.value[Math.min(q.value.length,u.value+1)-1]),y=p(()=>q.value[Math.max(1,u.value-1)-1]),v=p(()=>u.value<q.value.length||h.value<m.value),k=p(()=>u.value>1||h.value>0),b=p(()=>si(a.value,t.value,y.value));_e(t,(w,S)=>{a.value=w.no-S.no});async function M(w){return!1}const I=ri(q,u,t);async function z(){l.value=1,m.value<=n.value?await V():n.value+=1}async function me(){l.value=-1,n.value<=d.value?await W():n.value-=1}async function V(){l.value=1,u.value<q.value.length&&await A(u.value+1)}async function W(w=!0){var B,N;l.value=-1;const S=Math.max(1,u.value-1);await A(S,w?r.value?void 0:((N=(B=Ee(S))==null?void 0:B.meta.__clicksContext)==null?void 0:N.total)??Be:void 0)}function Le(){return A(1)}function $e(){return A(i.value)}async function A(w,S=0){var Ie,ke,At;un.value=!1;const B=u.value!==w,N=S!==n.value,D=(Ie=Ee(w))==null?void 0:Ie.meta,Xe=((ke=D==null?void 0:D.slide)==null?void 0:ke.frontmatter.clicksStart)??0;S=Pe(S,Xe,((At=D==null?void 0:D.__clicksContext)==null?void 0:At.total)??Be),(B||N)&&await(o==null?void 0:o.push({path:Ue(w,s.value),query:{...o.currentRoute.value.query,clicks:S===0?void 0:S.toString()}}))}return{slides:q,total:i,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:y,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:m,hasNext:v,hasPrev:k,tocTree:I,navDirection:a,openInEditor:M,next:z,prev:me,go:A,goLast:$e,goFirst:Le,nextSlide:V,prevSlide:W}}function ga(t,e){const n=async()=>{};return{...bn(p(()=>t),p(()=>e),C(Be),C(!1),C(!1)),next:n,prev:n,nextSlide:n,prevSlide:n,goFirst:n,goLast:n,go:n}}const oi=en(()=>{const t=Ze(),e=p(()=>t.currentRoute.value),n=p(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),s=p(()=>n.value.has("print")),r=p(()=>n.value.get("print")==="clicks"),o=p(()=>n.value.has("embedded")),i=p(()=>e.value.name==="play"),a=p(()=>e.value.name==="presenter"),l=p(()=>e.value.name==="notes"),c=p(()=>!a.value&&(!O.remote||n.value.get("password")===O.remote)),u=Un(i,a),f=p(()=>{var v;return u.value?((v=Ee(e.value.params.no))==null?void 0:v.no)??1:1}),h=p(()=>q.value[f.value-1]),d=Qo("clicks","0"),m=p(()=>y(h.value)),g=p({get(){let v=+(d.value||0);return Number.isNaN(v)&&(v=0),v},set(v){d.value=v.toString()}});function y(v){var M,I;if((M=v==null?void 0:v.meta)!=null&&M.__clicksContext)return v.meta.__clicksContext;const k=v.no,b=gn(p({get(){return f.value===k?Math.max(+(d.value??0),b.clicksStart):f.value>k?Be:b.clicksStart},set(z){f.value===k&&(d.value=Pe(z,b.clicksStart,b.total).toString())}}),((I=v==null?void 0:v.meta.slide)==null?void 0:I.frontmatter.clicksStart)??0,v==null?void 0:v.meta.clicks);return b.onMounted=()=>{f.value===k&&(d.value=Pe(+d.value,b.clicksStart,b.total).toString())},v!=null&&v.meta&&(v.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:s,isPrintWithClicks:r,isEmbedded:o,isPlaying:i,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:m,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:y}}),qt=en(()=>{const t=oi(),e=Ze(),n=bn(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return _e([n.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!Ee(t.currentRoute.value.params.no)&&await n.goLast()},{flush:"pre",immediate:!0}),{...n,...t}}),ii=[];function ai(){const t=Jt().appContext.app,e=x({nav:qt(),configs:O,themeConfigs:p(()=>O.themeConfig)});t.provide(ir,C("none")),t.provide(or,e),t.provide(rr,p(()=>e.nav.currentSlideNo)),t.provide(xt,Qt(ei()));for(const f of ii)f();const n=O.titleTemplate.replace("%s",O.title||"Slidev"),{clicksContext:s,currentSlideNo:r,hasPrimarySlide:o,isNotesViewer:i,isPresenter:a}=qt();Ks({title:n,htmlAttrs:O.htmlAttrs}),Qs(`${n} - shared`),sr(`${n} - drawings`);const l=`${location.origin}_${Ao()}`;function c(){i.value||!a.value&&!ar.includes(location.host.split(":")[0])||(a.value?(be("page",+r.value),be("clicks",s.value.current)):(be("viewerPage",+r.value),be("viewerClicks",s.value.current)),be("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=Ze();u.afterEach(c),_e(s,c),er(f=>{var h;o.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+s.value.current!=+f.clicks)&&(un.value=!1,u.replace({path:Ue(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const li=Yn({__name:"App",setup(t){return ai(),ye(()=>{for(const[e,n]of Object.entries(ls.value))document.body.style.setProperty(e,n.toString())}),(e,n)=>{const s=Gn("RouterView");return Xt(),Kn(s)}}}),ci=mn(li,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function xn(t,e,n){var s;return((s=t.instance)==null?void 0:s.$).provides[e]??n}function ui(){return{install(t){t.directive("click",{name:"v-click",mounted(e,n){const s=De(e,n,n.value);if(s==null)return;e.classList.toggle(je,!0);const r=Array.isArray(s.clicks)?s.clicks:[s.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ye(()=>{const o=s.isActive.value,i=s.isCurrent.value,a=o&&!i;s.flagHide?(e.classList.toggle(s.flagFade?we:xe,o),e.classList.toggle(et,o)):e.classList.toggle(s.flagFade?we:xe,!o),e.classList.toggle(tt,i),e.classList.toggle(nt,a)})},unmounted:ot}),t.directive("after",{name:"v-after",mounted(e,n){const s=De(e,n,n.value,!0);s!=null&&(e.classList.toggle(je,!0),ye(()=>{const r=s.isActive.value,o=s.isCurrent.value,i=r&&!o;s.flagHide?(e.classList.toggle(s.flagFade?we:xe,r),e.classList.toggle(et,r)):e.classList.toggle(s.flagFade?we:xe,!r),e.classList.toggle(tt,o),e.classList.toggle(nt,i)}))},unmounted:ot}),t.directive("click-hide",{name:"v-click-hide",mounted(e,n){const s=De(e,n,n.value,!1,!0);s!=null&&(e.classList.toggle(je,!0),ye(()=>{const r=s.isActive.value,o=s.isCurrent.value,i=r&&!o;e.classList.toggle(s.flagFade?we:xe,r),e.classList.toggle(et,r),e.classList.toggle(tt,o),e.classList.toggle(nt,i)}))},unmounted:ot})}}}function rt(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function fi(t,e){return Array.isArray(t)?t[0]===e:t===e}function De(t,e,n,s=!1,r=!1){var f;const o=(f=xn(e,xt))==null?void 0:f.value;if(!t||!o||n===!1||n==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const i=e.modifiers.fade!==!1&&e.modifiers.fade!=null;s?n="+0":(n==null||n===!0||n==="true")&&(n="+1");let a,l,c;Array.isArray(n)?(a=0,l=n,c=+n[1]):{start:l,end:c,delta:a}=o.resolve(n);const u={max:c,clicks:l,delta:a,isActive:p(()=>rt(l,o.current)),isCurrent:p(()=>fi(l,o.current)),isShown:p(()=>r?!rt(l,o.current):rt(l,o.current)),flagFade:i,flagHide:r};return o.register(t,u),u}function ot(t,e){var s;t.classList.toggle(je,!1);const n=(s=xn(e,xt))==null?void 0:s.value;n==null||n.unregister(t)}function wn(){return Math.floor(Math.random()*2**31)}class hi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function dt(t,e,n){if(t&&t.length){const[s,r]=e,o=Math.PI/180*n,i=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,u]=l;l[0]=(c-s)*i-(u-r)*a+s,l[1]=(c-s)*a+(u-r)*i+r}}}function di(t,e,n){const s=[];t.forEach(r=>s.push(...r)),dt(s,e,n)}function pi(t,e){return t[0]===e[0]&&t[1]===e[1]}function mi(t,e,n,s=1){const r=n,o=Math.max(e,.1),i=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of i)dt(c,a,r);const l=gi(i,o,s);if(r){for(const c of i)dt(c,a,-r);di(l,a,-r)}return l}function gi(t,e,n){const s=[];for(const c of t){const u=[...c];pi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&s.push(u)}const r=[];e=Math.max(e,.1);const o=[];for(const c of s)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);o.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(o.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!o.length)return r;let i=[],a=o[0].ymin,l=0;for(;i.length||o.length;){if(o.length){let c=-1;for(let f=0;f<o.length&&!(o[f].ymin>a);f++)c=f;o.splice(0,c+1).forEach(f=>{i.push({s:a,edge:f})})}if(i=i.filter(c=>!(c.edge.ymax<=a)),i.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(n!==1||l%e===0)&&i.length>1)for(let c=0;c<i.length;c=c+2){const u=c+1;if(u>=i.length)break;const f=i[c].edge,h=i[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=n,i.forEach(c=>{c.edge.x=c.edge.x+n*c.edge.islope}),l++}return r}function Ce(t,e){var n;const s=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=r),mi(t,r,s,o||1)}class St{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const s=Ce(e,n);return{type:"fillSketch",ops:this.renderLines(s,n)}}renderLines(e,n){const s=[];for(const r of e)s.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],n));return s}}function Je(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class vi extends St{fillPolygons(e,n){let s=n.hachureGap;s<0&&(s=n.strokeWidth*4),s=Math.max(s,.1);const r=Object.assign({},n,{hachureGap:s}),o=Ce(e,r),i=Math.PI/180*n.hachureAngle,a=[],l=s*.5*Math.cos(i),c=s*.5*Math.sin(i);for(const[f,h]of o)Je([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,n)}}}class yi extends St{fillPolygons(e,n){const s=this._fillPolygons(e,n),r=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,r);return s.ops=s.ops.concat(o.ops),s}}class _i{constructor(e){this.helper=e}fillPolygons(e,n){n=Object.assign({},n,{hachureAngle:0});const s=Ce(e,n);return this.dotsOnLines(s,n)}dotsOnLines(e,n){const s=[];let r=n.hachureGap;r<0&&(r=n.strokeWidth*4),r=Math.max(r,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const i=r/4;for(const a of e){const l=Je(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let m=0;m<u;m++){const g=d+f+m*r,y=h-i+Math.random()*2*i,v=g-i+Math.random()*2*i,k=this.helper.ellipse(y,v,o,o,n);s.push(...k.ops)}}return{type:"fillSketch",ops:s}}}class ki{constructor(e){this.helper=e}fillPolygons(e,n){const s=Ce(e,n);return{type:"fillSketch",ops:this.dashedLine(s,n)}}dashedLine(e,n){const s=n.dashOffset<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashOffset,r=n.dashGap<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashGap,o=[];return e.forEach(i=>{const a=Je(i),l=Math.floor(a/(s+r)),c=(a+r-l*(s+r))/2;let u=i[0],f=i[1];u[0]>f[0]&&(u=i[1],f=i[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const m=d*(s+r),g=m+s,y=[u[0]+m*Math.cos(h)+c*Math.cos(h),u[1]+m*Math.sin(h)+c*Math.sin(h)],v=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];o.push(...this.helper.doubleLineOps(y[0],y[1],v[0],v[1],n))}}),o}}class bi{constructor(e){this.helper=e}fillPolygons(e,n){const s=n.hachureGap<0?n.strokeWidth*4:n.hachureGap,r=n.zigzagOffset<0?s:n.zigzagOffset;n=Object.assign({},n,{hachureGap:s+r});const o=Ce(e,n);return{type:"fillSketch",ops:this.zigzagLines(o,r,n)}}zigzagLines(e,n,s){const r=[];return e.forEach(o=>{const i=Je(o),a=Math.round(i/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*n,d=(f+1)*2*n,m=Math.sqrt(2*Math.pow(n,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],y=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],v=[g[0]+m*Math.cos(u+Math.PI/4),g[1]+m*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],v[0],v[1],s),...this.helper.doubleLineOps(v[0],v[1],y[0],y[1],s))}}),r}}const L={};function xi(t,e){let n=t.fillStyle||"hachure";if(!L[n])switch(n){case"zigzag":L[n]||(L[n]=new vi(e));break;case"cross-hatch":L[n]||(L[n]=new yi(e));break;case"dots":L[n]||(L[n]=new _i(e));break;case"dashed":L[n]||(L[n]=new ki(e));break;case"zigzag-line":L[n]||(L[n]=new bi(e));break;case"hachure":default:n="hachure",L[n]||(L[n]=new St(e));break}return L[n]}const wi=0,pt=1,Mn=2,Re={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Mi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:wi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:pt,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:Mn,text:""},e}function it(t,e){return t.type===e}function Tt(t){const e=[],n=Mi(t);let s="BOD",r=0,o=n[r];for(;!it(o,Mn);){let i=0;const a=[];if(s==="BOD")if(o.text==="M"||o.text==="m")r++,i=Re[o.text],s=o.text;else return Tt("M0,0"+t);else it(o,pt)?i=Re[s]:(r++,i=Re[o.text],s=o.text);if(r+i<n.length){for(let l=r;l<r+i;l++){const c=n[l];if(it(c,pt))a[a.length]=+c.text;else throw new Error("Param not a number: "+s+","+c.text)}if(typeof Re[s]=="number"){const l={key:s,data:a};e.push(l),r+=i,o=n[r],s==="M"&&(s="L"),s==="m"&&(s="l")}else throw new Error("Bad segment: "+s)}else throw new Error("Path data ended short")}return e}function Sn(t){let e=0,n=0,s=0,r=0;const o=[];for(const{key:i,data:a}of t)switch(i){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[s,r]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),s=e,r=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=s,n=r;break}return o}function Tn(t){const e=[];let n="",s=0,r=0,o=0,i=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[s,r]=u,[o,i]=u;break;case"C":e.push({key:"C",data:[...u]}),s=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[s,r]=u;break;case"H":s=u[0],e.push({key:"L",data:[s,r]});break;case"V":r=u[0],e.push({key:"L",data:[s,r]});break;case"S":{let f=0,h=0;n==="C"||n==="S"?(f=s+(s-a),h=r+(r-l)):(f=s,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],s=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,m=0;n==="Q"||n==="T"?(d=s+(s-a),m=r+(r-l)):(d=s,m=r);const g=s+2*(d-s)/3,y=r+2*(m-r)/3,v=f+2*(d-f)/3,k=h+2*(m-h)/3;e.push({key:"C",data:[g,y,v,k,f,h]}),a=d,l=m,s=f,r=h;break}case"Q":{const[f,h,d,m]=u,g=s+2*(f-s)/3,y=r+2*(h-r)/3,v=d+2*(f-d)/3,k=m+2*(h-m)/3;e.push({key:"C",data:[g,y,v,k,d,m]}),a=f,l=h,s=d,r=m;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],m=u[3],g=u[4],y=u[5],v=u[6];f===0||h===0?(e.push({key:"C",data:[s,r,y,v,y,v]}),s=y,r=v):(s!==y||r!==v)&&(An(s,r,y,v,f,h,d,m,g).forEach(function(b){e.push({key:"C",data:b})}),s=y,r=v);break}case"Z":e.push({key:"Z",data:[]}),s=o,r=i;break}n=c}return e}function Si(t){return Math.PI*t/180}function Me(t,e,n){const s=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return[s,r]}function An(t,e,n,s,r,o,i,a,l,c){const u=Si(i);let f=[],h=0,d=0,m=0,g=0;if(c)[h,d,m,g]=c;else{[t,e]=Me(t,e,-u),[n,s]=Me(n,s,-u);const A=(t-n)/2,w=(e-s)/2;let S=A*A/(r*r)+w*w/(o*o);S>1&&(S=Math.sqrt(S),r=S*r,o=S*o);const B=a===l?-1:1,N=r*r,D=o*o,Xe=N*D-N*w*w-D*A*A,Ie=N*w*w+D*A*A,ke=B*Math.sqrt(Math.abs(Xe/Ie));m=ke*r*w/o+(t+n)/2,g=ke*-o*A/r+(e+s)/2,h=Math.asin(parseFloat(((e-g)/o).toFixed(9))),d=Math.asin(parseFloat(((s-g)/o).toFixed(9))),t<m&&(h=Math.PI-h),n<m&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let y=d-h;if(Math.abs(y)>Math.PI*120/180){const A=d,w=n,S=s;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,n=m+r*Math.cos(d),s=g+o*Math.sin(d),f=An(n,s,w,S,r,o,i,0,l,[d,A,m,g])}y=d-h;const v=Math.cos(h),k=Math.sin(h),b=Math.cos(d),M=Math.sin(d),I=Math.tan(y/4),z=4/3*r*I,me=4/3*o*I,V=[t,e],W=[t+z*k,e-me*v],Le=[n+z*M,s-me*b],$e=[n,s];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],c)return[W,Le,$e].concat(f);{f=[W,Le,$e].concat(f);const A=[];for(let w=0;w<f.length;w+=3){const S=Me(f[w][0],f[w][1],u),B=Me(f[w+1][0],f[w+1][1],u),N=Me(f[w+2][0],f[w+2][1],u);A.push([S[0],S[1],B[0],B[1],N[0],N[1]])}return A}}const Ti={randOffset:Oi,randOffsetWithRange:Ei,ellipse:mt,doubleLineOps:Ci};function H(t,e,n,s,r){return{type:"path",ops:Y(t,e,n,s,r)}}function Te(t,e,n){const s=(t||[]).length;if(s>2){const r=[];for(let o=0;o<s-1;o++)r.push(...Y(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&r.push(...Y(t[s-1][0],t[s-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}else if(s===2)return H(t[0][0],t[0][1],t[1][0],t[1][1],n);return{type:"path",ops:[]}}function Ai(t,e){return Te(t,!0,e)}function Pn(t,e,n,s,r){const o=[[t,e],[t+n,e],[t+n,e+s],[t,e+s]];return Ai(o,r)}function zt(t,e){if(t.length){const s=typeof t[0][0]=="number"?[t]:t,r=He(s[0],1*(1+e.roughness*.2),e),o=e.disableMultiStroke?[]:He(s[0],1.5*(1+e.roughness*.22),Bt(e));for(let i=1;i<s.length;i++){const a=s[i];if(a.length){const l=He(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:He(a,1.5*(1+e.roughness*.22),Bt(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&o.push(u)}}return{type:"path",ops:r.concat(o)}}return{type:"path",ops:[]}}function mt(t,e,n,s,r){const o=On(n,s,r);return gt(t,e,r,o).opset}function On(t,e,n){const s=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*s)),o=Math.PI*2/r;let i=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return i+=_(i*l,n),a+=_(a*l,n),{increment:o,rx:i,ry:a}}function gt(t,e,n,s){const[r,o]=Ut(s.increment,t,e,s.rx,s.ry,1,s.increment*Ye(.1,Ye(.4,1,n),n),n);let i=Ge(r,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=Ut(s.increment,t,e,s.rx,s.ry,1.5,0,n),l=Ge(a,null,n);i=i.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:i}}}function Vt(t,e,n,s,r,o,i,a,l){const c=t,u=e;let f=Math.abs(n/2),h=Math.abs(s/2);f+=_(f*.01,l),h+=_(h*.01,l);let d=r,m=o;for(;d<0;)d+=Math.PI*2,m+=Math.PI*2;m-d>Math.PI*2&&(d=0,m=Math.PI*2);const g=Math.PI*2/l.curveStepCount,y=Math.min(g/2,(m-d)/2),v=Yt(y,c,u,f,h,d,m,1,l);if(!l.disableMultiStroke){const k=Yt(y,c,u,f,h,d,m,1.5,l);v.push(...k)}return i&&(a?v.push(...Y(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...Y(c,u,c+f*Math.cos(m),u+h*Math.sin(m),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:v}}function Wt(t,e){const n=Tn(Sn(Tt(t))),s=[];let r=[0,0],o=[0,0];for(const{key:i,data:a}of n)switch(i){case"M":{o=[a[0],a[1]],r=[a[0],a[1]];break}case"L":s.push(...Y(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;s.push(...Li(l,c,u,f,h,d,o,e)),o=[h,d];break}case"Z":s.push(...Y(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]];break}return{type:"path",ops:s}}function at(t,e){const n=[];for(const s of t)if(s.length){const r=e.maxRandomnessOffset||0,o=s.length;if(o>2){n.push({op:"move",data:[s[0][0]+_(r,e),s[0][1]+_(r,e)]});for(let i=1;i<o;i++)n.push({op:"lineTo",data:[s[i][0]+_(r,e),s[i][1]+_(r,e)]})}}return{type:"fillPath",ops:n}}function ve(t,e){return xi(e,Ti).fillPolygons(t,e)}function Pi(t,e,n,s,r,o,i){const a=t,l=e;let c=Math.abs(n/2),u=Math.abs(s/2);c+=_(c*.01,i),u+=_(u*.01,i);let f=r,h=o;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/i.curveStepCount,m=[];for(let g=f;g<=h;g=g+d)m.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return m.push([a+c*Math.cos(h),l+u*Math.sin(h)]),m.push([a,l]),ve([m],i)}function Oi(t,e){return _(t,e)}function Ei(t,e,n){return Ye(t,e,n)}function Ci(t,e,n,s,r){return Y(t,e,n,s,r,!0)}function Bt(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function En(t){return t.randomizer||(t.randomizer=new hi(t.seed||0)),t.randomizer.next()}function Ye(t,e,n,s=1){return n.roughness*s*(En(n)*(e-t)+t)}function _(t,e,n=1){return Ye(-t,t,e,n)}function Y(t,e,n,s,r,o=!1){const i=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=vt(t,e,n,s,r,!0,!1);if(i)return a;const l=vt(t,e,n,s,r,!0,!0);return a.concat(l)}function vt(t,e,n,s,r,o,i){const a=Math.pow(t-n,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+En(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(s-e)/200,m=r.bowing*r.maxRandomnessOffset*(t-n)/200;d=_(d,r,c),m=_(m,r,c);const g=[],y=()=>_(f,r,c),v=()=>_(u,r,c),k=r.preserveVertices;return o&&(i?g.push({op:"move",data:[t+(k?0:y()),e+(k?0:y())]}):g.push({op:"move",data:[t+(k?0:_(u,r,c)),e+(k?0:_(u,r,c))]})),i?g.push({op:"bcurveTo",data:[d+t+(n-t)*h+y(),m+e+(s-e)*h+y(),d+t+2*(n-t)*h+y(),m+e+2*(s-e)*h+y(),n+(k?0:y()),s+(k?0:y())]}):g.push({op:"bcurveTo",data:[d+t+(n-t)*h+v(),m+e+(s-e)*h+v(),d+t+2*(n-t)*h+v(),m+e+2*(s-e)*h+v(),n+(k?0:v()),s+(k?0:v())]}),g}function He(t,e,n){if(!t.length)return[];const s=[];s.push([t[0][0]+_(e,n),t[0][1]+_(e,n)]),s.push([t[0][0]+_(e,n),t[0][1]+_(e,n)]);for(let r=1;r<t.length;r++)s.push([t[r][0]+_(e,n),t[r][1]+_(e,n)]),r===t.length-1&&s.push([t[r][0]+_(e,n),t[r][1]+_(e,n)]);return Ge(s,null,n)}function Ge(t,e,n){const s=t.length,r=[];if(s>3){const o=[],i=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<s;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(i*t[a+1][0]-i*t[a-1][0])/6,l[1]+(i*t[a+1][1]-i*t[a-1][1])/6],o[2]=[t[a+1][0]+(i*t[a][0]-i*t[a+2][0])/6,t[a+1][1]+(i*t[a][1]-i*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&e.length===2){const a=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+_(a,n),e[1]+_(a,n)]})}}else s===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):s===2&&r.push(...vt(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return r}function Ut(t,e,n,s,r,o,i,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+s*Math.cos(-t),n+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+s*Math.cos(f),n+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+s*Math.cos(0),n+r*Math.sin(0)]),u.push([e+s*Math.cos(t),n+r*Math.sin(t)])}else{const f=_(.5,a)-Math.PI/2;u.push([_(o,a)+e+.9*s*Math.cos(f-t),_(o,a)+n+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const m=[_(o,a)+e+s*Math.cos(d),_(o,a)+n+r*Math.sin(d)];c.push(m),u.push(m)}u.push([_(o,a)+e+s*Math.cos(f+Math.PI*2+i*.5),_(o,a)+n+r*Math.sin(f+Math.PI*2+i*.5)]),u.push([_(o,a)+e+.98*s*Math.cos(f+i),_(o,a)+n+.98*r*Math.sin(f+i)]),u.push([_(o,a)+e+.9*s*Math.cos(f+i*.5),_(o,a)+n+.9*r*Math.sin(f+i*.5)])}return[u,c]}function Yt(t,e,n,s,r,o,i,a,l){const c=o+_(.1,l),u=[];u.push([_(a,l)+e+.9*s*Math.cos(c-t),_(a,l)+n+.9*r*Math.sin(c-t)]);for(let f=c;f<=i;f=f+t)u.push([_(a,l)+e+s*Math.cos(f),_(a,l)+n+r*Math.sin(f)]);return u.push([e+s*Math.cos(i),n+r*Math.sin(i)]),u.push([e+s*Math.cos(i),n+r*Math.sin(i)]),Ge(u,null,l)}function Li(t,e,n,s,r,o,i,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+(h?0:_(c[0],a)),i[1]+(h?0:_(c[0],a))]}),u=h?[r,o]:[r+_(c[d],a),o+_(c[d],a)],l.push({op:"bcurveTo",data:[t+_(c[d],a),e+_(c[d],a),n+_(c[d],a),s+_(c[d],a),u[0],u[1]]});return l}function Se(t){return[...t]}function Gt(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const s=[];if(n===3)s.push(Se(t[0]),Se(t[1]),Se(t[2]),Se(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const o=[],i=1-e;s.push(Se(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(i*r[a+1][0]-i*r[a-1][0])/6,l[1]+(i*r[a+1][1]-i*r[a-1][1])/6],o[2]=[r[a+1][0]+(i*r[a][0]-i*r[a+2][0])/6,r[a+1][1]+(i*r[a][1]-i*r[a+2][1])/6],o[3]=[r[a+1][0],r[a+1][1]],s.push(o[1],o[2],o[3])}}return s}function $i(t,e){return Math.sqrt(qe(t,e))}function qe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Ii(t,e,n){const s=qe(e,n);if(s===0)return qe(t,e);let r=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/s;return r=Math.max(0,Math.min(1,r)),qe(t,fe(e,n,r))}function fe(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ri(t,e){const n=t[e+0],s=t[e+1],r=t[e+2],o=t[e+3];let i=3*s[0]-2*n[0]-o[0];i*=i;let a=3*s[1]-2*n[1]-o[1];a*=a;let l=3*r[0]-2*o[0]-n[0];l*=l;let c=3*r[1]-2*o[1]-n[1];return c*=c,i<l&&(i=l),a<c&&(a=c),i+a}function yt(t,e,n,s){const r=s||[];if(Ri(t,e)<n){const o=t[e+0];r.length?$i(r[r.length-1],o)>1&&r.push(o):r.push(o),r.push(t[e+3])}else{const i=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=fe(i,a,.5),f=fe(a,l,.5),h=fe(l,c,.5),d=fe(u,f,.5),m=fe(f,h,.5),g=fe(d,m,.5);yt([i,u,d,g],0,n,r),yt([g,m,h,c],0,n,r)}return r}function Hi(t,e){return Ke(t,0,t.length,e)}function Ke(t,e,n,s,r){const o=r||[],i=t[e],a=t[n-1];let l=0,c=1;for(let u=e+1;u<n-1;++u){const f=Ii(t[u],i,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>s?(Ke(t,e,c+1,s,o),Ke(t,c,n,s,o)):(o.length||o.push(i),o.push(a)),o}function _t(t,e=.15,n){const s=[],r=(t.length-1)/3;for(let o=0;o<r;o++){const i=o*3;yt(t,i,e,s)}return n&&n>0?Ke(s,0,s.length,n):s}function Fi(t,e,n){const s=Tt(t),r=Tn(Sn(s)),o=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(..._t(l,e)),l=[]},u=()=>{c(),i.length&&(o.push(i),i=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],i.push(a);break;case"L":c(),i.push([d[0],d[1]]);break;case"C":if(!l.length){const m=i.length?i[i.length-1]:a;l.push([m[0],m[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(u(),!n)return o;const f=[];for(const h of o){const d=Hi(h,n);d.length&&f.push(d)}return f}const R="none";class Ni{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return wn()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,s){return{shape:e,sets:n||[],options:s||this.defaultOptions}}line(e,n,s,r,o){const i=this._o(o);return this._d("line",[H(e,n,s,r,i)],i)}rectangle(e,n,s,r,o){const i=this._o(o),a=[],l=Pn(e,n,s,r,i);if(i.fill){const c=[[e,n],[e+s,n],[e+s,n+r],[e,n+r]];i.fillStyle==="solid"?a.push(at([c],i)):a.push(ve([c],i))}return i.stroke!==R&&a.push(l),this._d("rectangle",a,i)}ellipse(e,n,s,r,o){const i=this._o(o),a=[],l=On(s,r,i),c=gt(e,n,i,l);if(i.fill)if(i.fillStyle==="solid"){const u=gt(e,n,i,l).opset;u.type="fillPath",a.push(u)}else a.push(ve([c.estimatedPoints],i));return i.stroke!==R&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,n,s,r){const o=this.ellipse(e,n,s,s,r);return o.shape="circle",o}linearPath(e,n){const s=this._o(n);return this._d("linearPath",[Te(e,!1,s)],s)}arc(e,n,s,r,o,i,a=!1,l){const c=this._o(l),u=[],f=Vt(e,n,s,r,o,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Vt(e,n,s,r,o,i,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(Pi(e,n,s,r,o,i,c));return c.stroke!==R&&u.push(f),this._d("arc",u,c)}curve(e,n){const s=this._o(n),r=[],o=zt(e,s);if(s.fill&&s.fill!==R)if(s.fillStyle==="solid"){const i=zt(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?i.push(...u):u.length===3?i.push(..._t(Gt([u[0],u[0],u[1],u[2]]),10,(1+s.roughness)/2)):i.push(..._t(Gt(u),10,(1+s.roughness)/2))}i.length&&r.push(ve([i],s))}return s.stroke!==R&&r.push(o),this._d("curve",r,s)}polygon(e,n){const s=this._o(n),r=[],o=Te(e,!0,s);return s.fill&&(s.fillStyle==="solid"?r.push(at([e],s)):r.push(ve([e],s))),s.stroke!==R&&r.push(o),this._d("polygon",r,s)}path(e,n){const s=this._o(n),r=[];if(!e)return this._d("path",r,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=s.fill&&s.fill!=="transparent"&&s.fill!==R,i=s.stroke!==R,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=Fi(e,1,l),u=Wt(e,s);if(o)if(s.fillStyle==="solid")if(c.length===1){const f=Wt(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(at(c,s));else r.push(ve(c,s));return i&&(a?c.forEach(f=>{r.push(Te(f,!1,s))}):r.push(u)),this._d("path",r,s)}opsToPath(e,n){let s="";for(const r of e.ops){const o=typeof n=="number"&&n>=0?r.data.map(i=>+i.toFixed(n)):r.data;switch(r.op){case"move":s+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}return s.trim()}toPaths(e){const n=e.sets||[],s=e.options||this.defaultOptions,r=[];for(const o of n){let i=null;switch(o.type){case"path":i={d:this.opsToPath(o),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:R};break;case"fillPath":i={d:this.opsToPath(o),stroke:R,strokeWidth:0,fill:s.fill||R};break;case"fillSketch":i=this.fillSketch(o,s);break}i&&r.push(i)}return r}fillSketch(e,n){let s=n.fillWeight;return s<0&&(s=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||R,strokeWidth:s,fill:R}}_mergedShape(e){return e.filter((n,s)=>s===0?!0:n.op!=="move")}}const Cn="http://www.w3.org/2000/svg",ji=800;let lt=null;function Di(){return lt||(lt=new Ni().defaultOptions),lt}function ct(t,e,n){return{...Di(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...n}}function qi(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const n=e;if(n.length)switch(n.length){case 4:return[...n];case 1:return[n[0],n[0],n[0],n[0]];case 2:return[...n,...n];case 3:return[...n,n[1]];default:return[n[0],n[1],n[2],n[3]]}}}return[5,5,5,5]}function zi(t,e,n,s,r,o){const i=[];let a=n.strokeWidth||2;const l=qi(n),c=n.animate===void 0?!0:!!n.animate,u=n.iterations||2,f=n.rtl?1:0,h=ct("single",o,n);switch(n.type){case"underline":{const d=e.y+e.h+l[2];for(let m=f;m<u+f;m++)m%2?i.push(H(e.x+e.w,d,e.x,d,h)):i.push(H(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let m=f;m<u+f;m++)m%2?i.push(H(e.x+e.w,d,e.x,d,h)):i.push(H(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],m=e.y-l[0],g=e.w+(l[1]+l[3]),y=e.h+(l[0]+l[2]);for(let v=0;v<u;v++)i.push(Pn(d,m,g,y,h));break}case"bracket":{const d=Array.isArray(n.brackets)?n.brackets:n.brackets?[n.brackets]:["right"],m=e.x-l[3]*2,g=e.x+e.w+l[1]*2,y=e.y-l[0]*2,v=e.y+e.h+l[2]*2;for(const k of d){let b;switch(k){case"bottom":b=[[m,e.y+e.h],[m,v],[g,v],[g,e.y+e.h]];break;case"top":b=[[m,e.y],[m,y],[g,y],[g,e.y]];break;case"left":b=[[e.x,y],[m,y],[m,v],[e.x,v]];break;case"right":b=[[e.x+e.w,y],[g,y],[g,v],[e.x+e.w,v]];break}b&&i.push(Te(b,!1,h))}break}case"crossed-off":{const d=e.x,m=e.y,g=d+e.w,y=m+e.h;for(let v=f;v<u+f;v++)v%2?i.push(H(g,y,d,m,h)):i.push(H(d,m,g,y,h));for(let v=f;v<u+f;v++)v%2?i.push(H(d,y,g,m,h)):i.push(H(g,m,d,y,h));break}case"circle":{const d=ct("double",o,n),m=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),y=e.x-l[3]+m/2,v=e.y-l[0]+g/2,k=Math.floor(u/2),b=u-k*2;for(let M=0;M<k;M++)i.push(mt(y,v,m,g,d));for(let M=0;M<b;M++)i.push(mt(y,v,m,g,h));break}case"highlight":{const d=ct("highlight",o,n);a=e.h*.95;const m=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?i.push(H(e.x+e.w,m,e.x,m,d)):i.push(H(e.x,m,e.x+e.w,m,d));break}}if(i.length){const d=Vi(i),m=[],g=[];let y=0;const v=(k,b,M)=>k.setAttribute(b,M);for(const k of d){const b=document.createElementNS(Cn,"path");if(v(b,"d",k),v(b,"fill","none"),v(b,"stroke",n.color||"currentColor"),v(b,"stroke-width",`${a}`),n.opacity!==void 0&&v(b,"style",`opacity:${n.opacity}`),c){const M=b.getTotalLength();m.push(M),y+=M}t.appendChild(b),g.push(b)}if(c){let k=0;for(let b=0;b<g.length;b++){const M=g[b],I=m[b],z=y?r*(I/y):0,me=s+k,V=M.style;V.strokeDashoffset=`${I}`,V.strokeDasharray=`${I}`,V.animation=`rough-notation-dash ${z}ms ease-out ${me}ms forwards`,k+=z}return Kt(r+s)}}return Kt(0)}function Kt(t){return new Promise(e=>setTimeout(e,t))}function Vi(t){const e=[];for(const n of t){let s="";for(const r of n.ops){const o=r.data;switch(r.op){case"move":s.trim()&&e.push(s.trim()),s=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function Wi(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var Bi=Object.defineProperty,Ui=(t,e,n)=>e in t?Bi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e,n)=>(Ui(t,typeof e!="symbol"?e+"":e,n),n);class Yi{constructor(e,n){j(this,"_state","unattached"),j(this,"_config"),j(this,"_resizing",!1),j(this,"_ro"),j(this,"_seed",wn()),j(this,"_e"),j(this,"_svg"),j(this,"_lastSizes",[]),j(this,"_animationDelay",0),j(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),j(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(n)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,n){this._config[e]!==n&&(this._config[e]=n,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){Wi();const e=this._svg=document.createElementNS(Cn,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const n=e.style;n.position="absolute",n.top="0",n.left="0",n.overflow="visible",n.pointerEvents="none",n.width="100px",n.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const n of e)n.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let n=0;n<e.length;n++)if(!this.isSameRect(e[n],this._lastSizes[n]))return!0}else return!0}return!1}isSameRect(e,n){const s=(r,o)=>Math.round(r)===Math.round(o);return s(e.x,n.x)&&s(e.y,n.y)&&s(e.w,n.w)&&s(e.h,n.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,n){let s=this._config;n&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const r=this.rects();let o=0;r.forEach(c=>o+=c.w);const i=s.animationDuration||ji;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=i*(u.w/o);l.push(zi(e,r[c],s,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const n=this._e.getClientRects();for(let s=0;s<n.length;s++)e.push(this.svgRect(this._svg,n[s]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,n){const s=e.getBoundingClientRect(),r=n;return{x:(r.x||r.left)-(s.x||s.left),y:(r.y||r.top)-(s.y||s.top),w:r.width,h:r.height}}}function Gi(t,e){return new Yi(t,e)}function $(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Zt={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>$(t,"text-black"),blue:t=>$(t,"text-blue"),cyan:t=>$(t,"text-cyan"),gray:t=>$(t,"text-gray"),green:t=>$(t,"text-green"),indigo:t=>$(t,"text-indigo"),lime:t=>$(t,"text-lime"),orange:t=>$(t,"text-orange"),pink:t=>$(t,"text-pink"),purple:t=>$(t,"text-purple"),red:t=>$(t,"text-red"),teal:t=>$(t,"text-teal"),white:t=>$(t,"text-white"),yellow:t=>$(t,"text-yellow")},Ki=[[/^delay-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||100;return e.opacity=s/100,e}]];function Zi(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,n)=>{const s=p(()=>{const i=typeof n.value=="object"&&!Array.isArray(n.value)?{...n.value}:{at:n.value};let a={at:i.at};const l=Object.entries(n.modifiers).filter(([u,f])=>{if(Zt[u])return a=Zt[u](a,f),!1;for(const[h,d]of Ki){const m=u.match(h);if(m)return a=d(m,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...i};return c.type||(c.type="underline"),c}),r=Gi(e,s.value),o=De(e,n,s.value.at);if(!o){r.show();return}ye(()=>{let i;s.value.class&&(r.class=s.value.class),s.value.color&&(r.color=s.value.color);const a=s.value.at;a===!0?i=!0:a===!1?i=!1:i=o.isActive.value,i!=null&&(i?r.show():r.hide())})}})}}}const Ae=[{name:"print",path:"/print",component:()=>T(()=>import("./slidev/print-Cuoz4ihj.js"),__vite__mapDeps([27,1,3,4,28,2,29,30,31]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!O.remote||O.remote===e.query.password)return!0;if(O.remote&&e.query.password===void 0){const n=prompt("Enter password");if(O.remote===n)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};Ae.push({path:"/presenter/print",component:()=>T(()=>import("./slidev/print-D_Ohj4Z4.js"),__vite__mapDeps([32,1,33,34,3,4]))}),Ae.push({name:"presenter",path:"/presenter/:no",component:()=>T(()=>import("./slidev/presenter-DISpLE2-.js"),__vite__mapDeps([35,36,1,37,38,28,2,29,3,4,39,33,34,40,41,42])),beforeEnter:t}),Ae.push({path:"/presenter",redirect:{path:"/presenter/1"}})}Ae.push({name:"play",path:"/:no",component:()=>T(()=>import("./slidev/play-DrsfZ8aC.js"),__vite__mapDeps([43,1,28,2,29,37,38,36,3,4,39,30,44]))});const Ji=[];async function Xi(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const n=Zn({history:Jn("/slides/bisonex"),routes:Ae});t.use(n),t.use(Ys()),t.use(ui()),t.use(Zi()),t.use(Xn),t.use(es,{container:"#twoslash-container"});const s={app:t,router:n};ze(()=>{n.afterEach(async()=>{await ze(),ht.value+=1})});for(const r of Ji)await r(s)}const Ln=Qn(ci);Xi(Ln);Ln.mount("#app");export{lr as $,xt as A,ha as B,Be as C,G as D,K as E,Z as F,J as G,X as H,Q as I,ee as J,te as K,ne as L,se as M,re as N,oe as O,ie as P,ae as Q,le as R,na as S,Ao as T,ce as U,ue as V,Po as W,ns as X,fa as Y,da as Z,T as _,as as a,aa as a0,ia as a1,oa as a2,mn as b,O as c,ei as d,ga as e,is as f,la as g,Ks as h,or as i,Ee as j,Pe as k,pa as l,ra as m,q as n,Ue as o,Dt as p,vn as q,ta as r,sa as s,ma as t,qt as u,un as v,ca as w,rr as x,ir as y,ua as z};
`,raw:"",frontmatter:ue,filepath:"/home/alex/notes/slides/bisonex.md",start:365,id:16,no:17},__clicksContext:null,__preloaded:!1}),Xo=[{no:1,meta:Ro,component:async()=>{try{return await T(()=>import("./1-CNaGU8bv.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),P}}},{no:2,meta:Ho,component:async()=>{try{return await T(()=>import("./slidev/2-DCJpLkj0.js"),__vite__mapDeps([5,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),P}}},{no:3,meta:Fo,component:async()=>{try{return await T(()=>import("./slidev/3-Bn7knO2P.js"),__vite__mapDeps([7,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 3:",t),P}}},{no:4,meta:No,component:async()=>{try{return await T(()=>import("./slidev/4-CmMHf5y_.js"),__vite__mapDeps([8,9,1,10,2,11,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),P}}},{no:5,meta:jo,component:async()=>{try{return await T(()=>import("./slidev/5-JfvtsrXh.js"),__vite__mapDeps([12,13,1,14,6,2,3,4]))}catch(t){return console.error("Failed to load slide 5:",t),P}}},{no:6,meta:Do,component:async()=>{try{return await T(()=>import("./slidev/6-BVM9Ke8g.js"),__vite__mapDeps([15,10,1,2,9,11,3,4]))}catch(t){return console.error("Failed to load slide 6:",t),P}}},{no:7,meta:qo,component:async()=>{try{return await T(()=>import("./slidev/7-Dolx9XtB.js"),__vite__mapDeps([16,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 7:",t),P}}},{no:8,meta:zo,component:async()=>{try{return await T(()=>import("./slidev/8-DMFu6OKT.js"),__vite__mapDeps([17,10,1,2,11,3,4]))}catch(t){return console.error("Failed to load slide 8:",t),P}}},{no:9,meta:Vo,component:async()=>{try{return await T(()=>import("./slidev/9-C_HPX4D4.js"),__vite__mapDeps([18,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 9:",t),P}}},{no:10,meta:Wo,component:async()=>{try{return await T(()=>import("./slidev/10-B45Uc2JQ.js"),__vite__mapDeps([19,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 10:",t),P}}},{no:11,meta:Bo,component:async()=>{try{return await T(()=>import("./slidev/11-DWWF-DyE.js"),__vite__mapDeps([20,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 11:",t),P}}},{no:12,meta:Uo,component:async()=>{try{return await T(()=>import("./slidev/12-D9vCIVP-.js"),__vite__mapDeps([21,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 12:",t),P}}},{no:13,meta:Yo,component:async()=>{try{return await T(()=>import("./slidev/13-CpxYvKZF.js"),__vite__mapDeps([22,1,11,2,3,4]))}catch(t){return console.error("Failed to load slide 13:",t),P}}},{no:14,meta:Go,component:async()=>{try{return await T(()=>import("./slidev/14-CCERSGCi.js"),__vite__mapDeps([23,1,6,2,3,4]))}catch(t){return console.error("Failed to load slide 14:",t),P}}},{no:15,meta:Ko,component:async()=>{try{return await T(()=>import("./slidev/15-j7cMwZ1G.js"),__vite__mapDeps([24,9,1,10,2,13,14,6,3,4]))}catch(t){return console.error("Failed to load slide 15:",t),P}}},{no:16,meta:Zo,component:async()=>{try{return await T(()=>import("./16-CW2TP1nL.js"),__vite__mapDeps([25,1,2,3,4]))}catch(t){return console.error("Failed to load slide 16:",t),P}}},{no:17,meta:Jo,component:async()=>{try{return await T(()=>import("./slidev/17-B0923ZyW.js"),__vite__mapDeps([26,9,1,10,2,3,4]))}catch(t){return console.error("Failed to load slide 17:",t),P}}}],q=Qt(Xo);function Ee(t){return q.value.find(e=>{var n;return e.no===+t||((n=e.meta.slide)==null?void 0:n.frontmatter.routeAlias)===t})}function Ue(t,e){var s;(typeof t=="number"||typeof t=="string")&&(t=Ee(t));const n=((s=t.meta.slide)==null?void 0:s.frontmatter.routeAlias)??t.no;return e?`/presenter/${n}`:`/${n}`}function Qo(t,e,{mode:n="replace"}={}){const s=Ze();return p({get(){const r=s.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){ze(()=>{(s.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&s[kt(n)]({query:{...s.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const ht=C(0);function gn(t,e=0,n){const s=new Map,r=qn(new Map);return{get current(){return Pe(+t.value,e,this.total)},set current(o){t.value=Pe(+o,e,this.total)},clicksStart:e,relativeOffsets:s,map:r,onMounted(){},resolve(o,i=1){const[a,l]=Po(o);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+i-1,delta:l+i-1}}else return{start:l,end:l+i-1,delta:0}},register(o,i){s.set(o,i.delta),r.set(o,i)},unregister(o){s.delete(o),r.delete(o)},get currentOffset(){return ht.value,ts(...s.values())},get total(){return ht.value,n??Math.max(0,...[...r.values()].map(o=>o.max||0))}}}function ei(t,e=0){var s,r;const n=((s=t==null?void 0:t.meta.slide)==null?void 0:s.frontmatter.clicksStart)??0;return gn(C(Math.max(e,n)),n,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const jt=zn(),st=Vn("slidev-color-schema","auto"),Dt=p(()=>O.colorSchema!=="auto"),vn=p({get(){return Dt.value?O.colorSchema==="dark":st.value==="auto"?jt.value:st.value==="dark"},set(t){Dt.value||(st.value=t===jt.value?"auto":t?"dark":"light")}}),ma=Wn(vn);Bn&&_e(vn,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const ti={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function ni(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let n=t.name.includes("|")?t.name:ti[t.name]||t.name;if(n.includes("|")){const[s,r]=n.split("|").map(o=>o.trim());n=e?r:s}if(n)return{...t,name:n}}function si(t,e,n){var r,o;let s=t>0?(r=n==null?void 0:n.meta)==null?void 0:r.transition:(o=e==null?void 0:e.meta)==null?void 0:o.transition;return s||(s=O.transition),ni(s,t<0)}function yn(t,e,n=1){var r,o,i,a,l,c,u,f,h;const s=(o=(r=e.meta)==null?void 0:r.slide)==null?void 0:o.level;s&&s>n&&t.length>0?yn(t[t.length-1].children,e,n+1):t.push({no:e.no,children:[],level:n,path:Ue(((a=(i=e.meta.slide)==null?void 0:i.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function _n(t,e,n=!1,s,r){return t.map(o=>{const i={...o,active:o.no===(r==null?void 0:r.value),hasActiveParent:n};return i.children.length>0&&(i.children=_n(i.children,e,i.active||i.hasActiveParent,i,r)),s&&(i.active||i.activeParent)&&(s.activeParent=!0),i})}function kn(t,e=1){return t.filter(n=>!n.hideInToc).map(n=>({...n,children:kn(n.children,e+1)}))}function ri(t,e,n){const s=p(()=>t.value.filter(o=>{var i,a;return(a=(i=o.meta)==null?void 0:i.slide)==null?void 0:a.title}).reduce((o,i)=>(yn(o,i),o),[])),r=p(()=>_n(s.value,n.value,void 0,void 0,e));return p(()=>kn(r.value))}function bn(t,e,n=C(0),s,r,o){const i=p(()=>q.value.length),a=C(0),l=C(0),c=p(()=>Ue(t.value,s.value)),u=p(()=>t.value.no),f=p(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=p(()=>e.value.current),d=p(()=>e.value.clicksStart),m=p(()=>e.value.total),g=p(()=>q.value[Math.min(q.value.length,u.value+1)-1]),y=p(()=>q.value[Math.max(1,u.value-1)-1]),v=p(()=>u.value<q.value.length||h.value<m.value),k=p(()=>u.value>1||h.value>0),b=p(()=>si(a.value,t.value,y.value));_e(t,(w,S)=>{a.value=w.no-S.no});async function M(w){return!1}const I=ri(q,u,t);async function z(){l.value=1,m.value<=n.value?await V():n.value+=1}async function me(){l.value=-1,n.value<=d.value?await W():n.value-=1}async function V(){l.value=1,u.value<q.value.length&&await A(u.value+1)}async function W(w=!0){var B,N;l.value=-1;const S=Math.max(1,u.value-1);await A(S,w?r.value?void 0:((N=(B=Ee(S))==null?void 0:B.meta.__clicksContext)==null?void 0:N.total)??Be:void 0)}function Le(){return A(1)}function $e(){return A(i.value)}async function A(w,S=0){var Ie,ke,At;un.value=!1;const B=u.value!==w,N=S!==n.value,D=(Ie=Ee(w))==null?void 0:Ie.meta,Xe=((ke=D==null?void 0:D.slide)==null?void 0:ke.frontmatter.clicksStart)??0;S=Pe(S,Xe,((At=D==null?void 0:D.__clicksContext)==null?void 0:At.total)??Be),(B||N)&&await(o==null?void 0:o.push({path:Ue(w,s.value),query:{...o.currentRoute.value.query,clicks:S===0?void 0:S.toString()}}))}return{slides:q,total:i,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:y,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:m,hasNext:v,hasPrev:k,tocTree:I,navDirection:a,openInEditor:M,next:z,prev:me,go:A,goLast:$e,goFirst:Le,nextSlide:V,prevSlide:W}}function ga(t,e){const n=async()=>{};return{...bn(p(()=>t),p(()=>e),C(Be),C(!1),C(!1)),next:n,prev:n,nextSlide:n,prevSlide:n,goFirst:n,goLast:n,go:n}}const oi=en(()=>{const t=Ze(),e=p(()=>t.currentRoute.value),n=p(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),s=p(()=>n.value.has("print")),r=p(()=>n.value.get("print")==="clicks"),o=p(()=>n.value.has("embedded")),i=p(()=>e.value.name==="play"),a=p(()=>e.value.name==="presenter"),l=p(()=>e.value.name==="notes"),c=p(()=>!a.value&&(!O.remote||n.value.get("password")===O.remote)),u=Un(i,a),f=p(()=>{var v;return u.value?((v=Ee(e.value.params.no))==null?void 0:v.no)??1:1}),h=p(()=>q.value[f.value-1]),d=Qo("clicks","0"),m=p(()=>y(h.value)),g=p({get(){let v=+(d.value||0);return Number.isNaN(v)&&(v=0),v},set(v){d.value=v.toString()}});function y(v){var M,I;if((M=v==null?void 0:v.meta)!=null&&M.__clicksContext)return v.meta.__clicksContext;const k=v.no,b=gn(p({get(){return f.value===k?Math.max(+(d.value??0),b.clicksStart):f.value>k?Be:b.clicksStart},set(z){f.value===k&&(d.value=Pe(z,b.clicksStart,b.total).toString())}}),((I=v==null?void 0:v.meta.slide)==null?void 0:I.frontmatter.clicksStart)??0,v==null?void 0:v.meta.clicks);return b.onMounted=()=>{f.value===k&&(d.value=Pe(+d.value,b.clicksStart,b.total).toString())},v!=null&&v.meta&&(v.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:s,isPrintWithClicks:r,isEmbedded:o,isPlaying:i,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:m,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:y}}),qt=en(()=>{const t=oi(),e=Ze(),n=bn(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return _e([n.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!Ee(t.currentRoute.value.params.no)&&await n.goLast()},{flush:"pre",immediate:!0}),{...n,...t}}),ii=[];function ai(){const t=Jt().appContext.app,e=x({nav:qt(),configs:O,themeConfigs:p(()=>O.themeConfig)});t.provide(ir,C("none")),t.provide(or,e),t.provide(rr,p(()=>e.nav.currentSlideNo)),t.provide(xt,Qt(ei()));for(const f of ii)f();const n=O.titleTemplate.replace("%s",O.title||"Slidev"),{clicksContext:s,currentSlideNo:r,hasPrimarySlide:o,isNotesViewer:i,isPresenter:a}=qt();Ks({title:n,htmlAttrs:O.htmlAttrs}),Qs(`${n} - shared`),sr(`${n} - drawings`);const l=`${location.origin}_${Ao()}`;function c(){i.value||!a.value&&!ar.includes(location.host.split(":")[0])||(a.value?(be("page",+r.value),be("clicks",s.value.current)):(be("viewerPage",+r.value),be("viewerClicks",s.value.current)),be("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=Ze();u.afterEach(c),_e(s,c),er(f=>{var h;o.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+s.value.current!=+f.clicks)&&(un.value=!1,u.replace({path:Ue(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const li=Yn({__name:"App",setup(t){return ai(),ye(()=>{for(const[e,n]of Object.entries(ls.value))document.body.style.setProperty(e,n.toString())}),(e,n)=>{const s=Gn("RouterView");return Xt(),Kn(s)}}}),ci=mn(li,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function xn(t,e,n){var s;return((s=t.instance)==null?void 0:s.$).provides[e]??n}function ui(){return{install(t){t.directive("click",{name:"v-click",mounted(e,n){const s=De(e,n,n.value);if(s==null)return;e.classList.toggle(je,!0);const r=Array.isArray(s.clicks)?s.clicks:[s.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ye(()=>{const o=s.isActive.value,i=s.isCurrent.value,a=o&&!i;s.flagHide?(e.classList.toggle(s.flagFade?we:xe,o),e.classList.toggle(et,o)):e.classList.toggle(s.flagFade?we:xe,!o),e.classList.toggle(tt,i),e.classList.toggle(nt,a)})},unmounted:ot}),t.directive("after",{name:"v-after",mounted(e,n){const s=De(e,n,n.value,!0);s!=null&&(e.classList.toggle(je,!0),ye(()=>{const r=s.isActive.value,o=s.isCurrent.value,i=r&&!o;s.flagHide?(e.classList.toggle(s.flagFade?we:xe,r),e.classList.toggle(et,r)):e.classList.toggle(s.flagFade?we:xe,!r),e.classList.toggle(tt,o),e.classList.toggle(nt,i)}))},unmounted:ot}),t.directive("click-hide",{name:"v-click-hide",mounted(e,n){const s=De(e,n,n.value,!1,!0);s!=null&&(e.classList.toggle(je,!0),ye(()=>{const r=s.isActive.value,o=s.isCurrent.value,i=r&&!o;e.classList.toggle(s.flagFade?we:xe,r),e.classList.toggle(et,r),e.classList.toggle(tt,o),e.classList.toggle(nt,i)}))},unmounted:ot})}}}function rt(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function fi(t,e){return Array.isArray(t)?t[0]===e:t===e}function De(t,e,n,s=!1,r=!1){var f;const o=(f=xn(e,xt))==null?void 0:f.value;if(!t||!o||n===!1||n==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const i=e.modifiers.fade!==!1&&e.modifiers.fade!=null;s?n="+0":(n==null||n===!0||n==="true")&&(n="+1");let a,l,c;Array.isArray(n)?(a=0,l=n,c=+n[1]):{start:l,end:c,delta:a}=o.resolve(n);const u={max:c,clicks:l,delta:a,isActive:p(()=>rt(l,o.current)),isCurrent:p(()=>fi(l,o.current)),isShown:p(()=>r?!rt(l,o.current):rt(l,o.current)),flagFade:i,flagHide:r};return o.register(t,u),u}function ot(t,e){var s;t.classList.toggle(je,!1);const n=(s=xn(e,xt))==null?void 0:s.value;n==null||n.unregister(t)}function wn(){return Math.floor(Math.random()*2**31)}class hi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function dt(t,e,n){if(t&&t.length){const[s,r]=e,o=Math.PI/180*n,i=Math.cos(o),a=Math.sin(o);for(const l of t){const[c,u]=l;l[0]=(c-s)*i-(u-r)*a+s,l[1]=(c-s)*a+(u-r)*i+r}}}function di(t,e,n){const s=[];t.forEach(r=>s.push(...r)),dt(s,e,n)}function pi(t,e){return t[0]===e[0]&&t[1]===e[1]}function mi(t,e,n,s=1){const r=n,o=Math.max(e,.1),i=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of i)dt(c,a,r);const l=gi(i,o,s);if(r){for(const c of i)dt(c,a,-r);di(l,a,-r)}return l}function gi(t,e,n){const s=[];for(const c of t){const u=[...c];pi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&s.push(u)}const r=[];e=Math.max(e,.1);const o=[];for(const c of s)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);o.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(o.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!o.length)return r;let i=[],a=o[0].ymin,l=0;for(;i.length||o.length;){if(o.length){let c=-1;for(let f=0;f<o.length&&!(o[f].ymin>a);f++)c=f;o.splice(0,c+1).forEach(f=>{i.push({s:a,edge:f})})}if(i=i.filter(c=>!(c.edge.ymax<=a)),i.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(n!==1||l%e===0)&&i.length>1)for(let c=0;c<i.length;c=c+2){const u=c+1;if(u>=i.length)break;const f=i[c].edge,h=i[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=n,i.forEach(c=>{c.edge.x=c.edge.x+n*c.edge.islope}),l++}return r}function Ce(t,e){var n;const s=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let o=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=r),mi(t,r,s,o||1)}class St{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const s=Ce(e,n);return{type:"fillSketch",ops:this.renderLines(s,n)}}renderLines(e,n){const s=[];for(const r of e)s.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],n));return s}}function Je(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class vi extends St{fillPolygons(e,n){let s=n.hachureGap;s<0&&(s=n.strokeWidth*4),s=Math.max(s,.1);const r=Object.assign({},n,{hachureGap:s}),o=Ce(e,r),i=Math.PI/180*n.hachureAngle,a=[],l=s*.5*Math.cos(i),c=s*.5*Math.sin(i);for(const[f,h]of o)Je([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,n)}}}class yi extends St{fillPolygons(e,n){const s=this._fillPolygons(e,n),r=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(e,r);return s.ops=s.ops.concat(o.ops),s}}class _i{constructor(e){this.helper=e}fillPolygons(e,n){n=Object.assign({},n,{hachureAngle:0});const s=Ce(e,n);return this.dotsOnLines(s,n)}dotsOnLines(e,n){const s=[];let r=n.hachureGap;r<0&&(r=n.strokeWidth*4),r=Math.max(r,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const i=r/4;for(const a of e){const l=Je(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let m=0;m<u;m++){const g=d+f+m*r,y=h-i+Math.random()*2*i,v=g-i+Math.random()*2*i,k=this.helper.ellipse(y,v,o,o,n);s.push(...k.ops)}}return{type:"fillSketch",ops:s}}}class ki{constructor(e){this.helper=e}fillPolygons(e,n){const s=Ce(e,n);return{type:"fillSketch",ops:this.dashedLine(s,n)}}dashedLine(e,n){const s=n.dashOffset<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashOffset,r=n.dashGap<0?n.hachureGap<0?n.strokeWidth*4:n.hachureGap:n.dashGap,o=[];return e.forEach(i=>{const a=Je(i),l=Math.floor(a/(s+r)),c=(a+r-l*(s+r))/2;let u=i[0],f=i[1];u[0]>f[0]&&(u=i[1],f=i[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const m=d*(s+r),g=m+s,y=[u[0]+m*Math.cos(h)+c*Math.cos(h),u[1]+m*Math.sin(h)+c*Math.sin(h)],v=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];o.push(...this.helper.doubleLineOps(y[0],y[1],v[0],v[1],n))}}),o}}class bi{constructor(e){this.helper=e}fillPolygons(e,n){const s=n.hachureGap<0?n.strokeWidth*4:n.hachureGap,r=n.zigzagOffset<0?s:n.zigzagOffset;n=Object.assign({},n,{hachureGap:s+r});const o=Ce(e,n);return{type:"fillSketch",ops:this.zigzagLines(o,r,n)}}zigzagLines(e,n,s){const r=[];return e.forEach(o=>{const i=Je(o),a=Math.round(i/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*n,d=(f+1)*2*n,m=Math.sqrt(2*Math.pow(n,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],y=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],v=[g[0]+m*Math.cos(u+Math.PI/4),g[1]+m*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],v[0],v[1],s),...this.helper.doubleLineOps(v[0],v[1],y[0],y[1],s))}}),r}}const L={};function xi(t,e){let n=t.fillStyle||"hachure";if(!L[n])switch(n){case"zigzag":L[n]||(L[n]=new vi(e));break;case"cross-hatch":L[n]||(L[n]=new yi(e));break;case"dots":L[n]||(L[n]=new _i(e));break;case"dashed":L[n]||(L[n]=new ki(e));break;case"zigzag-line":L[n]||(L[n]=new bi(e));break;case"hachure":default:n="hachure",L[n]||(L[n]=new St(e));break}return L[n]}const wi=0,pt=1,Mn=2,Re={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Mi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:wi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:pt,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:Mn,text:""},e}function it(t,e){return t.type===e}function Tt(t){const e=[],n=Mi(t);let s="BOD",r=0,o=n[r];for(;!it(o,Mn);){let i=0;const a=[];if(s==="BOD")if(o.text==="M"||o.text==="m")r++,i=Re[o.text],s=o.text;else return Tt("M0,0"+t);else it(o,pt)?i=Re[s]:(r++,i=Re[o.text],s=o.text);if(r+i<n.length){for(let l=r;l<r+i;l++){const c=n[l];if(it(c,pt))a[a.length]=+c.text;else throw new Error("Param not a number: "+s+","+c.text)}if(typeof Re[s]=="number"){const l={key:s,data:a};e.push(l),r+=i,o=n[r],s==="M"&&(s="L"),s==="m"&&(s="l")}else throw new Error("Bad segment: "+s)}else throw new Error("Path data ended short")}return e}function Sn(t){let e=0,n=0,s=0,r=0;const o=[];for(const{key:i,data:a}of t)switch(i){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[s,r]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),s=e,r=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+n:c+e);o.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=s,n=r;break}return o}function Tn(t){const e=[];let n="",s=0,r=0,o=0,i=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[s,r]=u,[o,i]=u;break;case"C":e.push({key:"C",data:[...u]}),s=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[s,r]=u;break;case"H":s=u[0],e.push({key:"L",data:[s,r]});break;case"V":r=u[0],e.push({key:"L",data:[s,r]});break;case"S":{let f=0,h=0;n==="C"||n==="S"?(f=s+(s-a),h=r+(r-l)):(f=s,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],s=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,m=0;n==="Q"||n==="T"?(d=s+(s-a),m=r+(r-l)):(d=s,m=r);const g=s+2*(d-s)/3,y=r+2*(m-r)/3,v=f+2*(d-f)/3,k=h+2*(m-h)/3;e.push({key:"C",data:[g,y,v,k,f,h]}),a=d,l=m,s=f,r=h;break}case"Q":{const[f,h,d,m]=u,g=s+2*(f-s)/3,y=r+2*(h-r)/3,v=d+2*(f-d)/3,k=m+2*(h-m)/3;e.push({key:"C",data:[g,y,v,k,d,m]}),a=f,l=h,s=d,r=m;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],m=u[3],g=u[4],y=u[5],v=u[6];f===0||h===0?(e.push({key:"C",data:[s,r,y,v,y,v]}),s=y,r=v):(s!==y||r!==v)&&(An(s,r,y,v,f,h,d,m,g).forEach(function(b){e.push({key:"C",data:b})}),s=y,r=v);break}case"Z":e.push({key:"Z",data:[]}),s=o,r=i;break}n=c}return e}function Si(t){return Math.PI*t/180}function Me(t,e,n){const s=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return[s,r]}function An(t,e,n,s,r,o,i,a,l,c){const u=Si(i);let f=[],h=0,d=0,m=0,g=0;if(c)[h,d,m,g]=c;else{[t,e]=Me(t,e,-u),[n,s]=Me(n,s,-u);const A=(t-n)/2,w=(e-s)/2;let S=A*A/(r*r)+w*w/(o*o);S>1&&(S=Math.sqrt(S),r=S*r,o=S*o);const B=a===l?-1:1,N=r*r,D=o*o,Xe=N*D-N*w*w-D*A*A,Ie=N*w*w+D*A*A,ke=B*Math.sqrt(Math.abs(Xe/Ie));m=ke*r*w/o+(t+n)/2,g=ke*-o*A/r+(e+s)/2,h=Math.asin(parseFloat(((e-g)/o).toFixed(9))),d=Math.asin(parseFloat(((s-g)/o).toFixed(9))),t<m&&(h=Math.PI-h),n<m&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let y=d-h;if(Math.abs(y)>Math.PI*120/180){const A=d,w=n,S=s;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,n=m+r*Math.cos(d),s=g+o*Math.sin(d),f=An(n,s,w,S,r,o,i,0,l,[d,A,m,g])}y=d-h;const v=Math.cos(h),k=Math.sin(h),b=Math.cos(d),M=Math.sin(d),I=Math.tan(y/4),z=4/3*r*I,me=4/3*o*I,V=[t,e],W=[t+z*k,e-me*v],Le=[n+z*M,s-me*b],$e=[n,s];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],c)return[W,Le,$e].concat(f);{f=[W,Le,$e].concat(f);const A=[];for(let w=0;w<f.length;w+=3){const S=Me(f[w][0],f[w][1],u),B=Me(f[w+1][0],f[w+1][1],u),N=Me(f[w+2][0],f[w+2][1],u);A.push([S[0],S[1],B[0],B[1],N[0],N[1]])}return A}}const Ti={randOffset:Oi,randOffsetWithRange:Ei,ellipse:mt,doubleLineOps:Ci};function H(t,e,n,s,r){return{type:"path",ops:Y(t,e,n,s,r)}}function Te(t,e,n){const s=(t||[]).length;if(s>2){const r=[];for(let o=0;o<s-1;o++)r.push(...Y(t[o][0],t[o][1],t[o+1][0],t[o+1][1],n));return e&&r.push(...Y(t[s-1][0],t[s-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}else if(s===2)return H(t[0][0],t[0][1],t[1][0],t[1][1],n);return{type:"path",ops:[]}}function Ai(t,e){return Te(t,!0,e)}function Pn(t,e,n,s,r){const o=[[t,e],[t+n,e],[t+n,e+s],[t,e+s]];return Ai(o,r)}function zt(t,e){if(t.length){const s=typeof t[0][0]=="number"?[t]:t,r=He(s[0],1*(1+e.roughness*.2),e),o=e.disableMultiStroke?[]:He(s[0],1.5*(1+e.roughness*.22),Bt(e));for(let i=1;i<s.length;i++){const a=s[i];if(a.length){const l=He(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:He(a,1.5*(1+e.roughness*.22),Bt(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&o.push(u)}}return{type:"path",ops:r.concat(o)}}return{type:"path",ops:[]}}function mt(t,e,n,s,r){const o=On(n,s,r);return gt(t,e,r,o).opset}function On(t,e,n){const s=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*s)),o=Math.PI*2/r;let i=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return i+=_(i*l,n),a+=_(a*l,n),{increment:o,rx:i,ry:a}}function gt(t,e,n,s){const[r,o]=Ut(s.increment,t,e,s.rx,s.ry,1,s.increment*Ye(.1,Ye(.4,1,n),n),n);let i=Ge(r,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=Ut(s.increment,t,e,s.rx,s.ry,1.5,0,n),l=Ge(a,null,n);i=i.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:i}}}function Vt(t,e,n,s,r,o,i,a,l){const c=t,u=e;let f=Math.abs(n/2),h=Math.abs(s/2);f+=_(f*.01,l),h+=_(h*.01,l);let d=r,m=o;for(;d<0;)d+=Math.PI*2,m+=Math.PI*2;m-d>Math.PI*2&&(d=0,m=Math.PI*2);const g=Math.PI*2/l.curveStepCount,y=Math.min(g/2,(m-d)/2),v=Yt(y,c,u,f,h,d,m,1,l);if(!l.disableMultiStroke){const k=Yt(y,c,u,f,h,d,m,1.5,l);v.push(...k)}return i&&(a?v.push(...Y(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...Y(c,u,c+f*Math.cos(m),u+h*Math.sin(m),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:v}}function Wt(t,e){const n=Tn(Sn(Tt(t))),s=[];let r=[0,0],o=[0,0];for(const{key:i,data:a}of n)switch(i){case"M":{o=[a[0],a[1]],r=[a[0],a[1]];break}case"L":s.push(...Y(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;s.push(...Li(l,c,u,f,h,d,o,e)),o=[h,d];break}case"Z":s.push(...Y(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]];break}return{type:"path",ops:s}}function at(t,e){const n=[];for(const s of t)if(s.length){const r=e.maxRandomnessOffset||0,o=s.length;if(o>2){n.push({op:"move",data:[s[0][0]+_(r,e),s[0][1]+_(r,e)]});for(let i=1;i<o;i++)n.push({op:"lineTo",data:[s[i][0]+_(r,e),s[i][1]+_(r,e)]})}}return{type:"fillPath",ops:n}}function ve(t,e){return xi(e,Ti).fillPolygons(t,e)}function Pi(t,e,n,s,r,o,i){const a=t,l=e;let c=Math.abs(n/2),u=Math.abs(s/2);c+=_(c*.01,i),u+=_(u*.01,i);let f=r,h=o;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/i.curveStepCount,m=[];for(let g=f;g<=h;g=g+d)m.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return m.push([a+c*Math.cos(h),l+u*Math.sin(h)]),m.push([a,l]),ve([m],i)}function Oi(t,e){return _(t,e)}function Ei(t,e,n){return Ye(t,e,n)}function Ci(t,e,n,s,r){return Y(t,e,n,s,r,!0)}function Bt(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function En(t){return t.randomizer||(t.randomizer=new hi(t.seed||0)),t.randomizer.next()}function Ye(t,e,n,s=1){return n.roughness*s*(En(n)*(e-t)+t)}function _(t,e,n=1){return Ye(-t,t,e,n)}function Y(t,e,n,s,r,o=!1){const i=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=vt(t,e,n,s,r,!0,!1);if(i)return a;const l=vt(t,e,n,s,r,!0,!0);return a.concat(l)}function vt(t,e,n,s,r,o,i){const a=Math.pow(t-n,2)+Math.pow(e-s,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+En(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(s-e)/200,m=r.bowing*r.maxRandomnessOffset*(t-n)/200;d=_(d,r,c),m=_(m,r,c);const g=[],y=()=>_(f,r,c),v=()=>_(u,r,c),k=r.preserveVertices;return o&&(i?g.push({op:"move",data:[t+(k?0:y()),e+(k?0:y())]}):g.push({op:"move",data:[t+(k?0:_(u,r,c)),e+(k?0:_(u,r,c))]})),i?g.push({op:"bcurveTo",data:[d+t+(n-t)*h+y(),m+e+(s-e)*h+y(),d+t+2*(n-t)*h+y(),m+e+2*(s-e)*h+y(),n+(k?0:y()),s+(k?0:y())]}):g.push({op:"bcurveTo",data:[d+t+(n-t)*h+v(),m+e+(s-e)*h+v(),d+t+2*(n-t)*h+v(),m+e+2*(s-e)*h+v(),n+(k?0:v()),s+(k?0:v())]}),g}function He(t,e,n){if(!t.length)return[];const s=[];s.push([t[0][0]+_(e,n),t[0][1]+_(e,n)]),s.push([t[0][0]+_(e,n),t[0][1]+_(e,n)]);for(let r=1;r<t.length;r++)s.push([t[r][0]+_(e,n),t[r][1]+_(e,n)]),r===t.length-1&&s.push([t[r][0]+_(e,n),t[r][1]+_(e,n)]);return Ge(s,null,n)}function Ge(t,e,n){const s=t.length,r=[];if(s>3){const o=[],i=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<s;a++){const l=t[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(i*t[a+1][0]-i*t[a-1][0])/6,l[1]+(i*t[a+1][1]-i*t[a-1][1])/6],o[2]=[t[a+1][0]+(i*t[a][0]-i*t[a+2][0])/6,t[a+1][1]+(i*t[a][1]-i*t[a+2][1])/6],o[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&e.length===2){const a=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+_(a,n),e[1]+_(a,n)]})}}else s===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):s===2&&r.push(...vt(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return r}function Ut(t,e,n,s,r,o,i,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+s*Math.cos(-t),n+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+s*Math.cos(f),n+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+s*Math.cos(0),n+r*Math.sin(0)]),u.push([e+s*Math.cos(t),n+r*Math.sin(t)])}else{const f=_(.5,a)-Math.PI/2;u.push([_(o,a)+e+.9*s*Math.cos(f-t),_(o,a)+n+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const m=[_(o,a)+e+s*Math.cos(d),_(o,a)+n+r*Math.sin(d)];c.push(m),u.push(m)}u.push([_(o,a)+e+s*Math.cos(f+Math.PI*2+i*.5),_(o,a)+n+r*Math.sin(f+Math.PI*2+i*.5)]),u.push([_(o,a)+e+.98*s*Math.cos(f+i),_(o,a)+n+.98*r*Math.sin(f+i)]),u.push([_(o,a)+e+.9*s*Math.cos(f+i*.5),_(o,a)+n+.9*r*Math.sin(f+i*.5)])}return[u,c]}function Yt(t,e,n,s,r,o,i,a,l){const c=o+_(.1,l),u=[];u.push([_(a,l)+e+.9*s*Math.cos(c-t),_(a,l)+n+.9*r*Math.sin(c-t)]);for(let f=c;f<=i;f=f+t)u.push([_(a,l)+e+s*Math.cos(f),_(a,l)+n+r*Math.sin(f)]);return u.push([e+s*Math.cos(i),n+r*Math.sin(i)]),u.push([e+s*Math.cos(i),n+r*Math.sin(i)]),Ge(u,null,l)}function Li(t,e,n,s,r,o,i,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+(h?0:_(c[0],a)),i[1]+(h?0:_(c[0],a))]}),u=h?[r,o]:[r+_(c[d],a),o+_(c[d],a)],l.push({op:"bcurveTo",data:[t+_(c[d],a),e+_(c[d],a),n+_(c[d],a),s+_(c[d],a),u[0],u[1]]});return l}function Se(t){return[...t]}function Gt(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const s=[];if(n===3)s.push(Se(t[0]),Se(t[1]),Se(t[2]),Se(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const o=[],i=1-e;s.push(Se(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(i*r[a+1][0]-i*r[a-1][0])/6,l[1]+(i*r[a+1][1]-i*r[a-1][1])/6],o[2]=[r[a+1][0]+(i*r[a][0]-i*r[a+2][0])/6,r[a+1][1]+(i*r[a][1]-i*r[a+2][1])/6],o[3]=[r[a+1][0],r[a+1][1]],s.push(o[1],o[2],o[3])}}return s}function $i(t,e){return Math.sqrt(qe(t,e))}function qe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Ii(t,e,n){const s=qe(e,n);if(s===0)return qe(t,e);let r=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/s;return r=Math.max(0,Math.min(1,r)),qe(t,fe(e,n,r))}function fe(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ri(t,e){const n=t[e+0],s=t[e+1],r=t[e+2],o=t[e+3];let i=3*s[0]-2*n[0]-o[0];i*=i;let a=3*s[1]-2*n[1]-o[1];a*=a;let l=3*r[0]-2*o[0]-n[0];l*=l;let c=3*r[1]-2*o[1]-n[1];return c*=c,i<l&&(i=l),a<c&&(a=c),i+a}function yt(t,e,n,s){const r=s||[];if(Ri(t,e)<n){const o=t[e+0];r.length?$i(r[r.length-1],o)>1&&r.push(o):r.push(o),r.push(t[e+3])}else{const i=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=fe(i,a,.5),f=fe(a,l,.5),h=fe(l,c,.5),d=fe(u,f,.5),m=fe(f,h,.5),g=fe(d,m,.5);yt([i,u,d,g],0,n,r),yt([g,m,h,c],0,n,r)}return r}function Hi(t,e){return Ke(t,0,t.length,e)}function Ke(t,e,n,s,r){const o=r||[],i=t[e],a=t[n-1];let l=0,c=1;for(let u=e+1;u<n-1;++u){const f=Ii(t[u],i,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>s?(Ke(t,e,c+1,s,o),Ke(t,c,n,s,o)):(o.length||o.push(i),o.push(a)),o}function _t(t,e=.15,n){const s=[],r=(t.length-1)/3;for(let o=0;o<r;o++){const i=o*3;yt(t,i,e,s)}return n&&n>0?Ke(s,0,s.length,n):s}function Fi(t,e,n){const s=Tt(t),r=Tn(Sn(s)),o=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(..._t(l,e)),l=[]},u=()=>{c(),i.length&&(o.push(i),i=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],i.push(a);break;case"L":c(),i.push([d[0],d[1]]);break;case"C":if(!l.length){const m=i.length?i[i.length-1]:a;l.push([m[0],m[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),i.push([a[0],a[1]]);break}if(u(),!n)return o;const f=[];for(const h of o){const d=Hi(h,n);d.length&&f.push(d)}return f}const R="none";class Ni{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return wn()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,s){return{shape:e,sets:n||[],options:s||this.defaultOptions}}line(e,n,s,r,o){const i=this._o(o);return this._d("line",[H(e,n,s,r,i)],i)}rectangle(e,n,s,r,o){const i=this._o(o),a=[],l=Pn(e,n,s,r,i);if(i.fill){const c=[[e,n],[e+s,n],[e+s,n+r],[e,n+r]];i.fillStyle==="solid"?a.push(at([c],i)):a.push(ve([c],i))}return i.stroke!==R&&a.push(l),this._d("rectangle",a,i)}ellipse(e,n,s,r,o){const i=this._o(o),a=[],l=On(s,r,i),c=gt(e,n,i,l);if(i.fill)if(i.fillStyle==="solid"){const u=gt(e,n,i,l).opset;u.type="fillPath",a.push(u)}else a.push(ve([c.estimatedPoints],i));return i.stroke!==R&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,n,s,r){const o=this.ellipse(e,n,s,s,r);return o.shape="circle",o}linearPath(e,n){const s=this._o(n);return this._d("linearPath",[Te(e,!1,s)],s)}arc(e,n,s,r,o,i,a=!1,l){const c=this._o(l),u=[],f=Vt(e,n,s,r,o,i,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Vt(e,n,s,r,o,i,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(Pi(e,n,s,r,o,i,c));return c.stroke!==R&&u.push(f),this._d("arc",u,c)}curve(e,n){const s=this._o(n),r=[],o=zt(e,s);if(s.fill&&s.fill!==R)if(s.fillStyle==="solid"){const i=zt(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else{const i=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?i.push(...u):u.length===3?i.push(..._t(Gt([u[0],u[0],u[1],u[2]]),10,(1+s.roughness)/2)):i.push(..._t(Gt(u),10,(1+s.roughness)/2))}i.length&&r.push(ve([i],s))}return s.stroke!==R&&r.push(o),this._d("curve",r,s)}polygon(e,n){const s=this._o(n),r=[],o=Te(e,!0,s);return s.fill&&(s.fillStyle==="solid"?r.push(at([e],s)):r.push(ve([e],s))),s.stroke!==R&&r.push(o),this._d("polygon",r,s)}path(e,n){const s=this._o(n),r=[];if(!e)return this._d("path",r,s);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=s.fill&&s.fill!=="transparent"&&s.fill!==R,i=s.stroke!==R,a=!!(s.simplification&&s.simplification<1),l=a?4-4*(s.simplification||1):(1+s.roughness)/2,c=Fi(e,1,l),u=Wt(e,s);if(o)if(s.fillStyle==="solid")if(c.length===1){const f=Wt(e,Object.assign(Object.assign({},s),{disableMultiStroke:!0,roughness:s.roughness?s.roughness+s.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(at(c,s));else r.push(ve(c,s));return i&&(a?c.forEach(f=>{r.push(Te(f,!1,s))}):r.push(u)),this._d("path",r,s)}opsToPath(e,n){let s="";for(const r of e.ops){const o=typeof n=="number"&&n>=0?r.data.map(i=>+i.toFixed(n)):r.data;switch(r.op){case"move":s+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}return s.trim()}toPaths(e){const n=e.sets||[],s=e.options||this.defaultOptions,r=[];for(const o of n){let i=null;switch(o.type){case"path":i={d:this.opsToPath(o),stroke:s.stroke,strokeWidth:s.strokeWidth,fill:R};break;case"fillPath":i={d:this.opsToPath(o),stroke:R,strokeWidth:0,fill:s.fill||R};break;case"fillSketch":i=this.fillSketch(o,s);break}i&&r.push(i)}return r}fillSketch(e,n){let s=n.fillWeight;return s<0&&(s=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||R,strokeWidth:s,fill:R}}_mergedShape(e){return e.filter((n,s)=>s===0?!0:n.op!=="move")}}const Cn="http://www.w3.org/2000/svg",ji=800;let lt=null;function Di(){return lt||(lt=new Ni().defaultOptions),lt}function ct(t,e,n){return{...Di(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...n}}function qi(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const n=e;if(n.length)switch(n.length){case 4:return[...n];case 1:return[n[0],n[0],n[0],n[0]];case 2:return[...n,...n];case 3:return[...n,n[1]];default:return[n[0],n[1],n[2],n[3]]}}}return[5,5,5,5]}function zi(t,e,n,s,r,o){const i=[];let a=n.strokeWidth||2;const l=qi(n),c=n.animate===void 0?!0:!!n.animate,u=n.iterations||2,f=n.rtl?1:0,h=ct("single",o,n);switch(n.type){case"underline":{const d=e.y+e.h+l[2];for(let m=f;m<u+f;m++)m%2?i.push(H(e.x+e.w,d,e.x,d,h)):i.push(H(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let m=f;m<u+f;m++)m%2?i.push(H(e.x+e.w,d,e.x,d,h)):i.push(H(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],m=e.y-l[0],g=e.w+(l[1]+l[3]),y=e.h+(l[0]+l[2]);for(let v=0;v<u;v++)i.push(Pn(d,m,g,y,h));break}case"bracket":{const d=Array.isArray(n.brackets)?n.brackets:n.brackets?[n.brackets]:["right"],m=e.x-l[3]*2,g=e.x+e.w+l[1]*2,y=e.y-l[0]*2,v=e.y+e.h+l[2]*2;for(const k of d){let b;switch(k){case"bottom":b=[[m,e.y+e.h],[m,v],[g,v],[g,e.y+e.h]];break;case"top":b=[[m,e.y],[m,y],[g,y],[g,e.y]];break;case"left":b=[[e.x,y],[m,y],[m,v],[e.x,v]];break;case"right":b=[[e.x+e.w,y],[g,y],[g,v],[e.x+e.w,v]];break}b&&i.push(Te(b,!1,h))}break}case"crossed-off":{const d=e.x,m=e.y,g=d+e.w,y=m+e.h;for(let v=f;v<u+f;v++)v%2?i.push(H(g,y,d,m,h)):i.push(H(d,m,g,y,h));for(let v=f;v<u+f;v++)v%2?i.push(H(d,y,g,m,h)):i.push(H(g,m,d,y,h));break}case"circle":{const d=ct("double",o,n),m=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),y=e.x-l[3]+m/2,v=e.y-l[0]+g/2,k=Math.floor(u/2),b=u-k*2;for(let M=0;M<k;M++)i.push(mt(y,v,m,g,d));for(let M=0;M<b;M++)i.push(mt(y,v,m,g,h));break}case"highlight":{const d=ct("highlight",o,n);a=e.h*.95;const m=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?i.push(H(e.x+e.w,m,e.x,m,d)):i.push(H(e.x,m,e.x+e.w,m,d));break}}if(i.length){const d=Vi(i),m=[],g=[];let y=0;const v=(k,b,M)=>k.setAttribute(b,M);for(const k of d){const b=document.createElementNS(Cn,"path");if(v(b,"d",k),v(b,"fill","none"),v(b,"stroke",n.color||"currentColor"),v(b,"stroke-width",`${a}`),n.opacity!==void 0&&v(b,"style",`opacity:${n.opacity}`),c){const M=b.getTotalLength();m.push(M),y+=M}t.appendChild(b),g.push(b)}if(c){let k=0;for(let b=0;b<g.length;b++){const M=g[b],I=m[b],z=y?r*(I/y):0,me=s+k,V=M.style;V.strokeDashoffset=`${I}`,V.strokeDasharray=`${I}`,V.animation=`rough-notation-dash ${z}ms ease-out ${me}ms forwards`,k+=z}return Kt(r+s)}}return Kt(0)}function Kt(t){return new Promise(e=>setTimeout(e,t))}function Vi(t){const e=[];for(const n of t){let s="";for(const r of n.ops){const o=r.data;switch(r.op){case"move":s.trim()&&e.push(s.trim()),s=`M${o[0]} ${o[1]} `;break;case"bcurveTo":s+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":s+=`L${o[0]} ${o[1]} `;break}}s.trim()&&e.push(s.trim())}return e}function Wi(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var Bi=Object.defineProperty,Ui=(t,e,n)=>e in t?Bi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e,n)=>(Ui(t,typeof e!="symbol"?e+"":e,n),n);class Yi{constructor(e,n){j(this,"_state","unattached"),j(this,"_config"),j(this,"_resizing",!1),j(this,"_ro"),j(this,"_seed",wn()),j(this,"_e"),j(this,"_svg"),j(this,"_lastSizes",[]),j(this,"_animationDelay",0),j(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),j(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(n)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,n){this._config[e]!==n&&(this._config[e]=n,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){Wi();const e=this._svg=document.createElementNS(Cn,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const n=e.style;n.position="absolute",n.top="0",n.left="0",n.overflow="visible",n.pointerEvents="none",n.width="100px",n.height="100px";const s=this._config.type==="highlight";if(this._e.insertAdjacentElement(s?"beforebegin":"afterend",e),this._state="not-showing",s){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const n of e)n.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let n=0;n<e.length;n++)if(!this.isSameRect(e[n],this._lastSizes[n]))return!0}else return!0}return!1}isSameRect(e,n){const s=(r,o)=>Math.round(r)===Math.round(o);return s(e.x,n.x)&&s(e.y,n.y)&&s(e.w,n.w)&&s(e.h,n.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,n){let s=this._config;n&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const r=this.rects();let o=0;r.forEach(c=>o+=c.w);const i=s.animationDuration||ji;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=i*(u.w/o);l.push(zi(e,r[c],s,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const n=this._e.getClientRects();for(let s=0;s<n.length;s++)e.push(this.svgRect(this._svg,n[s]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,n){const s=e.getBoundingClientRect(),r=n;return{x:(r.x||r.left)-(s.x||s.left),y:(r.y||r.top)-(s.y||s.top),w:r.width,h:r.height}}}function Gi(t,e){return new Yi(t,e)}function $(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Zt={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>$(t,"text-black"),blue:t=>$(t,"text-blue"),cyan:t=>$(t,"text-cyan"),gray:t=>$(t,"text-gray"),green:t=>$(t,"text-green"),indigo:t=>$(t,"text-indigo"),lime:t=>$(t,"text-lime"),orange:t=>$(t,"text-orange"),pink:t=>$(t,"text-pink"),purple:t=>$(t,"text-purple"),red:t=>$(t,"text-red"),teal:t=>$(t,"text-teal"),white:t=>$(t,"text-white"),yellow:t=>$(t,"text-yellow")},Ki=[[/^delay-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||300;return e.delay=s,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,n)=>{const s=(t[1]?Number.parseInt(t[1]):n)||100;return e.opacity=s/100,e}]];function Zi(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,n)=>{const s=p(()=>{const i=typeof n.value=="object"&&!Array.isArray(n.value)?{...n.value}:{at:n.value};let a={at:i.at};const l=Object.entries(n.modifiers).filter(([u,f])=>{if(Zt[u])return a=Zt[u](a,f),!1;for(const[h,d]of Ki){const m=u.match(h);if(m)return a=d(m,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...i};return c.type||(c.type="underline"),c}),r=Gi(e,s.value),o=De(e,n,s.value.at);if(!o){r.show();return}ye(()=>{let i;s.value.class&&(r.class=s.value.class),s.value.color&&(r.color=s.value.color);const a=s.value.at;a===!0?i=!0:a===!1?i=!1:i=o.isActive.value,i!=null&&(i?r.show():r.hide())})}})}}}const Ae=[{name:"print",path:"/print",component:()=>T(()=>import("./slidev/print-CzT8XG9N.js"),__vite__mapDeps([27,1,3,4,28,2,29,30,31]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!O.remote||O.remote===e.query.password)return!0;if(O.remote&&e.query.password===void 0){const n=prompt("Enter password");if(O.remote===n)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};Ae.push({path:"/presenter/print",component:()=>T(()=>import("./slidev/print-C2Pr3kg-.js"),__vite__mapDeps([32,1,33,34,3,4]))}),Ae.push({name:"presenter",path:"/presenter/:no",component:()=>T(()=>import("./slidev/presenter-C9jPMFxm.js"),__vite__mapDeps([35,36,1,37,38,28,2,29,3,4,39,33,34,40,41,42])),beforeEnter:t}),Ae.push({path:"/presenter",redirect:{path:"/presenter/1"}})}Ae.push({name:"play",path:"/:no",component:()=>T(()=>import("./slidev/play-DBEYLiGV.js"),__vite__mapDeps([43,1,28,2,29,37,38,36,3,4,39,30,44]))});const Ji=[];async function Xi(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const n=Zn({history:Jn("/slides/bisonex/"),routes:Ae});t.use(n),t.use(Ys()),t.use(ui()),t.use(Zi()),t.use(Xn),t.use(es,{container:"#twoslash-container"});const s={app:t,router:n};ze(()=>{n.afterEach(async()=>{await ze(),ht.value+=1})});for(const r of Ji)await r(s)}const Ln=Qn(ci);Xi(Ln);Ln.mount("#app");export{lr as $,xt as A,ha as B,Be as C,G as D,K as E,Z as F,J as G,X as H,Q as I,ee as J,te as K,ne as L,se as M,re as N,oe as O,ie as P,ae as Q,le as R,na as S,Ao as T,ce as U,ue as V,Po as W,ns as X,fa as Y,da as Z,T as _,as as a,aa as a0,ia as a1,oa as a2,mn as b,O as c,ei as d,ga as e,is as f,la as g,Ks as h,or as i,Ee as j,Pe as k,pa as l,ra as m,q as n,Ue as o,Dt as p,vn as q,ta as r,sa as s,ma as t,qt as u,un as v,ca as w,rr as x,ir as y,ua as z};
import{L as $,M as x,N as B,O as qe,P as M,B as re,Q as Te,R as Xe,T as Qe,U as We,V as Je,W as ze,X as Ve,Y as ke,Z as y,$ as ve,a0 as $e,a1 as te,a2 as Ee,a3 as en,a4 as I,a5 as Z,a6 as nn,a7 as rn,a8 as L,a9 as tn,aa as sn,ab as C,ac as an,ad as G,ae as X,af as un,ag as Oe,ah as me,ai as fn,aj as on,ak as hn,al as ie}from"./slidev/Mermaid-COGy-la-.js";var ln="[object Symbol]";function Q(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=$?$.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(Q(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Xe(e):Qe(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function W(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Q(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function $n(e){var n=We(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=$n(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(En,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:W(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||Q(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function J(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=$?$.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):J(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,X(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)J(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:J(t,r(e))}function q(e){return De(e,T,z)}function jn(e){return De(e,X,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Zn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var qn=/\w*$/;function Xn(e){var n=new e.constructor(e.source,qn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=$?$.prototype:void 0,he=oe?oe.valueOf:void 0;function Qn(e){return he?Object(he.call(e)):{}}var Wn="[object Boolean]",Jn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Wn:case Jn:return new t(+e);case ir:return Zn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Xn(e);case er:return new t;case rr:return Qn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const $r=vr;var Er=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",Zr="[object Uint8Array]",qr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Qr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[Zr]=l[qr]=l[Xr]=l[Qr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&Er,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!Ee(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(Z(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),$r(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:q:f?X:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Wr="__lodash_hash_undefined__";function Jr(e){return this.__data__.set(e,Wr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Jr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,E){if(!Ue(A,E)&&(p===_||i(p,_,r,t,s)))return A.push(E)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=$?$.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=q(e),f=u.length,d=q(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],E=n[h];if(t)var ne=a?t(E,_,h,n,e,s):t(_,E,h,e,n,s);if(!(ne===void 0?_===E||i(_,E,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function $t(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&Z(e)){if(!Z(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:$t(e,n,r,t,k,i)}var Et=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,Et|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!Ee(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return W(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return W(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?$e:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:$e}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function Zt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:Zt(e,T(e))}function w(e){return e===void 0}function qt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Xt(e,n,r){var t=y(e)?Sn:qt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Qt=1/0,Wt=B&&1/V(new B([,-0]))[1]==Qt?function(e){return new B(e)}:dn;const Jt=Wt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Jt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=qe(function(e){return Vt(Se(e,1,Je,!0))});const ei=kt;var ni="\0",m="\0",be="";class Ze{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Xt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ze.prototype._nodeCount=0;Ze.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{Ze as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,Q as o,U as p,T as q,Xt as r,cn as s,Pn as t,H as v};
import{L as $,M as x,N as B,O as qe,P as M,B as re,Q as Te,R as Xe,T as Qe,U as We,V as Je,W as ze,X as Ve,Y as ke,Z as y,$ as ve,a0 as $e,a1 as te,a2 as Ee,a3 as en,a4 as I,a5 as Z,a6 as nn,a7 as rn,a8 as L,a9 as tn,aa as sn,ab as C,ac as an,ad as G,ae as X,af as un,ag as Oe,ah as me,ai as fn,aj as on,ak as hn,al as ie}from"./slidev/Mermaid-DKLwMm57.js";var ln="[object Symbol]";function Q(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=$?$.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(Q(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Xe(e):Qe(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function W(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Q(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function $n(e){var n=We(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=$n(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(En,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:W(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||Q(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function J(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=$?$.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):J(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,X(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)J(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:J(t,r(e))}function q(e){return De(e,T,z)}function jn(e){return De(e,X,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Zn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var qn=/\w*$/;function Xn(e){var n=new e.constructor(e.source,qn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=$?$.prototype:void 0,he=oe?oe.valueOf:void 0;function Qn(e){return he?Object(he.call(e)):{}}var Wn="[object Boolean]",Jn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Wn:case Jn:return new t(+e);case ir:return Zn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Xn(e);case er:return new t;case rr:return Qn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const $r=vr;var Er=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",Zr="[object Uint8Array]",qr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Qr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[Zr]=l[qr]=l[Xr]=l[Qr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&Er,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!Ee(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(Z(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),$r(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:q:f?X:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Wr="__lodash_hash_undefined__";function Jr(e){return this.__data__.set(e,Wr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Jr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,E){if(!Ue(A,E)&&(p===_||i(p,_,r,t,s)))return A.push(E)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=$?$.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=q(e),f=u.length,d=q(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],E=n[h];if(t)var ne=a?t(E,_,h,n,e,s):t(_,E,h,e,n,s);if(!(ne===void 0?_===E||i(_,E,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function $t(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&Z(e)){if(!Z(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:$t(e,n,r,t,k,i)}var Et=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,Et|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!Ee(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return W(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return W(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?$e:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:$e}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function Zt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:Zt(e,T(e))}function w(e){return e===void 0}function qt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Xt(e,n,r){var t=y(e)?Sn:qt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Qt=1/0,Wt=B&&1/V(new B([,-0]))[1]==Qt?function(e){return new B(e)}:dn;const Jt=Wt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Jt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=qe(function(e){return Vt(Se(e,1,Je,!0))});const ei=kt;var ni="\0",m="\0",be="";class Ze{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Xt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}Ze.prototype._nodeCount=0;Ze.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{Ze as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,Q as o,U as p,T as q,Xt as r,cn as s,Pn as t,H as v};
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/Mermaid-D0r0_ggr.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/Mermaid-DKLwMm57.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
import{aw as Be,ax as Ze,ay as Xe,az as qe,aA as ye,aB as nt,aC as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,aD as Fn,E as Ln,m as En,l as qt,h as Pt,i as An,j as In,v as Wn,aE as Kt,aF as On}from"./slidev/Mermaid-COGy-la-.js";import{l as Hn,c as Nn,a as Vn,b as zn,t as Ue}from"./linear-d94cf28d-B8lBgl9v.js";import{i as Pn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=zn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:zr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:Pr,M:Rr,p:_,q:G,Q:Ve,s:ze,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:z,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:ze,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function z(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function P(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return P(t.getDate(),e,2)}function Hr(t,e){return P(t.getHours(),e,2)}function Nr(t,e){return P(t.getHours()%12||12,e,2)}function Vr(t,e){return P(1+yt.count(mt(t),t),e,3)}function cn(t,e){return P(t.getMilliseconds(),e,3)}function zr(t,e){return cn(t,e)+"000"}function Pr(t,e){return P(t.getMonth()+1,e,2)}function Rr(t,e){return P(t.getMinutes(),e,2)}function Br(t,e){return P(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return P(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),P(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return P(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return P(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),P(t.getFullYear()%100,e,2)}function $r(t,e){return P(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),P(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+P(e/60|0,"0",2)+P(e%60,"0",2)}function He(t,e){return P(t.getUTCDate(),e,2)}function ei(t,e){return P(t.getUTCHours(),e,2)}function ni(t,e){return P(t.getUTCHours()%12||12,e,2)}function ri(t,e){return P(1+Te.count(pt(t),t),e,3)}function un(t,e){return P(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return P(t.getUTCMonth()+1,e,2)}function ai(t,e){return P(t.getUTCMinutes(),e,2)}function oi(t,e){return P(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return P(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),P(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return P(jt.count(pt(t)-1,t),e,2)}function di(t,e){return P(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),P(t.getUTCFullYear()%100,e,2)}function gi(t,e){return P(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),P(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function ze(t){return Math.floor(+t/1e3)}var xt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return Pn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),z={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(z.yy[st]=this.yy[st]);I.setInput(o,z.yy),z.yy.lexer=I,z.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,zt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";zt=[];for(J in X[l])this.terminals_[J]&&J>G&&zt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
import{aw as Be,ax as Ze,ay as Xe,az as qe,aA as ye,aB as nt,aC as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,aD as Fn,E as Ln,m as En,l as qt,h as Pt,i as An,j as In,v as Wn,aE as Kt,aF as On}from"./slidev/Mermaid-DKLwMm57.js";import{l as Hn,c as Nn,a as Vn,b as zn,t as Ue}from"./linear-d94cf28d-DicpOm0k.js";import{i as Pn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=zn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:zr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:Pr,M:Rr,p:_,q:G,Q:Ve,s:ze,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:z,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:ze,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function z(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function P(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return P(t.getDate(),e,2)}function Hr(t,e){return P(t.getHours(),e,2)}function Nr(t,e){return P(t.getHours()%12||12,e,2)}function Vr(t,e){return P(1+yt.count(mt(t),t),e,3)}function cn(t,e){return P(t.getMilliseconds(),e,3)}function zr(t,e){return cn(t,e)+"000"}function Pr(t,e){return P(t.getMonth()+1,e,2)}function Rr(t,e){return P(t.getMinutes(),e,2)}function Br(t,e){return P(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return P(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),P(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return P(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return P(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),P(t.getFullYear()%100,e,2)}function $r(t,e){return P(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),P(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+P(e/60|0,"0",2)+P(e%60,"0",2)}function He(t,e){return P(t.getUTCDate(),e,2)}function ei(t,e){return P(t.getUTCHours(),e,2)}function ni(t,e){return P(t.getUTCHours()%12||12,e,2)}function ri(t,e){return P(1+Te.count(pt(t),t),e,3)}function un(t,e){return P(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return P(t.getUTCMonth()+1,e,2)}function ai(t,e){return P(t.getUTCMinutes(),e,2)}function oi(t,e){return P(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return P(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),P(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return P(jt.count(pt(t)-1,t),e,2)}function di(t,e){return P(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),P(t.getUTCFullYear()%100,e,2)}function gi(t,e){return P(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),P(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function ze(t){return Math.floor(+t/1e3)}var xt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return Pn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),z={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(z.yy[st]=this.yy[st]);I.setInput(o,z.yy),z.yy.lexer=I,z.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,zt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";zt=[];for(J in X[l])this.terminals_[J]&&J>G&&zt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
import{d as xDe,p as RDe}from"./flowDb-147da10a-Xbh17yDm.js";import{aA as Dse,aC as KDe,l as Ba,h as OA,b1 as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/Mermaid-COGy-la-.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-DfL1UQzG.js";import{l as XDe}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DUF4ZUeq.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
import{d as xDe,p as RDe}from"./flowDb-147da10a-C4o8C-8b.js";import{aA as Dse,aC as KDe,l as Ba,h as OA,b1 as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/Mermaid-DKLwMm57.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-BZ06lMIy.js";import{l as XDe}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DKVxcDu5.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
import{p as e,f as o}from"./flowDb-147da10a-C4o8C-8b.js";import{f as t,a}from"./styles-c171666c-CQKiCzoi.js";import{u as i}from"./slidev/Mermaid-DKLwMm57.js";import"./graph-af3d5df6-BLtirX5X.js";import"./index-c8395ba2-DEokOxbK.js";import"./layout-6685625a-DMWKrSBP.js";import"./clone-d2e37f8c-BJe3gSoD.js";import"./edges-1e1ebc73-BZ06lMIy.js";import"./createText-f6615236-DKVxcDu5.js";import"./line-65d70945-CE24BujY.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-CbTvIsJJ.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram};
import{p as Lt,f as V}from"./flowDb-147da10a-Xbh17yDm.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-G4pt95e-.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/Mermaid-COGy-la-.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-Cy4EINjB.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-DE2DbEDk.js";import{l as Dt}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./index-c8395ba2-CUL26JYA.js";import"./clone-d2e37f8c-dAYgJWEV.js";import"./edges-1e1ebc73-DfL1UQzG.js";import"./createText-f6615236-DUF4ZUeq.js";import"./channel-d3ac35ac-SDQyM1dq.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
import{p as Lt,f as V}from"./flowDb-147da10a-C4o8C-8b.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-BLtirX5X.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/Mermaid-DKLwMm57.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-DMWKrSBP.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-CQKiCzoi.js";import{l as Dt}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./index-c8395ba2-DEokOxbK.js";import"./clone-d2e37f8c-BJe3gSoD.js";import"./edges-1e1ebc73-BZ06lMIy.js";import"./createText-f6615236-DKVxcDu5.js";import"./channel-d3ac35ac-CbTvIsJJ.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
import{c as et,K as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/Mermaid-COGy-la-.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
import{c as et,K as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/Mermaid-DKLwMm57.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/Mermaid-D0r0_ggr.js";import{G as Mt}from"./graph-af3d5df6-BS2fJ_rm.js";import{l as St}from"./layout-6685625a-COnxZM2s.js";import{l as wt}from"./line-65d70945-B8zvfP93.js";import"./modules/vue-O-XuQLLR.js";import"./index-BUsVpa2s.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/Mermaid-DKLwMm57.js";import{G as Mt}from"./graph-af3d5df6-BLtirX5X.js";import{l as St}from"./layout-6685625a-DMWKrSBP.js";import{l as wt}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
import{o as H,c as b,d as q,au as Q,h as E,l as g,v as j,F as lt}from"./slidev/Mermaid-COGy-la-.js";import{c as st}from"./createText-f6615236-DUF4ZUeq.js";import{l as ct}from"./line-65d70945-Dh_qJL7L.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
import{o as H,c as b,d as q,au as Q,h as E,l as g,v as j,F as lt}from"./slidev/Mermaid-DKLwMm57.js";import{c as st}from"./createText-f6615236-DKVxcDu5.js";import{l as ct}from"./line-65d70945-CE24BujY.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
import{l as At,au as zt,av as It}from"./slidev/Mermaid-COGy-la-.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
import{l as At,au as zt,av as It}from"./slidev/Mermaid-DKLwMm57.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
import{p as M,d as _,s as R}from"./styles-d48462a7-gbf5kprD.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/Mermaid-COGy-la-.js";import{G as q}from"./graph-af3d5df6-G4pt95e-.js";import{r as z}from"./index-c8395ba2-CUL26JYA.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-Cy4EINjB.js";import"./clone-d2e37f8c-dAYgJWEV.js";import"./edges-1e1ebc73-DfL1UQzG.js";import"./createText-f6615236-DUF4ZUeq.js";import"./line-65d70945-Dh_qJL7L.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
import{p as M,d as _,s as R}from"./styles-d48462a7-HecvWbXS.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/Mermaid-DKLwMm57.js";import{G as q}from"./graph-af3d5df6-BLtirX5X.js";import{r as z}from"./index-c8395ba2-DEokOxbK.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-DMWKrSBP.js";import"./clone-d2e37f8c-BJe3gSoD.js";import"./edges-1e1ebc73-BZ06lMIy.js";import"./createText-f6615236-DKVxcDu5.js";import"./line-65d70945-CE24BujY.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
import{p as G,d as v,s as A}from"./styles-d48462a7-gbf5kprD.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/Mermaid-COGy-la-.js";import{G as O}from"./graph-af3d5df6-G4pt95e-.js";import{l as P}from"./layout-6685625a-Cy4EINjB.js";import{l as X}from"./line-65d70945-Dh_qJL7L.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
import{p as G,d as v,s as A}from"./styles-d48462a7-HecvWbXS.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/Mermaid-DKLwMm57.js";import{G as O}from"./graph-af3d5df6-BLtirX5X.js";import{l as P}from"./layout-6685625a-DMWKrSBP.js";import{l as X}from"./line-65d70945-CE24BujY.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/Mermaid-COGy-la-.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-nN3IEmPJ.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/Mermaid-DKLwMm57.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-C6DMen8v.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
import{c as _e,b1 as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/Mermaid-COGy-la-.js";import{c as ve}from"./clone-d2e37f8c-dAYgJWEV.js";import{c as Ne}from"./channel-d3ac35ac-SDQyM1dq.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-DfL1UQzG.js";import{G as Ce}from"./graph-af3d5df6-G4pt95e-.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-Dn3czbSS.js";import"./index-DAyAARJ6.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DUF4ZUeq.js";import"./line-65d70945-Dh_qJL7L.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
import{c as _e,b1 as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/Mermaid-DKLwMm57.js";import{c as ve}from"./clone-d2e37f8c-BJe3gSoD.js";import{c as Ne}from"./channel-d3ac35ac-CbTvIsJJ.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-BZ06lMIy.js";import{G as Ce}from"./graph-af3d5df6-BLtirX5X.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-Dn3czbSS.js";import"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DKVxcDu5.js";import"./line-65d70945-CE24BujY.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
import{w as ln,c as U}from"./path-39bad7e2-CbwjOpE9.js";import{aQ as an,aR as Y,aS as S,aT as rn,aU as y,aP as on,aV as z,aW as _,aX as un,aY as t,aZ as sn,a_ as tn,a$ as fn}from"./slidev/Mermaid-COGy-la-.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,$,v,R,V,a){var E=D-l,i=$-h,n=V-v,m=a-R,r=m*E-n*i;if(!(r*r<y))return r=(n*(h-R)-m*(l-v))/r,[l+r*E,h+r*i]}function J(l,h,D,$,v,R,V){var a=l-D,E=h-$,i=(V?R:-R)/z(a*a+E*E),n=i*E,m=-i*a,r=l+n,s=h+m,f=D+n,c=$+m,W=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,A=p*p+g*g,T=v-R,P=r*c-f*s,I=(g<0?-1:1)*z(fn(0,T*T*A-P*P)),O=(P*g-p*I)/A,Q=(-P*p-g*I)/A,w=(P*g+p*I)/A,d=(-P*p+g*I)/A,x=O-W,e=Q-o,u=w-W,X=d-o;return x*x+e*e>u*u+X*X&&(O=w,Q=d),{cx:O,cy:Q,x01:-n,y01:-m,x11:O*(v/T-1),y11:Q*(v/T-1)}}function vn(){var l=cn,h=yn,D=U(0),$=null,v=gn,R=mn,V=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=R.apply(this,arguments)-rn,W=un(c-f),o=c>f;if(a||(a=n=E()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(W>on-y)a.moveTo(s*Y(f),s*S(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*Y(c),r*S(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,A=f,T=c,P=W,I=W,O=V.apply(this,arguments)/2,Q=O>y&&($?+$.apply(this,arguments):z(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(Q>y){var X=sn(Q/r*S(O)),B=sn(Q/s*S(O));(P-=X*2)>y?(X*=o?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=B*2)>y?(B*=o?1:-1,p+=B,g-=B):(I=0,p=g=(f+c)/2)}var Z=s*Y(p),j=s*S(p),C=r*Y(T),F=r*S(T);if(w>y){var G=s*Y(g),H=s*S(g),K=r*Y(A),L=r*S(A),q;if(W<an)if(q=dn(Z,j,K,L,G,H,C,F)){var M=Z-q[0],N=j-q[1],k=G-q[0],b=H-q[1],nn=1/S(tn((M*k+N*b)/(z(M*M+N*N)*z(k*k+b*b)))/2),en=z(q[0]*q[0]+q[1]*q[1]);d=_(w,(r-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else d=x=0}I>y?x>y?(e=J(K,L,Z,j,s,x,o),u=J(G,H,C,F,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo(Z,j),a.arc(0,0,s,p,g,!o)):a.moveTo(Z,j),!(r>y)||!(P>y)?a.lineTo(C,F):d>y?(e=J(C,F,G,H,r,-d,o),u=J(Z,j,K,L,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<w?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,A,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(m)*n,S(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:U(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:U(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:U(+n),i):D},i.padRadius=function(n){return arguments.length?($=n==null?null:typeof n=="function"?n:U(+n),i):$},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:U(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:U(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:U(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
import{w as ln,c as U}from"./path-39bad7e2-CbwjOpE9.js";import{aQ as an,aR as Y,aS as S,aT as rn,aU as y,aP as on,aV as z,aW as _,aX as un,aY as t,aZ as sn,a_ as tn,a$ as fn}from"./slidev/Mermaid-DKLwMm57.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,D,$,v,R,V,a){var E=D-l,i=$-h,n=V-v,m=a-R,r=m*E-n*i;if(!(r*r<y))return r=(n*(h-R)-m*(l-v))/r,[l+r*E,h+r*i]}function J(l,h,D,$,v,R,V){var a=l-D,E=h-$,i=(V?R:-R)/z(a*a+E*E),n=i*E,m=-i*a,r=l+n,s=h+m,f=D+n,c=$+m,W=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,A=p*p+g*g,T=v-R,P=r*c-f*s,I=(g<0?-1:1)*z(fn(0,T*T*A-P*P)),O=(P*g-p*I)/A,Q=(-P*p-g*I)/A,w=(P*g+p*I)/A,d=(-P*p+g*I)/A,x=O-W,e=Q-o,u=w-W,X=d-o;return x*x+e*e>u*u+X*X&&(O=w,Q=d),{cx:O,cy:Q,x01:-n,y01:-m,x11:O*(v/T-1),y11:Q*(v/T-1)}}function vn(){var l=cn,h=yn,D=U(0),$=null,v=gn,R=mn,V=pn,a=null,E=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=R.apply(this,arguments)-rn,W=un(c-f),o=c>f;if(a||(a=n=E()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(W>on-y)a.moveTo(s*Y(f),s*S(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*Y(c),r*S(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,A=f,T=c,P=W,I=W,O=V.apply(this,arguments)/2,Q=O>y&&($?+$.apply(this,arguments):z(r*r+s*s)),w=_(un(s-r)/2,+D.apply(this,arguments)),d=w,x=w,e,u;if(Q>y){var X=sn(Q/r*S(O)),B=sn(Q/s*S(O));(P-=X*2)>y?(X*=o?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=B*2)>y?(B*=o?1:-1,p+=B,g-=B):(I=0,p=g=(f+c)/2)}var Z=s*Y(p),j=s*S(p),C=r*Y(T),F=r*S(T);if(w>y){var G=s*Y(g),H=s*S(g),K=r*Y(A),L=r*S(A),q;if(W<an)if(q=dn(Z,j,K,L,G,H,C,F)){var M=Z-q[0],N=j-q[1],k=G-q[0],b=H-q[1],nn=1/S(tn((M*k+N*b)/(z(M*M+N*N)*z(k*k+b*b)))/2),en=z(q[0]*q[0]+q[1]*q[1]);d=_(w,(r-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else d=x=0}I>y?x>y?(e=J(K,L,Z,j,s,x,o),u=J(G,H,C,F,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo(Z,j),a.arc(0,0,s,p,g,!o)):a.moveTo(Z,j),!(r>y)||!(P>y)?a.lineTo(C,F):d>y?(e=J(C,F,G,H,r,-d,o),u=J(Z,j,K,L,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<w?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,A,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(m)*n,S(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:U(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:U(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:U(+n),i):D},i.padRadius=function(n){return arguments.length?($=n==null?null:typeof n=="function"?n:U(+n),i):$},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:U(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:U(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:U(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
import{d as m,o as c,b as p,e as s,f as a,i as o,c as f,k as i,q as h,s as g,A as n,a0 as d}from"./modules/vue-Dn3czbSS.js";import{b as u,U as r}from"./index-DAyAARJ6.js";import{p as v,u as x,f as y}from"./slidev/context-CthXNIh0.js";import"./modules/shiki-CuMFyo6Z.js";const w="/slides/bisonex/img/spen.png",C="/slides/bisonex/img/spen-decipher.png",S=m({__name:"two-cols",props:{class:{type:String},layoutClass:{type:String}},setup(l){const e=l;return(t,_)=>(c(),p("div",{class:o(["slidev-layout two-columns w-full h-full grid grid-cols-2",e.layoutClass])},[s("div",{class:o(["col-left",e.class])},[a(t.$slots,"default")],2),s("div",{class:o(["col-right",e.class])},[a(t.$slots,"right")],2)],2))}}),b=u(S,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/two-cols.vue"]]),P=s("h1",null,"Nouveaux diagnostics",-1),k=s("p",null,[d("1 Variant de Signification Indéterminé sur "),s("em",null,"SPEN")],-1),B=s("ul",null,[s("li",null,"Foetus avec malformation cardiaque"),s("li",null,[d("Radio-Tartaglia syndrome "),s("ul",null,[s("li",null,"malformation cardiaque possible"),s("li",null,"pas de foetus décrit")])])],-1),N=s("h1",null,null,-1),q=s("img",{src:w,width:"60%"},null,-1),T=s("img",{src:C,width:"40%"},null,-1),V={__name:"16",setup(l){return v(r),x(),(e,t)=>(c(),f(b,h(g(n(y)(n(r),15))),{right:i(_=>[N,q,T]),default:i(()=>[P,k,B]),_:1},16))}},I=u(V,[["__file","/@slidev/slides/16.md"]]);export{I as default};
import{d as m,o as c,b as p,e as s,f as a,i as o,c as f,k as i,q as h,s as g,A as n,a0 as d}from"./modules/vue-Dn3czbSS.js";import{b as u,U as r}from"./index-In0nWnaA.js";import{p as v,u as x,f as y}from"./slidev/context-0STE4blS.js";import"./modules/shiki-CuMFyo6Z.js";const w="/slides/bisonex/img/spen.png",C="/slides/bisonex/img/spen-decipher.png",S=m({__name:"two-cols",props:{class:{type:String},layoutClass:{type:String}},setup(l){const e=l;return(t,_)=>(c(),p("div",{class:o(["slidev-layout two-columns w-full h-full grid grid-cols-2",e.layoutClass])},[s("div",{class:o(["col-left",e.class])},[a(t.$slots,"default")],2),s("div",{class:o(["col-right",e.class])},[a(t.$slots,"right")],2)],2))}}),b=u(S,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/two-cols.vue"]]),P=s("h1",null,"Nouveaux diagnostics",-1),k=s("p",null,[d("1 Variant de Signification Indéterminé sur "),s("em",null,"SPEN")],-1),B=s("ul",null,[s("li",null,"Foetus avec malformation cardiaque"),s("li",null,[d("Radio-Tartaglia syndrome "),s("ul",null,[s("li",null,"malformation cardiaque possible"),s("li",null,"pas de foetus décrit")])])],-1),N=s("h1",null,null,-1),q=s("img",{src:w,width:"60%"},null,-1),T=s("img",{src:C,width:"40%"},null,-1),V={__name:"16",setup(l){return v(r),x(),(e,t)=>(c(),f(b,h(g(n(y)(n(r),15))),{right:i(_=>[N,q,T]),default:i(()=>[P,k,B]),_:1},16))}},I=u(V,[["__file","/@slidev/slides/16.md"]]);export{I as default};
import{d as b,o,b as n,x as _,y as d,e as c,f as U,F as m,Z as q,l as g,g as i,h as $,c as D,k as L,q as C,s as T,A as k}from"./modules/vue-Dn3czbSS.js";import{u as f,p as W,f as z}from"./slidev/context-0STE4blS.js";import{b as p,D as y}from"./index-In0nWnaA.js";import"./modules/shiki-CuMFyo6Z.js";const O={key:0},P=["href"],w=b({__name:"TextWithOptionalLink",props:{link:{type:String,required:!1},text:{type:String,required:!0}},setup(e){return f(),(t,a)=>t.link?(o(),n("a",{key:1,href:t.link,rel:"noreferrer",target:"_blank"},_(t.text),9,P)):(o(),n("span",O,_(t.text),1))}}),F=p(w,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/components/TextWithOptionalLink.vue"]]);function S(e){const t="/slides/bisonex/";return e.startsWith("/")?t.endsWith("/")?t+e.slice(1):t+e:e}function I(e,t=!1){const a=e&&["#","rgb","hsl"].some(s=>e.indexOf(s)===0),l={background:a?e:void 0,backgroundImage:a?void 0:e?t?`linear-gradient(#0009, #0009), url(${S(e)})`:`url("${S(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return l.background||delete l.background,l}const N={class:"my-auto w-full"},V={key:0,class:"absolute bottom-12 flex"},j={key:0},E={key:0},R={key:1},G={key:1},H={key:1,class:"absolute bottom-0 font-extralight mb-1 mr-2 right-0 text-xs"},M=b({__name:"cover",props:{coverAuthor:{type:[String,Array],required:!1},coverAuthorUrl:{type:[String,Array],required:!1},coverBackgroundUrl:{type:String,required:!1},coverBackgroundSource:{type:String,required:!1},coverBackgroundSourceUrl:{type:String,required:!1},coverDate:{type:[String,Date],required:!1,default:new Date().toLocaleDateString()}},setup(e){f();const{coverAuthor:t,coverAuthorUrl:a,coverBackgroundUrl:l}=e,s=d(()=>v(t)),A=d(()=>v(a)),x=d(()=>I(l,!0)),v=r=>Array.isArray(r)?r:r?[r]:[];return(r,Y)=>{const h=F;return o(),n("div",{class:"slidev-layout cover",style:$(x.value)},[c("div",N,[U(r.$slots,"default"),s.value.length||r.coverDate?(o(),n("div",V,[s.value.length?(o(),n("p",j,[(o(!0),n(m,null,q(s.value,(B,u)=>(o(),n(m,null,[g(h,{link:A.value[u],text:B},null,8,["link","text"]),u<s.value.length-2?(o(),n("span",E,", ")):i("v-if",!0),u===s.value.length-2?(o(),n("span",R," and ")):i("v-if",!0)],64))),256))])):i("v-if",!0),r.coverDate?(o(),n("p",G,_(s.value.length?`, ${r.coverDate}`:r.coverDate),1)):i("v-if",!0)])):i("v-if",!0),r.coverBackgroundSource?(o(),n("div",H,[g(h,{link:r.coverBackgroundSourceUrl,text:r.coverBackgroundSource},null,8,["link","text"])])):i("v-if",!0)])],4)}}}),Z=p(M,[["__file","/home/alex/notes/slides/node_modules/slidev-theme-academic/layouts/cover.vue"]]),J=c("h1",null,"BisonEx",-1),K=c("h2",null,"Un pipeline bioinformatique de ré-interprétation d’analyses constitutionnelles d’exome",-1),Q=c("p",null,"Laboratoire de Génétique, CHU Minjoz, Besançon",-1),X={__name:"1",setup(e){return W(y),f(),(t,a)=>(o(),D(Z,C(T(k(z)(k(y),0))),{default:L(()=>[J,K,Q]),_:1},16))}},ne=p(X,[["__file","/@slidev/slides/1.md"]]);export{ne as default};
À noter l'option --base importante pour que le chemin final soit correct
À noter l'option --base importante pour que le chemin final soit correct avec un slash à la fin !
On ne peut pas compiler toutes les slides d'un coup car le chemin n'est pas correct :(