@bkm016/basalt 0.1.14 → 0.1.15

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.
Files changed (126) hide show
  1. package/{chunk-nysatg77.js → chunk-5n1qra6k.js} +45 -43
  2. package/{chunk-xk3t5ves.js → chunk-tszctb17.js} +130 -130
  3. package/compiled.js +1 -1
  4. package/package.json +1 -1
  5. package/ui-test-worker.js +1 -1
  6. package/web/chunk-00swes3c.js +1 -0
  7. package/web/{chunk-vg346gxc.js → chunk-01nbc18z.js} +1 -1
  8. package/web/chunk-0e995hjg.js +1 -0
  9. package/web/{chunk-y3tb6410.js → chunk-1bhpfsvr.js} +1 -1
  10. package/web/{chunk-w5q7978e.js → chunk-1v6hhgc6.js} +1 -1
  11. package/web/{chunk-qcdej581.js → chunk-251yw6f2.js} +1 -1
  12. package/web/{chunk-vpegzgzb.js → chunk-27cntdyk.js} +1 -1
  13. package/web/{chunk-kk5rw81s.js → chunk-2tm4xe0j.js} +1 -1
  14. package/web/{chunk-4qehf2xx.js → chunk-3egthz5k.js} +1 -1
  15. package/web/{chunk-tdzh6nsz.js → chunk-3f8fjee5.js} +1 -1
  16. package/web/chunk-3fjzgpaw.js +1 -0
  17. package/web/{chunk-d3hyf9yd.js → chunk-3hy2gsgf.js} +1 -1
  18. package/web/chunk-3mgzqbc8.js +1 -0
  19. package/web/chunk-3yvanftw.js +1 -0
  20. package/web/{chunk-ffywf5w5.js → chunk-3zs2v6b4.js} +1 -1
  21. package/web/{chunk-zx3h7v72.js → chunk-43194184.js} +1 -1
  22. package/web/{chunk-9h0f3gar.js → chunk-43bczb21.js} +1 -1
  23. package/web/{chunk-jzge034r.js → chunk-4m9mgdaa.js} +1 -1
  24. package/web/{chunk-2gvz70wr.js → chunk-4q2jtvwn.js} +1 -1
  25. package/web/{chunk-rjakb64x.js → chunk-4tbhxtnm.js} +1 -1
  26. package/web/{chunk-wspk8qbg.js → chunk-50vgq2nk.js} +1 -1
  27. package/web/{chunk-zkq1xknc.js → chunk-57b8j192.js} +1 -1
  28. package/web/{chunk-410qdvmv.js → chunk-5fzmk43v.js} +1 -1
  29. package/web/{chunk-we4mhfmq.js → chunk-5rwg3qqd.js} +1 -1
  30. package/web/{chunk-54mgncq3.js → chunk-62gj74fq.js} +1 -1
  31. package/web/chunk-64h7k870.js +1 -0
  32. package/web/{chunk-797bh7z6.js → chunk-65ay0j1t.js} +1 -1
  33. package/web/{chunk-y6mcxfm0.js → chunk-66164wmv.js} +1 -1
  34. package/web/{chunk-sgkevxdf.js → chunk-6s1vjny7.js} +1 -1
  35. package/web/{chunk-tjd8qp87.js → chunk-6x1hfjb9.js} +1 -1
  36. package/web/{chunk-zpzvz973.js → chunk-6xfbh4z5.js} +1 -1
  37. package/web/{chunk-3rxhs9qm.js → chunk-7frnjms9.js} +1 -1
  38. package/web/chunk-7jh6zxg3.js +1 -0
  39. package/web/chunk-7mgwejn4.js +1 -0
  40. package/web/{chunk-2c7kxr4v.js → chunk-8nm0mghm.js} +1 -1
  41. package/web/{chunk-ahn2frbt.js → chunk-8qzsxg1q.js} +1 -1
  42. package/web/{chunk-vxm7n7w6.js → chunk-937ndmh1.js} +1 -1
  43. package/web/chunk-95gbcs8j.js +1 -0
  44. package/web/{chunk-faskbfjf.js → chunk-aw6wg8fe.js} +1 -1
  45. package/web/{chunk-ppa21760.js → chunk-b323qea5.js} +1 -1
  46. package/web/{chunk-npw1s1h2.js → chunk-bcx7xges.js} +1 -1
  47. package/web/{chunk-k9fyqrhp.js → chunk-bzdn9sxz.js} +1 -1
  48. package/web/{chunk-c7fqrs8j.js → chunk-cq1f20k6.js} +1 -1
  49. package/web/{chunk-feanedhx.js → chunk-dde64qjd.js} +1 -1
  50. package/web/{chunk-p4pqtybm.js → chunk-dgepxev9.js} +2 -2
  51. package/web/{chunk-nfpff7yf.js → chunk-djnq1w1e.js} +2 -2
  52. package/web/{chunk-snaepr87.js → chunk-ea6b8b50.js} +1 -1
  53. package/web/{chunk-qftcdcps.js → chunk-ed5xfgxb.js} +1 -1
  54. package/web/{chunk-783s8jds.js → chunk-ehz9m6g4.js} +1 -1
  55. package/web/chunk-evp6t44y.js +8 -0
  56. package/web/chunk-eyg28s83.js +1 -0
  57. package/web/{chunk-r8p741qj.js → chunk-fttdbcqv.js} +1 -1
  58. package/web/chunk-g9bqacq1.js +1 -0
  59. package/web/chunk-gh8kjzdj.js +1 -0
  60. package/web/{chunk-ve9dz857.js → chunk-jab2p5zv.js} +1 -1
  61. package/web/{chunk-ysw5fs45.js → chunk-jca9xbe0.js} +1 -1
  62. package/web/chunk-jpf8x9tm.js +1 -0
  63. package/web/{chunk-3haw3wcw.js → chunk-jx3z63tq.js} +1 -1
  64. package/web/{chunk-ty2rmwda.js → chunk-jy448465.js} +89 -89
  65. package/web/{chunk-51b8n5e1.js → chunk-k3ah0513.js} +1 -1
  66. package/web/{chunk-dwtatme7.js → chunk-ksnsfqrn.js} +1 -1
  67. package/web/{chunk-ex8rmqn1.js → chunk-kxr473dw.js} +1 -1
  68. package/web/{chunk-wkhj4hsw.js → chunk-m5psa69k.js} +1 -1
  69. package/web/{chunk-8ttp8fh3.js → chunk-mss6eg27.js} +1 -1
  70. package/web/{chunk-g3szt4c4.js → chunk-mv9q8jrm.js} +1 -1
  71. package/web/{chunk-59g6rrew.js → chunk-n0ezfa12.js} +1 -1
  72. package/web/{chunk-mvm68qtt.js → chunk-p1bb9xp8.js} +1 -1
  73. package/web/{chunk-mv7jgmnb.js → chunk-pa82db2e.js} +1 -1
  74. package/web/{chunk-7hpqrfgg.js → chunk-pdmcr6d4.js} +1 -1
  75. package/web/{chunk-8sr9w61v.js → chunk-phj4pcx4.js} +1 -1
  76. package/web/{chunk-xhqvzmfj.js → chunk-pma5pats.js} +1 -1
  77. package/web/{chunk-ptpkv0te.js → chunk-pmghe7rh.js} +1 -1
  78. package/web/{chunk-s45g7fp6.js → chunk-ppfhtyxt.js} +1 -1
  79. package/web/chunk-pze2v3v1.js +2 -0
  80. package/web/{chunk-mn2wv9ye.js → chunk-q6j2e8a1.js} +1 -1
  81. package/web/chunk-q6jf3zc1.js +1 -0
  82. package/web/{chunk-xf1hnpme.js → chunk-qdn3hmfy.js} +1 -1
  83. package/web/{chunk-s2ps0ct5.js → chunk-qdsg8wp0.js} +1 -1
  84. package/web/{chunk-32dh0hft.js → chunk-qf2kb7zj.js} +1 -1
  85. package/web/{chunk-7kywe73f.js → chunk-s6bc73n3.js} +1 -1
  86. package/web/chunk-sdtesqbb.js +1 -0
  87. package/web/chunk-t0z8ygx4.js +1 -0
  88. package/web/{chunk-bahccwb9.js → chunk-t2v01k4z.js} +1 -1
  89. package/web/{chunk-zsat72qd.js → chunk-t5ke9cyg.js} +2 -2
  90. package/web/{chunk-j6wcszxq.js → chunk-t72z2ww3.js} +1 -1
  91. package/web/{chunk-ya696bfe.js → chunk-t78qm9gs.js} +1 -1
  92. package/web/{chunk-aknsydan.js → chunk-te15yhn5.js} +1 -1
  93. package/web/{chunk-2gsf89vs.js → chunk-tvaxyhh0.js} +1 -1
  94. package/web/{chunk-9vr6hpmk.js → chunk-vypfy030.js} +1 -1
  95. package/web/chunk-w7cyrbk2.js +1 -0
  96. package/web/{chunk-fx3d48e6.js → chunk-w9nkvcjr.js} +1 -1
  97. package/web/chunk-x2f8bwd2.js +1 -0
  98. package/web/chunk-xq8x7dvr.js +1 -0
  99. package/web/{chunk-p79c7aak.js → chunk-yeh77fvq.js} +1 -1
  100. package/web/{chunk-kpmd893m.js → chunk-ymtq18z6.js} +1 -1
  101. package/web/{chunk-s70aj1v5.js → chunk-yzmrbssn.js} +1 -1
  102. package/web/{chunk-988e9wx6.js → chunk-z5h046zm.js} +1 -1
  103. package/web/{chunk-78m018ya.js → chunk-zf4b8jb9.js} +1 -1
  104. package/web/index.html +1 -1
  105. package/web/sw.js +17 -1
  106. package/web/chunk-15g9pnzy.js +0 -1
  107. package/web/chunk-19tkjg9w.js +0 -1
  108. package/web/chunk-26sp6jre.js +0 -1
  109. package/web/chunk-2s3my1jn.js +0 -1
  110. package/web/chunk-6481wt3t.js +0 -1
  111. package/web/chunk-6m8hq6ph.js +0 -1
  112. package/web/chunk-9vrp249f.js +0 -2
  113. package/web/chunk-dcegr80c.js +0 -1
  114. package/web/chunk-gr1tjqbd.js +0 -1
  115. package/web/chunk-jge7nn3s.js +0 -1
  116. package/web/chunk-kg3tksv7.js +0 -1
  117. package/web/chunk-nk7jkpam.js +0 -1
  118. package/web/chunk-nmvt1rn3.js +0 -1
  119. package/web/chunk-nzzxv84v.js +0 -8
  120. package/web/chunk-rcexbkjj.js +0 -1
  121. package/web/chunk-say8bvkc.js +0 -1
  122. package/web/chunk-sjffrcq9.js +0 -1
  123. package/web/chunk-tncc9e57.js +0 -1
  124. package/web/chunk-v22hp18w.js +0 -1
  125. package/web/chunk-xq70hgre.js +0 -1
  126. package/web/chunk-zkv025s5.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Ce,Se,_}from"./chunk-ty2rmwda.js";var Na=Se(function(Sh,Th){(function(r,e){typeof Sh=="object"&&typeof Th<"u"?Th.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Sh,function(){var r=1000,e=60000,i=3600000,s="millisecond",o="second",n="minute",c="hour",h="day",m="week",y="month",g="quarter",B="year",v="date",q="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ct){var ot=["th","st","nd","rd"],st=Ct%100;return"["+Ct+(ot[(st-20)%10]||ot[st]||ot[0])+"]"}},U=function(Ct,ot,st){var pt=String(Ct);return!pt||pt.length>=ot?Ct:""+Array(ot+1-pt.length).join(st)+Ct},K={s:U,z:function(Ct){var ot=-Ct.utcOffset(),st=Math.abs(ot),pt=Math.floor(st/60),it=st%60;return(ot<=0?"+":"-")+U(pt,2,"0")+":"+U(it,2,"0")},m:function Ct(ot,st){if(ot.date()<st.date())return-Ct(st,ot);var pt=12*(st.year()-ot.year())+(st.month()-ot.month()),it=ot.clone().add(pt,y),wt=st-it<0,Lt=ot.clone().add(pt+(wt?-1:1),y);return+(-(pt+(st-it)/(wt?it-Lt:Lt-it))||0)},a:function(Ct){return Ct<0?Math.ceil(Ct)||0:Math.floor(Ct)},p:function(Ct){return{M:y,y:B,w:m,d:h,D:v,h:c,m:n,s:o,ms:s,Q:g}[Ct]||String(Ct||"").toLowerCase().replace(/s$/,"")},u:function(Ct){return Ct===void 0}},Q="en",tt={};tt[Q]=Y;var et="$isDayjsObject",ht=function(Ct){return Ct instanceof Bt||!(!Ct||!Ct[et])},lt=function Ct(ot,st,pt){var it;if(!ot)return Q;if(typeof ot=="string"){var wt=ot.toLowerCase();tt[wt]&&(it=wt),st&&(tt[wt]=st,it=wt);var Lt=ot.split("-");if(!it&&Lt.length>1)return Ct(Lt[0])}else{var Yt=ot.name;tt[Yt]=ot,it=Yt}return!pt&&it&&(Q=it),it||!pt&&Q},ft=function(Ct,ot){if(ht(Ct))return Ct.clone();var st=typeof ot=="object"?ot:{};return st.date=Ct,st.args=arguments,new Bt(st)},xt=K;xt.l=lt,xt.i=ht,xt.w=function(Ct,ot){return ft(Ct,{locale:ot.$L,utc:ot.$u,x:ot.$x,$offset:ot.$offset})};var Bt=function(){function Ct(st){this.$L=lt(st.locale,null,!0),this.parse(st),this.$x=this.$x||st.x||{},this[et]=!0}var ot=Ct.prototype;return ot.parse=function(st){this.$d=function(pt){var{date:it,utc:wt}=pt;if(it===null)return new Date(NaN);if(xt.u(it))return new Date;if(it instanceof Date)return new Date(it);if(typeof it=="string"&&!/Z$/i.test(it)){var Lt=it.match(W);if(Lt){var Yt=Lt[2]-1||0,Ht=(Lt[7]||"0").substring(0,3);return wt?new Date(Date.UTC(Lt[1],Yt,Lt[3]||1,Lt[4]||0,Lt[5]||0,Lt[6]||0,Ht)):new Date(Lt[1],Yt,Lt[3]||1,Lt[4]||0,Lt[5]||0,Lt[6]||0,Ht)}}return new Date(it)}(st),this.init()},ot.init=function(){var st=this.$d;this.$y=st.getFullYear(),this.$M=st.getMonth(),this.$D=st.getDate(),this.$W=st.getDay(),this.$H=st.getHours(),this.$m=st.getMinutes(),this.$s=st.getSeconds(),this.$ms=st.getMilliseconds()},ot.$utils=function(){return xt},ot.isValid=function(){return this.$d.toString()!==q},ot.isSame=function(st,pt){var it=ft(st);return this.startOf(pt)<=it&&it<=this.endOf(pt)},ot.isAfter=function(st,pt){return ft(st)<this.startOf(pt)},ot.isBefore=function(st,pt){return this.endOf(pt)<ft(st)},ot.$g=function(st,pt,it){return xt.u(st)?this[pt]:this.set(it,st)},ot.unix=function(){return Math.floor(this.valueOf()/1000)},ot.valueOf=function(){return this.$d.getTime()},ot.startOf=function(st,pt){var it=this,wt=!!xt.u(pt)||pt,Lt=xt.p(st),Yt=function(re,he){var ue=xt.w(it.$u?Date.UTC(it.$y,he,re):new Date(it.$y,he,re),it);return wt?ue:ue.endOf(h)},Ht=function(re,he){return xt.w(it.toDate()[re].apply(it.toDate("s"),(wt?[0,0,0,0]:[23,59,59,999]).slice(he)),it)},ne=this.$W,oe=this.$M,_e=this.$D,Ae="set"+(this.$u?"UTC":"");switch(Lt){case B:return wt?Yt(1,0):Yt(31,11);case y:return wt?Yt(1,oe):Yt(0,oe+1);case m:var xe=this.$locale().weekStart||0,Wt=(ne<xe?ne+7:ne)-xe;return Yt(wt?_e-Wt:_e+(6-Wt),oe);case h:case v:return Ht(Ae+"Hours",0);case c:return Ht(Ae+"Minutes",1);case n:return Ht(Ae+"Seconds",2);case o:return Ht(Ae+"Milliseconds",3);default:return this.clone()}},ot.endOf=function(st){return this.startOf(st,!1)},ot.$set=function(st,pt){var it,wt=xt.p(st),Lt="set"+(this.$u?"UTC":""),Yt=(it={},it[h]=Lt+"Date",it[v]=Lt+"Date",it[y]=Lt+"Month",it[B]=Lt+"FullYear",it[c]=Lt+"Hours",it[n]=Lt+"Minutes",it[o]=Lt+"Seconds",it[s]=Lt+"Milliseconds",it)[wt],Ht=wt===h?this.$D+(pt-this.$W):pt;if(wt===y||wt===B){var ne=this.clone().set(v,1);ne.$d[Yt](Ht),ne.init(),this.$d=ne.set(v,Math.min(this.$D,ne.daysInMonth())).$d}else Yt&&this.$d[Yt](Ht);return this.init(),this},ot.set=function(st,pt){return this.clone().$set(st,pt)},ot.get=function(st){return this[xt.p(st)]()},ot.add=function(st,pt){var it,wt=this;st=Number(st);var Lt=xt.p(pt),Yt=function(oe){var _e=ft(wt);return xt.w(_e.date(_e.date()+Math.round(oe*st)),wt)};if(Lt===y)return this.set(y,this.$M+st);if(Lt===B)return this.set(B,this.$y+st);if(Lt===h)return Yt(1);if(Lt===m)return Yt(7);var Ht=(it={},it[n]=e,it[c]=i,it[o]=r,it)[Lt]||1,ne=this.$d.getTime()+st*Ht;return xt.w(ne,this)},ot.subtract=function(st,pt){return this.add(-1*st,pt)},ot.format=function(st){var pt=this,it=this.$locale();if(!this.isValid())return it.invalidDate||q;var wt=st||"YYYY-MM-DDTHH:mm:ssZ",Lt=xt.z(this),Yt=this.$H,Ht=this.$m,ne=this.$M,{weekdays:oe,months:_e,meridiem:Ae}=it,xe=function(he,ue,Ke,je){return he&&(he[ue]||he(pt,wt))||Ke[ue].slice(0,je)},Wt=function(he){return xt.s(Yt%12||12,he,"0")},re=Ae||function(he,ue,Ke){var je=he<12?"AM":"PM";return Ke?je.toLowerCase():je};return wt.replace(H,function(he,ue){return ue||function(Ke){switch(Ke){case"YY":return String(pt.$y).slice(-2);case"YYYY":return xt.s(pt.$y,4,"0");case"M":return ne+1;case"MM":return xt.s(ne+1,2,"0");case"MMM":return xe(it.monthsShort,ne,_e,3);case"MMMM":return xe(_e,ne);case"D":return pt.$D;case"DD":return xt.s(pt.$D,2,"0");case"d":return String(pt.$W);case"dd":return xe(it.weekdaysMin,pt.$W,oe,2);case"ddd":return xe(it.weekdaysShort,pt.$W,oe,3);case"dddd":return oe[pt.$W];case"H":return String(Yt);case"HH":return xt.s(Yt,2,"0");case"h":return Wt(1);case"hh":return Wt(2);case"a":return re(Yt,Ht,!0);case"A":return re(Yt,Ht,!1);case"m":return String(Ht);case"mm":return xt.s(Ht,2,"0");case"s":return String(pt.$s);case"ss":return xt.s(pt.$s,2,"0");case"SSS":return xt.s(pt.$ms,3,"0");case"Z":return Lt}return null}(he)||Lt.replace(":","")})},ot.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ot.diff=function(st,pt,it){var wt,Lt=this,Yt=xt.p(pt),Ht=ft(st),ne=(Ht.utcOffset()-this.utcOffset())*e,oe=this-Ht,_e=function(){return xt.m(Lt,Ht)};switch(Yt){case B:wt=_e()/12;break;case y:wt=_e();break;case g:wt=_e()/3;break;case m:wt=(oe-ne)/604800000;break;case h:wt=(oe-ne)/86400000;break;case c:wt=oe/i;break;case n:wt=oe/e;break;case o:wt=oe/r;break;default:wt=oe}return it?wt:xt.a(wt)},ot.daysInMonth=function(){return this.endOf(y).$D},ot.$locale=function(){return tt[this.$L]},ot.locale=function(st,pt){if(!st)return this.$L;var it=this.clone(),wt=lt(st,pt,!0);return wt&&(it.$L=wt),it},ot.clone=function(){return xt.w(this.$d,this)},ot.toDate=function(){return new Date(this.valueOf())},ot.toJSON=function(){return this.isValid()?this.toISOString():null},ot.toISOString=function(){return this.$d.toISOString()},ot.toString=function(){return this.$d.toUTCString()},Ct}(),kt=Bt.prototype;return ft.prototype=kt,[["$ms",s],["$s",o],["$m",n],["$H",c],["$W",h],["$M",y],["$y",B],["$D",v]].forEach(function(Ct){kt[Ct[1]]=function(ot){return this.$g(ot,Ct[0],Ct[1])}}),ft.extend=function(Ct,ot){return Ct.$i||(Ct(ot,Bt,ft),Ct.$i=!0),ft},ft.locale=lt,ft.isDayjs=ht,ft.unix=function(Ct){return ft(1000*Ct)},ft.en=tt[Q],ft.Ls=tt,ft.p={},ft})});var sm=Se(function(im){Object.defineProperty(im,"__esModule",{value:!0});im.BLANK_URL=im.relativeFirstCharacters=im.whitespaceEscapeCharsRegex=im.urlSchemeRegex=im.ctrlCharactersRegex=im.htmlCtrlEntityRegex=im.htmlEntitiesRegex=im.invalidProtocolRegex=void 0;im.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;im.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;im.htmlCtrlEntityRegex=/&(newline|tab);/gi;im.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;im.urlSchemeRegex=/^.+(:|&colon;)/gim;im.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;im.relativeFirstCharacters=[".","/"];im.BLANK_URL="about:blank"});var Zn=Se(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var xr=sm();function k2(r){return xr.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(xr.ctrlCharactersRegex,"");return e.replace(xr.htmlEntitiesRegex,function(i,s){return String.fromCharCode(s)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return xr.BLANK_URL;var e,i=am(r.trim());do i=w2(i).replace(xr.htmlCtrlEntityRegex,"").replace(xr.ctrlCharactersRegex,"").replace(xr.whitespaceEscapeCharsRegex,"").trim(),i=am(i),e=i.match(xr.ctrlCharactersRegex)||i.match(xr.htmlEntitiesRegex)||i.match(xr.htmlCtrlEntityRegex)||i.match(xr.whitespaceEscapeCharsRegex);while(e&&e.length>0);var s=i;if(!s)return xr.BLANK_URL;if(k2(s))return s;var o=s.trimStart(),n=o.match(xr.urlSchemeRegex);if(!n)return s;var c=n[0].toLowerCase().trim();if(xr.invalidProtocolRegex.test(c))return xr.BLANK_URL;var h=o.replace(/\\/g,"/");if(c==="mailto:"||c.includes("://"))return h;if(c==="http:"||c==="https:"){if(!S2(h))return xr.BLANK_URL;var m=new URL(h);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return h}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),Kt=(r,e)=>{for(var i in e)_d(r,i,{get:e[i],enumerable:!0})};var Bd=Ce(Na(),1),so={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},a={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},Hr=t(function(r="fatal"){let e=so.fatal;if(typeof r==="string"){if(r.toLowerCase()in so)e=so[r]}else if(typeof r==="number")e=r;if(a.trace=()=>{},a.debug=()=>{},a.info=()=>{},a.warn=()=>{},a.error=()=>{},a.fatal=()=>{},e<=so.fatal)a.fatal=console.error?console.error.bind(console,pi("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",pi("FATAL"));if(e<=so.error)a.error=console.error?console.error.bind(console,pi("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",pi("ERROR"));if(e<=so.warn)a.warn=console.warn?console.warn.bind(console,pi("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",pi("WARN"));if(e<=so.info)a.info=console.info?console.info.bind(console,pi("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",pi("INFO"));if(e<=so.debug)a.debug=console.debug?console.debug.bind(console,pi("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",pi("DEBUG"));if(e<=so.trace)a.trace=console.debug?console.debug.bind(console,pi("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",pi("TRACE"))},"setLogLevel"),pi=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var vn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let e=r/255;return r>0.03928?Math.pow((e+0.055)/1.055,2.4):e/12.92},hue2rgb:(r,e,i)=>{if(i<0)i+=1;if(i>1)i-=1;if(i<0.16666666666666666)return r+(e-r)*6*i;if(i<0.5)return e;if(i<0.6666666666666666)return r+(e-r)*(0.6666666666666666-i)*6;return r},hsl2rgb:({h:r,s:e,l:i},s)=>{if(!e)return i*2.55;r/=360,e/=100,i/=100;let o=i<0.5?i*(1+e):i+e-i*e,n=2*i-o;switch(s){case"r":return vn.hue2rgb(n,o,r+0.3333333333333333)*255;case"g":return vn.hue2rgb(n,o,r)*255;case"b":return vn.hue2rgb(n,o,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:i},s)=>{r/=255,e/=255,i/=255;let o=Math.max(r,e,i),n=Math.min(r,e,i),c=(o+n)/2;if(s==="l")return c*100;if(o===n)return 0;let h=o-n,m=c>0.5?h/(2-o-n):h/(o+n);if(s==="s")return m*100;switch(o){case r:return((e-i)/h+(e<i?6:0))*60;case e:return((i-r)/h+2)*60;case i:return((r-e)/h+4)*60;default:return-1}}},vd=vn;var rC={clamp:(r,e,i)=>{if(e>i)return Math.min(e,Math.max(i,r));return Math.min(i,Math.max(e,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Ld=rC;var iC={dec2hex:(r)=>{let e=Math.round(r).toString(16);return e.length>1?e:`0${e}`}},Fd=iC;var oC={channel:vd,lang:Ld,unit:Fd},z=oC;var ao={};for(let r=0;r<=255;r++)ao[r]=z.unit.dec2hex(r);var lr={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=lr.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=lr.ALL}is(r){return this.type===r}}var Md=Ad;class Ed{constructor(r,e){this.color=e,this.changed=!1,this.data=r,this.type=new Md}set(r,e){return this.color=e,this.changed=!1,this.data=r,this.type.type=lr.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:i,l:s}=r;if(e===void 0)r.h=z.channel.rgb2hsl(r,"h");if(i===void 0)r.s=z.channel.rgb2hsl(r,"s");if(s===void 0)r.l=z.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:i,b:s}=r;if(e===void 0)r.r=z.channel.hsl2rgb(r,"r");if(i===void 0)r.g=z.channel.hsl2rgb(r,"g");if(s===void 0)r.b=z.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(lr.HSL)&&e!==void 0)return e;return this._ensureHSL(),z.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(lr.HSL)&&e!==void 0)return e;return this._ensureHSL(),z.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(lr.HSL)&&e!==void 0)return e;return this._ensureHSL(),z.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(lr.RGB)&&e!==void 0)return e;return this._ensureRGB(),z.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(lr.RGB)&&e!==void 0)return e;return this._ensureRGB(),z.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(lr.RGB)&&e!==void 0)return e;return this._ensureRGB(),z.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(lr.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(lr.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(lr.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(lr.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(lr.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(lr.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Od=Ed;var sC=new Od({r:0,g:0,b:0,a:0},"transparent"),zo=sC;var Id={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let e=r.match(Id.re);if(!e)return;let i=e[1],s=parseInt(i,16),o=i.length,n=o%4===0,c=o>4,h=c?1:17,m=c?8:4,y=n?0:-1,g=c?255:15;return zo.set({r:(s>>m*(y+3)&g)*h,g:(s>>m*(y+2)&g)*h,b:(s>>m*(y+1)&g)*h,a:n?(s&g)*h/255:1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`#${ao[Math.round(e)]}${ao[Math.round(i)]}${ao[Math.round(s)]}${ao[Math.round(o*255)]}`;else return`#${ao[Math.round(e)]}${ao[Math.round(i)]}${ao[Math.round(s)]}`}},Ko=Id;var Fn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:(r)=>{let e=r.match(Fn.hueRe);if(e){let[,i,s]=e;switch(s){case"grad":return z.channel.clamp.h(parseFloat(i)*0.9);case"rad":return z.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return z.channel.clamp.h(parseFloat(i)*360)}}return z.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let i=r.match(Fn.re);if(!i)return;let[,s,o,n,c,h]=i;return zo.set({h:Fn._hue2deg(s),s:z.channel.clamp.s(parseFloat(o)),l:z.channel.clamp.l(parseFloat(n)),a:c?z.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},r)},stringify:(r)=>{let{h:e,s:i,l:s,a:o}=r;if(o<1)return`hsla(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(s)}%, ${o})`;else return`hsl(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(s)}%)`}},Ys=Fn;var On={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let e=On.colors[r];if(!e)return;return Ko.parse(e)},stringify:(r)=>{let e=Ko.stringify(r);for(let i in On.colors)if(On.colors[i]===e)return i;return}},_h=On;var $d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:(r)=>{let e=r.charCodeAt(0);if(e!==114&&e!==82)return;let i=r.match($d.re);if(!i)return;let[,s,o,n,c,h,m,y,g]=i;return zo.set({r:z.channel.clamp.r(o?parseFloat(s)*2.55:parseFloat(s)),g:z.channel.clamp.g(c?parseFloat(n)*2.55:parseFloat(n)),b:z.channel.clamp.b(m?parseFloat(h)*2.55:parseFloat(h)),a:y?z.channel.clamp.a(g?parseFloat(y)/100:parseFloat(y)):1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`rgba(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(s)}, ${z.lang.round(o)})`;else return`rgb(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(s)})`}},Us=$d;var aC={format:{keyword:_h,hex:Ko,rgb:Us,rgba:Us,hsl:Ys,hsla:Ys},parse:(r)=>{if(typeof r!=="string")return r;let e=Ko.parse(r)||Us.parse(r)||Ys.parse(r)||_h.parse(r);if(e)return e;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(lr.HSL)||r.data.r===void 0)return Ys.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return Us.stringify(r);else return Ko.stringify(r)}},De=aC;var nC=(r,e)=>{let i=De.parse(r);for(let s in e)i[s]=z.channel.clamp[s](e[s]);return De.stringify(i)},$n=nC;var lC=(r,e,i=0,s=1)=>{if(typeof r!=="number")return $n(r,{a:e});let o=zo.set({r:z.channel.clamp.r(r),g:z.channel.clamp.g(e),b:z.channel.clamp.b(i),a:z.channel.clamp.a(s)});return De.stringify(o)},de=lC;var hC=(r)=>{let{r:e,g:i,b:s}=De.parse(r),o=0.2126*z.channel.toLinear(e)+0.7152*z.channel.toLinear(i)+0.0722*z.channel.toLinear(s);return z.lang.round(o)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),X=uC;var fC=(r,e,i)=>{let s=De.parse(r),o=s[e],n=z.channel.clamp[e](o+i);if(o!==n)s[e]=n;return De.stringify(s)},_r=fC;var dC=(r,e)=>_r(r,"l",e),u=dC;var pC=(r,e)=>_r(r,"l",-e),d=pC;var gC=(r,e)=>{let i=De.parse(r),s={};for(let o in e){if(!e[o])continue;s[o]=i[o]+e[o]}return $n(r,s)},G=gC;var mC=(r,e,i=50)=>{let{r:s,g:o,b:n,a:c}=De.parse(r),{r:h,g:m,b:y,a:g}=De.parse(e),B=i/100,v=B*2-1,q=c-g,H=((v*q===-1?v:(v+q)/(1+v*q))+1)/2,Y=1-H,U=s*H+h*Y,K=o*H+m*Y,Q=n*H+y*Y,tt=c*B+g*(1-B);return de(U,K,Q,tt)},Rd=mC;var yC=(r,e=100)=>{let i=De.parse(r);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Rd(i,r,e)},ct=yC;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function xC(r,e){this.v=r,this.k=e}function qd(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,s=Array(e);i<e;i++)s[i]=r[i];return s}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var s,o,n,c,h=[],m=!0,y=!1;try{if(n=(i=i.call(r)).next,e===0){if(Object(i)!==i)return;m=!1}else for(;!(m=(s=n.call(i)).done)&&(h.push(s.value),h.length!==e);m=!0);}catch(g){y=!0,o=g}finally{try{if(!m&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(y)throw o}}return h}}function kC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{Ce,Se,_}from"./chunk-jy448465.js";var Na=Se(function(Sh,Th){(function(r,e){typeof Sh=="object"&&typeof Th<"u"?Th.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(Sh,function(){var r=1000,e=60000,i=3600000,s="millisecond",o="second",n="minute",c="hour",h="day",m="week",y="month",g="quarter",B="year",v="date",q="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ct){var ot=["th","st","nd","rd"],st=Ct%100;return"["+Ct+(ot[(st-20)%10]||ot[st]||ot[0])+"]"}},U=function(Ct,ot,st){var pt=String(Ct);return!pt||pt.length>=ot?Ct:""+Array(ot+1-pt.length).join(st)+Ct},K={s:U,z:function(Ct){var ot=-Ct.utcOffset(),st=Math.abs(ot),pt=Math.floor(st/60),it=st%60;return(ot<=0?"+":"-")+U(pt,2,"0")+":"+U(it,2,"0")},m:function Ct(ot,st){if(ot.date()<st.date())return-Ct(st,ot);var pt=12*(st.year()-ot.year())+(st.month()-ot.month()),it=ot.clone().add(pt,y),wt=st-it<0,Lt=ot.clone().add(pt+(wt?-1:1),y);return+(-(pt+(st-it)/(wt?it-Lt:Lt-it))||0)},a:function(Ct){return Ct<0?Math.ceil(Ct)||0:Math.floor(Ct)},p:function(Ct){return{M:y,y:B,w:m,d:h,D:v,h:c,m:n,s:o,ms:s,Q:g}[Ct]||String(Ct||"").toLowerCase().replace(/s$/,"")},u:function(Ct){return Ct===void 0}},Q="en",tt={};tt[Q]=Y;var et="$isDayjsObject",ht=function(Ct){return Ct instanceof Bt||!(!Ct||!Ct[et])},lt=function Ct(ot,st,pt){var it;if(!ot)return Q;if(typeof ot=="string"){var wt=ot.toLowerCase();tt[wt]&&(it=wt),st&&(tt[wt]=st,it=wt);var Lt=ot.split("-");if(!it&&Lt.length>1)return Ct(Lt[0])}else{var Yt=ot.name;tt[Yt]=ot,it=Yt}return!pt&&it&&(Q=it),it||!pt&&Q},ft=function(Ct,ot){if(ht(Ct))return Ct.clone();var st=typeof ot=="object"?ot:{};return st.date=Ct,st.args=arguments,new Bt(st)},xt=K;xt.l=lt,xt.i=ht,xt.w=function(Ct,ot){return ft(Ct,{locale:ot.$L,utc:ot.$u,x:ot.$x,$offset:ot.$offset})};var Bt=function(){function Ct(st){this.$L=lt(st.locale,null,!0),this.parse(st),this.$x=this.$x||st.x||{},this[et]=!0}var ot=Ct.prototype;return ot.parse=function(st){this.$d=function(pt){var{date:it,utc:wt}=pt;if(it===null)return new Date(NaN);if(xt.u(it))return new Date;if(it instanceof Date)return new Date(it);if(typeof it=="string"&&!/Z$/i.test(it)){var Lt=it.match(W);if(Lt){var Yt=Lt[2]-1||0,Ht=(Lt[7]||"0").substring(0,3);return wt?new Date(Date.UTC(Lt[1],Yt,Lt[3]||1,Lt[4]||0,Lt[5]||0,Lt[6]||0,Ht)):new Date(Lt[1],Yt,Lt[3]||1,Lt[4]||0,Lt[5]||0,Lt[6]||0,Ht)}}return new Date(it)}(st),this.init()},ot.init=function(){var st=this.$d;this.$y=st.getFullYear(),this.$M=st.getMonth(),this.$D=st.getDate(),this.$W=st.getDay(),this.$H=st.getHours(),this.$m=st.getMinutes(),this.$s=st.getSeconds(),this.$ms=st.getMilliseconds()},ot.$utils=function(){return xt},ot.isValid=function(){return this.$d.toString()!==q},ot.isSame=function(st,pt){var it=ft(st);return this.startOf(pt)<=it&&it<=this.endOf(pt)},ot.isAfter=function(st,pt){return ft(st)<this.startOf(pt)},ot.isBefore=function(st,pt){return this.endOf(pt)<ft(st)},ot.$g=function(st,pt,it){return xt.u(st)?this[pt]:this.set(it,st)},ot.unix=function(){return Math.floor(this.valueOf()/1000)},ot.valueOf=function(){return this.$d.getTime()},ot.startOf=function(st,pt){var it=this,wt=!!xt.u(pt)||pt,Lt=xt.p(st),Yt=function(re,he){var ue=xt.w(it.$u?Date.UTC(it.$y,he,re):new Date(it.$y,he,re),it);return wt?ue:ue.endOf(h)},Ht=function(re,he){return xt.w(it.toDate()[re].apply(it.toDate("s"),(wt?[0,0,0,0]:[23,59,59,999]).slice(he)),it)},ne=this.$W,oe=this.$M,_e=this.$D,Ae="set"+(this.$u?"UTC":"");switch(Lt){case B:return wt?Yt(1,0):Yt(31,11);case y:return wt?Yt(1,oe):Yt(0,oe+1);case m:var xe=this.$locale().weekStart||0,Wt=(ne<xe?ne+7:ne)-xe;return Yt(wt?_e-Wt:_e+(6-Wt),oe);case h:case v:return Ht(Ae+"Hours",0);case c:return Ht(Ae+"Minutes",1);case n:return Ht(Ae+"Seconds",2);case o:return Ht(Ae+"Milliseconds",3);default:return this.clone()}},ot.endOf=function(st){return this.startOf(st,!1)},ot.$set=function(st,pt){var it,wt=xt.p(st),Lt="set"+(this.$u?"UTC":""),Yt=(it={},it[h]=Lt+"Date",it[v]=Lt+"Date",it[y]=Lt+"Month",it[B]=Lt+"FullYear",it[c]=Lt+"Hours",it[n]=Lt+"Minutes",it[o]=Lt+"Seconds",it[s]=Lt+"Milliseconds",it)[wt],Ht=wt===h?this.$D+(pt-this.$W):pt;if(wt===y||wt===B){var ne=this.clone().set(v,1);ne.$d[Yt](Ht),ne.init(),this.$d=ne.set(v,Math.min(this.$D,ne.daysInMonth())).$d}else Yt&&this.$d[Yt](Ht);return this.init(),this},ot.set=function(st,pt){return this.clone().$set(st,pt)},ot.get=function(st){return this[xt.p(st)]()},ot.add=function(st,pt){var it,wt=this;st=Number(st);var Lt=xt.p(pt),Yt=function(oe){var _e=ft(wt);return xt.w(_e.date(_e.date()+Math.round(oe*st)),wt)};if(Lt===y)return this.set(y,this.$M+st);if(Lt===B)return this.set(B,this.$y+st);if(Lt===h)return Yt(1);if(Lt===m)return Yt(7);var Ht=(it={},it[n]=e,it[c]=i,it[o]=r,it)[Lt]||1,ne=this.$d.getTime()+st*Ht;return xt.w(ne,this)},ot.subtract=function(st,pt){return this.add(-1*st,pt)},ot.format=function(st){var pt=this,it=this.$locale();if(!this.isValid())return it.invalidDate||q;var wt=st||"YYYY-MM-DDTHH:mm:ssZ",Lt=xt.z(this),Yt=this.$H,Ht=this.$m,ne=this.$M,{weekdays:oe,months:_e,meridiem:Ae}=it,xe=function(he,ue,Ke,je){return he&&(he[ue]||he(pt,wt))||Ke[ue].slice(0,je)},Wt=function(he){return xt.s(Yt%12||12,he,"0")},re=Ae||function(he,ue,Ke){var je=he<12?"AM":"PM";return Ke?je.toLowerCase():je};return wt.replace(H,function(he,ue){return ue||function(Ke){switch(Ke){case"YY":return String(pt.$y).slice(-2);case"YYYY":return xt.s(pt.$y,4,"0");case"M":return ne+1;case"MM":return xt.s(ne+1,2,"0");case"MMM":return xe(it.monthsShort,ne,_e,3);case"MMMM":return xe(_e,ne);case"D":return pt.$D;case"DD":return xt.s(pt.$D,2,"0");case"d":return String(pt.$W);case"dd":return xe(it.weekdaysMin,pt.$W,oe,2);case"ddd":return xe(it.weekdaysShort,pt.$W,oe,3);case"dddd":return oe[pt.$W];case"H":return String(Yt);case"HH":return xt.s(Yt,2,"0");case"h":return Wt(1);case"hh":return Wt(2);case"a":return re(Yt,Ht,!0);case"A":return re(Yt,Ht,!1);case"m":return String(Ht);case"mm":return xt.s(Ht,2,"0");case"s":return String(pt.$s);case"ss":return xt.s(pt.$s,2,"0");case"SSS":return xt.s(pt.$ms,3,"0");case"Z":return Lt}return null}(he)||Lt.replace(":","")})},ot.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ot.diff=function(st,pt,it){var wt,Lt=this,Yt=xt.p(pt),Ht=ft(st),ne=(Ht.utcOffset()-this.utcOffset())*e,oe=this-Ht,_e=function(){return xt.m(Lt,Ht)};switch(Yt){case B:wt=_e()/12;break;case y:wt=_e();break;case g:wt=_e()/3;break;case m:wt=(oe-ne)/604800000;break;case h:wt=(oe-ne)/86400000;break;case c:wt=oe/i;break;case n:wt=oe/e;break;case o:wt=oe/r;break;default:wt=oe}return it?wt:xt.a(wt)},ot.daysInMonth=function(){return this.endOf(y).$D},ot.$locale=function(){return tt[this.$L]},ot.locale=function(st,pt){if(!st)return this.$L;var it=this.clone(),wt=lt(st,pt,!0);return wt&&(it.$L=wt),it},ot.clone=function(){return xt.w(this.$d,this)},ot.toDate=function(){return new Date(this.valueOf())},ot.toJSON=function(){return this.isValid()?this.toISOString():null},ot.toISOString=function(){return this.$d.toISOString()},ot.toString=function(){return this.$d.toUTCString()},Ct}(),kt=Bt.prototype;return ft.prototype=kt,[["$ms",s],["$s",o],["$m",n],["$H",c],["$W",h],["$M",y],["$y",B],["$D",v]].forEach(function(Ct){kt[Ct[1]]=function(ot){return this.$g(ot,Ct[0],Ct[1])}}),ft.extend=function(Ct,ot){return Ct.$i||(Ct(ot,Bt,ft),Ct.$i=!0),ft},ft.locale=lt,ft.isDayjs=ht,ft.unix=function(Ct){return ft(1000*Ct)},ft.en=tt[Q],ft.Ls=tt,ft.p={},ft})});var sm=Se(function(im){Object.defineProperty(im,"__esModule",{value:!0});im.BLANK_URL=im.relativeFirstCharacters=im.whitespaceEscapeCharsRegex=im.urlSchemeRegex=im.ctrlCharactersRegex=im.htmlCtrlEntityRegex=im.htmlEntitiesRegex=im.invalidProtocolRegex=void 0;im.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;im.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;im.htmlCtrlEntityRegex=/&(newline|tab);/gi;im.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;im.urlSchemeRegex=/^.+(:|&colon;)/gim;im.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;im.relativeFirstCharacters=[".","/"];im.BLANK_URL="about:blank"});var Zn=Se(function(nm){Object.defineProperty(nm,"__esModule",{value:!0});nm.sanitizeUrl=T2;var xr=sm();function k2(r){return xr.relativeFirstCharacters.indexOf(r[0])>-1}function w2(r){var e=r.replace(xr.ctrlCharactersRegex,"");return e.replace(xr.htmlEntitiesRegex,function(i,s){return String.fromCharCode(s)})}function S2(r){return URL.canParse(r)}function am(r){try{return decodeURIComponent(r)}catch(e){return r}}function T2(r){if(!r)return xr.BLANK_URL;var e,i=am(r.trim());do i=w2(i).replace(xr.htmlCtrlEntityRegex,"").replace(xr.ctrlCharactersRegex,"").replace(xr.whitespaceEscapeCharsRegex,"").trim(),i=am(i),e=i.match(xr.ctrlCharactersRegex)||i.match(xr.htmlEntitiesRegex)||i.match(xr.htmlCtrlEntityRegex)||i.match(xr.whitespaceEscapeCharsRegex);while(e&&e.length>0);var s=i;if(!s)return xr.BLANK_URL;if(k2(s))return s;var o=s.trimStart(),n=o.match(xr.urlSchemeRegex);if(!n)return s;var c=n[0].toLowerCase().trim();if(xr.invalidProtocolRegex.test(c))return xr.BLANK_URL;var h=o.replace(/\\/g,"/");if(c==="mailto:"||c.includes("://"))return h;if(c==="http:"||c==="https:"){if(!S2(h))return xr.BLANK_URL;var m=new URL(h);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return h}});var _d=Object.defineProperty,t=(r,e)=>_d(r,"name",{value:e,configurable:!0}),Kt=(r,e)=>{for(var i in e)_d(r,i,{get:e[i],enumerable:!0})};var Bd=Ce(Na(),1),so={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},a={trace:t((...r)=>{},"trace"),debug:t((...r)=>{},"debug"),info:t((...r)=>{},"info"),warn:t((...r)=>{},"warn"),error:t((...r)=>{},"error"),fatal:t((...r)=>{},"fatal")},Hr=t(function(r="fatal"){let e=so.fatal;if(typeof r==="string"){if(r.toLowerCase()in so)e=so[r]}else if(typeof r==="number")e=r;if(a.trace=()=>{},a.debug=()=>{},a.info=()=>{},a.warn=()=>{},a.error=()=>{},a.fatal=()=>{},e<=so.fatal)a.fatal=console.error?console.error.bind(console,pi("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",pi("FATAL"));if(e<=so.error)a.error=console.error?console.error.bind(console,pi("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",pi("ERROR"));if(e<=so.warn)a.warn=console.warn?console.warn.bind(console,pi("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",pi("WARN"));if(e<=so.info)a.info=console.info?console.info.bind(console,pi("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",pi("INFO"));if(e<=so.debug)a.debug=console.debug?console.debug.bind(console,pi("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",pi("DEBUG"));if(e<=so.trace)a.trace=console.debug?console.debug.bind(console,pi("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",pi("TRACE"))},"setLogLevel"),pi=t((r)=>`%c${Bd.default().format("ss.SSS")} : ${r} : `,"format");var vn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:(r)=>r>=255?255:r<0?0:r,g:(r)=>r>=255?255:r<0?0:r,b:(r)=>r>=255?255:r<0?0:r,h:(r)=>r%360,s:(r)=>r>=100?100:r<0?0:r,l:(r)=>r>=100?100:r<0?0:r,a:(r)=>r>=1?1:r<0?0:r},toLinear:(r)=>{let e=r/255;return r>0.03928?Math.pow((e+0.055)/1.055,2.4):e/12.92},hue2rgb:(r,e,i)=>{if(i<0)i+=1;if(i>1)i-=1;if(i<0.16666666666666666)return r+(e-r)*6*i;if(i<0.5)return e;if(i<0.6666666666666666)return r+(e-r)*(0.6666666666666666-i)*6;return r},hsl2rgb:({h:r,s:e,l:i},s)=>{if(!e)return i*2.55;r/=360,e/=100,i/=100;let o=i<0.5?i*(1+e):i+e-i*e,n=2*i-o;switch(s){case"r":return vn.hue2rgb(n,o,r+0.3333333333333333)*255;case"g":return vn.hue2rgb(n,o,r)*255;case"b":return vn.hue2rgb(n,o,r-0.3333333333333333)*255}},rgb2hsl:({r,g:e,b:i},s)=>{r/=255,e/=255,i/=255;let o=Math.max(r,e,i),n=Math.min(r,e,i),c=(o+n)/2;if(s==="l")return c*100;if(o===n)return 0;let h=o-n,m=c>0.5?h/(2-o-n):h/(o+n);if(s==="s")return m*100;switch(o){case r:return((e-i)/h+(e<i?6:0))*60;case e:return((i-r)/h+2)*60;case i:return((r-e)/h+4)*60;default:return-1}}},vd=vn;var rC={clamp:(r,e,i)=>{if(e>i)return Math.min(e,Math.max(i,r));return Math.min(i,Math.max(e,r))},round:(r)=>Math.round(r*10000000000)/10000000000},Ld=rC;var iC={dec2hex:(r)=>{let e=Math.round(r).toString(16);return e.length>1?e:`0${e}`}},Fd=iC;var oC={channel:vd,lang:Ld,unit:Fd},z=oC;var ao={};for(let r=0;r<=255;r++)ao[r]=z.unit.dec2hex(r);var lr={ALL:0,RGB:1,HSL:2};class Ad{constructor(){this.type=lr.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=lr.ALL}is(r){return this.type===r}}var Md=Ad;class Ed{constructor(r,e){this.color=e,this.changed=!1,this.data=r,this.type=new Md}set(r,e){return this.color=e,this.changed=!1,this.data=r,this.type.type=lr.ALL,this}_ensureHSL(){let r=this.data,{h:e,s:i,l:s}=r;if(e===void 0)r.h=z.channel.rgb2hsl(r,"h");if(i===void 0)r.s=z.channel.rgb2hsl(r,"s");if(s===void 0)r.l=z.channel.rgb2hsl(r,"l")}_ensureRGB(){let r=this.data,{r:e,g:i,b:s}=r;if(e===void 0)r.r=z.channel.hsl2rgb(r,"r");if(i===void 0)r.g=z.channel.hsl2rgb(r,"g");if(s===void 0)r.b=z.channel.hsl2rgb(r,"b")}get r(){let r=this.data,e=r.r;if(!this.type.is(lr.HSL)&&e!==void 0)return e;return this._ensureHSL(),z.channel.hsl2rgb(r,"r")}get g(){let r=this.data,e=r.g;if(!this.type.is(lr.HSL)&&e!==void 0)return e;return this._ensureHSL(),z.channel.hsl2rgb(r,"g")}get b(){let r=this.data,e=r.b;if(!this.type.is(lr.HSL)&&e!==void 0)return e;return this._ensureHSL(),z.channel.hsl2rgb(r,"b")}get h(){let r=this.data,e=r.h;if(!this.type.is(lr.RGB)&&e!==void 0)return e;return this._ensureRGB(),z.channel.rgb2hsl(r,"h")}get s(){let r=this.data,e=r.s;if(!this.type.is(lr.RGB)&&e!==void 0)return e;return this._ensureRGB(),z.channel.rgb2hsl(r,"s")}get l(){let r=this.data,e=r.l;if(!this.type.is(lr.RGB)&&e!==void 0)return e;return this._ensureRGB(),z.channel.rgb2hsl(r,"l")}get a(){return this.data.a}set r(r){this.type.set(lr.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(lr.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(lr.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(lr.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(lr.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(lr.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}var Od=Ed;var sC=new Od({r:0,g:0,b:0,a:0},"transparent"),zo=sC;var Id={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:(r)=>{if(r.charCodeAt(0)!==35)return;let e=r.match(Id.re);if(!e)return;let i=e[1],s=parseInt(i,16),o=i.length,n=o%4===0,c=o>4,h=c?1:17,m=c?8:4,y=n?0:-1,g=c?255:15;return zo.set({r:(s>>m*(y+3)&g)*h,g:(s>>m*(y+2)&g)*h,b:(s>>m*(y+1)&g)*h,a:n?(s&g)*h/255:1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`#${ao[Math.round(e)]}${ao[Math.round(i)]}${ao[Math.round(s)]}${ao[Math.round(o*255)]}`;else return`#${ao[Math.round(e)]}${ao[Math.round(i)]}${ao[Math.round(s)]}`}},Ko=Id;var Fn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:(r)=>{let e=r.match(Fn.hueRe);if(e){let[,i,s]=e;switch(s){case"grad":return z.channel.clamp.h(parseFloat(i)*0.9);case"rad":return z.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return z.channel.clamp.h(parseFloat(i)*360)}}return z.channel.clamp.h(parseFloat(r))},parse:(r)=>{let e=r.charCodeAt(0);if(e!==104&&e!==72)return;let i=r.match(Fn.re);if(!i)return;let[,s,o,n,c,h]=i;return zo.set({h:Fn._hue2deg(s),s:z.channel.clamp.s(parseFloat(o)),l:z.channel.clamp.l(parseFloat(n)),a:c?z.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},r)},stringify:(r)=>{let{h:e,s:i,l:s,a:o}=r;if(o<1)return`hsla(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(s)}%, ${o})`;else return`hsl(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(s)}%)`}},Ys=Fn;var On={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:(r)=>{r=r.toLowerCase();let e=On.colors[r];if(!e)return;return Ko.parse(e)},stringify:(r)=>{let e=Ko.stringify(r);for(let i in On.colors)if(On.colors[i]===e)return i;return}},_h=On;var $d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:(r)=>{let e=r.charCodeAt(0);if(e!==114&&e!==82)return;let i=r.match($d.re);if(!i)return;let[,s,o,n,c,h,m,y,g]=i;return zo.set({r:z.channel.clamp.r(o?parseFloat(s)*2.55:parseFloat(s)),g:z.channel.clamp.g(c?parseFloat(n)*2.55:parseFloat(n)),b:z.channel.clamp.b(m?parseFloat(h)*2.55:parseFloat(h)),a:y?z.channel.clamp.a(g?parseFloat(y)/100:parseFloat(y)):1},r)},stringify:(r)=>{let{r:e,g:i,b:s,a:o}=r;if(o<1)return`rgba(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(s)}, ${z.lang.round(o)})`;else return`rgb(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(s)})`}},Us=$d;var aC={format:{keyword:_h,hex:Ko,rgb:Us,rgba:Us,hsl:Ys,hsla:Ys},parse:(r)=>{if(typeof r!=="string")return r;let e=Ko.parse(r)||Us.parse(r)||Ys.parse(r)||_h.parse(r);if(e)return e;throw Error(`Unsupported color format: "${r}"`)},stringify:(r)=>{if(!r.changed&&r.color)return r.color;if(r.type.is(lr.HSL)||r.data.r===void 0)return Ys.stringify(r);else if(r.a<1||!Number.isInteger(r.r)||!Number.isInteger(r.g)||!Number.isInteger(r.b))return Us.stringify(r);else return Ko.stringify(r)}},De=aC;var nC=(r,e)=>{let i=De.parse(r);for(let s in e)i[s]=z.channel.clamp[s](e[s]);return De.stringify(i)},$n=nC;var lC=(r,e,i=0,s=1)=>{if(typeof r!=="number")return $n(r,{a:e});let o=zo.set({r:z.channel.clamp.r(r),g:z.channel.clamp.g(e),b:z.channel.clamp.b(i),a:z.channel.clamp.a(s)});return De.stringify(o)},de=lC;var hC=(r)=>{let{r:e,g:i,b:s}=De.parse(r),o=0.2126*z.channel.toLinear(e)+0.7152*z.channel.toLinear(i)+0.0722*z.channel.toLinear(s);return z.lang.round(o)},Dd=hC;var cC=(r)=>Dd(r)>=0.5,Pd=cC;var uC=(r)=>!Pd(r),X=uC;var fC=(r,e,i)=>{let s=De.parse(r),o=s[e],n=z.channel.clamp[e](o+i);if(o!==n)s[e]=n;return De.stringify(s)},_r=fC;var dC=(r,e)=>_r(r,"l",e),u=dC;var pC=(r,e)=>_r(r,"l",-e),d=pC;var gC=(r,e)=>{let i=De.parse(r),s={};for(let o in e){if(!e[o])continue;s[o]=i[o]+e[o]}return $n(r,s)},G=gC;var mC=(r,e,i=50)=>{let{r:s,g:o,b:n,a:c}=De.parse(r),{r:h,g:m,b:y,a:g}=De.parse(e),B=i/100,v=B*2-1,q=c-g,H=((v*q===-1?v:(v+q)/(1+v*q))+1)/2,Y=1-H,U=s*H+h*Y,K=o*H+m*Y,Q=n*H+y*Y,tt=c*B+g*(1-B);return de(U,K,Q,tt)},Rd=mC;var yC=(r,e=100)=>{let i=De.parse(r);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,Rd(i,r,e)},ct=yC;/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function xC(r,e){this.v=r,this.k=e}function qd(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,s=Array(e);i<e;i++)s[i]=r[i];return s}function CC(r){if(Array.isArray(r))return r}function bC(r,e){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var s,o,n,c,h=[],m=!0,y=!1;try{if(n=(i=i.call(r)).next,e===0){if(Object(i)!==i)return;m=!1}else for(;!(m=(s=n.call(i)).done)&&(h.push(s.value),h.length!==e);m=!0);}catch(g){y=!0,o=g}finally{try{if(!m&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(y)throw o}}return h}}function kC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function wC(r,e){return CC(r)||bC(r,e)||SC(r,e)||kC()}function SC(r,e){if(r){if(typeof r=="string")return qd(r,e);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?qd(r,e):void 0}}function Pn(r){var e,i;function s(n,c){try{var h=r[n](c),m=h.value,y=m instanceof xC;Promise.resolve(y?m.v:m).then(function(g){if(y){var B=n==="return"&&m.k?n:"next";if(!m.k||g.done)return s(B,g);g=r[B](g).value}o(!!h.done,g)},function(g){s("throw",g)})}catch(g){o(2,g)}}function o(n,c){n===2?e.reject(c):e.resolve({value:c,done:n}),(e=e.next)?s(e.key,e.arg):i=null}this._invoke=function(n,c){return new Promise(function(h,m){var y={key:n,arg:c,resolve:h,reject:m,next:null};i?i=i.next=y:(e=i=y,s(n,c))})},typeof r.return!="function"&&(this.return=void 0)}Pn.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Pn.prototype.next=function(r){return this._invoke("next",r)},Pn.prototype.throw=function(r){return this._invoke("throw",r)},Pn.prototype.return=function(r){return this._invoke("return",r)};var{entries:tp,setPrototypeOf:Nd,isFrozen:TC,getPrototypeOf:ep,getOwnPropertyDescriptor:rp,freeze:cr,seal:dr,create:ds}=Object,ip=typeof Reflect<"u"&&Reflect,{apply:$h,construct:Dh}=ip;if(!cr)cr=function(e){return e};if(!dr)dr=function(e){return e};if(!$h)$h=function(e,i){for(var s=arguments.length,o=Array(s>2?s-2:0),n=2;n<s;n++)o[n-2]=arguments[n];return e.apply(i,o)};if(!Dh)Dh=function(e){for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return new e(...s)};var lo=Qe(Array.prototype.forEach);Array.prototype.indexOf;var _C=Qe(Array.prototype.lastIndexOf),Wd=Qe(Array.prototype.pop),js=Qe(Array.prototype.push),BC=Qe(Array.prototype.slice),vC=Qe(Array.prototype.splice),ps=Array.isArray,Bh=op(Set),vh=Qe(Set.prototype.add),Gs=Qe(Set.prototype.has),Zo=Qe(String.prototype.toLowerCase),Lh=Qe(String.prototype.toString),zd=Qe(String.prototype.match),Xs=Qe(String.prototype.replace),Hd=Qe(String.prototype.indexOf),LC=Qe(String.prototype.trim),FC=Qe(Number.prototype.toString),AC=Qe(Boolean.prototype.toString),Yd=typeof BigInt>"u"?null:Qe(BigInt.prototype.toString),Ud=typeof Symbol>"u"?null:Qe(Symbol.prototype.toString),Wr=Qe(Object.prototype.hasOwnProperty),Vs=Qe(Object.prototype.toString),fr=Qe(RegExp.prototype.test),co=op(TypeError);function Qe(r){return function(e){if(e instanceof RegExp)e.lastIndex=0;for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return $h(r,e,s)}}function op(r){return function(){for(var e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];return Dh(r,i)}}function Ie(r,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zo;if(Nd)Nd(r,null);if(!ps(e))return r;let s=e.length;while(s--){let o=e[s];if(typeof o==="string"){let n=i(o);if(n!==o){if(!TC(e))e[s]=n;o=n}}r[o]=!0}return r}function MC(r){for(let e=0;e<r.length;e++)if(!Wr(r,e))r[e]=null;return r}function jr(r){let e=ds(null);for(let s of tp(r)){var i=wC(s,2);let o=i[0],n=i[1];if(Wr(r,o))if(ps(n))e[o]=MC(n);else if(n&&typeof n==="object"&&n.constructor===Object)e[o]=jr(n);else e[o]=n}return e}function EC(r){switch(typeof r){case"string":return r;case"number":return FC(r);case"boolean":return AC(r);case"bigint":return Yd?Yd(r):"0";case"symbol":return Ud?Ud(r):"Symbol()";case"undefined":return Vs(r);case"function":case"object":{if(r===null)return Vs(r);let e=r,i=gi(e,"toString");if(typeof i==="function"){let s=i(e);return typeof s==="string"?s:Vs(s)}return Vs(r)}default:return Vs(r)}}function gi(r,e){while(r!==null){let s=rp(r,e);if(s){if(s.get)return Qe(s.get);if(typeof s.value==="function")return Qe(s.value)}r=ep(r)}function i(){return null}return i}function OC(r,e){while(r!==null){let i=rp(r,e);if(i)return i.get?Qe(i.get):null;r=ep(r)}return null}function IC(r){try{return fr(r,""),!0}catch(e){return!1}}var jd=cr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fh=cr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ah=cr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$C=cr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mh=cr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),DC=cr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gd=cr(["#text"]),Xd=cr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Eh=cr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vd=cr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zn=cr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PC=dr(/{{[\w\W]*|^[\w\W]*}}/g),RC=dr(/<%[\w\W]*|^[\w\W]*%>/g),qC=dr(/\${[\w\W]*/g),NC=dr(/^data-[\-\w.\u00B7-\uFFFF]+$/),WC=dr(/^aria-[\-\w]+$/),Kd=dr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zC=dr(/^(?:\w+script|data):/i),HC=dr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YC=dr(/^html$/i),UC=dr(/^[a-z][.\w]*(-[.\w]+)+$/i),Oh=dr(/<[/\w!]/g),Zd=dr(/<[/\w]/g),jC=dr(/<\/no(script|embed|frames)/i),Qd=dr(/\/>/i),ar={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GC=cr(Ie({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),XC=function(){return typeof window>"u"?null:window},VC=function(e,i){if(typeof e!=="object"||typeof e.createPolicy!=="function")return null;let s=null,o="data-tt-policy-suffix";if(i&&i.hasAttribute(o))s=i.getAttribute(o);let n="dompurify"+(s?"#"+s:"");try{return e.createPolicy(n,{createHTML(c){return c},createScriptURL(c){return c}})}catch(c){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Jd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ho=function(e,i,s,o){return Wr(e,i)&&ps(e[i])?Ie(o.base?jr(o.base):{},e[i],o.transform):s},Ih=function(e,i,s){let o=Wr(e,i)?e[i]:void 0;return o&&typeof o==="object"?jr(o):s()};function sp(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC(),e=(Rt)=>sp(Rt);if(e.version="3.4.17",e.removed=[],!r||!r.document||r.document.nodeType!==ar.document||!r.Element)return e.isSupported=!1,e;let i=r.document,s=i,o=s.currentScript;r.DocumentFragment;let{HTMLTemplateElement:n,Node:c,Element:h,NodeFilter:m}=r;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let{DOMParser:y,trustedTypes:g}=r,B=h.prototype,v=gi(B,"cloneNode"),q=gi(B,"remove"),W=gi(B,"removeAttributeNode"),H=gi(B,"nextSibling"),Y=gi(B,"childNodes"),U=gi(B,"parentNode"),K=gi(B,"shadowRoot"),Q=gi(B,"attributes"),tt=c&&c.prototype?gi(c.prototype,"nodeType"):null,et=c&&c.prototype?gi(c.prototype,"nodeName"):null,ht=c&&c.prototype?gi(c.prototype,"ownerDocument"):null,lt=function(J){return tt?tt(J):J.nodeType},ft=function(J){return et?et(J):J.nodeName},xt=OC(B,"namespaceURI"),Bt=function(J){return xt?xt(J):J.namespaceURI};if(typeof n==="function"){let Rt=i.createElement("template");if(Rt.content&&Rt.content.ownerDocument)i=Rt.content.ownerDocument}let kt,Ct="",ot,st=!1,pt=0,it=function(){if(pt>0)throw co('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},wt=function(J){it(),pt++;try{return kt.createHTML(J)}finally{pt--}},Lt=function(J){it(),pt++;try{return kt.createScriptURL(J)}finally{pt--}},Yt=function(){if(!st)ot=VC(g,o),st=!0;return ot},Ht=i,{implementation:ne,createNodeIterator:oe,createDocumentFragment:_e,getElementsByTagName:Ae}=Ht,xe=s.importNode,Wt=Jd();e.isSupported=typeof tp==="function"&&typeof U==="function"&&ne&&ne.createHTMLDocument!==void 0;let re=PC,he=RC,ue=qC,Ke=NC,je=WC,yi=zC,Ni=HC,hi=UC,$o=Kd,He=null,Or=Ie({},[...jd,...Fh,...Ah,...Mh,...Gd]),qe=null,ro=Ie({},[...Xd,...Eh,...Vd,...zn]),ur=Object.seal(ds(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fi=null,Do=null,sr=Object.seal(ds(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Po=!0,Ti=!0,io=!1,oo=!0,D=!1,dt=!0,_t=!1,Mt=!1,St=null,Nt=null,Z=!1,mt=!1,Dt=!1,Ft=!1,Ot=!0,qt=!1,Pt="user-content-",Vt=!0,Xt=!1,Zt=null,ee={},ve=null,Ue=Ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Ns=null,Ro=Ie({},["audio","video","img","source","image","track"]),qo=null,ld=Ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",_i="http://www.w3.org/1999/xhtml",ls=_i,hh=!1,ch=null,D0=Ie({},[wn,Sn,_i],Lh),hd=cr(["mi","mo","mn","ms","mtext"]),uh=Ie({},hd),cd=cr(["annotation-xml"]),fh=Ie({},cd),P0=Ie({},["title","style","font","a","script"]),Ws=null,R0=["application/xhtml+xml","text/html"],q0="text/html",ir=null,hs=null,N0=i.createElement("form"),ud=function(J){return J instanceof RegExp||J instanceof Function},dh=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(hs&&hs===J)return;if(!J||typeof J!=="object")J={};J=jr(J),Ws=R0.indexOf(J.PARSER_MEDIA_TYPE)===-1?q0:J.PARSER_MEDIA_TYPE,ir=Ws==="application/xhtml+xml"?Lh:Zo,He=Ho(J,"ALLOWED_TAGS",Or,{transform:ir}),qe=Ho(J,"ALLOWED_ATTR",ro,{transform:ir}),ch=Ho(J,"ALLOWED_NAMESPACES",D0,{transform:Lh}),qo=Ho(J,"ADD_URI_SAFE_ATTR",ld,{transform:ir,base:ld}),Ns=Ho(J,"ADD_DATA_URI_TAGS",Ro,{transform:ir,base:Ro}),ve=Ho(J,"FORBID_CONTENTS",Ue,{transform:ir}),fi=Ho(J,"FORBID_TAGS",jr({}),{transform:ir}),Do=Ho(J,"FORBID_ATTR",jr({}),{transform:ir}),ee=Wr(J,"USE_PROFILES")?J.USE_PROFILES&&typeof J.USE_PROFILES==="object"?jr(J.USE_PROFILES):J.USE_PROFILES:!1,Po=J.ALLOW_ARIA_ATTR!==!1,Ti=J.ALLOW_DATA_ATTR!==!1,io=J.ALLOW_UNKNOWN_PROTOCOLS||!1,oo=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D=J.SAFE_FOR_TEMPLATES||!1,dt=J.SAFE_FOR_XML!==!1,_t=J.WHOLE_DOCUMENT||!1,mt=J.RETURN_DOM||!1,Dt=J.RETURN_DOM_FRAGMENT||!1,Ft=J.RETURN_TRUSTED_TYPE||!1,Z=J.FORCE_BODY||!1,Ot=J.SANITIZE_DOM!==!1,qt=J.SANITIZE_NAMED_PROPS||!1,Vt=J.KEEP_CONTENT!==!1,Xt=J.IN_PLACE||!1,$o=IC(J.ALLOWED_URI_REGEXP)?J.ALLOWED_URI_REGEXP:Kd,ls=typeof J.NAMESPACE==="string"?J.NAMESPACE:_i,uh=Ih(J,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ie({},hd)),fh=Ih(J,"HTML_INTEGRATION_POINTS",()=>Ie({},cd));let ut=Ih(J,"CUSTOM_ELEMENT_HANDLING",()=>ds(null));if(ur=ds(null),Wr(ut,"tagNameCheck")&&ud(ut.tagNameCheck))ur.tagNameCheck=ut.tagNameCheck;if(Wr(ut,"attributeNameCheck")&&ud(ut.attributeNameCheck))ur.attributeNameCheck=ut.attributeNameCheck;if(Wr(ut,"allowCustomizedBuiltInElements")&&typeof ut.allowCustomizedBuiltInElements==="boolean")ur.allowCustomizedBuiltInElements=ut.allowCustomizedBuiltInElements;if(dr(ur),D)Ti=!1;if(Dt)mt=!0;if(ee){if(He=Ie({},Gd),qe=ds(null),ee.html===!0)Ie(He,jd),Ie(qe,Xd);if(ee.svg===!0)Ie(He,Fh),Ie(qe,Eh),Ie(qe,zn);if(ee.svgFilters===!0)Ie(He,Ah),Ie(qe,Eh),Ie(qe,zn);if(ee.mathMl===!0)Ie(He,Mh),Ie(qe,Vd),Ie(qe,zn)}if(sr.tagCheck=null,sr.attributeCheck=null,Wr(J,"ADD_TAGS")){if(typeof J.ADD_TAGS==="function")sr.tagCheck=J.ADD_TAGS;else if(ps(J.ADD_TAGS)){if(He===Or)He=jr(He);Ie(He,J.ADD_TAGS,ir)}}if(Wr(J,"ADD_ATTR")){if(typeof J.ADD_ATTR==="function")sr.attributeCheck=J.ADD_ATTR;else if(ps(J.ADD_ATTR)){if(qe===ro)qe=jr(qe);Ie(qe,J.ADD_ATTR,ir)}}if(Wr(J,"ADD_FORBID_CONTENTS")&&ps(J.ADD_FORBID_CONTENTS)){if(ve===Ue)ve=jr(ve);Ie(ve,J.ADD_FORBID_CONTENTS,ir)}if(Vt)He["#text"]=!0;if(_t)Ie(He,["html","head","body"]);if(He.table)Ie(He,["tbody"]),delete fi.tbody;if(J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!=="function")throw co('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!=="function")throw co('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let It=kt;kt=J.TRUSTED_TYPES_POLICY;try{Ct=wt("")}catch($t){throw kt=It,$t}}else if(J.TRUSTED_TYPES_POLICY===null)kt=void 0,Ct="";else{if(kt===void 0)kt=Yt();if(kt&&typeof Ct==="string")Ct=wt("")}if(cr)cr(J);hs=J},fd=Ie({},[...Fh,...Ah,...$C]),dd=Ie({},[...Mh,...DC]),W0=function(J,ut,It){if(ut.namespaceURI===_i)return J==="svg";if(ut.namespaceURI===wn)return J==="svg"&&(It==="annotation-xml"||uh[It]);return Boolean(fd[J])},z0=function(J,ut,It){if(ut.namespaceURI===_i)return J==="math";if(ut.namespaceURI===Sn)return J==="math"&&fh[It];return Boolean(dd[J])},H0=function(J,ut,It){if(ut.namespaceURI===Sn&&!fh[It])return!1;if(ut.namespaceURI===wn&&!uh[It])return!1;return!dd[J]&&(P0[J]||!fd[J])},Y0=function(J){let ut=Bt(J),It=Zo(ft(J)),$t=U(J),ie,Te;if($t&&lt($t)===ar.element)ie={namespaceURI:Bt($t)},Te=Zo(ft($t));else ie={namespaceURI:ls},Te="template";if(!ch[ut])return!1;if(ut===Sn)return W0(It,ie,Te);if(ut===wn)return z0(It,ie,Te);if(ut===_i)return H0(It,ie,Te);if(Ws==="application/xhtml+xml"&&ch[ut])return!0;return!1},No=function(J){js(e.removed,{element:J});try{U(J).removeChild(J)}catch(ut){if(q(J),!U(J))throw co("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pd=function(J,ut,It){try{W(J,ut)}catch($t){try{J.removeAttribute(It)}catch(ie){}}},ph=function(J){mh(J);let ut=Y(J);if(ut)lo(BC(ut),($t)=>{try{q($t)}catch(ie){}});let It=lt(J)===ar.element?Q(J):null;if(It)for(let $t=It.length-1;$t>=0;--$t){let ie=It[$t],Te=ie&&ie.name;if(typeof Te==="string")pd(J,ie,Te)}},cs=function(J,ut,It){if(!It)try{It=ut.getAttributeNode(J)}catch($t){It=null}js(e.removed,{attribute:It||null,from:ut});try{if(It)W(ut,It);else ut.removeAttribute(J)}catch($t){try{ut.removeAttribute(J)}catch(ie){}}if(J==="is")if(mt||Dt)try{No(ut)}catch($t){}else try{ut.setAttribute(J,"")}catch($t){}},gd=function(J){let ut=Q(J);if(!ut)return;for(let It=ut.length-1;It>=0;--It){let $t=ut[It],ie=$t&&$t.name;if(typeof ie!=="string"||qe[ir(ie)])continue;pd(J,$t,ie)}},gh=function(J,ut){let It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$t=[J];while($t.length>0){let ie=$t.pop();if(ut(ie)===!1)continue;if(It&&lt(ie)===ar.element){let Ee=K(ie);if(Wo(Ee))$t.push(Ee)}let Te=Y(ie);if(Te)for(let Ee=Te.length-1;Ee>=0;--Ee)$t.push(Te[Ee])}},mh=function(J){gh(J,(ut)=>{if(lt(ut)===ar.element)gd(ut)})},yh=function(J){let ut=[];return gh(J,(It)=>{ut.push(It)},!0),ut},U0=function(J,ut){let It=Bh();lo(yh(J),($t)=>{if(lt($t)===ar.element)vh(It,$t)}),lo(ut,($t)=>{if(lt($t)===ar.element&&!Gs(It,$t))gd($t)})},md=function(J,ut){let It=!1;return lo(e.removed,($t)=>{if($t.element)It=It||$t.element===J,mh($t.element)}),U0(J,ut),It},j0=8,G0=function(J,ut){let It=Zt,$t=null,ie=()=>{if(!$t)$t=Bh(),lo(ut,(Te)=>{vh($t,Te)});return $t};for(let Te=0;;Te++){let Ee=yh(J),nr=[J],Bi=!1;if(lo(Ee,(br)=>{if(lt(br)===ar.documentFragment)js(nr,br);else if(!Bi&&!Gs(It,br))Bi=Gs(ie(),br)}),!Bi)return;if(Te>=j0)throw co("the tree kept changing during in-place sanitization; refusing to return it");lo(nr,(br,$r)=>{X0(br,$r>0,J,ie())})}},X0=function(J,ut,It,$t){let ie=xh(J),Te;while(Te=ie.nextNode()){if(!Gs($t,Te)||Gs(Zt,Te))continue;if(ut)xi(Wt.uponSanitizeShadowNode,Te,null);if(bh(Te,It),kh(Te,It),Wo(Te.content))Hs(Te.content)}},V0=function(J){if(Zt)vh(Zt,J)},yd=function(J,ut){if(!dt)return!1;if(J==="patchsrc")return!0;return J==="for"&&ut!=="label"&&ut!=="output"},K0=function(J){if(!dt)return;gh(J,(ut)=>{let It=lt(ut);if(It===ar.processingInstruction||It===ar.comment&&fr(Zd,ut.data)){try{q(ut)}catch($t){}return!1}if(It===ar.element){let $t=ut,ie=ir(ft(ut));try{if($t.hasAttribute&&$t.hasAttribute("patchsrc"))$t.removeAttribute("patchsrc");if($t.hasAttribute&&$t.hasAttribute("for")&&yd("for",ie))$t.removeAttribute("for")}catch(Te){}}return!0})},xd=function(J){let ut=null,It=null;if(Z)J="<remove></remove>"+J;else{let Te=zd(J,/^[\r\n\t ]+/);It=Te&&Te[0]}if(Ws==="application/xhtml+xml"&&ls===_i)J='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+J+"</body></html>";let $t=kt?wt(J):J;if(ls===_i)try{ut=new y().parseFromString($t,Ws)}catch(Te){}if(!ut||!ut.documentElement){ut=ne.createDocument(ls,"template",null);try{ut.documentElement.innerHTML=hh?Ct:$t}catch(Te){}}let ie=ut.body||ut.documentElement;if(J&&It)ie.insertBefore(i.createTextNode(It),ie.childNodes[0]||null);if(ls===_i)return Ae.call(ut,_t?"html":"body")[0];return _t?ut.documentElement:ie},xh=function(J){let ut=ht?ht(J):J.ownerDocument;return oe.call(ut||J,J,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Tn=function(J){return J=Xs(J,re," "),J=Xs(J,he," "),J=Xs(J,ue," "),J},Ch=function(J){var ut;Cd(J);let It=(ut=J.querySelectorAll)===null||ut===void 0?void 0:ut.call(J,"template");if(It)lo(It,($t)=>{if(Wo($t.content))Ch($t.content)})},Cd=function(J){J.normalize();let ut=ht?ht(J):J.ownerDocument,It=oe.call(ut||J,J,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null),$t=It.nextNode();while($t)$t.data=Tn($t.data),$t=It.nextNode()},_n=function(J){let ut=et?et(J):null;if(typeof ut!=="string")return!1;if(ir(ut)!=="form")return!1;return typeof J.nodeName!=="string"||typeof J.textContent!=="string"||typeof J.removeChild!=="function"||J.attributes!==Q(J)||typeof J.removeAttribute!=="function"||typeof J.removeAttributeNode!=="function"||typeof J.getAttributeNode!=="function"||typeof J.setAttribute!=="function"||typeof J.namespaceURI!=="string"||typeof J.insertBefore!=="function"||typeof J.hasChildNodes!=="function"||J.nodeType!==tt(J)||J.childNodes!==Y(J)},Wo=function(J){if(!tt||typeof J!=="object"||J===null)return!1;try{return tt(J)===ar.documentFragment}catch(ut){return!1}},zs=function(J){if(!tt||typeof J!=="object"||J===null)return!1;try{return typeof tt(J)==="number"}catch(ut){return!1}};function xi(Rt,J,ut){if(Rt.length===0)return;lo(Rt,(It)=>{It.call(e,J,ut,hs)})}let Z0=function(J,ut){if(dt&&J.hasChildNodes()&&!zs(J.firstElementChild)&&fr(Oh,J.textContent)&&fr(Oh,J.innerHTML))return!0;if(dt&&GC[ut]&&lt(J)===ar.element&&Bt(J)===_i&&(zs(J.firstElementChild)||typeof J.textContent==="string"&&fr(Oh,J.textContent)))return!0;if(J.nodeType===ar.processingInstruction)return!0;if(dt&&J.nodeType===ar.comment&&fr(Zd,J.data))return!0;return!1},Bn=function(J,ut){if(J instanceof RegExp)return fr(J,ut);if(J instanceof Function){for(var It=arguments.length,$t=Array(It>2?It-2:0),ie=2;ie<It;ie++)$t[ie-2]=arguments[ie];return Boolean(J(ut,...$t))}return!1},Q0=function(J,ut,It){if(!fi[ut]&&wd(ut)&&Bn(ur.tagNameCheck,ut))return!1;if(Vt&&!ve[ut]&&!ve[Zo(ut)]){let $t=U(J),ie=Y(J);if(ie&&$t){let Te=ie.length;for(let Ee=Te-1;Ee>=0;--Ee){let nr=J===It?v(ie[Ee],!0):ie[Ee];$t.insertBefore(nr,H(J))}}}return No(J),!0},bd=function(J,ut,It,$t){if(J.length===0)return ut;return ut===It||ut===$t?jr(ut):ut},us=function(J,ut){if(J===ut||U(J)!==null)return!1;if(Xt)mh(J);return!0},bh=function(J,ut){if(V0(J),xi(Wt.beforeSanitizeElements,J,null),us(J,ut))return!0;if(_n(J))return No(J),!0;let It=ir(ft(J));if(He=bd(Wt.uponSanitizeElement,He,Or,St),xi(Wt.uponSanitizeElement,J,{tagName:It,allowedTags:He}),us(J,ut))return!0;if(Z0(J,It))return No(J),!0;if(fi[It]||!(sr.tagCheck instanceof Function&&sr.tagCheck(It))&&!He[It]){let $t=Q0(J,It,ut);if($t===!1){if(xi(Wt.afterSanitizeElements,J,null),us(J,ut))return!0}return $t}if(lt(J)===ar.element&&!Y0(J))return No(J),!0;if((It==="noscript"||It==="noembed"||It==="noframes")&&fr(jC,J.innerHTML))return No(J),!0;if(D&&J.nodeType===ar.text){let $t=Tn(J.textContent);if(J.textContent!==$t)js(e.removed,{element:J.cloneNode()}),J.textContent=$t}return xi(Wt.afterSanitizeElements,J,null),us(J,ut)},kd=function(J,ut,It){if(Do[ut])return!1;if(yd(ut,J))return!1;if(Ot&&(ut==="id"||ut==="name")&&((It in i)||(It in N0)))return!1;let $t=qe[ut]||sr.attributeCheck instanceof Function&&sr.attributeCheck(ut,J);if(Ti&&fr(Ke,ut))return!0;if(Po&&fr(je,ut))return!0;if(!$t)return wd(J)&&Bn(ur.tagNameCheck,J)&&Bn(ur.attributeNameCheck,ut,J)||ut==="is"&&ur.allowCustomizedBuiltInElements&&Bn(ur.tagNameCheck,It);if(qo[ut])return!0;if(fr($o,Xs(It,Ni,"")))return!0;if((ut==="src"||ut==="xlink:href"||ut==="href")&&J!=="script"&&Hd(It,"data:")===0&&Ns[J])return!0;if(io&&!fr(yi,Xs(It,Ni,"")))return!0;return!It},J0=Ie({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(J){return!J0[Zo(J)]&&fr(hi,J)},tC=function(J,ut,It,$t){if(kt&&typeof g==="object"&&typeof g.getAttributeType==="function"&&!It)switch(g.getAttributeType(J,ut)){case"TrustedHTML":return wt($t);case"TrustedScriptURL":return Lt($t)}return $t},eC=function(J,ut,It,$t){try{if(It)J.setAttributeNS(It,ut,$t);else J.setAttribute(ut,$t);if(_n(J))return No(J),!1;return!0}catch(ie){return cs(ut,J),!1}},Sd=function(J,ut){if(dt&&fr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ut))return!0;return Zo(J)==="attributename"&&zd(ut,"href")!==null},kh=function(J,ut){if(xi(Wt.beforeSanitizeAttributes,J,null),us(J,ut))return;let It=J.attributes;if(!It||_n(J))return;qe=bd(Wt.uponSanitizeAttribute,qe,ro,Nt);let $t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0},ie=It.length,Te=ir(J.nodeName);while(ie--){let Ee=It[ie],{name:nr,namespaceURI:Bi,value:br}=Ee,$r=ir(nr),fs=br,qr=nr==="value"?fs:LC(fs),Td=!1;if($t.attrName=$r,$t.attrValue=qr,$t.keepAttr=!0,$t.forceKeepAttr=void 0,xi(Wt.uponSanitizeAttribute,J,$t),qr=$t.attrValue,qt&&($r==="id"||$r==="name")&&Hd(qr,Pt)!==0)cs(nr,J,Ee),qr=Pt+qr,Td=!0;if(Sd(nr,qr)){cs(nr,J,Ee);continue}if($t.forceKeepAttr)continue;if(!$t.keepAttr){cs(nr,J,Ee);continue}if(!oo&&fr(Qd,qr)){cs(nr,J,Ee);continue}if(D)qr=Tn(qr);if(!kd(Te,$r,qr)){cs(nr,J,Ee);continue}if(qr=tC(Te,$r,Bi,qr),qr!==fs){if(eC(J,nr,Bi,qr)&&Td)Wd(e.removed)}}xi(Wt.afterSanitizeAttributes,J,null),us(J,ut)},Hs=function(J){let ut=null,It=xh(J);xi(Wt.beforeSanitizeShadowDOM,J,null);while(ut=It.nextNode()){if(xi(Wt.uponSanitizeShadowNode,ut,null),bh(ut,J),kh(ut,J),Wo(ut.content))Hs(ut.content);if(lt(ut)===ar.element){let $t=K(ut);if(Wo($t))wh($t),Hs($t)}}if(D)Cd(J);xi(Wt.afterSanitizeShadowDOM,J,null)},wh=function(J){let ut=[{node:J,shadow:null}];while(ut.length>0){let It=ut.pop();if(It.shadow){Hs(It.shadow);continue}let $t=It.node,ie=lt($t)===ar.element,Te=Y($t);if(Te)for(let Ee=Te.length-1;Ee>=0;--Ee)ut.push({node:Te[Ee],shadow:null});if(ie){let Ee=et?et($t):null;if(typeof Ee==="string"&&ir(Ee)==="template"){let nr=$t.content;if(Wo(nr))ut.push({node:nr,shadow:null})}}if(ie){let Ee=K($t);if(Wo(Ee))ut.push({node:null,shadow:Ee},{node:Ee,shadow:null})}}};return e.sanitize=function(Rt){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ut=null,It=null,$t=null,ie=null;if(hh=!Rt,hh)Rt="<!-->";if(typeof Rt!=="string"&&!zs(Rt)){if(Rt=EC(Rt),typeof Rt!=="string")throw co("dirty is not a string, aborting")}if(!e.isSupported)return Rt;if(Mt)He=St,qe=Nt;else dh(J);if(Wt.uponSanitizeElement.length>0||Wt.uponSanitizeAttribute.length>0)He=jr(He);if(Wt.uponSanitizeAttribute.length>0)qe=jr(qe);e.removed=[];let Te=Xt&&typeof Rt!=="string"&&zs(Rt),Ee=[],nr=Zt;if(Te){K0(Rt);let $r=ft(Rt);if(typeof $r==="string"){let fs=ir($r);if(!He[fs]||fi[fs])throw ph(Rt),co("root node is forbidden and cannot be sanitized in-place")}if(_n(Rt))throw ph(Rt),co("root node is clobbered and cannot be sanitized in-place");Ee=yh(Rt),Zt=Bh()}else if(zs(Rt)){if(ut=xd("<!---->"),It=ut.ownerDocument.importNode(Rt,!0),It.nodeType===ar.element&&It.nodeName==="BODY")ut=It;else if(It.nodeName==="HTML")ut=It;else ut.appendChild(It);wh(ut)}else{if(!mt&&!D&&!_t&&Rt.indexOf("<")===-1)return kt&&Ft?wt(Rt):Rt;if(ut=xd(Rt),!ut)return mt?null:Ft?Ct:""}if(ut&&Z)No(ut.firstChild);let Bi=Te?Rt:ut;try{if(Te)wh(Rt);let $r=xh(Bi);while($t=$r.nextNode())if(bh($t,Bi),kh($t,Bi),Wo($t.content))Hs($t.content);if(Te)G0(Rt,Ee)}catch($r){if(Te)ph(Rt),md(Rt,Ee);throw $r}finally{Zt=nr}if(Te){if(md(Rt,Ee))throw co("a node selected for removal could not be safely returned; refusing to sanitize in place");if(D)Ch(Rt);return Rt}if(mt){if(D)Ch(ut);if(Dt){ie=_e.call(ut.ownerDocument);while(ut.firstChild)ie.appendChild(ut.firstChild)}else ie=ut;if(qe.shadowroot||qe.shadowrootmode)ie=xe.call(s,ie,!0);return ie}let br=_t?ut.outerHTML:ut.innerHTML;if(_t&&He["!doctype"]&&ut.ownerDocument&&ut.ownerDocument.doctype&&ut.ownerDocument.doctype.name&&fr(YC,ut.ownerDocument.doctype.name))br="<!DOCTYPE "+ut.ownerDocument.doctype.name+`>
3
3
  `+br;if(D)br=Tn(br);return kt&&Ft?wt(br):br},e.setConfig=function(){let Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dh(Rt),Mt=!0,St=He,Nt=qe},e.clearConfig=function(){hs=null,Mt=!1,St=null,Nt=null,kt=ot,Ct=""},e.isValidAttribute=function(Rt,J,ut){if(!hs)dh({});let It=ir(Rt),$t=ir(J);if(typeof ut==="string"&&(Sd(J,ut)||!oo&&fr(Qd,ut)))return!1;return kd(It,$t,ut)},e.addHook=function(Rt,J){if(typeof J!=="function")return;if(!Wr(Wt,Rt))return;js(Wt[Rt],J)},e.removeHook=function(Rt,J){if(!Wr(Wt,Rt))return;if(J!==void 0){let ut=_C(Wt[Rt],J);return ut===-1?void 0:vC(Wt[Rt],ut,1)[0]}return Wd(Wt[Rt])},e.removeHooks=function(Rt){if(!Wr(Wt,Rt))return;Wt[Rt]=[]},e.removeAllHooks=function(){Wt=Jd()},e}var Re=sp();var gs=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,el=/\s/,KC=t((r)=>{let e="",i=0,s=0;while(s<r.length){let o=r.indexOf("%%",s);if(o===-1)break;let n=r.indexOf(`
4
4
  `,o);if(n===-1)break;let c=o;while(c>i&&el.test(r[c-1]))c--;e+=r.slice(i,c)+`
@@ -299,5 +299,5 @@ ${o.join(`
299
299
  L0,20`)},"requirement_arrow"),mT=t((r,e,i)=>{let s=x(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
300
300
  L20,10
301
301
  M20,10
302
- L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),yT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,i)=>{let s=x(),{themeVariables:o}=s,{strokeWidth:n}=o,c=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");c.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),c.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),c.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),c.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),bT={extension:ZS,composition:QS,aggregation:JS,dependency:tT,lollipop:eT,point:rT,circle:iT,cross:oT,barb:sT,barbNeo:aT,hierarchy:CT,only_one:nT,zero_or_one:lT,one_or_more:hT,zero_or_more:cT,only_one_neo:uT,zero_or_one_neo:fT,one_or_more_neo:dT,zero_or_more_neo:pT,requirement_arrow:gT,requirement_contains:yT,requirement_arrow_neo:mT,requirement_contains_neo:xT},Qn=KS;var kT={common:b,getConfig:x,insertCluster:en,insertEdge:tn,insertEdgeLabel:At,insertMarkers:Qn,insertNode:Et,interpolateToCurve:Wl,labelHelper:P,log:a,positionEdgeLabel:Kn},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],kn=Object.create(null),no=t((r)=>{for(let e of r)kn[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (_("rcexbkjj"),import("./chunk-rcexbkjj.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{no([{name:"dagre",loader:t(async()=>await (_("6m8hq6ph"),import("./chunk-6m8hq6ph.js")),"loader")},{name:"swimlane",loader:t(async()=>await (_("tjd8qp87"),import("./chunk-tjd8qp87.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (_("78m018ya"),import("./chunk-78m018ya.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var ge=t(async(r,e)=>{if(!Object.hasOwn(kn,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let o of r.nodes){let n=o.domId||o.id;o.domId=`${r.diagramId}-${n}`}let i=kn[r.layoutAlgorithm],s=await i.loader();return ja(e,r.config),s.render(r,e,kT,{algorithm:i.algorithm})},"render"),nd="dagre",ye=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(kn,r))return r;for(let i of[e,nd])if(Object.hasOwn(kn,i))return a.warn(`Layout algorithm ${r} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
302
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),yT=t((r,e,i)=>{let s=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),xT=t((r,e,i)=>{let s=x(),{themeVariables:o}=s,{strokeWidth:n}=o,c=r.append("defs").append("marker").attr("id",i+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");c.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),c.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),c.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),c.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),CT=t((r,e,i)=>{r.append("marker").attr("id",i+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",i+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),bT={extension:ZS,composition:QS,aggregation:JS,dependency:tT,lollipop:eT,point:rT,circle:iT,cross:oT,barb:sT,barbNeo:aT,hierarchy:CT,only_one:nT,zero_or_one:lT,one_or_more:hT,zero_or_more:cT,only_one_neo:uT,zero_or_one_neo:fT,one_or_more_neo:dT,zero_or_more_neo:pT,requirement_arrow:gT,requirement_contains:yT,requirement_arrow_neo:mT,requirement_contains_neo:xT},Qn=KS;var kT={common:b,getConfig:x,insertCluster:en,insertEdge:tn,insertEdgeLabel:At,insertMarkers:Qn,insertNode:Et,interpolateToCurve:Wl,labelHelper:P,log:a,positionEdgeLabel:Kn},wT=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],kn=Object.create(null),no=t((r)=>{for(let e of r)kn[e.name]=e},"registerLayoutLoaders"),ST=t(()=>{let r=t(async()=>await (_("jpf8x9tm"),import("./chunk-jpf8x9tm.js")),"loader");return[{name:"elk",loader:r,algorithm:"elk.layered"},...wT.map((e)=>({name:e,loader:r,algorithm:e}))]},"elkLayoutLoaders"),TT=t(()=>{no([{name:"dagre",loader:t(async()=>await (_("w7cyrbk2"),import("./chunk-w7cyrbk2.js")),"loader")},{name:"swimlane",loader:t(async()=>await (_("6x1hfjb9"),import("./chunk-6x1hfjb9.js")),"loader")},{name:"cose-bilkent",loader:t(async()=>await (_("zf4b8jb9"),import("./chunk-zf4b8jb9.js")),"loader")},...ST()])},"registerDefaultLayoutLoaders");TT();var ge=t(async(r,e)=>{if(!Object.hasOwn(kn,r.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);if(r.diagramId)for(let o of r.nodes){let n=o.domId||o.id;o.domId=`${r.diagramId}-${n}`}let i=kn[r.layoutAlgorithm],s=await i.loader();return ja(e,r.config),s.render(r,e,kT,{algorithm:i.algorithm})},"render"),nd="dagre",ye=t((r="",{fallback:e=nd}={})=>{if(Object.hasOwn(kn,r))return r;for(let i of[e,nd])if(Object.hasOwn(kn,i))return a.warn(`Layout algorithm ${r} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${r}, ${e}, nor ${nd} is registered.`)},"getRegisteredLayoutAlgorithm");
303
303
  export{t,Kt,Na,a,Hr,z,De,de,X,_r,u,d,Re,Fi,zi,En,wr,Ma,po,se,we,Qt,N,Ui,sn,gt,Pa,mo,fo,ho,ji,qi,x,go,Yr,yo,ke,jn,O,Vi,Jt,fe,kr,Cr,b,F,yt,Oa,vo,$a,C,S,E,T,A,L,R,l,ln,An,Sr,Zr,Ba,p,Rn,Tr,Ln,zt,Wi,Ve,Er,bo,cn,qn,$e,Ar,ae,Gi,We,In,xo,Fa,Ut,Vn,Be,Rr,Xr,Wn,_o,Hi,Gn,wo,Kr,za,Ua,Hn,Yn,V,nt,rt,ja,Qr,k,Yi,Dn,at,Zn,Nn,un,qa,Lr,Ir,Dr,Nr,Va,Wa,Ga,Ha,Ya,Za,Xa,Ka,Qa,Ja,ei,ti,ni,ri,ai,ii,oi,dn,Mr,Jr,si,Zi,ko,li,Xi,Ki,Mn,ea,Ye,ta,ci,Qi,Ge,j,M,Co,jt,Fe,ui,di,Ji,Le,na,pe,le,ce,vt,Ze,Xe,f,P,I,w,ra,Pr,Tt,Et,So,To,bt,en,Eo,Ne,Xn,Me,Ao,eo,At,to,Kn,tn,Qn,no,ge,ye};
@@ -1,4 +1,4 @@
1
- import{t,a,l,I,Tt,So,bt,en,At,Kn,tn}from"./chunk-zsat72qd.js";import{be,Pe,Je,Ee,pt,Wt,Y,me,ct,Gt,ut,dr,ya,va,ba,bn,Ct,xa,xn,Oe,_n,$t,St,wn,Ht,kn,_a,wa,pr,xe,ka,Cn,Yt,Sn,mr,fr,Zt,Ca,hr,Sa,Wr,mt,gr,Ta,Ea,Aa,He,yr,vr,Tn,Ra,br,g,et,ft,_e,Xt,re}from"./chunk-tdzh6nsz.js";import{fa,ha,W,Un,co,ga,ur}from"./chunk-2c7kxr4v.js";import{Lt}from"./chunk-ty2rmwda.js";var lr={};Lt(lr,{default:()=>rr});var po=/\s/;function mo(r){var e=r.length;while(e--&&po.test(r.charAt(e)));return e}var te=mo;var ho=/^\s+/;function go(r){return r?r.slice(0,te(r)+1).replace(ho,""):r}var ne=go;var oe=NaN,vo=/^[-+]0x[0-9a-f]+$/i,bo=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,wo=parseInt;function _o(r){if(typeof r=="number")return r;if(pt(r))return oe;if(me(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=me(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=ne(r);var n=bo.test(r);return n||yo.test(r)?wo(r.slice(2),n?2:8):vo.test(r)?oe:+r}var ie=_o;var ae=1/0,Eo=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function xo(r){if(!r)return r===0?r:0;if(r=ie(r),r===ae||r===-ae){var e=r<0?-1:1;return e*Eo}return r===r?r:0}var V=xo;function Lo(r){var e=V(r),n=e%1;return e===e?n?e-n:e:0}var fe=Lo;var se=Object.create,Io=function(){function r(){}return function(e){if(!me(e))return{};if(se)return se(e);r.prototype=e;var n=new r;return r.prototype=void 0,n}}(),ue=Io;function No(r,e){var n=-1,o=r.length;e||(e=Array(o));while(++n<o)e[n]=r[n];return e}var sr=No;function ko(r,e,n){if(e=="__proto__"&&dr)dr(r,e,{configurable:!0,enumerable:!0,value:n,writable:!0});else r[e]=n}var M=ko;var To=Object.prototype,Co=To.hasOwnProperty;function Ao(r,e,n){var o=r[e];if(!(Co.call(r,e)&&Ct(o,n))||n===void 0&&!(e in r))M(r,e,n)}var j=Ao;function Ro(r,e,n,o){var i=!n;n||(n={});var f=-1,s=e.length;while(++f<s){var u=e[f],d=o?o(n[u],r[u],u,n,r):void 0;if(d===void 0)d=r[u];if(i)M(n,u,d);else j(n,u,d)}return n}var k=Ro;function jo(r,e,n){if(!me(n))return!1;var o=typeof e;if(o=="number"?Oe(n)&&bn(e,n.length):o=="string"&&(e in n))return Ct(n[e],r);return!1}var C=jo;function Bo(r){return xn(function(e,n){var o=-1,i=n.length,f=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;if(f=r.length>3&&typeof f=="function"?(i--,f):void 0,s&&C(n[0],n[1],s))f=i<3?void 0:f,i=1;e=Object(e);while(++o<i){var u=n[o];if(u)r(e,u,o,f)}return e})}var de=Bo;function Do(r){var e=[];if(r!=null)for(var n in Object(r))e.push(n);return e}var ce=Do;var Fo=Object.prototype,Go=Fo.hasOwnProperty;function Xo(r){if(!me(r))return ce(r);var e=_n(r),n=[];for(var o in r)if(!(o=="constructor"&&(e||!Go.call(r,o))))n.push(o);return n}var pe=Xo;function Uo(r){return Oe(r)?_a(r,!0):pe(r)}var L=Uo;function Vo(r){var e=r==null?0:r.length;return e?fr(r,1):[]}var N=Vo;function Yo(r){return ya(xa(r,void 0,N),r+"")}var le=Yo;var zo=wa(Object.getPrototypeOf,Object),z=zo;var Wo="[object Object]",qo=Function.prototype,Ho=Object.prototype,he=qo.toString,Ko=Ho.hasOwnProperty,Jo=he.call(Object);function Zo(r){if(!Ee(r)||Je(r)!=Wo)return!1;var e=z(r);if(e===null)return!0;var n=Ko.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&he.call(n)==Jo}var ge=Zo;var $o="\\ud800-\\udfff",Qo="\\u0300-\\u036f",ri="\\ufe20-\\ufe2f",ei="\\u20d0-\\u20ff",ti=Qo+ri+ei,ni="\\ufe0e\\ufe0f",oi="\\u200d",ii=RegExp("["+oi+$o+ti+ni+"]");function ai(r){return ii.test(r)}var ve=ai;function fi(r,e){return r&&k(e,xe(e),r)}var ye=fi;function si(r,e){return r&&k(e,L(e),r)}var we=si;var Ne=typeof lr=="object"&&lr&&!lr.nodeType&&lr,Le=Ne&&typeof cr=="object"&&cr&&!cr.nodeType&&cr,ui=Le&&Le.exports===Ne,Ie=ui?be.Buffer:void 0,Se=Ie?Ie.allocUnsafe:void 0;function di(r,e){if(e)return r.slice();var n=r.length,o=Se?Se(n):new r.constructor(n);return r.copy(o),o}var rr=di;function ci(r,e){return k(r,hr(r),e)}var ke=ci;var pi=Object.getOwnPropertySymbols,li=!pi?Ca:function(r){var e=[];while(r)mr(e,hr(r)),r=z(r);return e},wr=li;function mi(r,e){return k(r,wr(r),e)}var Te=mi;function hi(r){return Sa(r,L,wr)}var Ce=hi;var gi=Object.prototype,vi=gi.hasOwnProperty;function bi(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&vi.call(r,"index"))n.index=r.index,n.input=r.input;return n}var Ae=bi;function yi(r){var e=new r.constructor(r.byteLength);return new gr(e).set(new gr(r)),e}var q=yi;function wi(r,e){var n=e?q(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var Re=wi;var _i=/\w*$/;function Ei(r){var e=new r.constructor(r.source,_i.exec(r));return e.lastIndex=r.lastIndex,e}var Me=Ei;var je=Pe?Pe.prototype:void 0,Be=je?je.valueOf:void 0;function xi(r){return Be?Object(Be.call(r)):{}}var De=xi;function Oi(r,e){var n=e?q(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}var _r=Oi;var Li="[object Boolean]",Ii="[object Date]",Si="[object Map]",Ni="[object Number]",Pi="[object RegExp]",ki="[object Set]",Ti="[object String]",Ci="[object Symbol]",Ai="[object ArrayBuffer]",Ri="[object DataView]",Mi="[object Float32Array]",ji="[object Float64Array]",Bi="[object Int8Array]",Di="[object Int16Array]",Fi="[object Int32Array]",Gi="[object Uint8Array]",Xi="[object Uint8ClampedArray]",Ui="[object Uint16Array]",Vi="[object Uint32Array]";function Yi(r,e,n){var o=r.constructor;switch(e){case Ai:return q(r);case Li:case Ii:return new o(+r);case Ri:return Re(r,n);case Mi:case ji:case Bi:case Di:case Fi:case Gi:case Xi:case Ui:case Vi:return _r(r,n);case Si:return new o;case Ni:case Ti:return new o(r);case Pi:return Me(r);case ki:return new o;case Ci:return De(r)}}var Fe=Yi;function zi(r){return typeof r.constructor=="function"&&!_n(r)?ue(z(r)):{}}var Er=zi;var Wi="[object Map]";function qi(r){return Ee(r)&&mt(r)==Wi}var Ge=qi;var Xe=Ht&&Ht.isMap,Hi=Xe?wn(Xe):Ge,Ue=Hi;var Ki="[object Set]";function Ji(r){return Ee(r)&&mt(r)==Ki}var Ve=Ji;var Ye=Ht&&Ht.isSet,Zi=Ye?wn(Ye):Ve,ze=Zi;var $i=1,Qi=2,ra=4,We="[object Arguments]",ea="[object Array]",ta="[object Boolean]",na="[object Date]",oa="[object Error]",qe="[object Function]",ia="[object GeneratorFunction]",aa="[object Map]",sa="[object Number]",Ke="[object Object]",ua="[object RegExp]",da="[object Set]",ca="[object String]",pa="[object Symbol]",la="[object WeakMap]",ma="[object ArrayBuffer]",Oa="[object DataView]",La="[object Float32Array]",Ia="[object Float64Array]",Na="[object Int8Array]",Pa="[object Int16Array]",Ma="[object Int32Array]",ja="[object Uint8Array]",Ba="[object Uint8ClampedArray]",Da="[object Uint16Array]",Fa="[object Uint32Array]",x={};x[We]=x[ea]=x[ma]=x[Oa]=x[ta]=x[na]=x[La]=x[Ia]=x[Na]=x[Pa]=x[Ma]=x[aa]=x[sa]=x[Ke]=x[ua]=x[da]=x[ca]=x[pa]=x[ja]=x[Ba]=x[Da]=x[Fa]=!0;x[oa]=x[qe]=x[la]=!1;function xr(r,e,n,o,i,f){var s,u=e&$i,d=e&Qi,c=e&ra;if(n)s=i?n(r,o,i,f):n(r);if(s!==void 0)return s;if(!me(r))return r;var p=Y(r);if(p){if(s=Ae(r),!u)return sr(r,s)}else{var m=mt(r),h=m==qe||m==ia;if(St(r))return rr(r,u);if(m==Ke||m==We||h&&!i){if(s=d||h?{}:Er(r),!u)return d?Te(r,we(s,r)):ke(r,ye(s,r))}else{if(!x[m])return i?r:{};s=Fe(r,m,u)}}f||(f=new Zt);var b=f.get(r);if(b)return b;if(f.set(r,s),ze(r))r.forEach(function(v){s.add(xr(v,e,n,v,r,f))});else if(Ue(r))r.forEach(function(v,_){s.set(_,xr(v,e,n,_,r,f))});var w=c?d?Ce:Wr:d?L:xe,y=p?void 0:w(r);return va(y||r,function(v,_){if(y)_=v,v=r[_];j(s,_,xr(v,e,n,_,r,f))}),s}var Ze=xr;var Ga=1,Xa=4;function Ua(r){return Ze(r,Ga|Xa)}var $e=Ua;var Va=function(){return be.Date.now()},kr=Va;var Qe=Object.prototype,Ya=Qe.hasOwnProperty,za=xn(function(r,e){r=Object(r);var n=-1,o=e.length,i=o>2?e[2]:void 0;if(i&&C(e[0],e[1],i))o=1;while(++n<o){var f=e[n],s=L(f),u=-1,d=s.length;while(++u<d){var c=s[u],p=r[c];if(p===void 0||Ct(p,Qe[c])&&!Ya.call(r,c))r[c]=f[c]}}return r}),rt=za;function Wa(r,e,n){if(n!==void 0&&!Ct(r[e],n)||n===void 0&&!(e in r))M(r,e,n)}var er=Wa;function qa(r,e){if(e==="constructor"&&typeof r[e]==="function")return;if(e=="__proto__")return;return r[e]}var tr=qa;function Ha(r){return k(r,L(r))}var tt=Ha;function Ka(r,e,n,o,i,f,s){var u=tr(r,n),d=tr(e,n),c=s.get(d);if(c){er(r,n,c);return}var p=f?f(u,d,n+"",r,e,s):void 0,m=p===void 0;if(m){var h=Y(d),b=!h&&St(d),w=!h&&!b&&kn(d);if(p=d,h||b||w)if(Y(u))p=u;else if(Ra(u))p=sr(u);else if(b)m=!1,p=rr(d,!0);else if(w)m=!1,p=_r(d,!0);else p=[];else if(ge(d)||$t(d)){if(p=u,$t(u))p=tt(u);else if(!me(u)||Gt(u))p=Er(d)}else m=!1}if(m)s.set(d,p),i(p,d,o,f,s),s.delete(d);er(r,n,p)}var nt=Ka;function ot(r,e,n,o,i){if(r===e)return;yr(e,function(f,s){if(i||(i=new Zt),me(f))nt(r,e,s,n,ot,o,i);else{var u=o?o(tr(r,s),f,s+"",r,e,i):void 0;if(u===void 0)u=f;er(r,s,u)}},L)}var it=ot;function Ja(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}var X=Ja;function Za(r){return function(e,n,o){var i=Object(e);if(!Oe(e)){var f=He(n,3);e=xe(e),n=function(u){return f(i[u],u,i)}}var s=r(e,n,o);return s>-1?i[f?e[s]:s]:void 0}}var at=Za;var $a=Math.max;function Qa(r,e,n){var o=r==null?0:r.length;if(!o)return-1;var i=n==null?0:fe(n);if(i<0)i=$a(o+i,0);return ba(r,He(e,3),i)}var st=Qa;var rf=at(st),nr=rf;function ef(r,e){var n=-1,o=Oe(r)?Array(r.length):[];return Tn(r,function(i,f,s){o[++n]=e(i,f,s)}),o}var Or=ef;function tf(r,e){var n=Y(r)?Wt:Or;return n(r,He(e,3))}var E=tf;function nf(r,e){return r==null?r:yr(r,br(e),L)}var dt=nf;function of(r,e){return r&&vr(r,br(e))}var lt=of;function af(r,e){return r>e}var ht=af;var ff=Object.prototype,sf=ff.hasOwnProperty;function uf(r,e){return r!=null&&sf.call(r,e)}var gt=uf;function df(r,e){return r!=null&&Ta(r,e,gt)}var Lr=df;var cf="[object String]";function pf(r){return typeof r=="string"||!Y(r)&&Ee(r)&&Je(r)==cf}var vt=pf;function lf(r,e){return r<e}var Ir=lf;function mf(r,e){var n={};return e=He(e,3),vr(r,function(o,i,f){M(n,i,e(o,i,f))}),n}var H=mf;function hf(r,e,n){var o=-1,i=r.length;while(++o<i){var f=r[o],s=e(f);if(s!=null&&(u===void 0?s===s&&!pt(s):n(s,u)))var u=s,d=f}return d}var K=hf;function gf(r){return r&&r.length?K(r,ct,ht):void 0}var S=gf;var vf=de(function(r,e,n){it(r,e,n)}),or=vf;function bf(r){return r&&r.length?K(r,ct,Ir):void 0}var B=bf;function yf(r,e){return r&&r.length?K(r,He(e,2),Ir):void 0}var J=yf;function wf(r,e,n,o){if(!me(r))return r;e=Cn(e,r);var i=-1,f=e.length,s=f-1,u=r;while(u!=null&&++i<f){var d=Yt(e[i]),c=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return r;if(i!=s){var p=u[d];if(c=o?o(p,d,u):void 0,c===void 0)c=me(p)?p:bn(e[i+1])?[]:{}}j(u,d,c),u=u[d]}return r}var yt=wf;function _f(r,e,n){var o=-1,i=e.length,f={};while(++o<i){var s=e[o],u=Sn(r,s);if(n(u,s))yt(f,Cn(s,r),u)}return f}var wt=_f;function Ef(r,e){var n=r.length;r.sort(e);while(n--)r[n]=r[n].value;return r}var _t=Ef;function xf(r,e){if(r!==e){var n=r!==void 0,o=r===null,i=r===r,f=pt(r),s=e!==void 0,u=e===null,d=e===e,c=pt(e);if(!u&&!c&&!f&&r>e||f&&s&&d&&!u&&!c||o&&s&&d||!n&&d||!i)return 1;if(!o&&!f&&!c&&r<e||c&&n&&i&&!o&&!f||u&&n&&i||!s&&i||!d)return-1}return 0}var Et=xf;function Of(r,e,n){var o=-1,i=r.criteria,f=e.criteria,s=i.length,u=n.length;while(++o<s){var d=Et(i[o],f[o]);if(d){if(o>=u)return d;var c=n[o];return d*(c=="desc"?-1:1)}}return r.index-e.index}var xt=Of;function Lf(r,e,n){if(e.length)e=Wt(e,function(f){if(Y(f))return function(s){return Sn(s,f.length===1?f[0]:f)};return f});else e=[ct];var o=-1;e=Wt(e,wn(He));var i=Or(r,function(f,s,u){var d=Wt(e,function(c){return c(f)});return{criteria:d,index:++o,value:f}});return _t(i,function(f,s){return xt(f,s,n)})}var Ot=Lf;var If=Aa("length"),It=If;var Pt="\\ud800-\\udfff",Sf="\\u0300-\\u036f",Nf="\\ufe20-\\ufe2f",Pf="\\u20d0-\\u20ff",kf=Sf+Nf+Pf,Tf="\\ufe0e\\ufe0f",Cf="["+Pt+"]",Tr="["+kf+"]",Cr="\\ud83c[\\udffb-\\udfff]",Af="(?:"+Tr+"|"+Cr+")",kt="[^"+Pt+"]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rf="\\u200d",jt=Af+"?",Bt="["+Tf+"]?",Mf="(?:"+Rf+"(?:"+[kt,Rt,Mt].join("|")+")"+Bt+jt+")*",jf=Bt+jt+Mf,Bf="(?:"+[kt+Tr+"?",Tr,Rt,Mt,Cf].join("|")+")",Nt=RegExp(Cr+"(?="+Cr+")|"+Bf+jf,"g");function Df(r){var e=Nt.lastIndex=0;while(Nt.test(r))++e;return e}var Dt=Df;function Ff(r){return ve(r)?Dt(r):It(r)}var Ft=Ff;function Gf(r,e){return wt(r,e,function(n,o){return Ea(r,o)})}var Ut=Gf;var Xf=le(function(r,e){return r==null?{}:Ut(r,e)}),Z=Xf;var{ceil:Uf,max:Vf}=Math;function Yf(r,e,n,o){var i=-1,f=Vf(Uf((e-r)/(n||1)),0),s=Array(f);while(f--)s[o?f:++i]=r,r+=n;return s}var Vt=Yf;function zf(r){return function(e,n,o){if(o&&typeof o!="number"&&C(e,n,o))n=o=void 0;if(e=V(e),n===void 0)n=e,e=0;else n=V(n);return o=o===void 0?e<n?1:-1:V(o),Vt(e,n,o,r)}}var zt=zf;var Wf=zt(),P=Wf;var qf="[object Map]",Hf="[object Set]";function Kf(r){if(r==null)return 0;if(Oe(r))return vt(r)?Ft(r):r.length;var e=mt(r);if(e==qf||e==Hf)return r.size;return pr(r).length}var qt=Kf;var Jf=xn(function(r,e){if(r==null)return[];var n=e.length;if(n>1&&C(r,e[0],e[1]))e=[];else if(n>2&&C(e[0],e[1],e[2]))e=[e[0]];return Ot(r,fr(e,1),[])}),A=Jf;var Zf=0;function $f(r){var e=++Zf;return ka(r)+e}var Q=$f;function Qf(r,e,n){var o=-1,i=r.length,f=e.length,s={};while(++o<i){var u=o<f?e[o]:void 0;n(s,r[o],u)}return s}var Kt=Qf;function rs(r,e){return Kt(r||[],e||[],j)}var Ar=rs;class Rr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return Jt(e),e}enqueue(r){var e=this._sentinel;if(r._prev&&r._next)Jt(r);r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){var r=[],e=this._sentinel,n=e._prev;while(n!==e)r.push(JSON.stringify(n,es)),n=n._prev;return"["+r.join(", ")+"]"}}function Jt(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function es(r,e){if(r!=="_next"&&r!=="_prev")return e}var ts=ut(1);function Qt(r,e){if(r.nodeCount()<=1)return[];var n=os(r,e||ts),o=ns(n.graph,n.buckets,n.zeroIdx);return N(E(o,function(i){return r.outEdges(i.v,i.w)}))}function ns(r,e,n){var o=[],i=e[e.length-1],f=e[0],s;while(r.nodeCount()){while(s=f.dequeue())Mr(r,e,n,s);while(s=i.dequeue())Mr(r,e,n,s);if(r.nodeCount()){for(var u=e.length-2;u>0;--u)if(s=e[u].dequeue(),s){o=o.concat(Mr(r,e,n,s,!0));break}}}return o}function Mr(r,e,n,o,i){var f=i?[]:void 0;return g(r.inEdges(o.v),function(s){var u=r.edge(s),d=r.node(s.v);if(i)f.push({v:s.v,w:s.w});d.out-=u,jr(e,n,d)}),g(r.outEdges(o.v),function(s){var u=r.edge(s),d=s.w,c=r.node(d);c.in-=u,jr(e,n,c)}),r.removeNode(o.v),f}function os(r,e){var n=new re,o=0,i=0;g(r.nodes(),function(u){n.setNode(u,{v:u,in:0,out:0})}),g(r.edges(),function(u){var d=n.edge(u.v,u.w)||0,c=e(u),p=d+c;n.setEdge(u.v,u.w,p),i=Math.max(i,n.node(u.v).out+=c),o=Math.max(o,n.node(u.w).in+=c)});var f=P(i+o+3).map(function(){return new Rr}),s=o+1;return g(n.nodes(),function(u){jr(f,s,n.node(u))}),{graph:n,buckets:f,zeroIdx:s}}function jr(r,e,n){if(!n.out)r[0].enqueue(n);else if(!n.in)r[r.length-1].enqueue(n);else r[n.out-n.in+e].enqueue(n)}function rn(r){var e=r.graph().acyclicer==="greedy"?Qt(r,n(r)):is(r);g(e,function(o){var i=r.edge(o);r.removeEdge(o),i.forwardName=o.name,i.reversed=!0,r.setEdge(o.w,o.v,i,Q("rev"))});function n(o){return function(i){return o.edge(i).weight}}}function is(r){var e=[],n={},o={};function i(f){if(Object.prototype.hasOwnProperty.call(o,f))return;o[f]=!0,n[f]=!0,g(r.outEdges(f),function(s){if(Object.prototype.hasOwnProperty.call(n,s.w))e.push(s);else i(s.w)}),delete n[f]}return g(r.nodes(),i),e}function nn(r){g(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var o=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,o)}})}function T(r,e,n,o){var i;do i=Q(o);while(r.hasNode(i));return n.dummy=e,r.setNode(i,n),i}function an(r){var e=new re().setGraph(r.graph());return g(r.nodes(),function(n){e.setNode(n,r.node(n))}),g(r.edges(),function(n){var o=e.edge(n.v,n.w)||{weight:0,minlen:1},i=r.edge(n);e.setEdge(n.v,n.w,{weight:o.weight+i.weight,minlen:Math.max(o.minlen,i.minlen)})}),e}function Sr(r){var e=new re({multigraph:r.isMultigraph()}).setGraph(r.graph());return g(r.nodes(),function(n){if(!r.children(n).length)e.setNode(n,r.node(n))}),g(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Br(r,e){var{x:n,y:o}=r,i=e.x-n,f=e.y-o,s=r.width/2,u=r.height/2;if(!i&&!f)throw Error("Not possible to find intersection inside of the rectangle");var d,c;if(Math.abs(f)*s>Math.abs(i)*u){if(f<0)u=-u;d=u*i/f,c=u}else{if(i<0)s=-s;d=s,c=s*f/i}return{x:n+d,y:o+c}}function D(r){var e=E(P(Fr(r)+1),function(){return[]});return g(r.nodes(),function(n){var o=r.node(n),i=o.rank;if(!_e(i))e[i][o.order]=n}),e}function fn(r){var e=B(E(r.nodes(),function(n){return r.node(n).rank}));g(r.nodes(),function(n){var o=r.node(n);if(Lr(o,"rank"))o.rank-=e})}function sn(r){var e=B(E(r.nodes(),function(f){return r.node(f).rank})),n=[];g(r.nodes(),function(f){var s=r.node(f).rank-e;if(!n[s])n[s]=[];n[s].push(f)});var o=0,i=r.graph().nodeRankFactor;g(n,function(f,s){if(_e(f)&&s%i!==0)--o;else if(o)g(f,function(u){r.node(u).rank+=o})})}function Dr(r,e,n,o){var i={width:0,height:0};if(arguments.length>=4)i.rank=n,i.order=o;return T(r,"border",i,e)}function Fr(r){return S(E(r.nodes(),function(e){var n=r.node(e).rank;if(!_e(n))return n}))}function un(r,e){var n={lhs:[],rhs:[]};return g(r,function(o){if(e(o))n.lhs.push(o);else n.rhs.push(o)}),n}function dn(r,e){var n=kr();try{return e()}finally{console.log(r+" time: "+(kr()-n)+"ms")}}function cn(r,e){return e()}function ln(r){function e(n){var o=r.children(n),i=r.node(n);if(o.length)g(o,e);if(Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var f=i.minRank,s=i.maxRank+1;f<s;++f)pn(r,"borderLeft","_bl",n,i,f),pn(r,"borderRight","_br",n,i,f)}}g(r.children(),e)}function pn(r,e,n,o,i,f){var s={width:0,height:0,rank:f,borderType:e},u=i[e][f-1],d=T(r,"border",s,n);if(i[e][f]=d,r.setParent(d,o),u)r.setEdge(u,d,{weight:1})}function hn(r){var e=r.graph().rankdir.toLowerCase();if(e==="lr"||e==="rl")vn(r)}function gn(r){var e=r.graph().rankdir.toLowerCase();if(e==="bt"||e==="rl")as(r);if(e==="lr"||e==="rl")fs(r),vn(r)}function vn(r){g(r.nodes(),function(e){mn(r.node(e))}),g(r.edges(),function(e){mn(r.edge(e))})}function mn(r){var e=r.width;r.width=r.height,r.height=e}function as(r){g(r.nodes(),function(e){Gr(r.node(e))}),g(r.edges(),function(e){var n=r.edge(e);if(g(n.points,Gr),Object.prototype.hasOwnProperty.call(n,"y"))Gr(n)})}function Gr(r){r.y=-r.y}function fs(r){g(r.nodes(),function(e){Xr(r.node(e))}),g(r.edges(),function(e){var n=r.edge(e);if(g(n.points,Xr),Object.prototype.hasOwnProperty.call(n,"x"))Xr(n)})}function Xr(r){var e=r.x;r.x=r.y,r.y=e}function yn(r){r.graph().dummyChains=[],g(r.edges(),function(e){us(r,e)})}function us(r,e){var n=e.v,o=r.node(n).rank,i=e.w,f=r.node(i).rank,s=e.name,u=r.edge(e),d=u.labelRank;if(f===o+1)return;r.removeEdge(e);var c=void 0,p,m;for(m=0,++o;o<f;++m,++o){if(u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:o},p=T(r,"edge",c,"_d"),o===d)c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos;if(r.setEdge(n,p,{weight:u.weight},s),m===0)r.graph().dummyChains.push(p);n=p}r.setEdge(n,i,{weight:u.weight},s)}function En(r){g(r.graph().dummyChains,function(e){var n=r.node(e),o=n.edgeLabel,i;r.setEdge(n.edgeObj,o);while(n.dummy){if(i=r.successors(e)[0],r.removeNode(e),o.points.push({x:n.x,y:n.y}),n.dummy==="edge-label")o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height;e=i,n=r.node(e)}})}function ir(r){var e={};function n(o){var i=r.node(o);if(Object.prototype.hasOwnProperty.call(e,o))return i.rank;e[o]=!0;var f=B(E(r.outEdges(o),function(s){return n(s.w)-r.edge(s).minlen}));if(f===Number.POSITIVE_INFINITY||f===void 0||f===null)f=0;return i.rank=f}g(r.sources(),n)}function U(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function Nr(r){var e=new re({directed:!1}),n=r.nodes()[0],o=r.nodeCount();e.setNode(n,{});var i,f;while(ds(e,r)<o)i=cs(e,r),f=e.hasNode(i.v)?U(r,i):-U(r,i),ps(e,r,f);return e}function ds(r,e){function n(o){g(e.nodeEdges(o),function(i){var f=i.v,s=o===f?i.w:f;if(!r.hasNode(s)&&!U(e,i))r.setNode(s,{}),r.setEdge(o,s,{}),n(s)})}return g(r.nodes(),n),r.nodeCount()}function cs(r,e){return J(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return U(e,n)})}function ps(r,e,n){g(r.nodes(),function(o){e.node(o).rank+=n})}var dh=ut(1);var vh=ut(1);Ur.CycleException=ar;function Ur(r){var e={},n={},o=[];function i(f){if(Object.prototype.hasOwnProperty.call(n,f))throw new ar;if(!Object.prototype.hasOwnProperty.call(e,f))n[f]=!0,e[f]=!0,g(r.predecessors(f),i),delete n[f],o.push(f)}if(g(r.sinks(),i),qt(e)!==r.nodeCount())throw new ar;return o}function ar(){}ar.prototype=Error();function Pr(r,e,n){if(!Y(e))e=[e];var o=(r.isDirected()?r.successors:r.neighbors).bind(r),i=[],f={};return g(e,function(s){if(!r.hasNode(s))throw Error("Graph does not have node: "+s);Ln(r,s,n==="post",f,o,i)}),i}function Ln(r,e,n,o,i,f){if(!Object.prototype.hasOwnProperty.call(o,e)){if(o[e]=!0,!n)f.push(e);if(g(i(e),function(s){Ln(r,s,n,o,i,f)}),n)f.push(e)}}function Vr(r,e){return Pr(r,e,"post")}function Yr(r,e){return Pr(r,e,"pre")}G.initLowLimValues=qr;G.initCutValues=zr;G.calcCutValue=Nn;G.leaveEdge=An;G.enterEdge=Rn;G.exchangeEdges=Mn;function G(r){r=an(r),ir(r);var e=Nr(r);qr(e),zr(e,r);var n,o;while(n=An(e))o=Rn(e,r,n),Mn(e,r,n,o)}function zr(r,e){var n=Vr(r,r.nodes());n=n.slice(0,n.length-1),g(n,function(o){vs(r,e,o)})}function vs(r,e,n){var o=r.node(n),i=o.parent;r.edge(n,i).cutvalue=Nn(r,e,n)}function Nn(r,e,n){var o=r.node(n),i=o.parent,f=!0,s=e.edge(n,i),u=0;if(!s)f=!1,s=e.edge(i,n);return u=s.weight,g(e.nodeEdges(n),function(d){var c=d.v===n,p=c?d.w:d.v;if(p!==i){var m=c===f,h=e.edge(d).weight;if(u+=m?h:-h,ys(r,n,p)){var b=r.edge(n,p).cutvalue;u+=m?-b:b}}}),u}function qr(r,e){if(arguments.length<2)e=r.nodes()[0];Pn(r,{},1,e)}function Pn(r,e,n,o,i){var f=n,s=r.node(o);if(e[o]=!0,g(r.neighbors(o),function(u){if(!Object.prototype.hasOwnProperty.call(e,u))n=Pn(r,e,n,u,o)}),s.low=f,s.lim=n++,i)s.parent=i;else delete s.parent;return n}function An(r){return nr(r.edges(),function(e){return r.edge(e).cutvalue<0})}function Rn(r,e,n){var{v:o,w:i}=n;if(!e.hasEdge(o,i))o=n.w,i=n.v;var f=r.node(o),s=r.node(i),u=f,d=!1;if(f.lim>s.lim)u=s,d=!0;var c=et(e.edges(),function(p){return d===In(r,r.node(p.v),u)&&d!==In(r,r.node(p.w),u)});return J(c,function(p){return U(e,p)})}function Mn(r,e,n,o){var{v:i,w:f}=n;r.removeEdge(i,f),r.setEdge(o.v,o.w,{}),qr(r),zr(r,e),bs(r,e)}function bs(r,e){var n=nr(r.nodes(),function(i){return!e.node(i).parent}),o=Yr(r,n);o=o.slice(1),g(o,function(i){var f=r.node(i).parent,s=e.edge(i,f),u=!1;if(!s)s=e.edge(f,i),u=!0;e.node(i).rank=e.node(f).rank+(u?s.minlen:-s.minlen)})}function ys(r,e,n){return r.hasEdge(e,n)}function In(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function Hr(r){switch(r.graph().ranker){case"network-simplex":jn(r);break;case"tight-tree":_s(r);break;case"longest-path":ws(r);break;default:jn(r)}}var ws=ir;function _s(r){ir(r),Nr(r)}function jn(r){G(r)}function Bn(r){var e=T(r,"root",{},"_root"),n=Es(r),o=S(ft(n))-1,i=2*o+1;r.graph().nestingRoot=e,g(r.edges(),function(s){r.edge(s).minlen*=i});var f=xs(r)+1;g(r.children(),function(s){Dn(r,e,i,f,o,n,s)}),r.graph().nodeRankFactor=i}function Dn(r,e,n,o,i,f,s){var u=r.children(s);if(!u.length){if(s!==e)r.setEdge(e,s,{weight:0,minlen:n});return}var d=Dr(r,"_bt"),c=Dr(r,"_bb"),p=r.node(s);if(r.setParent(d,s),p.borderTop=d,r.setParent(c,s),p.borderBottom=c,g(u,function(m){Dn(r,e,n,o,i,f,m);var h=r.node(m),b=h.borderTop?h.borderTop:m,w=h.borderBottom?h.borderBottom:m,y=h.borderTop?o:2*o,v=b!==w?1:i-f[s]+1;r.setEdge(d,b,{weight:y,minlen:v,nestingEdge:!0}),r.setEdge(w,c,{weight:y,minlen:v,nestingEdge:!0})}),!r.parent(s))r.setEdge(e,d,{weight:0,minlen:i+f[s]})}function Es(r){var e={};function n(o,i){var f=r.children(o);if(f&&f.length)g(f,function(s){n(s,i+1)});e[o]=i}return g(r.children(),function(o){n(o,1)}),e}function xs(r){return Xt(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function Fn(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,g(r.edges(),function(n){var o=r.edge(n);if(o.nestingEdge)r.removeEdge(n)})}function Gn(r,e,n){var o={},i;g(n,function(f){var s=r.parent(f),u,d;while(s){if(u=r.parent(s),u)d=o[u],o[u]=s;else d=i,i=s;if(d&&d!==s){e.setEdge(d,s);return}s=u}})}function Xn(r,e,n){var o=Ls(r),i=new re({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(f){return r.node(f)});return g(r.nodes(),function(f){var s=r.node(f),u=r.parent(f);if(s.rank===e||s.minRank<=e&&e<=s.maxRank){if(i.setNode(f),i.setParent(f,u||o),g(r[n](f),function(d){var c=d.v===f?d.w:d.v,p=i.edge(c,f),m=!_e(p)?p.weight:0;i.setEdge(c,f,{weight:r.edge(d).weight+m})}),Object.prototype.hasOwnProperty.call(s,"minRank"))i.setNode(f,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]})}}),i}function Ls(r){var e;while(r.hasNode(e=Q("_root")));return e}function Vn(r,e){var n=0;for(var o=1;o<e.length;++o)n+=Is(r,e[o-1],e[o]);return n}function Is(r,e,n){var o=Ar(n,E(n,function(c,p){return p})),i=N(E(e,function(c){return A(E(r.outEdges(c),function(p){return{pos:o[p.w],weight:r.edge(p).weight}}),"pos")})),f=1;while(f<n.length)f<<=1;var s=2*f-1;f-=1;var u=E(Array(s),function(){return 0}),d=0;return g(i.forEach(function(c){var p=c.pos+f;u[p]+=c.weight;var m=0;while(p>0){if(p%2)m+=u[p+1];p=p-1>>1,u[p]+=c.weight}d+=c.weight*m})),d}function Yn(r){var e={},n=et(r.nodes(),function(u){return!r.children(u).length}),o=S(E(n,function(u){return r.node(u).rank})),i=E(P(o+1),function(){return[]});function f(u){if(Lr(e,u))return;e[u]=!0;var d=r.node(u);i[d.rank].push(u),g(r.successors(u),f)}var s=A(n,function(u){return r.node(u).rank});return g(s,f),i}function zn(r,e){return E(e,function(n){var o=r.inEdges(n);if(!o.length)return{v:n};else{var i=Xt(o,function(f,s){var u=r.edge(s),d=r.node(s.v);return{sum:f.sum+u.weight*d.order,weight:f.weight+u.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}})}function Wn(r,e){var n={};g(r,function(i,f){var s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:f};if(!_e(i.barycenter))s.barycenter=i.barycenter,s.weight=i.weight}),g(e.edges(),function(i){var f=n[i.v],s=n[i.w];if(!_e(f)&&!_e(s))s.indegree++,f.out.push(n[i.w])});var o=et(n,function(i){return!i.indegree});return Ss(o)}function Ss(r){var e=[];function n(f){return function(s){if(s.merged)return;if(_e(s.barycenter)||_e(f.barycenter)||s.barycenter>=f.barycenter)Ns(f,s)}}function o(f){return function(s){if(s.in.push(f),--s.indegree===0)r.push(s)}}while(r.length){var i=r.pop();e.push(i),g(i.in.reverse(),n(i)),g(i.out,o(i))}return E(et(e,function(f){return!f.merged}),function(f){return Z(f,["vs","i","barycenter","weight"])})}function Ns(r,e){var n=0,o=0;if(r.weight)n+=r.barycenter*r.weight,o+=r.weight;if(e.weight)n+=e.barycenter*e.weight,o+=e.weight;r.vs=e.vs.concat(r.vs),r.barycenter=n/o,r.weight=o,r.i=Math.min(e.i,r.i),e.merged=!0}function Hn(r,e){var n=un(r,function(p){return Object.prototype.hasOwnProperty.call(p,"barycenter")}),o=n.lhs,i=A(n.rhs,function(p){return-p.i}),f=[],s=0,u=0,d=0;o.sort(Ps(!!e)),d=qn(f,i,d),g(o,function(p){d+=p.vs.length,f.push(p.vs),s+=p.barycenter*p.weight,u+=p.weight,d=qn(f,i,d)});var c={vs:N(f)};if(u)c.barycenter=s/u,c.weight=u;return c}function qn(r,e,n){var o;while(e.length&&(o=X(e)).i<=n)e.pop(),r.push(o.vs),n++;return n}function Ps(r){return function(e,n){if(e.barycenter<n.barycenter)return-1;else if(e.barycenter>n.barycenter)return 1;return!r?e.i-n.i:n.i-e.i}}function Kr(r,e,n,o){var i=r.children(e),f=r.node(e),s=f?f.borderLeft:void 0,u=f?f.borderRight:void 0,d={};if(s)i=et(i,function(w){return w!==s&&w!==u});var c=zn(r,i);g(c,function(w){if(r.children(w.v).length){var y=Kr(r,w.v,n,o);if(d[w.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter"))Ts(w,y)}});var p=Wn(c,n);ks(p,d);var m=Hn(p,o);if(s){if(m.vs=N([s,m.vs,u]),r.predecessors(s).length){var h=r.node(r.predecessors(s)[0]),b=r.node(r.predecessors(u)[0]);if(!Object.prototype.hasOwnProperty.call(m,"barycenter"))m.barycenter=0,m.weight=0;m.barycenter=(m.barycenter*m.weight+h.order+b.order)/(m.weight+2),m.weight+=2}}return m}function ks(r,e){g(r,function(n){n.vs=N(n.vs.map(function(o){if(e[o])return e[o].vs;return o}))})}function Ts(r,e){if(!_e(r.barycenter))r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight;else r.barycenter=e.barycenter,r.weight=e.weight}function $n(r){var e=Fr(r),n=Jn(r,P(1,e+1),"inEdges"),o=Jn(r,P(e-1,-1,-1),"outEdges"),i=Yn(r);Zn(r,i);var f=Number.POSITIVE_INFINITY,s;for(var u=0,d=0;d<4;++u,++d){Cs(u%2?n:o,u%4>=2),i=D(r);var c=Vn(r,i);if(c<f)d=0,s=$e(i),f=c}Zn(r,s)}function Jn(r,e,n){return E(e,function(o){return Xn(r,o,n)})}function Cs(r,e){var n=new re;g(r,function(o){var i=o.graph().root,f=Kr(o,i,n,e);g(f.vs,function(s,u){o.node(s).order=u}),Gn(o,n,f.vs)})}function Zn(r,e){g(e,function(n){g(n,function(o,i){r.node(o).order=i})})}function Qn(r){var e=Rs(r);g(r.graph().dummyChains,function(n){var o=r.node(n),i=o.edgeObj,f=As(r,e,i.v,i.w),{path:s,lca:u}=f,d=0,c=s[d],p=!0;while(n!==i.w){if(o=r.node(n),p){while((c=s[d])!==u&&r.node(c).maxRank<o.rank)d++;if(c===u)p=!1}if(!p){while(d<s.length-1&&r.node(c=s[d+1]).minRank<=o.rank)d++;c=s[d]}r.setParent(n,c),n=r.successors(n)[0]}})}function As(r,e,n,o){var i=[],f=[],s=Math.min(e[n].low,e[o].low),u=Math.max(e[n].lim,e[o].lim),d,c;d=n;do d=r.parent(d),i.push(d);while(d&&(e[d].low>s||u>e[d].lim));c=d,d=o;while((d=r.parent(d))!==c)f.push(d);return{path:i.concat(f.reverse()),lca:c}}function Rs(r){var e={},n=0;function o(i){var f=n;g(r.children(i),o),e[i]={low:f,lim:n++}}return g(r.children(),o),e}function Ms(r,e){var n={};function o(i,f){var s=0,u=0,d=i.length,c=X(f);return g(f,function(p,m){var h=Bs(r,p),b=h?r.node(h).order:d;if(h||p===c)g(f.slice(u,m+1),function(w){g(r.predecessors(w),function(y){var v=r.node(y),_=v.order;if((_<s||b<_)&&!(v.dummy&&r.node(w).dummy))ro(n,y,w)})}),u=m+1,s=b}),f}return Xt(e,o),n}function js(r,e){var n={};function o(f,s,u,d,c){var p;g(P(s,u),function(m){if(p=f[m],r.node(p).dummy)g(r.predecessors(p),function(h){var b=r.node(h);if(b.dummy&&(b.order<d||b.order>c))ro(n,h,p)})})}function i(f,s){var u=-1,d,c=0;return g(s,function(p,m){if(r.node(p).dummy==="border"){var h=r.predecessors(p);if(h.length)d=r.node(h[0]).order,o(s,c,m,u,d),c=m,u=d}o(s,c,s.length,d,f.length)}),s}return Xt(e,i),n}function Bs(r,e){if(r.node(e).dummy)return nr(r.predecessors(e),function(n){return r.node(n).dummy})}function ro(r,e,n){if(e>n){var o=e;e=n,n=o}if(!Object.prototype.hasOwnProperty.call(r,e))Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=r[e];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ds(r,e,n){if(e>n){var o=e;e=n,n=o}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Fs(r,e,n,o){var i={},f={},s={};return g(e,function(u){g(u,function(d,c){i[d]=d,f[d]=d,s[d]=c})}),g(e,function(u){var d=-1;g(u,function(c){var p=o(c);if(p.length){p=A(p,function(y){return s[y]});var m=(p.length-1)/2;for(var h=Math.floor(m),b=Math.ceil(m);h<=b;++h){var w=p[h];if(f[c]===c&&d<s[w]&&!Ds(n,c,w))f[w]=c,f[c]=i[c]=i[w],d=s[w]}}})}),{root:i,align:f}}function Gs(r,e,n,o,i){var f={},s=Xs(r,e,n,i),u=i?"borderLeft":"borderRight";function d(m,h){var b=s.nodes(),w=b.pop(),y={};while(w){if(y[w])m(w);else y[w]=!0,b.push(w),b=b.concat(h(w));w=b.pop()}}function c(m){f[m]=s.inEdges(m).reduce(function(h,b){return Math.max(h,f[b.v]+s.edge(b))},0)}function p(m){var h=s.outEdges(m).reduce(function(w,y){return Math.min(w,f[y.w]-s.edge(y))},Number.POSITIVE_INFINITY),b=r.node(m);if(h!==Number.POSITIVE_INFINITY&&b.borderType!==u)f[m]=Math.max(f[m],h)}return d(c,s.predecessors.bind(s)),d(p,s.successors.bind(s)),g(o,function(m){f[m]=f[n[m]]}),f}function Xs(r,e,n,o){var i=new re,f=r.graph(),s=zs(f.nodesep,f.edgesep,o);return g(e,function(u){var d;g(u,function(c){var p=n[c];if(i.setNode(p),d){var m=n[d],h=i.edge(m,p);i.setEdge(m,p,Math.max(s(r,c,d),h||0))}d=c})}),i}function Us(r,e){return J(ft(e),function(n){var{NEGATIVE_INFINITY:o,POSITIVE_INFINITY:i}=Number;return dt(n,function(f,s){var u=Ws(r,s)/2;o=Math.max(f+u,o),i=Math.min(f-u,i)}),o-i})}function Vs(r,e){var n=ft(e),o=B(n),i=S(n);g(["u","d"],function(f){g(["l","r"],function(s){var u=f+s,d=r[u],c;if(d===e)return;var p=ft(d);if(c=s==="l"?o-B(p):i-S(p),c)r[u]=H(d,function(m){return m+c})})})}function Ys(r,e){return H(r.ul,function(n,o){if(e)return r[e.toLowerCase()][o];else{var i=A(E(r,o));return(i[1]+i[2])/2}})}function eo(r){var e=D(r),n=or(Ms(r,e),js(r,e)),o={},i;g(["u","d"],function(s){i=s==="u"?e:ft(e).reverse(),g(["l","r"],function(u){if(u==="r")i=E(i,function(m){return ft(m).reverse()});var d=(s==="u"?r.predecessors:r.successors).bind(r),c=Fs(r,i,n,d),p=Gs(r,i,c.root,c.align,u==="r");if(u==="r")p=H(p,function(m){return-m});o[s+u]=p})});var f=Us(r,o);return Vs(o,f),Ys(o,r.graph().align)}function zs(r,e,n){return function(o,i,f){var s=o.node(i),u=o.node(f),d=0,c;if(d+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":c=-s.width/2;break;case"r":c=s.width/2;break}if(c)d+=n?c:-c;if(c=0,d+=(s.dummy?e:r)/2,d+=(u.dummy?e:r)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}if(c)d+=n?c:-c;return c=0,d}}function Ws(r,e){return r.node(e).width}function to(r){r=Sr(r),qs(r),lt(eo(r),function(e,n){r.node(n).x=e})}function qs(r){var e=D(r),n=r.graph().ranksep,o=0;g(e,function(i){var f=S(E(i,function(s){return r.node(s).height}));g(i,function(s){r.node(s).y=o+f/2}),o+=f+n})}function $r(r,e){var n=e&&e.debugTiming?dn:cn;n("layout",()=>{var o=n(" buildLayoutGraph",()=>ou(r));n(" runLayout",()=>Hs(o,n)),n(" updateInputGraph",()=>Ks(r,o))})}function Hs(r,e){e(" makeSpaceForEdgeLabels",()=>iu(r)),e(" removeSelfEdges",()=>mu(r)),e(" acyclic",()=>rn(r)),e(" nestingGraph.run",()=>Bn(r)),e(" rank",()=>Hr(Sr(r))),e(" injectEdgeLabelProxies",()=>au(r)),e(" removeEmptyRanks",()=>sn(r)),e(" nestingGraph.cleanup",()=>Fn(r)),e(" normalizeRanks",()=>fn(r)),e(" assignRankMinMax",()=>fu(r)),e(" removeEdgeLabelProxies",()=>su(r)),e(" normalize.run",()=>yn(r)),e(" parentDummyChains",()=>Qn(r)),e(" addBorderSegments",()=>ln(r)),e(" order",()=>$n(r)),e(" insertSelfEdges",()=>hu(r)),e(" adjustCoordinateSystem",()=>hn(r)),e(" position",()=>to(r)),e(" positionSelfEdges",()=>gu(r)),e(" removeBorderNodes",()=>lu(r)),e(" normalize.undo",()=>En(r)),e(" fixupEdgeLabelCoords",()=>cu(r)),e(" undoCoordinateSystem",()=>gn(r)),e(" translateGraph",()=>uu(r)),e(" assignNodeIntersects",()=>du(r)),e(" reversePoints",()=>pu(r)),e(" acyclic.undo",()=>nn(r))}function Ks(r,e){g(r.nodes(),function(n){var o=r.node(n),i=e.node(n);if(o){if(o.x=i.x,o.y=i.y,e.children(n).length)o.width=i.width,o.height=i.height}}),g(r.edges(),function(n){var o=r.edge(n),i=e.edge(n);if(o.points=i.points,Object.prototype.hasOwnProperty.call(i,"x"))o.x=i.x,o.y=i.y}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var Js=["nodesep","edgesep","ranksep","marginx","marginy"],Zs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$s=["acyclicer","ranker","rankdir","align"],Qs=["width","height"],ru={width:0,height:0},eu=["minlen","weight","width","height","labeloffset"],tu={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},nu=["labelpos"];function ou(r){var e=new re({multigraph:!0,compound:!0}),n=Zr(r.graph());return e.setGraph(or({},Zs,Jr(n,Js),Z(n,$s))),g(r.nodes(),function(o){var i=Zr(r.node(o));e.setNode(o,rt(Jr(i,Qs),ru)),e.setParent(o,r.parent(o))}),g(r.edges(),function(o){var i=Zr(r.edge(o));e.setEdge(o,or({},tu,Jr(i,eu),Z(i,nu)))}),e}function iu(r){var e=r.graph();e.ranksep/=2,g(r.edges(),function(n){var o=r.edge(n);if(o.minlen*=2,o.labelpos.toLowerCase()!=="c")if(e.rankdir==="TB"||e.rankdir==="BT")o.width+=o.labeloffset;else o.height+=o.labeloffset})}function au(r){g(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var o=r.node(e.v),i=r.node(e.w),f={rank:(i.rank-o.rank)/2+o.rank,e};T(r,"edge-proxy",f,"_ep")}})}function fu(r){var e=0;g(r.nodes(),function(n){var o=r.node(n);if(o.borderTop)o.minRank=r.node(o.borderTop).rank,o.maxRank=r.node(o.borderBottom).rank,e=S(e,o.maxRank)}),r.graph().maxRank=e}function su(r){g(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="edge-proxy")r.edge(n.e).labelRank=n.rank,r.removeNode(e)})}function uu(r){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,f=r.graph(),s=f.marginx||0,u=f.marginy||0;function d(c){var{x:p,y:m,width:h,height:b}=c;e=Math.min(e,p-h/2),n=Math.max(n,p+h/2),o=Math.min(o,m-b/2),i=Math.max(i,m+b/2)}g(r.nodes(),function(c){d(r.node(c))}),g(r.edges(),function(c){var p=r.edge(c);if(Object.prototype.hasOwnProperty.call(p,"x"))d(p)}),e-=s,o-=u,g(r.nodes(),function(c){var p=r.node(c);p.x-=e,p.y-=o}),g(r.edges(),function(c){var p=r.edge(c);if(g(p.points,function(m){m.x-=e,m.y-=o}),Object.prototype.hasOwnProperty.call(p,"x"))p.x-=e;if(Object.prototype.hasOwnProperty.call(p,"y"))p.y-=o}),f.width=n-e+s,f.height=i-o+u}function du(r){g(r.edges(),function(e){var n=r.edge(e),o=r.node(e.v),i=r.node(e.w),f,s;if(!n.points)n.points=[],f=i,s=o;else f=n.points[0],s=n.points[n.points.length-1];n.points.unshift(Br(o,f)),n.points.push(Br(i,s))})}function cu(r){g(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r")n.width-=n.labeloffset;switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}})}function pu(r){g(r.edges(),function(e){var n=r.edge(e);if(n.reversed)n.points.reverse()})}function lu(r){g(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),o=r.node(n.borderTop),i=r.node(n.borderBottom),f=r.node(X(n.borderLeft)),s=r.node(X(n.borderRight));n.width=Math.abs(s.x-f.x),n.height=Math.abs(i.y-o.y),n.x=f.x+n.width/2,n.y=o.y+n.height/2}}),g(r.nodes(),function(e){if(r.node(e).dummy==="border")r.removeNode(e)})}function mu(r){g(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);if(!n.selfEdges)n.selfEdges=[];n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function hu(r){var e=D(r);g(e,function(n){var o=0;g(n,function(i,f){var s=r.node(i);s.order=f+o,g(s.selfEdges,function(u){T(r,"selfedge",{width:u.label.width,height:u.label.height,rank:s.rank,order:f+ ++o,e:u.e,label:u.label},"_se")}),delete s.selfEdges})})}function gu(r){g(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var o=r.node(n.e.v),i=o.x+o.width/2,f=o.y,s=n.x-i,u=o.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:i+2*s/3,y:f-u},{x:i+5*s/6,y:f-u},{x:i+s,y:f},{x:i+5*s/6,y:f+u},{x:i+2*s/3,y:f+u}],n.label.x=n.x,n.label.y=n.y}})}function Jr(r,e){return H(Z(r,e),Number)}function Zr(r){var e={};return g(r,function(n,o){e[o.toLowerCase()]=n}),e}var no=t((r,e,n)=>Math.max(e,Math.min(n,r)),"clamp"),io=t((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),vu=t((r)=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),bu=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],yu=t((r,e,n,o,i)=>{let f=[],s=new Set;if(n.forEach(({start:p,end:m})=>{if(p!==o)s.add(p);if(m!==o)s.add(m)}),s.forEach((p)=>{let m=r.node(p);if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)}),f.length===0)n.forEach(({edge:p})=>{(p.points??[]).forEach((m)=>{if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)})});if(f.length===0)return io(i);let u=f.reduce((p,m)=>({x:p.x+m.x/f.length,y:p.y+m.y/f.length}),{x:0,y:0}),d=u.x-e.x,c=u.y-e.y;if(Math.abs(d)>Math.abs(c))return d>0?"right":"left";if(Math.abs(c)>0)return c>0?"bottom":"top";return io(i)},"getSelfLoopSide"),wu=t((r,e="top",n=0,o=0)=>{let i=r.x,f=r.y-n,s=r.width/2,u=r.height/2,d=Math.max(36,Math.min(100,r.width*0.8)),c=no(Math.max(o,r.width*0.35),36,d),p=no(Math.min(r.width,r.height)*0.45,24,48);switch(e){case"bottom":{let m=f+u;return[{x:i-c/2,y:m},{x:i-c/2,y:m+p},{x:i+c/2,y:m+p},{x:i+c/2,y:m}]}case"right":{let m=i+s;return[{x:m,y:f-c/2},{x:m+p,y:f-c/2},{x:m+p,y:f+c/2},{x:m,y:f+c/2}]}case"left":{let m=i-s;return[{x:m,y:f-c/2},{x:m-p,y:f-c/2},{x:m-p,y:f+c/2},{x:m,y:f+c/2}]}case"top":default:{let m=f-u;return[{x:i-c/2,y:m},{x:i-c/2,y:m-p},{x:i+c/2,y:m-p},{x:i+c/2,y:m}]}}},"getSelfLoopPoints"),_u=t((r,e,n="top",o=0,i={})=>{let s=r.x,u=r.y-o,d=i.width??0,c=i.height??0;switch(n){case"bottom":return{x:s,y:Math.max(...e.map((p)=>p.y))+c/2+4};case"right":return{x:Math.max(...e.map((p)=>p.x))+d/2+4,y:u};case"left":return{x:Math.min(...e.map((p)=>p.x))-d/2-4,y:u};case"top":default:return{x:s,y:Math.min(...e.map((p)=>p.y))-c/2-4}}},"getSelfLoopLabelPosition"),oo=t((r,e=0,{mergeSelfLoops:n=!0}={})=>{let o=new Map,i=[],f=r.graph()?.rankdir;return r.edges().forEach((s)=>{let u=r.edge(s);if(n&&u.selfLoop){let d=u.selfLoop.id;if(!o.has(d))o.set(d,[]);o.get(d).push({edge:u,start:s.v,end:s.w})}else i.push({edge:u,start:s.v,end:s.w})}),o.forEach((s)=>{if(s.length!==3){s.forEach((_)=>i.push(_));return}s.sort((_,R)=>_.edge.selfLoop.order-R.edge.selfLoop.order);let[u,d,c]=s,p=u.edge.originalEdge??d.edge.originalEdge??c.edge.originalEdge??d.edge,m=r.node(p.start);if(!m){s.forEach((_)=>i.push(_));return}let h={width:d.edge.width,height:d.edge.height},b=yu(r,m,s,p.start,f),w=wu(m,b,e,h.width??0),y=_u(m,w,b,e,h),v={...d.edge,...p,id:p.id,points:w,start:p.start,end:p.end,x:y.x,y:y.y,width:h.width,height:h.height,labelStyle:d.edge.labelStyle,fromCluster:u.edge.fromCluster??d.edge.fromCluster??c.edge.fromCluster,toCluster:u.edge.toCluster??d.edge.toCluster??c.edge.toCluster};delete v.selfLoop,delete v.originalEdge,i.push({edge:v,start:v.start,end:v.end})}),i},"getEdgesToRender"),fo=t(async({element:r,graph:e,diagramType:n,id:o,parentCluster:i,siteConfig:f})=>{let s=e.graph().rankdir;a.trace("Dir in recursive render - dir:",s);let{clusters:u,edgePaths:d,edgeLabels:c,nodes:p,rootGroups:m}=fa(r,{edgePathsClass:"edgePaths"});if(!e.nodes())a.info("No nodes found for",e);else a.info("Recursive render XXX",e.nodes());if(e.edges().length>0)a.info("Recursive edges",e.edge(e.edges()[0]));let h=vu(n);await Promise.all(e.nodes().map(async function(y){let v=e.node(y);if(i!==void 0){let _=JSON.parse(JSON.stringify(i.clusterData));if(a.trace(`Setting data for parent cluster XXX
1
+ import{t,a,l,I,Tt,So,bt,en,At,Kn,tn}from"./chunk-t5ke9cyg.js";import{be,Pe,Je,Ee,pt,Wt,Y,me,ct,Gt,ut,dr,ya,va,ba,bn,Ct,xa,xn,Oe,_n,$t,St,wn,Ht,kn,_a,wa,pr,xe,ka,Cn,Yt,Sn,mr,fr,Zt,Ca,hr,Sa,Wr,mt,gr,Ta,Ea,Aa,He,yr,vr,Tn,Ra,br,g,et,ft,_e,Xt,re}from"./chunk-3f8fjee5.js";import{fa,ha,W,Un,co,ga,ur}from"./chunk-8nm0mghm.js";import{Lt}from"./chunk-jy448465.js";var lr={};Lt(lr,{default:()=>rr});var po=/\s/;function mo(r){var e=r.length;while(e--&&po.test(r.charAt(e)));return e}var te=mo;var ho=/^\s+/;function go(r){return r?r.slice(0,te(r)+1).replace(ho,""):r}var ne=go;var oe=NaN,vo=/^[-+]0x[0-9a-f]+$/i,bo=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,wo=parseInt;function _o(r){if(typeof r=="number")return r;if(pt(r))return oe;if(me(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=me(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=ne(r);var n=bo.test(r);return n||yo.test(r)?wo(r.slice(2),n?2:8):vo.test(r)?oe:+r}var ie=_o;var ae=1/0,Eo=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;function xo(r){if(!r)return r===0?r:0;if(r=ie(r),r===ae||r===-ae){var e=r<0?-1:1;return e*Eo}return r===r?r:0}var V=xo;function Lo(r){var e=V(r),n=e%1;return e===e?n?e-n:e:0}var fe=Lo;var se=Object.create,Io=function(){function r(){}return function(e){if(!me(e))return{};if(se)return se(e);r.prototype=e;var n=new r;return r.prototype=void 0,n}}(),ue=Io;function No(r,e){var n=-1,o=r.length;e||(e=Array(o));while(++n<o)e[n]=r[n];return e}var sr=No;function ko(r,e,n){if(e=="__proto__"&&dr)dr(r,e,{configurable:!0,enumerable:!0,value:n,writable:!0});else r[e]=n}var M=ko;var To=Object.prototype,Co=To.hasOwnProperty;function Ao(r,e,n){var o=r[e];if(!(Co.call(r,e)&&Ct(o,n))||n===void 0&&!(e in r))M(r,e,n)}var j=Ao;function Ro(r,e,n,o){var i=!n;n||(n={});var f=-1,s=e.length;while(++f<s){var u=e[f],d=o?o(n[u],r[u],u,n,r):void 0;if(d===void 0)d=r[u];if(i)M(n,u,d);else j(n,u,d)}return n}var k=Ro;function jo(r,e,n){if(!me(n))return!1;var o=typeof e;if(o=="number"?Oe(n)&&bn(e,n.length):o=="string"&&(e in n))return Ct(n[e],r);return!1}var C=jo;function Bo(r){return xn(function(e,n){var o=-1,i=n.length,f=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;if(f=r.length>3&&typeof f=="function"?(i--,f):void 0,s&&C(n[0],n[1],s))f=i<3?void 0:f,i=1;e=Object(e);while(++o<i){var u=n[o];if(u)r(e,u,o,f)}return e})}var de=Bo;function Do(r){var e=[];if(r!=null)for(var n in Object(r))e.push(n);return e}var ce=Do;var Fo=Object.prototype,Go=Fo.hasOwnProperty;function Xo(r){if(!me(r))return ce(r);var e=_n(r),n=[];for(var o in r)if(!(o=="constructor"&&(e||!Go.call(r,o))))n.push(o);return n}var pe=Xo;function Uo(r){return Oe(r)?_a(r,!0):pe(r)}var L=Uo;function Vo(r){var e=r==null?0:r.length;return e?fr(r,1):[]}var N=Vo;function Yo(r){return ya(xa(r,void 0,N),r+"")}var le=Yo;var zo=wa(Object.getPrototypeOf,Object),z=zo;var Wo="[object Object]",qo=Function.prototype,Ho=Object.prototype,he=qo.toString,Ko=Ho.hasOwnProperty,Jo=he.call(Object);function Zo(r){if(!Ee(r)||Je(r)!=Wo)return!1;var e=z(r);if(e===null)return!0;var n=Ko.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&he.call(n)==Jo}var ge=Zo;var $o="\\ud800-\\udfff",Qo="\\u0300-\\u036f",ri="\\ufe20-\\ufe2f",ei="\\u20d0-\\u20ff",ti=Qo+ri+ei,ni="\\ufe0e\\ufe0f",oi="\\u200d",ii=RegExp("["+oi+$o+ti+ni+"]");function ai(r){return ii.test(r)}var ve=ai;function fi(r,e){return r&&k(e,xe(e),r)}var ye=fi;function si(r,e){return r&&k(e,L(e),r)}var we=si;var Ne=typeof lr=="object"&&lr&&!lr.nodeType&&lr,Le=Ne&&typeof cr=="object"&&cr&&!cr.nodeType&&cr,ui=Le&&Le.exports===Ne,Ie=ui?be.Buffer:void 0,Se=Ie?Ie.allocUnsafe:void 0;function di(r,e){if(e)return r.slice();var n=r.length,o=Se?Se(n):new r.constructor(n);return r.copy(o),o}var rr=di;function ci(r,e){return k(r,hr(r),e)}var ke=ci;var pi=Object.getOwnPropertySymbols,li=!pi?Ca:function(r){var e=[];while(r)mr(e,hr(r)),r=z(r);return e},wr=li;function mi(r,e){return k(r,wr(r),e)}var Te=mi;function hi(r){return Sa(r,L,wr)}var Ce=hi;var gi=Object.prototype,vi=gi.hasOwnProperty;function bi(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&vi.call(r,"index"))n.index=r.index,n.input=r.input;return n}var Ae=bi;function yi(r){var e=new r.constructor(r.byteLength);return new gr(e).set(new gr(r)),e}var q=yi;function wi(r,e){var n=e?q(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var Re=wi;var _i=/\w*$/;function Ei(r){var e=new r.constructor(r.source,_i.exec(r));return e.lastIndex=r.lastIndex,e}var Me=Ei;var je=Pe?Pe.prototype:void 0,Be=je?je.valueOf:void 0;function xi(r){return Be?Object(Be.call(r)):{}}var De=xi;function Oi(r,e){var n=e?q(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}var _r=Oi;var Li="[object Boolean]",Ii="[object Date]",Si="[object Map]",Ni="[object Number]",Pi="[object RegExp]",ki="[object Set]",Ti="[object String]",Ci="[object Symbol]",Ai="[object ArrayBuffer]",Ri="[object DataView]",Mi="[object Float32Array]",ji="[object Float64Array]",Bi="[object Int8Array]",Di="[object Int16Array]",Fi="[object Int32Array]",Gi="[object Uint8Array]",Xi="[object Uint8ClampedArray]",Ui="[object Uint16Array]",Vi="[object Uint32Array]";function Yi(r,e,n){var o=r.constructor;switch(e){case Ai:return q(r);case Li:case Ii:return new o(+r);case Ri:return Re(r,n);case Mi:case ji:case Bi:case Di:case Fi:case Gi:case Xi:case Ui:case Vi:return _r(r,n);case Si:return new o;case Ni:case Ti:return new o(r);case Pi:return Me(r);case ki:return new o;case Ci:return De(r)}}var Fe=Yi;function zi(r){return typeof r.constructor=="function"&&!_n(r)?ue(z(r)):{}}var Er=zi;var Wi="[object Map]";function qi(r){return Ee(r)&&mt(r)==Wi}var Ge=qi;var Xe=Ht&&Ht.isMap,Hi=Xe?wn(Xe):Ge,Ue=Hi;var Ki="[object Set]";function Ji(r){return Ee(r)&&mt(r)==Ki}var Ve=Ji;var Ye=Ht&&Ht.isSet,Zi=Ye?wn(Ye):Ve,ze=Zi;var $i=1,Qi=2,ra=4,We="[object Arguments]",ea="[object Array]",ta="[object Boolean]",na="[object Date]",oa="[object Error]",qe="[object Function]",ia="[object GeneratorFunction]",aa="[object Map]",sa="[object Number]",Ke="[object Object]",ua="[object RegExp]",da="[object Set]",ca="[object String]",pa="[object Symbol]",la="[object WeakMap]",ma="[object ArrayBuffer]",Oa="[object DataView]",La="[object Float32Array]",Ia="[object Float64Array]",Na="[object Int8Array]",Pa="[object Int16Array]",Ma="[object Int32Array]",ja="[object Uint8Array]",Ba="[object Uint8ClampedArray]",Da="[object Uint16Array]",Fa="[object Uint32Array]",x={};x[We]=x[ea]=x[ma]=x[Oa]=x[ta]=x[na]=x[La]=x[Ia]=x[Na]=x[Pa]=x[Ma]=x[aa]=x[sa]=x[Ke]=x[ua]=x[da]=x[ca]=x[pa]=x[ja]=x[Ba]=x[Da]=x[Fa]=!0;x[oa]=x[qe]=x[la]=!1;function xr(r,e,n,o,i,f){var s,u=e&$i,d=e&Qi,c=e&ra;if(n)s=i?n(r,o,i,f):n(r);if(s!==void 0)return s;if(!me(r))return r;var p=Y(r);if(p){if(s=Ae(r),!u)return sr(r,s)}else{var m=mt(r),h=m==qe||m==ia;if(St(r))return rr(r,u);if(m==Ke||m==We||h&&!i){if(s=d||h?{}:Er(r),!u)return d?Te(r,we(s,r)):ke(r,ye(s,r))}else{if(!x[m])return i?r:{};s=Fe(r,m,u)}}f||(f=new Zt);var b=f.get(r);if(b)return b;if(f.set(r,s),ze(r))r.forEach(function(v){s.add(xr(v,e,n,v,r,f))});else if(Ue(r))r.forEach(function(v,_){s.set(_,xr(v,e,n,_,r,f))});var w=c?d?Ce:Wr:d?L:xe,y=p?void 0:w(r);return va(y||r,function(v,_){if(y)_=v,v=r[_];j(s,_,xr(v,e,n,_,r,f))}),s}var Ze=xr;var Ga=1,Xa=4;function Ua(r){return Ze(r,Ga|Xa)}var $e=Ua;var Va=function(){return be.Date.now()},kr=Va;var Qe=Object.prototype,Ya=Qe.hasOwnProperty,za=xn(function(r,e){r=Object(r);var n=-1,o=e.length,i=o>2?e[2]:void 0;if(i&&C(e[0],e[1],i))o=1;while(++n<o){var f=e[n],s=L(f),u=-1,d=s.length;while(++u<d){var c=s[u],p=r[c];if(p===void 0||Ct(p,Qe[c])&&!Ya.call(r,c))r[c]=f[c]}}return r}),rt=za;function Wa(r,e,n){if(n!==void 0&&!Ct(r[e],n)||n===void 0&&!(e in r))M(r,e,n)}var er=Wa;function qa(r,e){if(e==="constructor"&&typeof r[e]==="function")return;if(e=="__proto__")return;return r[e]}var tr=qa;function Ha(r){return k(r,L(r))}var tt=Ha;function Ka(r,e,n,o,i,f,s){var u=tr(r,n),d=tr(e,n),c=s.get(d);if(c){er(r,n,c);return}var p=f?f(u,d,n+"",r,e,s):void 0,m=p===void 0;if(m){var h=Y(d),b=!h&&St(d),w=!h&&!b&&kn(d);if(p=d,h||b||w)if(Y(u))p=u;else if(Ra(u))p=sr(u);else if(b)m=!1,p=rr(d,!0);else if(w)m=!1,p=_r(d,!0);else p=[];else if(ge(d)||$t(d)){if(p=u,$t(u))p=tt(u);else if(!me(u)||Gt(u))p=Er(d)}else m=!1}if(m)s.set(d,p),i(p,d,o,f,s),s.delete(d);er(r,n,p)}var nt=Ka;function ot(r,e,n,o,i){if(r===e)return;yr(e,function(f,s){if(i||(i=new Zt),me(f))nt(r,e,s,n,ot,o,i);else{var u=o?o(tr(r,s),f,s+"",r,e,i):void 0;if(u===void 0)u=f;er(r,s,u)}},L)}var it=ot;function Ja(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}var X=Ja;function Za(r){return function(e,n,o){var i=Object(e);if(!Oe(e)){var f=He(n,3);e=xe(e),n=function(u){return f(i[u],u,i)}}var s=r(e,n,o);return s>-1?i[f?e[s]:s]:void 0}}var at=Za;var $a=Math.max;function Qa(r,e,n){var o=r==null?0:r.length;if(!o)return-1;var i=n==null?0:fe(n);if(i<0)i=$a(o+i,0);return ba(r,He(e,3),i)}var st=Qa;var rf=at(st),nr=rf;function ef(r,e){var n=-1,o=Oe(r)?Array(r.length):[];return Tn(r,function(i,f,s){o[++n]=e(i,f,s)}),o}var Or=ef;function tf(r,e){var n=Y(r)?Wt:Or;return n(r,He(e,3))}var E=tf;function nf(r,e){return r==null?r:yr(r,br(e),L)}var dt=nf;function of(r,e){return r&&vr(r,br(e))}var lt=of;function af(r,e){return r>e}var ht=af;var ff=Object.prototype,sf=ff.hasOwnProperty;function uf(r,e){return r!=null&&sf.call(r,e)}var gt=uf;function df(r,e){return r!=null&&Ta(r,e,gt)}var Lr=df;var cf="[object String]";function pf(r){return typeof r=="string"||!Y(r)&&Ee(r)&&Je(r)==cf}var vt=pf;function lf(r,e){return r<e}var Ir=lf;function mf(r,e){var n={};return e=He(e,3),vr(r,function(o,i,f){M(n,i,e(o,i,f))}),n}var H=mf;function hf(r,e,n){var o=-1,i=r.length;while(++o<i){var f=r[o],s=e(f);if(s!=null&&(u===void 0?s===s&&!pt(s):n(s,u)))var u=s,d=f}return d}var K=hf;function gf(r){return r&&r.length?K(r,ct,ht):void 0}var S=gf;var vf=de(function(r,e,n){it(r,e,n)}),or=vf;function bf(r){return r&&r.length?K(r,ct,Ir):void 0}var B=bf;function yf(r,e){return r&&r.length?K(r,He(e,2),Ir):void 0}var J=yf;function wf(r,e,n,o){if(!me(r))return r;e=Cn(e,r);var i=-1,f=e.length,s=f-1,u=r;while(u!=null&&++i<f){var d=Yt(e[i]),c=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return r;if(i!=s){var p=u[d];if(c=o?o(p,d,u):void 0,c===void 0)c=me(p)?p:bn(e[i+1])?[]:{}}j(u,d,c),u=u[d]}return r}var yt=wf;function _f(r,e,n){var o=-1,i=e.length,f={};while(++o<i){var s=e[o],u=Sn(r,s);if(n(u,s))yt(f,Cn(s,r),u)}return f}var wt=_f;function Ef(r,e){var n=r.length;r.sort(e);while(n--)r[n]=r[n].value;return r}var _t=Ef;function xf(r,e){if(r!==e){var n=r!==void 0,o=r===null,i=r===r,f=pt(r),s=e!==void 0,u=e===null,d=e===e,c=pt(e);if(!u&&!c&&!f&&r>e||f&&s&&d&&!u&&!c||o&&s&&d||!n&&d||!i)return 1;if(!o&&!f&&!c&&r<e||c&&n&&i&&!o&&!f||u&&n&&i||!s&&i||!d)return-1}return 0}var Et=xf;function Of(r,e,n){var o=-1,i=r.criteria,f=e.criteria,s=i.length,u=n.length;while(++o<s){var d=Et(i[o],f[o]);if(d){if(o>=u)return d;var c=n[o];return d*(c=="desc"?-1:1)}}return r.index-e.index}var xt=Of;function Lf(r,e,n){if(e.length)e=Wt(e,function(f){if(Y(f))return function(s){return Sn(s,f.length===1?f[0]:f)};return f});else e=[ct];var o=-1;e=Wt(e,wn(He));var i=Or(r,function(f,s,u){var d=Wt(e,function(c){return c(f)});return{criteria:d,index:++o,value:f}});return _t(i,function(f,s){return xt(f,s,n)})}var Ot=Lf;var If=Aa("length"),It=If;var Pt="\\ud800-\\udfff",Sf="\\u0300-\\u036f",Nf="\\ufe20-\\ufe2f",Pf="\\u20d0-\\u20ff",kf=Sf+Nf+Pf,Tf="\\ufe0e\\ufe0f",Cf="["+Pt+"]",Tr="["+kf+"]",Cr="\\ud83c[\\udffb-\\udfff]",Af="(?:"+Tr+"|"+Cr+")",kt="[^"+Pt+"]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rf="\\u200d",jt=Af+"?",Bt="["+Tf+"]?",Mf="(?:"+Rf+"(?:"+[kt,Rt,Mt].join("|")+")"+Bt+jt+")*",jf=Bt+jt+Mf,Bf="(?:"+[kt+Tr+"?",Tr,Rt,Mt,Cf].join("|")+")",Nt=RegExp(Cr+"(?="+Cr+")|"+Bf+jf,"g");function Df(r){var e=Nt.lastIndex=0;while(Nt.test(r))++e;return e}var Dt=Df;function Ff(r){return ve(r)?Dt(r):It(r)}var Ft=Ff;function Gf(r,e){return wt(r,e,function(n,o){return Ea(r,o)})}var Ut=Gf;var Xf=le(function(r,e){return r==null?{}:Ut(r,e)}),Z=Xf;var{ceil:Uf,max:Vf}=Math;function Yf(r,e,n,o){var i=-1,f=Vf(Uf((e-r)/(n||1)),0),s=Array(f);while(f--)s[o?f:++i]=r,r+=n;return s}var Vt=Yf;function zf(r){return function(e,n,o){if(o&&typeof o!="number"&&C(e,n,o))n=o=void 0;if(e=V(e),n===void 0)n=e,e=0;else n=V(n);return o=o===void 0?e<n?1:-1:V(o),Vt(e,n,o,r)}}var zt=zf;var Wf=zt(),P=Wf;var qf="[object Map]",Hf="[object Set]";function Kf(r){if(r==null)return 0;if(Oe(r))return vt(r)?Ft(r):r.length;var e=mt(r);if(e==qf||e==Hf)return r.size;return pr(r).length}var qt=Kf;var Jf=xn(function(r,e){if(r==null)return[];var n=e.length;if(n>1&&C(r,e[0],e[1]))e=[];else if(n>2&&C(e[0],e[1],e[2]))e=[e[0]];return Ot(r,fr(e,1),[])}),A=Jf;var Zf=0;function $f(r){var e=++Zf;return ka(r)+e}var Q=$f;function Qf(r,e,n){var o=-1,i=r.length,f=e.length,s={};while(++o<i){var u=o<f?e[o]:void 0;n(s,r[o],u)}return s}var Kt=Qf;function rs(r,e){return Kt(r||[],e||[],j)}var Ar=rs;class Rr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return Jt(e),e}enqueue(r){var e=this._sentinel;if(r._prev&&r._next)Jt(r);r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){var r=[],e=this._sentinel,n=e._prev;while(n!==e)r.push(JSON.stringify(n,es)),n=n._prev;return"["+r.join(", ")+"]"}}function Jt(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function es(r,e){if(r!=="_next"&&r!=="_prev")return e}var ts=ut(1);function Qt(r,e){if(r.nodeCount()<=1)return[];var n=os(r,e||ts),o=ns(n.graph,n.buckets,n.zeroIdx);return N(E(o,function(i){return r.outEdges(i.v,i.w)}))}function ns(r,e,n){var o=[],i=e[e.length-1],f=e[0],s;while(r.nodeCount()){while(s=f.dequeue())Mr(r,e,n,s);while(s=i.dequeue())Mr(r,e,n,s);if(r.nodeCount()){for(var u=e.length-2;u>0;--u)if(s=e[u].dequeue(),s){o=o.concat(Mr(r,e,n,s,!0));break}}}return o}function Mr(r,e,n,o,i){var f=i?[]:void 0;return g(r.inEdges(o.v),function(s){var u=r.edge(s),d=r.node(s.v);if(i)f.push({v:s.v,w:s.w});d.out-=u,jr(e,n,d)}),g(r.outEdges(o.v),function(s){var u=r.edge(s),d=s.w,c=r.node(d);c.in-=u,jr(e,n,c)}),r.removeNode(o.v),f}function os(r,e){var n=new re,o=0,i=0;g(r.nodes(),function(u){n.setNode(u,{v:u,in:0,out:0})}),g(r.edges(),function(u){var d=n.edge(u.v,u.w)||0,c=e(u),p=d+c;n.setEdge(u.v,u.w,p),i=Math.max(i,n.node(u.v).out+=c),o=Math.max(o,n.node(u.w).in+=c)});var f=P(i+o+3).map(function(){return new Rr}),s=o+1;return g(n.nodes(),function(u){jr(f,s,n.node(u))}),{graph:n,buckets:f,zeroIdx:s}}function jr(r,e,n){if(!n.out)r[0].enqueue(n);else if(!n.in)r[r.length-1].enqueue(n);else r[n.out-n.in+e].enqueue(n)}function rn(r){var e=r.graph().acyclicer==="greedy"?Qt(r,n(r)):is(r);g(e,function(o){var i=r.edge(o);r.removeEdge(o),i.forwardName=o.name,i.reversed=!0,r.setEdge(o.w,o.v,i,Q("rev"))});function n(o){return function(i){return o.edge(i).weight}}}function is(r){var e=[],n={},o={};function i(f){if(Object.prototype.hasOwnProperty.call(o,f))return;o[f]=!0,n[f]=!0,g(r.outEdges(f),function(s){if(Object.prototype.hasOwnProperty.call(n,s.w))e.push(s);else i(s.w)}),delete n[f]}return g(r.nodes(),i),e}function nn(r){g(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var o=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,o)}})}function T(r,e,n,o){var i;do i=Q(o);while(r.hasNode(i));return n.dummy=e,r.setNode(i,n),i}function an(r){var e=new re().setGraph(r.graph());return g(r.nodes(),function(n){e.setNode(n,r.node(n))}),g(r.edges(),function(n){var o=e.edge(n.v,n.w)||{weight:0,minlen:1},i=r.edge(n);e.setEdge(n.v,n.w,{weight:o.weight+i.weight,minlen:Math.max(o.minlen,i.minlen)})}),e}function Sr(r){var e=new re({multigraph:r.isMultigraph()}).setGraph(r.graph());return g(r.nodes(),function(n){if(!r.children(n).length)e.setNode(n,r.node(n))}),g(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Br(r,e){var{x:n,y:o}=r,i=e.x-n,f=e.y-o,s=r.width/2,u=r.height/2;if(!i&&!f)throw Error("Not possible to find intersection inside of the rectangle");var d,c;if(Math.abs(f)*s>Math.abs(i)*u){if(f<0)u=-u;d=u*i/f,c=u}else{if(i<0)s=-s;d=s,c=s*f/i}return{x:n+d,y:o+c}}function D(r){var e=E(P(Fr(r)+1),function(){return[]});return g(r.nodes(),function(n){var o=r.node(n),i=o.rank;if(!_e(i))e[i][o.order]=n}),e}function fn(r){var e=B(E(r.nodes(),function(n){return r.node(n).rank}));g(r.nodes(),function(n){var o=r.node(n);if(Lr(o,"rank"))o.rank-=e})}function sn(r){var e=B(E(r.nodes(),function(f){return r.node(f).rank})),n=[];g(r.nodes(),function(f){var s=r.node(f).rank-e;if(!n[s])n[s]=[];n[s].push(f)});var o=0,i=r.graph().nodeRankFactor;g(n,function(f,s){if(_e(f)&&s%i!==0)--o;else if(o)g(f,function(u){r.node(u).rank+=o})})}function Dr(r,e,n,o){var i={width:0,height:0};if(arguments.length>=4)i.rank=n,i.order=o;return T(r,"border",i,e)}function Fr(r){return S(E(r.nodes(),function(e){var n=r.node(e).rank;if(!_e(n))return n}))}function un(r,e){var n={lhs:[],rhs:[]};return g(r,function(o){if(e(o))n.lhs.push(o);else n.rhs.push(o)}),n}function dn(r,e){var n=kr();try{return e()}finally{console.log(r+" time: "+(kr()-n)+"ms")}}function cn(r,e){return e()}function ln(r){function e(n){var o=r.children(n),i=r.node(n);if(o.length)g(o,e);if(Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var f=i.minRank,s=i.maxRank+1;f<s;++f)pn(r,"borderLeft","_bl",n,i,f),pn(r,"borderRight","_br",n,i,f)}}g(r.children(),e)}function pn(r,e,n,o,i,f){var s={width:0,height:0,rank:f,borderType:e},u=i[e][f-1],d=T(r,"border",s,n);if(i[e][f]=d,r.setParent(d,o),u)r.setEdge(u,d,{weight:1})}function hn(r){var e=r.graph().rankdir.toLowerCase();if(e==="lr"||e==="rl")vn(r)}function gn(r){var e=r.graph().rankdir.toLowerCase();if(e==="bt"||e==="rl")as(r);if(e==="lr"||e==="rl")fs(r),vn(r)}function vn(r){g(r.nodes(),function(e){mn(r.node(e))}),g(r.edges(),function(e){mn(r.edge(e))})}function mn(r){var e=r.width;r.width=r.height,r.height=e}function as(r){g(r.nodes(),function(e){Gr(r.node(e))}),g(r.edges(),function(e){var n=r.edge(e);if(g(n.points,Gr),Object.prototype.hasOwnProperty.call(n,"y"))Gr(n)})}function Gr(r){r.y=-r.y}function fs(r){g(r.nodes(),function(e){Xr(r.node(e))}),g(r.edges(),function(e){var n=r.edge(e);if(g(n.points,Xr),Object.prototype.hasOwnProperty.call(n,"x"))Xr(n)})}function Xr(r){var e=r.x;r.x=r.y,r.y=e}function yn(r){r.graph().dummyChains=[],g(r.edges(),function(e){us(r,e)})}function us(r,e){var n=e.v,o=r.node(n).rank,i=e.w,f=r.node(i).rank,s=e.name,u=r.edge(e),d=u.labelRank;if(f===o+1)return;r.removeEdge(e);var c=void 0,p,m;for(m=0,++o;o<f;++m,++o){if(u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:o},p=T(r,"edge",c,"_d"),o===d)c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos;if(r.setEdge(n,p,{weight:u.weight},s),m===0)r.graph().dummyChains.push(p);n=p}r.setEdge(n,i,{weight:u.weight},s)}function En(r){g(r.graph().dummyChains,function(e){var n=r.node(e),o=n.edgeLabel,i;r.setEdge(n.edgeObj,o);while(n.dummy){if(i=r.successors(e)[0],r.removeNode(e),o.points.push({x:n.x,y:n.y}),n.dummy==="edge-label")o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height;e=i,n=r.node(e)}})}function ir(r){var e={};function n(o){var i=r.node(o);if(Object.prototype.hasOwnProperty.call(e,o))return i.rank;e[o]=!0;var f=B(E(r.outEdges(o),function(s){return n(s.w)-r.edge(s).minlen}));if(f===Number.POSITIVE_INFINITY||f===void 0||f===null)f=0;return i.rank=f}g(r.sources(),n)}function U(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function Nr(r){var e=new re({directed:!1}),n=r.nodes()[0],o=r.nodeCount();e.setNode(n,{});var i,f;while(ds(e,r)<o)i=cs(e,r),f=e.hasNode(i.v)?U(r,i):-U(r,i),ps(e,r,f);return e}function ds(r,e){function n(o){g(e.nodeEdges(o),function(i){var f=i.v,s=o===f?i.w:f;if(!r.hasNode(s)&&!U(e,i))r.setNode(s,{}),r.setEdge(o,s,{}),n(s)})}return g(r.nodes(),n),r.nodeCount()}function cs(r,e){return J(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return U(e,n)})}function ps(r,e,n){g(r.nodes(),function(o){e.node(o).rank+=n})}var dh=ut(1);var vh=ut(1);Ur.CycleException=ar;function Ur(r){var e={},n={},o=[];function i(f){if(Object.prototype.hasOwnProperty.call(n,f))throw new ar;if(!Object.prototype.hasOwnProperty.call(e,f))n[f]=!0,e[f]=!0,g(r.predecessors(f),i),delete n[f],o.push(f)}if(g(r.sinks(),i),qt(e)!==r.nodeCount())throw new ar;return o}function ar(){}ar.prototype=Error();function Pr(r,e,n){if(!Y(e))e=[e];var o=(r.isDirected()?r.successors:r.neighbors).bind(r),i=[],f={};return g(e,function(s){if(!r.hasNode(s))throw Error("Graph does not have node: "+s);Ln(r,s,n==="post",f,o,i)}),i}function Ln(r,e,n,o,i,f){if(!Object.prototype.hasOwnProperty.call(o,e)){if(o[e]=!0,!n)f.push(e);if(g(i(e),function(s){Ln(r,s,n,o,i,f)}),n)f.push(e)}}function Vr(r,e){return Pr(r,e,"post")}function Yr(r,e){return Pr(r,e,"pre")}G.initLowLimValues=qr;G.initCutValues=zr;G.calcCutValue=Nn;G.leaveEdge=An;G.enterEdge=Rn;G.exchangeEdges=Mn;function G(r){r=an(r),ir(r);var e=Nr(r);qr(e),zr(e,r);var n,o;while(n=An(e))o=Rn(e,r,n),Mn(e,r,n,o)}function zr(r,e){var n=Vr(r,r.nodes());n=n.slice(0,n.length-1),g(n,function(o){vs(r,e,o)})}function vs(r,e,n){var o=r.node(n),i=o.parent;r.edge(n,i).cutvalue=Nn(r,e,n)}function Nn(r,e,n){var o=r.node(n),i=o.parent,f=!0,s=e.edge(n,i),u=0;if(!s)f=!1,s=e.edge(i,n);return u=s.weight,g(e.nodeEdges(n),function(d){var c=d.v===n,p=c?d.w:d.v;if(p!==i){var m=c===f,h=e.edge(d).weight;if(u+=m?h:-h,ys(r,n,p)){var b=r.edge(n,p).cutvalue;u+=m?-b:b}}}),u}function qr(r,e){if(arguments.length<2)e=r.nodes()[0];Pn(r,{},1,e)}function Pn(r,e,n,o,i){var f=n,s=r.node(o);if(e[o]=!0,g(r.neighbors(o),function(u){if(!Object.prototype.hasOwnProperty.call(e,u))n=Pn(r,e,n,u,o)}),s.low=f,s.lim=n++,i)s.parent=i;else delete s.parent;return n}function An(r){return nr(r.edges(),function(e){return r.edge(e).cutvalue<0})}function Rn(r,e,n){var{v:o,w:i}=n;if(!e.hasEdge(o,i))o=n.w,i=n.v;var f=r.node(o),s=r.node(i),u=f,d=!1;if(f.lim>s.lim)u=s,d=!0;var c=et(e.edges(),function(p){return d===In(r,r.node(p.v),u)&&d!==In(r,r.node(p.w),u)});return J(c,function(p){return U(e,p)})}function Mn(r,e,n,o){var{v:i,w:f}=n;r.removeEdge(i,f),r.setEdge(o.v,o.w,{}),qr(r),zr(r,e),bs(r,e)}function bs(r,e){var n=nr(r.nodes(),function(i){return!e.node(i).parent}),o=Yr(r,n);o=o.slice(1),g(o,function(i){var f=r.node(i).parent,s=e.edge(i,f),u=!1;if(!s)s=e.edge(f,i),u=!0;e.node(i).rank=e.node(f).rank+(u?s.minlen:-s.minlen)})}function ys(r,e,n){return r.hasEdge(e,n)}function In(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function Hr(r){switch(r.graph().ranker){case"network-simplex":jn(r);break;case"tight-tree":_s(r);break;case"longest-path":ws(r);break;default:jn(r)}}var ws=ir;function _s(r){ir(r),Nr(r)}function jn(r){G(r)}function Bn(r){var e=T(r,"root",{},"_root"),n=Es(r),o=S(ft(n))-1,i=2*o+1;r.graph().nestingRoot=e,g(r.edges(),function(s){r.edge(s).minlen*=i});var f=xs(r)+1;g(r.children(),function(s){Dn(r,e,i,f,o,n,s)}),r.graph().nodeRankFactor=i}function Dn(r,e,n,o,i,f,s){var u=r.children(s);if(!u.length){if(s!==e)r.setEdge(e,s,{weight:0,minlen:n});return}var d=Dr(r,"_bt"),c=Dr(r,"_bb"),p=r.node(s);if(r.setParent(d,s),p.borderTop=d,r.setParent(c,s),p.borderBottom=c,g(u,function(m){Dn(r,e,n,o,i,f,m);var h=r.node(m),b=h.borderTop?h.borderTop:m,w=h.borderBottom?h.borderBottom:m,y=h.borderTop?o:2*o,v=b!==w?1:i-f[s]+1;r.setEdge(d,b,{weight:y,minlen:v,nestingEdge:!0}),r.setEdge(w,c,{weight:y,minlen:v,nestingEdge:!0})}),!r.parent(s))r.setEdge(e,d,{weight:0,minlen:i+f[s]})}function Es(r){var e={};function n(o,i){var f=r.children(o);if(f&&f.length)g(f,function(s){n(s,i+1)});e[o]=i}return g(r.children(),function(o){n(o,1)}),e}function xs(r){return Xt(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function Fn(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,g(r.edges(),function(n){var o=r.edge(n);if(o.nestingEdge)r.removeEdge(n)})}function Gn(r,e,n){var o={},i;g(n,function(f){var s=r.parent(f),u,d;while(s){if(u=r.parent(s),u)d=o[u],o[u]=s;else d=i,i=s;if(d&&d!==s){e.setEdge(d,s);return}s=u}})}function Xn(r,e,n){var o=Ls(r),i=new re({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(f){return r.node(f)});return g(r.nodes(),function(f){var s=r.node(f),u=r.parent(f);if(s.rank===e||s.minRank<=e&&e<=s.maxRank){if(i.setNode(f),i.setParent(f,u||o),g(r[n](f),function(d){var c=d.v===f?d.w:d.v,p=i.edge(c,f),m=!_e(p)?p.weight:0;i.setEdge(c,f,{weight:r.edge(d).weight+m})}),Object.prototype.hasOwnProperty.call(s,"minRank"))i.setNode(f,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]})}}),i}function Ls(r){var e;while(r.hasNode(e=Q("_root")));return e}function Vn(r,e){var n=0;for(var o=1;o<e.length;++o)n+=Is(r,e[o-1],e[o]);return n}function Is(r,e,n){var o=Ar(n,E(n,function(c,p){return p})),i=N(E(e,function(c){return A(E(r.outEdges(c),function(p){return{pos:o[p.w],weight:r.edge(p).weight}}),"pos")})),f=1;while(f<n.length)f<<=1;var s=2*f-1;f-=1;var u=E(Array(s),function(){return 0}),d=0;return g(i.forEach(function(c){var p=c.pos+f;u[p]+=c.weight;var m=0;while(p>0){if(p%2)m+=u[p+1];p=p-1>>1,u[p]+=c.weight}d+=c.weight*m})),d}function Yn(r){var e={},n=et(r.nodes(),function(u){return!r.children(u).length}),o=S(E(n,function(u){return r.node(u).rank})),i=E(P(o+1),function(){return[]});function f(u){if(Lr(e,u))return;e[u]=!0;var d=r.node(u);i[d.rank].push(u),g(r.successors(u),f)}var s=A(n,function(u){return r.node(u).rank});return g(s,f),i}function zn(r,e){return E(e,function(n){var o=r.inEdges(n);if(!o.length)return{v:n};else{var i=Xt(o,function(f,s){var u=r.edge(s),d=r.node(s.v);return{sum:f.sum+u.weight*d.order,weight:f.weight+u.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}})}function Wn(r,e){var n={};g(r,function(i,f){var s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:f};if(!_e(i.barycenter))s.barycenter=i.barycenter,s.weight=i.weight}),g(e.edges(),function(i){var f=n[i.v],s=n[i.w];if(!_e(f)&&!_e(s))s.indegree++,f.out.push(n[i.w])});var o=et(n,function(i){return!i.indegree});return Ss(o)}function Ss(r){var e=[];function n(f){return function(s){if(s.merged)return;if(_e(s.barycenter)||_e(f.barycenter)||s.barycenter>=f.barycenter)Ns(f,s)}}function o(f){return function(s){if(s.in.push(f),--s.indegree===0)r.push(s)}}while(r.length){var i=r.pop();e.push(i),g(i.in.reverse(),n(i)),g(i.out,o(i))}return E(et(e,function(f){return!f.merged}),function(f){return Z(f,["vs","i","barycenter","weight"])})}function Ns(r,e){var n=0,o=0;if(r.weight)n+=r.barycenter*r.weight,o+=r.weight;if(e.weight)n+=e.barycenter*e.weight,o+=e.weight;r.vs=e.vs.concat(r.vs),r.barycenter=n/o,r.weight=o,r.i=Math.min(e.i,r.i),e.merged=!0}function Hn(r,e){var n=un(r,function(p){return Object.prototype.hasOwnProperty.call(p,"barycenter")}),o=n.lhs,i=A(n.rhs,function(p){return-p.i}),f=[],s=0,u=0,d=0;o.sort(Ps(!!e)),d=qn(f,i,d),g(o,function(p){d+=p.vs.length,f.push(p.vs),s+=p.barycenter*p.weight,u+=p.weight,d=qn(f,i,d)});var c={vs:N(f)};if(u)c.barycenter=s/u,c.weight=u;return c}function qn(r,e,n){var o;while(e.length&&(o=X(e)).i<=n)e.pop(),r.push(o.vs),n++;return n}function Ps(r){return function(e,n){if(e.barycenter<n.barycenter)return-1;else if(e.barycenter>n.barycenter)return 1;return!r?e.i-n.i:n.i-e.i}}function Kr(r,e,n,o){var i=r.children(e),f=r.node(e),s=f?f.borderLeft:void 0,u=f?f.borderRight:void 0,d={};if(s)i=et(i,function(w){return w!==s&&w!==u});var c=zn(r,i);g(c,function(w){if(r.children(w.v).length){var y=Kr(r,w.v,n,o);if(d[w.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter"))Ts(w,y)}});var p=Wn(c,n);ks(p,d);var m=Hn(p,o);if(s){if(m.vs=N([s,m.vs,u]),r.predecessors(s).length){var h=r.node(r.predecessors(s)[0]),b=r.node(r.predecessors(u)[0]);if(!Object.prototype.hasOwnProperty.call(m,"barycenter"))m.barycenter=0,m.weight=0;m.barycenter=(m.barycenter*m.weight+h.order+b.order)/(m.weight+2),m.weight+=2}}return m}function ks(r,e){g(r,function(n){n.vs=N(n.vs.map(function(o){if(e[o])return e[o].vs;return o}))})}function Ts(r,e){if(!_e(r.barycenter))r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight;else r.barycenter=e.barycenter,r.weight=e.weight}function $n(r){var e=Fr(r),n=Jn(r,P(1,e+1),"inEdges"),o=Jn(r,P(e-1,-1,-1),"outEdges"),i=Yn(r);Zn(r,i);var f=Number.POSITIVE_INFINITY,s;for(var u=0,d=0;d<4;++u,++d){Cs(u%2?n:o,u%4>=2),i=D(r);var c=Vn(r,i);if(c<f)d=0,s=$e(i),f=c}Zn(r,s)}function Jn(r,e,n){return E(e,function(o){return Xn(r,o,n)})}function Cs(r,e){var n=new re;g(r,function(o){var i=o.graph().root,f=Kr(o,i,n,e);g(f.vs,function(s,u){o.node(s).order=u}),Gn(o,n,f.vs)})}function Zn(r,e){g(e,function(n){g(n,function(o,i){r.node(o).order=i})})}function Qn(r){var e=Rs(r);g(r.graph().dummyChains,function(n){var o=r.node(n),i=o.edgeObj,f=As(r,e,i.v,i.w),{path:s,lca:u}=f,d=0,c=s[d],p=!0;while(n!==i.w){if(o=r.node(n),p){while((c=s[d])!==u&&r.node(c).maxRank<o.rank)d++;if(c===u)p=!1}if(!p){while(d<s.length-1&&r.node(c=s[d+1]).minRank<=o.rank)d++;c=s[d]}r.setParent(n,c),n=r.successors(n)[0]}})}function As(r,e,n,o){var i=[],f=[],s=Math.min(e[n].low,e[o].low),u=Math.max(e[n].lim,e[o].lim),d,c;d=n;do d=r.parent(d),i.push(d);while(d&&(e[d].low>s||u>e[d].lim));c=d,d=o;while((d=r.parent(d))!==c)f.push(d);return{path:i.concat(f.reverse()),lca:c}}function Rs(r){var e={},n=0;function o(i){var f=n;g(r.children(i),o),e[i]={low:f,lim:n++}}return g(r.children(),o),e}function Ms(r,e){var n={};function o(i,f){var s=0,u=0,d=i.length,c=X(f);return g(f,function(p,m){var h=Bs(r,p),b=h?r.node(h).order:d;if(h||p===c)g(f.slice(u,m+1),function(w){g(r.predecessors(w),function(y){var v=r.node(y),_=v.order;if((_<s||b<_)&&!(v.dummy&&r.node(w).dummy))ro(n,y,w)})}),u=m+1,s=b}),f}return Xt(e,o),n}function js(r,e){var n={};function o(f,s,u,d,c){var p;g(P(s,u),function(m){if(p=f[m],r.node(p).dummy)g(r.predecessors(p),function(h){var b=r.node(h);if(b.dummy&&(b.order<d||b.order>c))ro(n,h,p)})})}function i(f,s){var u=-1,d,c=0;return g(s,function(p,m){if(r.node(p).dummy==="border"){var h=r.predecessors(p);if(h.length)d=r.node(h[0]).order,o(s,c,m,u,d),c=m,u=d}o(s,c,s.length,d,f.length)}),s}return Xt(e,i),n}function Bs(r,e){if(r.node(e).dummy)return nr(r.predecessors(e),function(n){return r.node(n).dummy})}function ro(r,e,n){if(e>n){var o=e;e=n,n=o}if(!Object.prototype.hasOwnProperty.call(r,e))Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=r[e];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ds(r,e,n){if(e>n){var o=e;e=n,n=o}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Fs(r,e,n,o){var i={},f={},s={};return g(e,function(u){g(u,function(d,c){i[d]=d,f[d]=d,s[d]=c})}),g(e,function(u){var d=-1;g(u,function(c){var p=o(c);if(p.length){p=A(p,function(y){return s[y]});var m=(p.length-1)/2;for(var h=Math.floor(m),b=Math.ceil(m);h<=b;++h){var w=p[h];if(f[c]===c&&d<s[w]&&!Ds(n,c,w))f[w]=c,f[c]=i[c]=i[w],d=s[w]}}})}),{root:i,align:f}}function Gs(r,e,n,o,i){var f={},s=Xs(r,e,n,i),u=i?"borderLeft":"borderRight";function d(m,h){var b=s.nodes(),w=b.pop(),y={};while(w){if(y[w])m(w);else y[w]=!0,b.push(w),b=b.concat(h(w));w=b.pop()}}function c(m){f[m]=s.inEdges(m).reduce(function(h,b){return Math.max(h,f[b.v]+s.edge(b))},0)}function p(m){var h=s.outEdges(m).reduce(function(w,y){return Math.min(w,f[y.w]-s.edge(y))},Number.POSITIVE_INFINITY),b=r.node(m);if(h!==Number.POSITIVE_INFINITY&&b.borderType!==u)f[m]=Math.max(f[m],h)}return d(c,s.predecessors.bind(s)),d(p,s.successors.bind(s)),g(o,function(m){f[m]=f[n[m]]}),f}function Xs(r,e,n,o){var i=new re,f=r.graph(),s=zs(f.nodesep,f.edgesep,o);return g(e,function(u){var d;g(u,function(c){var p=n[c];if(i.setNode(p),d){var m=n[d],h=i.edge(m,p);i.setEdge(m,p,Math.max(s(r,c,d),h||0))}d=c})}),i}function Us(r,e){return J(ft(e),function(n){var{NEGATIVE_INFINITY:o,POSITIVE_INFINITY:i}=Number;return dt(n,function(f,s){var u=Ws(r,s)/2;o=Math.max(f+u,o),i=Math.min(f-u,i)}),o-i})}function Vs(r,e){var n=ft(e),o=B(n),i=S(n);g(["u","d"],function(f){g(["l","r"],function(s){var u=f+s,d=r[u],c;if(d===e)return;var p=ft(d);if(c=s==="l"?o-B(p):i-S(p),c)r[u]=H(d,function(m){return m+c})})})}function Ys(r,e){return H(r.ul,function(n,o){if(e)return r[e.toLowerCase()][o];else{var i=A(E(r,o));return(i[1]+i[2])/2}})}function eo(r){var e=D(r),n=or(Ms(r,e),js(r,e)),o={},i;g(["u","d"],function(s){i=s==="u"?e:ft(e).reverse(),g(["l","r"],function(u){if(u==="r")i=E(i,function(m){return ft(m).reverse()});var d=(s==="u"?r.predecessors:r.successors).bind(r),c=Fs(r,i,n,d),p=Gs(r,i,c.root,c.align,u==="r");if(u==="r")p=H(p,function(m){return-m});o[s+u]=p})});var f=Us(r,o);return Vs(o,f),Ys(o,r.graph().align)}function zs(r,e,n){return function(o,i,f){var s=o.node(i),u=o.node(f),d=0,c;if(d+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":c=-s.width/2;break;case"r":c=s.width/2;break}if(c)d+=n?c:-c;if(c=0,d+=(s.dummy?e:r)/2,d+=(u.dummy?e:r)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}if(c)d+=n?c:-c;return c=0,d}}function Ws(r,e){return r.node(e).width}function to(r){r=Sr(r),qs(r),lt(eo(r),function(e,n){r.node(n).x=e})}function qs(r){var e=D(r),n=r.graph().ranksep,o=0;g(e,function(i){var f=S(E(i,function(s){return r.node(s).height}));g(i,function(s){r.node(s).y=o+f/2}),o+=f+n})}function $r(r,e){var n=e&&e.debugTiming?dn:cn;n("layout",()=>{var o=n(" buildLayoutGraph",()=>ou(r));n(" runLayout",()=>Hs(o,n)),n(" updateInputGraph",()=>Ks(r,o))})}function Hs(r,e){e(" makeSpaceForEdgeLabels",()=>iu(r)),e(" removeSelfEdges",()=>mu(r)),e(" acyclic",()=>rn(r)),e(" nestingGraph.run",()=>Bn(r)),e(" rank",()=>Hr(Sr(r))),e(" injectEdgeLabelProxies",()=>au(r)),e(" removeEmptyRanks",()=>sn(r)),e(" nestingGraph.cleanup",()=>Fn(r)),e(" normalizeRanks",()=>fn(r)),e(" assignRankMinMax",()=>fu(r)),e(" removeEdgeLabelProxies",()=>su(r)),e(" normalize.run",()=>yn(r)),e(" parentDummyChains",()=>Qn(r)),e(" addBorderSegments",()=>ln(r)),e(" order",()=>$n(r)),e(" insertSelfEdges",()=>hu(r)),e(" adjustCoordinateSystem",()=>hn(r)),e(" position",()=>to(r)),e(" positionSelfEdges",()=>gu(r)),e(" removeBorderNodes",()=>lu(r)),e(" normalize.undo",()=>En(r)),e(" fixupEdgeLabelCoords",()=>cu(r)),e(" undoCoordinateSystem",()=>gn(r)),e(" translateGraph",()=>uu(r)),e(" assignNodeIntersects",()=>du(r)),e(" reversePoints",()=>pu(r)),e(" acyclic.undo",()=>nn(r))}function Ks(r,e){g(r.nodes(),function(n){var o=r.node(n),i=e.node(n);if(o){if(o.x=i.x,o.y=i.y,e.children(n).length)o.width=i.width,o.height=i.height}}),g(r.edges(),function(n){var o=r.edge(n),i=e.edge(n);if(o.points=i.points,Object.prototype.hasOwnProperty.call(i,"x"))o.x=i.x,o.y=i.y}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var Js=["nodesep","edgesep","ranksep","marginx","marginy"],Zs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$s=["acyclicer","ranker","rankdir","align"],Qs=["width","height"],ru={width:0,height:0},eu=["minlen","weight","width","height","labeloffset"],tu={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},nu=["labelpos"];function ou(r){var e=new re({multigraph:!0,compound:!0}),n=Zr(r.graph());return e.setGraph(or({},Zs,Jr(n,Js),Z(n,$s))),g(r.nodes(),function(o){var i=Zr(r.node(o));e.setNode(o,rt(Jr(i,Qs),ru)),e.setParent(o,r.parent(o))}),g(r.edges(),function(o){var i=Zr(r.edge(o));e.setEdge(o,or({},tu,Jr(i,eu),Z(i,nu)))}),e}function iu(r){var e=r.graph();e.ranksep/=2,g(r.edges(),function(n){var o=r.edge(n);if(o.minlen*=2,o.labelpos.toLowerCase()!=="c")if(e.rankdir==="TB"||e.rankdir==="BT")o.width+=o.labeloffset;else o.height+=o.labeloffset})}function au(r){g(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var o=r.node(e.v),i=r.node(e.w),f={rank:(i.rank-o.rank)/2+o.rank,e};T(r,"edge-proxy",f,"_ep")}})}function fu(r){var e=0;g(r.nodes(),function(n){var o=r.node(n);if(o.borderTop)o.minRank=r.node(o.borderTop).rank,o.maxRank=r.node(o.borderBottom).rank,e=S(e,o.maxRank)}),r.graph().maxRank=e}function su(r){g(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="edge-proxy")r.edge(n.e).labelRank=n.rank,r.removeNode(e)})}function uu(r){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,f=r.graph(),s=f.marginx||0,u=f.marginy||0;function d(c){var{x:p,y:m,width:h,height:b}=c;e=Math.min(e,p-h/2),n=Math.max(n,p+h/2),o=Math.min(o,m-b/2),i=Math.max(i,m+b/2)}g(r.nodes(),function(c){d(r.node(c))}),g(r.edges(),function(c){var p=r.edge(c);if(Object.prototype.hasOwnProperty.call(p,"x"))d(p)}),e-=s,o-=u,g(r.nodes(),function(c){var p=r.node(c);p.x-=e,p.y-=o}),g(r.edges(),function(c){var p=r.edge(c);if(g(p.points,function(m){m.x-=e,m.y-=o}),Object.prototype.hasOwnProperty.call(p,"x"))p.x-=e;if(Object.prototype.hasOwnProperty.call(p,"y"))p.y-=o}),f.width=n-e+s,f.height=i-o+u}function du(r){g(r.edges(),function(e){var n=r.edge(e),o=r.node(e.v),i=r.node(e.w),f,s;if(!n.points)n.points=[],f=i,s=o;else f=n.points[0],s=n.points[n.points.length-1];n.points.unshift(Br(o,f)),n.points.push(Br(i,s))})}function cu(r){g(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r")n.width-=n.labeloffset;switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}})}function pu(r){g(r.edges(),function(e){var n=r.edge(e);if(n.reversed)n.points.reverse()})}function lu(r){g(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),o=r.node(n.borderTop),i=r.node(n.borderBottom),f=r.node(X(n.borderLeft)),s=r.node(X(n.borderRight));n.width=Math.abs(s.x-f.x),n.height=Math.abs(i.y-o.y),n.x=f.x+n.width/2,n.y=o.y+n.height/2}}),g(r.nodes(),function(e){if(r.node(e).dummy==="border")r.removeNode(e)})}function mu(r){g(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);if(!n.selfEdges)n.selfEdges=[];n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function hu(r){var e=D(r);g(e,function(n){var o=0;g(n,function(i,f){var s=r.node(i);s.order=f+o,g(s.selfEdges,function(u){T(r,"selfedge",{width:u.label.width,height:u.label.height,rank:s.rank,order:f+ ++o,e:u.e,label:u.label},"_se")}),delete s.selfEdges})})}function gu(r){g(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var o=r.node(n.e.v),i=o.x+o.width/2,f=o.y,s=n.x-i,u=o.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:i+2*s/3,y:f-u},{x:i+5*s/6,y:f-u},{x:i+s,y:f},{x:i+5*s/6,y:f+u},{x:i+2*s/3,y:f+u}],n.label.x=n.x,n.label.y=n.y}})}function Jr(r,e){return H(Z(r,e),Number)}function Zr(r){var e={};return g(r,function(n,o){e[o.toLowerCase()]=n}),e}var no=t((r,e,n)=>Math.max(e,Math.min(n,r)),"clamp"),io=t((r="TB")=>{switch(r){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),vu=t((r)=>r==="flowchart"||r==="flowchart-v2"||r==="stateDiagram"||r==="er"||r==="classDiagram","shouldMergeSelfLoopSegments"),bu=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],yu=t((r,e,n,o,i)=>{let f=[],s=new Set;if(n.forEach(({start:p,end:m})=>{if(p!==o)s.add(p);if(m!==o)s.add(m)}),s.forEach((p)=>{let m=r.node(p);if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)}),f.length===0)n.forEach(({edge:p})=>{(p.points??[]).forEach((m)=>{if(typeof m?.x==="number"&&typeof m?.y==="number")f.push(m)})});if(f.length===0)return io(i);let u=f.reduce((p,m)=>({x:p.x+m.x/f.length,y:p.y+m.y/f.length}),{x:0,y:0}),d=u.x-e.x,c=u.y-e.y;if(Math.abs(d)>Math.abs(c))return d>0?"right":"left";if(Math.abs(c)>0)return c>0?"bottom":"top";return io(i)},"getSelfLoopSide"),wu=t((r,e="top",n=0,o=0)=>{let i=r.x,f=r.y-n,s=r.width/2,u=r.height/2,d=Math.max(36,Math.min(100,r.width*0.8)),c=no(Math.max(o,r.width*0.35),36,d),p=no(Math.min(r.width,r.height)*0.45,24,48);switch(e){case"bottom":{let m=f+u;return[{x:i-c/2,y:m},{x:i-c/2,y:m+p},{x:i+c/2,y:m+p},{x:i+c/2,y:m}]}case"right":{let m=i+s;return[{x:m,y:f-c/2},{x:m+p,y:f-c/2},{x:m+p,y:f+c/2},{x:m,y:f+c/2}]}case"left":{let m=i-s;return[{x:m,y:f-c/2},{x:m-p,y:f-c/2},{x:m-p,y:f+c/2},{x:m,y:f+c/2}]}case"top":default:{let m=f-u;return[{x:i-c/2,y:m},{x:i-c/2,y:m-p},{x:i+c/2,y:m-p},{x:i+c/2,y:m}]}}},"getSelfLoopPoints"),_u=t((r,e,n="top",o=0,i={})=>{let s=r.x,u=r.y-o,d=i.width??0,c=i.height??0;switch(n){case"bottom":return{x:s,y:Math.max(...e.map((p)=>p.y))+c/2+4};case"right":return{x:Math.max(...e.map((p)=>p.x))+d/2+4,y:u};case"left":return{x:Math.min(...e.map((p)=>p.x))-d/2-4,y:u};case"top":default:return{x:s,y:Math.min(...e.map((p)=>p.y))-c/2-4}}},"getSelfLoopLabelPosition"),oo=t((r,e=0,{mergeSelfLoops:n=!0}={})=>{let o=new Map,i=[],f=r.graph()?.rankdir;return r.edges().forEach((s)=>{let u=r.edge(s);if(n&&u.selfLoop){let d=u.selfLoop.id;if(!o.has(d))o.set(d,[]);o.get(d).push({edge:u,start:s.v,end:s.w})}else i.push({edge:u,start:s.v,end:s.w})}),o.forEach((s)=>{if(s.length!==3){s.forEach((_)=>i.push(_));return}s.sort((_,R)=>_.edge.selfLoop.order-R.edge.selfLoop.order);let[u,d,c]=s,p=u.edge.originalEdge??d.edge.originalEdge??c.edge.originalEdge??d.edge,m=r.node(p.start);if(!m){s.forEach((_)=>i.push(_));return}let h={width:d.edge.width,height:d.edge.height},b=yu(r,m,s,p.start,f),w=wu(m,b,e,h.width??0),y=_u(m,w,b,e,h),v={...d.edge,...p,id:p.id,points:w,start:p.start,end:p.end,x:y.x,y:y.y,width:h.width,height:h.height,labelStyle:d.edge.labelStyle,fromCluster:u.edge.fromCluster??d.edge.fromCluster??c.edge.fromCluster,toCluster:u.edge.toCluster??d.edge.toCluster??c.edge.toCluster};delete v.selfLoop,delete v.originalEdge,i.push({edge:v,start:v.start,end:v.end})}),i},"getEdgesToRender"),fo=t(async({element:r,graph:e,diagramType:n,id:o,parentCluster:i,siteConfig:f})=>{let s=e.graph().rankdir;a.trace("Dir in recursive render - dir:",s);let{clusters:u,edgePaths:d,edgeLabels:c,nodes:p,rootGroups:m}=fa(r,{edgePathsClass:"edgePaths"});if(!e.nodes())a.info("No nodes found for",e);else a.info("Recursive render XXX",e.nodes());if(e.edges().length>0)a.info("Recursive edges",e.edge(e.edges()[0]));let h=vu(n);await Promise.all(e.nodes().map(async function(y){let v=e.node(y);if(i!==void 0){let _=JSON.parse(JSON.stringify(i.clusterData));if(a.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,y,`
3
3
  data=`,_.height,`
4
4
  Parent cluster`,i.height),e.setNode(i.id,_),!e.parent(y))a.trace("Setting parent",y,i.id),e.setParent(y,i.id,_)}if(a.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),v?.clusterNode){a.info("Cluster identified XBX",y,v.width,e.node(y));let{ranksep:_,nodesep:R}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:_+25,nodesep:R});let Qr=await Lu({element:p,graph:v.graph,diagramType:n,id:o,parentCluster:e.node(y),siteConfig:f}),ee=Qr.elem;I(v,ee),v.diff=Qr.diff||0,a.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),So(ee,v)}else if(e.children(y).length>0)a.trace("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",e),a.trace(Un(v.id,e)),W.set(v.id,{id:Un(v.id,e),node:v});else a.trace("Node - the non recursive path XAX",y,p,e.node(y),s),await ha(p,e.node(y),{config:f,dir:s})})),await t(async()=>{let y=e.edges().map(async function(v){let _=e.edge(v.v,v.w,v.name);if(a.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),a.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),a.info("Fix",W,"ids:",v.v,v.w,"Translating: ",W.get(v.v),W.get(v.w)),h&&_.selfLoop){if(_.selfLoop.order!==1)return;let R={..._.originalEdge,..._,id:_.selfLoop.id,startLabelLeft:_.originalEdge?.startLabelLeft??_.startLabelLeft,startLabelRight:_.originalEdge?.startLabelRight??_.startLabelRight,endLabelLeft:_.originalEdge?.endLabelLeft??_.endLabelLeft,endLabelRight:_.originalEdge?.endLabelRight??_.endLabelRight};await At(c,R),_.width=R.width,_.height=R.height,_.labelStyle=R.labelStyle;return}await At(c,_)});await Promise.all(y)},"processEdges")();let{subGraphTitleTotalMargin:w}=Tt(f);return{elem:m,graph:e,groups:{clusters:u,edgePaths:d,edgeLabels:c,nodes:p,rootGroups:m},diagramType:n,id:o,mergeSelfLoops:h,subGraphTitleTotalMargin:w}},"measureDagreGraph"),uo=t((r)=>{a.info("############################################# XXX"),a.info("### Layout ### XXX"),a.info("############################################# XXX"),$r(r)},"runDagreGraphLayout"),Eu=t((r,e,n)=>{let o=r.node(e);if(!o)return;let i={...o};if(o?.clusterNode)i.y=(o.y??0)+n;else if(r.children(e).length>0)i.height=(o.height??0)+n;else i.y=(o.y??0)+n/2;return i},"normalizeDagreNode"),ao=t((r,e)=>{bu.forEach((n)=>{if(e[n]!==void 0)r[n]=e[n]})},"applyDagreNodeLayout"),xu=t((r,e,n,o)=>({...r,start:r.start??e,end:r.end??n,points:(r.points??[]).map((i)=>({...i,y:typeof i.y==="number"?i.y+o:i.y}))}),"normalizeDagreEdge"),Mo=t((r,e)=>{let{graph:n,mergeSelfLoops:o,subGraphTitleTotalMargin:i=0}=e,f=new Map(r.nodes.map((u)=>[u.id,u]));ga(n).forEach((u)=>{let d=Eu(n,u,i);if(!d)return;ao(n.node(u),d);let c=f.get(u);if(c)ao(c,d)});let s=i/2;return r.edges=oo(n,s,{mergeSelfLoops:o}).map(({edge:u,start:d,end:c})=>xu(u,d,c,s)),r},"applyDagreLayoutResult"),Ou=t(async({elem:r,graph:e,groups:{clusters:n,edgePaths:o},diagramType:i,id:f,mergeSelfLoops:s,subGraphTitleTotalMargin:u})=>{let d=0;await Promise.all(ga(e).map(async function(m){let h=e.node(m);if(a.info("Position XBX => "+m+": ("+h.x,","+h.y,") width: ",h.width," height: ",h.height),h?.clusterNode)h.y+=u,a.info("A tainted cluster node XBX1",m,h.id,h.width,h.height,h.x,h.y,e.parent(m)),W.get(h.id).node=h,bt(h);else if(e.children(m).length>0){a.info("A pure cluster node XBX1",m,h.id,h.x,h.y,h.width,h.height,e.parent(m)),h.height+=u,e.node(h.parentId);let b=h?.padding/2||0,w=h?.labelBBox?.height||0,y=w-b||0;a.debug("OffsetY",y,"labelHeight",w,"halfPadding",b),await en(n,h),W.get(h.id).node=h}else{let b=e.node(h.parentId);h.y+=u/2,a.info("A regular node XBX1 - using the padding",h.id,"parent",h.parentId,h.width,h.height,h.x,h.y,"offsetY",h.offsetY,"parent",b,b?.offsetY,h),bt(h)}}));let c=u/2;return oo(e,c,{mergeSelfLoops:s}).forEach(function({edge:m,start:h,end:b}){a.info("Edge "+h+" -> "+b+": "+JSON.stringify(m),m),m.points.forEach((_)=>_.y+=c);let w=e.node(h),y=e.node(b),v=tn(o,m,W,i,w,y,f);Kn(m,v)}),e.nodes().forEach(function(m){let h=e.node(m);if(a.info(m,h.type,h.diff),h.isGroup)d=h.diff}),a.warn("Returning from recursive render XAX",r,d),{elem:r,diff:d}},"paintDagreLayoutCore"),Lu=t(async(r)=>{let e=await fo(r);return uo(e.graph),await Ou(e)},"renderDagreSubgraph"),so=t((r)=>{let e=new re({multigraph:!0,compound:!0}).setGraph({rankdir:r.direction,nodesep:r.config?.nodeSpacing||r.nodeSpacing||r.config?.flowchart?.nodeSpacing,ranksep:r.config?.rankSpacing||r.rankSpacing||r.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return r.nodes.forEach((n)=>{if(e.setNode(n.id,{...n}),n.parentId)e.setParent(n.id,n.parentId)}),a.debug("Edges:",r.edges),r.edges.forEach((n)=>{if(n.start===n.end){let o=n.start,i=o+"---"+o+"---1",f=o+"---"+o+"---2",s=e.node(o);e.setNode(i,{domId:i,id:i,parentId:s.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(i,s.parentId),e.setNode(f,{domId:f,id:f,parentId:s.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,s.parentId);let u=structuredClone(n),d=structuredClone(n),c=structuredClone(n),p=structuredClone(n);if(d.originalEdge=u,d.selfLoop={id:u.id,order:0},c.originalEdge=u,c.selfLoop={id:u.id,order:1},p.originalEdge=u,p.selfLoop={id:u.id,order:2},d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=o+"-cyclic-special-1",c.startLabelRight="",c.startLabelLeft="",c.endLabelLeft="",c.endLabelRight="",c.arrowTypeStart="none",c.arrowTypeEnd="none",c.id=o+"-cyclic-special-mid",p.label="",p.startLabelRight="",p.startLabelLeft="",p.arrowTypeStart="none",s.isGroup)d.fromCluster=o,p.toCluster=o;p.id=o+"-cyclic-special-2",p.arrowTypeStart="none",e.setEdge(o,i,d,o+"-cyclic-special-0"),e.setEdge(i,f,c,o+"-cyclic-special-1"),e.setEdge(f,o,p,o+"-cyclic-special-2")}else e.setEdge(n.start,n.end,{...n},n.id)}),co(e),{graph:e}},"prepareLayoutForDagre"),Po=t(async(r,{element:e,preparedLayout:n})=>{let o=n??so(r),i=l(),f=await fo({element:e,graph:o.graph,diagramType:r.type,id:r.diagramId,parentCluster:void 0,siteConfig:i});return o.measuredLayout=f,f},"measureDagreLayout"),Oo=t((r,e)=>{let n=e.preparedLayout?.measuredLayout;if(!n)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return uo(n.graph),Mo(r,n),n},"runDagreLayoutCore"),Iu=t((r,{measure:e})=>ga(e.graph).map((n)=>e.graph.node(n)).filter(Boolean),"getDagrePaintNodes"),Su=t((r,e,{measure:n})=>r?n.graph.node(r):void 0,"getDagreEdgeNode"),lo=ur({prepareLayout:so,measureLayout:Po,runLayoutCore:Oo,paintOptions:{clusterDb:W,getNodes:Iu,getEdgeNode:Su,skipNode:t((r,{measure:e})=>!e.graph.hasNode(r.id),"skipNode"),isCluster:t((r,{measure:e})=>e.graph.hasNode(r.id)&&(e.graph.children(r.id)??[]).length>0,"isCluster")}});export{oo,Mo,so,Po,Oo,lo};
@@ -1,2 +1,2 @@
1
- import{t}from"./chunk-zsat72qd.js";var gn=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};
1
+ import{t}from"./chunk-t5ke9cyg.js";var gn=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};
2
2
  export{gn};
@@ -1,4 +1,4 @@
1
- import{t,a,de,x,b,F,C,l,p,ja,Nn,un,qa,Lr,Ir,Dr,Nr,Va,Wa,Ga,Ha,Ya,Za,Xa,Ka,Qa,Ja,ei,ti,ni,ri,ai,ii,oi,dn,li,pe,le,ce,Ze,Xe,Et,bt,At,Kn,tn,Qn}from"./chunk-zsat72qd.js";import{re}from"./chunk-tdzh6nsz.js";import{qe}from"./chunk-w5q7978e.js";import{Bt}from"./chunk-9vrp249f.js";function Te(e){return Array.isArray(e)}function Ne(e){if(Nn(e))return e;let o=un(e);if(!Qe(e))return{};if(Te(e)){let i=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))i.index=e.index,i.input=e.input;return i}if(dn(e)){let i=e;return new i.constructor(i.buffer,i.byteOffset,i.length)}if(o==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(o==="[object DataView]"){let i=e,{buffer:g,byteOffset:f,byteLength:r}=i,d=new ArrayBuffer(r),w=new Uint8Array(g,f,r);return new Uint8Array(d).set(w),new DataView(d)}if(o==="[object Boolean]"||o==="[object Number]"||o==="[object String]"){let g=new e.constructor(e.valueOf());if(o==="[object String]")et(g,e);else ge(g,e);return g}if(o==="[object Date]")return new Date(Number(e));if(o==="[object RegExp]"){let i=e,g=new RegExp(i.source,i.flags);return g.lastIndex=i.lastIndex,g}if(o==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(o==="[object Map]"){let i=e,g=new Map;return i.forEach((f,r)=>{g.set(r,f)}),g}if(o==="[object Set]"){let i=e,g=new Set;return i.forEach((f)=>{g.add(f)}),g}if(o==="[object Arguments]"){let i=e,g={};return ge(g,i),g.length=i.length,g[Symbol.iterator]=i[Symbol.iterator],g}let u={};return tt(u,e),ge(u,e),$e(u,e),u}function Qe(e){switch(un(e)){case Nr:case Ya:case Za:case Ka:case Dr:case Wa:case ii:case oi:case ni:case ri:case ai:case Ga:case Ir:case Xa:case qa:case Ha:case Lr:case Va:case Qa:case Ja:case ei:case ti:return!0;default:return!1}}function ge(e,o){for(let u in o)if(Object.hasOwn(o,u))e[u]=o[u]}function $e(e,o){let u=Object.getOwnPropertySymbols(o);for(let i=0;i<u.length;i++){let g=u[i];if(Object.prototype.propertyIsEnumerable.call(o,g))e[g]=o[g]}}function et(e,o){let u=o.valueOf().length;for(let i in o)if(Object.hasOwn(o,i)&&(Number.isNaN(Number(i))||Number(i)>=u))e[i]=o[i]}function tt(e,o){let u=Object.getPrototypeOf(o);if(u!==null){if(typeof o.constructor==="function")Object.setPrototypeOf(e,u)}}var be=function(){var e=t(function(B,S,n,h){for(n=n||{},h=B.length;h--;n[B[h]]=S);return n},"o"),o=[1,15],u=[1,7],i=[1,13],g=[1,14],f=[1,19],r=[1,16],d=[1,17],w=[1,18],E=[8,30],k=[8,10,21,28,29,30,31,39,43,46],L=[1,23],_=[1,24],T=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],I=[1,49],N={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:t(function(S,n,h,m,D,s,H){var c=s.length-1;switch(D){case 4:m.getLogger().debug("Rule: separator (NL) ");break;case 5:m.getLogger().debug("Rule: separator (Space) ");break;case 6:m.getLogger().debug("Rule: separator (EOF) ");break;case 7:m.getLogger().debug("Rule: hierarchy: ",s[c-1]),m.setHierarchy(s[c-1]);break;case 8:m.getLogger().debug("Stop NL ");break;case 9:m.getLogger().debug("Stop EOF ");break;case 10:m.getLogger().debug("Stop NL2 ");break;case 11:m.getLogger().debug("Stop EOF2 ");break;case 12:m.getLogger().debug("Rule: statement: ",s[c]),typeof s[c].length==="number"?this.$=s[c]:this.$=[s[c]];break;case 13:m.getLogger().debug("Rule: statement #2: ",s[c-1]),this.$=[s[c-1]].concat(s[c]);break;case 14:m.getLogger().debug("Rule: link: ",s[c],S),this.$={edgeTypeStr:s[c],label:""};break;case 15:m.getLogger().debug("Rule: LABEL link: ",s[c-3],s[c-1],s[c]),this.$={edgeTypeStr:s[c],label:s[c-1]};break;case 18:let V=parseInt(s[c]),j=m.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:m.getLogger().debug("Rule: (nodeStatement link node) ",s[c-2],s[c-1],s[c]," typestr: ",s[c-1].edgeTypeStr);let G=m.edgeStrToEdgeData(s[c-1].edgeTypeStr),se=m.edgeStrToEdgeStartData(s[c-1].edgeTypeStr),q=m.edgeStrToThickness(s[c-1].edgeTypeStr),ie=m.edgeStrToPattern(s[c-1].edgeTypeStr);this.$=[{id:s[c-2].id,label:s[c-2].label,type:s[c-2].type,directions:s[c-2].directions},{id:s[c-2].id+"-"+s[c].id,start:s[c-2].id,end:s[c].id,label:s[c-1].label,type:"edge",thickness:q,pattern:ie,directions:s[c].directions,arrowTypeEnd:G,arrowTypeStart:se},{id:s[c].id,label:s[c].label,type:m.typeStr2Type(s[c].typeStr),directions:s[c].directions}];break;case 24:m.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[c-1],s[c]),this.$={id:s[c-1].id,label:s[c-1].label,type:m.typeStr2Type(s[c-1].typeStr),directions:s[c-1].directions,widthInColumns:parseInt(s[c],10)};break;case 25:m.getLogger().debug("Rule: nodeStatement (node) ",s[c]),this.$={id:s[c].id,label:s[c].label,type:m.typeStr2Type(s[c].typeStr),directions:s[c].directions,widthInColumns:1};break;case 26:m.getLogger().debug("APA123",this?this:"na"),m.getLogger().debug("COLUMNS: ",s[c]),this.$={type:"column-setting",columns:s[c]==="auto"?-1:parseInt(s[c])};break;case 27:m.getLogger().debug("Rule: id-block statement : ",s[c-2],s[c-1]);let O=m.generateId();this.$={...s[c-2],type:"composite",children:s[c-1]};break;case 28:m.getLogger().debug("Rule: blockStatement : ",s[c-2],s[c-1],s[c]);let K=m.generateId();this.$={id:K,type:"composite",label:"",children:s[c-1]};break;case 29:m.getLogger().debug("Rule: node (NODE_ID separator): ",s[c]),this.$={id:s[c]};break;case 30:m.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[c-1],s[c]),this.$={id:s[c-1],label:s[c].label,typeStr:s[c].typeStr,directions:s[c].directions};break;case 31:m.getLogger().debug("Rule: dirList: ",s[c]),this.$=[s[c]];break;case 32:m.getLogger().debug("Rule: dirList: ",s[c-1],s[c]),this.$=[s[c-1]].concat(s[c]);break;case 33:m.getLogger().debug("Rule: nodeShapeNLabel: ",s[c-2],s[c-1],s[c]),this.$={typeStr:s[c-2]+s[c],label:s[c-1]};break;case 34:m.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[c-3],s[c-2]," #3:",s[c-1],s[c]),this.$={typeStr:s[c-3]+s[c],label:s[c-2],directions:s[c-1]};break;case 35:case 36:this.$={type:"classDef",id:s[c-1].trim(),css:s[c].trim()};break;case 37:this.$={type:"applyClass",id:s[c-1].trim(),styleClass:s[c].trim()};break;case 38:this.$={type:"applyStyles",id:s[c-1].trim(),stylesStr:s[c].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:i,29:g,31:f,39:r,43:d,46:w},{8:[1,20]},e(E,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:u,28:i,29:g,31:f,39:r,43:d,46:w}),e(k,[2,16],{14:22,15:L,16:_}),e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),e(k,[2,21]),e(k,[2,22]),e(T,[2,25],{27:[1,25]}),e(k,[2,26]),{19:26,26:12,31:f},{10:o,11:27,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:i,29:g,31:f,39:r,43:d,46:w},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(E,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},e(T,[2,24]),{10:o,11:37,13:4,14:22,15:L,16:_,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:i,29:g,31:f,39:r,43:d,46:w},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(T,[2,23]),{18:[1,45]},{30:[1,46]},e(k,[2,28]),e(k,[2,35]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),{36:[1,47]},{33:48,34:I},{15:[1,50]},e(k,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:I,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:t(function(S,n){if(n.recoverable)this.trace(S);else{var h=Error(S);throw h.hash=n,h}},"parseError"),parse:t(function(S){var n=this,h=[0],m=[],D=[null],s=[],H=this.table,c="",V=0,j=0,G=0,se=2,q=1,ie=s.slice.call(arguments,1),O=Object.create(this.lexer),K={yy:{}};for(var ae in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ae))K.yy[ae]=this.yy[ae];if(O.setInput(S,K.yy),K.yy.lexer=O,K.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var ne=O.yylloc;s.push(ne);var Ge=O.options&&O.options.ranges;if(typeof K.yy.parseError==="function")this.parseError=K.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Je(P){h.length=h.length-2*P,D.length=D.length-P,s.length=s.length-P}t(Je,"popStack");function _e(){var P=m.pop()||O.lex()||q;if(typeof P!=="number"){if(P instanceof Array)m=P,P=m.pop();P=n.symbols_[P]||P}return P}t(_e,"lex");var A,oe,W,R,vt,ue,U={},J,Y,De,Z;while(!0){if(W=h[h.length-1],this.defaultActions[W])R=this.defaultActions[W];else{if(A===null||typeof A>"u")A=_e();R=H[W]&&H[W][A]}if(typeof R>"u"||!R.length||!R[0]){var he="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>se)Z.push("'"+this.terminals_[J]+"'");if(O.showPosition)he="Parse error on line "+(V+1)+`:
1
+ import{t,a,de,x,b,F,C,l,p,ja,Nn,un,qa,Lr,Ir,Dr,Nr,Va,Wa,Ga,Ha,Ya,Za,Xa,Ka,Qa,Ja,ei,ti,ni,ri,ai,ii,oi,dn,li,pe,le,ce,Ze,Xe,Et,bt,At,Kn,tn,Qn}from"./chunk-t5ke9cyg.js";import{re}from"./chunk-3f8fjee5.js";import{qe}from"./chunk-1v6hhgc6.js";import{Bt}from"./chunk-pze2v3v1.js";function Te(e){return Array.isArray(e)}function Ne(e){if(Nn(e))return e;let o=un(e);if(!Qe(e))return{};if(Te(e)){let i=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))i.index=e.index,i.input=e.input;return i}if(dn(e)){let i=e;return new i.constructor(i.buffer,i.byteOffset,i.length)}if(o==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(o==="[object DataView]"){let i=e,{buffer:g,byteOffset:f,byteLength:r}=i,d=new ArrayBuffer(r),w=new Uint8Array(g,f,r);return new Uint8Array(d).set(w),new DataView(d)}if(o==="[object Boolean]"||o==="[object Number]"||o==="[object String]"){let g=new e.constructor(e.valueOf());if(o==="[object String]")et(g,e);else ge(g,e);return g}if(o==="[object Date]")return new Date(Number(e));if(o==="[object RegExp]"){let i=e,g=new RegExp(i.source,i.flags);return g.lastIndex=i.lastIndex,g}if(o==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(o==="[object Map]"){let i=e,g=new Map;return i.forEach((f,r)=>{g.set(r,f)}),g}if(o==="[object Set]"){let i=e,g=new Set;return i.forEach((f)=>{g.add(f)}),g}if(o==="[object Arguments]"){let i=e,g={};return ge(g,i),g.length=i.length,g[Symbol.iterator]=i[Symbol.iterator],g}let u={};return tt(u,e),ge(u,e),$e(u,e),u}function Qe(e){switch(un(e)){case Nr:case Ya:case Za:case Ka:case Dr:case Wa:case ii:case oi:case ni:case ri:case ai:case Ga:case Ir:case Xa:case qa:case Ha:case Lr:case Va:case Qa:case Ja:case ei:case ti:return!0;default:return!1}}function ge(e,o){for(let u in o)if(Object.hasOwn(o,u))e[u]=o[u]}function $e(e,o){let u=Object.getOwnPropertySymbols(o);for(let i=0;i<u.length;i++){let g=u[i];if(Object.prototype.propertyIsEnumerable.call(o,g))e[g]=o[g]}}function et(e,o){let u=o.valueOf().length;for(let i in o)if(Object.hasOwn(o,i)&&(Number.isNaN(Number(i))||Number(i)>=u))e[i]=o[i]}function tt(e,o){let u=Object.getPrototypeOf(o);if(u!==null){if(typeof o.constructor==="function")Object.setPrototypeOf(e,u)}}var be=function(){var e=t(function(B,S,n,h){for(n=n||{},h=B.length;h--;n[B[h]]=S);return n},"o"),o=[1,15],u=[1,7],i=[1,13],g=[1,14],f=[1,19],r=[1,16],d=[1,17],w=[1,18],E=[8,30],k=[8,10,21,28,29,30,31,39,43,46],L=[1,23],_=[1,24],T=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],I=[1,49],N={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:t(function(S,n,h,m,D,s,H){var c=s.length-1;switch(D){case 4:m.getLogger().debug("Rule: separator (NL) ");break;case 5:m.getLogger().debug("Rule: separator (Space) ");break;case 6:m.getLogger().debug("Rule: separator (EOF) ");break;case 7:m.getLogger().debug("Rule: hierarchy: ",s[c-1]),m.setHierarchy(s[c-1]);break;case 8:m.getLogger().debug("Stop NL ");break;case 9:m.getLogger().debug("Stop EOF ");break;case 10:m.getLogger().debug("Stop NL2 ");break;case 11:m.getLogger().debug("Stop EOF2 ");break;case 12:m.getLogger().debug("Rule: statement: ",s[c]),typeof s[c].length==="number"?this.$=s[c]:this.$=[s[c]];break;case 13:m.getLogger().debug("Rule: statement #2: ",s[c-1]),this.$=[s[c-1]].concat(s[c]);break;case 14:m.getLogger().debug("Rule: link: ",s[c],S),this.$={edgeTypeStr:s[c],label:""};break;case 15:m.getLogger().debug("Rule: LABEL link: ",s[c-3],s[c-1],s[c]),this.$={edgeTypeStr:s[c],label:s[c-1]};break;case 18:let V=parseInt(s[c]),j=m.generateId();this.$={id:j,type:"space",label:"",width:V,children:[]};break;case 23:m.getLogger().debug("Rule: (nodeStatement link node) ",s[c-2],s[c-1],s[c]," typestr: ",s[c-1].edgeTypeStr);let G=m.edgeStrToEdgeData(s[c-1].edgeTypeStr),se=m.edgeStrToEdgeStartData(s[c-1].edgeTypeStr),q=m.edgeStrToThickness(s[c-1].edgeTypeStr),ie=m.edgeStrToPattern(s[c-1].edgeTypeStr);this.$=[{id:s[c-2].id,label:s[c-2].label,type:s[c-2].type,directions:s[c-2].directions},{id:s[c-2].id+"-"+s[c].id,start:s[c-2].id,end:s[c].id,label:s[c-1].label,type:"edge",thickness:q,pattern:ie,directions:s[c].directions,arrowTypeEnd:G,arrowTypeStart:se},{id:s[c].id,label:s[c].label,type:m.typeStr2Type(s[c].typeStr),directions:s[c].directions}];break;case 24:m.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[c-1],s[c]),this.$={id:s[c-1].id,label:s[c-1].label,type:m.typeStr2Type(s[c-1].typeStr),directions:s[c-1].directions,widthInColumns:parseInt(s[c],10)};break;case 25:m.getLogger().debug("Rule: nodeStatement (node) ",s[c]),this.$={id:s[c].id,label:s[c].label,type:m.typeStr2Type(s[c].typeStr),directions:s[c].directions,widthInColumns:1};break;case 26:m.getLogger().debug("APA123",this?this:"na"),m.getLogger().debug("COLUMNS: ",s[c]),this.$={type:"column-setting",columns:s[c]==="auto"?-1:parseInt(s[c])};break;case 27:m.getLogger().debug("Rule: id-block statement : ",s[c-2],s[c-1]);let O=m.generateId();this.$={...s[c-2],type:"composite",children:s[c-1]};break;case 28:m.getLogger().debug("Rule: blockStatement : ",s[c-2],s[c-1],s[c]);let K=m.generateId();this.$={id:K,type:"composite",label:"",children:s[c-1]};break;case 29:m.getLogger().debug("Rule: node (NODE_ID separator): ",s[c]),this.$={id:s[c]};break;case 30:m.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[c-1],s[c]),this.$={id:s[c-1],label:s[c].label,typeStr:s[c].typeStr,directions:s[c].directions};break;case 31:m.getLogger().debug("Rule: dirList: ",s[c]),this.$=[s[c]];break;case 32:m.getLogger().debug("Rule: dirList: ",s[c-1],s[c]),this.$=[s[c-1]].concat(s[c]);break;case 33:m.getLogger().debug("Rule: nodeShapeNLabel: ",s[c-2],s[c-1],s[c]),this.$={typeStr:s[c-2]+s[c],label:s[c-1]};break;case 34:m.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[c-3],s[c-2]," #3:",s[c-1],s[c]),this.$={typeStr:s[c-3]+s[c],label:s[c-2],directions:s[c-1]};break;case 35:case 36:this.$={type:"classDef",id:s[c-1].trim(),css:s[c].trim()};break;case 37:this.$={type:"applyClass",id:s[c-1].trim(),styleClass:s[c].trim()};break;case 38:this.$={type:"applyStyles",id:s[c-1].trim(),stylesStr:s[c].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:i,29:g,31:f,39:r,43:d,46:w},{8:[1,20]},e(E,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:u,28:i,29:g,31:f,39:r,43:d,46:w}),e(k,[2,16],{14:22,15:L,16:_}),e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),e(k,[2,21]),e(k,[2,22]),e(T,[2,25],{27:[1,25]}),e(k,[2,26]),{19:26,26:12,31:f},{10:o,11:27,13:4,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:i,29:g,31:f,39:r,43:d,46:w},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(E,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},e(T,[2,24]),{10:o,11:37,13:4,14:22,15:L,16:_,19:5,20:6,21:u,22:8,23:9,24:10,25:11,26:12,28:i,29:g,31:f,39:r,43:d,46:w},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(y,[2,30]),{18:[1,43]},{18:[1,44]},e(T,[2,23]),{18:[1,45]},{30:[1,46]},e(k,[2,28]),e(k,[2,35]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),{36:[1,47]},{33:48,34:I},{15:[1,50]},e(k,[2,27]),e(y,[2,33]),{38:[1,51]},{33:52,34:I,38:[2,31]},{31:[2,15]},e(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:t(function(S,n){if(n.recoverable)this.trace(S);else{var h=Error(S);throw h.hash=n,h}},"parseError"),parse:t(function(S){var n=this,h=[0],m=[],D=[null],s=[],H=this.table,c="",V=0,j=0,G=0,se=2,q=1,ie=s.slice.call(arguments,1),O=Object.create(this.lexer),K={yy:{}};for(var ae in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ae))K.yy[ae]=this.yy[ae];if(O.setInput(S,K.yy),K.yy.lexer=O,K.yy.parser=this,typeof O.yylloc>"u")O.yylloc={};var ne=O.yylloc;s.push(ne);var Ge=O.options&&O.options.ranges;if(typeof K.yy.parseError==="function")this.parseError=K.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Je(P){h.length=h.length-2*P,D.length=D.length-P,s.length=s.length-P}t(Je,"popStack");function _e(){var P=m.pop()||O.lex()||q;if(typeof P!=="number"){if(P instanceof Array)m=P,P=m.pop();P=n.symbols_[P]||P}return P}t(_e,"lex");var A,oe,W,R,vt,ue,U={},J,Y,De,Z;while(!0){if(W=h[h.length-1],this.defaultActions[W])R=this.defaultActions[W];else{if(A===null||typeof A>"u")A=_e();R=H[W]&&H[W][A]}if(typeof R>"u"||!R.length||!R[0]){var he="";Z=[];for(J in H[W])if(this.terminals_[J]&&J>se)Z.push("'"+this.terminals_[J]+"'");if(O.showPosition)he="Parse error on line "+(V+1)+`:
2
2
  `+O.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[A]||A)+"'";else he="Parse error on line "+(V+1)+": Unexpected "+(A==q?"end of input":"'"+(this.terminals_[A]||A)+"'");this.parseError(he,{text:O.match,token:this.terminals_[A]||A,line:O.yylineno,loc:ne,expected:Z})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(R[0]){case 1:if(h.push(A),D.push(O.yytext),s.push(O.yylloc),h.push(R[1]),A=null,!oe){if(j=O.yyleng,c=O.yytext,V=O.yylineno,ne=O.yylloc,G>0)G--}else A=oe,oe=null;break;case 2:if(Y=this.productions_[R[1]][1],U.$=D[D.length-Y],U._$={first_line:s[s.length-(Y||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(Y||1)].first_column,last_column:s[s.length-1].last_column},Ge)U._$.range=[s[s.length-(Y||1)].range[0],s[s.length-1].range[1]];if(ue=this.performAction.apply(U,[c,j,V,K.yy,R[1],D,s].concat(ie)),typeof ue<"u")return ue;if(Y)h=h.slice(0,-1*Y*2),D=D.slice(0,-1*Y),s=s.slice(0,-1*Y);h.push(this.productions_[R[1]][0]),D.push(U.$),s.push(U._$),De=H[h[h.length-2]][h[h.length-1]],h.push(De);break;case 3:return!0}}return!0},"parse")},v=function(){var B={EOF:1,parseError:t(function(n,h){if(this.yy.parser)this.yy.parser.parseError(n,h);else throw Error(n)},"parseError"),setInput:t(function(S,n){if(this.yy=n||this.yy||{},this._input=S,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 S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var n=S.match(/(?:\r\n?|\n).*/g);if(n)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),S},"input"),unput:t(function(S){var n=S.length,h=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var m=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),h.length-1)this.yylineno-=h.length-1;var D=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:h?(h.length===m.length?this.yylloc.first_column:0)+m[m.length-h.length].length-h[0].length:this.yylloc.first_column-n},this.options.ranges)this.yylloc.range=[D[0],D[0]+this.yyleng-n];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(S){this.unput(this.match.slice(S))},"less"),pastInput:t(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var S=this.match;if(S.length<20)S+=this._input.substr(0,20-S.length);return(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var S=this.pastInput(),n=Array(S.length+1).join("-");return S+this.upcomingInput()+`