orbitchat 2.1.6 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/orbitchat.js +11 -10
- package/dist/assets/{api-CK3k3ceJ.js → api-uEDUqkTi.js} +1 -1
- package/dist/assets/arc-m8RC5oDD-BT8qBEWK.js +1 -0
- package/dist/assets/{blockDiagram-c4efeb88-NvaZhZFT-B2z-bNEd.js → blockDiagram-c4efeb88-CZ2mpei3-DwC_8AXi.js} +7 -7
- package/dist/assets/{c4Diagram-c83219d4-gPr1eF38-BpklvzfC.js → c4Diagram-c83219d4-DL2EmCLj-Bb77Yjks.js} +2 -2
- package/dist/assets/channel-BKp1WYnX-BpupPR-0.js +1 -0
- package/dist/assets/classDiagram-beda092f-vKbJ2bcD-ByRiBo_z.js +2 -0
- package/dist/assets/classDiagram-v2-2358418a-BHXpn1Du-CsAMUMgi.js +2 -0
- package/dist/assets/clone-B1V2003j-DKfYfMmY.js +1 -0
- package/dist/assets/{createText-1719965b-D9Y3vUMn-UiwO3q8Q.js → createText-1719965b-C2-AT0ab-Ngc7i9D1.js} +2 -2
- package/dist/assets/edges-96097737-Zk-qG_8u-dmc-RUJc.js +4 -0
- package/dist/assets/{erDiagram-0228fc6a-BLw8FsIp-CkgJ5rpM.js → erDiagram-0228fc6a-B94anMjz-CVrsMLr0.js} +3 -3
- package/dist/assets/{flowDb-c6c81e3f-DXVkMlSE-DRQM6L-v.js → flowDb-c6c81e3f-CRRW-bQO-BYHCtAAr.js} +4 -4
- package/dist/assets/{flowDiagram-50d868cf-mkkB0hFd-CL_JosYM.js → flowDiagram-50d868cf-DPzQMhJv-CrArx2UT.js} +4 -4
- package/dist/assets/flowDiagram-v2-4f6560a1-Si9enBmB-CcZjaZir.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-D9IbjnSJ-DWoCBlEO.js → flowchart-elk-definition-6af322e1-CULhtvD--Bc4SZDEI.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-Cqs5_Zht-CyVqot_b.js → ganttDiagram-a2739b55-Bp8yOLEz-DMtD2BxT.js} +3 -3
- package/dist/assets/{gitGraphDiagram-82fe8481-txBzFn40-CZkxfaP2.js → gitGraphDiagram-82fe8481-BYtOQJl0-BxXpgB9C.js} +1 -1
- package/dist/assets/{graph-BZahQKIN-CTgzd5us.js → graph-BV6jB5rk-DcOA8BmL.js} +1 -1
- package/dist/assets/{index-CDwx2U7N.js → index-3H3i7ExC.js} +156 -156
- package/dist/assets/{index-5325376f-DsNDppci-BaFeDo3U.js → index-5325376f-DrY72DrM-BQxxLtiM.js} +1 -1
- package/dist/assets/index-DlFdZiHl-B3vsLXXB.js +134 -0
- package/dist/assets/{infoDiagram-8eee0895-SbmhgTjv-CCnN8bBn.js → infoDiagram-8eee0895-C6GFnrZ7-OKacvbId.js} +4 -4
- package/dist/assets/{journeyDiagram-c64418c1-C7AiwbKr-YZTGwLv1.js → journeyDiagram-c64418c1-daS1W8qe-BkJ9QLFM.js} +4 -4
- package/dist/assets/{layout-j-hMNqAM-C88IAVJC.js → layout-LXMv3mSS-CNNBHyhJ.js} +1 -1
- package/dist/assets/{mindmap-definition-8da855dc-B1WjnfxE-a9TK-xQN.js → mindmap-definition-8da855dc-DmNQYVT1-BsCbTj6n.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-zrkaw4r--BMPBVA0x.js → pieDiagram-a8764435-381urBY5-A6raAt-D.js} +5 -5
- package/dist/assets/{quadrantDiagram-1e28029f-C2Wa5n16-DwWDm6cx.js → quadrantDiagram-1e28029f-hgRmK2bX-CiuNGTtQ.js} +4 -4
- package/dist/assets/{requirementDiagram-08caed73-BtHxx079-zeP-18qR.js → requirementDiagram-08caed73-BB0Q-cI9-T9Fr-hSN.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-DXlmqTKB-BJu62Tg5.js → sankeyDiagram-a04cb91d-BpsipZNt-DeqT-JYz.js} +5 -5
- package/dist/assets/{sequenceDiagram-c5b8d532-BVQF3vcA-GR7-Xw8e.js → sequenceDiagram-c5b8d532-xoAvPcQJ-Dh_25-gi.js} +4 -4
- package/dist/assets/{stateDiagram-1ecb1508-Dybc3i2m-BMJzxrY5.js → stateDiagram-1ecb1508-b721R49K-DfgySJAt.js} +1 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-BmSbrbqZ-BT-EqIcl.js +1 -0
- package/dist/assets/{styles-b4e223ce-BSiU4oYL-9ql-THae.js → styles-b4e223ce-TYmJC5IN-CyGeIEtW.js} +3 -3
- package/dist/assets/{styles-ca3715f6-DU7x0doE-B7zhH0Zm.js → styles-ca3715f6-CfJZu0Yn-Czxwj2Eo.js} +2 -2
- package/dist/assets/{styles-d45a18b0-B_CU21kM--NwLlmWK.js → styles-d45a18b0-DZ8oSYcV-KS40LPFU.js} +3 -3
- package/dist/assets/{svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js → svgDrawCommon-b86b1483-CXPkN8HW-Dq40yjrO.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-b82QCnJ9-CY85LKH1.js → timeline-definition-faaaa080-LDFf1jfb-CB8wN-VT.js} +6 -6
- package/dist/assets/{xychartDiagram-f5964ef8-BtRcO0uy-ylxrBreP.js → xychartDiagram-f5964ef8-DdhO5-Bp-B3w4U23E.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/arc-CvECY7sY-BAfm7gAl.js +0 -1
- package/dist/assets/channel-6PI3wNcc-1exBkyGg.js +0 -1
- package/dist/assets/classDiagram-beda092f-B8axaKGu-C7KpiekH.js +0 -2
- package/dist/assets/classDiagram-v2-2358418a-DPdf2DxR-CfXv0anP.js +0 -2
- package/dist/assets/clone-D01vUIhD-D0aslzw6.js +0 -1
- package/dist/assets/edges-96097737-Zc6U9nQz-Czq3--42.js +0 -4
- package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-BzGZQhJW.js +0 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-Bp8rRkv2-Dm74LB8O.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{D as Ae,R as Ee,M as Ye,L as Le,N as Ie,I as Fe,S as ot,F as kt,K as We,n as Oe,W as Pe,J as Be,q as Ne,r as R,O as vt,t as Jt,w as Ut,x as ze,B as Ve,y as Ge,z as Re,A as qe,C as Qe,H as je,U as Zt,X as Xt,a0 as te,a1 as ee,a2 as ne,p as He,T as Ke,j as Je,a3 as $t,u as Ue,a4 as le,a5 as Ze,a6 as ue,a7 as de,a8 as he,a9 as Xe,aa as Nt}from"./index-CDwx2U7N.js";function tn(t){return t}var gt=1,Dt=2,Et=3,pt=4,ie=1e-6;function en(t){return"translate("+t+",0)"}function nn(t){return"translate(0,"+t+")"}function rn(t){return e=>+t(e)}function sn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function an(){return!this.__axis}function fe(t,e){var i=[],s=null,o=null,l=6,d=6,b=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:.5,w=t===gt||t===pt?-1:1,x=t===pt||t===Dt?"x":"y",E=t===gt||t===Et?en:nn;function T(v){var N=s??(e.ticks?e.ticks.apply(e,i):e.domain()),A=o??(e.tickFormat?e.tickFormat.apply(e,i):tn),k=Math.max(l,0)+b,C=e.range(),L=+C[0]+D,I=+C[C.length-1]+D,P=(e.bandwidth?sn:rn)(e.copy(),D),O=v.selection?v.selection():v,z=O.selectAll(".domain").data([null]),W=O.selectAll(".tick").data(N,e).order(),f=W.exit(),p=W.enter().append("g").attr("class","tick"),y=W.select("line"),m=W.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),W=W.merge(p),y=y.merge(p.append("line").attr("stroke","currentColor").attr(x+"2",w*l)),m=m.merge(p.append("text").attr("fill","currentColor").attr(x,w*k).attr("dy",t===gt?"0em":t===Et?"0.71em":"0.32em")),v!==O&&(z=z.transition(v),W=W.transition(v),y=y.transition(v),m=m.transition(v),f=f.transition(v).attr("opacity",ie).attr("transform",function(r){return isFinite(r=P(r))?E(r+D):this.getAttribute("transform")}),p.attr("opacity",ie).attr("transform",function(r){var u=this.parentNode.__axis;return E((u&&isFinite(u=u(r))?u:P(r))+D)})),f.remove(),z.attr("d",t===pt||t===Dt?d?"M"+w*d+","+L+"H"+D+"V"+I+"H"+w*d:"M"+D+","+L+"V"+I:d?"M"+L+","+w*d+"V"+D+"H"+I+"V"+w*d:"M"+L+","+D+"H"+I),W.attr("opacity",1).attr("transform",function(r){return E(P(r)+D)}),y.attr(x+"2",w*l),m.attr(x,w*k).text(A),O.filter(an).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Dt?"start":t===pt?"end":"middle"),O.each(function(){this.__axis=P})}return T.scale=function(v){return arguments.length?(e=v,T):e},T.ticks=function(){return i=Array.from(arguments),T},T.tickArguments=function(v){return arguments.length?(i=v==null?[]:Array.from(v),T):i.slice()},T.tickValues=function(v){return arguments.length?(s=v==null?null:Array.from(v),T):s&&s.slice()},T.tickFormat=function(v){return arguments.length?(o=v,T):o},T.tickSize=function(v){return arguments.length?(l=d=+v,T):l},T.tickSizeInner=function(v){return arguments.length?(l=+v,T):l},T.tickSizeOuter=function(v){return arguments.length?(d=+v,T):d},T.tickPadding=function(v){return arguments.length?(b=+v,T):b},T.offset=function(v){return arguments.length?(D=+v,T):D},T}function on(t){return fe(gt,t)}function cn(t){return fe(Et,t)}const ln=Math.PI/180,un=180/Math.PI,Tt=18,me=.96422,ye=1,ke=.82521,pe=4/29,ct=6/29,ge=3*ct*ct,dn=ct*ct*ct;function be(t){if(t instanceof J)return new J(t.l,t.a,t.b,t.opacity);if(t instanceof tt)return xe(t);t instanceof le||(t=Ze(t));var e=At(t.r),i=At(t.g),s=At(t.b),o=Ct((.2225045*e+.7168786*i+.0606169*s)/ye),l,d;return e===i&&i===s?l=d=o:(l=Ct((.4360747*e+.3850649*i+.1430804*s)/me),d=Ct((.0139322*e+.0971045*i+.7141733*s)/ke)),new J(116*o-16,500*(l-o),200*(o-d),t.opacity)}function hn(t,e,i,s){return arguments.length===1?be(t):new J(t,e,i,s??1)}function J(t,e,i,s){this.l=+t,this.a=+e,this.b=+i,this.opacity=+s}ue(J,hn,de(he,{brighter(t){return new J(this.l+Tt*(t??1),this.a,this.b,this.opacity)},darker(t){return new J(this.l-Tt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return e=me*St(e),t=ye*St(t),i=ke*St(i),new le(Mt(3.1338561*e-1.6168667*t-.4906146*i),Mt(-.9787684*e+1.9161415*t+.033454*i),Mt(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}}));function Ct(t){return t>dn?Math.pow(t,1/3):t/ge+pe}function St(t){return t>ct?t*t*t:ge*(t-pe)}function Mt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function At(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function fn(t){if(t instanceof tt)return new tt(t.h,t.c,t.l,t.opacity);if(t instanceof J||(t=be(t)),t.a===0&&t.b===0)return new tt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*un;return new tt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Yt(t,e,i,s){return arguments.length===1?fn(t):new tt(t,e,i,s??1)}function tt(t,e,i,s){this.h=+t,this.c=+e,this.l=+i,this.opacity=+s}function xe(t){if(isNaN(t.h))return new J(t.l,0,0,t.opacity);var e=t.h*ln;return new J(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ue(tt,Yt,de(he,{brighter(t){return new tt(this.h,this.c,this.l+Tt*(t??1),this.opacity)},darker(t){return new tt(this.h,this.c,this.l-Tt*(t??1),this.opacity)},rgb(){return xe(this).rgb()}}));function mn(t){return function(e,i){var s=t((e=Yt(e)).h,(i=Yt(i)).h),o=$t(e.c,i.c),l=$t(e.l,i.l),d=$t(e.opacity,i.opacity);return function(b){return e.h=s(b),e.c=o(b),e.l=l(b),e.opacity=d(b),e+""}}}const yn=mn(Xe);var Lt={exports:{}},kn=Lt.exports,re;function pn(){return re||(re=1,function(t,e){(function(i,s){t.exports=s()})(kn,function(){var i="day";return function(s,o,l){var d=function(w){return w.add(4-w.isoWeekday(),i)},b=o.prototype;b.isoWeekYear=function(){return d(this).year()},b.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),i);var x,E,T,v,N=d(this),A=(x=this.isoWeekYear(),E=this.$u,T=(E?l.utc:l)().year(x).startOf("year"),v=4-T.isoWeekday(),T.isoWeekday()>4&&(v+=7),T.add(v,i));return N.diff(A,"week")+1},b.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var D=b.startOf;b.startOf=function(w,x){var E=this.$utils(),T=!!E.u(x)||x;return E.p(w)==="isoweek"?T?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):D.bind(this)(w,x)}}})}(Lt)),Lt.exports}var gn=pn();const bn=Nt(gn);var It={exports:{}},xn=It.exports,se;function vn(){return se||(se=1,function(t,e){(function(i,s){t.exports=s()})(xn,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,d=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,D={},w=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(C){this[k]=+C}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var L=C.match(/([+-]|\d\d)/g),I=60*L[1]+(+L[2]||0);return I===0?0:L[0]==="+"?-I:I}(k)}],T=function(k){var C=D[k];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(k,C){var L,I=D.meridiem;if(I){for(var P=1;P<=24;P+=1)if(k.indexOf(I(P,0,C))>-1){L=P>12;break}}else L=k===(C?"pm":"PM");return L},N={A:[b,function(k){this.afternoon=v(k,!1)}],a:[b,function(k){this.afternoon=v(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[l,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[d,x("seconds")],ss:[d,x("seconds")],m:[d,x("minutes")],mm:[d,x("minutes")],H:[d,x("hours")],h:[d,x("hours")],HH:[d,x("hours")],hh:[d,x("hours")],D:[d,x("day")],DD:[l,x("day")],Do:[b,function(k){var C=D.ordinal,L=k.match(/\d+/);if(this.day=L[0],C)for(var I=1;I<=31;I+=1)C(I).replace(/\[|\]/g,"")===k&&(this.day=I)}],w:[d,x("week")],ww:[l,x("week")],M:[d,x("month")],MM:[l,x("month")],MMM:[b,function(k){var C=T("months"),L=(T("monthsShort")||C.map(function(I){return I.slice(0,3)})).indexOf(k)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[b,function(k){var C=T("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,x("year")],YY:[l,function(k){this.year=w(k)}],YYYY:[/\d{4}/,x("year")],Z:E,ZZ:E};function A(k){var C,L;C=k,L=D&&D.formats;for(var I=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,m,r){var u=r&&r.toUpperCase();return m||L[r]||i[r]||L[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,h,a){return h||a.slice(1)})})).match(s),P=I.length,O=0;O<P;O+=1){var z=I[O],W=N[z],f=W&&W[0],p=W&&W[1];I[O]=p?{regex:f,parser:p}:z.replace(/^\[|\]$/g,"")}return function(y){for(var m={},r=0,u=0;r<P;r+=1){var c=I[r];if(typeof c=="string")u+=c.length;else{var h=c.regex,a=c.parser,Y=y.slice(u),n=h.exec(Y)[0];a.call(m,n),y=y.replace(n,"")}}return function(g){var M=g.afternoon;if(M!==void 0){var S=g.hours;M?S<12&&(g.hours+=12):S===12&&(g.hours=0),delete g.afternoon}}(m),m}}return function(k,C,L){L.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(w=k.parseTwoDigitYear);var I=C.prototype,P=I.parse;I.parse=function(O){var z=O.date,W=O.utc,f=O.args;this.$u=W;var p=f[1];if(typeof p=="string"){var y=f[2]===!0,m=f[3]===!0,r=y||m,u=f[2];m&&(u=f[2]),D=this.$locale(),!y&&u&&(D=L.Ls[u]),this.$d=function(Y,n,g,M){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*Y);var S=A(n)(Y),$=S.year,F=S.month,_=S.day,Q=S.hours,nt=S.minutes,dt=S.seconds,_t=S.milliseconds,yt=S.zone,V=S.week,j=new Date,G=_||($||F?1:j.getDate()),it=$||j.getFullYear(),H=0;$&&!F||(H=F>0?F-1:j.getMonth());var U,q=Q||0,at=nt||0,et=dt||0,rt=_t||0;return yt?new Date(Date.UTC(it,H,G,q,at,et,rt+60*yt.offset*1e3)):g?new Date(Date.UTC(it,H,G,q,at,et,rt)):(U=new Date(it,H,G,q,at,et,rt),V&&(U=M(U).week(V).toDate()),U)}catch{return new Date("")}}(z,p,W,L),this.init(),u&&u!==!0&&(this.$L=this.locale(u).$L),r&&z!=this.format(p)&&(this.$d=new Date("")),D={}}else if(p instanceof Array)for(var c=p.length,h=1;h<=c;h+=1){f[1]=p[h-1];var a=L.apply(this,f);if(a.isValid()){this.$d=a.$d,this.$L=a.$L,this.init();break}h===c&&(this.$d=new Date(""))}else P.call(this,O)}}})}(It)),It.exports}var Tn=vn();const wn=Nt(Tn);var Ft={exports:{}},_n=Ft.exports,ae;function $n(){return ae||(ae=1,function(t,e){(function(i,s){t.exports=s()})(_n,function(){return function(i,s){var o=s.prototype,l=o.format;o.format=function(d){var b=this,D=this.$locale();if(!this.isValid())return l.bind(this)(d);var w=this.$utils(),x=(d||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(E){switch(E){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return D.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return D.ordinal(b.week(),"W");case"w":case"ww":return w.s(b.week(),E==="w"?1:2,"0");case"W":case"WW":return w.s(b.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return w.s(String(b.$H===0?24:b.$H),E==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return E}});return l.bind(this)(x)}}})}(Ft)),Ft.exports}var Dn=$n();const Cn=Nt(Dn);var Wt=function(){var t=function(m,r,u,c){for(u=u||{},c=m.length;c--;u[m[c]]=r);return u},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],i=[1,25],s=[1,26],o=[1,27],l=[1,28],d=[1,29],b=[1,30],D=[1,31],w=[1,9],x=[1,10],E=[1,11],T=[1,12],v=[1,13],N=[1,14],A=[1,15],k=[1,16],C=[1,18],L=[1,19],I=[1,20],P=[1,21],O=[1,22],z=[1,24],W=[1,32],f={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(m,r,u,c,h,a,Y){var n=a.length-1;switch(h){case 1:return a[n-1];case 2:this.$=[];break;case 3:a[n-1].push(a[n]),this.$=a[n-1];break;case 4:case 5:this.$=a[n];break;case 6:case 7:this.$=[];break;case 8:c.setWeekday("monday");break;case 9:c.setWeekday("tuesday");break;case 10:c.setWeekday("wednesday");break;case 11:c.setWeekday("thursday");break;case 12:c.setWeekday("friday");break;case 13:c.setWeekday("saturday");break;case 14:c.setWeekday("sunday");break;case 15:c.setDateFormat(a[n].substr(11)),this.$=a[n].substr(11);break;case 16:c.enableInclusiveEndDates(),this.$=a[n].substr(18);break;case 17:c.TopAxis(),this.$=a[n].substr(8);break;case 18:c.setAxisFormat(a[n].substr(11)),this.$=a[n].substr(11);break;case 19:c.setTickInterval(a[n].substr(13)),this.$=a[n].substr(13);break;case 20:c.setExcludes(a[n].substr(9)),this.$=a[n].substr(9);break;case 21:c.setIncludes(a[n].substr(9)),this.$=a[n].substr(9);break;case 22:c.setTodayMarker(a[n].substr(12)),this.$=a[n].substr(12);break;case 24:c.setDiagramTitle(a[n].substr(6)),this.$=a[n].substr(6);break;case 25:this.$=a[n].trim(),c.setAccTitle(this.$);break;case 26:case 27:this.$=a[n].trim(),c.setAccDescription(this.$);break;case 28:c.addSection(a[n].substr(8)),this.$=a[n].substr(8);break;case 30:c.addTask(a[n-1],a[n]),this.$="task";break;case 31:this.$=a[n-1],c.setClickEvent(a[n-1],a[n],null);break;case 32:this.$=a[n-2],c.setClickEvent(a[n-2],a[n-1],a[n]);break;case 33:this.$=a[n-2],c.setClickEvent(a[n-2],a[n-1],null),c.setLink(a[n-2],a[n]);break;case 34:this.$=a[n-3],c.setClickEvent(a[n-3],a[n-2],a[n-1]),c.setLink(a[n-3],a[n]);break;case 35:this.$=a[n-2],c.setClickEvent(a[n-2],a[n],null),c.setLink(a[n-2],a[n-1]);break;case 36:this.$=a[n-3],c.setClickEvent(a[n-3],a[n-1],a[n]),c.setLink(a[n-3],a[n-2]);break;case 37:this.$=a[n-1],c.setLink(a[n-1],a[n]);break;case 38:case 44:this.$=a[n-1]+" "+a[n];break;case 39:case 40:case 42:this.$=a[n-2]+" "+a[n-1]+" "+a[n];break;case 41:case 43:this.$=a[n-3]+" "+a[n-2]+" "+a[n-1]+" "+a[n];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:i,13:s,14:o,15:l,16:d,17:b,18:D,19:w,20:x,21:E,22:T,23:v,24:N,25:A,26:k,27:C,28:L,30:I,32:P,33:O,34:23,35:z,37:W},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:i,13:s,14:o,15:l,16:d,17:b,18:D,19:w,20:x,21:E,22:T,23:v,24:N,25:A,26:k,27:C,28:L,30:I,32:P,33:O,34:23,35:z,37:W},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(m,r){if(r.recoverable)this.trace(m);else{var u=new Error(m);throw u.hash=r,u}},parse:function(m){var r=this,u=[0],c=[],h=[null],a=[],Y=this.table,n="",g=0,M=0,S=2,$=1,F=a.slice.call(arguments,1),_=Object.create(this.lexer),Q={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Q.yy[nt]=this.yy[nt]);_.setInput(m,Q.yy),Q.yy.lexer=_,Q.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var dt=_.yylloc;a.push(dt);var _t=_.options&&_.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var Z;return Z=c.pop()||_.lex()||$,typeof Z!="number"&&(Z instanceof Array&&(c=Z,Z=c.pop()),Z=r.symbols_[Z]||Z),Z}for(var V,j,G,it,H={},U,q,at,et;;){if(j=u[u.length-1],this.defaultActions[j]?G=this.defaultActions[j]:((V===null||typeof V>"u")&&(V=yt()),G=Y[j]&&Y[j][V]),typeof G>"u"||!G.length||!G[0]){var rt="";et=[];for(U in Y[j])this.terminals_[U]&&U>S&&et.push("'"+this.terminals_[U]+"'");_.showPosition?rt="Parse error on line "+(g+1)+`:
|
|
1
|
+
import{L as Ae,D as Ee,j as Ye,M as Le,R as Ie,N as Fe,E as ot,F as kt,X as We,Y as Oe,V as Pe,Q as Be,r as Ne,t as R,O as vt,u as Kt,v as Ut,w as ze,y as Ve,B as Ge,$ as Re,C as qe,G as Qe,H as He,S as Zt,U as Xt,a0 as te,a1 as ee,a2 as ne,m as je,T as Je,I as Ke,a3 as $t,f as Ue,a4 as le,a5 as Ze,a6 as ue,a7 as de,a8 as he,a9 as Xe,aa as Nt}from"./index-3H3i7ExC.js";function tn(t){return t}var gt=1,Dt=2,Et=3,pt=4,ie=1e-6;function en(t){return"translate("+t+",0)"}function nn(t){return"translate(0,"+t+")"}function rn(t){return e=>+t(e)}function sn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function an(){return!this.__axis}function fe(t,e){var i=[],s=null,o=null,l=6,d=6,b=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:.5,w=t===gt||t===pt?-1:1,x=t===pt||t===Dt?"x":"y",E=t===gt||t===Et?en:nn;function T(v){var N=s??(e.ticks?e.ticks.apply(e,i):e.domain()),A=o??(e.tickFormat?e.tickFormat.apply(e,i):tn),k=Math.max(l,0)+b,C=e.range(),L=+C[0]+D,I=+C[C.length-1]+D,P=(e.bandwidth?sn:rn)(e.copy(),D),O=v.selection?v.selection():v,z=O.selectAll(".domain").data([null]),W=O.selectAll(".tick").data(N,e).order(),f=W.exit(),p=W.enter().append("g").attr("class","tick"),y=W.select("line"),m=W.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),W=W.merge(p),y=y.merge(p.append("line").attr("stroke","currentColor").attr(x+"2",w*l)),m=m.merge(p.append("text").attr("fill","currentColor").attr(x,w*k).attr("dy",t===gt?"0em":t===Et?"0.71em":"0.32em")),v!==O&&(z=z.transition(v),W=W.transition(v),y=y.transition(v),m=m.transition(v),f=f.transition(v).attr("opacity",ie).attr("transform",function(r){return isFinite(r=P(r))?E(r+D):this.getAttribute("transform")}),p.attr("opacity",ie).attr("transform",function(r){var u=this.parentNode.__axis;return E((u&&isFinite(u=u(r))?u:P(r))+D)})),f.remove(),z.attr("d",t===pt||t===Dt?d?"M"+w*d+","+L+"H"+D+"V"+I+"H"+w*d:"M"+D+","+L+"V"+I:d?"M"+L+","+w*d+"V"+D+"H"+I+"V"+w*d:"M"+L+","+D+"H"+I),W.attr("opacity",1).attr("transform",function(r){return E(P(r)+D)}),y.attr(x+"2",w*l),m.attr(x,w*k).text(A),O.filter(an).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Dt?"start":t===pt?"end":"middle"),O.each(function(){this.__axis=P})}return T.scale=function(v){return arguments.length?(e=v,T):e},T.ticks=function(){return i=Array.from(arguments),T},T.tickArguments=function(v){return arguments.length?(i=v==null?[]:Array.from(v),T):i.slice()},T.tickValues=function(v){return arguments.length?(s=v==null?null:Array.from(v),T):s&&s.slice()},T.tickFormat=function(v){return arguments.length?(o=v,T):o},T.tickSize=function(v){return arguments.length?(l=d=+v,T):l},T.tickSizeInner=function(v){return arguments.length?(l=+v,T):l},T.tickSizeOuter=function(v){return arguments.length?(d=+v,T):d},T.tickPadding=function(v){return arguments.length?(b=+v,T):b},T.offset=function(v){return arguments.length?(D=+v,T):D},T}function on(t){return fe(gt,t)}function cn(t){return fe(Et,t)}const ln=Math.PI/180,un=180/Math.PI,Tt=18,me=.96422,ye=1,ke=.82521,pe=4/29,ct=6/29,ge=3*ct*ct,dn=ct*ct*ct;function be(t){if(t instanceof K)return new K(t.l,t.a,t.b,t.opacity);if(t instanceof tt)return xe(t);t instanceof le||(t=Ze(t));var e=At(t.r),i=At(t.g),s=At(t.b),o=Ct((.2225045*e+.7168786*i+.0606169*s)/ye),l,d;return e===i&&i===s?l=d=o:(l=Ct((.4360747*e+.3850649*i+.1430804*s)/me),d=Ct((.0139322*e+.0971045*i+.7141733*s)/ke)),new K(116*o-16,500*(l-o),200*(o-d),t.opacity)}function hn(t,e,i,s){return arguments.length===1?be(t):new K(t,e,i,s??1)}function K(t,e,i,s){this.l=+t,this.a=+e,this.b=+i,this.opacity=+s}ue(K,hn,de(he,{brighter(t){return new K(this.l+Tt*(t??1),this.a,this.b,this.opacity)},darker(t){return new K(this.l-Tt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return e=me*St(e),t=ye*St(t),i=ke*St(i),new le(Mt(3.1338561*e-1.6168667*t-.4906146*i),Mt(-.9787684*e+1.9161415*t+.033454*i),Mt(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}}));function Ct(t){return t>dn?Math.pow(t,1/3):t/ge+pe}function St(t){return t>ct?t*t*t:ge*(t-pe)}function Mt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function At(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function fn(t){if(t instanceof tt)return new tt(t.h,t.c,t.l,t.opacity);if(t instanceof K||(t=be(t)),t.a===0&&t.b===0)return new tt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*un;return new tt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Yt(t,e,i,s){return arguments.length===1?fn(t):new tt(t,e,i,s??1)}function tt(t,e,i,s){this.h=+t,this.c=+e,this.l=+i,this.opacity=+s}function xe(t){if(isNaN(t.h))return new K(t.l,0,0,t.opacity);var e=t.h*ln;return new K(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ue(tt,Yt,de(he,{brighter(t){return new tt(this.h,this.c,this.l+Tt*(t??1),this.opacity)},darker(t){return new tt(this.h,this.c,this.l-Tt*(t??1),this.opacity)},rgb(){return xe(this).rgb()}}));function mn(t){return function(e,i){var s=t((e=Yt(e)).h,(i=Yt(i)).h),o=$t(e.c,i.c),l=$t(e.l,i.l),d=$t(e.opacity,i.opacity);return function(b){return e.h=s(b),e.c=o(b),e.l=l(b),e.opacity=d(b),e+""}}}const yn=mn(Xe);var Lt={exports:{}},kn=Lt.exports,re;function pn(){return re||(re=1,function(t,e){(function(i,s){t.exports=s()})(kn,function(){var i="day";return function(s,o,l){var d=function(w){return w.add(4-w.isoWeekday(),i)},b=o.prototype;b.isoWeekYear=function(){return d(this).year()},b.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),i);var x,E,T,v,N=d(this),A=(x=this.isoWeekYear(),E=this.$u,T=(E?l.utc:l)().year(x).startOf("year"),v=4-T.isoWeekday(),T.isoWeekday()>4&&(v+=7),T.add(v,i));return N.diff(A,"week")+1},b.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var D=b.startOf;b.startOf=function(w,x){var E=this.$utils(),T=!!E.u(x)||x;return E.p(w)==="isoweek"?T?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):D.bind(this)(w,x)}}})}(Lt)),Lt.exports}var gn=pn();const bn=Nt(gn);var It={exports:{}},xn=It.exports,se;function vn(){return se||(se=1,function(t,e){(function(i,s){t.exports=s()})(xn,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,d=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,D={},w=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(C){this[k]=+C}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var L=C.match(/([+-]|\d\d)/g),I=60*L[1]+(+L[2]||0);return I===0?0:L[0]==="+"?-I:I}(k)}],T=function(k){var C=D[k];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(k,C){var L,I=D.meridiem;if(I){for(var P=1;P<=24;P+=1)if(k.indexOf(I(P,0,C))>-1){L=P>12;break}}else L=k===(C?"pm":"PM");return L},N={A:[b,function(k){this.afternoon=v(k,!1)}],a:[b,function(k){this.afternoon=v(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[l,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[d,x("seconds")],ss:[d,x("seconds")],m:[d,x("minutes")],mm:[d,x("minutes")],H:[d,x("hours")],h:[d,x("hours")],HH:[d,x("hours")],hh:[d,x("hours")],D:[d,x("day")],DD:[l,x("day")],Do:[b,function(k){var C=D.ordinal,L=k.match(/\d+/);if(this.day=L[0],C)for(var I=1;I<=31;I+=1)C(I).replace(/\[|\]/g,"")===k&&(this.day=I)}],w:[d,x("week")],ww:[l,x("week")],M:[d,x("month")],MM:[l,x("month")],MMM:[b,function(k){var C=T("months"),L=(T("monthsShort")||C.map(function(I){return I.slice(0,3)})).indexOf(k)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[b,function(k){var C=T("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,x("year")],YY:[l,function(k){this.year=w(k)}],YYYY:[/\d{4}/,x("year")],Z:E,ZZ:E};function A(k){var C,L;C=k,L=D&&D.formats;for(var I=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,m,r){var u=r&&r.toUpperCase();return m||L[r]||i[r]||L[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,h,a){return h||a.slice(1)})})).match(s),P=I.length,O=0;O<P;O+=1){var z=I[O],W=N[z],f=W&&W[0],p=W&&W[1];I[O]=p?{regex:f,parser:p}:z.replace(/^\[|\]$/g,"")}return function(y){for(var m={},r=0,u=0;r<P;r+=1){var c=I[r];if(typeof c=="string")u+=c.length;else{var h=c.regex,a=c.parser,Y=y.slice(u),n=h.exec(Y)[0];a.call(m,n),y=y.replace(n,"")}}return function(g){var M=g.afternoon;if(M!==void 0){var S=g.hours;M?S<12&&(g.hours+=12):S===12&&(g.hours=0),delete g.afternoon}}(m),m}}return function(k,C,L){L.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(w=k.parseTwoDigitYear);var I=C.prototype,P=I.parse;I.parse=function(O){var z=O.date,W=O.utc,f=O.args;this.$u=W;var p=f[1];if(typeof p=="string"){var y=f[2]===!0,m=f[3]===!0,r=y||m,u=f[2];m&&(u=f[2]),D=this.$locale(),!y&&u&&(D=L.Ls[u]),this.$d=function(Y,n,g,M){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*Y);var S=A(n)(Y),$=S.year,F=S.month,_=S.day,Q=S.hours,nt=S.minutes,dt=S.seconds,_t=S.milliseconds,yt=S.zone,V=S.week,H=new Date,G=_||($||F?1:H.getDate()),it=$||H.getFullYear(),j=0;$&&!F||(j=F>0?F-1:H.getMonth());var U,q=Q||0,at=nt||0,et=dt||0,rt=_t||0;return yt?new Date(Date.UTC(it,j,G,q,at,et,rt+60*yt.offset*1e3)):g?new Date(Date.UTC(it,j,G,q,at,et,rt)):(U=new Date(it,j,G,q,at,et,rt),V&&(U=M(U).week(V).toDate()),U)}catch{return new Date("")}}(z,p,W,L),this.init(),u&&u!==!0&&(this.$L=this.locale(u).$L),r&&z!=this.format(p)&&(this.$d=new Date("")),D={}}else if(p instanceof Array)for(var c=p.length,h=1;h<=c;h+=1){f[1]=p[h-1];var a=L.apply(this,f);if(a.isValid()){this.$d=a.$d,this.$L=a.$L,this.init();break}h===c&&(this.$d=new Date(""))}else P.call(this,O)}}})}(It)),It.exports}var Tn=vn();const wn=Nt(Tn);var Ft={exports:{}},_n=Ft.exports,ae;function $n(){return ae||(ae=1,function(t,e){(function(i,s){t.exports=s()})(_n,function(){return function(i,s){var o=s.prototype,l=o.format;o.format=function(d){var b=this,D=this.$locale();if(!this.isValid())return l.bind(this)(d);var w=this.$utils(),x=(d||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(E){switch(E){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return D.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return D.ordinal(b.week(),"W");case"w":case"ww":return w.s(b.week(),E==="w"?1:2,"0");case"W":case"WW":return w.s(b.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return w.s(String(b.$H===0?24:b.$H),E==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return E}});return l.bind(this)(x)}}})}(Ft)),Ft.exports}var Dn=$n();const Cn=Nt(Dn);var Wt=function(){var t=function(m,r,u,c){for(u=u||{},c=m.length;c--;u[m[c]]=r);return u},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],i=[1,25],s=[1,26],o=[1,27],l=[1,28],d=[1,29],b=[1,30],D=[1,31],w=[1,9],x=[1,10],E=[1,11],T=[1,12],v=[1,13],N=[1,14],A=[1,15],k=[1,16],C=[1,18],L=[1,19],I=[1,20],P=[1,21],O=[1,22],z=[1,24],W=[1,32],f={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(m,r,u,c,h,a,Y){var n=a.length-1;switch(h){case 1:return a[n-1];case 2:this.$=[];break;case 3:a[n-1].push(a[n]),this.$=a[n-1];break;case 4:case 5:this.$=a[n];break;case 6:case 7:this.$=[];break;case 8:c.setWeekday("monday");break;case 9:c.setWeekday("tuesday");break;case 10:c.setWeekday("wednesday");break;case 11:c.setWeekday("thursday");break;case 12:c.setWeekday("friday");break;case 13:c.setWeekday("saturday");break;case 14:c.setWeekday("sunday");break;case 15:c.setDateFormat(a[n].substr(11)),this.$=a[n].substr(11);break;case 16:c.enableInclusiveEndDates(),this.$=a[n].substr(18);break;case 17:c.TopAxis(),this.$=a[n].substr(8);break;case 18:c.setAxisFormat(a[n].substr(11)),this.$=a[n].substr(11);break;case 19:c.setTickInterval(a[n].substr(13)),this.$=a[n].substr(13);break;case 20:c.setExcludes(a[n].substr(9)),this.$=a[n].substr(9);break;case 21:c.setIncludes(a[n].substr(9)),this.$=a[n].substr(9);break;case 22:c.setTodayMarker(a[n].substr(12)),this.$=a[n].substr(12);break;case 24:c.setDiagramTitle(a[n].substr(6)),this.$=a[n].substr(6);break;case 25:this.$=a[n].trim(),c.setAccTitle(this.$);break;case 26:case 27:this.$=a[n].trim(),c.setAccDescription(this.$);break;case 28:c.addSection(a[n].substr(8)),this.$=a[n].substr(8);break;case 30:c.addTask(a[n-1],a[n]),this.$="task";break;case 31:this.$=a[n-1],c.setClickEvent(a[n-1],a[n],null);break;case 32:this.$=a[n-2],c.setClickEvent(a[n-2],a[n-1],a[n]);break;case 33:this.$=a[n-2],c.setClickEvent(a[n-2],a[n-1],null),c.setLink(a[n-2],a[n]);break;case 34:this.$=a[n-3],c.setClickEvent(a[n-3],a[n-2],a[n-1]),c.setLink(a[n-3],a[n]);break;case 35:this.$=a[n-2],c.setClickEvent(a[n-2],a[n],null),c.setLink(a[n-2],a[n-1]);break;case 36:this.$=a[n-3],c.setClickEvent(a[n-3],a[n-1],a[n]),c.setLink(a[n-3],a[n-2]);break;case 37:this.$=a[n-1],c.setLink(a[n-1],a[n]);break;case 38:case 44:this.$=a[n-1]+" "+a[n];break;case 39:case 40:case 42:this.$=a[n-2]+" "+a[n-1]+" "+a[n];break;case 41:case 43:this.$=a[n-3]+" "+a[n-2]+" "+a[n-1]+" "+a[n];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:i,13:s,14:o,15:l,16:d,17:b,18:D,19:w,20:x,21:E,22:T,23:v,24:N,25:A,26:k,27:C,28:L,30:I,32:P,33:O,34:23,35:z,37:W},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:i,13:s,14:o,15:l,16:d,17:b,18:D,19:w,20:x,21:E,22:T,23:v,24:N,25:A,26:k,27:C,28:L,30:I,32:P,33:O,34:23,35:z,37:W},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(m,r){if(r.recoverable)this.trace(m);else{var u=new Error(m);throw u.hash=r,u}},parse:function(m){var r=this,u=[0],c=[],h=[null],a=[],Y=this.table,n="",g=0,M=0,S=2,$=1,F=a.slice.call(arguments,1),_=Object.create(this.lexer),Q={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Q.yy[nt]=this.yy[nt]);_.setInput(m,Q.yy),Q.yy.lexer=_,Q.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var dt=_.yylloc;a.push(dt);var _t=_.options&&_.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var Z;return Z=c.pop()||_.lex()||$,typeof Z!="number"&&(Z instanceof Array&&(c=Z,Z=c.pop()),Z=r.symbols_[Z]||Z),Z}for(var V,H,G,it,j={},U,q,at,et;;){if(H=u[u.length-1],this.defaultActions[H]?G=this.defaultActions[H]:((V===null||typeof V>"u")&&(V=yt()),G=Y[H]&&Y[H][V]),typeof G>"u"||!G.length||!G[0]){var rt="";et=[];for(U in Y[H])this.terminals_[U]&&U>S&&et.push("'"+this.terminals_[U]+"'");_.showPosition?rt="Parse error on line "+(g+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
|
-
Expecting `+et.join(", ")+", got '"+(this.terminals_[V]||V)+"'":rt="Parse error on line "+(g+1)+": Unexpected "+(V==$?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(rt,{text:_.match,token:this.terminals_[V]||V,line:_.yylineno,loc:dt,expected:et})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+
|
|
3
|
+
Expecting `+et.join(", ")+", got '"+(this.terminals_[V]||V)+"'":rt="Parse error on line "+(g+1)+": Unexpected "+(V==$?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(rt,{text:_.match,token:this.terminals_[V]||V,line:_.yylineno,loc:dt,expected:et})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+V);switch(G[0]){case 1:u.push(V),h.push(_.yytext),a.push(_.yylloc),u.push(G[1]),V=null,M=_.yyleng,n=_.yytext,g=_.yylineno,dt=_.yylloc;break;case 2:if(q=this.productions_[G[1]][1],j.$=h[h.length-q],j._$={first_line:a[a.length-(q||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(q||1)].first_column,last_column:a[a.length-1].last_column},_t&&(j._$.range=[a[a.length-(q||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(j,[n,M,g,Q.yy,G[1],h,a].concat(F)),typeof it<"u")return it;q&&(u=u.slice(0,-1*q*2),h=h.slice(0,-1*q),a=a.slice(0,-1*q)),u.push(this.productions_[G[1]][0]),h.push(j.$),a.push(j._$),at=Y[u[u.length-2]][u[u.length-1]],u.push(at);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(r,u){if(this.yy.parser)this.yy.parser.parseError(r,u);else throw new Error(r)},setInput:function(r,u){return this.yy=u||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var u=r.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var u=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),u=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
5
|
`+u+"^"},test_match:function(r,u){var c,h,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),h=r[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],c=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var Y in a)this[Y]=a[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,u,c,h;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),Y=0;Y<a.length;Y++)if(c=this._input.match(this.rules[a[Y]]),c&&(!u||c[0].length>u[0].length)){if(u=c,h=Y,this.options.backtrack_lexer){if(r=this.test_match(c,a[Y]),r!==!1)return r;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(r=this.test_match(u,a[h]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,u,c,h){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return m}();f.lexer=p;function y(){this.yy={}}return y.prototype=f,f.Parser=y,new y}();Wt.parser=Wt;const Sn=Wt;R.extend(bn);R.extend(wn);R.extend(Cn);let K="",zt="",Vt,Gt="",ht=[],ft=[],Rt={},qt=[],wt=[],ut="",Qt="";const ve=["active","done","crit","milestone"];let jt=[],mt=!1,Ht=!1,Kt="sunday",Ot=0;const Mn=function(){qt=[],wt=[],ut="",jt=[],bt=0,Bt=void 0,xt=void 0,B=[],K="",zt="",Qt="",Vt=void 0,Gt="",ht=[],ft=[],mt=!1,Ht=!1,Ot=0,Rt={},Je(),Kt="sunday"},An=function(t){zt=t},En=function(){return zt},Yn=function(t){Vt=t},Ln=function(){return Vt},In=function(t){Gt=t},Fn=function(){return Gt},Wn=function(t){K=t},On=function(){mt=!0},Pn=function(){return mt},Bn=function(){Ht=!0},Nn=function(){return Ht},zn=function(t){Qt=t},Vn=function(){return Qt},Gn=function(){return K},Rn=function(t){ht=t.toLowerCase().split(/[\s,]+/)},qn=function(){return ht},Qn=function(t){ft=t.toLowerCase().split(/[\s,]+/)},jn=function(){return ft},Hn=function(){return Rt},Kn=function(t){ut=t,qt.push(t)},Jn=function(){return qt},Un=function(){let t=oe();const e=10;let i=0;for(;!t&&i<e;)t=oe(),i++;return wt=B,wt},Te=function(t,e,i,s){return s.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&i.includes("weekends")||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(t.format(e.trim()))},Zn=function(t){Kt=t},Xn=function(){return Kt},we=function(t,e,i,s){if(!i.length||t.manualEndTime)return;let o;t.startTime instanceof Date?o=R(t.startTime):o=R(t.startTime,e,!0),o=o.add(1,"d");let l;t.endTime instanceof Date?l=R(t.endTime):l=R(t.endTime,e,!0);const[d,b]=ti(o,l,e,i,s);t.endTime=d.toDate(),t.renderEndTime=b},ti=function(t,e,i,s,o){let l=!1,d=null;for(;t<=e;)l||(d=e.toDate()),l=Te(t,i,s,o),l&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,d]},Pt=function(t,e,i){i=i.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(s!==null){let l=null;for(const b of s.groups.ids.split(" ")){let D=st(b);D!==void 0&&(!l||D.endTime>l.endTime)&&(l=D)}if(l)return l.endTime;const d=new Date;return d.setHours(0,0,0,0),d}let o=R(i,e.trim(),!0);if(o.isValid())return o.toDate();{vt.debug("Invalid date:"+i),vt.debug("With date format:"+e.trim());const l=new Date(i);if(l===void 0||isNaN(l.getTime())||l.getFullYear()<-1e4||l.getFullYear()>1e4)throw new Error("Invalid date:"+i);return l}},_e=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},$e=function(t,e,i,s=!1){i=i.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(o!==null){let w=null;for(const E of o.groups.ids.split(" ")){let T=st(E);T!==void 0&&(!w||T.startTime<w.startTime)&&(w=T)}if(w)return w.startTime;const x=new Date;return x.setHours(0,0,0,0),x}let l=R(i,e.trim(),!0);if(l.isValid())return s&&(l=l.add(1,"d")),l.toDate();let d=R(t);const[b,D]=_e(i);if(!Number.isNaN(b)){const w=d.add(b,D);w.isValid()&&(d=w)}return d.toDate()};let bt=0;const lt=function(t){return t===void 0?(bt=bt+1,"task"+bt):t},ei=function(t,e){let i;e.substr(0,1)===":"?i=e.substr(1,e.length):i=e;const s=i.split(","),o={};Me(s,o,ve);for(let d=0;d<s.length;d++)s[d]=s[d].trim();let l="";switch(s.length){case 1:o.id=lt(),o.startTime=t.endTime,l=s[0];break;case 2:o.id=lt(),o.startTime=Pt(void 0,K,s[0]),l=s[1];break;case 3:o.id=lt(s[0]),o.startTime=Pt(void 0,K,s[1]),l=s[2];break}return l&&(o.endTime=$e(o.startTime,K,l,mt),o.manualEndTime=R(l,"YYYY-MM-DD",!0).isValid(),we(o,K,ft,ht)),o},ni=function(t,e){let i;e.substr(0,1)===":"?i=e.substr(1,e.length):i=e;const s=i.split(","),o={};Me(s,o,ve);for(let l=0;l<s.length;l++)s[l]=s[l].trim();switch(s.length){case 1:o.id=lt(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:s[0]};break;case 2:o.id=lt(),o.startTime={type:"getStartDate",startData:s[0]},o.endTime={data:s[1]};break;case 3:o.id=lt(s[0]),o.startTime={type:"getStartDate",startData:s[1]},o.endTime={data:s[2]};break}return o};let Bt,xt,B=[];const De={},ii=function(t,e){const i={section:ut,type:ut,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},s=ni(xt,e);i.raw.startTime=s.startTime,i.raw.endTime=s.endTime,i.id=s.id,i.prevTaskId=xt,i.active=s.active,i.done=s.done,i.crit=s.crit,i.milestone=s.milestone,i.order=Ot,Ot++;const o=B.push(i);xt=i.id,De[i.id]=o-1},st=function(t){const e=De[t];return B[e]},ri=function(t,e){const i={section:ut,type:ut,description:t,task:t,classes:[]},s=ei(Bt,e);i.startTime=s.startTime,i.endTime=s.endTime,i.id=s.id,i.active=s.active,i.done=s.done,i.crit=s.crit,i.milestone=s.milestone,Bt=i,wt.push(i)},oe=function(){const t=function(i){const s=B[i];let o="";switch(B[i].raw.startTime.type){case"prevTaskEnd":{const l=st(s.prevTaskId);s.startTime=l.endTime;break}case"getStartDate":o=Pt(void 0,K,B[i].raw.startTime.startData),o&&(B[i].startTime=o);break}return B[i].startTime&&(B[i].endTime=$e(B[i].startTime,K,B[i].raw.endTime.data,mt),B[i].endTime&&(B[i].processed=!0,B[i].manualEndTime=R(B[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),we(B[i],K,ft,ht))),B[i].processed};let e=!0;for(const[i,s]of B.entries())t(i),e=e&&s.processed;return e},si=function(t,e){let i=e;ot().securityLevel!=="loose"&&(i=Ke.sanitizeUrl(e)),t.split(",").forEach(function(s){st(s)!==void 0&&(Se(s,()=>{window.open(i,"_self")}),Rt[s]=i)}),Ce(t,"clickable")},Ce=function(t,e){t.split(",").forEach(function(i){let s=st(i);s!==void 0&&s.classes.push(e)})},ai=function(t,e,i){if(ot().securityLevel!=="loose"||e===void 0)return;let s=[];if(typeof i=="string"){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<s.length;o++){let l=s[o].trim();l.charAt(0)==='"'&&l.charAt(l.length-1)==='"'&&(l=l.substr(1,l.length-2)),s[o]=l}}s.length===0&&s.push(t),st(t)!==void 0&&Se(t,()=>{Ue.runFunc(e,...s)})},Se=function(t,e){jt.push(function(){const i=document.querySelector(`[id="${t}"]`);i!==null&&i.addEventListener("click",function(){e()})},function(){const i=document.querySelector(`[id="${t}-text"]`);i!==null&&i.addEventListener("click",function(){e()})})},oi=function(t,e,i){t.split(",").forEach(function(s){ai(s,e,i)}),Ce(t,"clickable")},ci=function(t){jt.forEach(function(e){e(t)})},li={getConfig:()=>ot().gantt,clear:Mn,setDateFormat:Wn,getDateFormat:Gn,enableInclusiveEndDates:On,endDatesAreInclusive:Pn,enableTopAxis:Bn,topAxisEnabled:Nn,setAxisFormat:An,getAxisFormat:En,setTickInterval:Yn,getTickInterval:Ln,setTodayMarker:In,getTodayMarker:Fn,setAccTitle:Fe,getAccTitle:Ie,setDiagramTitle:Le,getDiagramTitle:Ye,setDisplayMode:zn,getDisplayMode:Vn,setAccDescription:Ee,getAccDescription:Ae,addSection:Kn,getSections:Jn,getTasks:Un,addTask:ii,findTaskById:st,addTaskOrg:ri,setIncludes:Rn,getIncludes:qn,setExcludes:Qn,getExcludes:jn,setClickEvent:oi,setLink:si,getLinks:Hn,bindFunctions:ci,parseDuration:_e,isInvalidDate:Te,setWeekday:Zn,getWeekday:Xn};function Me(t,e,i){let s=!0;for(;s;)s=!1,i.forEach(function(o){const l="^\\s*"+o+"\\s*$",d=new RegExp(l);t[0].match(d)&&(e[o]=!0,t.shift(1),s=!0)})}const ui=function(){vt.debug("Something is calling, setConf, remove the call")},ce={monday:je,tuesday:Qe,wednesday:qe,thursday:Re,friday:Ge,saturday:Ve,sunday:ze},di=(t,e)=>{let i=[...t].map(()=>-1/0),s=[...t].sort((l,d)=>l.startTime-d.startTime||l.order-d.order),o=0;for(const l of s)for(let d=0;d<i.length;d++)if(l.startTime>=i[d]){i[d]=l.endTime,l.order=d+e,d>o&&(o=d);break}return o};let X;const hi=function(t,e,i,s){const o=ot().gantt,l=ot().securityLevel;let d;l==="sandbox"&&(d=kt("#i"+e));const b=l==="sandbox"?kt(d.nodes()[0].contentDocument.body):kt("body"),D=l==="sandbox"?d.nodes()[0].contentDocument:document,w=D.getElementById(e);X=w.parentElement.offsetWidth,X===void 0&&(X=1200),o.useWidth!==void 0&&(X=o.useWidth);const x=s.db.getTasks();let E=[];for(const f of x)E.push(f.type);E=W(E);const T={};let v=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){const f={};for(const y of x)f[y.section]===void 0?f[y.section]=[y]:f[y.section].push(y);let p=0;for(const y of Object.keys(f)){const m=di(f[y],p)+1;p+=m,v+=m*(o.barHeight+o.barGap),T[y]=m}}else{v+=x.length*(o.barHeight+o.barGap);for(const f of E)T[f]=x.filter(p=>p.type===f).length}w.setAttribute("viewBox","0 0 "+X+" "+v);const N=b.select(`[id="${e}"]`),A=We().domain([Oe(x,function(f){return f.startTime}),Pe(x,function(f){return f.endTime})]).rangeRound([0,X-o.leftPadding-o.rightPadding]);function k(f,p){const y=f.startTime,m=p.startTime;let r=0;return y>m?r=1:y<m&&(r=-1),r}x.sort(k),C(x,X,v),Be(N,v,X,o.useMaxWidth),N.append("text").text(s.db.getDiagramTitle()).attr("x",X/2).attr("y",o.titleTopMargin).attr("class","titleText");function C(f,p,y){const m=o.barHeight,r=m+o.barGap,u=o.topPadding,c=o.leftPadding,h=Ne().domain([0,E.length]).range(["#00B9FA","#F95002"]).interpolate(yn);I(r,u,c,p,y,f,s.db.getExcludes(),s.db.getIncludes()),P(c,u,p,y),L(f,r,u,c,m,h,p),O(r,u),z(c,u,p,y)}function L(f,p,y,m,r,u,c){const h=[...new Set(f.map(n=>n.order))].map(n=>f.find(g=>g.order===n));N.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(n,g){return g=n.order,g*p+y-2}).attr("width",function(){return c-o.rightPadding/2}).attr("height",p).attr("class",function(n){for(const[g,M]of E.entries())if(n.type===M)return"section section"+g%o.numberSectionStyles;return"section section0"});const a=N.append("g").selectAll("rect").data(f).enter(),Y=s.db.getLinks();if(a.append("rect").attr("id",function(n){return n.id}).attr("rx",3).attr("ry",3).attr("x",function(n){return n.milestone?A(n.startTime)+m+.5*(A(n.endTime)-A(n.startTime))-.5*r:A(n.startTime)+m}).attr("y",function(n,g){return g=n.order,g*p+y}).attr("width",function(n){return n.milestone?r:A(n.renderEndTime||n.endTime)-A(n.startTime)}).attr("height",r).attr("transform-origin",function(n,g){return g=n.order,(A(n.startTime)+m+.5*(A(n.endTime)-A(n.startTime))).toString()+"px "+(g*p+y+.5*r).toString()+"px"}).attr("class",function(n){const g="task";let M="";n.classes.length>0&&(M=n.classes.join(" "));let S=0;for(const[F,_]of E.entries())n.type===_&&(S=F%o.numberSectionStyles);let $="";return n.active?n.crit?$+=" activeCrit":$=" active":n.done?n.crit?$=" doneCrit":$=" done":n.crit&&($+=" crit"),$.length===0&&($=" task"),n.milestone&&($=" milestone "+$),$+=S,$+=" "+M,g+$}),a.append("text").attr("id",function(n){return n.id+"-text"}).text(function(n){return n.task}).attr("font-size",o.fontSize).attr("x",function(n){let g=A(n.startTime),M=A(n.renderEndTime||n.endTime);n.milestone&&(g+=.5*(A(n.endTime)-A(n.startTime))-.5*r),n.milestone&&(M=g+r);const S=this.getBBox().width;return S>M-g?M+S+1.5*o.leftPadding>c?g+m-5:M+m+5:(M-g)/2+g+m}).attr("y",function(n,g){return g=n.order,g*p+o.barHeight/2+(o.fontSize/2-2)+y}).attr("text-height",r).attr("class",function(n){const g=A(n.startTime);let M=A(n.endTime);n.milestone&&(M=g+r);const S=this.getBBox().width;let $="";n.classes.length>0&&($=n.classes.join(" "));let F=0;for(const[Q,nt]of E.entries())n.type===nt&&(F=Q%o.numberSectionStyles);let _="";return n.active&&(n.crit?_="activeCritText"+F:_="activeText"+F),n.done?n.crit?_=_+" doneCritText"+F:_=_+" doneText"+F:n.crit&&(_=_+" critText"+F),n.milestone&&(_+=" milestoneText"),S>M-g?M+S+1.5*o.leftPadding>c?$+" taskTextOutsideLeft taskTextOutside"+F+" "+_:$+" taskTextOutsideRight taskTextOutside"+F+" "+_+" width-"+S:$+" taskText taskText"+F+" "+_+" width-"+S}),ot().securityLevel==="sandbox"){let n;n=kt("#i"+e);const g=n.nodes()[0].contentDocument;a.filter(function(M){return Y[M.id]!==void 0}).each(function(M){var S=g.querySelector("#"+M.id),$=g.querySelector("#"+M.id+"-text");const F=S.parentNode;var _=g.createElement("a");_.setAttribute("xlink:href",Y[M.id]),_.setAttribute("target","_top"),F.appendChild(_),_.appendChild(S),_.appendChild($)})}}function I(f,p,y,m,r,u,c,h){if(c.length===0&&h.length===0)return;let a,Y;for(const{startTime:$,endTime:F}of u)(a===void 0||$<a)&&(a=$),(Y===void 0||F>Y)&&(Y=F);if(!a||!Y)return;if(R(Y).diff(R(a),"year")>5){vt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const n=s.db.getDateFormat(),g=[];let M=null,S=R(a);for(;S.valueOf()<=Y;)s.db.isInvalidDate(S,n,c,h)?M?M.end=S:M={start:S,end:S}:M&&(g.push(M),M=null),S=S.add(1,"d");N.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",function($){return"exclude-"+$.start.format("YYYY-MM-DD")}).attr("x",function($){return A($.start)+y}).attr("y",o.gridLineStartPadding).attr("width",function($){const F=$.end.add(1,"day");return A(F)-A($.start)}).attr("height",r-p-o.gridLineStartPadding).attr("transform-origin",function($,F){return(A($.start)+y+.5*(A($.end)-A($.start))).toString()+"px "+(F*f+.5*r).toString()+"px"}).attr("class","exclude-range")}function P(f,p,y,m){let r=cn(A).tickSize(-m+p+o.gridLineStartPadding).tickFormat(Jt(s.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||o.tickInterval);if(u!==null){const c=u[1],h=u[2],a=s.db.getWeekday()||o.weekday;switch(h){case"millisecond":r.ticks(ne.every(c));break;case"second":r.ticks(ee.every(c));break;case"minute":r.ticks(te.every(c));break;case"hour":r.ticks(Xt.every(c));break;case"day":r.ticks(Zt.every(c));break;case"week":r.ticks(ce[a].every(c));break;case"month":r.ticks(Ut.every(c));break}}if(N.append("g").attr("class","grid").attr("transform","translate("+f+", "+(m-50)+")").call(r).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||o.topAxis){let c=on(A).tickSize(-m+p+o.gridLineStartPadding).tickFormat(Jt(s.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));if(u!==null){const h=u[1],a=u[2],Y=s.db.getWeekday()||o.weekday;switch(a){case"millisecond":c.ticks(ne.every(h));break;case"second":c.ticks(ee.every(h));break;case"minute":c.ticks(te.every(h));break;case"hour":c.ticks(Xt.every(h));break;case"day":c.ticks(Zt.every(h));break;case"week":c.ticks(ce[Y].every(h));break;case"month":c.ticks(Ut.every(h));break}}N.append("g").attr("class","grid").attr("transform","translate("+f+", "+p+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function O(f,p){let y=0;const m=Object.keys(T).map(r=>[r,T[r]]);N.append("g").selectAll("text").data(m).enter().append(function(r){const u=r[0].split(He.lineBreakRegex),c=-(u.length-1)/2,h=D.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("dy",c+"em");for(const[a,Y]of u.entries()){const n=D.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttribute("alignment-baseline","central"),n.setAttribute("x","10"),a>0&&n.setAttribute("dy","1em"),n.textContent=Y,h.appendChild(n)}return h}).attr("x",10).attr("y",function(r,u){if(u>0)for(let c=0;c<u;c++)return y+=m[u-1][1],r[1]*f/2+y*f+p;else return r[1]*f/2+p}).attr("font-size",o.sectionFontSize).attr("class",function(r){for(const[u,c]of E.entries())if(r[0]===c)return"sectionTitle sectionTitle"+u%o.numberSectionStyles;return"sectionTitle"})}function z(f,p,y,m){const r=s.db.getTodayMarker();if(r==="off")return;const u=N.append("g").attr("class","today"),c=new Date,h=u.append("line");h.attr("x1",A(c)+f).attr("x2",A(c)+f).attr("y1",o.titleTopMargin).attr("y2",m-o.titleTopMargin).attr("class","today"),r!==""&&h.attr("style",r.replace(/,/g,";"))}function W(f){const p={},y=[];for(let m=0,r=f.length;m<r;++m)Object.prototype.hasOwnProperty.call(p,f[m])||(p[f[m]]=!0,y.push(f[m]));return y}},fi={setConf:ui,draw:hi},mi=t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,u,c,h){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return m}();f.lexer=p;function y(){this.yy={}}return y.prototype=f,f.Parser=y,new y}();Wt.parser=Wt;const Sn=Wt;R.extend(bn);R.extend(wn);R.extend(Cn);let J="",zt="",Vt,Gt="",ht=[],ft=[],Rt={},qt=[],wt=[],ut="",Qt="";const ve=["active","done","crit","milestone"];let Ht=[],mt=!1,jt=!1,Jt="sunday",Ot=0;const Mn=function(){qt=[],wt=[],ut="",Ht=[],bt=0,Bt=void 0,xt=void 0,B=[],J="",zt="",Qt="",Vt=void 0,Gt="",ht=[],ft=[],mt=!1,jt=!1,Ot=0,Rt={},Ke(),Jt="sunday"},An=function(t){zt=t},En=function(){return zt},Yn=function(t){Vt=t},Ln=function(){return Vt},In=function(t){Gt=t},Fn=function(){return Gt},Wn=function(t){J=t},On=function(){mt=!0},Pn=function(){return mt},Bn=function(){jt=!0},Nn=function(){return jt},zn=function(t){Qt=t},Vn=function(){return Qt},Gn=function(){return J},Rn=function(t){ht=t.toLowerCase().split(/[\s,]+/)},qn=function(){return ht},Qn=function(t){ft=t.toLowerCase().split(/[\s,]+/)},Hn=function(){return ft},jn=function(){return Rt},Jn=function(t){ut=t,qt.push(t)},Kn=function(){return qt},Un=function(){let t=oe();const e=10;let i=0;for(;!t&&i<e;)t=oe(),i++;return wt=B,wt},Te=function(t,e,i,s){return s.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&i.includes("weekends")||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(t.format(e.trim()))},Zn=function(t){Jt=t},Xn=function(){return Jt},we=function(t,e,i,s){if(!i.length||t.manualEndTime)return;let o;t.startTime instanceof Date?o=R(t.startTime):o=R(t.startTime,e,!0),o=o.add(1,"d");let l;t.endTime instanceof Date?l=R(t.endTime):l=R(t.endTime,e,!0);const[d,b]=ti(o,l,e,i,s);t.endTime=d.toDate(),t.renderEndTime=b},ti=function(t,e,i,s,o){let l=!1,d=null;for(;t<=e;)l||(d=e.toDate()),l=Te(t,i,s,o),l&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,d]},Pt=function(t,e,i){i=i.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(s!==null){let l=null;for(const b of s.groups.ids.split(" ")){let D=st(b);D!==void 0&&(!l||D.endTime>l.endTime)&&(l=D)}if(l)return l.endTime;const d=new Date;return d.setHours(0,0,0,0),d}let o=R(i,e.trim(),!0);if(o.isValid())return o.toDate();{vt.debug("Invalid date:"+i),vt.debug("With date format:"+e.trim());const l=new Date(i);if(l===void 0||isNaN(l.getTime())||l.getFullYear()<-1e4||l.getFullYear()>1e4)throw new Error("Invalid date:"+i);return l}},_e=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},$e=function(t,e,i,s=!1){i=i.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(o!==null){let w=null;for(const E of o.groups.ids.split(" ")){let T=st(E);T!==void 0&&(!w||T.startTime<w.startTime)&&(w=T)}if(w)return w.startTime;const x=new Date;return x.setHours(0,0,0,0),x}let l=R(i,e.trim(),!0);if(l.isValid())return s&&(l=l.add(1,"d")),l.toDate();let d=R(t);const[b,D]=_e(i);if(!Number.isNaN(b)){const w=d.add(b,D);w.isValid()&&(d=w)}return d.toDate()};let bt=0;const lt=function(t){return t===void 0?(bt=bt+1,"task"+bt):t},ei=function(t,e){let i;e.substr(0,1)===":"?i=e.substr(1,e.length):i=e;const s=i.split(","),o={};Me(s,o,ve);for(let d=0;d<s.length;d++)s[d]=s[d].trim();let l="";switch(s.length){case 1:o.id=lt(),o.startTime=t.endTime,l=s[0];break;case 2:o.id=lt(),o.startTime=Pt(void 0,J,s[0]),l=s[1];break;case 3:o.id=lt(s[0]),o.startTime=Pt(void 0,J,s[1]),l=s[2];break}return l&&(o.endTime=$e(o.startTime,J,l,mt),o.manualEndTime=R(l,"YYYY-MM-DD",!0).isValid(),we(o,J,ft,ht)),o},ni=function(t,e){let i;e.substr(0,1)===":"?i=e.substr(1,e.length):i=e;const s=i.split(","),o={};Me(s,o,ve);for(let l=0;l<s.length;l++)s[l]=s[l].trim();switch(s.length){case 1:o.id=lt(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:s[0]};break;case 2:o.id=lt(),o.startTime={type:"getStartDate",startData:s[0]},o.endTime={data:s[1]};break;case 3:o.id=lt(s[0]),o.startTime={type:"getStartDate",startData:s[1]},o.endTime={data:s[2]};break}return o};let Bt,xt,B=[];const De={},ii=function(t,e){const i={section:ut,type:ut,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},s=ni(xt,e);i.raw.startTime=s.startTime,i.raw.endTime=s.endTime,i.id=s.id,i.prevTaskId=xt,i.active=s.active,i.done=s.done,i.crit=s.crit,i.milestone=s.milestone,i.order=Ot,Ot++;const o=B.push(i);xt=i.id,De[i.id]=o-1},st=function(t){const e=De[t];return B[e]},ri=function(t,e){const i={section:ut,type:ut,description:t,task:t,classes:[]},s=ei(Bt,e);i.startTime=s.startTime,i.endTime=s.endTime,i.id=s.id,i.active=s.active,i.done=s.done,i.crit=s.crit,i.milestone=s.milestone,Bt=i,wt.push(i)},oe=function(){const t=function(i){const s=B[i];let o="";switch(B[i].raw.startTime.type){case"prevTaskEnd":{const l=st(s.prevTaskId);s.startTime=l.endTime;break}case"getStartDate":o=Pt(void 0,J,B[i].raw.startTime.startData),o&&(B[i].startTime=o);break}return B[i].startTime&&(B[i].endTime=$e(B[i].startTime,J,B[i].raw.endTime.data,mt),B[i].endTime&&(B[i].processed=!0,B[i].manualEndTime=R(B[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),we(B[i],J,ft,ht))),B[i].processed};let e=!0;for(const[i,s]of B.entries())t(i),e=e&&s.processed;return e},si=function(t,e){let i=e;ot().securityLevel!=="loose"&&(i=Je.sanitizeUrl(e)),t.split(",").forEach(function(s){st(s)!==void 0&&(Se(s,()=>{window.open(i,"_self")}),Rt[s]=i)}),Ce(t,"clickable")},Ce=function(t,e){t.split(",").forEach(function(i){let s=st(i);s!==void 0&&s.classes.push(e)})},ai=function(t,e,i){if(ot().securityLevel!=="loose"||e===void 0)return;let s=[];if(typeof i=="string"){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<s.length;o++){let l=s[o].trim();l.charAt(0)==='"'&&l.charAt(l.length-1)==='"'&&(l=l.substr(1,l.length-2)),s[o]=l}}s.length===0&&s.push(t),st(t)!==void 0&&Se(t,()=>{Ue.runFunc(e,...s)})},Se=function(t,e){Ht.push(function(){const i=document.querySelector(`[id="${t}"]`);i!==null&&i.addEventListener("click",function(){e()})},function(){const i=document.querySelector(`[id="${t}-text"]`);i!==null&&i.addEventListener("click",function(){e()})})},oi=function(t,e,i){t.split(",").forEach(function(s){ai(s,e,i)}),Ce(t,"clickable")},ci=function(t){Ht.forEach(function(e){e(t)})},li={getConfig:()=>ot().gantt,clear:Mn,setDateFormat:Wn,getDateFormat:Gn,enableInclusiveEndDates:On,endDatesAreInclusive:Pn,enableTopAxis:Bn,topAxisEnabled:Nn,setAxisFormat:An,getAxisFormat:En,setTickInterval:Yn,getTickInterval:Ln,setTodayMarker:In,getTodayMarker:Fn,setAccTitle:Fe,getAccTitle:Ie,setDiagramTitle:Le,getDiagramTitle:Ye,setDisplayMode:zn,getDisplayMode:Vn,setAccDescription:Ee,getAccDescription:Ae,addSection:Jn,getSections:Kn,getTasks:Un,addTask:ii,findTaskById:st,addTaskOrg:ri,setIncludes:Rn,getIncludes:qn,setExcludes:Qn,getExcludes:Hn,setClickEvent:oi,setLink:si,getLinks:jn,bindFunctions:ci,parseDuration:_e,isInvalidDate:Te,setWeekday:Zn,getWeekday:Xn};function Me(t,e,i){let s=!0;for(;s;)s=!1,i.forEach(function(o){const l="^\\s*"+o+"\\s*$",d=new RegExp(l);t[0].match(d)&&(e[o]=!0,t.shift(1),s=!0)})}const ui=function(){vt.debug("Something is calling, setConf, remove the call")},ce={monday:He,tuesday:Qe,wednesday:qe,thursday:Re,friday:Ge,saturday:Ve,sunday:ze},di=(t,e)=>{let i=[...t].map(()=>-1/0),s=[...t].sort((l,d)=>l.startTime-d.startTime||l.order-d.order),o=0;for(const l of s)for(let d=0;d<i.length;d++)if(l.startTime>=i[d]){i[d]=l.endTime,l.order=d+e,d>o&&(o=d);break}return o};let X;const hi=function(t,e,i,s){const o=ot().gantt,l=ot().securityLevel;let d;l==="sandbox"&&(d=kt("#i"+e));const b=l==="sandbox"?kt(d.nodes()[0].contentDocument.body):kt("body"),D=l==="sandbox"?d.nodes()[0].contentDocument:document,w=D.getElementById(e);X=w.parentElement.offsetWidth,X===void 0&&(X=1200),o.useWidth!==void 0&&(X=o.useWidth);const x=s.db.getTasks();let E=[];for(const f of x)E.push(f.type);E=W(E);const T={};let v=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){const f={};for(const y of x)f[y.section]===void 0?f[y.section]=[y]:f[y.section].push(y);let p=0;for(const y of Object.keys(f)){const m=di(f[y],p)+1;p+=m,v+=m*(o.barHeight+o.barGap),T[y]=m}}else{v+=x.length*(o.barHeight+o.barGap);for(const f of E)T[f]=x.filter(p=>p.type===f).length}w.setAttribute("viewBox","0 0 "+X+" "+v);const N=b.select(`[id="${e}"]`),A=We().domain([Oe(x,function(f){return f.startTime}),Pe(x,function(f){return f.endTime})]).rangeRound([0,X-o.leftPadding-o.rightPadding]);function k(f,p){const y=f.startTime,m=p.startTime;let r=0;return y>m?r=1:y<m&&(r=-1),r}x.sort(k),C(x,X,v),Be(N,v,X,o.useMaxWidth),N.append("text").text(s.db.getDiagramTitle()).attr("x",X/2).attr("y",o.titleTopMargin).attr("class","titleText");function C(f,p,y){const m=o.barHeight,r=m+o.barGap,u=o.topPadding,c=o.leftPadding,h=Ne().domain([0,E.length]).range(["#00B9FA","#F95002"]).interpolate(yn);I(r,u,c,p,y,f,s.db.getExcludes(),s.db.getIncludes()),P(c,u,p,y),L(f,r,u,c,m,h,p),O(r,u),z(c,u,p,y)}function L(f,p,y,m,r,u,c){const h=[...new Set(f.map(n=>n.order))].map(n=>f.find(g=>g.order===n));N.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(n,g){return g=n.order,g*p+y-2}).attr("width",function(){return c-o.rightPadding/2}).attr("height",p).attr("class",function(n){for(const[g,M]of E.entries())if(n.type===M)return"section section"+g%o.numberSectionStyles;return"section section0"});const a=N.append("g").selectAll("rect").data(f).enter(),Y=s.db.getLinks();if(a.append("rect").attr("id",function(n){return n.id}).attr("rx",3).attr("ry",3).attr("x",function(n){return n.milestone?A(n.startTime)+m+.5*(A(n.endTime)-A(n.startTime))-.5*r:A(n.startTime)+m}).attr("y",function(n,g){return g=n.order,g*p+y}).attr("width",function(n){return n.milestone?r:A(n.renderEndTime||n.endTime)-A(n.startTime)}).attr("height",r).attr("transform-origin",function(n,g){return g=n.order,(A(n.startTime)+m+.5*(A(n.endTime)-A(n.startTime))).toString()+"px "+(g*p+y+.5*r).toString()+"px"}).attr("class",function(n){const g="task";let M="";n.classes.length>0&&(M=n.classes.join(" "));let S=0;for(const[F,_]of E.entries())n.type===_&&(S=F%o.numberSectionStyles);let $="";return n.active?n.crit?$+=" activeCrit":$=" active":n.done?n.crit?$=" doneCrit":$=" done":n.crit&&($+=" crit"),$.length===0&&($=" task"),n.milestone&&($=" milestone "+$),$+=S,$+=" "+M,g+$}),a.append("text").attr("id",function(n){return n.id+"-text"}).text(function(n){return n.task}).attr("font-size",o.fontSize).attr("x",function(n){let g=A(n.startTime),M=A(n.renderEndTime||n.endTime);n.milestone&&(g+=.5*(A(n.endTime)-A(n.startTime))-.5*r),n.milestone&&(M=g+r);const S=this.getBBox().width;return S>M-g?M+S+1.5*o.leftPadding>c?g+m-5:M+m+5:(M-g)/2+g+m}).attr("y",function(n,g){return g=n.order,g*p+o.barHeight/2+(o.fontSize/2-2)+y}).attr("text-height",r).attr("class",function(n){const g=A(n.startTime);let M=A(n.endTime);n.milestone&&(M=g+r);const S=this.getBBox().width;let $="";n.classes.length>0&&($=n.classes.join(" "));let F=0;for(const[Q,nt]of E.entries())n.type===nt&&(F=Q%o.numberSectionStyles);let _="";return n.active&&(n.crit?_="activeCritText"+F:_="activeText"+F),n.done?n.crit?_=_+" doneCritText"+F:_=_+" doneText"+F:n.crit&&(_=_+" critText"+F),n.milestone&&(_+=" milestoneText"),S>M-g?M+S+1.5*o.leftPadding>c?$+" taskTextOutsideLeft taskTextOutside"+F+" "+_:$+" taskTextOutsideRight taskTextOutside"+F+" "+_+" width-"+S:$+" taskText taskText"+F+" "+_+" width-"+S}),ot().securityLevel==="sandbox"){let n;n=kt("#i"+e);const g=n.nodes()[0].contentDocument;a.filter(function(M){return Y[M.id]!==void 0}).each(function(M){var S=g.querySelector("#"+M.id),$=g.querySelector("#"+M.id+"-text");const F=S.parentNode;var _=g.createElement("a");_.setAttribute("xlink:href",Y[M.id]),_.setAttribute("target","_top"),F.appendChild(_),_.appendChild(S),_.appendChild($)})}}function I(f,p,y,m,r,u,c,h){if(c.length===0&&h.length===0)return;let a,Y;for(const{startTime:$,endTime:F}of u)(a===void 0||$<a)&&(a=$),(Y===void 0||F>Y)&&(Y=F);if(!a||!Y)return;if(R(Y).diff(R(a),"year")>5){vt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const n=s.db.getDateFormat(),g=[];let M=null,S=R(a);for(;S.valueOf()<=Y;)s.db.isInvalidDate(S,n,c,h)?M?M.end=S:M={start:S,end:S}:M&&(g.push(M),M=null),S=S.add(1,"d");N.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",function($){return"exclude-"+$.start.format("YYYY-MM-DD")}).attr("x",function($){return A($.start)+y}).attr("y",o.gridLineStartPadding).attr("width",function($){const F=$.end.add(1,"day");return A(F)-A($.start)}).attr("height",r-p-o.gridLineStartPadding).attr("transform-origin",function($,F){return(A($.start)+y+.5*(A($.end)-A($.start))).toString()+"px "+(F*f+.5*r).toString()+"px"}).attr("class","exclude-range")}function P(f,p,y,m){let r=cn(A).tickSize(-m+p+o.gridLineStartPadding).tickFormat(Kt(s.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||o.tickInterval);if(u!==null){const c=u[1],h=u[2],a=s.db.getWeekday()||o.weekday;switch(h){case"millisecond":r.ticks(ne.every(c));break;case"second":r.ticks(ee.every(c));break;case"minute":r.ticks(te.every(c));break;case"hour":r.ticks(Xt.every(c));break;case"day":r.ticks(Zt.every(c));break;case"week":r.ticks(ce[a].every(c));break;case"month":r.ticks(Ut.every(c));break}}if(N.append("g").attr("class","grid").attr("transform","translate("+f+", "+(m-50)+")").call(r).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||o.topAxis){let c=on(A).tickSize(-m+p+o.gridLineStartPadding).tickFormat(Kt(s.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));if(u!==null){const h=u[1],a=u[2],Y=s.db.getWeekday()||o.weekday;switch(a){case"millisecond":c.ticks(ne.every(h));break;case"second":c.ticks(ee.every(h));break;case"minute":c.ticks(te.every(h));break;case"hour":c.ticks(Xt.every(h));break;case"day":c.ticks(Zt.every(h));break;case"week":c.ticks(ce[Y].every(h));break;case"month":c.ticks(Ut.every(h));break}}N.append("g").attr("class","grid").attr("transform","translate("+f+", "+p+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function O(f,p){let y=0;const m=Object.keys(T).map(r=>[r,T[r]]);N.append("g").selectAll("text").data(m).enter().append(function(r){const u=r[0].split(je.lineBreakRegex),c=-(u.length-1)/2,h=D.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("dy",c+"em");for(const[a,Y]of u.entries()){const n=D.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttribute("alignment-baseline","central"),n.setAttribute("x","10"),a>0&&n.setAttribute("dy","1em"),n.textContent=Y,h.appendChild(n)}return h}).attr("x",10).attr("y",function(r,u){if(u>0)for(let c=0;c<u;c++)return y+=m[u-1][1],r[1]*f/2+y*f+p;else return r[1]*f/2+p}).attr("font-size",o.sectionFontSize).attr("class",function(r){for(const[u,c]of E.entries())if(r[0]===c)return"sectionTitle sectionTitle"+u%o.numberSectionStyles;return"sectionTitle"})}function z(f,p,y,m){const r=s.db.getTodayMarker();if(r==="off")return;const u=N.append("g").attr("class","today"),c=new Date,h=u.append("line");h.attr("x1",A(c)+f).attr("x2",A(c)+f).attr("y1",o.titleTopMargin).attr("y2",m-o.titleTopMargin).attr("class","today"),r!==""&&h.attr("style",r.replace(/,/g,";"))}function W(f){const p={},y=[];for(let m=0,r=f.length;m<r;++m)Object.prototype.hasOwnProperty.call(p,f[m])||(p[f[m]]=!0,y.push(f[m]));return y}},fi={setConf:ui,draw:hi},mi=t=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as Re,L as Le,R as ve,D as Ie,N as Ae,I as Oe,S as v,O as N,F as Ce,u as Se,$ as Pe,j as Ge,p as D,m as Be}from"./index-CDwx2U7N.js";var he=function(){var i=function(T,l,f,r){for(f=f||{},r=T.length;r--;f[T[r]]=l);return f},n=[1,3],o=[1,6],m=[1,4],a=[1,5],s=[2,5],b=[1,12],y=[5,7,13,19,21,23,24,26,28,31,37,40,47],d=[7,13,19,21,23,24,26,28,31,37,40],k=[7,12,13,19,21,23,24,26,28,31,37,40],c=[7,13,47],R=[1,42],h=[1,41],$=[7,13,29,32,35,38,47],u=[1,55],p=[1,56],g=[1,57],C=[7,13,32,35,42,47],E={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(T,l,f,r,_,e,G){var t=e.length-1;switch(_){case 2:return e[t];case 3:return e[t-1];case 4:return r.setDirection(e[t-3]),e[t-1];case 6:r.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 19:r.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:r.checkout(e[t]);break;case 22:r.branch(e[t]);break;case 23:r.branch(e[t-2],e[t]);break;case 24:r.cherryPick(e[t],"",void 0);break;case 25:r.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:r.cherryPick(e[t-2],"",e[t]);break;case 27:r.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:r.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:r.cherryPick(e[t],"",e[t-2]);break;case 30:r.cherryPick(e[t],"","");break;case 31:r.cherryPick(e[t-2],"","");break;case 32:r.cherryPick(e[t-4],"","",e[t-2]);break;case 33:r.cherryPick(e[t-4],"","",e[t]);break;case 34:r.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:r.cherryPick(e[t-2],"","",e[t]);break;case 36:r.merge(e[t],"","","");break;case 37:r.merge(e[t-2],e[t],"","");break;case 38:r.merge(e[t-2],"",e[t],"");break;case 39:r.merge(e[t-2],"","",e[t]);break;case 40:r.merge(e[t-4],e[t],"",e[t-2]);break;case 41:r.merge(e[t-4],"",e[t],e[t-2]);break;case 42:r.merge(e[t-4],"",e[t-2],e[t]);break;case 43:r.merge(e[t-4],e[t-2],e[t],"");break;case 44:r.merge(e[t-4],e[t-2],"",e[t]);break;case 45:r.merge(e[t-4],e[t],e[t-2],"");break;case 46:r.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:r.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:r.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:r.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:r.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:r.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:r.commit(e[t]);break;case 53:r.commit("","",r.commitType.NORMAL,e[t]);break;case 54:r.commit("","",e[t],"");break;case 55:r.commit("","",e[t],e[t-2]);break;case 56:r.commit("","",e[t-2],e[t]);break;case 57:r.commit("",e[t],r.commitType.NORMAL,"");break;case 58:r.commit("",e[t-2],r.commitType.NORMAL,e[t]);break;case 59:r.commit("",e[t],r.commitType.NORMAL,e[t-2]);break;case 60:r.commit("",e[t-2],e[t],"");break;case 61:r.commit("",e[t],e[t-2],"");break;case 62:r.commit("",e[t-4],e[t-2],e[t]);break;case 63:r.commit("",e[t-4],e[t],e[t-2]);break;case 64:r.commit("",e[t-2],e[t-4],e[t]);break;case 65:r.commit("",e[t],e[t-4],e[t-2]);break;case 66:r.commit("",e[t],e[t-2],e[t-4]);break;case 67:r.commit("",e[t-2],e[t],e[t-4]);break;case 68:r.commit(e[t],"",r.commitType.NORMAL,"");break;case 69:r.commit(e[t],"",r.commitType.NORMAL,e[t-2]);break;case 70:r.commit(e[t-2],"",r.commitType.NORMAL,e[t]);break;case 71:r.commit(e[t-2],"",e[t],"");break;case 72:r.commit(e[t],"",e[t-2],"");break;case 73:r.commit(e[t],e[t-2],r.commitType.NORMAL,"");break;case 74:r.commit(e[t-2],e[t],r.commitType.NORMAL,"");break;case 75:r.commit(e[t-4],"",e[t-2],e[t]);break;case 76:r.commit(e[t-4],"",e[t],e[t-2]);break;case 77:r.commit(e[t-2],"",e[t-4],e[t]);break;case 78:r.commit(e[t],"",e[t-4],e[t-2]);break;case 79:r.commit(e[t],"",e[t-2],e[t-4]);break;case 80:r.commit(e[t-2],"",e[t],e[t-4]);break;case 81:r.commit(e[t-4],e[t],e[t-2],"");break;case 82:r.commit(e[t-4],e[t-2],e[t],"");break;case 83:r.commit(e[t-2],e[t],e[t-4],"");break;case 84:r.commit(e[t],e[t-2],e[t-4],"");break;case 85:r.commit(e[t],e[t-4],e[t-2],"");break;case 86:r.commit(e[t-2],e[t-4],e[t],"");break;case 87:r.commit(e[t-4],e[t],r.commitType.NORMAL,e[t-2]);break;case 88:r.commit(e[t-4],e[t-2],r.commitType.NORMAL,e[t]);break;case 89:r.commit(e[t-2],e[t],r.commitType.NORMAL,e[t-4]);break;case 90:r.commit(e[t],e[t-2],r.commitType.NORMAL,e[t-4]);break;case 91:r.commit(e[t],e[t-4],r.commitType.NORMAL,e[t-2]);break;case 92:r.commit(e[t-2],e[t-4],r.commitType.NORMAL,e[t]);break;case 93:r.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:r.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:r.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:r.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:r.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:r.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:r.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:r.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:r.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:r.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:r.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:r.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:r.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:r.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:r.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:r.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:r.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:r.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:r.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:r.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:r.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:r.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:r.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:r.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=r.commitType.NORMAL;break;case 120:this.$=r.commitType.REVERSE;break;case 121:this.$=r.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:o,13:m,47:a},{1:[3]},{3:7,4:2,5:n,7:o,13:m,47:a},{6:8,7:s,8:[1,9],9:[1,10],10:11,13:b},i(y,[2,124]),i(y,[2,125]),i(y,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:s,10:11,13:b},{8:[1,15]},i(d,[2,9],{11:16,12:[1,17]}),i(k,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:s,10:11,13:b},{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]},i(k,[2,7]),{1:[2,3]},{7:[1,36]},i(d,[2,10]),{4:37,7:o,13:m,47:a},i(d,[2,12]),i(c,[2,13]),i(c,[2,14]),i(c,[2,15]),{20:[1,38]},{22:[1,39]},i(c,[2,18]),i(c,[2,19]),i(c,[2,20]),{27:40,33:R,46:h},i(c,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:h},{32:[1,50],35:[1,51]},{27:52,33:R,46:h},{1:[2,4]},i(d,[2,11]),i(c,[2,16]),i(c,[2,17]),i(c,[2,21]),i($,[2,122]),i($,[2,123]),i(c,[2,52]),{33:[1,53]},{39:54,43:u,44:p,45:g},{33:[1,58]},{33:[1,59]},i(c,[2,118]),i(c,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},i(c,[2,22],{29:[1,66]}),i(c,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),i(c,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),i(C,[2,119]),i(C,[2,120]),i(C,[2,121]),i(c,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),i(c,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:u,44:p,45:g},{33:[1,81]},i(c,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:u,44:p,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:u,44:p,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:u,44:p,45:g},{33:[1,98]},i(c,[2,37],{35:[1,100],38:[1,99]}),i(c,[2,38],{32:[1,102],35:[1,101]}),i(c,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},i(c,[2,23]),i(c,[2,55],{32:[1,110],42:[1,111]}),i(c,[2,59],{38:[1,112],42:[1,113]}),i(c,[2,69],{32:[1,115],38:[1,114]}),i(c,[2,56],{32:[1,116],42:[1,117]}),i(c,[2,61],{35:[1,118],42:[1,119]}),i(c,[2,72],{32:[1,121],35:[1,120]}),i(c,[2,58],{38:[1,122],42:[1,123]}),i(c,[2,60],{35:[1,124],42:[1,125]}),i(c,[2,73],{35:[1,127],38:[1,126]}),i(c,[2,70],{32:[1,129],38:[1,128]}),i(c,[2,71],{32:[1,131],35:[1,130]}),i(c,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:u,44:p,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:u,44:p,45:g},i(c,[2,25],{35:[1,140]}),i(c,[2,26],{34:[1,141]}),i(c,[2,31],{34:[1,142]}),i(c,[2,29],{34:[1,143]}),i(c,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:u,44:p,45:g},{33:[1,148]},{39:149,43:u,44:p,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:u,44:p,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:u,44:p,45:g},{33:[1,162]},{39:163,43:u,44:p,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:u,44:p,45:g},{33:[1,168]},i(c,[2,43],{35:[1,169]}),i(c,[2,44],{38:[1,170]}),i(c,[2,42],{32:[1,171]}),i(c,[2,45],{35:[1,172]}),i(c,[2,40],{38:[1,173]}),i(c,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},i(c,[2,66],{42:[1,181]}),i(c,[2,79],{32:[1,182]}),i(c,[2,67],{42:[1,183]}),i(c,[2,90],{38:[1,184]}),i(c,[2,80],{32:[1,185]}),i(c,[2,89],{38:[1,186]}),i(c,[2,65],{42:[1,187]}),i(c,[2,78],{32:[1,188]}),i(c,[2,64],{42:[1,189]}),i(c,[2,84],{35:[1,190]}),i(c,[2,77],{32:[1,191]}),i(c,[2,83],{35:[1,192]}),i(c,[2,63],{42:[1,193]}),i(c,[2,91],{38:[1,194]}),i(c,[2,62],{42:[1,195]}),i(c,[2,85],{35:[1,196]}),i(c,[2,86],{35:[1,197]}),i(c,[2,92],{38:[1,198]}),i(c,[2,76],{32:[1,199]}),i(c,[2,87],{38:[1,200]}),i(c,[2,75],{32:[1,201]}),i(c,[2,81],{35:[1,202]}),i(c,[2,82],{35:[1,203]}),i(c,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:u,44:p,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:u,44:p,45:g},{33:[1,210]},i(c,[2,27]),i(c,[2,32]),i(c,[2,28]),i(c,[2,33]),i(c,[2,34]),i(c,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:u,44:p,45:g},{33:[1,215]},{39:216,43:u,44:p,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:u,44:p,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:u,44:p,45:g},{33:[1,229]},{39:230,43:u,44:p,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:u,44:p,45:g},i(c,[2,46]),i(c,[2,48]),i(c,[2,47]),i(c,[2,49]),i(c,[2,51]),i(c,[2,50]),i(c,[2,107]),i(c,[2,108]),i(c,[2,105]),i(c,[2,106]),i(c,[2,110]),i(c,[2,109]),i(c,[2,114]),i(c,[2,113]),i(c,[2,112]),i(c,[2,111]),i(c,[2,116]),i(c,[2,115]),i(c,[2,104]),i(c,[2,103]),i(c,[2,102]),i(c,[2,101]),i(c,[2,99]),i(c,[2,100]),i(c,[2,98]),i(c,[2,97]),i(c,[2,96]),i(c,[2,95]),i(c,[2,93]),i(c,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(T,l){if(l.recoverable)this.trace(T);else{var f=new Error(T);throw f.hash=l,f}},parse:function(T){var l=this,f=[0],r=[],_=[null],e=[],G=this.table,t="",te=0,ye=0,Ee=2,ue=1,Te=e.slice.call(arguments,1),I=Object.create(this.lexer),U={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(U.yy[ne]=this.yy[ne]);I.setInput(T,U.yy),U.yy.lexer=I,U.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var se=I.yylloc;e.push(se);var we=I.options&&I.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var Y;return Y=r.pop()||I.lex()||ue,typeof Y!="number"&&(Y instanceof Array&&(r=Y,Y=r.pop()),Y=l.symbols_[Y]||Y),Y}for(var B,q,z,oe,X={},ie,j,pe,re;;){if(q=f[f.length-1],this.defaultActions[q]?z=this.defaultActions[q]:((B===null||typeof B>"u")&&(B=Me()),z=G[q]&&G[q][B]),typeof z>"u"||!z.length||!z[0]){var le="";re=[];for(ie in G[q])this.terminals_[ie]&&ie>Ee&&re.push("'"+this.terminals_[ie]+"'");I.showPosition?le="Parse error on line "+(te+1)+`:
|
|
1
|
+
import{j as Re,M as Le,D as ve,L as Ie,R as Ae,N as Oe,E as v,O as N,F as Ce,f as Se,q as Pe,I as Ge,m as D,p as Be}from"./index-3H3i7ExC.js";var he=function(){var i=function(T,l,f,r){for(f=f||{},r=T.length;r--;f[T[r]]=l);return f},n=[1,3],o=[1,6],m=[1,4],a=[1,5],s=[2,5],b=[1,12],y=[5,7,13,19,21,23,24,26,28,31,37,40,47],d=[7,13,19,21,23,24,26,28,31,37,40],k=[7,12,13,19,21,23,24,26,28,31,37,40],c=[7,13,47],R=[1,42],h=[1,41],$=[7,13,29,32,35,38,47],u=[1,55],p=[1,56],g=[1,57],C=[7,13,32,35,42,47],E={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(T,l,f,r,_,e,G){var t=e.length-1;switch(_){case 2:return e[t];case 3:return e[t-1];case 4:return r.setDirection(e[t-3]),e[t-1];case 6:r.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 19:r.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:r.checkout(e[t]);break;case 22:r.branch(e[t]);break;case 23:r.branch(e[t-2],e[t]);break;case 24:r.cherryPick(e[t],"",void 0);break;case 25:r.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:r.cherryPick(e[t-2],"",e[t]);break;case 27:r.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:r.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:r.cherryPick(e[t],"",e[t-2]);break;case 30:r.cherryPick(e[t],"","");break;case 31:r.cherryPick(e[t-2],"","");break;case 32:r.cherryPick(e[t-4],"","",e[t-2]);break;case 33:r.cherryPick(e[t-4],"","",e[t]);break;case 34:r.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:r.cherryPick(e[t-2],"","",e[t]);break;case 36:r.merge(e[t],"","","");break;case 37:r.merge(e[t-2],e[t],"","");break;case 38:r.merge(e[t-2],"",e[t],"");break;case 39:r.merge(e[t-2],"","",e[t]);break;case 40:r.merge(e[t-4],e[t],"",e[t-2]);break;case 41:r.merge(e[t-4],"",e[t],e[t-2]);break;case 42:r.merge(e[t-4],"",e[t-2],e[t]);break;case 43:r.merge(e[t-4],e[t-2],e[t],"");break;case 44:r.merge(e[t-4],e[t-2],"",e[t]);break;case 45:r.merge(e[t-4],e[t],e[t-2],"");break;case 46:r.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:r.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:r.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:r.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:r.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:r.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:r.commit(e[t]);break;case 53:r.commit("","",r.commitType.NORMAL,e[t]);break;case 54:r.commit("","",e[t],"");break;case 55:r.commit("","",e[t],e[t-2]);break;case 56:r.commit("","",e[t-2],e[t]);break;case 57:r.commit("",e[t],r.commitType.NORMAL,"");break;case 58:r.commit("",e[t-2],r.commitType.NORMAL,e[t]);break;case 59:r.commit("",e[t],r.commitType.NORMAL,e[t-2]);break;case 60:r.commit("",e[t-2],e[t],"");break;case 61:r.commit("",e[t],e[t-2],"");break;case 62:r.commit("",e[t-4],e[t-2],e[t]);break;case 63:r.commit("",e[t-4],e[t],e[t-2]);break;case 64:r.commit("",e[t-2],e[t-4],e[t]);break;case 65:r.commit("",e[t],e[t-4],e[t-2]);break;case 66:r.commit("",e[t],e[t-2],e[t-4]);break;case 67:r.commit("",e[t-2],e[t],e[t-4]);break;case 68:r.commit(e[t],"",r.commitType.NORMAL,"");break;case 69:r.commit(e[t],"",r.commitType.NORMAL,e[t-2]);break;case 70:r.commit(e[t-2],"",r.commitType.NORMAL,e[t]);break;case 71:r.commit(e[t-2],"",e[t],"");break;case 72:r.commit(e[t],"",e[t-2],"");break;case 73:r.commit(e[t],e[t-2],r.commitType.NORMAL,"");break;case 74:r.commit(e[t-2],e[t],r.commitType.NORMAL,"");break;case 75:r.commit(e[t-4],"",e[t-2],e[t]);break;case 76:r.commit(e[t-4],"",e[t],e[t-2]);break;case 77:r.commit(e[t-2],"",e[t-4],e[t]);break;case 78:r.commit(e[t],"",e[t-4],e[t-2]);break;case 79:r.commit(e[t],"",e[t-2],e[t-4]);break;case 80:r.commit(e[t-2],"",e[t],e[t-4]);break;case 81:r.commit(e[t-4],e[t],e[t-2],"");break;case 82:r.commit(e[t-4],e[t-2],e[t],"");break;case 83:r.commit(e[t-2],e[t],e[t-4],"");break;case 84:r.commit(e[t],e[t-2],e[t-4],"");break;case 85:r.commit(e[t],e[t-4],e[t-2],"");break;case 86:r.commit(e[t-2],e[t-4],e[t],"");break;case 87:r.commit(e[t-4],e[t],r.commitType.NORMAL,e[t-2]);break;case 88:r.commit(e[t-4],e[t-2],r.commitType.NORMAL,e[t]);break;case 89:r.commit(e[t-2],e[t],r.commitType.NORMAL,e[t-4]);break;case 90:r.commit(e[t],e[t-2],r.commitType.NORMAL,e[t-4]);break;case 91:r.commit(e[t],e[t-4],r.commitType.NORMAL,e[t-2]);break;case 92:r.commit(e[t-2],e[t-4],r.commitType.NORMAL,e[t]);break;case 93:r.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:r.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:r.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:r.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:r.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:r.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:r.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:r.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:r.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:r.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:r.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:r.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:r.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:r.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:r.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:r.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:r.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:r.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:r.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:r.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:r.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:r.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:r.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:r.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=r.commitType.NORMAL;break;case 120:this.$=r.commitType.REVERSE;break;case 121:this.$=r.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:o,13:m,47:a},{1:[3]},{3:7,4:2,5:n,7:o,13:m,47:a},{6:8,7:s,8:[1,9],9:[1,10],10:11,13:b},i(y,[2,124]),i(y,[2,125]),i(y,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:s,10:11,13:b},{8:[1,15]},i(d,[2,9],{11:16,12:[1,17]}),i(k,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:s,10:11,13:b},{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]},i(k,[2,7]),{1:[2,3]},{7:[1,36]},i(d,[2,10]),{4:37,7:o,13:m,47:a},i(d,[2,12]),i(c,[2,13]),i(c,[2,14]),i(c,[2,15]),{20:[1,38]},{22:[1,39]},i(c,[2,18]),i(c,[2,19]),i(c,[2,20]),{27:40,33:R,46:h},i(c,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:h},{32:[1,50],35:[1,51]},{27:52,33:R,46:h},{1:[2,4]},i(d,[2,11]),i(c,[2,16]),i(c,[2,17]),i(c,[2,21]),i($,[2,122]),i($,[2,123]),i(c,[2,52]),{33:[1,53]},{39:54,43:u,44:p,45:g},{33:[1,58]},{33:[1,59]},i(c,[2,118]),i(c,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},i(c,[2,22],{29:[1,66]}),i(c,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),i(c,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),i(C,[2,119]),i(C,[2,120]),i(C,[2,121]),i(c,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),i(c,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:u,44:p,45:g},{33:[1,81]},i(c,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:u,44:p,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:u,44:p,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:u,44:p,45:g},{33:[1,98]},i(c,[2,37],{35:[1,100],38:[1,99]}),i(c,[2,38],{32:[1,102],35:[1,101]}),i(c,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},i(c,[2,23]),i(c,[2,55],{32:[1,110],42:[1,111]}),i(c,[2,59],{38:[1,112],42:[1,113]}),i(c,[2,69],{32:[1,115],38:[1,114]}),i(c,[2,56],{32:[1,116],42:[1,117]}),i(c,[2,61],{35:[1,118],42:[1,119]}),i(c,[2,72],{32:[1,121],35:[1,120]}),i(c,[2,58],{38:[1,122],42:[1,123]}),i(c,[2,60],{35:[1,124],42:[1,125]}),i(c,[2,73],{35:[1,127],38:[1,126]}),i(c,[2,70],{32:[1,129],38:[1,128]}),i(c,[2,71],{32:[1,131],35:[1,130]}),i(c,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:u,44:p,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:u,44:p,45:g},i(c,[2,25],{35:[1,140]}),i(c,[2,26],{34:[1,141]}),i(c,[2,31],{34:[1,142]}),i(c,[2,29],{34:[1,143]}),i(c,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:u,44:p,45:g},{33:[1,148]},{39:149,43:u,44:p,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:u,44:p,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:u,44:p,45:g},{33:[1,162]},{39:163,43:u,44:p,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:u,44:p,45:g},{33:[1,168]},i(c,[2,43],{35:[1,169]}),i(c,[2,44],{38:[1,170]}),i(c,[2,42],{32:[1,171]}),i(c,[2,45],{35:[1,172]}),i(c,[2,40],{38:[1,173]}),i(c,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},i(c,[2,66],{42:[1,181]}),i(c,[2,79],{32:[1,182]}),i(c,[2,67],{42:[1,183]}),i(c,[2,90],{38:[1,184]}),i(c,[2,80],{32:[1,185]}),i(c,[2,89],{38:[1,186]}),i(c,[2,65],{42:[1,187]}),i(c,[2,78],{32:[1,188]}),i(c,[2,64],{42:[1,189]}),i(c,[2,84],{35:[1,190]}),i(c,[2,77],{32:[1,191]}),i(c,[2,83],{35:[1,192]}),i(c,[2,63],{42:[1,193]}),i(c,[2,91],{38:[1,194]}),i(c,[2,62],{42:[1,195]}),i(c,[2,85],{35:[1,196]}),i(c,[2,86],{35:[1,197]}),i(c,[2,92],{38:[1,198]}),i(c,[2,76],{32:[1,199]}),i(c,[2,87],{38:[1,200]}),i(c,[2,75],{32:[1,201]}),i(c,[2,81],{35:[1,202]}),i(c,[2,82],{35:[1,203]}),i(c,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:u,44:p,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:u,44:p,45:g},{33:[1,210]},i(c,[2,27]),i(c,[2,32]),i(c,[2,28]),i(c,[2,33]),i(c,[2,34]),i(c,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:u,44:p,45:g},{33:[1,215]},{39:216,43:u,44:p,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:u,44:p,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:u,44:p,45:g},{33:[1,229]},{39:230,43:u,44:p,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:u,44:p,45:g},i(c,[2,46]),i(c,[2,48]),i(c,[2,47]),i(c,[2,49]),i(c,[2,51]),i(c,[2,50]),i(c,[2,107]),i(c,[2,108]),i(c,[2,105]),i(c,[2,106]),i(c,[2,110]),i(c,[2,109]),i(c,[2,114]),i(c,[2,113]),i(c,[2,112]),i(c,[2,111]),i(c,[2,116]),i(c,[2,115]),i(c,[2,104]),i(c,[2,103]),i(c,[2,102]),i(c,[2,101]),i(c,[2,99]),i(c,[2,100]),i(c,[2,98]),i(c,[2,97]),i(c,[2,96]),i(c,[2,95]),i(c,[2,93]),i(c,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(T,l){if(l.recoverable)this.trace(T);else{var f=new Error(T);throw f.hash=l,f}},parse:function(T){var l=this,f=[0],r=[],_=[null],e=[],G=this.table,t="",te=0,ye=0,Ee=2,ue=1,Te=e.slice.call(arguments,1),I=Object.create(this.lexer),U={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(U.yy[ne]=this.yy[ne]);I.setInput(T,U.yy),U.yy.lexer=I,U.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var se=I.yylloc;e.push(se);var we=I.options&&I.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var Y;return Y=r.pop()||I.lex()||ue,typeof Y!="number"&&(Y instanceof Array&&(r=Y,Y=r.pop()),Y=l.symbols_[Y]||Y),Y}for(var B,q,z,oe,X={},ie,j,pe,re;;){if(q=f[f.length-1],this.defaultActions[q]?z=this.defaultActions[q]:((B===null||typeof B>"u")&&(B=Me()),z=G[q]&&G[q][B]),typeof z>"u"||!z.length||!z[0]){var le="";re=[];for(ie in G[q])this.terminals_[ie]&&ie>Ee&&re.push("'"+this.terminals_[ie]+"'");I.showPosition?le="Parse error on line "+(te+1)+`:
|
|
2
2
|
`+I.showPosition()+`
|
|
3
3
|
Expecting `+re.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error on line "+(te+1)+": Unexpected "+(B==ue?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(le,{text:I.match,token:this.terminals_[B]||B,line:I.yylineno,loc:se,expected:re})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+B);switch(z[0]){case 1:f.push(B),_.push(I.yytext),e.push(I.yylloc),f.push(z[1]),B=null,ye=I.yyleng,t=I.yytext,te=I.yylineno,se=I.yylloc;break;case 2:if(j=this.productions_[z[1]][1],X.$=_[_.length-j],X._$={first_line:e[e.length-(j||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(j||1)].first_column,last_column:e[e.length-1].last_column},we&&(X._$.range=[e[e.length-(j||1)].range[0],e[e.length-1].range[1]]),oe=this.performAction.apply(X,[t,ye,te,U.yy,z[1],_,e].concat(Te)),typeof oe<"u")return oe;j&&(f=f.slice(0,-1*j*2),_=_.slice(0,-1*j),e=e.slice(0,-1*j)),f.push(this.productions_[z[1]][0]),_.push(X.$),e.push(X._$),pe=G[f[f.length-2]][f[f.length-1]],f.push(pe);break;case 3:return!0}}return!0}},x=function(){var T={EOF:1,parseError:function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},setInput:function(l,f){return this.yy=f||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var f=l.length,r=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===_.length?this.yylloc.first_column:0)+_[_.length-r.length].length-r[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as F,s as rt,aq as Kt,b2 as Vt,b3 as qt,au as jt,ay as yt,b4 as Wt,b5 as N,b6 as V,b7 as Ht,b8 as Jt,b9 as L,aB as mt,at as _,aA as wt,ba as B,bb as Qt,bc as Ot,bd as z,be as D,bf as k,bg as Tt,bh as m,bi as Xt,bj as Yt,aD as Zt,bk as At,bl as tr,ax as rr,bm as et,bn as er,aE as nr,bo as ir,bp as nt,aG as sr,aw as W,bq as ur}from"./index-CDwx2U7N.js";var or="[object Symbol]";function H(t){return typeof t=="symbol"||D(t)&&Xt(t)==or}function Ct(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}var it=m?m.prototype:void 0,st=it?it.toString:void 0;function Et(t){if(typeof t=="string")return t;if(_(t))return Ct(t,Et)+"";if(H(t))return st?st.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function ar(){}function Lt(t,r){for(var e=-1,n=t==null?0:t.length;++e<n&&r(t[e],e,t)!==!1;);return t}function cr(t,r,e,n){for(var i=t.length,s=e+-1;++s<i;)if(r(t[s],s,t))return s;return-1}function fr(t){return t!==t}function lr(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}function hr(t,r,e){return r===r?lr(t,r,e):cr(t,fr,e)}function dr(t,r){var e=t==null?0:t.length;return!!e&&hr(t,r,0)>-1}function y(t){return jt(t)?Vt(t):qt(t)}var vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/;function J(t,r){if(_(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||H(t)?!0:br.test(t)||!vr.test(t)||r!=null&&t in Object(r)}var gr=500;function pr(t){var r=er(t,function(n){return e.size===gr&&e.clear(),n}),e=r.cache;return r}var _r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/\\(\\)?/g,yr=pr(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(_r,function(e,n,i,s){r.push(i?s.replace(jr,"$1"):n||e)}),r});function mr(t){return t==null?"":Et(t)}function Nt(t,r){return _(t)?t:J(t,r)?[t]:yr(mr(t))}function U(t){if(typeof t=="string"||H(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function Dt(t,r){r=Nt(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[U(r[e++])];return e&&e==n?t:void 0}function wr(t,r,e){var n=t==null?void 0:Dt(t,r);return n===void 0?e:n}function Q(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}var ut=m?m.isConcatSpreadable:void 0;function Or(t){return _(t)||At(t)||!!(ut&&t&&t[ut])}function Ar(t,r,e,n,i){var s=-1,u=t.length;for(e||(e=Or),i||(i=[]);++s<u;){var o=t[s];e(o)?Q(i,o):n||(i[i.length]=o)}return i}function Cr(t,r,e,n){var i=-1,s=t==null?0:t.length;for(n&&s&&(e=t[++i]);++i<s;)e=r(e,t[i],i,t);return e}function Er(t,r){return t&&B(r,y(r),t)}function Lr(t,r){return t&&B(r,W(r),t)}function Pt(t,r){for(var e=-1,n=t==null?0:t.length,i=0,s=[];++e<n;){var u=t[e];r(u,e,t)&&(s[i++]=u)}return s}function St(){return[]}var Nr=Object.prototype,Dr=Nr.propertyIsEnumerable,ot=Object.getOwnPropertySymbols,T=ot?function(t){return t==null?[]:(t=Object(t),Pt(ot(t),function(r){return Dr.call(t,r)}))}:St;function Pr(t,r){return B(t,T(t),r)}var Sr=Object.getOwnPropertySymbols,Mt=Sr?function(t){for(var r=[];t;)Q(r,T(t)),t=ur(t);return r}:St;function Mr(t,r){return B(t,Mt(t),r)}function Ft(t,r,e){var n=r(t);return _(t)?n:Q(n,e(t))}function q(t){return Ft(t,y,T)}function Fr(t){return Ft(t,W,Mt)}var Ir=Object.prototype,xr=Ir.hasOwnProperty;function zr(t){var r=t.length,e=new t.constructor(r);return r&&typeof t[0]=="string"&&xr.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function Br(t,r){var e=r?Ot(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}var Ur=/\w*$/;function kr(t){var r=new t.constructor(t.source,Ur.exec(t));return r.lastIndex=t.lastIndex,r}var at=m?m.prototype:void 0,ct=at?at.valueOf:void 0;function $r(t){return ct?Object(ct.call(t)):{}}var Gr="[object Boolean]",Rr="[object Date]",Kr="[object Map]",Vr="[object Number]",qr="[object RegExp]",Wr="[object Set]",Hr="[object String]",Jr="[object Symbol]",Qr="[object ArrayBuffer]",Tr="[object DataView]",Xr="[object Float32Array]",Yr="[object Float64Array]",Zr="[object Int8Array]",te="[object Int16Array]",re="[object Int32Array]",ee="[object Uint8Array]",ne="[object Uint8ClampedArray]",ie="[object Uint16Array]",se="[object Uint32Array]";function ue(t,r,e){var n=t.constructor;switch(r){case Qr:return Ot(t);case Gr:case Rr:return new n(+t);case Tr:return Br(t,e);case Xr:case Yr:case Zr:case te:case re:case ee:case ne:case ie:case se:return Qt(t,e);case Kr:return new n;case Vr:case Hr:return new n(t);case qr:return kr(t);case Wr:return new n;case Jr:return $r(t)}}var oe="[object Map]";function ae(t){return D(t)&&N(t)==oe}var ft=z&&z.isMap,ce=ft?mt(ft):ae,fe="[object Set]";function le(t){return D(t)&&N(t)==fe}var lt=z&&z.isSet,he=lt?mt(lt):le,de=1,ve=2,be=4,It="[object Arguments]",ge="[object Array]",pe="[object Boolean]",_e="[object Date]",je="[object Error]",xt="[object Function]",ye="[object GeneratorFunction]",me="[object Map]",we="[object Number]",zt="[object Object]",Oe="[object RegExp]",Ae="[object Set]",Ce="[object String]",Ee="[object Symbol]",Le="[object WeakMap]",Ne="[object ArrayBuffer]",De="[object DataView]",Pe="[object Float32Array]",Se="[object Float64Array]",Me="[object Int8Array]",Fe="[object Int16Array]",Ie="[object Int32Array]",xe="[object Uint8Array]",ze="[object Uint8ClampedArray]",Be="[object Uint16Array]",Ue="[object Uint32Array]",f={};f[It]=f[ge]=f[Ne]=f[De]=f[pe]=f[_e]=f[Pe]=f[Se]=f[Me]=f[Fe]=f[Ie]=f[me]=f[we]=f[zt]=f[Oe]=f[Ae]=f[Ce]=f[Ee]=f[xe]=f[ze]=f[Be]=f[Ue]=!0;f[je]=f[xt]=f[Le]=!1;function $(t,r,e,n,i,s){var u,o=r&de,a=r&ve,d=r&be;if(u!==void 0)return u;if(!yt(t))return t;var h=_(t);if(h){if(u=zr(t),!o)return Wt(t,u)}else{var c=N(t),l=c==xt||c==ye;if(V(t))return Ht(t,o);if(c==zt||c==It||l&&!i){if(u=a||l?{}:Jt(t),!o)return a?Mr(t,Lr(u,t)):Pr(t,Er(u,t))}else{if(!f[c])return i?t:{};u=ue(t,c,o)}}s||(s=new L);var j=s.get(t);if(j)return j;s.set(t,u),he(t)?t.forEach(function(v){u.add($(v,r,e,v,t,s))}):ce(t)&&t.forEach(function(v,b){u.set(b,$(v,r,e,b,t,s))});var g=d?a?Fr:q:a?W:y,p=h?void 0:g(t);return Lt(p||t,function(v,b){p&&(b=v,v=t[b]),nr(u,b,$(v,r,e,b,t,s))}),u}var ke="__lodash_hash_undefined__";function $e(t){return this.__data__.set(t,ke),this}function Ge(t){return this.__data__.has(t)}function P(t){var r=-1,e=t==null?0:t.length;for(this.__data__=new Tt;++r<e;)this.add(t[r])}P.prototype.add=P.prototype.push=$e;P.prototype.has=Ge;function Re(t,r){for(var e=-1,n=t==null?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function Bt(t,r){return t.has(r)}var Ke=1,Ve=2;function Ut(t,r,e,n,i,s){var u=e&Ke,o=t.length,a=r.length;if(o!=a&&!(u&&a>o))return!1;var d=s.get(t),h=s.get(r);if(d&&h)return d==r&&h==t;var c=-1,l=!0,j=e&Ve?new P:void 0;for(s.set(t,r),s.set(r,t);++c<o;){var g=t[c],p=r[c];if(n)var v=u?n(p,g,c,r,t,s):n(g,p,c,t,r,s);if(v!==void 0){if(v)continue;l=!1;break}if(j){if(!Re(r,function(b,w){if(!Bt(j,w)&&(g===b||i(g,b,e,n,s)))return j.push(w)})){l=!1;break}}else if(!(g===p||i(g,p,e,n,s))){l=!1;break}}return s.delete(t),s.delete(r),l}function qe(t){var r=-1,e=Array(t.size);return t.forEach(function(n,i){e[++r]=[i,n]}),e}function X(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var We=1,He=2,Je="[object Boolean]",Qe="[object Date]",Te="[object Error]",Xe="[object Map]",Ye="[object Number]",Ze="[object RegExp]",tn="[object Set]",rn="[object String]",en="[object Symbol]",nn="[object ArrayBuffer]",sn="[object DataView]",ht=m?m.prototype:void 0,G=ht?ht.valueOf:void 0;function un(t,r,e,n,i,s,u){switch(e){case sn:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case nn:return!(t.byteLength!=r.byteLength||!s(new et(t),new et(r)));case Je:case Qe:case Ye:return rr(+t,+r);case Te:return t.name==r.name&&t.message==r.message;case Ze:case rn:return t==r+"";case Xe:var o=qe;case tn:var a=n&We;if(o||(o=X),t.size!=r.size&&!a)return!1;var d=u.get(t);if(d)return d==r;n|=He,u.set(t,r);var h=Ut(o(t),o(r),n,i,s,u);return u.delete(t),h;case en:if(G)return G.call(t)==G.call(r)}return!1}var on=1,an=Object.prototype,cn=an.hasOwnProperty;function fn(t,r,e,n,i,s){var u=e&on,o=q(t),a=o.length,d=q(r),h=d.length;if(a!=h&&!u)return!1;for(var c=a;c--;){var l=o[c];if(!(u?l in r:cn.call(r,l)))return!1}var j=s.get(t),g=s.get(r);if(j&&g)return j==r&&g==t;var p=!0;s.set(t,r),s.set(r,t);for(var v=u;++c<a;){l=o[c];var b=t[l],w=r[l];if(n)var tt=u?n(w,b,l,r,t,s):n(b,w,l,t,r,s);if(!(tt===void 0?b===w||i(b,w,e,n,s):tt)){p=!1;break}v||(v=l=="constructor")}if(p&&!v){var S=t.constructor,M=r.constructor;S!=M&&"constructor"in t&&"constructor"in r&&!(typeof S=="function"&&S instanceof S&&typeof M=="function"&&M instanceof M)&&(p=!1)}return s.delete(t),s.delete(r),p}var ln=1,dt="[object Arguments]",vt="[object Array]",I="[object Object]",hn=Object.prototype,bt=hn.hasOwnProperty;function dn(t,r,e,n,i,s){var u=_(t),o=_(r),a=u?vt:N(t),d=o?vt:N(r);a=a==dt?I:a,d=d==dt?I:d;var h=a==I,c=d==I,l=a==d;if(l&&V(t)){if(!V(r))return!1;u=!0,h=!1}if(l&&!h)return s||(s=new L),u||tr(t)?Ut(t,r,e,n,i,s):un(t,r,a,e,n,i,s);if(!(e&ln)){var j=h&&bt.call(t,"__wrapped__"),g=c&&bt.call(r,"__wrapped__");if(j||g){var p=j?t.value():t,v=g?r.value():r;return s||(s=new L),i(p,v,e,n,s)}}return l?(s||(s=new L),fn(t,r,e,n,i,s)):!1}function Y(t,r,e,n,i){return t===r?!0:t==null||r==null||!D(t)&&!D(r)?t!==t&&r!==r:dn(t,r,e,n,Y,i)}var vn=1,bn=2;function gn(t,r,e,n){var i=e.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var u=e[i];if(u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<s;){u=e[i];var o=u[0],a=t[o],d=u[1];if(u[2]){if(a===void 0&&!(o in t))return!1}else{var h=new L,c;if(!(c===void 0?Y(d,a,vn|bn,n,h):c))return!1}}return!0}function kt(t){return t===t&&!yt(t)}function pn(t){for(var r=y(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,kt(i)]}return r}function $t(t,r){return function(e){return e==null?!1:e[t]===r&&(r!==void 0||t in Object(e))}}function _n(t){var r=pn(t);return r.length==1&&r[0][2]?$t(r[0][0],r[0][1]):function(e){return e===t||gn(e,t,r)}}function jn(t,r){return t!=null&&r in Object(t)}function yn(t,r,e){r=Nt(r,t);for(var n=-1,i=r.length,s=!1;++n<i;){var u=U(r[n]);if(!(s=t!=null&&e(t,u)))break;t=t[u]}return s||++n!=i?s:(i=t==null?0:t.length,!!i&&Yt(i)&&Zt(u,i)&&(_(t)||At(t)))}function mn(t,r){return t!=null&&yn(t,r,jn)}var wn=1,On=2;function An(t,r){return J(t)&&kt(r)?$t(U(t),r):function(e){var n=wr(e,t);return n===void 0&&n===r?mn(e,t):Y(r,n,wn|On)}}function Cn(t){return function(r){return r==null?void 0:r[t]}}function En(t){return function(r){return Dt(r,t)}}function Ln(t){return J(t)?Cn(U(t)):En(t)}function Gt(t){return typeof t=="function"?t:t==null?wt:typeof t=="object"?_(t)?An(t[0],t[1]):_n(t):Ln(t)}function Nn(t,r){return t&&sr(t,r,y)}function Dn(t,r){return function(e,n){if(e==null)return e;if(!jt(e))return t(e,n);for(var i=e.length,s=-1,u=Object(e);++s<i&&n(u[s],s,u)!==!1;);return e}}var Z=Dn(Nn);function Pn(t){return typeof t=="function"?t:wt}function O(t,r){var e=_(t)?Lt:Z;return e(t,Pn(r))}function Sn(t,r){var e=[];return Z(t,function(n,i,s){r(n,i,s)&&e.push(n)}),e}function x(t,r){var e=_(t)?Pt:Sn;return e(t,Gt(r))}function Mn(t,r){return Ct(r,function(e){return t[e]})}function R(t){return t==null?[]:Mn(t,y(t))}function C(t){return t===void 0}function Fn(t,r,e,n,i){return i(t,function(s,u,o){e=n?(n=!1,s):r(e,s,u,o)}),e}function In(t,r,e){var n=_(t)?Cr:Fn,i=arguments.length<3;return n(t,Gt(r),e,i,Z)}var xn=1/0,zn=k&&1/X(new k([,-0]))[1]==xn?function(t){return new k(t)}:ar,Bn=200;function Un(t,r,e){var n=-1,i=dr,s=t.length,u=!0,o=[],a=o;if(s>=Bn){var d=zn(t);if(d)return X(d);u=!1,i=Bt,a=new P}else a=o;t:for(;++n<s;){var h=t[n],c=h;if(h=h!==0?h:0,u&&c===c){for(var l=a.length;l--;)if(a[l]===c)continue t;o.push(h)}else i(a,c,e)||(a!==o&&a.push(c),o.push(h))}return o}var kn=Kt(function(t){return Un(Ar(t,1,ir,!0))}),$n="\0",A="\0",gt="";class Rt{constructor(r={}){this._isDirected=Object.prototype.hasOwnProperty.call(r,"directed")?r.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(r,"multigraph")?r.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(r,"compound")?r.compound:!1,this._label=void 0,this._defaultNodeLabelFn=F(void 0),this._defaultEdgeLabelFn=F(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[A]={}),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(r){return this._label=r,this}graph(){return this._label}setDefaultNodeLabel(r){return rt(r)||(r=F(r)),this._defaultNodeLabelFn=r,this}nodeCount(){return this._nodeCount}nodes(){return y(this._nodes)}sources(){var r=this;return x(this.nodes(),function(e){return nt(r._in[e])})}sinks(){var r=this;return x(this.nodes(),function(e){return nt(r._out[e])})}setNodes(r,e){var n=arguments,i=this;return O(r,function(s){n.length>1?i.setNode(s,e):i.setNode(s)}),this}setNode(r,e){return Object.prototype.hasOwnProperty.call(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=e),this):(this._nodes[r]=arguments.length>1?e:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]=A,this._children[r]={},this._children[A][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)}node(r){return this._nodes[r]}hasNode(r){return Object.prototype.hasOwnProperty.call(this._nodes,r)}removeNode(r){if(Object.prototype.hasOwnProperty.call(this._nodes,r)){var e=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],O(this.children(r),n=>{this.setParent(n)}),delete this._children[r]),O(y(this._in[r]),e),delete this._in[r],delete this._preds[r],O(y(this._out[r]),e),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this}setParent(r,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(C(e))e=A;else{e+="";for(var n=e;!C(n);n=this.parent(n))if(n===r)throw new Error("Setting "+e+" as parent of "+r+" would create a cycle");this.setNode(e)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=e,this._children[e][r]=!0,this}_removeFromParentsChildList(r){delete this._children[this._parent[r]][r]}parent(r){if(this._isCompound){var e=this._parent[r];if(e!==A)return e}}children(r){if(C(r)&&(r=A),this._isCompound){var e=this._children[r];if(e)return y(e)}else{if(r===A)return this.nodes();if(this.hasNode(r))return[]}}predecessors(r){var e=this._preds[r];if(e)return y(e)}successors(r){var e=this._sucs[r];if(e)return y(e)}neighbors(r){var e=this.predecessors(r);if(e)return kn(e,this.successors(r))}isLeaf(r){var e;return this.isDirected()?e=this.successors(r):e=this.neighbors(r),e.length===0}filterNodes(r){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;O(this._nodes,function(u,o){r(o)&&e.setNode(o,u)}),O(this._edgeObjs,function(u){e.hasNode(u.v)&&e.hasNode(u.w)&&e.setEdge(u,n.edge(u))});var i={};function s(u){var o=n.parent(u);return o===void 0||e.hasNode(o)?(i[u]=o,o):o in i?i[o]:s(o)}return this._isCompound&&O(e.nodes(),function(u){e.setParent(u,s(u))}),e}setDefaultEdgeLabel(r){return rt(r)||(r=F(r)),this._defaultEdgeLabelFn=r,this}edgeCount(){return this._edgeCount}edges(){return R(this._edgeObjs)}setPath(r,e){var n=this,i=arguments;return In(r,function(s,u){return i.length>1?n.setEdge(s,u,e):n.setEdge(s,u),u}),this}setEdge(){var r,e,n,i,s=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(r=u.v,e=u.w,n=u.name,arguments.length===2&&(i=arguments[1],s=!0)):(r=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),r=""+r,e=""+e,C(n)||(n=""+n);var o=E(this._isDirected,r,e,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return s&&(this._edgeLabels[o]=i),this;if(!C(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(e),this._edgeLabels[o]=s?i:this._defaultEdgeLabelFn(r,e,n);var a=Gn(this._isDirected,r,e,n);return r=a.v,e=a.w,Object.freeze(a),this._edgeObjs[o]=a,pt(this._preds[e],r),pt(this._sucs[r],e),this._in[e][o]=a,this._out[r][o]=a,this._edgeCount++,this}edge(r,e,n){var i=arguments.length===1?K(this._isDirected,arguments[0]):E(this._isDirected,r,e,n);return this._edgeLabels[i]}hasEdge(r,e,n){var i=arguments.length===1?K(this._isDirected,arguments[0]):E(this._isDirected,r,e,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(r,e,n){var i=arguments.length===1?K(this._isDirected,arguments[0]):E(this._isDirected,r,e,n),s=this._edgeObjs[i];return s&&(r=s.v,e=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],_t(this._preds[e],r),_t(this._sucs[r],e),delete this._in[e][i],delete this._out[r][i],this._edgeCount--),this}inEdges(r,e){var n=this._in[r];if(n){var i=R(n);return e?x(i,function(s){return s.v===e}):i}}outEdges(r,e){var n=this._out[r];if(n){var i=R(n);return e?x(i,function(s){return s.w===e}):i}}nodeEdges(r,e){var n=this.inEdges(r,e);if(n)return n.concat(this.outEdges(r,e))}}Rt.prototype._nodeCount=0;Rt.prototype._edgeCount=0;function pt(t,r){t[r]?t[r]++:t[r]=1}function _t(t,r){--t[r]||delete t[r]}function E(t,r,e,n){var i=""+r,s=""+e;if(!t&&i>s){var u=i;i=s,s=u}return i+gt+s+gt+(C(n)?$n:n)}function Gn(t,r,e,n){var i=""+r,s=""+e;if(!t&&i>s){var u=i;i=s,s=u}var o={v:i,w:s};return n&&(o.name=n),o}function K(t,r){return E(t,r.v,r.w,r.name)}export{Nn as $,Gt as B,Dt as C,mr as E,U as G,Pn as I,Rt as K,In as M,yn as O,C as P,x as R,mn as T,$ as U,H as X,Ct as a,Ar as b,R as c,Nt as d,y as e,cr as f,Z as k,O as m};
|
|
1
|
+
import{aF as x,l as rt,aq as Vt,b2 as qt,b3 as Kt,au as jt,ay as yt,b4 as Qt,b5 as N,b6 as q,b7 as Tt,b8 as Wt,b9 as L,aB as mt,at as _,aA as wt,ba as B,bb as Xt,bc as Ot,bd as z,be as D,bf as k,bg as Ht,bh as m,bi as Jt,bj as Zt,aD as Yt,bk as At,bl as tr,ax as rr,bm as et,bn as er,aE as nr,bo as ir,bp as nt,aG as sr,aw as Q,bq as ur}from"./index-3H3i7ExC.js";var or="[object Symbol]";function T(t){return typeof t=="symbol"||D(t)&&Jt(t)==or}function Ct(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}var it=m?m.prototype:void 0,st=it?it.toString:void 0;function Et(t){if(typeof t=="string")return t;if(_(t))return Ct(t,Et)+"";if(T(t))return st?st.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function ar(){}function Lt(t,r){for(var e=-1,n=t==null?0:t.length;++e<n&&r(t[e],e,t)!==!1;);return t}function cr(t,r,e,n){for(var i=t.length,s=e+-1;++s<i;)if(r(t[s],s,t))return s;return-1}function fr(t){return t!==t}function lr(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}function hr(t,r,e){return r===r?lr(t,r,e):cr(t,fr,e)}function dr(t,r){var e=t==null?0:t.length;return!!e&&hr(t,r,0)>-1}function y(t){return jt(t)?qt(t):Kt(t)}var vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/;function W(t,r){if(_(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||T(t)?!0:br.test(t)||!vr.test(t)||r!=null&&t in Object(r)}var gr=500;function pr(t){var r=er(t,function(n){return e.size===gr&&e.clear(),n}),e=r.cache;return r}var _r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/\\(\\)?/g,yr=pr(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(_r,function(e,n,i,s){r.push(i?s.replace(jr,"$1"):n||e)}),r});function mr(t){return t==null?"":Et(t)}function Nt(t,r){return _(t)?t:W(t,r)?[t]:yr(mr(t))}function U(t){if(typeof t=="string"||T(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function Dt(t,r){r=Nt(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[U(r[e++])];return e&&e==n?t:void 0}function wr(t,r,e){var n=t==null?void 0:Dt(t,r);return n===void 0?e:n}function X(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}var ut=m?m.isConcatSpreadable:void 0;function Or(t){return _(t)||At(t)||!!(ut&&t&&t[ut])}function Ar(t,r,e,n,i){var s=-1,u=t.length;for(e||(e=Or),i||(i=[]);++s<u;){var o=t[s];e(o)?X(i,o):n||(i[i.length]=o)}return i}function Cr(t,r,e,n){var i=-1,s=t==null?0:t.length;for(n&&s&&(e=t[++i]);++i<s;)e=r(e,t[i],i,t);return e}function Er(t,r){return t&&B(r,y(r),t)}function Lr(t,r){return t&&B(r,Q(r),t)}function Pt(t,r){for(var e=-1,n=t==null?0:t.length,i=0,s=[];++e<n;){var u=t[e];r(u,e,t)&&(s[i++]=u)}return s}function St(){return[]}var Nr=Object.prototype,Dr=Nr.propertyIsEnumerable,ot=Object.getOwnPropertySymbols,H=ot?function(t){return t==null?[]:(t=Object(t),Pt(ot(t),function(r){return Dr.call(t,r)}))}:St;function Pr(t,r){return B(t,H(t),r)}var Sr=Object.getOwnPropertySymbols,Mt=Sr?function(t){for(var r=[];t;)X(r,H(t)),t=ur(t);return r}:St;function Mr(t,r){return B(t,Mt(t),r)}function xt(t,r,e){var n=r(t);return _(t)?n:X(n,e(t))}function K(t){return xt(t,y,H)}function xr(t){return xt(t,Q,Mt)}var Fr=Object.prototype,Ir=Fr.hasOwnProperty;function zr(t){var r=t.length,e=new t.constructor(r);return r&&typeof t[0]=="string"&&Ir.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function Br(t,r){var e=r?Ot(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}var Ur=/\w*$/;function kr(t){var r=new t.constructor(t.source,Ur.exec(t));return r.lastIndex=t.lastIndex,r}var at=m?m.prototype:void 0,ct=at?at.valueOf:void 0;function Gr(t){return ct?Object(ct.call(t)):{}}var $r="[object Boolean]",Rr="[object Date]",Vr="[object Map]",qr="[object Number]",Kr="[object RegExp]",Qr="[object Set]",Tr="[object String]",Wr="[object Symbol]",Xr="[object ArrayBuffer]",Hr="[object DataView]",Jr="[object Float32Array]",Zr="[object Float64Array]",Yr="[object Int8Array]",te="[object Int16Array]",re="[object Int32Array]",ee="[object Uint8Array]",ne="[object Uint8ClampedArray]",ie="[object Uint16Array]",se="[object Uint32Array]";function ue(t,r,e){var n=t.constructor;switch(r){case Xr:return Ot(t);case $r:case Rr:return new n(+t);case Hr:return Br(t,e);case Jr:case Zr:case Yr:case te:case re:case ee:case ne:case ie:case se:return Xt(t,e);case Vr:return new n;case qr:case Tr:return new n(t);case Kr:return kr(t);case Qr:return new n;case Wr:return Gr(t)}}var oe="[object Map]";function ae(t){return D(t)&&N(t)==oe}var ft=z&&z.isMap,ce=ft?mt(ft):ae,fe="[object Set]";function le(t){return D(t)&&N(t)==fe}var lt=z&&z.isSet,he=lt?mt(lt):le,de=1,ve=2,be=4,Ft="[object Arguments]",ge="[object Array]",pe="[object Boolean]",_e="[object Date]",je="[object Error]",It="[object Function]",ye="[object GeneratorFunction]",me="[object Map]",we="[object Number]",zt="[object Object]",Oe="[object RegExp]",Ae="[object Set]",Ce="[object String]",Ee="[object Symbol]",Le="[object WeakMap]",Ne="[object ArrayBuffer]",De="[object DataView]",Pe="[object Float32Array]",Se="[object Float64Array]",Me="[object Int8Array]",xe="[object Int16Array]",Fe="[object Int32Array]",Ie="[object Uint8Array]",ze="[object Uint8ClampedArray]",Be="[object Uint16Array]",Ue="[object Uint32Array]",f={};f[Ft]=f[ge]=f[Ne]=f[De]=f[pe]=f[_e]=f[Pe]=f[Se]=f[Me]=f[xe]=f[Fe]=f[me]=f[we]=f[zt]=f[Oe]=f[Ae]=f[Ce]=f[Ee]=f[Ie]=f[ze]=f[Be]=f[Ue]=!0;f[je]=f[It]=f[Le]=!1;function G(t,r,e,n,i,s){var u,o=r&de,a=r&ve,d=r&be;if(u!==void 0)return u;if(!yt(t))return t;var h=_(t);if(h){if(u=zr(t),!o)return Qt(t,u)}else{var c=N(t),l=c==It||c==ye;if(q(t))return Tt(t,o);if(c==zt||c==Ft||l&&!i){if(u=a||l?{}:Wt(t),!o)return a?Mr(t,Lr(u,t)):Pr(t,Er(u,t))}else{if(!f[c])return i?t:{};u=ue(t,c,o)}}s||(s=new L);var j=s.get(t);if(j)return j;s.set(t,u),he(t)?t.forEach(function(v){u.add(G(v,r,e,v,t,s))}):ce(t)&&t.forEach(function(v,b){u.set(b,G(v,r,e,b,t,s))});var g=d?a?xr:K:a?Q:y,p=h?void 0:g(t);return Lt(p||t,function(v,b){p&&(b=v,v=t[b]),nr(u,b,G(v,r,e,b,t,s))}),u}var ke="__lodash_hash_undefined__";function Ge(t){return this.__data__.set(t,ke),this}function $e(t){return this.__data__.has(t)}function P(t){var r=-1,e=t==null?0:t.length;for(this.__data__=new Ht;++r<e;)this.add(t[r])}P.prototype.add=P.prototype.push=Ge;P.prototype.has=$e;function Re(t,r){for(var e=-1,n=t==null?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function Bt(t,r){return t.has(r)}var Ve=1,qe=2;function Ut(t,r,e,n,i,s){var u=e&Ve,o=t.length,a=r.length;if(o!=a&&!(u&&a>o))return!1;var d=s.get(t),h=s.get(r);if(d&&h)return d==r&&h==t;var c=-1,l=!0,j=e&qe?new P:void 0;for(s.set(t,r),s.set(r,t);++c<o;){var g=t[c],p=r[c];if(n)var v=u?n(p,g,c,r,t,s):n(g,p,c,t,r,s);if(v!==void 0){if(v)continue;l=!1;break}if(j){if(!Re(r,function(b,w){if(!Bt(j,w)&&(g===b||i(g,b,e,n,s)))return j.push(w)})){l=!1;break}}else if(!(g===p||i(g,p,e,n,s))){l=!1;break}}return s.delete(t),s.delete(r),l}function Ke(t){var r=-1,e=Array(t.size);return t.forEach(function(n,i){e[++r]=[i,n]}),e}function J(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var Qe=1,Te=2,We="[object Boolean]",Xe="[object Date]",He="[object Error]",Je="[object Map]",Ze="[object Number]",Ye="[object RegExp]",tn="[object Set]",rn="[object String]",en="[object Symbol]",nn="[object ArrayBuffer]",sn="[object DataView]",ht=m?m.prototype:void 0,$=ht?ht.valueOf:void 0;function un(t,r,e,n,i,s,u){switch(e){case sn:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case nn:return!(t.byteLength!=r.byteLength||!s(new et(t),new et(r)));case We:case Xe:case Ze:return rr(+t,+r);case He:return t.name==r.name&&t.message==r.message;case Ye:case rn:return t==r+"";case Je:var o=Ke;case tn:var a=n&Qe;if(o||(o=J),t.size!=r.size&&!a)return!1;var d=u.get(t);if(d)return d==r;n|=Te,u.set(t,r);var h=Ut(o(t),o(r),n,i,s,u);return u.delete(t),h;case en:if($)return $.call(t)==$.call(r)}return!1}var on=1,an=Object.prototype,cn=an.hasOwnProperty;function fn(t,r,e,n,i,s){var u=e&on,o=K(t),a=o.length,d=K(r),h=d.length;if(a!=h&&!u)return!1;for(var c=a;c--;){var l=o[c];if(!(u?l in r:cn.call(r,l)))return!1}var j=s.get(t),g=s.get(r);if(j&&g)return j==r&&g==t;var p=!0;s.set(t,r),s.set(r,t);for(var v=u;++c<a;){l=o[c];var b=t[l],w=r[l];if(n)var tt=u?n(w,b,l,r,t,s):n(b,w,l,t,r,s);if(!(tt===void 0?b===w||i(b,w,e,n,s):tt)){p=!1;break}v||(v=l=="constructor")}if(p&&!v){var S=t.constructor,M=r.constructor;S!=M&&"constructor"in t&&"constructor"in r&&!(typeof S=="function"&&S instanceof S&&typeof M=="function"&&M instanceof M)&&(p=!1)}return s.delete(t),s.delete(r),p}var ln=1,dt="[object Arguments]",vt="[object Array]",F="[object Object]",hn=Object.prototype,bt=hn.hasOwnProperty;function dn(t,r,e,n,i,s){var u=_(t),o=_(r),a=u?vt:N(t),d=o?vt:N(r);a=a==dt?F:a,d=d==dt?F:d;var h=a==F,c=d==F,l=a==d;if(l&&q(t)){if(!q(r))return!1;u=!0,h=!1}if(l&&!h)return s||(s=new L),u||tr(t)?Ut(t,r,e,n,i,s):un(t,r,a,e,n,i,s);if(!(e&ln)){var j=h&&bt.call(t,"__wrapped__"),g=c&&bt.call(r,"__wrapped__");if(j||g){var p=j?t.value():t,v=g?r.value():r;return s||(s=new L),i(p,v,e,n,s)}}return l?(s||(s=new L),fn(t,r,e,n,i,s)):!1}function Z(t,r,e,n,i){return t===r?!0:t==null||r==null||!D(t)&&!D(r)?t!==t&&r!==r:dn(t,r,e,n,Z,i)}var vn=1,bn=2;function gn(t,r,e,n){var i=e.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var u=e[i];if(u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<s;){u=e[i];var o=u[0],a=t[o],d=u[1];if(u[2]){if(a===void 0&&!(o in t))return!1}else{var h=new L,c;if(!(c===void 0?Z(d,a,vn|bn,n,h):c))return!1}}return!0}function kt(t){return t===t&&!yt(t)}function pn(t){for(var r=y(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,kt(i)]}return r}function Gt(t,r){return function(e){return e==null?!1:e[t]===r&&(r!==void 0||t in Object(e))}}function _n(t){var r=pn(t);return r.length==1&&r[0][2]?Gt(r[0][0],r[0][1]):function(e){return e===t||gn(e,t,r)}}function jn(t,r){return t!=null&&r in Object(t)}function yn(t,r,e){r=Nt(r,t);for(var n=-1,i=r.length,s=!1;++n<i;){var u=U(r[n]);if(!(s=t!=null&&e(t,u)))break;t=t[u]}return s||++n!=i?s:(i=t==null?0:t.length,!!i&&Zt(i)&&Yt(u,i)&&(_(t)||At(t)))}function mn(t,r){return t!=null&&yn(t,r,jn)}var wn=1,On=2;function An(t,r){return W(t)&&kt(r)?Gt(U(t),r):function(e){var n=wr(e,t);return n===void 0&&n===r?mn(e,t):Z(r,n,wn|On)}}function Cn(t){return function(r){return r==null?void 0:r[t]}}function En(t){return function(r){return Dt(r,t)}}function Ln(t){return W(t)?Cn(U(t)):En(t)}function $t(t){return typeof t=="function"?t:t==null?wt:typeof t=="object"?_(t)?An(t[0],t[1]):_n(t):Ln(t)}function Nn(t,r){return t&&sr(t,r,y)}function Dn(t,r){return function(e,n){if(e==null)return e;if(!jt(e))return t(e,n);for(var i=e.length,s=-1,u=Object(e);++s<i&&n(u[s],s,u)!==!1;);return e}}var Y=Dn(Nn);function Pn(t){return typeof t=="function"?t:wt}function O(t,r){var e=_(t)?Lt:Y;return e(t,Pn(r))}function Sn(t,r){var e=[];return Y(t,function(n,i,s){r(n,i,s)&&e.push(n)}),e}function I(t,r){var e=_(t)?Pt:Sn;return e(t,$t(r))}function Mn(t,r){return Ct(r,function(e){return t[e]})}function R(t){return t==null?[]:Mn(t,y(t))}function C(t){return t===void 0}function xn(t,r,e,n,i){return i(t,function(s,u,o){e=n?(n=!1,s):r(e,s,u,o)}),e}function Fn(t,r,e){var n=_(t)?Cr:xn,i=arguments.length<3;return n(t,$t(r),e,i,Y)}var In=1/0,zn=k&&1/J(new k([,-0]))[1]==In?function(t){return new k(t)}:ar,Bn=200;function Un(t,r,e){var n=-1,i=dr,s=t.length,u=!0,o=[],a=o;if(s>=Bn){var d=zn(t);if(d)return J(d);u=!1,i=Bt,a=new P}else a=o;t:for(;++n<s;){var h=t[n],c=h;if(h=h!==0?h:0,u&&c===c){for(var l=a.length;l--;)if(a[l]===c)continue t;o.push(h)}else i(a,c,e)||(a!==o&&a.push(c),o.push(h))}return o}var kn=Vt(function(t){return Un(Ar(t,1,ir,!0))}),Gn="\0",A="\0",gt="";class Rt{constructor(r={}){this._isDirected=Object.prototype.hasOwnProperty.call(r,"directed")?r.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(r,"multigraph")?r.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(r,"compound")?r.compound:!1,this._label=void 0,this._defaultNodeLabelFn=x(void 0),this._defaultEdgeLabelFn=x(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[A]={}),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(r){return this._label=r,this}graph(){return this._label}setDefaultNodeLabel(r){return rt(r)||(r=x(r)),this._defaultNodeLabelFn=r,this}nodeCount(){return this._nodeCount}nodes(){return y(this._nodes)}sources(){var r=this;return I(this.nodes(),function(e){return nt(r._in[e])})}sinks(){var r=this;return I(this.nodes(),function(e){return nt(r._out[e])})}setNodes(r,e){var n=arguments,i=this;return O(r,function(s){n.length>1?i.setNode(s,e):i.setNode(s)}),this}setNode(r,e){return Object.prototype.hasOwnProperty.call(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=e),this):(this._nodes[r]=arguments.length>1?e:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]=A,this._children[r]={},this._children[A][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)}node(r){return this._nodes[r]}hasNode(r){return Object.prototype.hasOwnProperty.call(this._nodes,r)}removeNode(r){if(Object.prototype.hasOwnProperty.call(this._nodes,r)){var e=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],O(this.children(r),n=>{this.setParent(n)}),delete this._children[r]),O(y(this._in[r]),e),delete this._in[r],delete this._preds[r],O(y(this._out[r]),e),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this}setParent(r,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(C(e))e=A;else{e+="";for(var n=e;!C(n);n=this.parent(n))if(n===r)throw new Error("Setting "+e+" as parent of "+r+" would create a cycle");this.setNode(e)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=e,this._children[e][r]=!0,this}_removeFromParentsChildList(r){delete this._children[this._parent[r]][r]}parent(r){if(this._isCompound){var e=this._parent[r];if(e!==A)return e}}children(r){if(C(r)&&(r=A),this._isCompound){var e=this._children[r];if(e)return y(e)}else{if(r===A)return this.nodes();if(this.hasNode(r))return[]}}predecessors(r){var e=this._preds[r];if(e)return y(e)}successors(r){var e=this._sucs[r];if(e)return y(e)}neighbors(r){var e=this.predecessors(r);if(e)return kn(e,this.successors(r))}isLeaf(r){var e;return this.isDirected()?e=this.successors(r):e=this.neighbors(r),e.length===0}filterNodes(r){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;O(this._nodes,function(u,o){r(o)&&e.setNode(o,u)}),O(this._edgeObjs,function(u){e.hasNode(u.v)&&e.hasNode(u.w)&&e.setEdge(u,n.edge(u))});var i={};function s(u){var o=n.parent(u);return o===void 0||e.hasNode(o)?(i[u]=o,o):o in i?i[o]:s(o)}return this._isCompound&&O(e.nodes(),function(u){e.setParent(u,s(u))}),e}setDefaultEdgeLabel(r){return rt(r)||(r=x(r)),this._defaultEdgeLabelFn=r,this}edgeCount(){return this._edgeCount}edges(){return R(this._edgeObjs)}setPath(r,e){var n=this,i=arguments;return Fn(r,function(s,u){return i.length>1?n.setEdge(s,u,e):n.setEdge(s,u),u}),this}setEdge(){var r,e,n,i,s=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(r=u.v,e=u.w,n=u.name,arguments.length===2&&(i=arguments[1],s=!0)):(r=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),r=""+r,e=""+e,C(n)||(n=""+n);var o=E(this._isDirected,r,e,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return s&&(this._edgeLabels[o]=i),this;if(!C(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(e),this._edgeLabels[o]=s?i:this._defaultEdgeLabelFn(r,e,n);var a=$n(this._isDirected,r,e,n);return r=a.v,e=a.w,Object.freeze(a),this._edgeObjs[o]=a,pt(this._preds[e],r),pt(this._sucs[r],e),this._in[e][o]=a,this._out[r][o]=a,this._edgeCount++,this}edge(r,e,n){var i=arguments.length===1?V(this._isDirected,arguments[0]):E(this._isDirected,r,e,n);return this._edgeLabels[i]}hasEdge(r,e,n){var i=arguments.length===1?V(this._isDirected,arguments[0]):E(this._isDirected,r,e,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(r,e,n){var i=arguments.length===1?V(this._isDirected,arguments[0]):E(this._isDirected,r,e,n),s=this._edgeObjs[i];return s&&(r=s.v,e=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],_t(this._preds[e],r),_t(this._sucs[r],e),delete this._in[e][i],delete this._out[r][i],this._edgeCount--),this}inEdges(r,e){var n=this._in[r];if(n){var i=R(n);return e?I(i,function(s){return s.v===e}):i}}outEdges(r,e){var n=this._out[r];if(n){var i=R(n);return e?I(i,function(s){return s.w===e}):i}}nodeEdges(r,e){var n=this.inEdges(r,e);if(n)return n.concat(this.outEdges(r,e))}}Rt.prototype._nodeCount=0;Rt.prototype._edgeCount=0;function pt(t,r){t[r]?t[r]++:t[r]=1}function _t(t,r){--t[r]||delete t[r]}function E(t,r,e,n){var i=""+r,s=""+e;if(!t&&i>s){var u=i;i=s,s=u}return i+gt+s+gt+(C(n)?Gn:n)}function $n(t,r,e,n){var i=""+r,s=""+e;if(!t&&i>s){var u=i;i=s,s=u}var o={v:i,w:s};return n&&(o.name=n),o}function V(t,r){return E(t,r.v,r.w,r.name)}export{Nn as $,$t as B,Dt as C,mr as E,U as G,Pn as I,Rt as K,Fn as M,yn as O,C as P,I as R,mn as T,G as U,T as X,Ct as a,Ar as b,R as c,Nt as d,y as e,cr as f,Y as k,O as m};
|