@bkm016/basalt 0.1.8 → 0.1.10
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/{chunk-0039s4jt.js → chunk-02d3x4mj.js} +3 -3
- package/{chunk-ky55taar.js → chunk-0mjb3sm3.js} +327 -316
- package/{chunk-ckjw3b61.js → chunk-13gvs0ax.js} +2 -2
- package/{chunk-0d51ggzj.js → chunk-1n7dat03.js} +4 -4
- package/{chunk-ppxv5q7y.js → chunk-1zj3zvw5.js} +3 -3
- package/{chunk-2ek3wq4b.js → chunk-29qrxygd.js} +1 -1
- package/{chunk-7p6e2f5s.js → chunk-30rjf7my.js} +3 -3
- package/{chunk-v2srrqcv.js → chunk-38g3gctw.js} +2 -2
- package/chunk-3mqf9ped.js +479 -0
- package/{chunk-3j2kkgsc.js → chunk-4dw43syb.js} +1 -1
- package/{chunk-t66jqz12.js → chunk-4gtgqcct.js} +2 -2
- package/{chunk-qmdpgbg3.js → chunk-755sy11p.js} +1 -1
- package/{chunk-n015c8nx.js → chunk-7zkswxvk.js} +1 -1
- package/{chunk-91r5nvth.js → chunk-82v8jh1h.js} +2 -2
- package/{chunk-12trygzx.js → chunk-95964592.js} +16 -16
- package/{chunk-nmtk9xra.js → chunk-9as0p561.js} +2 -2
- package/{chunk-pn413hjw.js → chunk-a1352w87.js} +1 -1
- package/{chunk-rnt1ckk9.js → chunk-a1rb1a48.js} +5 -5
- package/{chunk-fzcmzbsq.js → chunk-a98wma9j.js} +1 -1
- package/{chunk-kgkrccr1.js → chunk-asyr3gnq.js} +2 -2
- package/{chunk-5gxj9560.js → chunk-ax04trym.js} +1 -1
- package/chunk-b2bxqeb4.js +2 -0
- package/{chunk-xjw78yey.js → chunk-bdjr0kfr.js} +4 -4
- package/{chunk-7kjr9gdx.js → chunk-bk4rpnm8.js} +2 -2
- package/{chunk-47vf66t6.js → chunk-c0zfefq8.js} +1 -1
- package/{chunk-kpvaqb7c.js → chunk-c6q04xrd.js} +2 -2
- package/chunk-c71173py.js +25 -0
- package/{chunk-adys4qq4.js → chunk-cmwdjes8.js} +5 -5
- package/{chunk-dcwdmpw2.js → chunk-d0a1jxk5.js} +1 -1
- package/{chunk-2nrkqq45.js → chunk-d5j74pcp.js} +7 -7
- package/{chunk-pkpj7s2k.js → chunk-dfh9m9n7.js} +1 -1
- package/{chunk-26cz8et8.js → chunk-dq01v5eq.js} +1 -1
- package/{chunk-fpxc6qjr.js → chunk-e1x629v0.js} +2 -2
- package/{chunk-86xhmz7k.js → chunk-en218k4y.js} +1 -1
- package/{chunk-3hg7yn1t.js → chunk-fgwda4m0.js} +1 -1
- package/chunk-gbjn6d81.js +2 -0
- package/{chunk-x496kg3v.js → chunk-gkf5jwvj.js} +1 -1
- package/{chunk-k3q5jqjj.js → chunk-hb4f2v34.js} +2 -2
- package/{chunk-mr807v9n.js → chunk-hbnmymaq.js} +1 -1
- package/{chunk-818nd6s1.js → chunk-jj4hqbrx.js} +2 -2
- package/{chunk-jyv9cae6.js → chunk-jn5pqy5v.js} +1 -1
- package/{chunk-yyy2yp6f.js → chunk-jtsve11b.js} +9 -9
- package/chunk-m1eam0s5.js +2 -0
- package/{chunk-6vnjg5x9.js → chunk-mbpb5c7w.js} +1 -1
- package/{chunk-t40fag3z.js → chunk-msm9hmk9.js} +1 -1
- package/{chunk-j781n7ca.js → chunk-n0ybj4h9.js} +2 -2
- package/{chunk-jp5afrwm.js → chunk-n2jcx65v.js} +2 -2
- package/{chunk-2ks2tnac.js → chunk-nrsd810j.js} +2 -2
- package/chunk-pnspvnyd.js +2 -0
- package/chunk-pz2afna8.js +2 -0
- package/{chunk-d37gemt2.js → chunk-q9f4xb0w.js} +3 -3
- package/{chunk-hd3x1w46.js → chunk-qaeyhe65.js} +1 -1
- package/chunk-qnkrrwmg.js +2 -0
- package/{chunk-e6c2mzxc.js → chunk-r4ttdkrz.js} +2 -2
- package/{chunk-r9aatvwm.js → chunk-stj493dn.js} +2 -2
- package/{chunk-g3ed130w.js → chunk-tevejprz.js} +4 -4
- package/{chunk-k3rmjrf1.js → chunk-v3ee9z3f.js} +1 -1
- package/{chunk-4n49ptbz.js → chunk-vtqr7dm8.js} +2 -2
- package/{chunk-z3ch1wg6.js → chunk-xh444pfn.js} +14 -14
- package/{chunk-pehyqj8k.js → chunk-zc9ar0r4.js} +1 -1
- package/{chunk-ef9yhnk3.js → chunk-zyyzk5ha.js} +1 -1
- package/compiled.js +9 -9
- package/package.json +1 -1
- package/ui-test-worker.js +8 -8
- package/web/chunk-045d3b5d.js +1 -0
- package/web/{chunk-r4ffr96e.js → chunk-0770q5e1.js} +1 -1
- package/web/chunk-12qf1r6m.js +1 -0
- package/web/{chunk-s7e93552.js → chunk-18neka5g.js} +4 -4
- package/web/{chunk-et8q775x.js → chunk-1ev0n3n4.js} +5 -5
- package/web/chunk-1ex3wgms.js +2 -0
- package/web/{chunk-svh2gkx8.js → chunk-1qh7f5kr.js} +1 -1
- package/web/{chunk-s38s9ff9.js → chunk-26ecc2xh.js} +30 -30
- package/web/chunk-2cz7tx8q.js +1 -0
- package/web/chunk-32ty2xfn.js +1 -0
- package/web/{chunk-q1xxs319.js → chunk-3eexx7y5.js} +4 -4
- package/web/{chunk-v14s4vgc.js → chunk-46jnkghq.js} +1 -1
- package/web/chunk-4am8j3k3.js +1 -0
- package/web/{chunk-85gdsmt4.js → chunk-5qvmefq2.js} +1 -1
- package/web/chunk-5svqfj4g.js +3 -0
- package/web/{chunk-f93pe4kb.js → chunk-5v5q13hz.js} +4 -4
- package/web/chunk-5z2n4z9x.css +1 -0
- package/web/{chunk-qcge7d6s.js → chunk-6e87m0nm.js} +2 -2
- package/web/chunk-6y55gk1n.js +1 -0
- package/web/chunk-7np1jp3x.js +8 -0
- package/web/chunk-87e8d1hv.js +1 -0
- package/web/{chunk-33w36n91.js → chunk-88wd49xe.js} +2 -2
- package/web/chunk-8h2x89tw.js +2 -0
- package/web/chunk-8y2526ve.js +1 -0
- package/web/chunk-905vw286.js +2 -0
- package/web/chunk-918e5t4x.js +2 -0
- package/web/chunk-96m2m3e8.js +1 -0
- package/web/chunk-9f4zzqbx.js +1 -0
- package/web/{chunk-fe31sv6t.js → chunk-9yfftz38.js} +1 -1
- package/web/{chunk-z0zrp8n8.js → chunk-a1n4468c.js} +1 -1
- package/web/chunk-arnzrqnm.js +1 -0
- package/web/{chunk-c01176kn.js → chunk-awkdw9rw.js} +2 -2
- package/web/{chunk-m5y2d4zv.js → chunk-b46ws7rf.js} +1 -1
- package/web/chunk-bc3ajvfg.js +24 -0
- package/web/chunk-bwy3e58v.js +1 -0
- package/web/{chunk-ja7w629n.js → chunk-c57f714b.js} +2 -2
- package/web/chunk-d5gshd1a.js +1 -0
- package/web/chunk-de40q05r.js +30 -0
- package/web/chunk-dp0k5vhd.js +1 -0
- package/web/{chunk-qq2v8h6d.js → chunk-dv1berk6.js} +5 -5
- package/web/{chunk-jzte2phh.js → chunk-eh7wp62z.js} +1 -1
- package/web/{chunk-823b7866.js → chunk-ehtmb6sn.js} +18 -18
- package/web/{chunk-d9wdsjkk.js → chunk-eqndhs21.js} +2 -2
- package/web/chunk-et1hytyv.js +1 -0
- package/web/chunk-f7jpakwh.js +1 -0
- package/web/chunk-f9m9seam.js +1 -0
- package/web/{chunk-7a4xk6j9.js → chunk-fmmrthpa.js} +5 -5
- package/web/{chunk-fv6vm14n.js → chunk-frnh4zqf.js} +2 -2
- package/web/chunk-g2erm7k0.js +1 -0
- package/web/chunk-g3kbn0t2.js +1 -0
- package/web/{chunk-h5cfg3vv.js → chunk-g7dc4hrd.js} +2 -2
- package/web/{chunk-dgwkqcz6.js → chunk-g7kz8f7q.js} +2 -2
- package/web/chunk-ght0t49g.js +1 -0
- package/web/{chunk-jjjtv2r1.js → chunk-ghwm7bdj.js} +2 -2
- package/web/{chunk-sda7cyrt.js → chunk-grm2208k.js} +21 -21
- package/web/{chunk-0zwc2rvh.js → chunk-gsw1tv96.js} +1 -1
- package/web/chunk-gw8x1g61.js +24 -0
- package/web/chunk-gx340asc.js +1 -0
- package/web/chunk-h2txs73e.js +39 -0
- package/web/chunk-h3tkacc7.js +1 -0
- package/web/{chunk-cyjnert7.js → chunk-h5ckjk48.js} +16 -16
- package/web/{chunk-1s8zg6fb.js → chunk-j37p0b13.js} +5 -5
- package/web/chunk-j89s11x8.js +78 -0
- package/web/{chunk-jam45rqg.js → chunk-jccz14ye.js} +2 -2
- package/web/chunk-je78j3vr.js +1 -0
- package/web/chunk-jke2ev6m.js +2 -0
- package/web/{chunk-1gx0zpmp.js → chunk-js6kb05s.js} +9 -9
- package/web/{chunk-30b33r2w.js → chunk-k0cg4n2k.js} +2 -2
- package/web/{chunk-tkp72r9b.js → chunk-knm82fw9.js} +1 -1
- package/web/{chunk-xb9m0092.js → chunk-kxdtg9dt.js} +1 -1
- package/web/{chunk-w37n09px.js → chunk-m4fxd5d9.js} +10 -10
- package/web/chunk-m9xzt9p7.js +1 -0
- package/web/{chunk-8773nwdc.js → chunk-myd6sc76.js} +1 -1
- package/web/{chunk-sf101c23.js → chunk-mykrm8ba.js} +2 -2
- package/web/chunk-mzzaet63.js +1 -0
- package/web/{chunk-2axwda8c.js → chunk-n4yzs2q0.js} +7 -7
- package/web/{chunk-wj3ymejj.js → chunk-nawxgz87.js} +4 -4
- package/web/chunk-ngt1j8py.js +1139 -0
- package/web/{chunk-hstbgb83.js → chunk-p55vhns6.js} +5 -5
- package/web/{chunk-xabcx3ry.js → chunk-pgwf37s2.js} +3 -3
- package/web/chunk-q34as3v6.js +1 -0
- package/web/{chunk-dtg5yhhs.js → chunk-q4bst4an.js} +1 -1
- package/web/chunk-qdzy124b.js +4 -0
- package/web/chunk-qe0bgeda.js +1 -0
- package/web/{chunk-sd3cdqcm.js → chunk-qh62nkem.js} +2 -2
- package/web/{chunk-j1bw5v1g.js → chunk-qq6m2my8.js} +2 -2
- package/web/{chunk-8dp7h6w8.js → chunk-qy1zx2yw.js} +16 -16
- package/web/chunk-rag65pfs.js +4 -0
- package/web/chunk-rbqnre6q.js +36 -0
- package/web/{chunk-hbkasy6c.js → chunk-rh3xb76f.js} +22 -22
- package/web/{chunk-fx4mackk.js → chunk-rwfmccmh.js} +4 -4
- package/web/{chunk-mf6xng5b.js → chunk-rxvm70w5.js} +2 -2
- package/web/chunk-sat7zyva.js +1 -0
- package/web/{chunk-cn0tmwjs.js → chunk-sc63488q.js} +2 -2
- package/web/{chunk-xsz1dfm2.js → chunk-sd3xat3r.js} +20 -20
- package/web/{chunk-nky3bqfg.js → chunk-se4h6wx0.js} +1 -1
- package/web/chunk-sjkg40ay.js +7 -0
- package/web/chunk-sk0hpa80.js +1 -0
- package/web/{chunk-xqyazzm7.js → chunk-t5nvgz7z.js} +5 -5
- package/web/{chunk-3q0v8w45.js → chunk-tfqarvdx.js} +80 -80
- package/web/{chunk-d0m0h0eb.js → chunk-tqze6d6b.js} +1 -1
- package/web/{chunk-rbdvc8x7.js → chunk-tt93zbn4.js} +7 -7
- package/web/chunk-tvcxrx6h.js +1 -0
- package/web/chunk-tzpnh70q.js +1 -0
- package/web/{chunk-8wg44w91.js → chunk-vasppf6b.js} +2 -2
- package/web/chunk-vb7g4xg6.js +1 -0
- package/web/chunk-w3zgfhjb.js +2 -0
- package/web/{chunk-0j9a7811.js → chunk-wrevb4ew.js} +6 -6
- package/web/chunk-wtvch4ad.js +106 -0
- package/web/chunk-wzfe6jtq.js +1 -0
- package/web/{chunk-cez1k71m.js → chunk-x5g1yy12.js} +1 -1
- package/web/chunk-x850q01z.js +1 -0
- package/web/chunk-xh4xn1az.js +1 -0
- package/web/chunk-xk904wqv.js +1 -0
- package/web/chunk-xtn305fd.js +1 -0
- package/web/chunk-xzwxcxb4.js +1 -0
- package/web/{chunk-4anjs6yp.js → chunk-y2rzeb4v.js} +2 -2
- package/web/chunk-yekaz74b.js +1 -0
- package/web/{chunk-8nv7q5ac.js → chunk-yppgejg7.js} +15 -15
- package/web/chunk-ys2tns0p.js +1 -0
- package/web/chunk-z4bp6p32.js +62 -0
- package/web/{chunk-p0cjvjdx.js → chunk-z5qn0xev.js} +1 -1
- package/web/{chunk-rkjkynm3.js → chunk-zms6mrqk.js} +12 -12
- package/web/{chunk-6e38yf3a.js → chunk-zse05v6j.js} +4 -4
- package/web/{chunk-cn1xpg3q.js → chunk-zz1qkaar.js} +2 -2
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-2gcp3xdc.js +0 -2
- package/chunk-320174qe.js +0 -2
- package/chunk-dvb5nd2x.js +0 -2
- package/chunk-frt9k18g.js +0 -480
- package/chunk-ndt6rjt9.js +0 -2
- package/chunk-xy2bxwq8.js +0 -2
- package/chunk-yzevjkms.js +0 -25
- package/chunk-zdyd8hbn.js +0 -2
- package/web/chunk-0jfda4jw.js +0 -2
- package/web/chunk-2p3fkhy8.js +0 -1
- package/web/chunk-3sz5qcwj.js +0 -1
- package/web/chunk-433c80pc.js +0 -1
- package/web/chunk-48cnmhvd.js +0 -106
- package/web/chunk-5r37rwq1.js +0 -4
- package/web/chunk-6bwgdvf6.js +0 -1
- package/web/chunk-7f1t7z72.js +0 -2
- package/web/chunk-7x35g67d.js +0 -78
- package/web/chunk-8pzg8qw4.js +0 -1
- package/web/chunk-8r0s8tx7.js +0 -1
- package/web/chunk-9p5dfvav.js +0 -1
- package/web/chunk-9q9w9pay.js +0 -1
- package/web/chunk-a3teqvz2.js +0 -39
- package/web/chunk-ahztazsg.js +0 -1
- package/web/chunk-bd8ftfxn.js +0 -3
- package/web/chunk-c03bt2pz.js +0 -1
- package/web/chunk-c1ha2xg6.js +0 -8
- package/web/chunk-cgng31df.js +0 -1
- package/web/chunk-cvd4f51j.js +0 -1
- package/web/chunk-cybvxssy.js +0 -1
- package/web/chunk-d22wq71s.js +0 -1
- package/web/chunk-dynajx8x.js +0 -2
- package/web/chunk-f3vv7n52.js +0 -1
- package/web/chunk-fmthkpff.js +0 -1
- package/web/chunk-fpa81dv7.js +0 -62
- package/web/chunk-g17n6asp.js +0 -1
- package/web/chunk-g9dzaw9e.js +0 -30
- package/web/chunk-gcwhx3av.js +0 -1139
- package/web/chunk-gf8vm6b5.js +0 -1
- package/web/chunk-gnmeyy4h.js +0 -1
- package/web/chunk-hn7mhsbg.js +0 -1
- package/web/chunk-jfvxxp5c.js +0 -1
- package/web/chunk-k8h8zx6r.js +0 -24
- package/web/chunk-m3ajw575.js +0 -1
- package/web/chunk-mbwwj216.js +0 -1
- package/web/chunk-mz9b5bsa.js +0 -1
- package/web/chunk-np33kmn4.js +0 -1
- package/web/chunk-nvk8mazs.js +0 -1
- package/web/chunk-nyw5ewgv.js +0 -1
- package/web/chunk-p56dcqpr.js +0 -1
- package/web/chunk-pdn4r8x4.js +0 -1
- package/web/chunk-qpt34d8d.js +0 -1
- package/web/chunk-qskt3tqa.js +0 -1
- package/web/chunk-qt3n897m.js +0 -4
- package/web/chunk-r1rt48h9.js +0 -1
- package/web/chunk-r7tgd2fm.js +0 -7
- package/web/chunk-rznszqmy.js +0 -1
- package/web/chunk-s1pefd34.js +0 -1
- package/web/chunk-sc29azev.js +0 -1
- package/web/chunk-t4jc4nac.js +0 -1
- package/web/chunk-t7g366a5.js +0 -24
- package/web/chunk-thbqwq6b.js +0 -1
- package/web/chunk-v94v68xg.js +0 -36
- package/web/chunk-wcphswcx.js +0 -2
- package/web/chunk-wwcnvyjh.css +0 -1
- package/web/chunk-xce8n339.js +0 -1
- package/web/chunk-xfd3b01q.js +0 -1
- package/web/chunk-xtss82z2.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,Ca,a,v,B,C,S,E,T,A,L,R,l,p,An,Cr,Rn,Oi,qe,co,cn,Gn,M}from"./chunk-3q0v8w45.js";import"./chunk-fe31sv6t.js";import{$n,gn}from"./chunk-4anjs6yp.js";import{sr,$r,ra,Br,kt}from"./chunk-cn1xpg3q.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-gcwhx3av.js";var vn=Te(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,z,W,G,O=s(this),V=(_=this.isoWeekYear(),z=this.$u,W=(z?i.utc:i)().year(_).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,e));return O.diff(V,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var z=this.$utils(),W=!!z.u(_)||_;return z.p(D)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(U){return(U=+U)+(U>68?1900:2000)},_=function(U){return function(Z){this[U]=+Z}},z=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(U){this.year=D(U)}],YYYY:[/\d{4}/,_("year")],Z:z,ZZ:z};function V(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var I=b&&b.toUpperCase();return nt||H[b]||e[b]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,P,d){return P||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=O[j],f=Y&&Y[0],N=Y&&Y[1];tt[at]=N?{regex:f,parser:N}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,I=0;b<ft;b+=1){var F=tt[b];if(typeof F=="string")I+=F.length;else{var{regex:P,parser:d}=F,w=rt.slice(I),x=P.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(D=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var N=f[1];if(typeof N=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,x,k,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var c=V(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,N,Y,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),b&&j!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var F=N.length,P=1;P<=F;P+=1){f[1]=N[P-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}P===F&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(e,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(z){switch(z){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),z==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),z==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),z==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return z}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,Y,f){return new ft(j,f,Y.$l)},V=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,Y){return j?U(j)?{negative:!0,format:""+H(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,N,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return O(f*W[V(N)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(F){nt.$d[V(F)]=f[F]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(_);if(b){var I=b.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(N,rt){return N+(f.$d[rt]||0)*W[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),N=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),b=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1000,F=Math.round(1000*F)/1000);var P=tt(F,"S"),d=f.negative||N.negative||nt.negative||b.negative||I.negative||P.negative,w=b.format||I.format||P.format?"T":"",x=(d?"-":"")+"P"+f.format+N.format+nt.format+w+b.format+I.format+P.format;return x==="P"||x==="-P"?"P0D":x},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var N=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return N.replace(z,function(nt,b){return b||String(rt[nt])})},Y.as=function(f){return this.$ms/W[V(f)]},Y.get=function(f){var N=this.$ms,rt=V(f);return rt==="milliseconds"?N%=1000:N=rt==="weeks"?Z(N/W[rt]):this.$d[rt],N||0},Y.add=function(f,N,rt){var nt;return nt=N?f*W[V(N)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,N){return this.add(f,N,!0)},Y.locale=function(f){var N=this.clone();return N.$l=f,N},Y.clone=function(){return O(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,b){var I=f.locale();return O(nt,{$l:I},b)},f.isDuration=G;var N=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):N.bind(this)(nt,b)},Y.prototype.subtract=function(nt,b){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,b)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function Zn(e){return"translate(0,"+e+")"}function jn(e){return(r)=>+e(r)}function Xn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,z=e===ye||e===he?-1:1,W=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:Zn;function O(V){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Xn:jn)(r.copy(),_),Y=V.selection?V.selection():V,f=Y.selectAll(".domain").data([null]),N=Y.selectAll(".tick").data(U,r).order(),rt=N.exit(),nt=N.enter().append("g").attr("class","tick"),b=N.select("line"),I=N.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",z*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,z*H).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),V!==Y)f=f.transition(V),N=N.transition(V),b=b.transition(V),I=I.transition(V),rt=rt.transition(V).attr("opacity",_r).attr("transform",function(F){return isFinite(F=j(F))?G(F+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(F){var P=this.parentNode.__axis;return G((P&&isFinite(P=P(F))?P:j(F))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+z*u+","+ft+"H"+_+"V"+at+"H"+z*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+z*u+"V"+_+"H"+at+"V"+z*u:"M"+ft+","+_+"H"+at),N.attr("opacity",1).attr("transform",function(F){return G(j(F)+_)}),b.attr(W+"2",z*o),I.attr(W,z*H).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return O.scale=function(V){return arguments.length?(r=V,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(V){return arguments.length?(n=V==null?[]:Array.from(V),O):n.slice()},O.tickValues=function(V){return arguments.length?(i=V==null?null:Array.from(V),O):i&&i.slice()},O.tickFormat=function(V){return arguments.length?(s=V,O):s},O.tickSize=function(V){return arguments.length?(o=u=+V,O):o},O.tickSizeInner=function(V){return arguments.length?(o=+V,O):o},O.tickSizeOuter=function(V){return arguments.length?(u=+V,O):u},O.tickPadding=function(V){return arguments.length?(D=+V,O):D},O.offset=function(V){return arguments.length?(_=+V,O):_},O}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Or(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof qe))e=Oi(e);var r=ze(e.r),n=ze(e.g),i=ze(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?Or(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}An(Ft,Hr,Cr(Rn,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Ur*Pe(r),e=Lr*Pe(e),n=Wr*Pe(n),new qe(Ve(3.1338561*r-1.6168667*e-0.4906146*n),Ve(-0.9787684*r+1.9161415*e+0.033454*n),Ve(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Ar+Er}function Pe(e){return e>Qt?e*e*e:Ar*(e-Er)}function Ve(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function ze(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=Or(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Fr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}An(At,ke,Cr(Rn,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var Vr=Pr(co),Ls=Pr(cn);function Re(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Be=new Date,Ze=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let z;do _.push(z=new Date(+o)),r(o,D),e(o);while(z<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),e(Be),e(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var zr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Rr=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,ve=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=ve.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,xe=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=xe.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,be=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=be.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[e,1,pe]];function D(z,W,G){let O=W<z;if(O)[z,W]=[W,z];let V=G&&typeof G.range==="function"?G:_(z,W,G),U=V?V.range(z,+W+1):[];return O?U.reverse():U}function _(z,W,G){let O=Math.abs(W-z)/G,V=sr(([,,H])=>H).right(u,O);if(V===u.length)return e.every($r(z/pe,W/pe,G));if(V===0)return It.every(Math.max($r(z,W,G),1));let[U,Z]=u[O/u[V-1][2]<u[V][2]/O?V-1:V];return U.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,z=ue(s),W=le(s),G=ue(o),O=le(o),V=ue(u),U=le(u),Z=ue(D),H=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:ia,G:sa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:na,Y:aa,Z:oa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:ca,I:ua,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:b,A:I,b:F,B:P,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ei,L:Hi,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function N(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=z.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function b(g,X,et){var y=V.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function F(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function P(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function x(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=N(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=N(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Wi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ni(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function zi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function Ri(e,r){return ct(e.getHours(),r,2)}function Bi(e,r){return ct(e.getHours()%12||12,r,2)}function Zi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function na(e,r){return ct(e.getFullYear()%100,r,2)}function ia(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function aa(e,r){return ct(e.getFullYear()%1e4,r,4)}function sa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function oa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function ca(e,r){return ct(e.getUTCHours(),r,2)}function ua(e,r){return ct(e.getUTCHours()%12||12,r,2)}function la(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function fa(e,r){return mn(e,r)+"000"}function da(e,r){return ct(e.getUTCMonth()+1,r,2)}function ma(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function hn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=hn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=hn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(e){return+e}function ln(e){return Math.floor(+e/1000)}var Kt,Xt,yn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(e){return Kt=Ke(e),Xt=Kt.format,yn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Sa(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,z){var W=Br(),{invert:G,domain:O}=W,V=z(".%L"),U=z(":%S"),Z=z("%I:%M"),H=z("%I %p"),tt=z("%a %d"),ft=z("%b %d"),at=z("%B"),j=z("%Y");function Y(f){return(_(f)<f?V:D(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Sa)):O().map(Da)},W.ticks=function(f){var N=O();return e(N[0],N[N.length-1],f==null?10:f)},W.tickFormat=function(f,N){return N==null?Y:z(N)},W.nice=function(f){var N=O();if(!f||typeof f.range!=="function")f=r(N[0],N[N.length-1],f==null?10:f);return f?O(Re(N,f)):W},W.copy=function(){return ra(W,Tn(e,r,n,i,s,o,u,D,_,z))},W}function er(){return Ot.apply(Tn(Xe,Ge,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Gn(),1),Mt=Se(Ca(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ca(),1),zn=Se(wn(),1);var dr=function(){var e=t(function(P,d,w,x){for(w=w||{},x=P.length;x--;w[P[x]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],z=[1,33],W=[1,34],G=[1,9],O=[1,10],V=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],N=[1,23],rt=[1,25],nt=[1,35],b={trace:t(function(){},"trace"),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,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$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",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"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],[19,1],[19,1],[9,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],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,x,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var x=Error(d);throw x.hash=w,x}},"parseError"),parse:t(function(d){var w=this,x=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=x[x.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
1
|
+
import{t,Ia,a,b,F,C,S,E,T,A,L,R,l,p,En,Cr,An,qi,qe,yo,ln,Gn,M}from"./chunk-tfqarvdx.js";import"./chunk-9yfftz38.js";import{$n,hn}from"./chunk-y2rzeb4v.js";import{sr,zr,ua,Ur,kt}from"./chunk-zz1qkaar.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-ngt1j8py.js";var vn=Te(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,B,O,G,H=s(this),z=(_=this.isoWeekYear(),B=this.$u,O=(B?i.utc:i)().year(_).startOf("year"),G=4-O.isoWeekday(),O.isoWeekday()>4&&(G+=7),O.add(G,e));return H.diff(z,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var B=this.$utils(),O=!!B.u(_)||_;return B.p(D)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(W){return(W=+W)+(W>68?1900:2000)},_=function(W){return function(Z){this[W]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(W)}],O=function(W){var Z=u[W];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(W,Z){var N,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(W.indexOf(tt(ft,0,Z))>-1){N=ft>12;break}}else N=W===(Z?"pm":"PM");return N},H={A:[o,function(W){this.afternoon=G(W,!1)}],a:[o,function(W){this.afternoon=G(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(W){var Z=u.ordinal,N=W.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===W&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(W){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[o,function(W){var Z=O("months").indexOf(W)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(W){this.year=D(W)}],YYYY:[/\d{4}/,_("year")],Z:B,ZZ:B};function z(W){var Z,N;Z=W,N=u&&u.formats;for(var tt=(W=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var U=x&&x.toUpperCase();return nt||N[x]||e[x]||N[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=H[j],f=Y&&Y[0],P=Y&&Y[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,U=0;x<ft;x+=1){var I=tt[x];if(typeof I=="string")U+=I.length;else{var{regex:V,parser:d}=I,w=rt.slice(U),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(W,Z,N){N.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(D=W.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,U=f[2];nt&&(U=f[2]),u=this.$locale(),!rt&&U&&(u=N.Ls[U]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,P,Y,N),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var I=P.length,V=1;V<=I;V+=1){f[1]=P[V-1];var d=N.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===I&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(e,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},H=function(j,Y,f){return new ft(j,f,Y.$l)},z=function(j){return r.p(j)+"s"},W=function(j){return j<0},Z=function(j){return W(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,Y){return j?W(j)?{negative:!0,format:""+N(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return H(f*O[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(I){nt.$d[z(I)]=f[I]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(_);if(x){var U=x.slice(2).map(function(I){return I!=null?Number(I):0});return this.$d.years=U[0],this.$d.months=U[1],this.$d.weeks=U[2],this.$d.days=U[3],this.$d.hours=U[4],this.$d.minutes=U[5],this.$d.seconds=U[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*O[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),U=tt(this.$d.minutes,"M"),I=this.$d.seconds||0;this.$d.milliseconds&&(I+=this.$d.milliseconds/1000,I=Math.round(1000*I)/1000);var V=tt(I,"S"),d=f.negative||P.negative||nt.negative||x.negative||U.negative||V.negative,w=x.format||U.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+U.format+V.format;return v==="P"||v==="-P"?"P0D":v},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return P.replace(B,function(nt,x){return x||String(rt[nt])})},Y.as=function(f){return this.$ms/O[z(f)]},Y.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},Y.add=function(f,P,rt){var nt;return nt=P?f*O[z(P)]:G(f)?f.$ms:H(f,this).$ms,H(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,P){return this.add(f,P,!0)},Y.locale=function(f){var P=this.clone();return P.$l=f,P},Y.clone=function(){return H(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,x){var U=f.locale();return H(nt,{$l:U},x)},f.isDuration=G;var P=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},Y.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function Zn(e){return"translate(0,"+e+")"}function jn(e){return(r)=>+e(r)}function Xn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,O=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:Zn;function H(z){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,N=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Xn:jn)(r.copy(),_),Y=z.selection?z.selection():z,f=Y.selectAll(".domain").data([null]),P=Y.selectAll(".tick").data(W,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),U=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",B*o)),U=U.merge(nt.append("text").attr("fill","currentColor").attr(O,B*N).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==Y)f=f.transition(z),P=P.transition(z),x=x.transition(z),U=U.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(I){return isFinite(I=j(I))?G(I+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(I){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(I))?V:j(I))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+_+"V"+at+"H"+B*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+_+"H"+at+"V"+B*u:"M"+ft+","+_+"H"+at),P.attr("opacity",1).attr("transform",function(I){return G(j(I)+_)}),x.attr(O+"2",B*o),U.attr(O,B*N).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return H.scale=function(z){return arguments.length?(r=z,H):r},H.ticks=function(){return n=Array.from(arguments),H},H.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),H):n.slice()},H.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),H):i&&i.slice()},H.tickFormat=function(z){return arguments.length?(s=z,H):s},H.tickSize=function(z){return arguments.length?(o=u=+z,H):o},H.tickSizeInner=function(z){return arguments.length?(o=+z,H):o},H.tickSizeOuter=function(z){return arguments.length?(u=+z,H):u},H.tickPadding=function(z){return arguments.length?(D=+z,H):D},H.offset=function(z){return arguments.length?(_=+z,H):_},H}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Lr=0.96422,Wr=1,Er=0.82521,Ar=0.13793103448275862,Qt=0.20689655172413793,Or=3*Qt*Qt,Qn=Qt*Qt*Qt;function $r(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof qe))e=qi(e);var r=ze(e.r),n=ze(e.g),i=ze(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Wr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Lr),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Er);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?$r(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}En(Ft,Hr,Cr(An,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Lr*Pe(r),e=Wr*Pe(e),n=Er*Pe(n),new qe(Ve(3.1338561*r-1.6168667*e-0.4906146*n),Ve(-0.9787684*r+1.9161415*e+0.033454*n),Ve(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Or+Ar}function Pe(e){return e>Qt?e*e*e:Or*(e-Ar)}function Ve(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function ze(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=$r(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Fr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}En(At,ke,Cr(An,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=ln(r.c,n.c),o=ln(r.l,n.l),u=ln(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var Vr=Pr(yo),Ls=Pr(ln);function Re(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Be=new Date,Ze=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let B;do _.push(B=new Date(+o)),r(o,D),e(o);while(B<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),e(Be),e(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Rr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Br=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,ve=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=ve.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,xe=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=xe.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,be=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=be.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[e,1,pe]];function D(B,O,G){let H=O<B;if(H)[B,O]=[O,B];let z=G&&typeof G.range==="function"?G:_(B,O,G),W=z?z.range(B,+O+1):[];return H?W.reverse():W}function _(B,O,G){let H=Math.abs(O-B)/G,z=sr(([,,N])=>N).right(u,H);if(z===u.length)return e.every(zr(B/pe,O/pe,G));if(z===0)return It.every(Math.max(zr(B,O,G),1));let[W,Z]=u[H/u[z-1][2]<u[z][2]/H?z-1:z];return W.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,B=ue(s),O=le(s),G=ue(o),H=le(o),z=ue(u),W=le(u),Z=ue(D),N=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:Zi,g:na,G:aa,H:zi,I:Ri,j:Bi,L:fn,m:ji,M:Xi,p:h,q:mt,Q:cn,s:un,S:Gi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:ra,Y:ia,Z:sa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:oa,I:ca,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:cn,s:un,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:x,A:U,b:I,B:V,c:d,d:rn,e:rn,f:Hi,g:en,G:tn,H:nn,I:nn,j:Ei,L:$i,m:Wi,M:Ai,p:nt,q:Li,Q:Pi,s:Vi,S:Oi,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Ui,"%":Ni};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=O.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=W.get(y[0].toLowerCase()),et+y[0].length):-1}function U(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=H.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=N.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Wi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Ni(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Pi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function zi(e,r){return ct(e.getHours(),r,2)}function Ri(e,r){return ct(e.getHours()%12||12,r,2)}function Bi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function Zi(e,r){return fn(e,r)+"000"}function ji(e,r){return ct(e.getMonth()+1,r,2)}function Xi(e,r){return ct(e.getMinutes(),r,2)}function Gi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function la(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function fa(e,r){return mn(e,r)+"000"}function da(e,r){return ct(e.getUTCMonth()+1,r,2)}function ma(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function yn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=yn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=yn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function cn(e){return+e}function un(e){return Math.floor(+e/1000)}var Kt,Xt,gn,kn,pn;tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tr(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Ca(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,B){var O=Ur(),{invert:G,domain:H}=O,z=B(".%L"),W=B(":%S"),Z=B("%I:%M"),N=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function Y(f){return(_(f)<f?z:D(f)<f?W:u(f)<f?Z:o(f)<f?N:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return O.invert=function(f){return new Date(G(f))},O.domain=function(f){return arguments.length?H(Array.from(f,Ca)):H().map(Da)},O.ticks=function(f){var P=H();return e(P[0],P[P.length-1],f==null?10:f)},O.tickFormat=function(f,P){return P==null?Y:B(P)},O.nice=function(f){var P=H();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?H(Re(P,f)):O},O.copy=function(){return ua(O,Tn(e,r,n,i,s,o,u,D,_,B))},O}function er(){return Ot.apply(Tn(Xe,Ge,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Gn(),1),Mt=Se(Ia(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ia(),1),Rn=Se(wn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],B=[1,33],O=[1,34],G=[1,9],H=[1,10],z=[1,11],W=[1,12],Z=[1,13],N=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(function(){},"trace"),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,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$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",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"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],[19,1],[19,1],[9,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],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
2
2
|
`+it.showPosition()+`
|
|
3
|
-
Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(
|
|
3
|
+
Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(vt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[vt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,vt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[vt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[v[v.length-2]][v[v.length-1]],v.push(Sr);break;case 3:return!0}}return!0},"parse")},U=function(){var V={EOF:1,parseError:t(function(w,v){if(this.yy.parser)this.yy.parser.parseError(w,v);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,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];return this.offset=0,this},"setInput"),input:t(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:t(function(d){var w=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1)this.yylineno-=v.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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},"reject"),less:t(function(d){this.unput(this.match.slice(d))},"less"),pastInput:t(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
5
|
-
`+w+"^"},"showPosition"),test_match:t(function(d,w){var
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,x,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;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 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\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,51,52],inclusive:!0}}};return P}();b.lexer=I;function F(){this.yy={}}return t(F,"Parser"),F.prototype=b,b.Parser=F,new F}();dr.parser=dr;var _a=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",In=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,wr=!1,Mr="sunday",Ue="saturday",mr=0,Ya=t(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,wr=!1,mr=0,Tr=new Map,te="",C(),Mr="sunday",Ue="saturday"},"clear"),Fa=t(function(e){te=e},"setDiagramId"),Ia=t(function(e){gr=e},"setAxisFormat"),Ua=t(function(){return gr},"getAxisFormat"),La=t(function(e){kr=e},"setTickInterval"),Wa=t(function(){return kr},"getTickInterval"),Ea=t(function(e){pr=e},"setTodayMarker"),Aa=t(function(){return pr},"getTodayMarker"),Oa=t(function(e){Wt=e},"setDateFormat"),$a=t(function(){fe=!0},"enableInclusiveEndDates"),Ha=t(function(){return fe},"endDatesAreInclusive"),Na=t(function(){wr=!0},"enableTopAxis"),Pa=t(function(){return wr},"topAxisEnabled"),Va=t(function(e){xr=e},"setDisplayMode"),za=t(function(){return xr},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return Tr},"getLinks"),qa=t(function(e){ae=e,vr.push(e)},"addSection"),Qa=t(function(){return vr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Ln=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Mr=e},"setWeekday"),ts=t(function(){return Mr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),Wn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Ln(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),En=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],z=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of z){let O=Gt(G);if(O===void 0){_.push(G);continue}if(!D||O.endTime>D.endTime)D=O}if(_.length>0)En("after",_);if(D)return D.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),On=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Hn=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let W=null,G=[],O=o.groups.ids.split(" ").filter((U)=>U!=="");for(let U of O){let Z=Gt(U);if(Z===void 0){G.push(U);continue}if(!W||Z.startTime<W.startTime)W=Z}if(G.length>0)En("until",G);if(W)return W.startTime;let V=new Date;return V.setHours(0,0,0,0),V}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,z]=On(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let W=D.add(_,z);if(W.isValid())D=W}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=Hn(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),Wn(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Nn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Nn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Nn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=Hn(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)Vn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),Pn(e,"clickable")},"setLink"),Pn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)Vn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),Vn=t(function(e,r){br.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Pn(e,"clickable")},"setClickEvent"),ls=t(function(e){br.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:Ya,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Ia,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Fa,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:On,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Dr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Dr,"getTaskTags");ee.default.extend(zn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:we,wednesday:Me,thursday:Lt,friday:De,saturday:Ce,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,z=_.getElementById(r);if(Pt=z.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let W=i.db.getTasks(),G=W.filter((b)=>!b.vert),O=[];for(let b of G)O.push(b.type);O=nt(O);let V={},U=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let b={};for(let F of G)if(b[F.section]===void 0)b[F.section]=[F];else b[F.section].push(F);let I=0;for(let F of Object.keys(b)){let P=ms(b[F],I)+1;I+=P,U+=P*(s.barHeight+s.barGap),V[F]=P}}else{U+=G.length*(s.barHeight+s.barGap);for(let b of O)V[b]=G.filter((I)=>I.type===b).length}z.setAttribute("viewBox","0 0 "+Pt+" "+U);let Z=D.select(`[id="${r}"]`),H=er().domain([gn(W,function(b){return b.startTime}),$n(W,function(b){return b.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(b,I){let F=b.startTime,P=I.startTime,d=0;if(F>P)d=1;else if(F<P)d=-1;return d}t(tt,"taskCompare"),W.sort(tt),ft(W,Pt,U),B(Z,U,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(b,I,F){let P=s.barHeight,d=P+s.barGap,{topPadding:w,leftPadding:x}=s,k=kt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Vr);j(d,w,x,I,F,b,i.db.getExcludes(),i.db.getIncludes()),f(x,w,I,F),at(b,d,w,x,P,k,I,F),N(d,w,x,P,k),rt(x,w,I,F)}t(ft,"makeGantt");function at(b,I,F,P,d,w,x){b.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=b.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*I+F-2}).attr("width",function(){return x-s.rightPadding/2}).attr("height",I).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(b).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+P+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+P}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*I+F}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return H(m.renderEndTime||m.endTime)-H(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+P+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*I+F+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of O.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=H(m.startTime),K=H(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(H(m.endTime)-H(m.startTime))-0.5*d,K=q+d;if(m.vert)return H(m.startTime)+P;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>x)return q+P-5;else return K+P+5;else return(K-q)/2+q+P}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*I+s.barHeight/2+(s.fontSize/2-2)+F}).attr("text-height",d).attr("class",function(m){let q=H(m.startTime),K=H(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of O.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>x)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(b,I,F,P,d,w,x,k){if(x.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,x,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+F).attr("y",s.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-I-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+F+0.5*(H(K.end)-H(K.start))).toString()+"px "+(ut*b+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(b,I,F,P){if(F<=0||b>I)return 1/0;let d=I-b,w=ee.default.duration({[P??"day"]:F}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(b,I,F,P){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),x;if(w)x=w;else if(d==="D")x="%d";else x=s.axisFormat??"%Y-%m-%d";let k=He(H).tickSize(-P+I+s.gridLineStartPadding).tickFormat(Xt(x)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=H.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+(P-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(H).tickSize(-P+I+s.gridLineStartPadding).tickFormat(Xt(x));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=H.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+b+", "+I+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function N(b,I){let F=0,P=Object.keys(V).map((d)=>[d,V[d]]);Z.append("g").selectAll("text").data(P).enter().append(function(d){let w=d[0].split(v.lineBreakRegex),x=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",x+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let x=0;x<w;x++)return F+=P[w-1][1],d[1]*b/2+F*b+I;else return d[1]*b/2+I}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,x]of O.entries())if(d[0]===x)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(N,"vertLabels");function rt(b,I,F,P){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),x=new Date,k=w.append("line");if(k.attr("x1",H(x)+b).attr("x2",H(x)+b).attr("y1",s.titleTopMargin).attr("y2",P-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(b){let I={},F=[];for(let P=0,d=b.length;P<d;++P)if(!Object.prototype.hasOwnProperty.call(I,b[P]))I[b[P]]=!0,F.push(b[P]);return F}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
|
|
5
|
+
`+w+"^"},"showPosition"),test_match:t(function(d,w){var v,k,Q;if(this.options.backtrack_lexer){if(Q={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)Q.yylloc.range=this.yylloc.range.slice(0)}if(k=d[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],v=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(v)return v;else if(this._backtrack){for(var c in Q)this[c]=Q[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,v,k;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var c=0;c<Q.length;c++)if(v=this._input.match(this.rules[Q[c]]),v&&(!w||v[0].length>w[0].length)){if(w=v,k=c,this.options.backtrack_lexer)if(d=this.test_match(v,Q[c]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[k]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;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 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\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,51,52],inclusive:!0}}};return V}();x.lexer=U;function I(){this.yy={}}return t(I,"Parser"),I.prototype=x,x.Parser=I,new I}();dr.parser=dr;var Sa=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",In=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,wr=!1,Mr="sunday",Ue="saturday",mr=0,_a=t(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,wr=!1,mr=0,Tr=new Map,te="",C(),Mr="sunday",Ue="saturday"},"clear"),Ya=t(function(e){te=e},"setDiagramId"),Fa=t(function(e){gr=e},"setAxisFormat"),Ua=t(function(){return gr},"getAxisFormat"),La=t(function(e){kr=e},"setTickInterval"),Wa=t(function(){return kr},"getTickInterval"),Ea=t(function(e){pr=e},"setTodayMarker"),Aa=t(function(){return pr},"getTodayMarker"),Oa=t(function(e){Wt=e},"setDateFormat"),$a=t(function(){fe=!0},"enableInclusiveEndDates"),Ha=t(function(){return fe},"endDatesAreInclusive"),Na=t(function(){wr=!0},"enableTopAxis"),Pa=t(function(){return wr},"topAxisEnabled"),Va=t(function(e){xr=e},"setDisplayMode"),za=t(function(){return xr},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return Tr},"getLinks"),qa=t(function(e){ae=e,vr.push(e)},"addSection"),Qa=t(function(){return vr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Ln=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Mr=e},"setWeekday"),ts=t(function(){return Mr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),Wn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Ln(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),On=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let H=Gt(G);if(H===void 0){_.push(G);continue}if(!D||H.endTime>D.endTime)D=H}if(_.length>0)On("after",_);if(D)return D.endTime;let O=new Date;return O.setHours(0,0,0,0),O}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),Hn=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Nn=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let O=null,G=[],H=o.groups.ids.split(" ").filter((W)=>W!=="");for(let W of H){let Z=Gt(W);if(Z===void 0){G.push(W);continue}if(!O||Z.startTime<O.startTime)O=Z}if(G.length>0)On("until",G);if(O)return O.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,B]=Hn(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let O=D.add(_,B);if(O.isValid())D=O}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=Nn(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),Wn(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Pn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Pn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Pn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=Nn(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)zn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),Vn(e,"clickable")},"setLink"),Vn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)zn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),zn=t(function(e,r){br.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Vn(e,"clickable")},"setClickEvent"),ls=t(function(e){br.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:_a,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Fa,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Ya,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:Hn,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Dr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Dr,"getTaskTags");ee.default.extend(Rn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:we,wednesday:Me,thursday:Lt,friday:De,saturday:Ce,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,B=_.getElementById(r);if(Pt=B.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let O=i.db.getTasks(),G=O.filter((x)=>!x.vert),H=[];for(let x of G)H.push(x.type);H=nt(H);let z={},W=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let I of G)if(x[I.section]===void 0)x[I.section]=[I];else x[I.section].push(I);let U=0;for(let I of Object.keys(x)){let V=ms(x[I],U)+1;U+=V,W+=V*(s.barHeight+s.barGap),z[I]=V}}else{W+=G.length*(s.barHeight+s.barGap);for(let x of H)z[x]=G.filter((U)=>U.type===x).length}B.setAttribute("viewBox","0 0 "+Pt+" "+W);let Z=D.select(`[id="${r}"]`),N=er().domain([hn(O,function(x){return x.startTime}),$n(O,function(x){return x.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(x,U){let I=x.startTime,V=U.startTime,d=0;if(I>V)d=1;else if(I<V)d=-1;return d}t(tt,"taskCompare"),O.sort(tt),ft(O,Pt,W),F(Z,W,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,U,I){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=kt().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(Vr);j(d,w,v,U,I,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,U,I),at(x,d,w,v,V,k,U,I),P(d,w,v,V,k),rt(v,w,U,I)}t(ft,"makeGantt");function at(x,U,I,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*U+I-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",U).attr("class",function(m){for(let[q,K]of H.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))-0.5*d;return N(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*U+I}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return N(m.renderEndTime||m.endTime)-N(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))).toString()+"px "+(q*U+I+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of H.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=N(m.startTime),K=N(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(N(m.endTime)-N(m.startTime))-0.5*d,K=q+d;if(m.vert)return N(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*U+s.barHeight/2+(s.fontSize/2-2)+I}).attr("text-height",d).attr("class",function(m){let q=N(m.startTime),K=N(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of H.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,U,I,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>N(K.start.startOf("day"))+I).attr("y",s.gridLineStartPadding).attr("width",(K)=>N(K.end.endOf("day"))-N(K.start.startOf("day"))).attr("height",d-U-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(N(K.start)+I+0.5*(N(K.end)-N(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(x,U,I,V){if(I<=0||x>U)return 1/0;let d=U-x,w=ee.default.duration({[V??"day"]:I}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(x,U,I,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=N.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=N.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+U+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,U){let I=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(b.lineBreakRegex),v=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return I+=V[w-1][1],d[1]*x/2+I*x+U;else return d[1]*x/2+U}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of H.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,U,I,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",N(v)+x).attr("x2",N(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let U={},I=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(U,x[V]))U[x[V]]=!0,I.push(x[V]);return I}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${e.fontFamily};
|
|
9
9
|
}
|
|
@@ -289,4 +289,4 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse
|
|
|
289
289
|
fill: ${e.titleColor||e.textColor};
|
|
290
290
|
font-family: ${e.fontFamily};
|
|
291
291
|
}
|
|
292
|
-
`,"getStyles"),ks=gs,Bo={parser:
|
|
292
|
+
`,"getStyles"),ks=gs,Bo={parser:Sa,db:fs,renderer:ys,styles:ks};export{Bo as diagram};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import{G}from"./chunk-eh7wp62z.js";import{t,a,ke,x,F,C,S,E,T,A,L,R,l,V,U}from"./chunk-tfqarvdx.js";import{J}from"./chunk-qy1zx2yw.js";var ot=t((r,i)=>{let n=r<=1?r*100:r;if(n<0||n>100)throw Error(`${i} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${r}`);return n},"toPercent"),q=t((r,i,n)=>({x:ot(i,`${n} evolution`),y:ot(r,`${n} visibility`)}),"toCoordinates"),pt=t((r)=>{if(!r)return;if(r==="+<>")return"bidirectional";if(r==="+<")return"backward";if(r==="+>")return"forward";return},"getFlowFromPort"),Bt=t((r)=>{if(!r?.startsWith("+"))return{};let n=/^\+'([^']*)'/.exec(r)?.[1];if(r.includes("<>"))return{flow:"bidirectional",label:n};if(r.includes("<"))return{flow:"backward",label:n};if(r.includes(">"))return{flow:"forward",label:n};return{label:n}},"extractFlowFromArrow"),Ft=t((r,i)=>{if(G(r,i),r.size)i.setSize(r.size.width,r.size.height);if(r.evolution){let n=r.evolution.stages.map((o)=>{if(o.secondName)return`${o.name.trim()} / ${o.secondName.trim()}`;return o.name.trim()}),u=r.evolution.stages.filter((o)=>o.boundary!==void 0).map((o)=>o.boundary);i.updateAxes({stages:n,stageBoundaries:u})}if(r.anchors.forEach((n)=>{let u=q(n.visibility,n.evolution,`Anchor "${n.name}"`);i.addNode(n.name,n.name,u.x,u.y,"anchor")}),r.components.forEach((n)=>{let u=q(n.visibility,n.evolution,`Component "${n.name}"`),o=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,p=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,b=n.decorator?.strategy;i.addNode(n.name,n.name,u.x,u.y,"component",o,p,n.inertia,b)}),r.notes.forEach((n)=>{let u=q(n.visibility,n.evolution,`Note "${n.text}"`);i.addNote(n.text,u.x,u.y)}),r.pipelines.forEach((n)=>{let u=i.getNode(n.parent);if(!u||typeof u.y!=="number")throw Error(`Pipeline "${n.parent}" must reference an existing component with coordinates.`);let o=u.y;i.startPipeline(n.parent),n.components.forEach((p)=>{let b=`${n.parent}_${p.name}`,X=p.label?(p.label.negX?-1:1)*p.label.offsetX:void 0,m=p.label?(p.label.negY?-1:1)*p.label.offsetY:void 0,tt=ot(p.evolution,`Pipeline component "${p.name}" evolution`);i.addNode(b,p.name,tt,o,"pipeline-component",X,m),i.addPipelineComponent(n.parent,b)})}),r.links.forEach((n)=>{let u=!!n.arrow&&(n.arrow.includes("-.->")||n.arrow.includes(".-.")),o=pt(n.fromPort)??pt(n.toPort),{flow:p,label:b}=Bt(n.arrow);if(!o&&p)o=p;let X=n.linkLabel,m=b??X;i.addLink(i.resolveNodeId(n.from),i.resolveNodeId(n.to),u,m,o)}),r.evolves.forEach((n)=>{let u=i.getNode(n.component);if(u?.y!==void 0){let o=ot(n.target,`Evolve target for "${n.component}"`);i.addTrend(n.component,o,u.y)}}),r.annotations.length>0){let n=r.annotations[0],u=q(n.x,n.y,"Annotations box");i.setAnnotationsBox(u.x,u.y)}r.annotation.forEach((n)=>{let u=q(n.x,n.y,`Annotation ${n.number}`);i.addAnnotation(n.number,[{x:u.x,y:u.y}],n.text)}),r.accelerators.forEach((n)=>{let u=q(n.x,n.y,`Accelerator "${n.name}"`);i.addAccelerator(n.name,u.x,u.y)}),r.deaccelerators.forEach((n)=>{let u=q(n.x,n.y,`Deaccelerator "${n.name}"`);i.addDeaccelerator(n.name,u.x,u.y)})},"populateDb"),ht={parser:{yy:void 0},parse:t(async(r)=>{let i=await J("wardley",r);a.debug(i);let n=ht.parser?.yy;if(!n||typeof n.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ft(i,n)},"parse")},Rt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{t(this,"WardleyBuilder")}addNode(r){let i=this.nodes.get(r.id)??{id:r.id,label:r.label},n={...i,...r,className:r.className??i.className,labelOffsetX:r.labelOffsetX??i.labelOffsetX,labelOffsetY:r.labelOffsetY??i.labelOffsetY};this.nodes.set(r.id,n)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});let i=this.nodes.get(r);if(i)i.isPipelineParent=!0}addPipelineComponent(r,i){let n=this.pipelines.get(r);if(n)n.componentIds.push(i);let u=this.nodes.get(i);if(u)u.inPipeline=!0}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,i){this.annotationsBox={x:r,y:i}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,i){this.size={width:r,height:i}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(let[i,n]of this.nodes)if(n.label===r)return i;return r}build(){let r=[];for(let i of this.nodes.values()){if(typeof i.x!=="number"||typeof i.y!=="number")throw Error(`Node "${i.label}" is missing coordinates`);r.push(i)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},P=new Rt;function ft(){return l()["wardley-beta"]}t(ft,"getConfig");function xt(r,i,n,u,o,p,b,X,m){P.addNode({id:r,label:i,x:n,y:u,className:o,labelOffsetX:p,labelOffsetY:b,inertia:X,sourceStrategy:m})}t(xt,"addNode");function gt(r,i,n=!1,u,o){P.addLink({source:r,target:i,dashed:n,label:u,flow:o})}t(gt,"addLink");function yt(r,i,n){P.addTrend({nodeId:r,targetX:i,targetY:n})}t(yt,"addTrend");function ut(r,i,n){P.addAnnotation({number:r,coordinates:i,text:n})}t(ut,"addAnnotation");function wt(r,i,n){P.addNote({text:r,x:i,y:n})}t(wt,"addNote");function mt(r,i,n){P.addAccelerator({name:r,x:i,y:n})}t(mt,"addAccelerator");function kt(r,i,n){P.addDeaccelerator({name:r,x:i,y:n})}t(kt,"addDeaccelerator");function bt(r,i){P.setAnnotationsBox(r,i)}t(bt,"setAnnotationsBox");function $t(r,i){P.setSize(r,i)}t($t,"setSize");function vt(r){P.startPipeline(r)}t(vt,"startPipeline");function Pt(r,i){P.addPipelineComponent(r,i)}t(Pt,"addPipelineComponent");function Ct(r){P.setAxes(r)}t(Ct,"updateAxes");function St(r){return P.getNode(r)}t(St,"getNode");function Mt(r){return P.resolveNodeId(r)}t(Mt,"resolveNodeId");function Nt(){return P.build()}t(Nt,"getWardleyData");function zt(){P.clear(),C()}t(zt,"clear");var Ot={getConfig:ft,addNode:xt,addLink:gt,addTrend:yt,addAnnotation:ut,addNote:wt,addAccelerator:mt,addDeaccelerator:kt,setAnnotationsBox:bt,setSize:$t,startPipeline:vt,addPipelineComponent:Pt,updateAxes:Ct,getNode:St,resolveNodeId:Mt,getWardleyData:Nt,clear:zt,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,getAccDescription:A,setAccDescription:T},Dt=["Genesis","Custom Built","Product","Commodity"],Gt=t(()=>{let{themeVariables:r}=l();return{backgroundColor:r.wardley?.backgroundColor??r.background??"#fff",axisColor:r.wardley?.axisColor??"#000",axisTextColor:r.wardley?.axisTextColor??r.primaryTextColor??"#222",gridColor:r.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:r.wardley?.componentFill??"#fff",componentStroke:r.wardley?.componentStroke??"#000",componentLabelColor:r.wardley?.componentLabelColor??r.primaryTextColor??"#222",linkStroke:r.wardley?.linkStroke??"#000",evolutionStroke:r.wardley?.evolutionStroke??"#dc3545",annotationStroke:r.wardley?.annotationStroke??"#000",annotationTextColor:r.wardley?.annotationTextColor??r.primaryTextColor??"#222",annotationFill:r.wardley?.annotationFill??r.background??"#fff"}},"getTheme"),qt=t(()=>{let r=l()["wardley-beta"];return{width:r?.width??900,height:r?.height??600,padding:r?.padding??48,nodeRadius:r?.nodeRadius??6,nodeLabelOffset:r?.nodeLabelOffset??8,axisFontSize:r?.axisFontSize??12,labelFontSize:r?.labelFontSize??10,showGrid:r?.showGrid??!1,useMaxWidth:r?.useMaxWidth??!0}},"getConfigValues"),jt=t((r,i,n,u)=>{a.debug(`Rendering Wardley map
|
|
2
|
+
`+r);let o=qt(),p=Gt(),b=o.nodeRadius*1.6,X=u.db,m=X.getWardleyData(),tt=X.getDiagramTitle(),H=m.size?.width??o.width,M=m.size?.height??o.height,_=V(i);_.selectAll("*").remove(),F(_,M,H,o.useMaxWidth),_.attr("viewBox",`0 0 ${H} ${M}`);let z=_.append("g").attr("class","wardley-map"),nt=_.append("defs");nt.append("marker").attr("id",`arrow-${i}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.evolutionStroke).attr("stroke","none"),nt.append("marker").attr("id",`link-arrow-end-${i}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.linkStroke).attr("stroke","none"),nt.append("marker").attr("id",`link-arrow-start-${i}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",p.linkStroke).attr("stroke","none"),z.append("rect").attr("class","wardley-background").attr("width",H).attr("height",M).attr("fill",p.backgroundColor);let Z=H-o.padding*2,K=M-o.padding*2;if(tt)z.append("text").attr("class","wardley-title").attr("x",H/2).attr("y",o.padding/2).attr("fill",p.axisTextColor).attr("font-size",o.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(tt);let B=t((e)=>o.padding+e/100*Z,"projectX"),O=t((e)=>M-o.padding-e/100*K,"projectY"),et=z.append("g").attr("class","wardley-axes");et.append("line").attr("x1",o.padding).attr("x2",H-o.padding).attr("y1",M-o.padding).attr("y2",M-o.padding).attr("stroke",p.axisColor).attr("stroke-width",1),et.append("line").attr("x1",o.padding).attr("x2",o.padding).attr("y1",o.padding).attr("y2",M-o.padding).attr("stroke",p.axisColor).attr("stroke-width",1);let Lt=m.axes.xLabel??"Evolution",Tt=m.axes.yLabel??"Visibility";et.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",o.padding+Z/2).attr("y",M-o.padding/4).attr("fill",p.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Lt),et.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",o.padding/3).attr("y",o.padding+K/2).attr("fill",p.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${o.padding/3} ${o.padding+K/2})`).text(Tt);let Q=m.axes.stages&&m.axes.stages.length>0?m.axes.stages:Dt;if(Q.length>0){let e=z.append("g").attr("class","wardley-stages"),d=m.axes.stageBoundaries,s=[];if(d&&d.length===Q.length){let c=0;d.forEach((f)=>{s.push({start:c,end:f}),c=f})}else{let c=1/Q.length;Q.forEach((f,g)=>{s.push({start:g*c,end:(g+1)*c})})}Q.forEach((c,f)=>{let g=s[f],w=o.padding+g.start*Z,y=o.padding+g.end*Z,k=(w+y)/2;if(f>0)e.append("line").attr("x1",w).attr("x2",w).attr("y1",o.padding).attr("y2",M-o.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);e.append("text").attr("class","wardley-stage-label").attr("x",k).attr("y",M-o.padding/1.5).attr("fill",p.axisTextColor).attr("font-size",o.axisFontSize-2).attr("text-anchor","middle").text(c)})}if(o.showGrid){let e=z.append("g").attr("class","wardley-grid");for(let d=1;d<4;d++){let s=d/4,c=o.padding+Z*s;e.append("line").attr("x1",c).attr("x2",c).attr("y1",o.padding).attr("y2",M-o.padding).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6"),e.append("line").attr("x1",o.padding).attr("x2",H-o.padding).attr("y1",M-o.padding-K*s).attr("y2",M-o.padding-K*s).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6")}}let h=new Map;if(m.nodes.forEach((e)=>{h.set(e.id,{x:B(e.x),y:O(e.y),node:e})}),m.pipelines.length>0){let e=z.append("g").attr("class","wardley-pipelines"),d=z.append("g").attr("class","wardley-pipeline-links");m.pipelines.forEach((s)=>{if(s.componentIds.length===0)return;let c=s.componentIds.map((y)=>({id:y,pos:h.get(y),node:m.nodes.find((k)=>k.id===y)})).filter((y)=>y.pos&&y.node).sort((y,k)=>y.node.x-k.node.x);for(let y=0;y<c.length-1;y++){let k=c[y],v=c[y+1];d.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",k.pos.x).attr("y1",k.pos.y).attr("x2",v.pos.x).attr("y2",v.pos.y).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let f=1/0,g=-1/0,w=0;if(s.componentIds.forEach((y)=>{let k=h.get(y);if(k)f=Math.min(f,k.x),g=Math.max(g,k.x),w=k.y}),f!==1/0&&g!==-1/0){let k=o.nodeRadius*4,v=w-k/2,W=h.get(s.nodeId);if(W){let I=(f+g)/2;W.x=I,W.y=v-b/6}e.append("rect").attr("class","wardley-pipeline-box").attr("x",f-15).attr("y",v).attr("width",g-f+30).attr("height",k).attr("fill","none").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let dt=z.append("g").attr("class","wardley-links"),lt=new Map;m.pipelines.forEach((e)=>{lt.set(e.nodeId,new Set(e.componentIds))});let ct=m.links.filter((e)=>{if(!h.has(e.source)||!h.has(e.target))return!1;if(lt.get(e.target)?.has(e.source))return!1;return!0});dt.selectAll("line").data(ct).enter().append("line").attr("class",(e)=>`wardley-link${e.dashed?" wardley-link--dashed":""}`).attr("x1",(e)=>{let d=h.get(e.source),s=h.get(e.target),f=m.nodes.find((k)=>k.id===e.source).isPipelineParent?b/Math.sqrt(2):o.nodeRadius,g=s.x-d.x,w=s.y-d.y,y=Math.sqrt(g*g+w*w);return d.x+g/y*f}).attr("y1",(e)=>{let d=h.get(e.source),s=h.get(e.target),f=m.nodes.find((k)=>k.id===e.source).isPipelineParent?b/Math.sqrt(2):o.nodeRadius,g=s.x-d.x,w=s.y-d.y,y=Math.sqrt(g*g+w*w);return d.y+w/y*f}).attr("x2",(e)=>{let d=h.get(e.source),s=h.get(e.target),f=m.nodes.find((k)=>k.id===e.target).isPipelineParent?b/Math.sqrt(2):o.nodeRadius,g=d.x-s.x,w=d.y-s.y,y=Math.sqrt(g*g+w*w);return s.x+g/y*f}).attr("y2",(e)=>{let d=h.get(e.source),s=h.get(e.target),f=m.nodes.find((k)=>k.id===e.target).isPipelineParent?b/Math.sqrt(2):o.nodeRadius,g=d.x-s.x,w=d.y-s.y,y=Math.sqrt(g*g+w*w);return s.y+w/y*f}).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(e)=>e.dashed?"6 6":null).attr("marker-end",(e)=>{if(e.flow==="forward"||e.flow==="bidirectional")return`url(#link-arrow-end-${i})`;return null}).attr("marker-start",(e)=>{if(e.flow==="backward"||e.flow==="bidirectional")return`url(#link-arrow-start-${i})`;return null}),dt.selectAll("text").data(ct.filter((e)=>e.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(e)=>{let d=h.get(e.source),s=h.get(e.target),c=(d.x+s.x)/2,f=s.y-d.y,g=s.x-d.x,w=Math.sqrt(g*g+f*f),y=8,k=f/w;return c+k*8}).attr("y",(e)=>{let d=h.get(e.source),s=h.get(e.target),c=(d.y+s.y)/2,f=s.x-d.x,g=s.y-d.y,w=Math.sqrt(f*f+g*g),y=8,k=-f/w;return c+k*8}).attr("fill",p.axisTextColor).attr("font-size",o.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(e)=>{let d=h.get(e.source),s=h.get(e.target),c=(d.x+s.x)/2,f=(d.y+s.y)/2,g=s.x-d.x,w=s.y-d.y,y=Math.sqrt(g*g+w*w),k=8,v=w/y,W=-g/y,I=c+v*8,at=f+W*8,j=Math.atan2(w,g)*180/Math.PI;if(j>90||j<-90)j+=180;return`rotate(${j} ${I} ${at})`}).text((e)=>e.label);let Wt=z.append("g").attr("class","wardley-trends"),At=m.trends.map((e)=>{let d=h.get(e.nodeId);if(!d)return null;let s=B(e.targetX),c=O(e.targetY),f=s-d.x,g=c-d.y,w=Math.sqrt(f*f+g*g),y=o.nodeRadius+2,k=w>y?s-f/w*y:s,v=w>y?c-g/w*y:c;return{origin:d,targetX:s,targetY:c,adjustedX2:k,adjustedY2:v}}).filter((e)=>e!==null);Wt.selectAll("line").data(At).enter().append("line").attr("class","wardley-trend").attr("x1",(e)=>e.origin.x).attr("y1",(e)=>e.origin.y).attr("x2",(e)=>e.adjustedX2).attr("y2",(e)=>e.adjustedY2).attr("stroke",p.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${i})`);let Y=z.append("g").attr("class","wardley-nodes").selectAll("g").data(m.nodes).enter().append("g").attr("class",(e)=>["wardley-node",e.className?`wardley-node--${e.className}`:""].filter(Boolean).join(" "));Y.filter((e)=>e.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#666").attr("stroke",p.componentStroke).attr("stroke-width",1),Y.filter((e)=>e.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#ccc").attr("stroke",p.componentStroke).attr("stroke-width",1),Y.filter((e)=>e.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let D=Y.filter((e)=>e.sourceStrategy==="market");D.append("circle").attr("class","wardley-market-overlay").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",o.nodeRadius*2).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),Y.filter((e)=>!e.isPipelineParent&&e.sourceStrategy!=="market"&&e.className!=="anchor").append("circle").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y).attr("r",o.nodeRadius).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1);let st=o.nodeRadius*0.7,N=o.nodeRadius*1.2;if(D.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x).attr("y1",(e)=>h.get(e.id).y-N).attr("x2",(e)=>h.get(e.id).x-N*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+N*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),D.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x-N*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+N*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x+N*Math.cos(Math.PI/6)).attr("y2",(e)=>h.get(e.id).y+N*Math.sin(Math.PI/6)).attr("stroke",p.componentStroke).attr("stroke-width",1),D.append("line").attr("class","wardley-market-line").attr("x1",(e)=>h.get(e.id).x+N*Math.cos(Math.PI/6)).attr("y1",(e)=>h.get(e.id).y+N*Math.sin(Math.PI/6)).attr("x2",(e)=>h.get(e.id).x).attr("y2",(e)=>h.get(e.id).y-N).attr("stroke",p.componentStroke).attr("stroke-width",1),D.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x).attr("cy",(e)=>h.get(e.id).y-N).attr("r",st).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),D.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x-N*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+N*Math.sin(Math.PI/6)).attr("r",st).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),D.append("circle").attr("class","wardley-market-dot").attr("cx",(e)=>h.get(e.id).x+N*Math.cos(Math.PI/6)).attr("cy",(e)=>h.get(e.id).y+N*Math.sin(Math.PI/6)).attr("r",st).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),Y.filter((e)=>e.isPipelineParent===!0).append("rect").attr("x",(e)=>h.get(e.id).x-b/2).attr("y",(e)=>h.get(e.id).y-b/2).attr("width",b).attr("height",b).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1),Y.filter((e)=>e.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(e)=>{let d=h.get(e.id),s=e.isPipelineParent?b/2+15:o.nodeRadius+15;if(e.sourceStrategy)s+=o.nodeRadius+10;return d.x+s}).attr("y1",(e)=>{let d=h.get(e.id),s=e.isPipelineParent?b:o.nodeRadius*2;return d.y-s/2}).attr("x2",(e)=>{let d=h.get(e.id),s=e.isPipelineParent?b/2+15:o.nodeRadius+15;if(e.sourceStrategy)s+=o.nodeRadius+10;return d.x+s}).attr("y2",(e)=>{let d=h.get(e.id),s=e.isPipelineParent?b:o.nodeRadius*2;return d.y+s/2}).attr("stroke",p.componentStroke).attr("stroke-width",6),Y.append("text").attr("x",(e)=>{let d=h.get(e.id);if(e.className==="anchor")return e.labelOffsetX!==void 0?d.x+e.labelOffsetX:d.x;let s=o.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetX===void 0)s+=10;let c=e.labelOffsetX??s;return d.x+c}).attr("y",(e)=>{let d=h.get(e.id);if(e.className==="anchor")return e.labelOffsetY!==void 0?d.y+e.labelOffsetY:d.y-3;let s=-o.nodeLabelOffset;if(e.sourceStrategy&&e.labelOffsetY===void 0)s-=10;let c=e.labelOffsetY??s;return d.y+c}).attr("class","wardley-node-label").attr("fill",(e)=>{if(e.className==="evolved")return p.evolutionStroke;if(e.className==="anchor")return"#000";return p.componentLabelColor}).attr("font-size",o.labelFontSize).attr("font-weight",(e)=>e.className==="anchor"?"bold":"normal").attr("text-anchor",(e)=>e.className==="anchor"?"middle":"start").attr("dominant-baseline",(e)=>e.className==="anchor"?"middle":"auto").text((e)=>e.label),m.annotations.length>0){let e=z.append("g").attr("class","wardley-annotations");if(m.annotations.forEach((d)=>{let s=d.coordinates.map((c)=>({x:B(c.x),y:O(c.y)}));if(s.length>1)for(let c=0;c<s.length-1;c++)e.append("line").attr("class","wardley-annotation-line").attr("x1",s[c].x).attr("y1",s[c].y).attr("x2",s[c+1].x).attr("y2",s[c+1].y).attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");s.forEach((c)=>{let f=e.append("g").attr("class","wardley-annotation");f.append("circle").attr("cx",c.x).attr("cy",c.y).attr("r",10).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5),f.append("text").attr("x",c.x).attr("y",c.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(d.number)})}),m.annotationsBox){let d=B(m.annotationsBox.x),s=O(m.annotationsBox.y),c=10,f=16,g=11,w=e.append("g").attr("class","wardley-annotations-box"),y=[...m.annotations].filter((v)=>v.text).sort((v,W)=>v.number-W.number),k=[];if(y.forEach((v,W)=>{let I=w.append("text").attr("x",d+c).attr("y",s+c+(W+1)*f).attr("font-size",g).attr("fill",p.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${v.number}. ${v.text}`);k.push(I)}),k.length>0){let v=0,W=0;k.forEach((it)=>{let rt=it.node(),Yt=rt.getComputedTextLength();v=Math.max(v,Yt);let It=rt.getBBox();W=Math.max(W,It.height)});let I=v+c*2+105,at=y.length*f+c*2+W/2,j=o.padding,Xt=H-o.padding-I,Et=o.padding,Ht=M-o.padding-at;d=Math.max(j,Math.min(d,Xt)),s=Math.max(Et,Math.min(s,Ht)),k.forEach((it,rt)=>{it.attr("x",d+c).attr("y",s+c+(rt+1)*f)}),w.insert("rect","text").attr("x",d).attr("y",s).attr("width",I).attr("height",at).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(m.notes.length>0){let e=z.append("g").attr("class","wardley-notes");m.notes.forEach((d)=>{let s=B(d.x),c=O(d.y);e.append("text").attr("x",s).attr("y",c).attr("text-anchor","start").attr("font-size",11).attr("fill",p.axisTextColor).attr("font-weight","bold").text(d.text)})}if(m.accelerators.length>0){let e=z.append("g").attr("class","wardley-accelerators");m.accelerators.forEach((d)=>{let s=B(d.x),c=O(d.y),f=60,g=30,w=20,y=`
|
|
3
|
+
M ${s} ${c-15}
|
|
4
|
+
L ${s+60-20} ${c-15}
|
|
5
|
+
L ${s+60-20} ${c-15-8}
|
|
6
|
+
L ${s+60} ${c}
|
|
7
|
+
L ${s+60-20} ${c+15+8}
|
|
8
|
+
L ${s+60-20} ${c+15}
|
|
9
|
+
L ${s} ${c+15}
|
|
10
|
+
Z
|
|
11
|
+
`;e.append("path").attr("d",y).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),e.append("text").attr("x",s+30).attr("y",c+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(d.name)})}if(m.deaccelerators.length>0){let e=z.append("g").attr("class","wardley-deaccelerators");m.deaccelerators.forEach((d)=>{let s=B(d.x),c=O(d.y),f=60,g=30,w=20,y=`
|
|
12
|
+
M ${s+60} ${c-15}
|
|
13
|
+
L ${s+20} ${c-15}
|
|
14
|
+
L ${s+20} ${c-15-8}
|
|
15
|
+
L ${s} ${c}
|
|
16
|
+
L ${s+20} ${c+15+8}
|
|
17
|
+
L ${s+20} ${c+15}
|
|
18
|
+
L ${s+60} ${c+15}
|
|
19
|
+
Z
|
|
20
|
+
`;e.append("path").attr("d",y).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),e.append("text").attr("x",s+30).attr("y",c+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(d.name)})}},"draw"),Vt={draw:jt},_t=t(({wardley:r}={})=>{let i=ke(),n=x(),u=U(i,n.themeVariables),o=U(u.wardley,r);return`
|
|
21
|
+
.wardley-background {
|
|
22
|
+
fill: ${o.backgroundColor};
|
|
23
|
+
}
|
|
24
|
+
.wardley-axes line, .wardley-axes path {
|
|
25
|
+
stroke: ${o.axisColor};
|
|
26
|
+
}
|
|
27
|
+
.wardley-axis-label {
|
|
28
|
+
fill: ${o.axisTextColor};
|
|
29
|
+
}
|
|
30
|
+
.wardley-stage-label {
|
|
31
|
+
fill: ${o.axisTextColor};
|
|
32
|
+
}
|
|
33
|
+
.wardley-grid line {
|
|
34
|
+
stroke: ${o.gridColor};
|
|
35
|
+
}
|
|
36
|
+
.wardley-node circle {
|
|
37
|
+
fill: ${o.componentFill};
|
|
38
|
+
stroke: ${o.componentStroke};
|
|
39
|
+
}
|
|
40
|
+
.wardley-node-label {
|
|
41
|
+
fill: ${o.componentLabelColor};
|
|
42
|
+
}
|
|
43
|
+
.wardley-link {
|
|
44
|
+
stroke: ${o.linkStroke};
|
|
45
|
+
}
|
|
46
|
+
.wardley-link--dashed {
|
|
47
|
+
stroke-dasharray: 4 4;
|
|
48
|
+
}
|
|
49
|
+
.wardley-link-label {
|
|
50
|
+
fill: ${o.axisTextColor};
|
|
51
|
+
}
|
|
52
|
+
.wardley-trend line {
|
|
53
|
+
stroke: ${o.evolutionStroke};
|
|
54
|
+
}
|
|
55
|
+
.wardley-annotation-line {
|
|
56
|
+
stroke: ${o.annotationStroke};
|
|
57
|
+
}
|
|
58
|
+
.wardley-annotation circle {
|
|
59
|
+
fill: ${o.annotationFill};
|
|
60
|
+
stroke: ${o.annotationStroke};
|
|
61
|
+
}
|
|
62
|
+
.wardley-annotation text {
|
|
63
|
+
fill: ${o.annotationTextColor};
|
|
64
|
+
}
|
|
65
|
+
.wardley-annotations-box rect {
|
|
66
|
+
fill: ${o.annotationFill};
|
|
67
|
+
stroke: ${o.annotationStroke};
|
|
68
|
+
}
|
|
69
|
+
.wardley-annotations-box text {
|
|
70
|
+
fill: ${o.annotationTextColor};
|
|
71
|
+
}
|
|
72
|
+
.wardley-pipeline-box {
|
|
73
|
+
stroke: ${o.componentStroke};
|
|
74
|
+
}
|
|
75
|
+
.wardley-notes text {
|
|
76
|
+
fill: ${o.axisTextColor};
|
|
77
|
+
}
|
|
78
|
+
`},"styles"),re={parser:ht,db:Ot,renderer:Vt,styles:_t};export{re as diagram};
|