,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+e/2.075+" -"+e+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},JSe=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+e)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},e6e=function(e,r){return"M983 "+(10+e+r)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},t6e=function(e,r){return"M424,"+(2398+e+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` h400000v`+(40+e)+"h-400000z"},r6e=function(e,r){return"M473,"+(2713+e+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},i6e=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},n6e=function(e,r,i){var n=i-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},a6e=function(e,r,i){r=1e3*r;var n="";switch(e){case"sqrtMain":n=QSe(r,tm);break;case"sqrtSize1":n=JSe(r,tm);break;case"sqrtSize2":n=e6e(r,tm);break;case"sqrtSize3":n=t6e(r,tm);break;case"sqrtSize4":n=r6e(r,tm);break;case"sqrtTall":n=n6e(r,tm,i)}return n},s6e=function(e,r){switch(e){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},aU={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},o6e=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Cd=class{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;rr.toText();return this.children.map(e).join("")}},u8={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},l6e={ex:!0,em:!0,mu:!0},OU=function(e){return typeof e!="string"&&(e=e.unit),e in u8||e in l6e||e==="ex"},pn=function(e,r){var i;if(e.unit in u8)i=u8[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")i=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,e.unit==="ex")i=n.fontMetrics().xHeight;else if(e.unit==="em")i=n.fontMetrics().quad;else throw new yt("Invalid unit: '"+e.unit+"'");n!==r&&(i*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*i,r.maxSize)},kt=function(e){return+e.toFixed(4)+"em"},Ed=function(e){return e.filter(r=>r).join(" ")},PU=function(e,r,i){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},BU=function(e){var r=document.createElement(e);r.className=Ed(this.classes);for(var i of Object.keys(this.style))r.style[i]=this.style[i];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a/=\x00-\x1f]/,FU=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+rs(Ed(this.classes))+'"');var i="";for(var n of Object.keys(this.style))i+=C8(n)+":"+this.style[n]+";";i&&(r+=' style="'+rs(i)+'"');for(var a of Object.keys(this.attributes)){if(c6e.test(a))throw new yt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+rs(this.attributes[a])+'"'}r+=">";for(var s=0;s",r},Sd=class{constructor(e,r,i,n){PU.call(this,e,i,n),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return BU.call(this,"span")}toMarkup(){return FU.call(this,"span")}},nm=class{constructor(e,r,i,n){PU.call(this,r,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return BU.call(this,"a")}toMarkup(){return FU.call(this,"a")}},h8=class{constructor(e,r,i){this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r of Object.keys(this.style))e.style[r]=this.style[r];return e}toMarkup(){var e=''+rs(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=kt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Ed(this.classes));for(var i of Object.keys(this.style))r=r||document.createElement("span"),r.style[i]=this.style[i];return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(i+="margin-right:"+kt(this.italic)+";");for(var n of Object.keys(this.style))i+=C8(n)+":"+this.style[n]+";";i&&(e=!0,r+=' style="'+rs(i)+'"');var a=rs(this.text);return e?(r+=">",r+=a,r+="",r):a}},Kl=class{constructor(e,r){this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var n=0;n':''}},d2=class{constructor(e){this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);return r}toMarkup(){var e="t instanceof Sd||t instanceof nm||t instanceof Cd,qc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Bk={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},sU={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};j_={};g6e={bin:1,close:1,inner:1,open:1,punct:1,rel:1},m6e={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Zi={math:{},text:{}};j="math",ut="text",ne="main",_e="ams",Qi="accent-token",Nt="bin",Ss="close",om="inner",nr="mathord",qn="op-token",Mo="open",p2="punct",Re="rel",hh="spacing",ze="textord";V(j,ne,Re,"\u2261","\\equiv",!0);V(j,ne,Re,"\u227A","\\prec",!0);V(j,ne,Re,"\u227B","\\succ",!0);V(j,ne,Re,"\u223C","\\sim",!0);V(j,ne,Re,"\u22A5","\\perp");V(j,ne,Re,"\u2AAF","\\preceq",!0);V(j,ne,Re,"\u2AB0","\\succeq",!0);V(j,ne,Re,"\u2243","\\simeq",!0);V(j,ne,Re,"\u2223","\\mid",!0);V(j,ne,Re,"\u226A","\\ll",!0);V(j,ne,Re,"\u226B","\\gg",!0);V(j,ne,Re,"\u224D","\\asymp",!0);V(j,ne,Re,"\u2225","\\parallel");V(j,ne,Re,"\u22C8","\\bowtie",!0);V(j,ne,Re,"\u2323","\\smile",!0);V(j,ne,Re,"\u2291","\\sqsubseteq",!0);V(j,ne,Re,"\u2292","\\sqsupseteq",!0);V(j,ne,Re,"\u2250","\\doteq",!0);V(j,ne,Re,"\u2322","\\frown",!0);V(j,ne,Re,"\u220B","\\ni",!0);V(j,ne,Re,"\u221D","\\propto",!0);V(j,ne,Re,"\u22A2","\\vdash",!0);V(j,ne,Re,"\u22A3","\\dashv",!0);V(j,ne,Re,"\u220B","\\owns");V(j,ne,p2,".","\\ldotp");V(j,ne,p2,"\u22C5","\\cdotp");V(j,ne,p2,"\u22C5","\xB7");V(ut,ne,ze,"\u22C5","\xB7");V(j,ne,ze,"#","\\#");V(ut,ne,ze,"#","\\#");V(j,ne,ze,"&","\\&");V(ut,ne,ze,"&","\\&");V(j,ne,ze,"\u2135","\\aleph",!0);V(j,ne,ze,"\u2200","\\forall",!0);V(j,ne,ze,"\u210F","\\hbar",!0);V(j,ne,ze,"\u2203","\\exists",!0);V(j,ne,ze,"\u2207","\\nabla",!0);V(j,ne,ze,"\u266D","\\flat",!0);V(j,ne,ze,"\u2113","\\ell",!0);V(j,ne,ze,"\u266E","\\natural",!0);V(j,ne,ze,"\u2663","\\clubsuit",!0);V(j,ne,ze,"\u2118","\\wp",!0);V(j,ne,ze,"\u266F","\\sharp",!0);V(j,ne,ze,"\u2662","\\diamondsuit",!0);V(j,ne,ze,"\u211C","\\Re",!0);V(j,ne,ze,"\u2661","\\heartsuit",!0);V(j,ne,ze,"\u2111","\\Im",!0);V(j,ne,ze,"\u2660","\\spadesuit",!0);V(j,ne,ze,"\xA7","\\S",!0);V(ut,ne,ze,"\xA7","\\S");V(j,ne,ze,"\xB6","\\P",!0);V(ut,ne,ze,"\xB6","\\P");V(j,ne,ze,"\u2020","\\dag");V(ut,ne,ze,"\u2020","\\dag");V(ut,ne,ze,"\u2020","\\textdagger");V(j,ne,ze,"\u2021","\\ddag");V(ut,ne,ze,"\u2021","\\ddag");V(ut,ne,ze,"\u2021","\\textdaggerdbl");V(j,ne,Ss,"\u23B1","\\rmoustache",!0);V(j,ne,Mo,"\u23B0","\\lmoustache",!0);V(j,ne,Ss,"\u27EF","\\rgroup",!0);V(j,ne,Mo,"\u27EE","\\lgroup",!0);V(j,ne,Nt,"\u2213","\\mp",!0);V(j,ne,Nt,"\u2296","\\ominus",!0);V(j,ne,Nt,"\u228E","\\uplus",!0);V(j,ne,Nt,"\u2293","\\sqcap",!0);V(j,ne,Nt,"\u2217","\\ast");V(j,ne,Nt,"\u2294","\\sqcup",!0);V(j,ne,Nt,"\u25EF","\\bigcirc",!0);V(j,ne,Nt,"\u2219","\\bullet",!0);V(j,ne,Nt,"\u2021","\\ddagger");V(j,ne,Nt,"\u2240","\\wr",!0);V(j,ne,Nt,"\u2A3F","\\amalg");V(j,ne,Nt,"&","\\And");V(j,ne,Re,"\u27F5","\\longleftarrow",!0);V(j,ne,Re,"\u21D0","\\Leftarrow",!0);V(j,ne,Re,"\u27F8","\\Longleftarrow",!0);V(j,ne,Re,"\u27F6","\\longrightarrow",!0);V(j,ne,Re,"\u21D2","\\Rightarrow",!0);V(j,ne,Re,"\u27F9","\\Longrightarrow",!0);V(j,ne,Re,"\u2194","\\leftrightarrow",!0);V(j,ne,Re,"\u27F7","\\longleftrightarrow",!0);V(j,ne,Re,"\u21D4","\\Leftrightarrow",!0);V(j,ne,Re,"\u27FA","\\Longleftrightarrow",!0);V(j,ne,Re,"\u21A6","\\mapsto",!0);V(j,ne,Re,"\u27FC","\\longmapsto",!0);V(j,ne,Re,"\u2197","\\nearrow",!0);V(j,ne,Re,"\u21A9","\\hookleftarrow",!0);V(j,ne,Re,"\u21AA","\\hookrightarrow",!0);V(j,ne,Re,"\u2198","\\searrow",!0);V(j,ne,Re,"\u21BC","\\leftharpoonup",!0);V(j,ne,Re,"\u21C0","\\rightharpoonup",!0);V(j,ne,Re,"\u2199","\\swarrow",!0);V(j,ne,Re,"\u21BD","\\leftharpoondown",!0);V(j,ne,Re,"\u21C1","\\rightharpoondown",!0);V(j,ne,Re,"\u2196","\\nwarrow",!0);V(j,ne,Re,"\u21CC","\\rightleftharpoons",!0);V(j,_e,Re,"\u226E","\\nless",!0);V(j,_e,Re,"\uE010","\\@nleqslant");V(j,_e,Re,"\uE011","\\@nleqq");V(j,_e,Re,"\u2A87","\\lneq",!0);V(j,_e,Re,"\u2268","\\lneqq",!0);V(j,_e,Re,"\uE00C","\\@lvertneqq");V(j,_e,Re,"\u22E6","\\lnsim",!0);V(j,_e,Re,"\u2A89","\\lnapprox",!0);V(j,_e,Re,"\u2280","\\nprec",!0);V(j,_e,Re,"\u22E0","\\npreceq",!0);V(j,_e,Re,"\u22E8","\\precnsim",!0);V(j,_e,Re,"\u2AB9","\\precnapprox",!0);V(j,_e,Re,"\u2241","\\nsim",!0);V(j,_e,Re,"\uE006","\\@nshortmid");V(j,_e,Re,"\u2224","\\nmid",!0);V(j,_e,Re,"\u22AC","\\nvdash",!0);V(j,_e,Re,"\u22AD","\\nvDash",!0);V(j,_e,Re,"\u22EA","\\ntriangleleft");V(j,_e,Re,"\u22EC","\\ntrianglelefteq",!0);V(j,_e,Re,"\u228A","\\subsetneq",!0);V(j,_e,Re,"\uE01A","\\@varsubsetneq");V(j,_e,Re,"\u2ACB","\\subsetneqq",!0);V(j,_e,Re,"\uE017","\\@varsubsetneqq");V(j,_e,Re,"\u226F","\\ngtr",!0);V(j,_e,Re,"\uE00F","\\@ngeqslant");V(j,_e,Re,"\uE00E","\\@ngeqq");V(j,_e,Re,"\u2A88","\\gneq",!0);V(j,_e,Re,"\u2269","\\gneqq",!0);V(j,_e,Re,"\uE00D","\\@gvertneqq");V(j,_e,Re,"\u22E7","\\gnsim",!0);V(j,_e,Re,"\u2A8A","\\gnapprox",!0);V(j,_e,Re,"\u2281","\\nsucc",!0);V(j,_e,Re,"\u22E1","\\nsucceq",!0);V(j,_e,Re,"\u22E9","\\succnsim",!0);V(j,_e,Re,"\u2ABA","\\succnapprox",!0);V(j,_e,Re,"\u2246","\\ncong",!0);V(j,_e,Re,"\uE007","\\@nshortparallel");V(j,_e,Re,"\u2226","\\nparallel",!0);V(j,_e,Re,"\u22AF","\\nVDash",!0);V(j,_e,Re,"\u22EB","\\ntriangleright");V(j,_e,Re,"\u22ED","\\ntrianglerighteq",!0);V(j,_e,Re,"\uE018","\\@nsupseteqq");V(j,_e,Re,"\u228B","\\supsetneq",!0);V(j,_e,Re,"\uE01B","\\@varsupsetneq");V(j,_e,Re,"\u2ACC","\\supsetneqq",!0);V(j,_e,Re,"\uE019","\\@varsupsetneqq");V(j,_e,Re,"\u22AE","\\nVdash",!0);V(j,_e,Re,"\u2AB5","\\precneqq",!0);V(j,_e,Re,"\u2AB6","\\succneqq",!0);V(j,_e,Re,"\uE016","\\@nsubseteqq");V(j,_e,Nt,"\u22B4","\\unlhd");V(j,_e,Nt,"\u22B5","\\unrhd");V(j,_e,Re,"\u219A","\\nleftarrow",!0);V(j,_e,Re,"\u219B","\\nrightarrow",!0);V(j,_e,Re,"\u21CD","\\nLeftarrow",!0);V(j,_e,Re,"\u21CF","\\nRightarrow",!0);V(j,_e,Re,"\u21AE","\\nleftrightarrow",!0);V(j,_e,Re,"\u21CE","\\nLeftrightarrow",!0);V(j,_e,Re,"\u25B3","\\vartriangle");V(j,_e,ze,"\u210F","\\hslash");V(j,_e,ze,"\u25BD","\\triangledown");V(j,_e,ze,"\u25CA","\\lozenge");V(j,_e,ze,"\u24C8","\\circledS");V(j,_e,ze,"\xAE","\\circledR");V(ut,_e,ze,"\xAE","\\circledR");V(j,_e,ze,"\u2221","\\measuredangle",!0);V(j,_e,ze,"\u2204","\\nexists");V(j,_e,ze,"\u2127","\\mho");V(j,_e,ze,"\u2132","\\Finv",!0);V(j,_e,ze,"\u2141","\\Game",!0);V(j,_e,ze,"\u2035","\\backprime");V(j,_e,ze,"\u25B2","\\blacktriangle");V(j,_e,ze,"\u25BC","\\blacktriangledown");V(j,_e,ze,"\u25A0","\\blacksquare");V(j,_e,ze,"\u29EB","\\blacklozenge");V(j,_e,ze,"\u2605","\\bigstar");V(j,_e,ze,"\u2222","\\sphericalangle",!0);V(j,_e,ze,"\u2201","\\complement",!0);V(j,_e,ze,"\xF0","\\eth",!0);V(ut,ne,ze,"\xF0","\xF0");V(j,_e,ze,"\u2571","\\diagup");V(j,_e,ze,"\u2572","\\diagdown");V(j,_e,ze,"\u25A1","\\square");V(j,_e,ze,"\u25A1","\\Box");V(j,_e,ze,"\u25CA","\\Diamond");V(j,_e,ze,"\xA5","\\yen",!0);V(ut,_e,ze,"\xA5","\\yen",!0);V(j,_e,ze,"\u2713","\\checkmark",!0);V(ut,_e,ze,"\u2713","\\checkmark");V(j,_e,ze,"\u2136","\\beth",!0);V(j,_e,ze,"\u2138","\\daleth",!0);V(j,_e,ze,"\u2137","\\gimel",!0);V(j,_e,ze,"\u03DD","\\digamma",!0);V(j,_e,ze,"\u03F0","\\varkappa");V(j,_e,Mo,"\u250C","\\@ulcorner",!0);V(j,_e,Ss,"\u2510","\\@urcorner",!0);V(j,_e,Mo,"\u2514","\\@llcorner",!0);V(j,_e,Ss,"\u2518","\\@lrcorner",!0);V(j,_e,Re,"\u2266","\\leqq",!0);V(j,_e,Re,"\u2A7D","\\leqslant",!0);V(j,_e,Re,"\u2A95","\\eqslantless",!0);V(j,_e,Re,"\u2272","\\lesssim",!0);V(j,_e,Re,"\u2A85","\\lessapprox",!0);V(j,_e,Re,"\u224A","\\approxeq",!0);V(j,_e,Nt,"\u22D6","\\lessdot");V(j,_e,Re,"\u22D8","\\lll",!0);V(j,_e,Re,"\u2276","\\lessgtr",!0);V(j,_e,Re,"\u22DA","\\lesseqgtr",!0);V(j,_e,Re,"\u2A8B","\\lesseqqgtr",!0);V(j,_e,Re,"\u2251","\\doteqdot");V(j,_e,Re,"\u2253","\\risingdotseq",!0);V(j,_e,Re,"\u2252","\\fallingdotseq",!0);V(j,_e,Re,"\u223D","\\backsim",!0);V(j,_e,Re,"\u22CD","\\backsimeq",!0);V(j,_e,Re,"\u2AC5","\\subseteqq",!0);V(j,_e,Re,"\u22D0","\\Subset",!0);V(j,_e,Re,"\u228F","\\sqsubset",!0);V(j,_e,Re,"\u227C","\\preccurlyeq",!0);V(j,_e,Re,"\u22DE","\\curlyeqprec",!0);V(j,_e,Re,"\u227E","\\precsim",!0);V(j,_e,Re,"\u2AB7","\\precapprox",!0);V(j,_e,Re,"\u22B2","\\vartriangleleft");V(j,_e,Re,"\u22B4","\\trianglelefteq");V(j,_e,Re,"\u22A8","\\vDash",!0);V(j,_e,Re,"\u22AA","\\Vvdash",!0);V(j,_e,Re,"\u2323","\\smallsmile");V(j,_e,Re,"\u2322","\\smallfrown");V(j,_e,Re,"\u224F","\\bumpeq",!0);V(j,_e,Re,"\u224E","\\Bumpeq",!0);V(j,_e,Re,"\u2267","\\geqq",!0);V(j,_e,Re,"\u2A7E","\\geqslant",!0);V(j,_e,Re,"\u2A96","\\eqslantgtr",!0);V(j,_e,Re,"\u2273","\\gtrsim",!0);V(j,_e,Re,"\u2A86","\\gtrapprox",!0);V(j,_e,Nt,"\u22D7","\\gtrdot");V(j,_e,Re,"\u22D9","\\ggg",!0);V(j,_e,Re,"\u2277","\\gtrless",!0);V(j,_e,Re,"\u22DB","\\gtreqless",!0);V(j,_e,Re,"\u2A8C","\\gtreqqless",!0);V(j,_e,Re,"\u2256","\\eqcirc",!0);V(j,_e,Re,"\u2257","\\circeq",!0);V(j,_e,Re,"\u225C","\\triangleq",!0);V(j,_e,Re,"\u223C","\\thicksim");V(j,_e,Re,"\u2248","\\thickapprox");V(j,_e,Re,"\u2AC6","\\supseteqq",!0);V(j,_e,Re,"\u22D1","\\Supset",!0);V(j,_e,Re,"\u2290","\\sqsupset",!0);V(j,_e,Re,"\u227D","\\succcurlyeq",!0);V(j,_e,Re,"\u22DF","\\curlyeqsucc",!0);V(j,_e,Re,"\u227F","\\succsim",!0);V(j,_e,Re,"\u2AB8","\\succapprox",!0);V(j,_e,Re,"\u22B3","\\vartriangleright");V(j,_e,Re,"\u22B5","\\trianglerighteq");V(j,_e,Re,"\u22A9","\\Vdash",!0);V(j,_e,Re,"\u2223","\\shortmid");V(j,_e,Re,"\u2225","\\shortparallel");V(j,_e,Re,"\u226C","\\between",!0);V(j,_e,Re,"\u22D4","\\pitchfork",!0);V(j,_e,Re,"\u221D","\\varpropto");V(j,_e,Re,"\u25C0","\\blacktriangleleft");V(j,_e,Re,"\u2234","\\therefore",!0);V(j,_e,Re,"\u220D","\\backepsilon");V(j,_e,Re,"\u25B6","\\blacktriangleright");V(j,_e,Re,"\u2235","\\because",!0);V(j,_e,Re,"\u22D8","\\llless");V(j,_e,Re,"\u22D9","\\gggtr");V(j,_e,Nt,"\u22B2","\\lhd");V(j,_e,Nt,"\u22B3","\\rhd");V(j,_e,Re,"\u2242","\\eqsim",!0);V(j,ne,Re,"\u22C8","\\Join");V(j,_e,Re,"\u2251","\\Doteq",!0);V(j,_e,Nt,"\u2214","\\dotplus",!0);V(j,_e,Nt,"\u2216","\\smallsetminus");V(j,_e,Nt,"\u22D2","\\Cap",!0);V(j,_e,Nt,"\u22D3","\\Cup",!0);V(j,_e,Nt,"\u2A5E","\\doublebarwedge",!0);V(j,_e,Nt,"\u229F","\\boxminus",!0);V(j,_e,Nt,"\u229E","\\boxplus",!0);V(j,_e,Nt,"\u22C7","\\divideontimes",!0);V(j,_e,Nt,"\u22C9","\\ltimes",!0);V(j,_e,Nt,"\u22CA","\\rtimes",!0);V(j,_e,Nt,"\u22CB","\\leftthreetimes",!0);V(j,_e,Nt,"\u22CC","\\rightthreetimes",!0);V(j,_e,Nt,"\u22CF","\\curlywedge",!0);V(j,_e,Nt,"\u22CE","\\curlyvee",!0);V(j,_e,Nt,"\u229D","\\circleddash",!0);V(j,_e,Nt,"\u229B","\\circledast",!0);V(j,_e,Nt,"\u22C5","\\centerdot");V(j,_e,Nt,"\u22BA","\\intercal",!0);V(j,_e,Nt,"\u22D2","\\doublecap");V(j,_e,Nt,"\u22D3","\\doublecup");V(j,_e,Nt,"\u22A0","\\boxtimes",!0);V(j,_e,Re,"\u21E2","\\dashrightarrow",!0);V(j,_e,Re,"\u21E0","\\dashleftarrow",!0);V(j,_e,Re,"\u21C7","\\leftleftarrows",!0);V(j,_e,Re,"\u21C6","\\leftrightarrows",!0);V(j,_e,Re,"\u21DA","\\Lleftarrow",!0);V(j,_e,Re,"\u219E","\\twoheadleftarrow",!0);V(j,_e,Re,"\u21A2","\\leftarrowtail",!0);V(j,_e,Re,"\u21AB","\\looparrowleft",!0);V(j,_e,Re,"\u21CB","\\leftrightharpoons",!0);V(j,_e,Re,"\u21B6","\\curvearrowleft",!0);V(j,_e,Re,"\u21BA","\\circlearrowleft",!0);V(j,_e,Re,"\u21B0","\\Lsh",!0);V(j,_e,Re,"\u21C8","\\upuparrows",!0);V(j,_e,Re,"\u21BF","\\upharpoonleft",!0);V(j,_e,Re,"\u21C3","\\downharpoonleft",!0);V(j,ne,Re,"\u22B6","\\origof",!0);V(j,ne,Re,"\u22B7","\\imageof",!0);V(j,_e,Re,"\u22B8","\\multimap",!0);V(j,_e,Re,"\u21AD","\\leftrightsquigarrow",!0);V(j,_e,Re,"\u21C9","\\rightrightarrows",!0);V(j,_e,Re,"\u21C4","\\rightleftarrows",!0);V(j,_e,Re,"\u21A0","\\twoheadrightarrow",!0);V(j,_e,Re,"\u21A3","\\rightarrowtail",!0);V(j,_e,Re,"\u21AC","\\looparrowright",!0);V(j,_e,Re,"\u21B7","\\curvearrowright",!0);V(j,_e,Re,"\u21BB","\\circlearrowright",!0);V(j,_e,Re,"\u21B1","\\Rsh",!0);V(j,_e,Re,"\u21CA","\\downdownarrows",!0);V(j,_e,Re,"\u21BE","\\upharpoonright",!0);V(j,_e,Re,"\u21C2","\\downharpoonright",!0);V(j,_e,Re,"\u21DD","\\rightsquigarrow",!0);V(j,_e,Re,"\u21DD","\\leadsto");V(j,_e,Re,"\u21DB","\\Rrightarrow",!0);V(j,_e,Re,"\u21BE","\\restriction");V(j,ne,ze,"\u2018","`");V(j,ne,ze,"$","\\$");V(ut,ne,ze,"$","\\$");V(ut,ne,ze,"$","\\textdollar");V(j,ne,ze,"%","\\%");V(ut,ne,ze,"%","\\%");V(j,ne,ze,"_","\\_");V(ut,ne,ze,"_","\\_");V(ut,ne,ze,"_","\\textunderscore");V(j,ne,ze,"\u2220","\\angle",!0);V(j,ne,ze,"\u221E","\\infty",!0);V(j,ne,ze,"\u2032","\\prime");V(j,ne,ze,"\u25B3","\\triangle");V(j,ne,ze,"\u0393","\\Gamma",!0);V(j,ne,ze,"\u0394","\\Delta",!0);V(j,ne,ze,"\u0398","\\Theta",!0);V(j,ne,ze,"\u039B","\\Lambda",!0);V(j,ne,ze,"\u039E","\\Xi",!0);V(j,ne,ze,"\u03A0","\\Pi",!0);V(j,ne,ze,"\u03A3","\\Sigma",!0);V(j,ne,ze,"\u03A5","\\Upsilon",!0);V(j,ne,ze,"\u03A6","\\Phi",!0);V(j,ne,ze,"\u03A8","\\Psi",!0);V(j,ne,ze,"\u03A9","\\Omega",!0);V(j,ne,ze,"A","\u0391");V(j,ne,ze,"B","\u0392");V(j,ne,ze,"E","\u0395");V(j,ne,ze,"Z","\u0396");V(j,ne,ze,"H","\u0397");V(j,ne,ze,"I","\u0399");V(j,ne,ze,"K","\u039A");V(j,ne,ze,"M","\u039C");V(j,ne,ze,"N","\u039D");V(j,ne,ze,"O","\u039F");V(j,ne,ze,"P","\u03A1");V(j,ne,ze,"T","\u03A4");V(j,ne,ze,"X","\u03A7");V(j,ne,ze,"\xAC","\\neg",!0);V(j,ne,ze,"\xAC","\\lnot");V(j,ne,ze,"\u22A4","\\top");V(j,ne,ze,"\u22A5","\\bot");V(j,ne,ze,"\u2205","\\emptyset");V(j,_e,ze,"\u2205","\\varnothing");V(j,ne,nr,"\u03B1","\\alpha",!0);V(j,ne,nr,"\u03B2","\\beta",!0);V(j,ne,nr,"\u03B3","\\gamma",!0);V(j,ne,nr,"\u03B4","\\delta",!0);V(j,ne,nr,"\u03F5","\\epsilon",!0);V(j,ne,nr,"\u03B6","\\zeta",!0);V(j,ne,nr,"\u03B7","\\eta",!0);V(j,ne,nr,"\u03B8","\\theta",!0);V(j,ne,nr,"\u03B9","\\iota",!0);V(j,ne,nr,"\u03BA","\\kappa",!0);V(j,ne,nr,"\u03BB","\\lambda",!0);V(j,ne,nr,"\u03BC","\\mu",!0);V(j,ne,nr,"\u03BD","\\nu",!0);V(j,ne,nr,"\u03BE","\\xi",!0);V(j,ne,nr,"\u03BF","\\omicron",!0);V(j,ne,nr,"\u03C0","\\pi",!0);V(j,ne,nr,"\u03C1","\\rho",!0);V(j,ne,nr,"\u03C3","\\sigma",!0);V(j,ne,nr,"\u03C4","\\tau",!0);V(j,ne,nr,"\u03C5","\\upsilon",!0);V(j,ne,nr,"\u03D5","\\phi",!0);V(j,ne,nr,"\u03C7","\\chi",!0);V(j,ne,nr,"\u03C8","\\psi",!0);V(j,ne,nr,"\u03C9","\\omega",!0);V(j,ne,nr,"\u03B5","\\varepsilon",!0);V(j,ne,nr,"\u03D1","\\vartheta",!0);V(j,ne,nr,"\u03D6","\\varpi",!0);V(j,ne,nr,"\u03F1","\\varrho",!0);V(j,ne,nr,"\u03C2","\\varsigma",!0);V(j,ne,nr,"\u03C6","\\varphi",!0);V(j,ne,Nt,"\u2217","*",!0);V(j,ne,Nt,"+","+");V(j,ne,Nt,"\u2212","-",!0);V(j,ne,Nt,"\u22C5","\\cdot",!0);V(j,ne,Nt,"\u2218","\\circ",!0);V(j,ne,Nt,"\xF7","\\div",!0);V(j,ne,Nt,"\xB1","\\pm",!0);V(j,ne,Nt,"\xD7","\\times",!0);V(j,ne,Nt,"\u2229","\\cap",!0);V(j,ne,Nt,"\u222A","\\cup",!0);V(j,ne,Nt,"\u2216","\\setminus",!0);V(j,ne,Nt,"\u2227","\\land");V(j,ne,Nt,"\u2228","\\lor");V(j,ne,Nt,"\u2227","\\wedge",!0);V(j,ne,Nt,"\u2228","\\vee",!0);V(j,ne,ze,"\u221A","\\surd");V(j,ne,Mo,"\u27E8","\\langle",!0);V(j,ne,Mo,"\u2223","\\lvert");V(j,ne,Mo,"\u2225","\\lVert");V(j,ne,Ss,"?","?");V(j,ne,Ss,"!","!");V(j,ne,Ss,"\u27E9","\\rangle",!0);V(j,ne,Ss,"\u2223","\\rvert");V(j,ne,Ss,"\u2225","\\rVert");V(j,ne,Re,"=","=");V(j,ne,Re,":",":");V(j,ne,Re,"\u2248","\\approx",!0);V(j,ne,Re,"\u2245","\\cong",!0);V(j,ne,Re,"\u2265","\\ge");V(j,ne,Re,"\u2265","\\geq",!0);V(j,ne,Re,"\u2190","\\gets");V(j,ne,Re,">","\\gt",!0);V(j,ne,Re,"\u2208","\\in",!0);V(j,ne,Re,"\uE020","\\@not");V(j,ne,Re,"\u2282","\\subset",!0);V(j,ne,Re,"\u2283","\\supset",!0);V(j,ne,Re,"\u2286","\\subseteq",!0);V(j,ne,Re,"\u2287","\\supseteq",!0);V(j,_e,Re,"\u2288","\\nsubseteq",!0);V(j,_e,Re,"\u2289","\\nsupseteq",!0);V(j,ne,Re,"\u22A8","\\models");V(j,ne,Re,"\u2190","\\leftarrow",!0);V(j,ne,Re,"\u2264","\\le");V(j,ne,Re,"\u2264","\\leq",!0);V(j,ne,Re,"<","\\lt",!0);V(j,ne,Re,"\u2192","\\rightarrow",!0);V(j,ne,Re,"\u2192","\\to");V(j,_e,Re,"\u2271","\\ngeq",!0);V(j,_e,Re,"\u2270","\\nleq",!0);V(j,ne,hh,"\xA0","\\ ");V(j,ne,hh,"\xA0","\\space");V(j,ne,hh,"\xA0","\\nobreakspace");V(ut,ne,hh,"\xA0","\\ ");V(ut,ne,hh,"\xA0"," ");V(ut,ne,hh,"\xA0","\\space");V(ut,ne,hh,"\xA0","\\nobreakspace");V(j,ne,hh,null,"\\nobreak");V(j,ne,hh,null,"\\allowbreak");V(j,ne,p2,",",",");V(j,ne,p2,";",";");V(j,_e,Nt,"\u22BC","\\barwedge",!0);V(j,_e,Nt,"\u22BB","\\veebar",!0);V(j,ne,Nt,"\u2299","\\odot",!0);V(j,ne,Nt,"\u2295","\\oplus",!0);V(j,ne,Nt,"\u2297","\\otimes",!0);V(j,ne,ze,"\u2202","\\partial",!0);V(j,ne,Nt,"\u2298","\\oslash",!0);V(j,_e,Nt,"\u229A","\\circledcirc",!0);V(j,_e,Nt,"\u22A1","\\boxdot",!0);V(j,ne,Nt,"\u25B3","\\bigtriangleup");V(j,ne,Nt,"\u25BD","\\bigtriangledown");V(j,ne,Nt,"\u2020","\\dagger");V(j,ne,Nt,"\u22C4","\\diamond");V(j,ne,Nt,"\u22C6","\\star");V(j,ne,Nt,"\u25C3","\\triangleleft");V(j,ne,Nt,"\u25B9","\\triangleright");V(j,ne,Mo,"{","\\{");V(ut,ne,ze,"{","\\{");V(ut,ne,ze,"{","\\textbraceleft");V(j,ne,Ss,"}","\\}");V(ut,ne,ze,"}","\\}");V(ut,ne,ze,"}","\\textbraceright");V(j,ne,Mo,"{","\\lbrace");V(j,ne,Ss,"}","\\rbrace");V(j,ne,Mo,"[","\\lbrack",!0);V(ut,ne,ze,"[","\\lbrack",!0);V(j,ne,Ss,"]","\\rbrack",!0);V(ut,ne,ze,"]","\\rbrack",!0);V(j,ne,Mo,"(","\\lparen",!0);V(j,ne,Ss,")","\\rparen",!0);V(ut,ne,ze,"<","\\textless",!0);V(ut,ne,ze,">","\\textgreater",!0);V(j,ne,Mo,"\u230A","\\lfloor",!0);V(j,ne,Ss,"\u230B","\\rfloor",!0);V(j,ne,Mo,"\u2308","\\lceil",!0);V(j,ne,Ss,"\u2309","\\rceil",!0);V(j,ne,ze,"\\","\\backslash");V(j,ne,ze,"\u2223","|");V(j,ne,ze,"\u2223","\\vert");V(ut,ne,ze,"|","\\textbar",!0);V(j,ne,ze,"\u2225","\\|");V(j,ne,ze,"\u2225","\\Vert");V(ut,ne,ze,"\u2225","\\textbardbl");V(ut,ne,ze,"~","\\textasciitilde");V(ut,ne,ze,"\\","\\textbackslash");V(ut,ne,ze,"^","\\textasciicircum");V(j,ne,Re,"\u2191","\\uparrow",!0);V(j,ne,Re,"\u21D1","\\Uparrow",!0);V(j,ne,Re,"\u2193","\\downarrow",!0);V(j,ne,Re,"\u21D3","\\Downarrow",!0);V(j,ne,Re,"\u2195","\\updownarrow",!0);V(j,ne,Re,"\u21D5","\\Updownarrow",!0);V(j,ne,qn,"\u2210","\\coprod");V(j,ne,qn,"\u22C1","\\bigvee");V(j,ne,qn,"\u22C0","\\bigwedge");V(j,ne,qn,"\u2A04","\\biguplus");V(j,ne,qn,"\u22C2","\\bigcap");V(j,ne,qn,"\u22C3","\\bigcup");V(j,ne,qn,"\u222B","\\int");V(j,ne,qn,"\u222B","\\intop");V(j,ne,qn,"\u222C","\\iint");V(j,ne,qn,"\u222D","\\iiint");V(j,ne,qn,"\u220F","\\prod");V(j,ne,qn,"\u2211","\\sum");V(j,ne,qn,"\u2A02","\\bigotimes");V(j,ne,qn,"\u2A01","\\bigoplus");V(j,ne,qn,"\u2A00","\\bigodot");V(j,ne,qn,"\u222E","\\oint");V(j,ne,qn,"\u222F","\\oiint");V(j,ne,qn,"\u2230","\\oiiint");V(j,ne,qn,"\u2A06","\\bigsqcup");V(j,ne,qn,"\u222B","\\smallint");V(ut,ne,om,"\u2026","\\textellipsis");V(j,ne,om,"\u2026","\\mathellipsis");V(ut,ne,om,"\u2026","\\ldots",!0);V(j,ne,om,"\u2026","\\ldots",!0);V(j,ne,om,"\u22EF","\\@cdots",!0);V(j,ne,om,"\u22F1","\\ddots",!0);V(j,ne,ze,"\u22EE","\\varvdots");V(ut,ne,ze,"\u22EE","\\varvdots");V(j,ne,Qi,"\u02CA","\\acute");V(j,ne,Qi,"\u02CB","\\grave");V(j,ne,Qi,"\xA8","\\ddot");V(j,ne,Qi,"~","\\tilde");V(j,ne,Qi,"\u02C9","\\bar");V(j,ne,Qi,"\u02D8","\\breve");V(j,ne,Qi,"\u02C7","\\check");V(j,ne,Qi,"^","\\hat");V(j,ne,Qi,"\u20D7","\\vec");V(j,ne,Qi,"\u02D9","\\dot");V(j,ne,Qi,"\u02DA","\\mathring");V(j,ne,nr,"\uE131","\\@imath");V(j,ne,nr,"\uE237","\\@jmath");V(j,ne,ze,"\u0131","\u0131");V(j,ne,ze,"\u0237","\u0237");V(ut,ne,ze,"\u0131","\\i",!0);V(ut,ne,ze,"\u0237","\\j",!0);V(ut,ne,ze,"\xDF","\\ss",!0);V(ut,ne,ze,"\xE6","\\ae",!0);V(ut,ne,ze,"\u0153","\\oe",!0);V(ut,ne,ze,"\xF8","\\o",!0);V(ut,ne,ze,"\xC6","\\AE",!0);V(ut,ne,ze,"\u0152","\\OE",!0);V(ut,ne,ze,"\xD8","\\O",!0);V(ut,ne,Qi,"\u02CA","\\'");V(ut,ne,Qi,"\u02CB","\\`");V(ut,ne,Qi,"\u02C6","\\^");V(ut,ne,Qi,"\u02DC","\\~");V(ut,ne,Qi,"\u02C9","\\=");V(ut,ne,Qi,"\u02D8","\\u");V(ut,ne,Qi,"\u02D9","\\.");V(ut,ne,Qi,"\xB8","\\c");V(ut,ne,Qi,"\u02DA","\\r");V(ut,ne,Qi,"\u02C7","\\v");V(ut,ne,Qi,"\xA8",'\\"');V(ut,ne,Qi,"\u02DD","\\H");V(ut,ne,Qi,"\u25EF","\\textcircled");zU={"--":!0,"---":!0,"``":!0,"''":!0};V(ut,ne,ze,"\u2013","--",!0);V(ut,ne,ze,"\u2013","\\textendash");V(ut,ne,ze,"\u2014","---",!0);V(ut,ne,ze,"\u2014","\\textemdash");V(ut,ne,ze,"\u2018","`",!0);V(ut,ne,ze,"\u2018","\\textquoteleft");V(ut,ne,ze,"\u2019","'",!0);V(ut,ne,ze,"\u2019","\\textquoteright");V(ut,ne,ze,"\u201C","``",!0);V(ut,ne,ze,"\u201C","\\textquotedblleft");V(ut,ne,ze,"\u201D","''",!0);V(ut,ne,ze,"\u201D","\\textquotedblright");V(j,ne,ze,"\xB0","\\degree",!0);V(ut,ne,ze,"\xB0","\\degree");V(ut,ne,ze,"\xB0","\\textdegree",!0);V(j,ne,ze,"\xA3","\\pounds");V(j,ne,ze,"\xA3","\\mathsterling",!0);V(ut,ne,ze,"\xA3","\\pounds");V(ut,ne,ze,"\xA3","\\textsterling",!0);V(j,_e,ze,"\u2720","\\maltese");V(ut,_e,ze,"\u2720","\\maltese");oU='0123456789/@."';for(Fk=0;Fk{var r=t.charCodeAt(0),i=t.charCodeAt(1),n=(r-55296)*1024+(i-56320)+65536,a=e==="math"?0:1;if(119808<=n&&n<120484){var s=Math.floor((n-119808)/26);return[Gk[s][2],Gk[s][a]]}else if(120782<=n&&n<=120831){var o=Math.floor((n-120782)/10);return[cU[o][2],cU[o][a]]}else{if(n===120485||n===120486)return[Gk[0][2],Gk[0][a]];if(1204860)return ws(a,u,n,r,s.concat(h));if(l){var d,f;if(l==="boldsymbol"){var p=v6e(a,n,r,s,i);d=p.fontName,f=[p.fontClass]}else o?(d=f8[l].fontName,f=[l]):(d=Vk(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(sw(a,d,n).metrics)return ws(a,d,n,r,s.concat(f));if(zU.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(Ed(t.classes)!==Ed(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var i of Object.keys(t.style))if(t.style[i]!==e.style[i])return!1;for(var n of Object.keys(e.style))if(t.style[n]!==e.style[n])return!1;return!0},qU=t=>{for(var e=0;er&&(r=s.height),s.depth>i&&(i=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}e.height=r,e.depth=i,e.maxFontSize=n},pt=function(e,r,i,n){var a=new Sd(e,r,i,n);return _8(a),a},Ad=(t,e,r,i)=>new Sd(t,e,r,i),am=function(e,r,i){var n=pt([e],[],r);return n.height=Math.max(i||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=kt(n.height),n.maxFontSize=1,n},b6e=function(e,r,i,n){var a=new nm(e,r,i,n);return _8(a),a},dh=function(e){var r=new Cd(e);return _8(r),r},sm=function(e,r){return e instanceof Cd?pt([],[e],r):e},T6e=function(e){if(e.positionType==="individualShift"){for(var r=e.children,i=[r[0]],n=-r[0].shift-r[0].elem.depth,a=n,s=1;s{var r=pt(["mspace"],[],e),i=pn(t,e);return r.style.marginRight=kt(i),r},Vk=function(e,r,i){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var a;return r==="textbf"&&i==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},f8={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},VU={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},WU=function(e,r){var[i,n,a]=VU[e],s=new Gc(i),o=new Kl([s],{width:kt(n),height:kt(a),style:"width:"+kt(n),viewBox:"0 0 "+1e3*n+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=Ad(["overlay"],[o],r);return l.height=a,l.style.height=kt(a),l.style.width=kt(n),l},fn={number:3,unit:"mu"},_p={number:4,unit:"mu"},lh={number:5,unit:"mu"},k6e={mord:{mop:fn,mbin:_p,mrel:lh,minner:fn},mop:{mord:fn,mop:fn,mrel:lh,minner:fn},mbin:{mord:_p,mop:_p,mopen:_p,minner:_p},mrel:{mord:lh,mop:lh,mopen:lh,minner:lh},mopen:{},mclose:{mop:fn,mbin:_p,mrel:lh,minner:fn},mpunct:{mord:fn,mop:fn,mrel:lh,mopen:fn,mclose:fn,mpunct:fn,minner:fn},minner:{mord:fn,mop:fn,mbin:_p,mrel:lh,mopen:fn,mpunct:fn,minner:fn}},w6e={mord:{mop:fn},mop:{mord:fn,mop:fn},mbin:{},mrel:{},mopen:{},mclose:{mop:fn},mpunct:{},minner:{mop:fn}},UU={},Jk={},ew={};tw=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},zn=function(e){return e.type==="ordgroup"?e.body:[e]},C6e=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),E6e=new Set(["rightmost","mrel","mclose","mpunct"]),S6e={display:Tr.DISPLAY,text:Tr.TEXT,script:Tr.SCRIPT,scriptscript:Tr.SCRIPTSCRIPT},A6e={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Jn=function(e,r,i,n){n===void 0&&(n=[null,null]);for(var a=[],s=0;s{var y=m.classes[0],v=g.classes[0];y==="mbin"&&E6e.has(v)?m.classes[0]="mord":v==="mbin"&&C6e.has(y)&&(g.classes[0]="mord")},{node:d},f,p),p8(a,(g,m)=>{var y,v,b=m8(m),T=m8(g),C=b&&T?g.hasClass("mtight")?(y=w6e[b])==null?void 0:y[T]:(v=k6e[b])==null?void 0:v[T]:null;if(C)return GU(C,u)},{node:d},f,p),a},p8=function(e,r,i,n,a){n&&e.push(n);for(var s=0;sf=>{e.splice(d+1,0,f),s++})(s)}n&&e.pop()},HU=function(e){return e instanceof Cd||e instanceof nm||e instanceof Sd&&e.hasClass("enclosing")?e:null},g8=function(e,r){var i=HU(e);if(i){var n=i.children;if(n.length){if(r==="right")return g8(n[n.length-1],"right");if(r==="left")return g8(n[0],"left")}}return e},m8=function(e,r){if(!e)return null;r&&(e=g8(e,r));var i=e.classes[0];return A6e[i]||null},f2=function(e,r){var i=["nulldelimiter"].concat(e.baseSizingClasses());return pt(r.concat(i))},di=function(e,r,i){if(!e)return pt();if(Jk[e.type]){var n=Jk[e.type](e,r);if(i&&r.size!==i.size){n=pt(r.sizingClasses(i),[n],r);var a=r.sizeMultiplier/i.sizeMultiplier;n.height*=a,n.depth*=a}return n}else throw new yt("Got group of unknown type: '"+e.type+"'")};vt=class{constructor(e,r,i){this.type=e,this.attributes={},this.children=r||[],this.classes=i||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=Ed(this.classes));for(var i=0;i0&&(e+=' class ="'+rs(Ed(this.classes))+'"'),e+=">";for(var i=0;i",e}toText(){return this.children.map(e=>e.toText()).join("")}},Tn=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return rs(this.toText())}toText(){return this.text}},rw=class{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",kt(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},_6e=new Set(["\\imath","\\jmath"]),L6e=new Set(["mrow","mtable"]),ul=function(e,r,i){return Zi[r][e]&&Zi[r][e].replace&&e.charCodeAt(0)!==55349&&!(zU.hasOwnProperty(e)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(e=Zi[r][e].replace),new Tn(e)},L8=function(e){return e.length===1?e[0]:new vt("mrow",e)},R8=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var i=r.font;if(!i||i==="mathnormal")return null;var n=e.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var a=e.text;if(_6e.has(a))return null;if(Zi[n][a]){var s=Zi[n][a].replace;s&&(a=s)}var o=f8[i].fontName;return S8(a,o,n)?f8[i].variant:null};No=function(e,r,i){if(e.length===1){var n=Mi(e[0],r);return i&&n instanceof vt&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Q_(s))){var u=l.children[0];u instanceof vt&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var h=s.children[0];if(h instanceof Tn&&h.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof Tn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),a.pop())}}}a.push(l),s=l}return a},_d=function(e,r,i){return L8(No(e,r,i))},Mi=function(e,r){if(!e)return new vt("mrow");if(ew[e.type]){var i=ew[e.type](e,r);return i}else throw new yt("Got group of unknown type: '"+e.type+"'")};R6e=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],hU=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],dU=function(e,r){return r.size<2?e:R6e[e-1][r.size-1]},iw=class t{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=hU[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,e),new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:dU(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:hU[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=dU(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=p6e(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};iw.BASESIZE=6;XU=function(e){return new iw({style:e.displayMode?Tr.DISPLAY:Tr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},jU=function(e,r){if(r.displayMode){var i=["katex-display"];r.leqno&&i.push("leqno"),r.fleqn&&i.push("fleqn"),e=pt(i,[e])}return e},I6e=function(e,r,i){var n=XU(i),a;if(i.output==="mathml")return uU(e,r,n,i.displayMode,!0);if(i.output==="html"){var s=y8(e,n);a=pt(["katex"],[s])}else{var o=uU(e,r,n,i.displayMode,!1),l=y8(e,n);a=pt(["katex"],[o,l])}return jU(a,i)},D6e=function(e,r,i){var n=XU(i),a=y8(e,n),s=pt(["katex"],[a]);return jU(s,i)},M6e={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},lw=function(e){var r=new vt("mo",[new Tn(M6e[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},N6e={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},O6e=new Set(["widehat","widecheck","widetilde","utilde"]),cw=function(e,r){function i(){var o=4e5,l=e.label.slice(1);if(O6e.has(l)){var u=e,h=u.base.type==="ordgroup"?u.base.body.length:1,d,f,p;if(h>5)l==="widehat"||l==="widecheck"?(d=420,o=2364,p=.42,f=l+"4"):(d=312,o=2340,p=.34,f="tilde4");else{var g=[1,1,2,2,3,3][h];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],f=l+g):(o=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var m=new Gc(f),y=new Kl([m],{width:"100%",height:kt(p),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:Ad([],[y],r),minWidth:0,height:p}}else{var v=[],b=N6e[l],[T,C,k]=b,w=k/1e3,E=T.length,S,R;if(E===1){var M=b[3];S=["hide-tail"],R=[M]}else if(E===2)S=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(E===3)S=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+E+" children.");for(var N=0;N0&&(n.style.minWidth=kt(a)),n},P6e=function(e,r,i,n,a){var s,o=e.height+e.depth+i+n;if(/fbox|color|angl/.test(r)){if(s=pt(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new d2({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new d2({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new Kl(u,{width:"100%",height:kt(o)});s=Ad([],[h],a)}return s.height=o,s.style.height=kt(o),s};KU=t=>{if(t instanceof Es)return t;if(f6e(t)&&t.children.length===1)return KU(t.children[0])},I8=(t,e)=>{var r,i,n;t&&t.type==="supsub"?(i=Nr(t.base,"accent"),r=i.base,t.base=r,n=d6e(di(t,e)),t.base=i):(i=Nr(t,"accent"),r=i.base);var a=di(r,e.havingCrampedStyle()),s=i.isShifty&&uh(r),o=0;if(s){var l,u;o=(l=(u=KU(a))==null?void 0:u.skew)!=null?l:0}var h=i.label==="\\c",d=h?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),f;if(i.isStretchy)f=cw(i,e),f=hi({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+kt(2*o)+")",marginLeft:kt(2*o)}:void 0}]});else{var p,g;i.label==="\\vec"?(p=WU("vec",e),g=VU.vec[1]):(p=ow({type:"textord",mode:i.mode,text:i.label},e,"textord"),p=h6e(p),p.italic=0,g=p.width,h&&(d+=p.depth)),f=pt(["accent-body"],[p]);var m=i.label==="\\textcircled";m&&(f.classes.push("accent-full"),d=a.height);var y=o;m||(y-=g/2),f.style.left=kt(y),i.label==="\\textcircled"&&(f.style.top=".2em"),f=hi({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:f}]})}var v=pt(["mord","accent"],[f],e);return n?(n.children[0]=v,n.height=Math.max(v.height,n.height),n.classes[0]="mord",n):v},ZU=(t,e)=>{var r=t.isStretchy?lw(t.label):new vt("mo",[ul(t.label,t.mode)]),i=new vt("mover",[Mi(t.base,e),r]);return i.setAttribute("accent","true"),i},B6e=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));Rt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var r=tw(e[0]),i=!B6e.test(t.funcName),n=!i||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:i,isShifty:n,base:r}},htmlBuilder:I8,mathmlBuilder:ZU});Rt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],i=t.parser.mode;return i==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:I8,mathmlBuilder:ZU});Rt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=e[0];return{type:"accentUnder",mode:r.mode,label:i,base:n}},htmlBuilder:(t,e)=>{var r=di(t.base,e),i=cw(t,e),n=t.label==="\\utilde"?.12:0,a=hi({positionType:"top",positionData:r.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return pt(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=lw(t.label),i=new vt("munder",[Mi(t.base,e),r]);return i.setAttribute("accentunder","true"),i}});Uk=t=>{var e=new vt("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};Rt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:i,funcName:n}=t;return{type:"xArrow",mode:i.mode,label:n,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,i=e.havingStyle(r.sup()),n=sm(di(t.body,i,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(a+"-arrow-pad");var s;t.below&&(i=e.havingStyle(r.sub()),s=sm(di(t.below,i,e),e),s.classes.push(a+"-arrow-pad"));var o=cw(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(n.depth>.25||t.label==="\\xleftequilibrium")&&(u-=n.depth);var h;if(s){var d=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;h=hi({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:d}]})}else h=hi({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:o,shift:l}]});return h.children[0].children[0].children[1].classes.push("svg-align"),pt(["mrel","x-arrow"],[h],e)},mathmlBuilder(t,e){var r=lw(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(t.body){var n=Uk(Mi(t.body,e));if(t.below){var a=Uk(Mi(t.below,e));i=new vt("munderover",[r,a,n])}else i=new vt("mover",[r,n])}else if(t.below){var s=Uk(Mi(t.below,e));i=new vt("munder",[r,s])}else i=Uk(),i=new vt("mover",[r,i]);return i}});Rt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:i}=t,n=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+i.slice(5),body:zn(n),isCharacterBox:uh(n)}},htmlBuilder:QU,mathmlBuilder:JU});dw=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};Rt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:dw(e[0]),body:zn(e[1]),isCharacterBox:uh(e[1])}}});Rt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:i}=t,n=e[1],a=e[0],s;i!=="\\stackrel"?s=dw(n):s="mrel";var o={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:zn(n)},l={type:"supsub",mode:a.mode,base:o,sup:i==="\\underset"?null:a,sub:i==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:uh(l)}},htmlBuilder:QU,mathmlBuilder:JU});Rt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:dw(e[0]),body:zn(e[0])}},htmlBuilder(t,e){var r=Jn(t.body,e,!0),i=pt([t.mclass],r,e);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(t,e){var r=No(t.body,e),i=new vt("mstyle",r);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});F6e={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fU=()=>({type:"styling",body:[],mode:"math",style:"display"}),pU=t=>t.type==="textord"&&t.text==="@",$6e=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;Rt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:i}=t;return{type:"cdlabel",mode:r.mode,side:i.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),i=sm(di(t.label,r,e),e);return i.classes.push("cd-label-"+t.side),i.style.bottom=kt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(t,e){var r=new vt("mrow",[Mi(t.label,e)]);return r=new vt("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new vt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Rt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=sm(di(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new vt("mrow",[Mi(t.fragment,e)])}});Rt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,i=Nr(e[0],"ordgroup"),n=i.body,a="",s=0;s=1114111)throw new yt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});eH=(t,e)=>{var r=Jn(t.body,e.withColor(t.color),!1);return dh(r)},tH=(t,e)=>{var r=No(t.body,e.withColor(t.color)),i=new vt("mstyle",r);return i.setAttribute("mathcolor",t.color),i};Rt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,i=Nr(e[0],"color-token").color,n=e[1];return{type:"color",mode:r.mode,color:i,body:zn(n)}},htmlBuilder:eH,mathmlBuilder:tH});Rt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:i}=t,n=Nr(e[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var a=r.parseExpression(!0,i);return{type:"color",mode:r.mode,color:n,body:a}},htmlBuilder:eH,mathmlBuilder:tH});Rt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:i}=t,n=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,a=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:a,size:n&&Nr(n,"size").value}},htmlBuilder(t,e){var r=pt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=kt(pn(t.size,e)))),r},mathmlBuilder(t,e){var r=new vt("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",kt(pn(t.size,e)))),r}});v8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},rH=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new yt("Expected a control sequence",t);return e},G6e=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},iH=(t,e,r,i)=>{var n=t.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,n,i)};Rt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var i=e.fetch();if(v8[i.text])return(r==="\\global"||r==="\\\\globallong")&&(i.text=v8[i.text]),Nr(e.parseFunction(),"internal");throw new yt("Invalid token after macro prefix",i)}});Rt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,i=e.gullet.popToken(),n=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new yt("Expected a control sequence",i);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(i=e.gullet.popToken(),i.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(i=e.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new yt('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==a+1)throw new yt('Argument number "'+i.text+'" out of order');a++,o.push([])}else{if(i.text==="EOF")throw new yt("Expected a macro definition");o[a].push(i.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(n,{tokens:l,numArgs:a,delimiters:o},r===v8[r]),{type:"internal",mode:e.mode}}});Rt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,i=rH(e.gullet.popToken());e.gullet.consumeSpaces();var n=G6e(e);return iH(e,i,n,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});Rt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,i=rH(e.gullet.popToken()),n=e.gullet.popToken(),a=e.gullet.popToken();return iH(e,i,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});l2=function(e,r,i){var n=Zi.math[e]&&Zi.math[e].replace,a=S8(n||e,r,i);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},D8=function(e,r,i,n){var a=i.havingBaseStyle(r),s=pt(n.concat(a.sizingClasses(i)),[e],i),o=a.sizeMultiplier/i.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},nH=function(e,r,i){var n=r.havingBaseStyle(i),a=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=kt(a),e.height-=a,e.depth+=a},V6e=function(e,r,i,n,a,s){var o=ws(e,"Main-Regular",a,n),l=D8(o,r,n,s);return i&&nH(l,n,r),l},W6e=function(e,r,i,n){return ws(e,"Size"+r+"-Regular",i,n)},aH=function(e,r,i,n,a,s){var o=W6e(e,r,a,n),l=D8(pt(["delimsizing","size"+r],[o],n),Tr.TEXT,n,s);return i&&nH(l,n,Tr.TEXT),l},J_=function(e,r,i){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var a=pt(["delimsizinginner",n],[pt([],[ws(e,r,i)])]);return{type:"elem",elem:a}},e8=function(e,r,i){var n=qc["Size4-Regular"][e.charCodeAt(0)]?qc["Size4-Regular"][e.charCodeAt(0)][4]:qc["Size1-Regular"][e.charCodeAt(0)][4],a=new Gc("inner",s6e(e,Math.round(1e3*r))),s=new Kl([a],{width:kt(n),height:kt(r),style:"width:"+kt(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=Ad([],[s],i);return o.height=r,o.style.height=kt(r),o.style.width=kt(n),{type:"elem",elem:o}},x8=.008,Hk={type:"kern",size:-1*x8},U6e=new Set(["|","\\lvert","\\rvert","\\vert"]),H6e=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),sH=function(e,r,i,n,a,s){var o,l,u,h,d="",f=0;o=u=h=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=h="\u23D0":e==="\\Uparrow"?u=h="\u2016":e==="\\downarrow"?o=u="\u23D0":e==="\\Downarrow"?o=u="\u2016":e==="\\updownarrow"?(o="\\uparrow",u="\u23D0",h="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="\u2016",h="\\Downarrow"):U6e.has(e)?(u="\u2223",d="vert",f=333):H6e.has(e)?(u="\u2225",d="doublevert",f=556):e==="["||e==="\\lbrack"?(o="\u23A1",u="\u23A2",h="\u23A3",p="Size4-Regular",d="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="\u23A4",u="\u23A5",h="\u23A6",p="Size4-Regular",d="rbrack",f=667):e==="\\lfloor"||e==="\u230A"?(u=o="\u23A2",h="\u23A3",p="Size4-Regular",d="lfloor",f=667):e==="\\lceil"||e==="\u2308"?(o="\u23A1",u=h="\u23A2",p="Size4-Regular",d="lceil",f=667):e==="\\rfloor"||e==="\u230B"?(u=o="\u23A5",h="\u23A6",p="Size4-Regular",d="rfloor",f=667):e==="\\rceil"||e==="\u2309"?(o="\u23A4",u=h="\u23A5",p="Size4-Regular",d="rceil",f=667):e==="("||e==="\\lparen"?(o="\u239B",u="\u239C",h="\u239D",p="Size4-Regular",d="lparen",f=875):e===")"||e==="\\rparen"?(o="\u239E",u="\u239F",h="\u23A0",p="Size4-Regular",d="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="\u23A7",l="\u23A8",h="\u23A9",u="\u23AA",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="\u23AB",l="\u23AC",h="\u23AD",u="\u23AA",p="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(o="\u23A7",h="\u23A9",u="\u23AA",p="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(o="\u23AB",h="\u23AD",u="\u23AA",p="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(o="\u23A7",h="\u23AD",u="\u23AA",p="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(o="\u23AB",h="\u23A9",u="\u23AA",p="Size4-Regular");var g=l2(o,p,a),m=g.height+g.depth,y=l2(u,p,a),v=y.height+y.depth,b=l2(h,p,a),T=b.height+b.depth,C=0,k=1;if(l!==null){var w=l2(l,p,a);C=w.height+w.depth,k=2}var E=m+T+C,S=Math.max(0,Math.ceil((r-E)/(k*v))),R=E+S*k*v,M=n.fontMetrics().axisHeight;i&&(M*=n.sizeMultiplier);var N=R/2-M,A=[];if(d.length>0){var L=R-m-T,_=Math.round(R*1e3),I=o6e(d,Math.round(L*1e3)),D=new Gc(d,I),P=kt(f/1e3),O=kt(_/1e3),F=new Kl([D],{width:P,height:O,viewBox:"0 0 "+f+" "+_}),$=Ad([],[F],n);$.height=_/1e3,$.style.width=P,$.style.height=O,A.push({type:"elem",elem:$})}else{if(A.push(J_(h,p,a)),A.push(Hk),l===null){var B=R-m-T+2*x8;A.push(e8(u,B,n))}else{var G=(R-m-T-C)/2+2*x8;A.push(e8(u,G,n)),A.push(Hk),A.push(J_(l,p,a)),A.push(Hk),A.push(e8(u,G,n))}A.push(Hk),A.push(J_(o,p,a))}var H=n.havingBaseStyle(Tr.TEXT),X=hi({positionType:"bottom",positionData:N,children:A});return D8(pt(["delimsizing","mult"],[X],H),Tr.TEXT,n,s)},t8=80,r8=.08,i8=function(e,r,i,n,a){var s=a6e(e,n,i),o=new Gc(e,s),l=new Kl([o],{width:"400em",height:kt(r),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Ad(["hide-tail"],[l],a)},Y6e=function(e,r){var i=r.havingBaseSizing(),n=hH("\\surd",e*i.sizeMultiplier,uH,i),a=i.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,h=0,d;return n.type==="small"?(h=1e3+1e3*s+t8,e<1?a=1:e<1.4&&(a=.7),l=(1+s+r8)/a,u=(1+s)/a,o=i8("sqrtMain",l,h,s,r),o.style.minWidth="0.853em",d=.833/a):n.type==="large"?(h=(1e3+t8)*c2[n.size],u=(c2[n.size]+s)/a,l=(c2[n.size]+s+r8)/a,o=i8("sqrtSize"+n.size,l,h,s,r),o.style.minWidth="1.02em",d=1/a):(l=e+s+r8,u=e+s,h=Math.floor(1e3*e+s)+t8,o=i8("sqrtTall",l,h,s,r),o.style.minWidth="0.742em",d=1.056),o.height=u,o.style.height=kt(l),{span:o,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},oH=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),X6e=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),lH=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),c2=[0,1.2,1.8,2.4,3],cH=function(e,r,i,n,a){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),oH.has(e)||lH.has(e))return aH(e,r,!1,i,n,a);if(X6e.has(e))return sH(e,c2[r],!1,i,n,a);throw new yt("Illegal delimiter: '"+e+"'")},j6e=[{type:"small",style:Tr.SCRIPTSCRIPT},{type:"small",style:Tr.SCRIPT},{type:"small",style:Tr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],K6e=[{type:"small",style:Tr.SCRIPTSCRIPT},{type:"small",style:Tr.SCRIPT},{type:"small",style:Tr.TEXT},{type:"stack"}],uH=[{type:"small",style:Tr.SCRIPTSCRIPT},{type:"small",style:Tr.SCRIPT},{type:"small",style:Tr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Z6e=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},hH=function(e,r,i,n){for(var a=Math.min(2,3-n.style.size),s=a;sr)return o}return i[i.length-1]},b8=function(e,r,i,n,a,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var o;lH.has(e)?o=j6e:oH.has(e)?o=uH:o=K6e;var l=hH(e,r,o,n);return l.type==="small"?V6e(e,l.style,i,n,a,s):l.type==="large"?aH(e,l.size,i,n,a,s):sH(e,r,i,n,a,s)},n8=function(e,r,i,n,a,s){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,u=5/n.fontMetrics().ptPerEm,h=Math.max(r-o,i+o),d=Math.max(h/500*l,2*h-u);return b8(e,d,!0,n,a,s)},gU={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Q6e=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);Rt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var r=fw(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:gU[t.funcName].size,mclass:gU[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?pt([t.mclass]):cH(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(ul(t.delim,t.mode));var r=new vt("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var i=kt(c2[t.size]);return r.setAttribute("minsize",i),r.setAttribute("maxsize",i),r}});Rt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new yt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:fw(e[0],t).text,color:r}}});Rt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=fw(e[0],t),i=t.parser;++i.leftrightDepth;var n=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var a=Nr(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:n,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{mU(t);for(var r=Jn(t.body,e,!0,["mopen","mclose"]),i=0,n=0,a=!1,s=0;s{mU(t);var r=No(t.body,e);if(t.left!=="."){var i=new vt("mo",[ul(t.left,t.mode)]);i.setAttribute("fence","true"),r.unshift(i)}if(t.right!=="."){var n=new vt("mo",[ul(t.right,t.mode)]);n.setAttribute("fence","true"),t.rightColor&&n.setAttribute("mathcolor",t.rightColor),r.push(n)}return L8(r)}});Rt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=fw(e[0],t);if(!t.parser.leftrightDepth)throw new yt("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=f2(e,[]);else{r=cH(t.delim,1,e,t.mode,[]);var i={delim:t.delim,options:e};r.isMiddle=i}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?ul("|","text"):ul(t.delim,t.mode),i=new vt("mo",[r]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});pw=(t,e)=>{var r=sm(di(t.body,e),e),i=t.label.slice(1),n=e.sizeMultiplier,a,s=0,o=uh(t.body);if(i==="sout")a=pt(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/n,s=-.5*e.fontMetrics().xHeight;else if(i==="phase"){var l=pn({number:.6,unit:"pt"},e),u=pn({number:.35,unit:"ex"},e),h=e.havingBaseSizing();n=n/h.sizeMultiplier;var d=r.height+r.depth+l+u;r.style.paddingLeft=kt(d/2+l);var f=Math.floor(1e3*d*n),p=i6e(f),g=new Kl([new Gc("phase",p)],{width:"400em",height:kt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=Ad(["hide-tail"],[g],e),a.style.height=kt(d),s=r.depth+l+u}else{/cancel/.test(i)?o||r.classes.push("cancel-pad"):i==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m=0,y=0,v=0;/box/.test(i)?(v=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(i==="colorbox"?0:v),y=m):i==="angl"?(v=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*v,y=Math.max(0,.25-r.depth)):(m=o?.2:0,y=m),a=P6e(r,i,m,y,e),/fbox|boxed|fcolorbox/.test(i)?(a.style.borderStyle="solid",a.style.borderWidth=kt(v)):i==="angl"&&v!==.049&&(a.style.borderTopWidth=kt(v),a.style.borderRightWidth=kt(v)),s=r.depth+y,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=hi({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var T=/cancel|phase/.test(i)?["svg-align"]:[];b=hi({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:T}]})}return/cancel/.test(i)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(i)&&!o?pt(["mord","cancel-lap"],[b],e):pt(["mord"],[b],e)},gw=(t,e)=>{var r=0,i=new vt(t.label.includes("colorbox")?"mpadded":"menclose",[Mi(t.body,e)]);switch(t.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*r+"pt"),i.setAttribute("height","+"+2*r+"pt"),i.setAttribute("lspace",r+"pt"),i.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);i.setAttribute("style","border: "+kt(n)+" solid "+t.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&i.setAttribute("mathbackground",t.backgroundColor),i};Rt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:i,funcName:n}=t,a=Nr(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:i.mode,label:n,backgroundColor:a,body:s}},htmlBuilder:pw,mathmlBuilder:gw});Rt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:i,funcName:n}=t,a=Nr(e[0],"color-token").color,s=Nr(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:i.mode,label:n,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:pw,mathmlBuilder:gw});Rt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});Rt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:i}=t,n=e[0];return{type:"enclose",mode:r.mode,label:i,body:n}},htmlBuilder:pw,mathmlBuilder:gw});Rt({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r,funcName:i}=t;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=e[0];return{type:"enclose",mode:r.mode,label:i,body:n}},htmlBuilder:pw,mathmlBuilder:gw});Rt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});dH={};fH={};Qs=class t{constructor(e,r,i){this.lexer=e,this.start=r,this.end=i}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new t(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},Do=class t{constructor(e,r){this.text=e,this.loc=r}range(e,r){return new t(r,Qs.range(this,e))}};mw=t=>{var e=t.parser.settings;if(!e.displayMode)throw new yt("{"+t.envName+"} can be used only in display mode.")},J6e=new Set(["gather","gather*"]);Wc=function(e,r){var i,n,a=e.body.length,s=e.hLinesBeforeRow,o=0,l=new Array(a),u=[],h=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,f=5*d;if(e.colSeparationType&&e.colSeparationType==="small"){var p=r.havingStyle(Tr.SCRIPT).sizeMultiplier;f=.2778*(p/r.sizeMultiplier)}var g=e.colSeparationType==="CD"?pn({number:3,unit:"ex"},r):12*d,m=3*d,y=e.arraystretch*g,v=.7*y,b=.3*y,T=0;function C(He){for(var K=0;K0&&(T+=.25),u.push({pos:T,isDashed:He[K]})}for(C(s[0]),i=0;i0&&(N+=b,EHe))for(i=0;i=o)){var J=void 0;if(n>0||e.hskipBeforeAndAfter){var te,re;J=(te=(re=H)==null?void 0:re.pregap)!=null?te:f,J!==0&&(I=pt(["arraycolsep"],[]),I.style.width=kt(J),_.push(I))}var ee=[];for(i=0;i0){for(var fe=am("hline",r,h),Qe=am("hdashline",r,h),Te=[{type:"elem",elem:$e,shift:0}];u.length>0;){var Fe=u.pop(),Ue=Fe.pos-A;Fe.isDashed?Te.push({type:"elem",elem:Qe,shift:Ue}):Te.push({type:"elem",elem:fe,shift:Ue})}$e=hi({positionType:"individualShift",children:Te})}if(P.length===0)return pt(["mord"],[$e],r);var Ge=hi({positionType:"individualShift",children:P}),Me=pt(["tag"],[Ge],r);return dh([$e,Me])},eAe={c:"center ",l:"left ",r:"right "},Uc=function(e,r){for(var i=[],n=new vt("mtd",[],["mtr-glue"]),a=new vt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",y=!1,v=0,b=g.length;g[0].type==="separator"&&(f+="top ",v=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var T=v;T0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var M=1;M0&&p&&(y=1),i[g]={type:"align",align:m,pregap:y,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Vc({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=hw(e[0]),i=r?[e[0]]:Nr(e[0],"ordgroup").body,n=i.map(function(s){var o=uw(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new yt("Unknown column alignment: "+l,s)}),a={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ld(t.parser,a,N8(t.envName))},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var n=t.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,!"lcr".includes(r))throw new yt("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),i.cols=[{type:"align",align:r}]}}var a=Ld(t.parser,i,N8(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Ld(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=hw(e[0]),i=r?[e[0]]:Nr(e[0],"ordgroup").body,n=i.map(function(o){var l=uw(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new yt("Unknown column alignment: "+u,o)});if(n.length>1)throw new yt("{subarray} can contain only one column");var a={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ld(t.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new yt("{subarray} can contain only one column");return s},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Ld(t.parser,e,N8(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:pH,htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){J6e.has(t.envName)&&mw(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:M8(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Ld(t.parser,e,"display")},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:pH,htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){mw(t);var e={autoTag:M8(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Ld(t.parser,e,"display")},htmlBuilder:Wc,mathmlBuilder:Uc});Vc({type:"array",names:["CD"],props:{numArgs:0},handler(t){return mw(t),q6e(t.parser)},htmlBuilder:Wc,mathmlBuilder:Uc});he("\\nonumber","\\gdef\\@eqnsw{0}");he("\\notag","\\nonumber");Rt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new yt(t.funcName+" valid only within array environment")}});vU=dH;Rt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:i}=t,n=e[0];if(n.type!=="ordgroup")throw new yt("Invalid environment name",n);for(var a="",s=0;s{var r=t.font,i=e.withFont(r);return di(t.body,i)},mH=(t,e)=>{var r=t.font,i=e.withFont(r);return Mi(t.body,i)},xU={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Rt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=tw(e[0]),a=i;return a in xU&&(a=xU[a]),{type:"font",mode:r.mode,font:a.slice(1),body:n}},htmlBuilder:gH,mathmlBuilder:mH});Rt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:dw(i),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:i}],isCharacterBox:uh(i)}}});Rt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:i,breakOnTokenText:n}=t,{mode:a}=r,s=r.parseExpression(!0,n),o="math"+i.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:gH,mathmlBuilder:mH});tAe=(t,e)=>{var r=e.style,i=r.fracNum(),n=r.fracDen(),a;a=e.havingStyle(i);var s=di(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*f:g=7*f,m=e.fontMetrics().denom1):(d>0?(p=e.fontMetrics().num2,g=f):(p=e.fontMetrics().num3,g=3*f),m=e.fontMetrics().denom2);var y;if(h){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*d){var r=new vt("mfrac",[Mi(t.numer,e),Mi(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var i=pn(t.barSize,e);r.setAttribute("linethickness",kt(i))}if(t.leftDelim!=null||t.rightDelim!=null){var n=[];if(t.leftDelim!=null){var a=new vt("mo",[new Tn(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}if(n.push(r),t.rightDelim!=null){var s=new vt("mo",[new Tn(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),n.push(s)}return L8(n)}return r},yH=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};Rt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=e[0],a=e[1],s,o=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=i==="\\cfrac",h=null;return u||i.startsWith("\\d")?h="display":i.startsWith("\\t")&&(h="text"),yH({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},h)},htmlBuilder:tAe,mathmlBuilder:rAe});Rt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:i}=t,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:i}}});bU=["display","text","script","scriptscript"],TU=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};Rt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,i=e[4],n=e[5],a=tw(e[0]),s=a.type==="atom"&&a.family==="open"?TU(a.text):null,o=tw(e[1]),l=o.type==="atom"&&o.family==="close"?TU(o.text):null,u=Nr(e[2],"size"),h,d=null;u.isBlank?h=!0:(d=u.value,h=d.number>0);var f=null,p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=Nr(p.body[0],"textord");f=bU[Number(g.text)]}}else p=Nr(p,"textord"),f=bU[Number(p.text)];return yH({type:"genfrac",mode:r.mode,numer:i,denom:n,continued:!1,hasBarLine:h,barSize:d,leftDelim:s,rightDelim:l},f)}});Rt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:i,token:n}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Nr(e[0],"size").value,token:n}}});Rt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=e[0],a=Nr(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});vH=(t,e)=>{var r=e.style,i,n;t.type==="supsub"?(i=t.sup?di(t.sup,e.havingStyle(r.sup()),e):di(t.sub,e.havingStyle(r.sub()),e),n=Nr(t.base,"horizBrace")):n=Nr(t,"horizBrace");var a=di(n.base,e.havingBaseStyle(Tr.DISPLAY)),s=cw(n,e),o;if(n.isOver?(o=hi({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=hi({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),i){var l=pt(["minner",n.isOver?"mover":"munder"],[o],e);n.isOver?o=hi({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:i}]}):o=hi({positionType:"bottom",positionData:l.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:l}]})}return pt(["minner",n.isOver?"mover":"munder"],[o],e)},iAe=(t,e)=>{var r=lw(t.label);return new vt(t.isOver?"mover":"munder",[Mi(t.base,e),r])};Rt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:i}=t;return{type:"horizBrace",mode:r.mode,label:i,isOver:i.includes("\\over"),base:e[0]}},htmlBuilder:vH,mathmlBuilder:iAe});Rt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,i=e[1],n=Nr(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:zn(i)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Jn(t.body,e,!1);return b6e(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=_d(t.body,e);return r instanceof vt||(r=new vt("mrow",[r])),r.setAttribute("href",t.href),r}});Rt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,i=Nr(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:i}))return r.formatUnsupportedCmd("\\url");for(var n=[],a=0;a{var{parser:r,funcName:i,token:n}=t,a=Nr(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(i){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),h=0;h{var r=Jn(t.body,e,!1),i=["enclosing"];t.attributes.class&&i.push(...t.attributes.class.trim().split(/\s+/));var n=pt(i,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&n.setAttribute(a,t.attributes[a]);return n},mathmlBuilder:(t,e)=>_d(t.body,e)});Rt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:zn(e[0]),mathml:zn(e[1])}},htmlBuilder:(t,e)=>{var r=Jn(t.html,e,!1);return dh(r)},mathmlBuilder:(t,e)=>_d(t.mathml,e)});a8=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new yt("Invalid size: '"+e+"' in \\includegraphics");var i={number:+(r[1]+r[2]),unit:r[3]};if(!OU(i))throw new yt("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Rt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:i}=t,n={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=Nr(r[0],"raw").string,u=l.split(","),h=0;h{var r=pn(t.height,e),i=0;t.totalheight.number>0&&(i=pn(t.totalheight,e)-r);var n=0;t.width.number>0&&(n=pn(t.width,e));var a={height:kt(r+i)};n>0&&(a.width=kt(n)),i>0&&(a.verticalAlign=kt(-i));var s=new h8(t.src,t.alt,a);return s.height=r,s.depth=i,s},mathmlBuilder:(t,e)=>{var r=new vt("mglyph",[]);r.setAttribute("alt",t.alt);var i=pn(t.height,e),n=0;if(t.totalheight.number>0&&(n=pn(t.totalheight,e)-i,r.setAttribute("valign",kt(-n))),r.setAttribute("height",kt(i+n)),t.width.number>0){var a=pn(t.width,e);r.setAttribute("width",kt(a))}return r.setAttribute("src",t.src),r}});Rt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:i}=t,n=Nr(e[0],"size");if(r.settings.strict){var a=i[1]==="m",s=n.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(t,e){return GU(t.dimension,e)},mathmlBuilder(t,e){var r=pn(t.dimension,e);return new rw(r)}});Rt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=e[0];return{type:"lap",mode:r.mode,alignment:i.slice(5),body:n}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=pt([],[di(t.body,e)]),r=pt(["inner"],[r],e)):r=pt(["inner"],[di(t.body,e)]);var i=pt(["fix"],[]),n=pt([t.alignment],[r,i],e),a=pt(["strut"]);return a.style.height=kt(n.height+n.depth),n.depth&&(a.style.verticalAlign=kt(-n.depth)),n.children.unshift(a),n=pt(["thinbox"],[n],e),pt(["mord","vbox"],[n],e)},mathmlBuilder:(t,e)=>{var r=new vt("mpadded",[Mi(t.body,e)]);if(t.alignment!=="rlap"){var i=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",i+"width")}return r.setAttribute("width","0px"),r}});Rt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:i}=t,n=i.mode;i.switchMode("math");var a=r==="\\("?"\\)":"$",s=i.parseExpression(!1,a);return i.expect(a),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:s}}});Rt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new yt("Mismatched "+t.funcName)}});kU=(t,e)=>{switch(e.style.size){case Tr.DISPLAY.size:return t.display;case Tr.TEXT.size:return t.text;case Tr.SCRIPT.size:return t.script;case Tr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};Rt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:zn(e[0]),text:zn(e[1]),script:zn(e[2]),scriptscript:zn(e[3])}},htmlBuilder:(t,e)=>{var r=kU(t,e),i=Jn(r,e,!1);return dh(i)},mathmlBuilder:(t,e)=>{var r=kU(t,e);return _d(r,e)}});xH=(t,e,r,i,n,a,s)=>{t=pt([],[t]);var o=r&&uh(r),l,u;if(e){var h=di(e,i.havingStyle(n.sup()),i);u={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var d=di(r,i.havingStyle(n.sub()),i);l={elem:d,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-d.height)}}var f;if(u&&l){var p=i.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;f=hi({positionType:"bottom",positionData:p,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:kt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:kt(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=hi({positionType:"top",positionData:g,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:kt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=hi({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:kt(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return t;var y=[f];if(l&&a!==0&&!o){var v=pt(["mspace"],[],i);v.style.marginRight=kt(a),y.unshift(v)}return pt(["mop","op-limits"],y,i)},bH=new Set(["\\smallint"]),lm=(t,e)=>{var r,i,n=!1,a;t.type==="supsub"?(r=t.sup,i=t.sub,a=Nr(t.base,"op"),n=!0):a=Nr(t,"op");var s=e.style,o=!1;s.size===Tr.DISPLAY.size&&a.symbol&&!bH.has(a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),l=ws(a.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),h.length>0){var d=l.italic,f=WU(h+"Size"+(o?"2":"1"),e);l=hi({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+h,l.classes.unshift("mop"),l.italic=d}}else if(a.body){var p=Jn(a.body,e,!0);p.length===1&&p[0]instanceof Es?(l=p[0],l.classes[0]="mop"):l=pt(["mop"],p,e)}else{for(var g=[],m=1;m{var r;if(t.symbol)r=new vt("mo",[ul(t.name,t.mode)]),bH.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new vt("mo",No(t.body,e));else{r=new vt("mi",[new Tn(t.name.slice(1))]);var i=new vt("mo",[ul("\u2061","text")]);t.parentIsSupSub?r=new vt("mrow",[r,i]):r=YU([r,i])}return r},nAe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Rt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=i;return n.length===1&&(n=nAe[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:lm,mathmlBuilder:g2});Rt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,i=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:zn(i)}},htmlBuilder:lm,mathmlBuilder:g2});aAe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Rt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:lm,mathmlBuilder:g2});Rt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:lm,mathmlBuilder:g2});Rt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(t){var{parser:e,funcName:r}=t,i=r;return i.length===1&&(i=aAe[i]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:lm,mathmlBuilder:g2});TH=(t,e)=>{var r,i,n=!1,a;t.type==="supsub"?(r=t.sup,i=t.sub,a=Nr(t.base,"operatorname"),n=!0):a=Nr(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var f="text"in d?d.text:void 0;return typeof f=="string"?{type:"textord",mode:d.mode,text:f}:d}),l=Jn(o,e.withFont("mathrm"),!0),u=0;u{for(var r=No(t.body,e.withFont("mathrm")),i=!0,n=0;nh.toText()).join("");r=[new Tn(o)]}var l=new vt("mi",r);l.setAttribute("mathvariant","normal");var u=new vt("mo",[ul("\u2061","text")]);return t.parentIsSupSub?new vt("mrow",[l,u]):YU([l,u])};Rt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:i}=t,n=e[0];return{type:"operatorname",mode:r.mode,body:zn(n),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:TH,mathmlBuilder:sAe});he("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Lp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?dh(Jn(t.body,e,!1)):pt(["mord"],Jn(t.body,e,!0),e)},mathmlBuilder(t,e){return _d(t.body,e,!0)}});Rt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,i=e[0];return{type:"overline",mode:r.mode,body:i}},htmlBuilder(t,e){var r=di(t.body,e.havingCrampedStyle()),i=am("overline-line",e),n=e.fontMetrics().defaultRuleThickness,a=hi({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]});return pt(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new vt("mo",[new Tn("\u203E")]);r.setAttribute("stretchy","true");var i=new vt("mover",[Mi(t.body,e),r]);return i.setAttribute("accent","true"),i}});Rt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,i=e[0];return{type:"phantom",mode:r.mode,body:zn(i)}},htmlBuilder:(t,e)=>{var r=Jn(t.body,e.withPhantom(),!1);return dh(r)},mathmlBuilder:(t,e)=>{var r=No(t.body,e);return new vt("mphantom",r)}});he("\\hphantom","\\smash{\\phantom{#1}}");Rt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,i=e[0];return{type:"vphantom",mode:r.mode,body:i}},htmlBuilder:(t,e)=>{var r=pt(["inner"],[di(t.body,e.withPhantom())]),i=pt(["fix"],[]);return pt(["mord","rlap"],[r,i],e)},mathmlBuilder:(t,e)=>{var r=No(zn(t.body),e),i=new vt("mphantom",r),n=new vt("mpadded",[i]);return n.setAttribute("width","0px"),n}});Rt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,i=Nr(e[0],"size").value,n=e[1];return{type:"raisebox",mode:r.mode,dy:i,body:n}},htmlBuilder(t,e){var r=di(t.body,e),i=pn(t.dy,e);return hi({positionType:"shift",positionData:-i,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new vt("mpadded",[Mi(t.body,e)]),i=t.dy.number+t.dy.unit;return r.setAttribute("voffset",i),r}});Rt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});Rt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:i}=t,n=r[0],a=Nr(e[0],"size"),s=Nr(e[1],"size");return{type:"rule",mode:i.mode,shift:n&&Nr(n,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=pt(["mord","rule"],[],e),i=pn(t.width,e),n=pn(t.height,e),a=t.shift?pn(t.shift,e):0;return r.style.borderRightWidth=kt(i),r.style.borderTopWidth=kt(n),r.style.bottom=kt(a),r.width=i,r.height=n+a,r.depth=-a,r.maxFontSize=n*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=pn(t.width,e),i=pn(t.height,e),n=t.shift?pn(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new vt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",kt(r)),s.setAttribute("height",kt(i));var o=new vt("mpadded",[s]);return n>=0?o.setAttribute("height",kt(n)):(o.setAttribute("height",kt(n)),o.setAttribute("depth",kt(-n))),o.setAttribute("voffset",kt(n)),o}});wU=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],oAe=(t,e)=>{var r=e.havingSize(t.size);return kH(t.body,r,e)};Rt({type:"sizing",names:wU,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:i,parser:n}=t,a=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:wU.indexOf(i)+1,body:a}},htmlBuilder:oAe,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),i=No(t.body,r),n=new vt("mstyle",i);return n.setAttribute("mathsize",kt(r.sizeMultiplier)),n}});Rt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:i}=t,n=!1,a=!1,s=r[0]&&Nr(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=pt([],[di(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return pt(["mord","smash"],[r],e);if(r.children)for(var i=0;i{var r=new vt("mpadded",[Mi(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});Rt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:i}=t,n=r[0],a=e[0];return{type:"sqrt",mode:i.mode,body:a,index:n}},htmlBuilder(t,e){var r=di(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=sm(r,e);var i=e.fontMetrics(),n=i.defaultRuleThickness,a=n;e.style.idr.height+r.depth+s&&(s=(s+d-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=kt(h);var p=hi({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(t.index){var g=e.havingStyle(Tr.SCRIPTSCRIPT),m=di(t.index,g,e),y=.6*(p.height-p.depth),v=hi({positionType:"shift",positionData:-y,children:[{type:"elem",elem:m}]}),b=pt(["root"],[v]);return pt(["mord","sqrt"],[b,p],e)}else return pt(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:r,index:i}=t;return i?new vt("mroot",[Mi(r,e),Mi(i,e)]):new vt("msqrt",[Mi(r,e)])}});CU={display:Tr.DISPLAY,text:Tr.TEXT,script:Tr.SCRIPT,scriptscript:Tr.SCRIPTSCRIPT};Rt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:i,parser:n}=t,a=n.parseExpression(!0,r),s=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:s,body:a}},htmlBuilder(t,e){var r=CU[t.style],i=e.havingStyle(r).withFont("");return kH(t.body,i,e)},mathmlBuilder(t,e){var r=CU[t.style],i=e.havingStyle(r),n=No(t.body,i),a=new vt("mstyle",n),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});lAe=function(e,r){var i=e.base;if(i)if(i.type==="op"){var n=i.limits&&(r.style.size===Tr.DISPLAY.size||i.alwaysHandleSupSub);return n?lm:null}else if(i.type==="operatorname"){var a=i.alwaysHandleSupSub&&(r.style.size===Tr.DISPLAY.size||i.limits);return a?TH:null}else{if(i.type==="accent")return uh(i.base)?I8:null;if(i.type==="horizBrace"){var s=!e.sub;return s===i.isOver?vH:null}else return null}else return null};Lp({type:"supsub",htmlBuilder(t,e){var r=lAe(t,e);if(r)return r(t,e);var{base:i,sup:n,sub:a}=t,s=di(i,e),o,l,u=e.fontMetrics(),h=0,d=0,f=i&&uh(i);if(n){var p=e.havingStyle(e.style.sup());o=di(n,p,e),f||(h=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());l=di(a,g,e),f||(d=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Tr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var y=e.sizeMultiplier,v=kt(.5/u.ptPerEm/y),b=null;if(l){var T=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Es||T)&&(b=kt(-s.italic))}var C;if(o&&l){h=Math.max(h,m,o.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var k=u.defaultRuleThickness,w=4*k;if(h-o.depth-(l.height-d)0&&(h+=E,d-=E)}var S=[{type:"elem",elem:l,shift:d,marginRight:v,marginLeft:b},{type:"elem",elem:o,shift:-h,marginRight:v}];C=hi({positionType:"individualShift",children:S})}else if(l){d=Math.max(d,u.sub1,l.height-.8*u.xHeight);var R=[{type:"elem",elem:l,marginLeft:b,marginRight:v}];C=hi({positionType:"shift",positionData:d,children:R})}else if(o)h=Math.max(h,m,o.depth+.25*u.xHeight),C=hi({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:v}]});else throw new Error("supsub must have either sup or sub.");var M=m8(s,"right")||"mord";return pt([M],[s,pt(["msupsub"],[C])],e)},mathmlBuilder(t,e){var r=!1,i,n;t.base&&t.base.type==="horizBrace"&&(n=!!t.sup,n===t.base.isOver&&(r=!0,i=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[Mi(t.base,e)];t.sub&&a.push(Mi(t.sub,e)),t.sup&&a.push(Mi(t.sup,e));var s;if(r)s=i?"mover":"munder";else if(t.sub)if(t.sup){var u=t.base;u&&u.type==="op"&&u.limits&&e.style===Tr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Tr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Tr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Tr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Tr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Tr.DISPLAY)?s="mover":s="msup"}return new vt(s,a)}});Lp({type:"atom",htmlBuilder(t,e){return A8(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new vt("mo",[ul(t.text,t.mode)]);if(t.family==="bin"){var i=R8(t,e);i==="bold-italic"&&r.setAttribute("mathvariant",i)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});wH={mi:"italic",mn:"normal",mtext:"normal"};Lp({type:"mathord",htmlBuilder(t,e){return ow(t,e,"mathord")},mathmlBuilder(t,e){var r=new vt("mi",[ul(t.text,t.mode,e)]),i=R8(t,e)||"italic";return i!==wH[r.type]&&r.setAttribute("mathvariant",i),r}});Lp({type:"textord",htmlBuilder(t,e){return ow(t,e,"textord")},mathmlBuilder(t,e){var r=ul(t.text,t.mode,e),i=R8(t,e)||"normal",n;return t.mode==="text"?n=new vt("mtext",[r]):/[0-9]/.test(t.text)?n=new vt("mn",[r]):t.text==="\\prime"?n=new vt("mo",[r]):n=new vt("mi",[r]),i!==wH[n.type]&&n.setAttribute("mathvariant",i),n}});s8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},o8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Lp({type:"spacing",htmlBuilder(t,e){if(o8.hasOwnProperty(t.text)){var r=o8[t.text].className||"";if(t.mode==="text"){var i=ow(t,e,"textord");return i.classes.push(r),i}else return pt(["mspace",r],[A8(t.text,t.mode,e)],e)}else{if(s8.hasOwnProperty(t.text))return pt(["mspace",s8[t.text]],[],e);throw new yt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(o8.hasOwnProperty(t.text))r=new vt("mtext",[new Tn("\xA0")]);else{if(s8.hasOwnProperty(t.text))return new vt("mspace");throw new yt('Unknown type of space "'+t.text+'"')}return r}});EU=()=>{var t=new vt("mtd",[]);return t.setAttribute("width","50%"),t};Lp({type:"tag",mathmlBuilder(t,e){var r=new vt("mtable",[new vt("mtr",[EU(),new vt("mtd",[_d(t.body,e)]),EU(),new vt("mtd",[_d(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});SU={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},AU={"\\textbf":"textbf","\\textmd":"textmd"},cAe={"\\textit":"textit","\\textup":"textup"},_U=(t,e)=>{var r=t.font;if(r){if(SU[r])return e.withTextFontFamily(SU[r]);if(AU[r])return e.withTextFontWeight(AU[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(cAe[r])};Rt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:i}=t,n=e[0];return{type:"text",mode:r.mode,body:zn(n),font:i}},htmlBuilder(t,e){var r=_U(t,e),i=Jn(t.body,r,!0);return pt(["mord","text"],i,r)},mathmlBuilder(t,e){var r=_U(t,e);return _d(t.body,r)}});Rt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=di(t.body,e),i=am("underline-line",e),n=e.fontMetrics().defaultRuleThickness,a=hi({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:r}]});return pt(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new vt("mo",[new Tn("\u203E")]);r.setAttribute("stretchy","true");var i=new vt("munder",[Mi(t.body,e),r]);return i.setAttribute("accentunder","true"),i}});Rt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=di(t.body,e),i=e.fontMetrics().axisHeight,n=.5*(r.height-i-(r.depth+i));return hi({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new vt("mpadded",[Mi(t.body,e)],["vcenter"])}});Rt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new yt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=LU(t),i=[],n=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"\u2423":"\xA0"),wd=UU,CH=`[ \r ]`,uAe="\\\\[a-zA-Z@]+",hAe="\\\\[^\uD800-\uDFFF]",dAe="("+uAe+")"+CH+"*",fAe=`\\\\( |[ \r ]+ ?)[ \r ]*`,T8="[\u0300-\u036F]",pAe=new RegExp(T8+"+$"),gAe="("+CH+"+)|"+(fAe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(T8+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(T8+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+dAe)+("|"+hAe+")"),nw=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(gAe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Do("EOF",new Qs(this,r,r));var i=this.tokenRegex.exec(e);if(i===null||i.index!==r)throw new yt("Unexpected character: '"+e[r]+"'",new Do(e[r],new Qs(this,r,r+1)));var n=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[n]===14){var a=e.indexOf(` `,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Do(n,new Qs(this,r,this.tokenRegex.lastIndex))}},k8=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new yt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,i){if(i===void 0&&(i=!1),i){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}},mAe=fH;he("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});he("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});he("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});he("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});he("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});he("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");he("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});RU={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};he("\\char",function(t){var e=t.popToken(),r,i=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")i=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new yt("\\char` missing argument");i=e.text.charCodeAt(0)}else r=10;if(r){if(i=RU[e.text],i==null||i>=r)throw new yt("Invalid base-"+r+" digit "+e.text);for(var n;(n=RU[t.future().text])!=null&&n{var n=t.consumeArg().tokens;if(n.length!==1)throw new yt("\\newcommand's first argument must be a macro name");var a=n[0].text,s=t.isDefined(a);if(s&&!e)throw new yt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new yt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new yt("Invalid number of arguments: "+l);o=parseInt(l),n=t.consumeArg().tokens}return s&&i||t.macros.set(a,{tokens:n,numArgs:o}),""};he("\\newcommand",t=>O8(t,!1,!0,!1));he("\\renewcommand",t=>O8(t,!0,!1,!1));he("\\providecommand",t=>O8(t,!0,!0,!0));he("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});he("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});he("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),wd[r],Zi.math[r],Zi.text[r]),""});he("\\bgroup","{");he("\\egroup","}");he("~","\\nobreakspace");he("\\lq","`");he("\\rq","'");he("\\aa","\\r a");he("\\AA","\\r A");he("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");he("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");he("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");he("\u212C","\\mathscr{B}");he("\u2130","\\mathscr{E}");he("\u2131","\\mathscr{F}");he("\u210B","\\mathscr{H}");he("\u2110","\\mathscr{I}");he("\u2112","\\mathscr{L}");he("\u2133","\\mathscr{M}");he("\u211B","\\mathscr{R}");he("\u212D","\\mathfrak{C}");he("\u210C","\\mathfrak{H}");he("\u2128","\\mathfrak{Z}");he("\\Bbbk","\\Bbb{k}");he("\\llap","\\mathllap{\\textrm{#1}}");he("\\rlap","\\mathrlap{\\textrm{#1}}");he("\\clap","\\mathclap{\\textrm{#1}}");he("\\mathstrut","\\vphantom{(}");he("\\underbar","\\underline{\\text{#1}}");he("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');he("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");he("\\ne","\\neq");he("\u2260","\\neq");he("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");he("\u2209","\\notin");he("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");he("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");he("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");he("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");he("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");he("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");he("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");he("\u27C2","\\perp");he("\u203C","\\mathclose{!\\mkern-0.8mu!}");he("\u220C","\\notni");he("\u231C","\\ulcorner");he("\u231D","\\urcorner");he("\u231E","\\llcorner");he("\u231F","\\lrcorner");he("\xA9","\\copyright");he("\xAE","\\textregistered");he("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');he("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');he("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');he("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');he("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");he("\u22EE","\\vdots");he("\\varGamma","\\mathit{\\Gamma}");he("\\varDelta","\\mathit{\\Delta}");he("\\varTheta","\\mathit{\\Theta}");he("\\varLambda","\\mathit{\\Lambda}");he("\\varXi","\\mathit{\\Xi}");he("\\varPi","\\mathit{\\Pi}");he("\\varSigma","\\mathit{\\Sigma}");he("\\varUpsilon","\\mathit{\\Upsilon}");he("\\varPhi","\\mathit{\\Phi}");he("\\varPsi","\\mathit{\\Psi}");he("\\varOmega","\\mathit{\\Omega}");he("\\substack","\\begin{subarray}{c}#1\\end{subarray}");he("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");he("\\boxed","\\fbox{$\\displaystyle{#1}$}");he("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");he("\\implies","\\DOTSB\\;\\Longrightarrow\\;");he("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");he("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");he("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");IU={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},yAe=new Set(["bin","rel"]);he("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in IU?e=IU[r]:(r.slice(0,4)==="\\not"||r in Zi.math&&yAe.has(Zi.math[r].group))&&(e="\\dotsb"),e});P8={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};he("\\dotso",function(t){var e=t.future().text;return e in P8?"\\ldots\\,":"\\ldots"});he("\\dotsc",function(t){var e=t.future().text;return e in P8&&e!==","?"\\ldots\\,":"\\ldots"});he("\\cdots",function(t){var e=t.future().text;return e in P8?"\\@cdots\\,":"\\@cdots"});he("\\dotsb","\\cdots");he("\\dotsm","\\cdots");he("\\dotsi","\\!\\cdots");he("\\dotsx","\\ldots\\,");he("\\DOTSI","\\relax");he("\\DOTSB","\\relax");he("\\DOTSX","\\relax");he("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");he("\\,","\\tmspace+{3mu}{.1667em}");he("\\thinspace","\\,");he("\\>","\\mskip{4mu}");he("\\:","\\tmspace+{4mu}{.2222em}");he("\\medspace","\\:");he("\\;","\\tmspace+{5mu}{.2777em}");he("\\thickspace","\\;");he("\\!","\\tmspace-{3mu}{.1667em}");he("\\negthinspace","\\!");he("\\negmedspace","\\tmspace-{4mu}{.2222em}");he("\\negthickspace","\\tmspace-{5mu}{.277em}");he("\\enspace","\\kern.5em ");he("\\enskip","\\hskip.5em\\relax");he("\\quad","\\hskip1em\\relax");he("\\qquad","\\hskip2em\\relax");he("\\tag","\\@ifstar\\tag@literal\\tag@paren");he("\\tag@paren","\\tag@literal{({#1})}");he("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new yt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});he("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");he("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");he("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");he("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");he("\\newline","\\\\\\relax");he("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");EH=kt(qc["Main-Regular"][84][1]-.7*qc["Main-Regular"][65][1]);he("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+EH+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");he("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+EH+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");he("\\hspace","\\@ifstar\\@hspacer\\@hspace");he("\\@hspace","\\hskip #1\\relax");he("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");he("\\ordinarycolon",":");he("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");he("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');he("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');he("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');he("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');he("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');he("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');he("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');he("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');he("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');he("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');he("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');he("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');he("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');he("\u2237","\\dblcolon");he("\u2239","\\eqcolon");he("\u2254","\\coloneqq");he("\u2255","\\eqqcolon");he("\u2A74","\\Coloneqq");he("\\ratio","\\vcentcolon");he("\\coloncolon","\\dblcolon");he("\\colonequals","\\coloneqq");he("\\coloncolonequals","\\Coloneqq");he("\\equalscolon","\\eqqcolon");he("\\equalscoloncolon","\\Eqqcolon");he("\\colonminus","\\coloneq");he("\\coloncolonminus","\\Coloneq");he("\\minuscolon","\\eqcolon");he("\\minuscoloncolon","\\Eqcolon");he("\\coloncolonapprox","\\Colonapprox");he("\\coloncolonsim","\\Colonsim");he("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");he("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");he("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");he("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");he("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");he("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");he("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");he("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");he("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");he("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");he("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");he("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");he("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");he("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");he("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");he("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");he("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");he("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");he("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");he("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");he("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");he("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");he("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");he("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");he("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");he("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");he("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");he("\\imath","\\html@mathml{\\@imath}{\u0131}");he("\\jmath","\\html@mathml{\\@jmath}{\u0237}");he("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");he("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");he("\u27E6","\\llbracket");he("\u27E7","\\rrbracket");he("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");he("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");he("\u2983","\\lBrace");he("\u2984","\\rBrace");he("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");he("\u29B5","\\minuso");he("\\darr","\\downarrow");he("\\dArr","\\Downarrow");he("\\Darr","\\Downarrow");he("\\lang","\\langle");he("\\rang","\\rangle");he("\\uarr","\\uparrow");he("\\uArr","\\Uparrow");he("\\Uarr","\\Uparrow");he("\\N","\\mathbb{N}");he("\\R","\\mathbb{R}");he("\\Z","\\mathbb{Z}");he("\\alef","\\aleph");he("\\alefsym","\\aleph");he("\\Alpha","\\mathrm{A}");he("\\Beta","\\mathrm{B}");he("\\bull","\\bullet");he("\\Chi","\\mathrm{X}");he("\\clubs","\\clubsuit");he("\\cnums","\\mathbb{C}");he("\\Complex","\\mathbb{C}");he("\\Dagger","\\ddagger");he("\\diamonds","\\diamondsuit");he("\\empty","\\emptyset");he("\\Epsilon","\\mathrm{E}");he("\\Eta","\\mathrm{H}");he("\\exist","\\exists");he("\\harr","\\leftrightarrow");he("\\hArr","\\Leftrightarrow");he("\\Harr","\\Leftrightarrow");he("\\hearts","\\heartsuit");he("\\image","\\Im");he("\\infin","\\infty");he("\\Iota","\\mathrm{I}");he("\\isin","\\in");he("\\Kappa","\\mathrm{K}");he("\\larr","\\leftarrow");he("\\lArr","\\Leftarrow");he("\\Larr","\\Leftarrow");he("\\lrarr","\\leftrightarrow");he("\\lrArr","\\Leftrightarrow");he("\\Lrarr","\\Leftrightarrow");he("\\Mu","\\mathrm{M}");he("\\natnums","\\mathbb{N}");he("\\Nu","\\mathrm{N}");he("\\Omicron","\\mathrm{O}");he("\\plusmn","\\pm");he("\\rarr","\\rightarrow");he("\\rArr","\\Rightarrow");he("\\Rarr","\\Rightarrow");he("\\real","\\Re");he("\\reals","\\mathbb{R}");he("\\Reals","\\mathbb{R}");he("\\Rho","\\mathrm{P}");he("\\sdot","\\cdot");he("\\sect","\\S");he("\\spades","\\spadesuit");he("\\sub","\\subset");he("\\sube","\\subseteq");he("\\supe","\\supseteq");he("\\Tau","\\mathrm{T}");he("\\thetasym","\\vartheta");he("\\weierp","\\wp");he("\\Zeta","\\mathrm{Z}");he("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");he("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");he("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");he("\\bra","\\mathinner{\\langle{#1}|}");he("\\ket","\\mathinner{|{#1}\\rangle}");he("\\braket","\\mathinner{\\langle{#1}\\rangle}");he("\\Bra","\\left\\langle#1\\right|");he("\\Ket","\\left|#1\\right\\rangle");SH=t=>e=>{var r=e.consumeArg().tokens,i=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=d=>f=>{t&&(f.macros.set("|",s),n.length&&f.macros.set("\\|",o));var p=d;if(!d&&n.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?n:i,numArgs:0}};e.macros.set("|",l(!1)),n.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,h=e.expandTokens([...a,...u,...r]);return e.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};he("\\bra@ket",SH(!1));he("\\bra@set",SH(!0));he("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");he("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");he("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");he("\\angln","{\\angl n}");he("\\blue","\\textcolor{##6495ed}{#1}");he("\\orange","\\textcolor{##ffa500}{#1}");he("\\pink","\\textcolor{##ff00af}{#1}");he("\\red","\\textcolor{##df0030}{#1}");he("\\green","\\textcolor{##28ae7b}{#1}");he("\\gray","\\textcolor{gray}{#1}");he("\\purple","\\textcolor{##9d38bd}{#1}");he("\\blueA","\\textcolor{##ccfaff}{#1}");he("\\blueB","\\textcolor{##80f6ff}{#1}");he("\\blueC","\\textcolor{##63d9ea}{#1}");he("\\blueD","\\textcolor{##11accd}{#1}");he("\\blueE","\\textcolor{##0c7f99}{#1}");he("\\tealA","\\textcolor{##94fff5}{#1}");he("\\tealB","\\textcolor{##26edd5}{#1}");he("\\tealC","\\textcolor{##01d1c1}{#1}");he("\\tealD","\\textcolor{##01a995}{#1}");he("\\tealE","\\textcolor{##208170}{#1}");he("\\greenA","\\textcolor{##b6ffb0}{#1}");he("\\greenB","\\textcolor{##8af281}{#1}");he("\\greenC","\\textcolor{##74cf70}{#1}");he("\\greenD","\\textcolor{##1fab54}{#1}");he("\\greenE","\\textcolor{##0d923f}{#1}");he("\\goldA","\\textcolor{##ffd0a9}{#1}");he("\\goldB","\\textcolor{##ffbb71}{#1}");he("\\goldC","\\textcolor{##ff9c39}{#1}");he("\\goldD","\\textcolor{##e07d10}{#1}");he("\\goldE","\\textcolor{##a75a05}{#1}");he("\\redA","\\textcolor{##fca9a9}{#1}");he("\\redB","\\textcolor{##ff8482}{#1}");he("\\redC","\\textcolor{##f9685d}{#1}");he("\\redD","\\textcolor{##e84d39}{#1}");he("\\redE","\\textcolor{##bc2612}{#1}");he("\\maroonA","\\textcolor{##ffbde0}{#1}");he("\\maroonB","\\textcolor{##ff92c6}{#1}");he("\\maroonC","\\textcolor{##ed5fa6}{#1}");he("\\maroonD","\\textcolor{##ca337c}{#1}");he("\\maroonE","\\textcolor{##9e034e}{#1}");he("\\purpleA","\\textcolor{##ddd7ff}{#1}");he("\\purpleB","\\textcolor{##c6b9fc}{#1}");he("\\purpleC","\\textcolor{##aa87ff}{#1}");he("\\purpleD","\\textcolor{##7854ab}{#1}");he("\\purpleE","\\textcolor{##543b78}{#1}");he("\\mintA","\\textcolor{##f5f9e8}{#1}");he("\\mintB","\\textcolor{##edf2df}{#1}");he("\\mintC","\\textcolor{##e0e5cc}{#1}");he("\\grayA","\\textcolor{##f6f7f7}{#1}");he("\\grayB","\\textcolor{##f0f1f2}{#1}");he("\\grayC","\\textcolor{##e3e5e6}{#1}");he("\\grayD","\\textcolor{##d6d8da}{#1}");he("\\grayE","\\textcolor{##babec2}{#1}");he("\\grayF","\\textcolor{##888d93}{#1}");he("\\grayG","\\textcolor{##626569}{#1}");he("\\grayH","\\textcolor{##3b3e40}{#1}");he("\\grayI","\\textcolor{##21242c}{#1}");he("\\kaBlue","\\textcolor{##314453}{#1}");he("\\kaGreen","\\textcolor{##71B307}{#1}");AH={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},w8=class{constructor(e,r,i){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new k8(mAe,r.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new nw(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,i,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:r,end:i}=this.consumeArg());return this.pushToken(new Do("EOF",i.loc)),this.pushTokens(n),new Do("",Qs.range(r,i))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],i=e&&e.length>0;i||this.consumeSpaces();var n=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new yt("Extra }",a)}else if(a.text==="EOF")throw new yt("Unexpected end of input in a macro argument, expected '"+(e&&i?e[o]:"}")+"'",a);if(e&&i)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||i);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new yt("The length of delimiters doesn't match the number of args!");for(var i=r[0],n=0;nthis.settings.maxExpand)throw new yt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),i=r.text,n=r.noexpand?null:this._getExpansion(i);if(n==null||e&&n.unexpandable){if(e&&n==null&&i[0]==="\\"&&!this.isDefined(i))throw new yt("Undefined control sequence: "+i);return this.pushToken(r),!1}this.countExpansion(1);var a=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new yt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new yt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Do(e)]):void 0}expandTokens(e){var r=[],i=this.stack.length;for(this.pushTokens(e);this.stack.length>i;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),r.push(n)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(i=>i.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var i=this.lexer.catcodes[e];if(i!=null&&i!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var a=0;if(n.includes("#"))for(var s=n.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new nw(n,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var h={tokens:l,numArgs:a};return h}return n}isDefined(e){return this.macros.has(e)||wd.hasOwnProperty(e)||Zi.math.hasOwnProperty(e)||Zi.text.hasOwnProperty(e)||AH.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:wd.hasOwnProperty(e)&&!wd[e].primitive}},DU=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Yk=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),l8={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},MU={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},aw=class t{constructor(e,r){this.mode="math",this.gullet=new w8(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new yt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Do("}")),this.gullet.pushTokens(e);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,i}parseExpression(e,r){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(t.endOfExpression.has(n.text)||r&&n.text===r||e&&wd[n.text]&&wd[n.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;i.push(a)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(e){for(var r=-1,i,n=0;n=128)this.settings.strict&&(NU(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Qs.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),ll.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var q8,cm,xAe,G8,Rd,v2,kw,zH,qH,$8,Yi,Yc,Xc,fr,bAe,TAe,kAe,wAe,CAe,fh,EAe,SAe,AAe,_Ae,LAe,RAe,IAe,DAe,MAe,NAe,OAe,PAe,BAe,FAe,$Ae,zAe,Hc,Oo,GH,VH,qAe,ur,y2,GAe,Ip,Zl,Js,bw,Rp,m2,ww,WH,UH,HH,V8,W8,It,YH,XH,x2,VAe,PH,jH,KH,ZH,Kr,Dp,WAe,UAe,JH,BH,vr,HAe,YAe,XAe,jAe,eY,Mp,KAe,ZAe,jc,z8,QAe,JAe,FH,vw,Ji,um,e7e,hm,ot,t7e,r7e,Br,Kc,xw,i7e,n7e,tY,Cw,U8,H8,Y8,X8,mr,xr,kr,wr,Cr,Ar,Er,$H,a7e,be,b2,Ew,Sw,j8,s7e,Tw,T2,Aw,o7e,_r=z(()=>{ir();$n();$n();$n();$n();$n();$n();$n();$n();$n();$n();$n();$n();a2();q8=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,cm=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,xAe=/\s*%%.*\n/gm,G8=class extends Error{static{x(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},Rd={},v2=x(function(t,e){t=t.replace(q8,"").replace(cm,"").replace(xAe,` `);for(let[r,{detector:i}]of Object.entries(Rd))if(i(t,e))return r;throw new G8(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),kw=x((...t)=>{for(let{id:e,detector:r,loader:i}of t)zH(e,r,i)},"registerLazyLoadedDiagrams"),zH=x((t,e,r)=>{Rd[t]&&Q.warn(`Detector with key ${t} already exists. Overwriting.`),Rd[t]={detector:e,loader:r},Q.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),qH=x(t=>Rd[t].loader,"getDiagramLoader"),$8=x((t,e,{depth:r=2,clobber:i=!1}={})=>{let n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>$8(t,a,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&e[a]!==null&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=$8(t[a],e[a],{depth:r-1,clobber:i})):(i||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),Yi=$8,Yc="#ffffff",Xc="#f2f2f2",fr=x((t,e)=>e?ie(t,{s:-40,l:10}):ie(t,{s:-40,l:-10}),"mkBorder"),bAe=class{static{x(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||je(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Ye(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Ye(this.mainBkg,10)):(this.rowOdd=this.rowOdd||je(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||je(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ie(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ie(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ie(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ie(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ie(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ie(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ie(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ie(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ie(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},TAe=x(t=>{let e=new bAe;return e.calculate(t),e},"getThemeVariables"),kAe=class{static{x(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.background),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(qe("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Rn(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=Ye("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Ye(this.sectionBkgColor,10),this.taskBorderColor=Rn(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Rn(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||je(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Ye(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=je(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=je(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=je(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=qe(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ie(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ie(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ie(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ie(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ie(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ie(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ie(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ie(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ie(this.primaryColor,{h:330});for(let t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},wAe=x(t=>{let e=new kAe;return e.calculate(t),e},"getThemeVariables"),CAe=class{static{x(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ie(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=fr(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Rn(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ie(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ie(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ie(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ie(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ie(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ie(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ie(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ie(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ie(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ye(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ye(this.tertiaryColor,40);for(let t=0;t{this[r]==="calculated"&&(this[r]=void 0)}),typeof t!="object"){this.updateColors();return}let e=Object.keys(t);e.forEach(r=>{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},fh=x(t=>{let e=new CAe;return e.calculate(t),e},"getThemeVariables"),EAe=class{static{x(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=je("#cde498",10),this.primaryBorderColor=fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.primaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=Ye(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ie(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ie(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ie(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ie(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ie(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ie(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ie(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ie(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ie(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ye(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ye(this.tertiaryColor,40);for(let t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},SAe=x(t=>{let e=new EAe;return e.calculate(t),e},"getThemeVariables"),AAe=class{static{x(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=je(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.lineColor=qe(this.background),this.textColor=qe(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||je(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=je(this.contrast,55),this.border2=this.contrast,this.actorBorder=je(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},_Ae=x(t=>{let e=new AAe;return e.calculate(t),e},"getThemeVariables"),LAe=class{static{x(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=fr(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor);let t="#ECECFE",e="#E9E9F1",r=ie(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||je(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||ie(t,{h:30}),this.cScale4=this.cScale4||ie(t,{h:60}),this.cScale5=this.cScale5||ie(t,{h:90}),this.cScale6=this.cScale6||ie(t,{h:120}),this.cScale7=this.cScale7||ie(t,{h:150}),this.cScale8=this.cScale8||ie(t,{h:210,l:150}),this.cScale9=this.cScale9||ie(t,{h:270}),this.cScale10=this.cScale10||ie(t,{h:300}),this.cScale11=this.cScale11||ie(t,{h:330}),this.darkMode)for(let n=0;n{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},RAe=x(t=>{let e=new LAe;return e.calculate(t),e},"getThemeVariables"),IAe=class{static{x(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.background),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(qe("#323D47"),10),this.border1="#ccc",this.border2=Rn(255,255,255,.25),this.arrowheadColor=qe(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||je(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ie(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ie(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ie(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ie(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ie(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ie(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ie(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ie(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ie(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},DAe=x(t=>{let e=new IAe;return e.calculate(t),e},"getThemeVariables"),MAe=class{static{x(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=fr("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor);let t="#ECECFE",e="#E9E9F1",r=ie(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||je(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let n=0;n{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},NAe=x(t=>{let e=new MAe;return e.calculate(t),e},"getThemeVariables"),OAe=class{static{x(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.background),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(qe("#323D47"),10),this.border1="#ccc",this.border2=Rn(255,255,255,.25),this.arrowheadColor=qe(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||je(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ie(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ie(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ie(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ie(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ie(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ie(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ie(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ie(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ie(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},PAe=x(t=>{let e=new OAe;return e.calculate(t),e},"getThemeVariables"),BAe=class{static{x(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=fr(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor);let t="#ECECFE",e="#E9E9F1",r=ie(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||je(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let n=0;n{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},FAe=x(t=>{let e=new BAe;return e.calculate(t),e},"getThemeVariables"),$Ae=class{static{x(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=je(this.primaryColor,16),this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.background),this.secondaryBorderColor=fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fr(this.tertiaryColor,this.darkMode),this.primaryTextColor=qe(this.primaryColor),this.secondaryTextColor=qe(this.secondaryColor),this.tertiaryTextColor=qe(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=je(qe("#323D47"),10),this.border1="#ccc",this.border2=Rn(255,255,255,.25),this.arrowheadColor=qe(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||qe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||qe(this.tertiaryColor),this.lineColor=this.lineColor||qe(this.background),this.arrowheadColor=this.arrowheadColor||qe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||qe(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||je(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let e=0;e{this[r]=t[r]}),this.updateColors(),e.forEach(r=>{this[r]=t[r]})}},zAe=x(t=>{let e=new $Ae;return e.calculate(t),e},"getThemeVariables"),Hc={base:{getThemeVariables:TAe},dark:{getThemeVariables:wAe},default:{getThemeVariables:fh},forest:{getThemeVariables:SAe},neutral:{getThemeVariables:_Ae},neo:{getThemeVariables:RAe},"neo-dark":{getThemeVariables:DAe},redux:{getThemeVariables:NAe},"redux-dark":{getThemeVariables:PAe},"redux-color":{getThemeVariables:FAe},"redux-dark-color":{getThemeVariables:zAe}},Oo={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},GH={...Oo,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Hc.default.getThemeVariables(),sequence:{...Oo.sequence,messageFont:x(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:x(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:x(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Oo.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Oo.c4,useWidth:void 0,personFont:x(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Oo.flowchart,inheritDir:!1},external_personFont:x(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:x(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:x(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:x(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:x(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:x(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:x(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:x(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:x(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:x(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:x(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:x(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:x(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:x(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:x(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:x(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:x(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:x(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:x(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:x(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:x(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Oo.pie,useWidth:984},xyChart:{...Oo.xyChart,useWidth:void 0},requirement:{...Oo.requirement,useWidth:void 0},packet:{...Oo.packet},treeView:{...Oo.treeView,useWidth:void 0},radar:{...Oo.radar},ishikawa:{...Oo.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Oo.venn}},VH=x((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...VH(t[i],"")]:[...r,e+i],[]),"keyify"),qAe=new Set(VH(GH,"")),ur=GH,y2=x(t=>{if(Q.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>y2(e));return}for(let e of Object.keys(t)){if(Q.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!qAe.has(e)||t[e]==null){Q.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){Q.debug("sanitizing object",e),y2(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(Q.debug("sanitizing css option",e),t[e]=GAe(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}Q.debug("After sanitization",t)}},"sanitizeDirective"),GAe=x(t=>{let e=0,r=0;for(let i of t){if(e!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Js=Yi({},Ip),Rp=[],m2=Yi({},Ip),ww=x((t,e)=>{let r=Yi({},t),i={};for(let n of e)YH(n),i=Yi(i,n);if(r=Yi(r,i),i.theme&&i.theme in Hc){let n=Yi({},bw),a=Yi(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Hc&&(r.themeVariables=Hc[r.theme].getThemeVariables(a))}return m2=r,KH(m2),m2},"updateCurrentConfig"),WH=x(t=>(Js=Yi({},Ip),Js=Yi(Js,t),t.theme&&Hc[t.theme]&&(Js.themeVariables=Hc[t.theme].getThemeVariables(t.themeVariables)),ww(Js,Rp),Js),"setSiteConfig"),UH=x(t=>{bw=Yi({},t)},"saveConfigFromInitialize"),HH=x(t=>(Js=Yi(Js,t),ww(Js,Rp),Js),"updateSiteConfig"),V8=x(()=>Yi({},Js),"getSiteConfig"),W8=x(t=>(KH(t),Yi(m2,t),It()),"setConfig"),It=x(()=>Yi({},m2),"getConfig"),YH=x(t=>{t&&(["secure",...Js.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(Q.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&YH(t[e])}))},"sanitize"),XH=x(t=>{y2(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Rp.push(t),ww(Js,Rp)},"addDirective"),x2=x((t=Js)=>{Rp=[],ww(t,Rp)},"reset"),VAe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},PH={},jH=x(t=>{PH[t]||(Q.warn(VAe[t]),PH[t]=!0)},"issueWarning"),KH=x(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&jH("LAZY_LOAD_DEPRECATED")},"checkConfig"),ZH=x(()=>{let t={};bw&&(t=Yi(t,bw));for(let e of Rp)t=Yi(t,e);return t},"getUserDefinedConfig"),Kr=x(t=>(t.flowchart?.htmlLabels!=null&&jH("FLOWCHART_HTML_LABELS_DEPRECATED"),Zl(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Dp=//gi,WAe=x(t=>t?eY(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),UAe=(()=>{let t=!1;return()=>{t||(QH(),t=!0)}})();x(QH,"setupDompurifyHooks");JH=x(t=>(UAe(),ll.sanitize(t)),"removeScript"),BH=x((t,e)=>{if(Kr(e)){let r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=JH(t):r!=="loose"&&(t=eY(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=jAe(t))}return t},"sanitizeMore"),vr=x((t,e)=>t&&(e.dompurifyConfig?t=ll.sanitize(BH(t,e),e.dompurifyConfig).toString():t=ll.sanitize(BH(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),HAe=x((t,e)=>typeof t=="string"?vr(t,e):t.flat().map(r=>vr(r,e)),"sanitizeTextOrArray"),YAe=x(t=>Dp.test(t),"hasBreaks"),XAe=x(t=>t.split(Dp),"splitBreaks"),jAe=x(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),eY=x(t=>t.replace(Dp,"#br#"),"breakToPlaceholder"),Mp=x(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),KAe=x(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),ZAe=x(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),jc=x(function(t){let e=t.split(/(,)/),r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1),"countOccurrence"),QAe=x((t,e)=>{let r=z8(t,"~"),i=z8(e,"~");return r===1&&i===1},"shouldCombineSets"),JAe=x(t=>{let e=z8(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),FH=x(()=>window.MathMLElement!==void 0,"isMathMLSupported"),vw=/\$\$(.*)\$\$/g,Ji=x(t=>(t.match(vw)?.length??0)>0,"hasKatex"),um=x(async(t,e)=>{let r=document.createElement("div");r.innerHTML=await hm(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),e7e=x(async(t,e)=>{if(!Ji(t))return t;if(!(FH()||e.legacyMathML||e.forceLegacyMathML))return t.replace(vw,"MathML is unsupported in this environment.");{let{default:r}=await Promise.resolve().then(()=>(OH(),NH)),i=e.forceLegacyMathML||!FH()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Dp).map(n=>Ji(n)?`
${n}
`:`
${n}
`).join("").replace(vw,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(//g,""))}return t.replace(vw,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),hm=x(async(t,e)=>vr(await e7e(t,e),e),"renderKatexSanitized"),ot={getRows:WAe,sanitizeText:vr,sanitizeTextOrArray:HAe,hasBreaks:YAe,splitBreaks:XAe,lineBreakRegex:Dp,removeScript:JH,getUrl:Mp,evaluate:Zl,getMax:KAe,getMin:ZAe},t7e=x(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),r7e=x(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),Br=x(function(t,e,r,i){let n=r7e(e,r,i);t7e(t,n)},"configureSvgSize"),Kc=x(function(t,e,r,i){let n=e.node().getBBox(),a=n.width,s=n.height;Q.info(`SVG bounds: ${a}x${s}`,n);let o=0,l=0;Q.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,Q.info(`Calculated bounds: ${o}x${l}`),Br(e,l,o,i);let u=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),xw={},i7e=x((t,e,r,i)=>{let n="";return t in xw&&xw[t]?n=xw[t]({...r,svgId:i}):Q.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} } @keyframes edge-animation-frame { from { stroke-dashoffset: 0; } } @keyframes dash { to { stroke-dashoffset: 0; } } & .edge-animation-slow { stroke-dasharray: 9,5 !important; stroke-dashoffset: 900; animation: dash 50s linear infinite; stroke-linecap: round; } & .edge-animation-fast { stroke-dasharray: 9,5 !important; stroke-dashoffset: 900; animation: dash 20s linear infinite; stroke-linecap: round; } /* Classes common for multiple diagrams */ & .error-icon { fill: ${r.errorBkgColor}; } & .error-text { fill: ${r.errorTextColor}; stroke: ${r.errorTextColor}; } & .edge-thickness-normal { stroke-width: ${r.strokeWidth??1}px; } & .edge-thickness-thick { stroke-width: 3.5px } & .edge-pattern-solid { stroke-dasharray: 0; } & .edge-thickness-invisible { stroke-width: 0; fill: none; } & .edge-pattern-dashed{ stroke-dasharray: 3; } .edge-pattern-dotted { stroke-dasharray: 2; } & .marker { fill: ${r.lineColor}; stroke: ${r.lineColor}; } & .marker.cross { stroke: ${r.lineColor}; } & svg { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; } & p { margin: 0 } ${n} .node .neo-node { stroke: ${r.nodeBorder}; } [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; } [data-look="neo"].node path { stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; stroke-width: ${r.strokeWidth??1}px; } [data-look="neo"].node .outer-path { filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; } [data-look="neo"].node .neo-line path { stroke: ${r.nodeBorder}; filter: none; } [data-look="neo"].node circle{ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; } [data-look="neo"].node circle .state-start{ fill: #000000; } [data-look="neo"].icon-shape .icon { fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; } [data-look="neo"].icon-shape .icon-neo path { stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; } ${e} `},"getStyles"),n7e=x((t,e)=>{e!==void 0&&(xw[t]=e)},"addStylesForDiagram"),tY=i7e,Cw={};bd(Cw,{clear:()=>mr,getAccDescription:()=>Cr,getAccTitle:()=>kr,getDiagramTitle:()=>Er,setAccDescription:()=>wr,setAccTitle:()=>xr,setDiagramTitle:()=>Ar});U8="",H8="",Y8="",X8=x(t=>vr(t,It()),"sanitizeText"),mr=x(()=>{U8="",Y8="",H8=""},"clear"),xr=x(t=>{U8=X8(t).replace(/^\s+/g,"")},"setAccTitle"),kr=x(()=>U8,"getAccTitle"),wr=x(t=>{Y8=X8(t).replace(/\n\s+/g,` `)},"setAccDescription"),Cr=x(()=>Y8,"getAccDescription"),Ar=x(t=>{H8=X8(t)},"setDiagramTitle"),Er=x(()=>H8,"getDiagramTitle"),$H=Q,a7e=jv,be=It,b2=W8,Ew=Ip,Sw=x(t=>vr(t,be()),"sanitizeText"),j8=Kc,s7e=x(()=>Cw,"getCommonDb"),Tw={},T2=x((t,e,r)=>{Tw[t]&&$H.warn(`Diagram with id ${t} already registered. Overwriting.`),Tw[t]=e,r&&zH(t,r),n7e(t,e.styles),e.injectUtils?.($H,a7e,be,Sw,j8,s7e(),()=>{})},"registerDiagram"),Aw=x(t=>{if(t in Tw)return Tw[t];throw new o7e(t)},"getDiagram"),o7e=class extends Error{static{x(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});function Np(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}var K8=z(()=>{});function Z8(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}var rY=z(()=>{});function Op(t){let e,r,i;t.length!==2?(e=Np,r=(o,l)=>Np(t(o),l),i=(o,l)=>t(o)-l):(e=t===Np||t===Z8?t:l7e,r=t,i=t);function n(o,l,u=0,h=o.length){if(u>>1;r(o[d],l)<0?u=d+1:h=d}while(u>>1;r(o[d],l)<=0?u=d+1:h=d}while(uu&&i(o[d-1],l)>-i(o[d],l)?d-1:d}return{left:n,center:s,right:a}}function l7e(){return 0}var Q8=z(()=>{K8();rY()});function J8(t){return t===null?NaN:+t}var iY=z(()=>{});var nY,aY,c7e,u7e,eL,sY=z(()=>{K8();Q8();iY();nY=Op(Np),aY=nY.right,c7e=nY.left,u7e=Op(J8).center,eL=aY});function oY({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function h7e({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function d7e({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function f7e(t){return t!==null&&typeof t=="object"?t.valueOf():t}var dm,lY=z(()=>{dm=class extends Map{constructor(e,r=f7e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,n]of e)this.set(i,n)}get(e){return super.get(oY(this,e))}has(e){return super.has(oY(this,e))}set(e,r){return super.set(h7e(this,e),r)}delete(e){return super.delete(d7e(this,e))}}});function _w(t,e,r){let i=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(i)),a=i/Math.pow(10,n),s=a>=p7e?10:a>=g7e?5:a>=m7e?2:1,o,l,u;return n<0?(u=Math.pow(10,-n)/s,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,n)*s,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];let i=e=n))return[];let o=a-n+1,l=new Array(o);if(i)if(s<0)for(let u=0;u{p7e=Math.sqrt(50),g7e=Math.sqrt(10),m7e=Math.sqrt(2)});function Rw(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r=n)&&(r=n)}return r}var uY=z(()=>{});function Iw(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}var hY=z(()=>{});function Dw(t,e,r){t=+t,e=+e,r=(n=arguments.length)<2?(e=t,t=0,1):n<3?1:+r;for(var i=-1,n=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(n);++i{});var Id=z(()=>{sY();Q8();uY();hY();dY();cY();lY()});function fY(t){return t}var pY=z(()=>{});function y7e(t){return"translate("+t+",0)"}function v7e(t){return"translate(0,"+t+")"}function x7e(t){return e=>+t(e)}function b7e(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function T7e(){return!this.__axis}function mY(t,e){var r=[],i=null,n=null,a=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Nw||t===Mw?-1:1,h=t===Mw||t===tL?"x":"y",d=t===Nw||t===rL?y7e:v7e;function f(p){var g=i??(e.ticks?e.ticks.apply(e,r):e.domain()),m=n??(e.tickFormat?e.tickFormat.apply(e,r):fY),y=Math.max(a,0)+o,v=e.range(),b=+v[0]+l,T=+v[v.length-1]+l,C=(e.bandwidth?b7e:x7e)(e.copy(),l),k=p.selection?p.selection():p,w=k.selectAll(".domain").data([null]),E=k.selectAll(".tick").data(g,e).order(),S=E.exit(),R=E.enter().append("g").attr("class","tick"),M=E.select("line"),N=E.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(R),M=M.merge(R.append("line").attr("stroke","currentColor").attr(h+"2",u*a)),N=N.merge(R.append("text").attr("fill","currentColor").attr(h,u*y).attr("dy",t===Nw?"0em":t===rL?"0.71em":"0.32em")),p!==k&&(w=w.transition(p),E=E.transition(p),M=M.transition(p),N=N.transition(p),S=S.transition(p).attr("opacity",gY).attr("transform",function(A){return isFinite(A=C(A))?d(A+l):this.getAttribute("transform")}),R.attr("opacity",gY).attr("transform",function(A){var L=this.parentNode.__axis;return d((L&&isFinite(L=L(A))?L:C(A))+l)})),S.remove(),w.attr("d",t===Mw||t===tL?s?"M"+u*s+","+b+"H"+l+"V"+T+"H"+u*s:"M"+l+","+b+"V"+T:s?"M"+b+","+u*s+"V"+l+"H"+T+"V"+u*s:"M"+b+","+l+"H"+T),E.attr("opacity",1).attr("transform",function(A){return d(C(A)+l)}),M.attr(h+"2",u*a),N.attr(h,u*y).text(m),k.filter(T7e).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===tL?"start":t===Mw?"end":"middle"),k.each(function(){this.__axis=C})}return f.scale=function(p){return arguments.length?(e=p,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),f):r.slice()},f.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),f):i&&i.slice()},f.tickFormat=function(p){return arguments.length?(n=p,f):n},f.tickSize=function(p){return arguments.length?(a=s=+p,f):a},f.tickSizeInner=function(p){return arguments.length?(a=+p,f):a},f.tickSizeOuter=function(p){return arguments.length?(s=+p,f):s},f.tickPadding=function(p){return arguments.length?(o=+p,f):o},f.offset=function(p){return arguments.length?(l=+p,f):l},f}function iL(t){return mY(Nw,t)}function nL(t){return mY(rL,t)}var Nw,tL,rL,Mw,gY,yY=z(()=>{pY();Nw=1,tL=2,rL=3,Mw=4,gY=1e-6});var vY=z(()=>{yY()});function bY(){for(var t=0,e=arguments.length,r={},i;t=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}function C7e(t,e){for(var r=0,i=t.length,n;r{k7e={value:()=>{}};Ow.prototype=bY.prototype={constructor:Ow,on:function(t,e){var r=this._,i=w7e(t+"",r),n,a=-1,s=i.length;if(arguments.length<2){for(;++a0)for(var r=new Array(n),i=0,n,a;i{TY()});var Pw,oL,lL=z(()=>{Pw="http://www.w3.org/1999/xhtml",oL={svg:"http://www.w3.org/2000/svg",xhtml:Pw,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function ph(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),oL.hasOwnProperty(e)?{space:oL[e],local:t}:t}var Bw=z(()=>{lL()});function E7e(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Pw&&e.documentElement.namespaceURI===Pw?e.createElement(t):e.createElementNS(r,t)}}function S7e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Fw(t){var e=ph(t);return(e.local?S7e:E7e)(e)}var cL=z(()=>{Bw();lL()});function A7e(){}function Pp(t){return t==null?A7e:function(){return this.querySelector(t)}}var $w=z(()=>{});function kY(t){typeof t!="function"&&(t=Pp(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n{Ql();$w()});function uL(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}var CY=z(()=>{});function _7e(){return[]}function w2(t){return t==null?_7e:function(){return this.querySelectorAll(t)}}var hL=z(()=>{});function L7e(t){return function(){return uL(t.apply(this,arguments))}}function EY(t){typeof t=="function"?t=L7e(t):t=w2(t);for(var e=this._groups,r=e.length,i=[],n=[],a=0;a{Ql();CY();hL()});function C2(t){return function(){return this.matches(t)}}function zw(t){return function(e){return e.matches(t)}}var E2=z(()=>{});function I7e(t){return function(){return R7e.call(this.children,t)}}function D7e(){return this.firstElementChild}function AY(t){return this.select(t==null?D7e:I7e(typeof t=="function"?t:zw(t)))}var R7e,_Y=z(()=>{E2();R7e=Array.prototype.find});function N7e(){return Array.from(this.children)}function O7e(t){return function(){return M7e.call(this.children,t)}}function LY(t){return this.selectAll(t==null?N7e:O7e(typeof t=="function"?t:zw(t)))}var M7e,RY=z(()=>{E2();M7e=Array.prototype.filter});function IY(t){typeof t!="function"&&(t=C2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n{Ql();E2()});function qw(t){return new Array(t.length)}var dL=z(()=>{});function MY(){return new kn(this._enter||this._groups.map(qw),this._parents)}function S2(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}var fL=z(()=>{dL();Ql();S2.prototype={constructor:S2,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}});function NY(t){return function(){return t}}var OY=z(()=>{});function P7e(t,e,r,i,n,a){for(var s=0,o,l=e.length,u=a.length;s=T&&(T=b+1);!(k=y[T])&&++T{Ql();fL();OY()});function FY(){return new kn(this._exit||this._groups.map(qw),this._parents)}var $Y=z(()=>{dL();Ql()});function zY(t,e,r){var i=this.enter(),n=this,a=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}var qY=z(()=>{});function GY(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,a=i.length,s=Math.min(n,a),o=new Array(n),l=0;l{Ql()});function WY(){for(var t=this._groups,e=-1,r=t.length;++e=0;)(s=i[n])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}var UY=z(()=>{});function HY(t){t||(t=z7e);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;ae?1:t>=e?0:NaN}var YY=z(()=>{Ql()});function XY(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}var jY=z(()=>{});function KY(){return Array.from(this)}var ZY=z(()=>{});function QY(){for(var t=this._groups,e=0,r=t.length;e{});function eX(){let t=0;for(let e of this)++t;return t}var tX=z(()=>{});function rX(){return!this.node()}var iX=z(()=>{});function nX(t){for(var e=this._groups,r=0,i=e.length;r{});function q7e(t){return function(){this.removeAttribute(t)}}function G7e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function V7e(t,e){return function(){this.setAttribute(t,e)}}function W7e(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function U7e(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function H7e(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function sX(t,e){var r=ph(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?G7e:q7e:typeof e=="function"?r.local?H7e:U7e:r.local?W7e:V7e)(r,e))}var oX=z(()=>{Bw()});function Gw(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}var pL=z(()=>{});function Y7e(t){return function(){this.style.removeProperty(t)}}function X7e(t,e,r){return function(){this.style.setProperty(t,e,r)}}function j7e(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function lX(t,e,r){return arguments.length>1?this.each((e==null?Y7e:typeof e=="function"?j7e:X7e)(t,e,r??"")):Dd(this.node(),t)}function Dd(t,e){return t.style.getPropertyValue(e)||Gw(t).getComputedStyle(t,null).getPropertyValue(e)}var gL=z(()=>{pL()});function K7e(t){return function(){delete this[t]}}function Z7e(t,e){return function(){this[t]=e}}function Q7e(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function cX(t,e){return arguments.length>1?this.each((e==null?K7e:typeof e=="function"?Q7e:Z7e)(t,e)):this.node()[t]}var uX=z(()=>{});function hX(t){return t.trim().split(/^|\s+/)}function mL(t){return t.classList||new dX(t)}function dX(t){this._node=t,this._names=hX(t.getAttribute("class")||"")}function fX(t,e){for(var r=mL(t),i=-1,n=e.length;++i{dX.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}});function r_e(){this.textContent=""}function i_e(t){return function(){this.textContent=t}}function n_e(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function yX(t){return arguments.length?this.each(t==null?r_e:(typeof t=="function"?n_e:i_e)(t)):this.node().textContent}var vX=z(()=>{});function a_e(){this.innerHTML=""}function s_e(t){return function(){this.innerHTML=t}}function o_e(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function xX(t){return arguments.length?this.each(t==null?a_e:(typeof t=="function"?o_e:s_e)(t)):this.node().innerHTML}var bX=z(()=>{});function l_e(){this.nextSibling&&this.parentNode.appendChild(this)}function TX(){return this.each(l_e)}var kX=z(()=>{});function c_e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wX(){return this.each(c_e)}var CX=z(()=>{});function EX(t){var e=typeof t=="function"?t:Fw(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}var SX=z(()=>{cL()});function u_e(){return null}function AX(t,e){var r=typeof t=="function"?t:Fw(t),i=e==null?u_e:typeof e=="function"?e:Pp(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}var _X=z(()=>{cL();$w()});function h_e(){var t=this.parentNode;t&&t.removeChild(this)}function LX(){return this.each(h_e)}var RX=z(()=>{});function d_e(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function f_e(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function IX(t){return this.select(t?f_e:d_e)}var DX=z(()=>{});function MX(t){return arguments.length?this.property("__data__",t):this.node().__data__}var NX=z(()=>{});function p_e(t){return function(e){t.call(this,e,this.__data__)}}function g_e(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function m_e(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,a;r{});function BX(t,e,r){var i=Gw(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function v_e(t,e){return function(){return BX(this,t,e)}}function x_e(t,e){return function(){return BX(this,t,e.apply(this,arguments))}}function FX(t,e){return this.each((typeof e=="function"?x_e:v_e)(t,e))}var $X=z(()=>{pL()});function*zX(){for(var t=this._groups,e=0,r=t.length;e{});function kn(t,e){this._groups=t,this._parents=e}function GX(){return new kn([[document.documentElement]],yL)}function b_e(){return this}var yL,gh,Ql=z(()=>{wY();SY();_Y();RY();DY();BY();fL();$Y();qY();VY();UY();YY();jY();ZY();JY();tX();iX();aX();oX();gL();uX();mX();vX();bX();kX();CX();SX();_X();RX();DX();NX();PX();$X();qX();yL=[null];kn.prototype=GX.prototype={constructor:kn,select:kY,selectAll:EY,selectChild:AY,selectChildren:LY,filter:IY,data:PY,enter:MY,exit:FY,join:zY,merge:GY,selection:b_e,order:WY,sort:HY,call:XY,nodes:KY,node:QY,size:eX,empty:rX,each:nX,attr:sX,style:lX,property:cX,classed:gX,text:yX,html:xX,raise:TX,lower:wX,append:EX,insert:AX,remove:LX,clone:IX,datum:MX,on:OX,dispatch:FX,[Symbol.iterator]:zX};gh=GX});function Ze(t){return typeof t=="string"?new kn([[document.querySelector(t)]],[document.documentElement]):new kn([[t]],yL)}var VX=z(()=>{Ql()});var Jl=z(()=>{E2();Bw();VX();Ql();$w();hL();gL()});var WX=z(()=>{});function Bp(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function pm(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}var vL=z(()=>{});function Md(){}function HX(){return this.rgb().formatHex()}function __e(){return this.rgb().formatHex8()}function L_e(){return JX(this).formatHsl()}function YX(){return this.rgb().formatRgb()}function tc(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=T_e.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?XX(e):r===3?new Ma(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Vw(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Vw(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=k_e.exec(t))?new Ma(e[1],e[2],e[3],1):(e=w_e.exec(t))?new Ma(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=C_e.exec(t))?Vw(e[1],e[2],e[3],e[4]):(e=E_e.exec(t))?Vw(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=S_e.exec(t))?ZX(e[1],e[2]/100,e[3]/100,1):(e=A_e.exec(t))?ZX(e[1],e[2]/100,e[3]/100,e[4]):UX.hasOwnProperty(t)?XX(UX[t]):t==="transparent"?new Ma(NaN,NaN,NaN,0):null}function XX(t){return new Ma(t>>16&255,t>>8&255,t&255,1)}function Vw(t,e,r,i){return i<=0&&(t=e=r=NaN),new Ma(t,e,r,i)}function bL(t){return t instanceof Md||(t=tc(t)),t?(t=t.rgb(),new Ma(t.r,t.g,t.b,t.opacity)):new Ma}function mm(t,e,r,i){return arguments.length===1?bL(t):new Ma(t,e,r,i??1)}function Ma(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function jX(){return`#${Fp(this.r)}${Fp(this.g)}${Fp(this.b)}`}function R_e(){return`#${Fp(this.r)}${Fp(this.g)}${Fp(this.b)}${Fp((isNaN(this.opacity)?1:this.opacity)*255)}`}function KX(){let t=Hw(this.opacity);return`${t===1?"rgb(":"rgba("}${$p(this.r)}, ${$p(this.g)}, ${$p(this.b)}${t===1?")":`, ${t})`}`}function Hw(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function $p(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Fp(t){return t=$p(t),(t<16?"0":"")+t.toString(16)}function ZX(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ec(t,e,r,i)}function JX(t){if(t instanceof ec)return new ec(t.h,t.s,t.l,t.opacity);if(t instanceof Md||(t=tc(t)),!t)return new ec;if(t instanceof ec)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),a=Math.max(e,r,i),s=NaN,o=a-n,l=(a+n)/2;return o?(e===a?s=(r-i)/o+(r0&&l<1?0:s,new ec(s,o,l,t.opacity)}function ej(t,e,r,i){return arguments.length===1?JX(t):new ec(t,e,r,i??1)}function ec(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function QX(t){return t=(t||0)%360,t<0?t+360:t}function Ww(t){return Math.max(0,Math.min(1,t||0))}function xL(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var A2,Uw,gm,_2,Zc,T_e,k_e,w_e,C_e,E_e,S_e,A_e,UX,TL=z(()=>{vL();A2=.7,Uw=1/A2,gm="\\s*([+-]?\\d+)\\s*",_2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",T_e=/^#([0-9a-f]{3,8})$/,k_e=new RegExp(`^rgb\\(${gm},${gm},${gm}\\)$`),w_e=new RegExp(`^rgb\\(${Zc},${Zc},${Zc}\\)$`),C_e=new RegExp(`^rgba\\(${gm},${gm},${gm},${_2}\\)$`),E_e=new RegExp(`^rgba\\(${Zc},${Zc},${Zc},${_2}\\)$`),S_e=new RegExp(`^hsl\\(${_2},${Zc},${Zc}\\)$`),A_e=new RegExp(`^hsla\\(${_2},${Zc},${Zc},${_2}\\)$`),UX={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Bp(Md,tc,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:HX,formatHex:HX,formatHex8:__e,formatHsl:L_e,formatRgb:YX,toString:YX});Bp(Ma,mm,pm(Md,{brighter(t){return t=t==null?Uw:Math.pow(Uw,t),new Ma(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?A2:Math.pow(A2,t),new Ma(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ma($p(this.r),$p(this.g),$p(this.b),Hw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jX,formatHex:jX,formatHex8:R_e,formatRgb:KX,toString:KX}));Bp(ec,ej,pm(Md,{brighter(t){return t=t==null?Uw:Math.pow(Uw,t),new ec(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?A2:Math.pow(A2,t),new ec(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new Ma(xL(t>=240?t-240:t+120,n,i),xL(t,n,i),xL(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new ec(QX(this.h),Ww(this.s),Ww(this.l),Hw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Hw(this.opacity);return`${t===1?"hsl(":"hsla("}${QX(this.h)}, ${Ww(this.s)*100}%, ${Ww(this.l)*100}%${t===1?")":`, ${t})`}`}}))});var tj,rj,ij=z(()=>{tj=Math.PI/180,rj=180/Math.PI});function cj(t){if(t instanceof Qc)return new Qc(t.l,t.a,t.b,t.opacity);if(t instanceof mh)return uj(t);t instanceof Ma||(t=bL(t));var e=EL(t.r),r=EL(t.g),i=EL(t.b),n=kL((.2225045*e+.7168786*r+.0606169*i)/aj),a,s;return e===r&&r===i?a=s=n:(a=kL((.4360747*e+.3850649*r+.1430804*i)/nj),s=kL((.0139322*e+.0971045*r+.7141733*i)/sj)),new Qc(116*n-16,500*(a-n),200*(n-s),t.opacity)}function SL(t,e,r,i){return arguments.length===1?cj(t):new Qc(t,e,r,i??1)}function Qc(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}function kL(t){return t>I_e?Math.pow(t,1/3):t/lj+oj}function wL(t){return t>ym?t*t*t:lj*(t-oj)}function CL(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function EL(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function D_e(t){if(t instanceof mh)return new mh(t.h,t.c,t.l,t.opacity);if(t instanceof Qc||(t=cj(t)),t.a===0&&t.b===0)return new mh(NaN,0{vL();TL();ij();Yw=18,nj=.96422,aj=1,sj=.82521,oj=4/29,ym=6/29,lj=3*ym*ym,I_e=ym*ym*ym;Bp(Qc,SL,pm(Md,{brighter(t){return new Qc(this.l+Yw*(t??1),this.a,this.b,this.opacity)},darker(t){return new Qc(this.l-Yw*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=nj*wL(e),t=aj*wL(t),r=sj*wL(r),new Ma(CL(3.1338561*e-1.6168667*t-.4906146*r),CL(-.9787684*e+1.9161415*t+.033454*r),CL(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));Bp(mh,L2,pm(Md,{brighter(t){return new mh(this.h,this.c,this.l+Yw*(t??1),this.opacity)},darker(t){return new mh(this.h,this.c,this.l-Yw*(t??1),this.opacity)},rgb(){return uj(this).rgb()}}))});var vm=z(()=>{TL();hj()});function AL(t,e,r,i,n){var a=t*t,s=a*t;return((1-3*t+3*a-s)*e+(4-6*a+3*s)*r+(1+3*t+3*a-3*s)*i+s*n)/6}function dj(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[i],a=t[i+1],s=i>0?t[i-1]:2*n-a,o=i{});function fj(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),n=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],o=t[(i+2)%e];return AL((r-i/e)*e,n,a,s,o)}}var pj=z(()=>{_L()});var xm,LL=z(()=>{xm=t=>()=>t});function gj(t,e){return function(r){return t+r*e}}function M_e(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function mj(t,e){var r=e-t;return r?gj(t,r>180||r<-180?r-360*Math.round(r/360):r):xm(isNaN(t)?e:t)}function yj(t){return(t=+t)==1?yh:function(e,r){return r-e?M_e(e,r,t):xm(isNaN(e)?r:e)}}function yh(t,e){var r=e-t;return r?gj(t,r):xm(isNaN(t)?e:t)}var RL=z(()=>{LL()});function vj(t){return function(e){var r=e.length,i=new Array(r),n=new Array(r),a=new Array(r),s,o;for(s=0;s{vm();_L();pj();RL();zp=(function t(e){var r=yj(e);function i(n,a){var s=r((n=mm(n)).r,(a=mm(a)).r),o=r(n.g,a.g),l=r(n.b,a.b),u=yh(n.opacity,a.opacity);return function(h){return n.r=s(h),n.g=o(h),n.b=l(h),n.opacity=u(h),n+""}}return i.gamma=t,i})(1);N_e=vj(dj),O_e=vj(fj)});function xj(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(a){for(n=0;n{});function kj(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),a=new Array(r),s;for(s=0;s{Xw()});function Cj(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}var Ej=z(()=>{});function Na(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var R2=z(()=>{});function Sj(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=qp(t[n],e[n]):i[n]=e[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var Aj=z(()=>{Xw()});function P_e(t){return function(){return t}}function B_e(t){return function(e){return t(e)+""}}function I2(t,e){var r=ML.lastIndex=DL.lastIndex=0,i,n,a,s=-1,o=[],l=[];for(t=t+"",e=e+"";(i=ML.exec(t))&&(n=DL.exec(e));)(a=n.index)>r&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(i=i[0])===(n=n[0])?o[s]?o[s]+=n:o[++s]=n:(o[++s]=null,l.push({i:s,x:Na(i,n)})),r=DL.lastIndex;return r{R2();ML=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,DL=new RegExp(ML.source,"g")});function qp(t,e){var r=typeof e,i;return e==null||r==="boolean"?xm(e):(r==="number"?Na:r==="string"?(i=tc(e))?(e=i,zp):I2:e instanceof tc?zp:e instanceof Date?Cj:bj(e)?xj:Array.isArray(e)?kj:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Sj:Na)(t,e)}var Xw=z(()=>{vm();IL();wj();Ej();R2();Aj();NL();LL();Tj()});function OL(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var _j=z(()=>{});function PL(t,e,r,i,n,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),t*i{Lj=180/Math.PI,jw={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Ij(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?jw:PL(e.a,e.b,e.c,e.d,e.e,e.f)}function Dj(t){return t==null?jw:(Kw||(Kw=document.createElementNS("http://www.w3.org/2000/svg","g")),Kw.setAttribute("transform",t),(t=Kw.transform.baseVal.consolidate())?(t=t.matrix,PL(t.a,t.b,t.c,t.d,t.e,t.f)):jw)}var Kw,Mj=z(()=>{Rj()});function Nj(t,e,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,h,d,f,p,g){if(u!==d||h!==f){var m=p.push("translate(",null,e,null,r);g.push({i:m-4,x:Na(u,d)},{i:m-2,x:Na(h,f)})}else(d||f)&&p.push("translate("+d+e+f+r)}function s(u,h,d,f){u!==h?(u-h>180?h+=360:h-u>180&&(u+=360),f.push({i:d.push(n(d)+"rotate(",null,i)-2,x:Na(u,h)})):h&&d.push(n(d)+"rotate("+h+i)}function o(u,h,d,f){u!==h?f.push({i:d.push(n(d)+"skewX(",null,i)-2,x:Na(u,h)}):h&&d.push(n(d)+"skewX("+h+i)}function l(u,h,d,f,p,g){if(u!==d||h!==f){var m=p.push(n(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Na(u,d)},{i:m-2,x:Na(h,f)})}else(d!==1||f!==1)&&p.push(n(p)+"scale("+d+","+f+")")}return function(u,h){var d=[],f=[];return u=t(u),h=t(h),a(u.translateX,u.translateY,h.translateX,h.translateY,d,f),s(u.rotate,h.rotate,d,f),o(u.skewX,h.skewX,d,f),l(u.scaleX,u.scaleY,h.scaleX,h.scaleY,d,f),u=h=null,function(p){for(var g=-1,m=f.length,y;++g{R2();Mj();BL=Nj(Ij,"px, ","px)","deg)"),FL=Nj(Dj,", ",")",")")});function Pj(t){return function(e,r){var i=t((e=L2(e)).h,(r=L2(r)).h),n=yh(e.c,r.c),a=yh(e.l,r.l),s=yh(e.opacity,r.opacity);return function(o){return e.h=i(o),e.c=n(o),e.l=a(o),e.opacity=s(o),e+""}}}var $L,F_e,Bj=z(()=>{vm();RL();$L=Pj(mj),F_e=Pj(yh)});var bm=z(()=>{Xw();R2();_j();NL();Oj();IL();Bj()});function B2(){return Gp||(zj($_e),Gp=O2.now()+Jw)}function $_e(){Gp=0}function P2(){this._call=this._time=this._next=null}function eC(t,e,r){var i=new P2;return i.restart(t,e,r),i}function qj(){B2(),++Tm;for(var t=Zw,e;t;)(e=Gp-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Tm}function Fj(){Gp=(Qw=O2.now())+Jw,Tm=M2=0;try{qj()}finally{Tm=0,q_e(),Gp=0}}function z_e(){var t=O2.now(),e=t-Qw;e>$j&&(Jw-=e,Qw=t)}function q_e(){for(var t,e=Zw,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Zw=r);N2=t,zL(i)}function zL(t){if(!Tm){M2&&(M2=clearTimeout(M2));var e=t-Gp;e>24?(t<1/0&&(M2=setTimeout(Fj,t-O2.now()-Jw)),D2&&(D2=clearInterval(D2))):(D2||(Qw=O2.now(),D2=setInterval(z_e,$j)),Tm=1,zj(Fj))}}var Tm,M2,D2,$j,Zw,N2,Qw,Gp,Jw,O2,zj,qL=z(()=>{Tm=0,M2=0,D2=0,$j=1e3,Qw=0,Gp=0,Jw=0,O2=typeof performance=="object"&&performance.now?performance:Date,zj=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};P2.prototype=eC.prototype={constructor:P2,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?B2():+r)+(e==null?0:+e),!this._next&&N2!==this&&(N2?N2._next=this:Zw=this,N2=this),this._call=t,this._time=r,zL()},stop:function(){this._call&&(this._call=null,this._time=1/0,zL())}}});function tC(t,e,r){var i=new P2;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var Gj=z(()=>{qL()});var rC=z(()=>{qL();Gj()});function Nd(t,e,r,i,n,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;W_e(t,r,{name:e,index:i,group:n,on:G_e,tween:V_e,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Uj})}function $2(t,e){var r=ea(t,e);if(r.state>Uj)throw new Error("too late; already scheduled");return r}function Oa(t,e){var r=ea(t,e);if(r.state>iC)throw new Error("too late; already running");return r}function ea(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function W_e(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=eC(a,0,r.time);function a(u){r.state=Vj,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var h,d,f,p;if(r.state!==Vj)return l();for(h in i)if(p=i[h],p.name===r.name){if(p.state===iC)return tC(s);p.state===Wj?(p.state=F2,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[h]):+h{sL();rC();G_e=aL("start","end","cancel","interrupt"),V_e=[],Uj=0,Vj=1,nC=2,iC=3,Wj=4,aC=5,F2=6});function sC(t,e){var r=t.__transition,i,n,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((i=r[s]).name!==e){a=!1;continue}n=i.state>nC&&i.state{eo()});function Yj(t){return this.each(function(){sC(this,t)})}var Xj=z(()=>{Hj()});function U_e(t,e){var r,i;return function(){var n=Oa(this,t),a=n.tween;if(a!==r){i=r=a;for(var s=0,o=i.length;s{eo()});function oC(t,e){var r;return(typeof e=="number"?Na:e instanceof tc?zp:(r=tc(e))?(e=r,zp):I2)(t,e)}var GL=z(()=>{vm();bm()});function Y_e(t){return function(){this.removeAttribute(t)}}function X_e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function j_e(t,e,r){var i,n=r+"",a;return function(){var s=this.getAttribute(t);return s===n?null:s===i?a:a=e(i=s,r)}}function K_e(t,e,r){var i,n=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===i?a:a=e(i=s,r)}}function Z_e(t,e,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=e(i=s,o)))}}function Q_e(t,e,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=e(i=s,o)))}}function Kj(t,e){var r=ph(t),i=r==="transform"?FL:oC;return this.attrTween(t,typeof e=="function"?(r.local?Q_e:Z_e)(r,i,km(this,"attr."+t,e)):e==null?(r.local?X_e:Y_e)(r):(r.local?K_e:j_e)(r,i,e))}var Zj=z(()=>{bm();Jl();z2();GL()});function J_e(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function e8e(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function t8e(t,e){var r,i;function n(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&e8e(t,a)),r}return n._value=e,n}function r8e(t,e){var r,i;function n(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&J_e(t,a)),r}return n._value=e,n}function Qj(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=ph(t);return this.tween(r,(i.local?t8e:r8e)(i,e))}var Jj=z(()=>{Jl()});function i8e(t,e){return function(){$2(this,t).delay=+e.apply(this,arguments)}}function n8e(t,e){return e=+e,function(){$2(this,t).delay=e}}function eK(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?i8e:n8e)(e,t)):ea(this.node(),e).delay}var tK=z(()=>{eo()});function a8e(t,e){return function(){Oa(this,t).duration=+e.apply(this,arguments)}}function s8e(t,e){return e=+e,function(){Oa(this,t).duration=e}}function rK(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?a8e:s8e)(e,t)):ea(this.node(),e).duration}var iK=z(()=>{eo()});function o8e(t,e){if(typeof e!="function")throw new Error;return function(){Oa(this,t).ease=e}}function nK(t){var e=this._id;return arguments.length?this.each(o8e(e,t)):ea(this.node(),e).ease}var aK=z(()=>{eo()});function l8e(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Oa(this,t).ease=r}}function sK(t){if(typeof t!="function")throw new Error;return this.each(l8e(this._id,t))}var oK=z(()=>{eo()});function lK(t){typeof t!="function"&&(t=C2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n{Jl();Vp()});function uK(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,a=Math.min(i,n),s=new Array(i),o=0;o{Vp()});function c8e(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function u8e(t,e,r){var i,n,a=c8e(e)?$2:Oa;return function(){var s=a(this,t),o=s.on;o!==i&&(n=(i=o).copy()).on(e,r),s.on=n}}function dK(t,e){var r=this._id;return arguments.length<2?ea(this.node(),r).on.on(t):this.each(u8e(r,t,e))}var fK=z(()=>{eo()});function h8e(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function pK(){return this.on("end.remove",h8e(this._id))}var gK=z(()=>{});function mK(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Pp(t));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s{Jl();Vp();eo()});function vK(t){var e=this._name,r=this._id;typeof t!="function"&&(t=w2(t));for(var i=this._groups,n=i.length,a=[],s=[],o=0;o{Jl();Vp();eo()});function bK(){return new d8e(this._groups,this._parents)}var d8e,TK=z(()=>{Jl();d8e=gh.prototype.constructor});function f8e(t,e){var r,i,n;return function(){var a=Dd(this,t),s=(this.style.removeProperty(t),Dd(this,t));return a===s?null:a===r&&s===i?n:n=e(r=a,i=s)}}function kK(t){return function(){this.style.removeProperty(t)}}function p8e(t,e,r){var i,n=r+"",a;return function(){var s=Dd(this,t);return s===n?null:s===i?a:a=e(i=s,r)}}function g8e(t,e,r){var i,n,a;return function(){var s=Dd(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),Dd(this,t))),s===l?null:s===i&&l===n?a:(n=l,a=e(i=s,o))}}function m8e(t,e){var r,i,n,a="style."+e,s="end."+a,o;return function(){var l=Oa(this,t),u=l.on,h=l.value[a]==null?o||(o=kK(e)):void 0;(u!==r||n!==h)&&(i=(r=u).copy()).on(s,n=h),l.on=i}}function wK(t,e,r){var i=(t+="")=="transform"?BL:oC;return e==null?this.styleTween(t,f8e(t,i)).on("end.style."+t,kK(t)):typeof e=="function"?this.styleTween(t,g8e(t,i,km(this,"style."+t,e))).each(m8e(this._id,t)):this.styleTween(t,p8e(t,i,e),r).on("end.style."+t,null)}var CK=z(()=>{bm();Jl();eo();z2();GL()});function y8e(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function v8e(t,e,r){var i,n;function a(){var s=e.apply(this,arguments);return s!==n&&(i=(n=s)&&y8e(t,s,r)),i}return a._value=e,a}function EK(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,v8e(t,e,r??""))}var SK=z(()=>{});function x8e(t){return function(){this.textContent=t}}function b8e(t){return function(){var e=t(this);this.textContent=e??""}}function AK(t){return this.tween("text",typeof t=="function"?b8e(km(this,"text",t)):x8e(t==null?"":t+""))}var _K=z(()=>{z2()});function T8e(t){return function(e){this.textContent=t.call(this,e)}}function k8e(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&T8e(n)),e}return i._value=t,i}function LK(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,k8e(t))}var RK=z(()=>{});function IK(){for(var t=this._name,e=this._id,r=lC(),i=this._groups,n=i.length,a=0;a{Vp();eo()});function MK(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--n===0&&a()}};r.each(function(){var u=Oa(this,i),h=u.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),u.on=e}),n===0&&a()})}var NK=z(()=>{eo()});function As(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function OK(t){return gh().transition(t)}function lC(){return++w8e}var w8e,vh,Vp=z(()=>{Jl();Zj();Jj();tK();iK();aK();oK();cK();hK();fK();gK();yK();xK();TK();CK();SK();_K();RK();DK();z2();NK();w8e=0;vh=gh.prototype;As.prototype=OK.prototype={constructor:As,select:mK,selectAll:vK,selectChild:vh.selectChild,selectChildren:vh.selectChildren,filter:lK,merge:uK,selection:bK,transition:IK,call:vh.call,nodes:vh.nodes,node:vh.node,size:vh.size,empty:vh.empty,each:vh.each,on:dK,attr:Kj,attrTween:Qj,style:wK,styleTween:EK,text:AK,textTween:LK,remove:pK,tween:jj,delay:eK,duration:rK,ease:nK,easeVarying:sK,end:MK,[Symbol.iterator]:vh[Symbol.iterator]}});function cC(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var PK=z(()=>{});var VL=z(()=>{PK()});function E8e(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function BK(t){var e,r;t instanceof As?(e=t._id,t=t._name):(e=lC(),(r=C8e).time=B2(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,a=0;a{Vp();eo();VL();rC();C8e={time:null,delay:0,duration:250,ease:cC}});var $K=z(()=>{Jl();Xj();FK();gh.prototype.interrupt=Yj;gh.prototype.transition=BK});var uC=z(()=>{$K()});var zK=z(()=>{});var qK=z(()=>{});var GK=z(()=>{});function VK(t){return[+t[0],+t[1]]}function S8e(t){return[VK(t[0]),VK(t[1])]}function WL(t){return{type:t}}var Bbt,Fbt,$bt,zbt,qbt,Gbt,WK=z(()=>{uC();zK();qK();GK();({abs:Bbt,max:Fbt,min:$bt}=Math);zbt={name:"x",handles:["w","e"].map(WL),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},qbt={name:"y",handles:["n","s"].map(WL),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Gbt={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(WL),input:function(t){return t==null?null:S8e(t)},output:function(t){return t}}});var UK=z(()=>{WK()});function HK(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return HK;let r=10**e;return function(i){this._+=i[0];for(let n=1,a=i.length;n{UL=Math.PI,HL=2*UL,Wp=1e-6,A8e=HL-Wp;Up=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?HK:_8e(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,a,s){this._append`C${+e},${+r},${+i},${+n},${this._x1=+a},${this._y1=+s}`}arcTo(e,r,i,n,a){if(e=+e,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=i-e,u=n-r,h=s-e,d=o-r,f=h*h+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(f>Wp)if(!(Math.abs(d*l-u*h)>Wp)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-s,g=n-o,m=l*l+u*u,y=p*p+g*g,v=Math.sqrt(m),b=Math.sqrt(f),T=a*Math.tan((UL-Math.acos((m+f-y)/(2*v*b)))/2),C=T/b,k=T/v;Math.abs(C-1)>Wp&&this._append`L${e+C*h},${r+C*d}`,this._append`A${a},${a},0,0,${+(d*p>h*g)},${this._x1=e+k*l},${this._y1=r+k*u}`}}arc(e,r,i,n,a,s){if(e=+e,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),u=e+o,h=r+l,d=1^s,f=s?n-a:a-n;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>Wp||Math.abs(this._y1-h)>Wp)&&this._append`L${u},${h}`,i&&(f<0&&(f=f%HL+HL),f>A8e?this._append`A${i},${i},0,1,${d},${e-o},${r-l}A${i},${i},0,1,${d},${this._x1=u},${this._y1=h}`:f>Wp&&this._append`A${i},${i},0,${+(f>=UL)},${d},${this._x1=e+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};YK.prototype=Up.prototype});var YL=z(()=>{XK()});var jK=z(()=>{});var KK=z(()=>{});var ZK=z(()=>{});var QK=z(()=>{});var JK=z(()=>{});var eZ=z(()=>{});var tZ=z(()=>{});function rZ(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Hp(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}var q2=z(()=>{});function Jc(t){return t=Hp(Math.abs(t)),t?t[1]:NaN}var G2=z(()=>{q2()});function iZ(t,e){return function(r,i){for(var n=r.length,a=[],s=0,o=t[0],l=0;n>0&&o>0&&(l+o+1>i&&(o=Math.max(1,i-l)),a.push(r.substring(n-=o,n+o)),!((l+=o+1)>i));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}var nZ=z(()=>{});function aZ(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var sZ=z(()=>{});function Od(t){if(!(e=L8e.exec(t)))throw new Error("invalid format: "+t);var e;return new hC({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function hC(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}var L8e,XL=z(()=>{L8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Od.prototype=hC.prototype;hC.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function oZ(t){e:for(var e=t.length,r=1,i=-1,n;r0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t}var lZ=z(()=>{});function cZ(t,e){var r=Hp(t,e);if(!r)return V2=void 0,t.toPrecision(e);var i=r[0],n=r[1],a=n-(V2=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Hp(t,Math.max(0,e+a-1))[0]}var V2,jL=z(()=>{q2()});function KL(t,e){var r=Hp(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}var uZ=z(()=>{q2()});var ZL,hZ=z(()=>{q2();jL();uZ();ZL={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:rZ,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>KL(t*100,e),r:KL,s:cZ,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}});function QL(t){return t}var dZ=z(()=>{});function gZ(t){var e=t.grouping===void 0||t.thousands===void 0?QL:iZ(fZ.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?QL:aZ(fZ.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(d,f){d=Od(d);var p=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,b=d.width,T=d.comma,C=d.precision,k=d.trim,w=d.type;w==="n"?(T=!0,w="g"):ZL[w]||(C===void 0&&(C=12),k=!0,w="g"),(v||p==="0"&&g==="=")&&(v=!0,p="0",g="=");var E=(f&&f.prefix!==void 0?f.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),S=(y==="$"?i:/[%p]/.test(w)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),R=ZL[w],M=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function N(A){var L=E,_=S,I,D,P;if(w==="c")_=R(A)+_,A="";else{A=+A;var O=A<0||1/A<0;if(A=isNaN(A)?l:R(Math.abs(A),C),k&&(A=oZ(A)),O&&+A==0&&m!=="+"&&(O=!1),L=(O?m==="("?m:o:m==="-"||m==="("?"":m)+L,_=(w==="s"&&!isNaN(A)&&V2!==void 0?pZ[8+V2/3]:"")+_+(O&&m==="("?")":""),M){for(I=-1,D=A.length;++IP||P>57){_=(P===46?n+A.slice(I+1):A.slice(I))+_,A=A.slice(0,I);break}}}T&&!v&&(A=e(A,1/0));var F=L.length+A.length+_.length,$=F>1)+L+A+_+$.slice(F);break;default:A=$+L+A+_;break}return a(A)}return N.toString=function(){return d+""},N}function h(d,f){var p=Math.max(-8,Math.min(8,Math.floor(Jc(f)/3)))*3,g=Math.pow(10,-p),m=u((d=Od(d),d.type="f",d),{suffix:pZ[8+p/3]});return function(y){return m(g*y)}}return{format:u,formatPrefix:h}}var fZ,pZ,mZ=z(()=>{G2();nZ();sZ();XL();lZ();hZ();jL();dZ();fZ=Array.prototype.map,pZ=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"]});function JL(t){return dC=gZ(t),eu=dC.format,fC=dC.formatPrefix,dC}var dC,eu,fC,yZ=z(()=>{mZ();JL({thousands:",",grouping:[3],currency:["$",""]})});function eR(t){return Math.max(0,-Jc(Math.abs(t)))}var vZ=z(()=>{G2()});function tR(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jc(e)/3)))*3-Jc(Math.abs(t)))}var xZ=z(()=>{G2()});function rR(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Jc(e)-Jc(t))+1}var bZ=z(()=>{G2()});var iR=z(()=>{yZ();XL();vZ();xZ();bZ()});var TZ=z(()=>{});function R8e(t){var e=0,r=t.children,i=r&&r.length;if(!i)e=1;else for(;--i>=0;)e+=r[i].value;t.value=e}function kZ(){return this.eachAfter(R8e)}var wZ=z(()=>{});function CZ(t,e){let r=-1;for(let i of this)t.call(e,i,++r,this);return this}var EZ=z(()=>{});function SZ(t,e){for(var r=this,i=[r],n,a,s=-1;r=i.pop();)if(t.call(e,r,++s,this),n=r.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}var AZ=z(()=>{});function _Z(t,e){for(var r=this,i=[r],n=[],a,s,o,l=-1;r=i.pop();)if(n.push(r),a=r.children)for(s=0,o=a.length;s{});function RZ(t,e){let r=-1;for(let i of this)if(t.call(e,i,++r,this))return i}var IZ=z(()=>{});function DZ(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,i=e.children,n=i&&i.length;--n>=0;)r+=i[n].value;e.value=r})}var MZ=z(()=>{});function NZ(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}var OZ=z(()=>{});function PZ(t){for(var e=this,r=I8e(e,t),i=[e];e!==r;)e=e.parent,i.push(e);for(var n=i.length;t!==r;)i.splice(n,0,t),t=t.parent;return i}function I8e(t,e){if(t===e)return t;var r=t.ancestors(),i=e.ancestors(),n=null;for(t=r.pop(),e=i.pop();t===e;)n=t,t=r.pop(),e=i.pop();return n}var BZ=z(()=>{});function FZ(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}var $Z=z(()=>{});function zZ(){return Array.from(this)}var qZ=z(()=>{});function GZ(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}var VZ=z(()=>{});function WZ(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}var UZ=z(()=>{});function*HZ(){var t=this,e,r=[t],i,n,a;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,i=t.children)for(n=0,a=i.length;n{});function wm(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=N8e)):e===void 0&&(e=M8e);for(var r=new W2(t),i,n=[r],a,s,o,l;i=n.pop();)if((s=e(i.data))&&(l=(s=Array.from(s)).length))for(i.children=s,o=l-1;o>=0;--o)n.push(a=s[o]=new W2(s[o])),a.parent=i,a.depth=i.depth+1;return r.eachBefore(P8e)}function D8e(){return wm(this).eachBefore(O8e)}function M8e(t){return t.children}function N8e(t){return Array.isArray(t)?t[1]:null}function O8e(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function P8e(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function W2(t){this.data=t,this.depth=this.height=0,this.parent=null}var XZ=z(()=>{wZ();EZ();AZ();LZ();IZ();MZ();OZ();BZ();$Z();qZ();VZ();UZ();YZ();W2.prototype=wm.prototype={constructor:W2,count:kZ,each:CZ,eachAfter:_Z,eachBefore:SZ,find:RZ,sum:DZ,sort:NZ,path:PZ,ancestors:FZ,descendants:zZ,leaves:GZ,links:WZ,copy:D8e,[Symbol.iterator]:HZ}});function jZ(t){if(typeof t!="function")throw new Error;return t}var KZ=z(()=>{});function Cm(){return 0}function Em(t){return function(){return t}}var ZZ=z(()=>{});function QZ(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}var JZ=z(()=>{});function eQ(t,e,r,i,n){for(var a=t.children,s,o=-1,l=a.length,u=t.value&&(i-e)/t.value;++o{});function rQ(t,e,r,i,n){for(var a=t.children,s,o=-1,l=a.length,u=t.value&&(n-r)/t.value;++o{});function F8e(t,e,r,i,n,a){for(var s=[],o=e.children,l,u,h=0,d=0,f=o.length,p,g,m=e.value,y,v,b,T,C,k,w;hb&&(b=u),w=y*y*k,T=Math.max(b/w,w/v),T>C){y-=u;break}C=T}s.push(l={value:y,dice:p{tQ();iQ();B8e=(1+Math.sqrt(5))/2;nQ=(function t(e){function r(i,n,a,s,o){F8e(e,i,n,a,s,o)}return r.ratio=function(i){return t((i=+i)>1?i:1)},r})(B8e)});function nR(){var t=nQ,e=!1,r=1,i=1,n=[0],a=Cm,s=Cm,o=Cm,l=Cm,u=Cm;function h(f){return f.x0=f.y0=0,f.x1=r,f.y1=i,f.eachBefore(d),n=[0],e&&f.eachBefore(QZ),f}function d(f){var p=n[f.depth],g=f.x0+p,m=f.y0+p,y=f.x1-p,v=f.y1-p;y{JZ();aQ();KZ();ZZ()});var oQ=z(()=>{XZ();sQ()});var lQ=z(()=>{});var cQ=z(()=>{});function Pd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var U2=z(()=>{});function Po(){var t=new dm,e=[],r=[],i=aR;function n(a){let s=t.get(a);if(s===void 0){if(i!==aR)return i;t.set(a,s=e.push(a)-1)}return r[s%r.length]}return n.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new dm;for(let s of a)t.has(s)||t.set(s,e.push(s)-1);return n},n.range=function(a){return arguments.length?(r=Array.from(a),n):r.slice()},n.unknown=function(a){return arguments.length?(i=a,n):i},n.copy=function(){return Po(e,r).unknown(i)},Pd.apply(n,arguments),n}var aR,sR=z(()=>{Id();U2();aR=Symbol("implicit")});function Sm(){var t=Po().unknown(void 0),e=t.domain,r=t.range,i=0,n=1,a,s,o=!1,l=0,u=0,h=.5;delete t.unknown;function d(){var f=e().length,p=n{Id();U2();sR()});function oR(t){return function(){return t}}var hQ=z(()=>{});function lR(t){return+t}var dQ=z(()=>{});function Am(t){return t}function cR(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:oR(isNaN(e)?NaN:.5)}function $8e(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function z8e(t,e,r){var i=t[0],n=t[1],a=e[0],s=e[1];return n2?q8e:z8e,l=u=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=o(t.map(i),e,r)))(i(s(f)))}return d.invert=function(f){return s(n((u||(u=o(e,t.map(i),Na)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,lR),h()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=OL,h()},d.clamp=function(f){return arguments.length?(s=f?!0:Am,h()):s!==Am},d.interpolate=function(f){return arguments.length?(r=f,h()):r},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,p){return i=f,n=p,h()}}function H2(){return G8e()(Am,Am)}var fQ,uR=z(()=>{Id();bm();hQ();dQ();fQ=[0,1]});function hR(t,e,r,i){var n=fm(t,e,r),a;switch(i=Od(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(a=tR(n,s))&&(i.precision=a),fC(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=rR(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=eR(n))&&(i.precision=a-(i.type==="%")*2);break}}return eu(i)}var pQ=z(()=>{Id();iR()});function V8e(t){var e=t.domain;return t.ticks=function(r){var i=e();return Lw(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var n=e();return hR(n[0],n[n.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),n=0,a=i.length-1,s=i[n],o=i[a],l,u,h=10;for(o0;){if(u=k2(s,o,r),u===l)return i[n]=s,i[a]=o,e(i);if(u>0)s=Math.floor(s/u)*u,o=Math.ceil(o/u)*u;else if(u<0)s=Math.ceil(s*u)/u,o=Math.floor(o*u)/u;else break;l=u}return t},t}function rc(){var t=H2();return t.copy=function(){return pC(t,rc())},Pd.apply(t,arguments),V8e(t)}var gQ=z(()=>{Id();uR();U2();pQ()});function dR(t,e){t=t.slice();var r=0,i=t.length-1,n=t[r],a=t[i],s;return a{});function Ni(t,e,r,i){function n(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return n.floor=a=>(t(a=new Date(+a)),a),n.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),n.round=a=>{let s=n(a),o=n.ceil(a);return a-s(e(a=new Date(+a),s==null?1:Math.floor(s)),a),n.range=(a,s,o)=>{let l=[];if(a=n.ceil(a),o=o==null?1:Math.floor(o),!(a0))return l;let u;do l.push(u=new Date(+a)),e(a,o),t(a);while(uNi(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(n.count=(a,s)=>(fR.setTime(+a),pR.setTime(+s),t(fR),t(pR),Math.floor(r(fR,pR))),n.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?n.filter(i?s=>i(s)%a===0:s=>n.count(0,s)%a===0):n)),n}var fR,pR,xh=z(()=>{fR=new Date,pR=new Date});var tu,yQ,gR=z(()=>{xh();tu=Ni(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);tu.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ni(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):tu);yQ=tu.range});var Bo,vQ,mR=z(()=>{xh();Bo=Ni(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),vQ=Bo.range});var bh,W8e,gC,U8e,yR=z(()=>{xh();bh=Ni(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),W8e=bh.range,gC=Ni(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),U8e=gC.range});var Th,H8e,mC,Y8e,vR=z(()=>{xh();Th=Ni(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),H8e=Th.range,mC=Ni(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Y8e=mC.range});var hl,X8e,X2,j8e,yC,K8e,xR=z(()=>{xh();hl=Ni(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),X8e=hl.range,X2=Ni(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),j8e=X2.range,yC=Ni(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),K8e=yC.range});function jp(t){return Ni(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}function Kp(t){return Ni(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var ic,Bd,vC,xC,iu,bC,TC,bQ,Z8e,Q8e,J8e,eLe,tLe,rLe,Zp,_m,TQ,kQ,Fd,wQ,CQ,EQ,iLe,nLe,aLe,sLe,oLe,lLe,bR=z(()=>{xh();ic=jp(0),Bd=jp(1),vC=jp(2),xC=jp(3),iu=jp(4),bC=jp(5),TC=jp(6),bQ=ic.range,Z8e=Bd.range,Q8e=vC.range,J8e=xC.range,eLe=iu.range,tLe=bC.range,rLe=TC.range;Zp=Kp(0),_m=Kp(1),TQ=Kp(2),kQ=Kp(3),Fd=Kp(4),wQ=Kp(5),CQ=Kp(6),EQ=Zp.range,iLe=_m.range,nLe=TQ.range,aLe=kQ.range,sLe=Fd.range,oLe=wQ.range,lLe=CQ.range});var kh,cLe,kC,uLe,TR=z(()=>{xh();kh=Ni(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),cLe=kh.range,kC=Ni(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),uLe=kC.range});var Fo,hLe,nc,dLe,kR=z(()=>{xh();Fo=Ni(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Fo.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ni(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});hLe=Fo.range,nc=Ni(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());nc.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ni(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});dLe=nc.range});function AQ(t,e,r,i,n,a){let s=[[Bo,1,1e3],[Bo,5,5*1e3],[Bo,15,15*1e3],[Bo,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function o(u,h,d){let f=hy).right(s,f);if(p===s.length)return t.every(fm(u/31536e6,h/31536e6,d));if(p===0)return tu.every(Math.max(fm(u,h,d),1));let[g,m]=s[f/s[p-1][2]{Id();gR();mR();yR();vR();xR();bR();TR();kR();[pLe,gLe]=AQ(nc,kC,Zp,yC,mC,gC),[wR,CR]=AQ(Fo,kh,ic,hl,Th,bh)});var wC=z(()=>{gR();mR();yR();vR();xR();bR();TR();kR();_Q()});function ER(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function SR(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function j2(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function AR(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,a=t.days,s=t.shortDays,o=t.months,l=t.shortMonths,u=K2(n),h=Z2(n),d=K2(a),f=Z2(a),p=K2(s),g=Z2(s),m=K2(o),y=Z2(o),v=K2(l),b=Z2(l),T={a:P,A:O,b:F,B:$,c:null,d:NQ,e:NQ,f:FLe,g:XLe,G:KLe,H:OLe,I:PLe,j:BLe,L:$Q,m:$Le,M:zLe,p:B,q:G,Q:BQ,s:FQ,S:qLe,u:GLe,U:VLe,V:WLe,w:ULe,W:HLe,x:null,X:null,y:YLe,Y:jLe,Z:ZLe,"%":PQ},C={a:H,A:X,b:U,B:Z,c:null,d:OQ,e:OQ,f:tRe,g:hRe,G:fRe,H:QLe,I:JLe,j:eRe,L:qQ,m:rRe,M:iRe,p:Y,q:se,Q:BQ,s:FQ,S:nRe,u:aRe,U:sRe,V:oRe,w:lRe,W:cRe,x:null,X:null,y:uRe,Y:dRe,Z:pRe,"%":PQ},k={a:M,A:N,b:A,B:L,c:_,d:DQ,e:DQ,f:ILe,g:IQ,G:RQ,H:MQ,I:MQ,j:ALe,L:RLe,m:SLe,M:_Le,p:R,q:ELe,Q:MLe,s:NLe,S:LLe,u:bLe,U:TLe,V:kLe,w:xLe,W:wLe,x:I,X:D,y:IQ,Y:RQ,Z:CLe,"%":DLe};T.x=w(r,T),T.X=w(i,T),T.c=w(e,T),C.x=w(r,C),C.X=w(i,C),C.c=w(e,C);function w(J,te){return function(re){var ee=[],xe=-1,pe=0,Se=J.length,Ne,Ce,we;for(re instanceof Date||(re=new Date(+re));++xe53)return null;"w"in ee||(ee.w=1),"Z"in ee?(pe=SR(j2(ee.y,0,1)),Se=pe.getUTCDay(),pe=Se>4||Se===0?_m.ceil(pe):_m(pe),pe=X2.offset(pe,(ee.V-1)*7),ee.y=pe.getUTCFullYear(),ee.m=pe.getUTCMonth(),ee.d=pe.getUTCDate()+(ee.w+6)%7):(pe=ER(j2(ee.y,0,1)),Se=pe.getDay(),pe=Se>4||Se===0?Bd.ceil(pe):Bd(pe),pe=hl.offset(pe,(ee.V-1)*7),ee.y=pe.getFullYear(),ee.m=pe.getMonth(),ee.d=pe.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),Se="Z"in ee?SR(j2(ee.y,0,1)).getUTCDay():ER(j2(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(Se+5)%7:ee.w+ee.U*7-(Se+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,SR(ee)):ER(ee)}}function S(J,te,re,ee){for(var xe=0,pe=te.length,Se=re.length,Ne,Ce;xe=Se)return-1;if(Ne=te.charCodeAt(xe++),Ne===37){if(Ne=te.charAt(xe++),Ce=k[Ne in LQ?te.charAt(xe++):Ne],!Ce||(ee=Ce(J,re,ee))<0)return-1}else if(Ne!=re.charCodeAt(ee++))return-1}return ee}function R(J,te,re){var ee=u.exec(te.slice(re));return ee?(J.p=h.get(ee[0].toLowerCase()),re+ee[0].length):-1}function M(J,te,re){var ee=p.exec(te.slice(re));return ee?(J.w=g.get(ee[0].toLowerCase()),re+ee[0].length):-1}function N(J,te,re){var ee=d.exec(te.slice(re));return ee?(J.w=f.get(ee[0].toLowerCase()),re+ee[0].length):-1}function A(J,te,re){var ee=v.exec(te.slice(re));return ee?(J.m=b.get(ee[0].toLowerCase()),re+ee[0].length):-1}function L(J,te,re){var ee=m.exec(te.slice(re));return ee?(J.m=y.get(ee[0].toLowerCase()),re+ee[0].length):-1}function _(J,te,re){return S(J,e,te,re)}function I(J,te,re){return S(J,r,te,re)}function D(J,te,re){return S(J,i,te,re)}function P(J){return s[J.getDay()]}function O(J){return a[J.getDay()]}function F(J){return l[J.getMonth()]}function $(J){return o[J.getMonth()]}function B(J){return n[+(J.getHours()>=12)]}function G(J){return 1+~~(J.getMonth()/3)}function H(J){return s[J.getUTCDay()]}function X(J){return a[J.getUTCDay()]}function U(J){return l[J.getUTCMonth()]}function Z(J){return o[J.getUTCMonth()]}function Y(J){return n[+(J.getUTCHours()>=12)]}function se(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var te=w(J+="",T);return te.toString=function(){return J},te},parse:function(J){var te=E(J+="",!1);return te.toString=function(){return J},te},utcFormat:function(J){var te=w(J+="",C);return te.toString=function(){return J},te},utcParse:function(J){var te=E(J+="",!0);return te.toString=function(){return J},te}}}function ni(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",a=n.length;return i+(a[e.toLowerCase(),r]))}function xLe(t,e,r){var i=ga.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function bLe(t,e,r){var i=ga.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function TLe(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function kLe(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function wLe(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function RQ(t,e,r){var i=ga.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function IQ(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function CLe(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function ELe(t,e,r){var i=ga.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function SLe(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function DQ(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function ALe(t,e,r){var i=ga.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function MQ(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function _Le(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function LLe(t,e,r){var i=ga.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function RLe(t,e,r){var i=ga.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function ILe(t,e,r){var i=ga.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function DLe(t,e,r){var i=mLe.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function MLe(t,e,r){var i=ga.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function NLe(t,e,r){var i=ga.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function NQ(t,e){return ni(t.getDate(),e,2)}function OLe(t,e){return ni(t.getHours(),e,2)}function PLe(t,e){return ni(t.getHours()%12||12,e,2)}function BLe(t,e){return ni(1+hl.count(Fo(t),t),e,3)}function $Q(t,e){return ni(t.getMilliseconds(),e,3)}function FLe(t,e){return $Q(t,e)+"000"}function $Le(t,e){return ni(t.getMonth()+1,e,2)}function zLe(t,e){return ni(t.getMinutes(),e,2)}function qLe(t,e){return ni(t.getSeconds(),e,2)}function GLe(t){var e=t.getDay();return e===0?7:e}function VLe(t,e){return ni(ic.count(Fo(t)-1,t),e,2)}function zQ(t){var e=t.getDay();return e>=4||e===0?iu(t):iu.ceil(t)}function WLe(t,e){return t=zQ(t),ni(iu.count(Fo(t),t)+(Fo(t).getDay()===4),e,2)}function ULe(t){return t.getDay()}function HLe(t,e){return ni(Bd.count(Fo(t)-1,t),e,2)}function YLe(t,e){return ni(t.getFullYear()%100,e,2)}function XLe(t,e){return t=zQ(t),ni(t.getFullYear()%100,e,2)}function jLe(t,e){return ni(t.getFullYear()%1e4,e,4)}function KLe(t,e){var r=t.getDay();return t=r>=4||r===0?iu(t):iu.ceil(t),ni(t.getFullYear()%1e4,e,4)}function ZLe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ni(e/60|0,"0",2)+ni(e%60,"0",2)}function OQ(t,e){return ni(t.getUTCDate(),e,2)}function QLe(t,e){return ni(t.getUTCHours(),e,2)}function JLe(t,e){return ni(t.getUTCHours()%12||12,e,2)}function eRe(t,e){return ni(1+X2.count(nc(t),t),e,3)}function qQ(t,e){return ni(t.getUTCMilliseconds(),e,3)}function tRe(t,e){return qQ(t,e)+"000"}function rRe(t,e){return ni(t.getUTCMonth()+1,e,2)}function iRe(t,e){return ni(t.getUTCMinutes(),e,2)}function nRe(t,e){return ni(t.getUTCSeconds(),e,2)}function aRe(t){var e=t.getUTCDay();return e===0?7:e}function sRe(t,e){return ni(Zp.count(nc(t)-1,t),e,2)}function GQ(t){var e=t.getUTCDay();return e>=4||e===0?Fd(t):Fd.ceil(t)}function oRe(t,e){return t=GQ(t),ni(Fd.count(nc(t),t)+(nc(t).getUTCDay()===4),e,2)}function lRe(t){return t.getUTCDay()}function cRe(t,e){return ni(_m.count(nc(t)-1,t),e,2)}function uRe(t,e){return ni(t.getUTCFullYear()%100,e,2)}function hRe(t,e){return t=GQ(t),ni(t.getUTCFullYear()%100,e,2)}function dRe(t,e){return ni(t.getUTCFullYear()%1e4,e,4)}function fRe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Fd(t):Fd.ceil(t),ni(t.getUTCFullYear()%1e4,e,4)}function pRe(){return"+0000"}function PQ(){return"%"}function BQ(t){return+t}function FQ(t){return Math.floor(+t/1e3)}var LQ,ga,mLe,yLe,VQ=z(()=>{wC();LQ={"-":"",_:" ",0:"0"},ga=/^\s*\d+/,mLe=/^%/,yLe=/[\\^$*+?|[\]().{}]/g});function _R(t){return Lm=AR(t),Qp=Lm.format,WQ=Lm.parse,UQ=Lm.utcFormat,HQ=Lm.utcParse,Lm}var Lm,Qp,WQ,UQ,HQ,YQ=z(()=>{VQ();_R({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})});var LR=z(()=>{YQ()});function gRe(t){return new Date(t)}function mRe(t){return t instanceof Date?+t:+new Date(+t)}function XQ(t,e,r,i,n,a,s,o,l,u){var h=H2(),d=h.invert,f=h.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),b=u("%b %d"),T=u("%B"),C=u("%Y");function k(w){return(l(w){wC();LR();uR();U2();mQ()});var KQ=z(()=>{uQ();gQ();sR();jQ()});function ZQ(t){for(var e=t.length/6|0,r=new Array(e),i=0;i{});var RR,JQ=z(()=>{QQ();RR=ZQ("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var eJ=z(()=>{JQ()});function en(t){return function(){return t}}var EC=z(()=>{});function rJ(t){return t>1?0:t<-1?Rm:Math.acos(t)}function DR(t){return t>=1?Q2:t<=-1?-Q2:Math.asin(t)}var IR,Pa,$d,tJ,SC,ac,Jp,ma,Rm,Q2,Im,AC=z(()=>{IR=Math.abs,Pa=Math.atan2,$d=Math.cos,tJ=Math.max,SC=Math.min,ac=Math.sin,Jp=Math.sqrt,ma=1e-12,Rm=Math.PI,Q2=Rm/2,Im=2*Rm});function _C(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new Up(e)}var MR=z(()=>{YL()});function yRe(t){return t.innerRadius}function vRe(t){return t.outerRadius}function xRe(t){return t.startAngle}function bRe(t){return t.endAngle}function TRe(t){return t&&t.padAngle}function kRe(t,e,r,i,n,a,s,o){var l=r-t,u=i-e,h=s-n,d=o-a,f=d*l-h*u;if(!(f*f_*_+I*I&&(S=M,R=N),{cx:S,cy:R,x01:-h,y01:-d,x11:S*(n/k-1),y11:R*(n/k-1)}}function nu(){var t=yRe,e=vRe,r=en(0),i=null,n=xRe,a=bRe,s=TRe,o=null,l=_C(u);function u(){var h,d,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=n.apply(this,arguments)-Q2,m=a.apply(this,arguments)-Q2,y=IR(m-g),v=m>g;if(o||(o=h=l()),pma))o.moveTo(0,0);else if(y>Im-ma)o.moveTo(p*$d(g),p*ac(g)),o.arc(0,0,p,g,m,!v),f>ma&&(o.moveTo(f*$d(m),f*ac(m)),o.arc(0,0,f,m,g,v));else{var b=g,T=m,C=g,k=m,w=y,E=y,S=s.apply(this,arguments)/2,R=S>ma&&(i?+i.apply(this,arguments):Jp(f*f+p*p)),M=SC(IR(p-f)/2,+r.apply(this,arguments)),N=M,A=M,L,_;if(R>ma){var I=DR(R/f*ac(S)),D=DR(R/p*ac(S));(w-=I*2)>ma?(I*=v?1:-1,C+=I,k-=I):(w=0,C=k=(g+m)/2),(E-=D*2)>ma?(D*=v?1:-1,b+=D,T-=D):(E=0,b=T=(g+m)/2)}var P=p*$d(b),O=p*ac(b),F=f*$d(k),$=f*ac(k);if(M>ma){var B=p*$d(T),G=p*ac(T),H=f*$d(C),X=f*ac(C),U;if(yma?A>ma?(L=LC(H,X,P,O,p,A,v),_=LC(B,G,F,$,p,A,v),o.moveTo(L.cx+L.x01,L.cy+L.y01),Ama)||!(w>ma)?o.lineTo(F,$):N>ma?(L=LC(F,$,B,G,f,-N,v),_=LC(P,O,H,X,f,-N,v),o.lineTo(L.cx+L.x01,L.cy+L.y01),N{EC();AC();MR()});function RC(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}var kwt,NR=z(()=>{kwt=Array.prototype.slice});function nJ(t){this._context=t}function wh(t){return new nJ(t)}var OR=z(()=>{nJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}}});function aJ(t){return t[0]}function sJ(t){return t[1]}var oJ=z(()=>{});function au(t,e){var r=en(!0),i=null,n=wh,a=null,s=_C(o);t=typeof t=="function"?t:t===void 0?aJ:en(t),e=typeof e=="function"?e:e===void 0?sJ:en(e);function o(l){var u,h=(l=RC(l)).length,d,f=!1,p;for(i==null&&(a=n(p=s())),u=0;u<=h;++u)!(u{NR();EC();OR();MR();oJ()});function cJ(t,e){return et?1:e>=t?0:NaN}var uJ=z(()=>{});function hJ(t){return t}var dJ=z(()=>{});function PR(){var t=hJ,e=cJ,r=null,i=en(0),n=en(Im),a=en(0);function s(o){var l,u=(o=RC(o)).length,h,d,f=0,p=new Array(u),g=new Array(u),m=+i.apply(this,arguments),y=Math.min(Im,Math.max(-Im,n.apply(this,arguments)-m)),v,b=Math.min(Math.abs(y)/u,a.apply(this,arguments)),T=b*(y<0?-1:1),C;for(l=0;l0&&(f+=C);for(e!=null?p.sort(function(k,w){return e(g[k],g[w])}):r!=null&&p.sort(function(k,w){return r(o[k],o[w])}),l=0,d=f?(y-u*T)/f:0;l0?C*d:0)+T,g[h]={data:o[h],index:l,value:C,startAngle:m,endAngle:v,padAngle:b};return g}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:en(+o),s):t},s.sortValues=function(o){return arguments.length?(e=o,r=null,s):e},s.sort=function(o){return arguments.length?(r=o,e=null,s):r},s.startAngle=function(o){return arguments.length?(i=typeof o=="function"?o:en(+o),s):i},s.endAngle=function(o){return arguments.length?(n=typeof o=="function"?o:en(+o),s):n},s.padAngle=function(o){return arguments.length?(a=typeof o=="function"?o:en(+o),s):a},s}var fJ=z(()=>{NR();EC();uJ();dJ();AC()});function J2(t){return new IC(t,!0)}function ex(t){return new IC(t,!1)}var IC,pJ=z(()=>{IC=class{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}});function dl(){}var tx=z(()=>{});function Dm(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function rx(t){this._context=t}function su(t){return new rx(t)}var ix=z(()=>{rx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Dm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Dm(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}});function gJ(t){this._context=t}function BR(t){return new gJ(t)}var mJ=z(()=>{tx();ix();gJ.prototype={areaStart:dl,areaEnd:dl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Dm(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}});function yJ(t){this._context=t}function FR(t){return new yJ(t)}var vJ=z(()=>{ix();yJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Dm(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}});function xJ(t,e){this._basis=new rx(t),this._beta=e}var $R,bJ=z(()=>{ix();xJ.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],n=e[0],a=t[r]-i,s=e[r]-n,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(i+l*a),this._beta*e[o]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};$R=(function t(e){function r(i){return e===1?new rx(i):new xJ(i,e)}return r.beta=function(i){return t(+i)},r})(.85)});function Mm(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function DC(t,e){this._context=t,this._k=(1-e)/6}var nx,ax=z(()=>{DC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Mm(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Mm(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};nx=(function t(e){function r(i){return new DC(i,e)}return r.tension=function(i){return t(+i)},r})(0)});function MC(t,e){this._context=t,this._k=(1-e)/6}var zR,qR=z(()=>{tx();ax();MC.prototype={areaStart:dl,areaEnd:dl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Mm(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};zR=(function t(e){function r(i){return new MC(i,e)}return r.tension=function(i){return t(+i)},r})(0)});function NC(t,e){this._context=t,this._k=(1-e)/6}var GR,VR=z(()=>{ax();NC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mm(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};GR=(function t(e){function r(i){return new NC(i,e)}return r.tension=function(i){return t(+i)},r})(0)});function sx(t,e,r){var i=t._x1,n=t._y1,a=t._x2,s=t._y2;if(t._l01_a>ma){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>ma){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*u+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(i,n,a,s,t._x2,t._y2)}function TJ(t,e){this._context=t,this._alpha=e}var ox,OC=z(()=>{AC();ax();TJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:sx(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};ox=(function t(e){function r(i){return e?new TJ(i,e):new DC(i,0)}return r.alpha=function(i){return t(+i)},r})(.5)});function kJ(t,e){this._context=t,this._alpha=e}var WR,wJ=z(()=>{qR();tx();OC();kJ.prototype={areaStart:dl,areaEnd:dl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:sx(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};WR=(function t(e){function r(i){return e?new kJ(i,e):new MC(i,0)}return r.alpha=function(i){return t(+i)},r})(.5)});function CJ(t,e){this._context=t,this._alpha=e}var UR,EJ=z(()=>{VR();OC();CJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sx(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};UR=(function t(e){function r(i){return e?new CJ(i,e):new NC(i,0)}return r.alpha=function(i){return t(+i)},r})(.5)});function SJ(t){this._context=t}function HR(t){return new SJ(t)}var AJ=z(()=>{tx();SJ.prototype={areaStart:dl,areaEnd:dl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}}});function _J(t){return t<0?-1:1}function LJ(t,e,r){var i=t._x1-t._x0,n=e-t._x1,a=(t._y1-t._y0)/(i||n<0&&-0),s=(r-t._y1)/(n||i<0&&-0),o=(a*n+s*i)/(i+n);return(_J(a)+_J(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function RJ(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function YR(t,e,r){var i=t._x0,n=t._y0,a=t._x1,s=t._y1,o=(a-i)/3;t._context.bezierCurveTo(i+o,n+o*e,a-o,s-o*r,a,s)}function PC(t){this._context=t}function IJ(t){this._context=new DJ(t)}function DJ(t){this._context=t}function lx(t){return new PC(t)}function cx(t){return new IJ(t)}var MJ=z(()=>{PC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:YR(this,this._t0,RJ(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,YR(this,RJ(this,r=LJ(this,t,e)),r);break;default:YR(this,this._t0,r=LJ(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};(IJ.prototype=Object.create(PC.prototype)).point=function(t,e){PC.prototype.point.call(this,e,t)};DJ.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,a){this._context.bezierCurveTo(e,t,i,r,a,n)}}});function OJ(t){this._context=t}function NJ(t){var e,r=t.length-1,i,n=new Array(r),a=new Array(r),s=new Array(r);for(n[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e=0;--e)n[e]=(s[e]-n[e+1])/a[e];for(a[r-1]=(t[r]+n[r-1])/2,e=0;e{OJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=NJ(t),n=NJ(e),a=0,s=1;s{BC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}}});var FJ=z(()=>{iJ();lJ();fJ();mJ();vJ();ix();pJ();bJ();qR();VR();ax();wJ();EJ();OC();AJ();OR();MJ();PJ();BJ()});var $J=z(()=>{});var zJ=z(()=>{});function zd(t,e,r){this.k=t,this.x=e,this.y=r}function jR(t){for(;!t.__zoom;)if(!(t=t.parentNode))return XR;return t.__zoom}var XR,KR=z(()=>{zd.prototype={constructor:zd,scale:function(t){return t===1?this:new zd(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new zd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};XR=new zd(1,0,0);jR.prototype=zd.prototype});var qJ=z(()=>{});var GJ=z(()=>{uC();$J();zJ();KR();qJ()});var VJ=z(()=>{GJ();KR()});var Lr=z(()=>{Id();vY();UK();jK();vm();KK();ZK();sL();WX();QK();VL();JK();tZ();iR();TZ();oQ();bm();YL();lQ();eZ();cQ();KQ();eJ();Jl();FJ();wC();LR();rC();uC();VJ()});var Li,_s=z(()=>{_r();ir();Lr();Li=x(t=>{let{securityLevel:e}=be(),r=Ze("body");if(e==="sandbox"){let a=Ze(`#i${t}`).node()?.contentDocument??document;r=Ze(a.body)}return r.select(`#${t}`)},"selectSvgElement")});function f9(t){return typeof t>"u"||t===null}function HJ(t){return typeof t=="object"&&t!==null}function YJ(t){return Array.isArray(t)?t:f9(t)?[]:[t]}function XJ(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;ro&&(a=" ... ",e=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+s,pos:i-e+a.length}}function $C(t,e){return ta.repeat(" ",e-t.length)+t}function ZJ(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",l,u,h=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)u=FC(t.buffer,i[s-l],n[s-l],t.position-(i[s]-i[s-l]),d),o=ta.repeat(" ",e.indent)+$C((t.line-l+1).toString(),h)+" | "+u.str+` `+o;for(u=FC(t.buffer,i[s],n[s],t.position,d),o+=ta.repeat(" ",e.indent)+$C((t.line+1).toString(),h)+" | "+u.str+` `,o+=ta.repeat("-",e.indent+h+3+u.pos)+`^ `,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)u=FC(t.buffer,i[s+l],n[s+l],t.position-(i[s]-i[s+l]),d),o+=ta.repeat(" ",e.indent)+$C((t.line+l+1).toString(),h)+" | "+u.str+` `;return o.replace(/\n$/,"")}function QJ(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function JJ(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(RRe.indexOf(r)===-1)throw new to('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=QJ(e.styleAliases||null),IRe.indexOf(this.kind)===-1)throw new to('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function QR(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}function eee(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(x(i,"collectType"),e=0,r=arguments.length;e=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}function gee(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ta.isNegativeZero(t))return"-0.0";return r=t.toString(10),qRe.test(r)?r.replace("e",".e"):r}function mee(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ta.isNegativeZero(t))}function bee(t){return t===null?!1:vee.exec(t)!==null||xee.exec(t)!==null}function Tee(t){var e,r,i,n,a,s,o,l=0,u=null,h,d,f;if(e=vee.exec(t),e===null&&(e=xee.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],d=+(e[11]||0),u=(h*60+d)*6e4,e[9]==="-"&&(u=-u)),f=new Date(Date.UTC(r,i,n,a,s,o,l)),u&&f.setTime(f.getTime()-u),f}function kee(t){return t.toISOString()}function wee(t){return t==="<<"||t===null}function Cee(t){if(t===null)return!1;var e,r,i=0,n=t.length,a=g9;for(r=0;r64)){if(e<0)return!1;i+=6}return i%8===0}function Eee(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=g9,s=0,o=[];for(e=0;e>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(i.charAt(e));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}function See(t){var e="",r=0,i,n,a=t.length,s=g9;for(i=0;i>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[i];return n=a%3,n===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):n===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):n===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function Aee(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}function _ee(t){if(t===null)return!0;var e=[],r,i,n,a,s,o=t;for(r=0,i=o.length;r>10)+55296,(t-65536&1023)+56320)}function m9(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}function Uee(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Nee,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function y9(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=LRe(r),new to(e,r)}function Zt(t,e){throw y9(t,e)}function px(t,e){t.onWarning&&t.onWarning.call(null,y9(t,e))}function Ch(t,e,r,i){var n,a,s,o;if(e1&&(t.result+=ta.repeat(` `,e-1))}function Hee(t,e,r){var i,n,a,s,o,l,u,h,d=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),Ls(p)||t0(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),Ls(n)||r&&t0(n)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),Ls(n)||r&&t0(n))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Ls(i))break}else{if(t.position===t.lineStart&&vx(t)||r&&t0(p))break;if(sc(p))if(l=t.line,u=t.lineStart,h=t.lineIndent,In(t,!1,-1),t.lineIndent>=e){o=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=u,t.lineIndent=h;break}}o&&(Ch(t,a,s,!1),YC(t,t.line-l),a=s=t.position,o=!1),qd(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return Ch(t,a,s,!1),t.result?!0:(t.kind=d,t.result=f,!1)}function Yee(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ch(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else sc(r)?(Ch(t,i,n,!0),YC(t,In(t,!1,e)),i=n=t.position):t.position===t.lineStart&&vx(t)?Zt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Zt(t,"unexpected end of the stream within a single quoted scalar")}function Xee(t,e){var r,i,n,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return Ch(t,r,t.position,!0),t.position++,!0;if(o===92){if(Ch(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),sc(o))In(t,!1,e);else if(o<256&&Vee[o])t.result+=Wee[o],t.position++;else if((s=zee(o))>0){for(n=s,a=0;n>0;n--)o=t.input.charCodeAt(++t.position),(s=$ee(o))>=0?a=(a<<4)+s:Zt(t,"expected hexadecimal character");t.result+=Gee(a),t.position++}else Zt(t,"unknown escape sequence");r=i=t.position}else sc(o)?(Ch(t,r,i,!0),YC(t,In(t,!1,e)),r=i=t.position):t.position===t.lineStart&&vx(t)?Zt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Zt(t,"unexpected end of the stream within a double quoted scalar")}function jee(t,e){var r=!0,i,n,a,s=t.tag,o,l=t.anchor,u,h,d,f,p,g=Object.create(null),m,y,v,b;if(b=t.input.charCodeAt(t.position),b===91)h=93,p=!1,o=[];else if(b===123)h=125,p=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),b=t.input.charCodeAt(++t.position);b!==0;){if(In(t,!0,e),b=t.input.charCodeAt(t.position),b===h)return t.position++,t.tag=s,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=o,!0;r?b===44&&Zt(t,"expected the node content, but found ','"):Zt(t,"missed comma between flow collection entries"),y=m=v=null,d=f=!1,b===63&&(u=t.input.charCodeAt(t.position+1),Ls(u)&&(d=f=!0,t.position++,In(t,!0,e))),i=t.line,n=t.lineStart,a=t.position,i0(t,e,qC,!1,!0),y=t.tag,m=t.result,In(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===i)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),In(t,!0,e),i0(t,e,qC,!1,!0),v=t.result),p?r0(t,o,g,y,m,v,i,n,a):d?o.push(r0(t,null,g,y,m,v,i,n,a)):o.push(m),In(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Zt(t,"unexpected end of the stream within a flow collection")}function Kee(t,e){var r,i,n=ZR,a=!1,s=!1,o=e,l=0,u=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)i=!1;else if(d===62)i=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)ZR===n?n=d===43?WJ:e9e:Zt(t,"repeat of a chomping mode identifier");else if((h=qee(d))>=0)h===0?Zt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Zt(t,"repeat of an indentation width identifier"):(o=e+h-1,s=!0);else break;if(qd(d)){do d=t.input.charCodeAt(++t.position);while(qd(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!sc(d)&&d!==0)}for(;d!==0;){for(HC(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!s||t.lineIndento&&(o=t.lineIndent),sc(d)){l++;continue}if(t.lineIndente)&&l!==0)Zt(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(y&&(s=t.line,o=t.lineStart,l=t.position),i0(t,e,GC,!0,n)&&(y?g=t.result:m=t.result),y||(r0(t,d,f,p,g,m,s,o,l),p=g=m=null),In(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)Zt(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),d=0,f=t.implicitTypes.length;d"),t.result!==null&&g.kind!==t.kind&&Zt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Zt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function tte(t){var e=t.position,r,i,n,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(In(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ls(s);)s=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Zt(t,"directive name must not be less than one character in length");s!==0;){for(;qd(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!sc(s));break}if(sc(s))break;for(r=t.position;s!==0&&!Ls(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}s!==0&&HC(t),Gd.call(UJ,i)?UJ[i](t,i,n):px(t,'unknown document directive "'+i+'"')}if(In(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,In(t,!0,-1)):a&&Zt(t,"directives end mark is expected"),i0(t,t.lineIndent-1,GC,!1,!0),In(t,!0,-1),t.checkLineBreaks&&r9e.test(t.input.slice(e,t.position))&&px(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&vx(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,In(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var i=v9(t,r);if(typeof e!="function")return i;for(var n=0,a=i.length;n=55296&&r<=56319&&e+1=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function b9(t){var e=/^\n* /;return e.test(t)}function Tte(t,e,r,i,n,a,s,o){var l,u=0,h=null,d=!1,f=!1,p=i!==-1,g=-1,m=mte(Om(t,0))&&yte(Om(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(u=Om(t,l),!Bm(u))return Nm;m=m&&s9(u,h,o),h=u}else{for(l=0;l=65536?l+=2:l++){if(u=Om(t,l),u===gx)d=!0,p&&(f=f||l-g-1>i&&t[g+1]!==" ",g=l);else if(!Bm(u))return Nm;m=m&&s9(u,h,o),h=u}f=f||p&&l-g-1>i&&t[g+1]!==" "}return!d&&!f?m&&!s&&!n(t)?vte:a===mx?Nm:o9:r>9&&b9(t)?Nm:s?a===mx?Nm:o9:f?bte:xte}function kte(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===mx?'""':"''";if(!t.noCompatMode&&(k9e.indexOf(e)!==-1||w9e.test(e)))return t.quotingType===mx?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=i||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return gte(t,u)}switch(x(l,"testAmbiguity"),Tte(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!i,n)){case vte:return e;case o9:return"'"+e.replace(/'/g,"''")+"'";case xte:return"|"+l9(e,t.indent)+c9(n9(e,a));case bte:return">"+l9(e,t.indent)+c9(n9(wte(e,s),a));case Nm:return'"'+Cte(e)+'"';default:throw new to("impossible error: invalid scalar style")}})()}function l9(t,e){var r=b9(t)?String(e):"",i=t[t.length-1]===` `,n=i&&(t[t.length-2]===` `||t===` `),a=n?"+":i?"":"-";return r+a+` `}function c9(t){return t[t.length-1]===` `?t.slice(0,-1):t}function wte(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(` `);return u=u!==-1?u:t.length,r.lastIndex=u,u9(t.slice(0,u),e)})(),n=t[0]===` `||t[0]===" ",a,s;s=r.exec(t);){var o=s[1],l=s[2];a=l[0]===" ",i+=o+(!n&&!a&&l!==""?` `:"")+u9(l,e),n=a}return i}function u9(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,a,s=0,o=0,l="";i=r.exec(t);)o=i.index,o-n>e&&(a=s>n?s:o,l+=` `+t.slice(n,a),n=a+1),s=o;return l+=` `,t.length-n>e&&s>n?l+=t.slice(n,s)+` `+t.slice(s+1):l+=t.slice(n),l.slice(1)}function Cte(t){for(var e="",r=0,i,n=0;n=65536?n+=2:n++)r=Om(t,n),i=ns[r],!i&&Bm(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||fte(r);return e}function Ete(t,e,r){var i="",n=t.tag,a,s,o;for(a=0,s=r.length;a"u"&&ou(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function h9(t,e,r,i){var n="",a=t.tag,s,o,l;for(s=0,o=r.length;s"u"&&ou(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=WC(t,e)),t.dump&&gx===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=a,t.dump=n||"[]"}function Ste(t,e,r){var i="",n=t.tag,a=Object.keys(r),s,o,l,u,h;for(s=0,o=a.length;s1024&&(h+="? "),h+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ou(t,e,u,!1,!1)&&(h+=t.dump,i+=h));t.tag=n,t.dump="{"+i+"}"}function Ate(t,e,r,i){var n="",a=t.tag,s=Object.keys(r),o,l,u,h,d,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new to("sortKeys must be a boolean or a function");for(o=0,l=s.length;o1024,d&&(t.dump&&gx===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=WC(t,e)),ou(t,e+1,h,!0,d)&&(t.dump&&gx===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=a,t.dump=n||"{}"}function d9(t,e,r){var i,n,a,s,o,l;for(n=r?t.explicitTypes:t.implicitTypes,a=0,s=n.length;a tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function ou(t,e,r,i,n,a,s){t.tag=null,t.dump=r,d9(t,r,!1)||d9(t,r,!0);var o=ate.call(t.dump),l=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var h=o==="[object Object]"||o==="[object Array]",d,f;if(h&&(d=t.duplicates.indexOf(r),f=d!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(h&&f&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),o==="[object Object]")i&&Object.keys(t.dump).length!==0?(Ate(t,e,t.dump,n),f&&(t.dump="&ref_"+d+t.dump)):(Ste(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(o==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?h9(t,e-1,t.dump,n):h9(t,e,t.dump,n),f&&(t.dump="&ref_"+d+t.dump)):(Ete(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&kte(t,t.dump,e,a,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new to("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function _te(t,e){var r=[],i=[],n,a;for(UC(t,r,i),n=0,a=i.length;n{ir();x(f9,"isNothing");x(HJ,"isObject");x(YJ,"toArray");x(XJ,"extend");x(jJ,"repeat");x(KJ,"isNegativeZero");wRe=f9,CRe=HJ,ERe=YJ,SRe=jJ,ARe=KJ,_Re=XJ,ta={isNothing:wRe,isObject:CRe,toArray:ERe,repeat:SRe,isNegativeZero:ARe,extend:_Re};x(p9,"formatError");x(Pm,"YAMLException$1");Pm.prototype=Object.create(Error.prototype);Pm.prototype.constructor=Pm;Pm.prototype.toString=x(function(e){return this.name+": "+p9(this,e)},"toString");to=Pm;x(FC,"getLine");x($C,"padStart");x(ZJ,"makeSnippet");LRe=ZJ,RRe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],IRe=["scalar","sequence","mapping"];x(QJ,"compileStyleAliases");x(JJ,"Type$1");is=JJ;x(QR,"compileList");x(eee,"compileMap");x(zC,"Schema$1");zC.prototype.extend=x(function(e){var r=[],i=[];if(e instanceof is)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new to("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof is))throw new to("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new to("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new to("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof is))throw new to("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(zC.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=QR(n,"implicit"),n.compiledExplicit=QR(n,"explicit"),n.compiledTypeMap=eee(n.compiledImplicit,n.compiledExplicit),n},"extend");DRe=zC,MRe=new is("tag:yaml.org,2002:str",{kind:"scalar",construct:x(function(t){return t!==null?t:""},"construct")}),NRe=new is("tag:yaml.org,2002:seq",{kind:"sequence",construct:x(function(t){return t!==null?t:[]},"construct")}),ORe=new is("tag:yaml.org,2002:map",{kind:"mapping",construct:x(function(t){return t!==null?t:{}},"construct")}),PRe=new DRe({explicit:[MRe,NRe,ORe]});x(tee,"resolveYamlNull");x(ree,"constructYamlNull");x(iee,"isNull");BRe=new is("tag:yaml.org,2002:null",{kind:"scalar",resolve:tee,construct:ree,predicate:iee,represent:{canonical:x(function(){return"~"},"canonical"),lowercase:x(function(){return"null"},"lowercase"),uppercase:x(function(){return"NULL"},"uppercase"),camelcase:x(function(){return"Null"},"camelcase"),empty:x(function(){return""},"empty")},defaultStyle:"lowercase"});x(nee,"resolveYamlBoolean");x(aee,"constructYamlBoolean");x(see,"isBoolean");FRe=new is("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nee,construct:aee,predicate:see,represent:{lowercase:x(function(t){return t?"true":"false"},"lowercase"),uppercase:x(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:x(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});x(oee,"isHexCode");x(lee,"isOctCode");x(cee,"isDecCode");x(uee,"resolveYamlInteger");x(hee,"constructYamlInteger");x(dee,"isInteger");$Re=new is("tag:yaml.org,2002:int",{kind:"scalar",resolve:uee,construct:hee,predicate:dee,represent:{binary:x(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:x(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:x(function(t){return t.toString(10)},"decimal"),hexadecimal:x(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),zRe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");x(fee,"resolveYamlFloat");x(pee,"constructYamlFloat");qRe=/^[-+]?[0-9]+e/;x(gee,"representYamlFloat");x(mee,"isFloat");GRe=new is("tag:yaml.org,2002:float",{kind:"scalar",resolve:fee,construct:pee,predicate:mee,represent:gee,defaultStyle:"lowercase"}),yee=PRe.extend({implicit:[BRe,FRe,$Re,GRe]}),VRe=yee,vee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");x(bee,"resolveYamlTimestamp");x(Tee,"constructYamlTimestamp");x(kee,"representYamlTimestamp");WRe=new is("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bee,construct:Tee,instanceOf:Date,represent:kee});x(wee,"resolveYamlMerge");URe=new is("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wee}),g9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;x(Cee,"resolveYamlBinary");x(Eee,"constructYamlBinary");x(See,"representYamlBinary");x(Aee,"isBinary");HRe=new is("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Cee,construct:Eee,predicate:Aee,represent:See}),YRe=Object.prototype.hasOwnProperty,XRe=Object.prototype.toString;x(_ee,"resolveYamlOmap");x(Lee,"constructYamlOmap");jRe=new is("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_ee,construct:Lee}),KRe=Object.prototype.toString;x(Ree,"resolveYamlPairs");x(Iee,"constructYamlPairs");ZRe=new is("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ree,construct:Iee}),QRe=Object.prototype.hasOwnProperty;x(Dee,"resolveYamlSet");x(Mee,"constructYamlSet");JRe=new is("tag:yaml.org,2002:set",{kind:"mapping",resolve:Dee,construct:Mee}),Nee=VRe.extend({implicit:[WRe,URe],explicit:[HRe,jRe,ZRe,JRe]}),Gd=Object.prototype.hasOwnProperty,qC=1,Oee=2,Pee=3,GC=4,ZR=1,e9e=2,WJ=3,t9e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r9e=/[\x85\u2028\u2029]/,i9e=/[,\[\]\{\}]/,Bee=/^(?:!|!!|![a-z\-]+!)$/i,Fee=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;x(JR,"_class");x(sc,"is_EOL");x(qd,"is_WHITE_SPACE");x(Ls,"is_WS_OR_EOL");x(t0,"is_FLOW_INDICATOR");x($ee,"fromHexCode");x(zee,"escapedHexLen");x(qee,"fromDecimalCode");x(e9,"simpleEscapeSequence");x(Gee,"charFromCodepoint");x(m9,"setProperty");Vee=new Array(256),Wee=new Array(256);for(e0=0;e0<256;e0++)Vee[e0]=e9(e0)?1:0,Wee[e0]=e9(e0);x(Uee,"State$1");x(y9,"generateError");x(Zt,"throwError");x(px,"throwWarning");UJ={YAML:x(function(e,r,i){var n,a,s;e.version!==null&&Zt(e,"duplication of %YAML directive"),i.length!==1&&Zt(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Zt(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&Zt(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&px(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:x(function(e,r,i){var n,a;i.length!==2&&Zt(e,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Bee.test(n)||Zt(e,"ill-formed tag handle (first argument) of the TAG directive"),Gd.call(e.tagMap,n)&&Zt(e,'there is a previously declared suffix for "'+n+'" tag handle'),Fee.test(a)||Zt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Zt(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a},"handleTagDirective")};x(Ch,"captureSegment");x(t9,"mergeMappings");x(r0,"storeMappingPair");x(HC,"readLineBreak");x(In,"skipSeparationSpace");x(vx,"testDocumentSeparator");x(YC,"writeFoldedLines");x(Hee,"readPlainScalar");x(Yee,"readSingleQuotedScalar");x(Xee,"readDoubleQuotedScalar");x(jee,"readFlowCollection");x(Kee,"readBlockScalar");x(r9,"readBlockSequence");x(Zee,"readBlockMapping");x(Qee,"readTagProperty");x(Jee,"readAnchorProperty");x(ete,"readAlias");x(i0,"composeNode");x(tte,"readDocument");x(v9,"loadDocuments");x(rte,"loadAll$1");x(ite,"load$1");n9e=rte,a9e=ite,nte={loadAll:n9e,load:a9e},ate=Object.prototype.toString,ste=Object.prototype.hasOwnProperty,x9=65279,s9e=9,gx=10,o9e=13,l9e=32,c9e=33,u9e=34,i9=35,h9e=37,d9e=38,f9e=39,p9e=42,ote=44,g9e=45,VC=58,m9e=61,y9e=62,v9e=63,x9e=64,lte=91,cte=93,b9e=96,ute=123,T9e=124,hte=125,ns={};ns[0]="\\0";ns[7]="\\a";ns[8]="\\b";ns[9]="\\t";ns[10]="\\n";ns[11]="\\v";ns[12]="\\f";ns[13]="\\r";ns[27]="\\e";ns[34]='\\"';ns[92]="\\\\";ns[133]="\\N";ns[160]="\\_";ns[8232]="\\L";ns[8233]="\\P";k9e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],w9e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;x(dte,"compileStyleMap");x(fte,"encodeHex");C9e=1,mx=2;x(pte,"State");x(n9,"indentString");x(WC,"generateNextLine");x(gte,"testImplicitResolving");x(yx,"isWhitespace");x(Bm,"isPrintable");x(a9,"isNsCharOrWhitespace");x(s9,"isPlainSafe");x(mte,"isPlainSafeFirst");x(yte,"isPlainSafeLast");x(Om,"codePointAt");x(b9,"needIndentIndicator");vte=1,o9=2,xte=3,bte=4,Nm=5;x(Tte,"chooseScalarStyle");x(kte,"writeScalar");x(l9,"blockHeader");x(c9,"dropEndingNewline");x(wte,"foldString");x(u9,"foldLine");x(Cte,"escapeString");x(Ete,"writeFlowSequence");x(h9,"writeBlockSequence");x(Ste,"writeFlowMapping");x(Ate,"writeBlockMapping");x(d9,"detectType");x(ou,"writeNode");x(_te,"getDuplicateReferences");x(UC,"inspectNode");x(Lte,"dump$1");E9e=Lte,S9e={dump:E9e};x(XC,"renamed");Vd=yee,Wd=nte.load,B5t=nte.loadAll,F5t=S9e.dump,$5t=XC("safeLoad","load"),z5t=XC("safeLoadAll","loadAll"),q5t=XC("safeDump","dump");});function bx(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=tn(t),e=tn(e);let[r,i]=[t.x,t.y],[n,a]=[e.x,e.y],s=n-r,o=a-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}var fl,Ba,T9,tn,jC,$o=z(()=>{ir();fl=x((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,i=t.y??0;return"translate("+-(r+t.width/2)+", "+-(i+t.height/2)+")"},"computeLabelTransform"),Ba={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},T9={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};x(bx,"calculateDeltaAndAngle");tn=x(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),jC=x(t=>({x:x(function(e,r,i){let n=0,a=tn(i[0]).x=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Ba,t.arrowTypeEnd)){let{angle:p,deltaX:g}=bx(i[i.length-1],i[i.length-2]);n=Ba[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}let s=Math.abs(tn(e).x-tn(i[i.length-1]).x),o=Math.abs(tn(e).y-tn(i[i.length-1]).y),l=Math.abs(tn(e).x-tn(i[0]).x),u=Math.abs(tn(e).y-tn(i[0]).y),h=Ba[t.arrowTypeStart],d=Ba[t.arrowTypeEnd],f=1;if(s0&&o0&&u=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Ba,t.arrowTypeEnd)){let{angle:p,deltaY:g}=bx(i[i.length-1],i[i.length-2]);n=Ba[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}let s=Math.abs(tn(e).y-tn(i[i.length-1]).y),o=Math.abs(tn(e).x-tn(i[i.length-1]).x),l=Math.abs(tn(e).y-tn(i[0]).y),u=Math.abs(tn(e).x-tn(i[0]).x),h=Ba[t.arrowTypeStart],d=Ba[t.arrowTypeEnd],f=1;if(s0&&o0&&u{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.BLANK_URL=ya.relativeFirstCharacters=ya.whitespaceEscapeCharsRegex=ya.urlSchemeRegex=ya.ctrlCharactersRegex=ya.htmlCtrlEntityRegex=ya.htmlEntitiesRegex=ya.invalidProtocolRegex=void 0;ya.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;ya.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;ya.htmlCtrlEntityRegex=/&(newline|tab);/gi;ya.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;ya.urlSchemeRegex=/^.+(:|:)/gim;ya.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;ya.relativeFirstCharacters=[".","/"];ya.BLANK_URL="about:blank"});var Fm=jt(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.sanitizeUrl=void 0;var as=Rte();function A9e(t){return as.relativeFirstCharacters.indexOf(t[0])>-1}function _9e(t){var e=t.replace(as.ctrlCharactersRegex,"");return e.replace(as.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function L9e(t){return URL.canParse(t)}function Ite(t){try{return decodeURIComponent(t)}catch{return t}}function R9e(t){if(!t)return as.BLANK_URL;var e,r=Ite(t.trim());do r=_9e(r).replace(as.htmlCtrlEntityRegex,"").replace(as.ctrlCharactersRegex,"").replace(as.whitespaceEscapeCharsRegex,"").trim(),r=Ite(r),e=r.match(as.ctrlCharactersRegex)||r.match(as.htmlEntitiesRegex)||r.match(as.htmlCtrlEntityRegex)||r.match(as.whitespaceEscapeCharsRegex);while(e&&e.length>0);var i=r;if(!i)return as.BLANK_URL;if(A9e(i))return i;var n=i.trimStart(),a=n.match(as.urlSchemeRegex);if(!a)return i;var s=a[0].toLowerCase().trim();if(as.invalidProtocolRegex.test(s))return as.BLANK_URL;var o=n.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return o;if(s==="http:"||s==="https:"){if(!L9e(o))return as.BLANK_URL;var l=new URL(o);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return o}KC.sanitizeUrl=R9e});var I9e,ZC,k9=z(()=>{I9e=typeof global=="object"&&global&&global.Object===Object&&global,ZC=I9e});var D9e,M9e,wn,pl=z(()=>{k9();D9e=typeof self=="object"&&self&&self.Object===Object&&self,M9e=ZC||D9e||Function("return this")(),wn=M9e});var N9e,va,n0=z(()=>{pl();N9e=wn.Symbol,va=N9e});function B9e(t){var e=O9e.call(t,Tx),r=t[Tx];try{t[Tx]=void 0;var i=!0}catch{}var n=P9e.call(t);return i&&(e?t[Tx]=r:delete t[Tx]),n}var Dte,O9e,P9e,Tx,Mte,Nte=z(()=>{n0();Dte=Object.prototype,O9e=Dte.hasOwnProperty,P9e=Dte.toString,Tx=va?va.toStringTag:void 0;Mte=B9e});function z9e(t){return $9e.call(t)}var F9e,$9e,Ote,Pte=z(()=>{F9e=Object.prototype,$9e=F9e.toString;Ote=z9e});function V9e(t){return t==null?t===void 0?G9e:q9e:Bte&&Bte in Object(t)?Mte(t):Ote(t)}var q9e,G9e,Bte,Fa,Eh=z(()=>{n0();Nte();Pte();q9e="[object Null]",G9e="[object Undefined]",Bte=va?va.toStringTag:void 0;Fa=V9e});function W9e(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Oi,zo=z(()=>{Oi=W9e});function j9e(t){if(!Oi(t))return!1;var e=Fa(t);return e==H9e||e==Y9e||e==U9e||e==X9e}var U9e,H9e,Y9e,X9e,Gn,kx=z(()=>{Eh();zo();U9e="[object AsyncFunction]",H9e="[object Function]",Y9e="[object GeneratorFunction]",X9e="[object Proxy]";Gn=j9e});var K9e,QC,Fte=z(()=>{pl();K9e=wn["__core-js_shared__"],QC=K9e});function Z9e(t){return!!$te&&$te in t}var $te,zte,qte=z(()=>{Fte();$te=(function(){var t=/[^.]+$/.exec(QC&&QC.keys&&QC.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();zte=Z9e});function eIe(t){if(t!=null){try{return J9e.call(t)}catch{}try{return t+""}catch{}}return""}var Q9e,J9e,Sh,w9=z(()=>{Q9e=Function.prototype,J9e=Q9e.toString;Sh=eIe});function lIe(t){if(!Oi(t)||zte(t))return!1;var e=Gn(t)?oIe:rIe;return e.test(Sh(t))}var tIe,rIe,iIe,nIe,aIe,sIe,oIe,Gte,Vte=z(()=>{kx();qte();zo();w9();tIe=/[\\^$.*+?()[\]{}|]/g,rIe=/^\[object .+?Constructor\]$/,iIe=Function.prototype,nIe=Object.prototype,aIe=iIe.toString,sIe=nIe.hasOwnProperty,oIe=RegExp("^"+aIe.call(sIe).replace(tIe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Gte=lIe});function cIe(t,e){return t?.[e]}var Wte,Ute=z(()=>{Wte=cIe});function uIe(t,e){var r=Wte(t,e);return Gte(r)?r:void 0}var ro,Ud=z(()=>{Vte();Ute();ro=uIe});var hIe,Ah,wx=z(()=>{Ud();hIe=ro(Object,"create"),Ah=hIe});function dIe(){this.__data__=Ah?Ah(null):{},this.size=0}var Hte,Yte=z(()=>{wx();Hte=dIe});function fIe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Xte,jte=z(()=>{Xte=fIe});function yIe(t){var e=this.__data__;if(Ah){var r=e[t];return r===pIe?void 0:r}return mIe.call(e,t)?e[t]:void 0}var pIe,gIe,mIe,Kte,Zte=z(()=>{wx();pIe="__lodash_hash_undefined__",gIe=Object.prototype,mIe=gIe.hasOwnProperty;Kte=yIe});function bIe(t){var e=this.__data__;return Ah?e[t]!==void 0:xIe.call(e,t)}var vIe,xIe,Qte,Jte=z(()=>{wx();vIe=Object.prototype,xIe=vIe.hasOwnProperty;Qte=bIe});function kIe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ah&&e===void 0?TIe:e,this}var TIe,ere,tre=z(()=>{wx();TIe="__lodash_hash_undefined__";ere=kIe});function $m(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{Yte();jte();Zte();Jte();tre();$m.prototype.clear=Hte;$m.prototype.delete=Xte;$m.prototype.get=Kte;$m.prototype.has=Qte;$m.prototype.set=ere;C9=$m});function wIe(){this.__data__=[],this.size=0}var ire,nre=z(()=>{ire=wIe});function CIe(t,e){return t===e||t!==t&&e!==e}var gl,a0=z(()=>{gl=CIe});function EIe(t,e){for(var r=t.length;r--;)if(gl(t[r][0],e))return r;return-1}var Hd,Cx=z(()=>{a0();Hd=EIe});function _Ie(t){var e=this.__data__,r=Hd(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():AIe.call(e,r,1),--this.size,!0}var SIe,AIe,are,sre=z(()=>{Cx();SIe=Array.prototype,AIe=SIe.splice;are=_Ie});function LIe(t){var e=this.__data__,r=Hd(e,t);return r<0?void 0:e[r][1]}var ore,lre=z(()=>{Cx();ore=LIe});function RIe(t){return Hd(this.__data__,t)>-1}var cre,ure=z(()=>{Cx();cre=RIe});function IIe(t,e){var r=this.__data__,i=Hd(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}var hre,dre=z(()=>{Cx();hre=IIe});function zm(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{nre();sre();lre();ure();dre();zm.prototype.clear=ire;zm.prototype.delete=are;zm.prototype.get=ore;zm.prototype.has=cre;zm.prototype.set=hre;Yd=zm});var DIe,Xd,JC=z(()=>{Ud();pl();DIe=ro(wn,"Map"),Xd=DIe});function MIe(){this.size=0,this.__data__={hash:new C9,map:new(Xd||Yd),string:new C9}}var fre,pre=z(()=>{rre();Ex();JC();fre=MIe});function NIe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var gre,mre=z(()=>{gre=NIe});function OIe(t,e){var r=t.__data__;return gre(e)?r[typeof e=="string"?"string":"hash"]:r.map}var jd,Sx=z(()=>{mre();jd=OIe});function PIe(t){var e=jd(this,t).delete(t);return this.size-=e?1:0,e}var yre,vre=z(()=>{Sx();yre=PIe});function BIe(t){return jd(this,t).get(t)}var xre,bre=z(()=>{Sx();xre=BIe});function FIe(t){return jd(this,t).has(t)}var Tre,kre=z(()=>{Sx();Tre=FIe});function $Ie(t,e){var r=jd(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}var wre,Cre=z(()=>{Sx();wre=$Ie});function qm(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{pre();vre();bre();kre();Cre();qm.prototype.clear=fre;qm.prototype.delete=yre;qm.prototype.get=xre;qm.prototype.has=Tre;qm.prototype.set=wre;s0=qm});function E9(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(zIe);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var s=t.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(E9.Cache||s0),r}var zIe,Gm,S9=z(()=>{e5();zIe="Expected a function";E9.Cache=s0;Gm=E9});function qIe(){this.__data__=new Yd,this.size=0}var Ere,Sre=z(()=>{Ex();Ere=qIe});function GIe(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Are,_re=z(()=>{Are=GIe});function VIe(t){return this.__data__.get(t)}var Lre,Rre=z(()=>{Lre=VIe});function WIe(t){return this.__data__.has(t)}var Ire,Dre=z(()=>{Ire=WIe});function HIe(t,e){var r=this.__data__;if(r instanceof Yd){var i=r.__data__;if(!Xd||i.length{Ex();JC();e5();UIe=200;Mre=HIe});function Vm(t){var e=this.__data__=new Yd(t);this.size=e.size}var lu,Ax=z(()=>{Ex();Sre();_re();Rre();Dre();Nre();Vm.prototype.clear=Ere;Vm.prototype.delete=Are;Vm.prototype.get=Lre;Vm.prototype.has=Ire;Vm.prototype.set=Mre;lu=Vm});var YIe,Wm,A9=z(()=>{Ud();YIe=(function(){try{var t=ro(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Wm=YIe});function XIe(t,e,r){e=="__proto__"&&Wm?Wm(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var cu,Um=z(()=>{A9();cu=XIe});function jIe(t,e,r){(r!==void 0&&!gl(t[e],r)||r===void 0&&!(e in t))&&cu(t,e,r)}var _x,_9=z(()=>{Um();a0();_x=jIe});function KIe(t){return function(e,r,i){for(var n=-1,a=Object(e),s=i(e),o=s.length;o--;){var l=s[t?o:++n];if(r(a[l],l,a)===!1)break}return e}}var Ore,Pre=z(()=>{Ore=KIe});var ZIe,Hm,t5=z(()=>{Pre();ZIe=Ore(),Hm=ZIe});function JIe(t,e){if(e)return t.slice();var r=t.length,i=$re?$re(r):new t.constructor(r);return t.copy(i),i}var zre,Bre,QIe,Fre,$re,r5,L9=z(()=>{pl();zre=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bre=zre&&typeof module=="object"&&module&&!module.nodeType&&module,QIe=Bre&&Bre.exports===zre,Fre=QIe?wn.Buffer:void 0,$re=Fre?Fre.allocUnsafe:void 0;r5=JIe});var eDe,Ym,R9=z(()=>{pl();eDe=wn.Uint8Array,Ym=eDe});function tDe(t){var e=new t.constructor(t.byteLength);return new Ym(e).set(new Ym(t)),e}var Xm,i5=z(()=>{R9();Xm=tDe});function rDe(t,e){var r=e?Xm(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var n5,I9=z(()=>{i5();n5=rDe});function iDe(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r{a5=iDe});var qre,nDe,Gre,Vre=z(()=>{zo();qre=Object.create,nDe=(function(){function t(){}return function(e){if(!Oi(e))return{};if(qre)return qre(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})(),Gre=nDe});function aDe(t,e){return function(r){return t(e(r))}}var s5,M9=z(()=>{s5=aDe});var sDe,jm,o5=z(()=>{M9();sDe=s5(Object.getPrototypeOf,Object),jm=sDe});function lDe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||oDe;return t===r}var oDe,uu,Km=z(()=>{oDe=Object.prototype;uu=lDe});function cDe(t){return typeof t.constructor=="function"&&!uu(t)?Gre(jm(t)):{}}var l5,N9=z(()=>{Vre();o5();Km();l5=cDe});function uDe(t){return t!=null&&typeof t=="object"}var gn,ml=z(()=>{gn=uDe});function dDe(t){return gn(t)&&Fa(t)==hDe}var hDe,O9,Wre=z(()=>{Eh();ml();hDe="[object Arguments]";O9=dDe});var Ure,fDe,pDe,gDe,oc,Zm=z(()=>{Wre();ml();Ure=Object.prototype,fDe=Ure.hasOwnProperty,pDe=Ure.propertyIsEnumerable,gDe=O9((function(){return arguments})())?O9:function(t){return gn(t)&&fDe.call(t,"callee")&&!pDe.call(t,"callee")},oc=gDe});var mDe,Ot,rn=z(()=>{mDe=Array.isArray,Ot=mDe});function vDe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=yDe}var yDe,Qm,c5=z(()=>{yDe=9007199254740991;Qm=vDe});function xDe(t){return t!=null&&Qm(t.length)&&!Gn(t)}var Cn,yl=z(()=>{kx();c5();Cn=xDe});function bDe(t){return gn(t)&&Cn(t)}var o0,u5=z(()=>{yl();ml();o0=bDe});function TDe(){return!1}var Hre,Yre=z(()=>{Hre=TDe});var Kre,Xre,kDe,jre,wDe,CDe,lc,Jm=z(()=>{pl();Yre();Kre=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xre=Kre&&typeof module=="object"&&module&&!module.nodeType&&module,kDe=Xre&&Xre.exports===Kre,jre=kDe?wn.Buffer:void 0,wDe=jre?jre.isBuffer:void 0,CDe=wDe||Hre,lc=CDe});function RDe(t){if(!gn(t)||Fa(t)!=EDe)return!1;var e=jm(t);if(e===null)return!0;var r=_De.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Zre.call(r)==LDe}var EDe,SDe,ADe,Zre,_De,LDe,Qre,Jre=z(()=>{Eh();o5();ml();EDe="[object Object]",SDe=Function.prototype,ADe=Object.prototype,Zre=SDe.toString,_De=ADe.hasOwnProperty,LDe=Zre.call(Object);Qre=RDe});function tMe(t){return gn(t)&&Qm(t.length)&&!!Xi[Fa(t)]}var IDe,DDe,MDe,NDe,ODe,PDe,BDe,FDe,$De,zDe,qDe,GDe,VDe,WDe,UDe,HDe,YDe,XDe,jDe,KDe,ZDe,QDe,JDe,eMe,Xi,eie,tie=z(()=>{Eh();c5();ml();IDe="[object Arguments]",DDe="[object Array]",MDe="[object Boolean]",NDe="[object Date]",ODe="[object Error]",PDe="[object Function]",BDe="[object Map]",FDe="[object Number]",$De="[object Object]",zDe="[object RegExp]",qDe="[object Set]",GDe="[object String]",VDe="[object WeakMap]",WDe="[object ArrayBuffer]",UDe="[object DataView]",HDe="[object Float32Array]",YDe="[object Float64Array]",XDe="[object Int8Array]",jDe="[object Int16Array]",KDe="[object Int32Array]",ZDe="[object Uint8Array]",QDe="[object Uint8ClampedArray]",JDe="[object Uint16Array]",eMe="[object Uint32Array]",Xi={};Xi[HDe]=Xi[YDe]=Xi[XDe]=Xi[jDe]=Xi[KDe]=Xi[ZDe]=Xi[QDe]=Xi[JDe]=Xi[eMe]=!0;Xi[IDe]=Xi[DDe]=Xi[WDe]=Xi[MDe]=Xi[UDe]=Xi[NDe]=Xi[ODe]=Xi[PDe]=Xi[BDe]=Xi[FDe]=Xi[$De]=Xi[zDe]=Xi[qDe]=Xi[GDe]=Xi[VDe]=!1;eie=tMe});function rMe(t){return function(e){return t(e)}}var vl,l0=z(()=>{vl=rMe});var rie,Lx,iMe,P9,nMe,xl,Rx=z(()=>{k9();rie=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lx=rie&&typeof module=="object"&&module&&!module.nodeType&&module,iMe=Lx&&Lx.exports===rie,P9=iMe&&ZC.process,nMe=(function(){try{var t=Lx&&Lx.require&&Lx.require("util").types;return t||P9&&P9.binding&&P9.binding("util")}catch{}})(),xl=nMe});var iie,aMe,Kd,Ix=z(()=>{tie();l0();Rx();iie=xl&&xl.isTypedArray,aMe=iie?vl(iie):eie,Kd=aMe});function sMe(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Dx,B9=z(()=>{Dx=sMe});function cMe(t,e,r){var i=t[e];(!(lMe.call(t,e)&&gl(i,r))||r===void 0&&!(e in t))&&cu(t,e,r)}var oMe,lMe,hu,e1=z(()=>{Um();a0();oMe=Object.prototype,lMe=oMe.hasOwnProperty;hu=cMe});function uMe(t,e,r,i){var n=!r;r||(r={});for(var a=-1,s=e.length;++a{e1();Um();bl=uMe});function hMe(t,e){for(var r=-1,i=Array(t);++r{nie=hMe});function pMe(t,e){var r=typeof t;return e=e??dMe,!!e&&(r=="number"||r!="symbol"&&fMe.test(t))&&t>-1&&t%1==0&&t{dMe=9007199254740991,fMe=/^(?:0|[1-9]\d*)$/;Zd=pMe});function yMe(t,e){var r=Ot(t),i=!r&&oc(t),n=!r&&!i&&lc(t),a=!r&&!i&&!n&&Kd(t),s=r||i||n||a,o=s?nie(t.length,String):[],l=o.length;for(var u in t)(e||mMe.call(t,u))&&!(s&&(u=="length"||n&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Zd(u,l)))&&o.push(u);return o}var gMe,mMe,h5,F9=z(()=>{aie();Zm();rn();Jm();Mx();Ix();gMe=Object.prototype,mMe=gMe.hasOwnProperty;h5=yMe});function vMe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var sie,oie=z(()=>{sie=vMe});function TMe(t){if(!Oi(t))return sie(t);var e=uu(t),r=[];for(var i in t)i=="constructor"&&(e||!bMe.call(t,i))||r.push(i);return r}var xMe,bMe,lie,cie=z(()=>{zo();Km();oie();xMe=Object.prototype,bMe=xMe.hasOwnProperty;lie=TMe});function kMe(t){return Cn(t)?h5(t,!0):lie(t)}var io,Qd=z(()=>{F9();cie();yl();io=kMe});function wMe(t){return bl(t,io(t))}var uie,hie=z(()=>{c0();Qd();uie=wMe});function CMe(t,e,r,i,n,a,s){var o=Dx(t,r),l=Dx(e,r),u=s.get(l);if(u){_x(t,r,u);return}var h=a?a(o,l,r+"",t,e,s):void 0,d=h===void 0;if(d){var f=Ot(l),p=!f&&lc(l),g=!f&&!p&&Kd(l);h=l,f||p||g?Ot(o)?h=o:o0(o)?h=a5(o):p?(d=!1,h=r5(l,!0)):g?(d=!1,h=n5(l,!0)):h=[]:Qre(l)||oc(l)?(h=o,oc(o)?h=uie(o):(!Oi(o)||Gn(o))&&(h=l5(l))):d=!1}d&&(s.set(l,h),n(h,l,i,a,s),s.delete(l)),_x(t,r,h)}var die,fie=z(()=>{_9();L9();I9();D9();N9();Zm();rn();u5();Jm();kx();zo();Jre();Ix();B9();hie();die=CMe});function pie(t,e,r,i,n){t!==e&&Hm(e,function(a,s){if(n||(n=new lu),Oi(a))die(t,e,s,r,pie,i,n);else{var o=i?i(Dx(t,s),a,s+"",t,e,n):void 0;o===void 0&&(o=a),_x(t,s,o)}},io)}var gie,mie=z(()=>{Ax();_9();t5();fie();zo();Qd();B9();gie=pie});function EMe(t){return t}var $a,_h=z(()=>{$a=EMe});function SMe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var yie,vie=z(()=>{yie=SMe});function AMe(t,e,r){return e=xie(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,a=xie(i.length-e,0),s=Array(a);++n{vie();xie=Math.max;d5=AMe});function _Me(t){return function(){return t}}var no,z9=z(()=>{no=_Me});var LMe,bie,Tie=z(()=>{z9();A9();_h();LMe=Wm?function(t,e){return Wm(t,"toString",{configurable:!0,enumerable:!1,value:no(e),writable:!0})}:$a,bie=LMe});function MMe(t){var e=0,r=0;return function(){var i=DMe(),n=IMe-(i-r);if(r=i,n>0){if(++e>=RMe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var RMe,IMe,DMe,kie,wie=z(()=>{RMe=800,IMe=16,DMe=Date.now;kie=MMe});var NMe,f5,q9=z(()=>{Tie();wie();NMe=kie(bie),f5=NMe});function OMe(t,e){return f5(d5(t,e,$a),t+"")}var du,t1=z(()=>{_h();$9();q9();du=OMe});function PMe(t,e,r){if(!Oi(r))return!1;var i=typeof e;return(i=="number"?Cn(r)&&Zd(e,r.length):i=="string"&&e in r)?gl(r[e],t):!1}var qo,u0=z(()=>{a0();yl();Mx();zo();qo=PMe});function BMe(t){return du(function(e,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(n--,a):void 0,s&&qo(r[0],r[1],s)&&(a=n<3?void 0:a,n=1),e=Object(e);++i{t1();u0();p5=BMe});var FMe,Jd,V9=z(()=>{mie();G9();FMe=p5(function(t,e,r){gie(t,e,r)}),Jd=FMe});function m5(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $Me[r]??e}function Lie(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,Sie.sanitizeUrl)(r):r}function U9(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Rie(t){let e,r=0;t.forEach(n=>{r+=U9(n,e),e=n});let i=r/2;return H9(t,i)}function Iie(t){return t.length===1?t[0]:Rie(t)}function Die(t,e,r){let i=structuredClone(r);Q.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let n=25+t,a=H9(i,n),s=10+t*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(i[0].y+a.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(i[0].y+a.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2),l}function y5(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}function Mie(t){let e="",r="0123456789abcdef",i=r.length;for(let n=0;nMath.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}var Sie,W9,$Me,zMe,qMe,Aie,_ie,GMe,VMe,Cie,H9,WMe,Eie,Y9,X9,UMe,HMe,j9,YMe,K9,XMe,g5,jMe,KMe,ao,Xt,Nie,Go,fu,Zr=z(()=>{_r();ir();Sie=Da(Fm(),1);Lr();S9();V9();W9="\u200B",$Me={curveBasis:su,curveBasisClosed:BR,curveBasisOpen:FR,curveBumpX:J2,curveBumpY:ex,curveBundle:$R,curveCardinalClosed:zR,curveCardinalOpen:GR,curveCardinal:nx,curveCatmullRomClosed:WR,curveCatmullRomOpen:UR,curveCatmullRom:ox,curveLinear:wh,curveLinearClosed:HR,curveMonotoneX:lx,curveMonotoneY:cx,curveNatural:ux,curveStep:hx,curveStepAfter:fx,curveStepBefore:dx},zMe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,qMe=x(function(t,e){let r=Aie(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let s=r.map(o=>o.args);y2(s),i=Yi(i,[...s])}else i=r.args;if(!i)return;let n=v2(t,e),a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),Aie=x(function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${zMe.source})(?=[}][%]{2}).* `,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Q.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,n=[];for(;(i=cm.exec(t))!==null;)if(i.index===cm.lastIndex&&cm.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){let a=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:a,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(r){return Q.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),_ie=x(function(t){return t.replace(cm,"")},"removeDirectives"),GMe=x(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");x(m5,"interpolateToCurve");x(Lie,"formatUrl");VMe=x((t,...e)=>{let r=t.split("."),i=r.length-1,n=r[i],a=window;for(let s=0;s{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),H9=x((t,e)=>{let r,i=e;for(let n of t){if(r){let a=U9(n,r);if(a===0)return r;if(a=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:Cie((1-s)*r.x+s*n.x,5),y:Cie((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),WMe=x((t,e,r)=>{Q.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=H9(e,25),a=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+n.x)/2,o.y=-Math.cos(s)*a+(e[0].y+n.y)/2,o},"calcCardinalityPosition");x(Die,"calcTerminalLabelPosition");x(y5,"getStylesFromArray");Eie=0,Y9=x(()=>(Eie++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Eie),"generateId");x(Mie,"makeRandomHex");X9=x(t=>Mie(t.length),"random"),UMe=x(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),HMe=x(function(t,e){let r=e.text.replace(ot.lineBreakRegex," "),[,i]=ao(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);let a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),n},"drawSimpleText"),j9=Gm((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),ot.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),n=[],a="";return i.forEach((s,o)=>{let l=za(`${s} `,r),u=za(a,r);if(l>e){let{hyphenatedStrings:f,remainingWord:p}=YMe(s,e,"-",r);n.push(a,...f),a=p}else u+l>=e?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),YMe=Gm((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let n=[...t],a=[],s="";return n.forEach((o,l)=>{let u=`${s}${o}`;if(za(u,i)>=e){let d=l+1,f=n.length===d,p=`${u}${r}`;a.push(f?u:p),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);x(Nx,"calculateTextHeight");x(za,"calculateTextWidth");K9=Gm((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};let[,a]=ao(r),s=["sans-serif",i],o=t.split(ot.lineBreakRegex),l=[],u=Ze("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let f of s){let p=0,g={width:0,height:0,lineHeight:0};for(let m of o){let y=UMe();y.text=m||W9;let v=HMe(h,y).style("font-size",a).style("font-weight",n).style("font-family",f),b=(v._groups||v)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),p=Math.round(b.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}h.remove();let d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),XMe=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{x(this,"InitIDGenerator")}},jMe=x(function(t){return g5=g5||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),g5.innerHTML=t,unescape(g5.textContent)},"entityDecode");x(v5,"isDetailedError");KMe=x((t,e,r,i)=>{if(!i)return;let n=t.node()?.getBBox();n&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ao=x(t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");x(Ai,"cleanAndMerge");Xt={assignWithDepth:Yi,wrapLabel:j9,calculateTextHeight:Nx,calculateTextWidth:za,calculateTextDimensions:K9,cleanAndMerge:Ai,detectInit:qMe,detectDirective:Aie,isSubstringInArray:GMe,interpolateToCurve:m5,calcLabelPosition:Iie,calcCardinalityPosition:WMe,calcTerminalLabelPosition:Die,formatUrl:Lie,getStylesFromArray:y5,generateId:Y9,random:X9,runFunc:VMe,entityDecode:jMe,insertTitle:KMe,isLabelCoordinateInPath:Oie,parseFontSize:ao,InitIDGenerator:XMe},Nie=x(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),e},"encodeEntities"),Go=x(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),fu=x((t,e,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${t}_${e}_${r}${n?`_${n}`:""}`,"getEdgeId");x(Vn,"handleUndefinedAttr");x(Oie,"isLabelCoordinateInPath")});async function Ox(t,e){let r=t.getElementsByTagName("img");if(!r||r.length===0)return;let i=e.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(a=>{function s(){if(n.style.display="flex",n.style.flexDirection="column",i){let o=be().fontSize?be().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=ur.fontSize]=ao(o),h=u*l+"px";n.style.minWidth=h,n.style.maxWidth=h}else n.style.width="100%";a(n)}x(s,"setupImage"),setTimeout(()=>{n.complete&&s()}),n.addEventListener("error",s),n.addEventListener("load",s)})))}var Lh,Rs=z(()=>{Zr();_r();ir();Lh=x(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,i=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");x(Ox,"configureLabelImages")});var Pie,h0,ZMe,Px,Dt,$t,QMe,Is=z(()=>{_r();ir();Pie=x(t=>{let{handDrawnSeed:e}=be();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),h0=x(t=>{let e=ZMe([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),ZMe=x(t=>{let e=new Map;return t.forEach(r=>{let[i,n]=r.split(":");e.set(i.trim(),n?.trim())}),e},"styles2Map"),Px=x(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),Dt=x(t=>{let{stylesArray:e}=h0(t),r=[],i=[],n=[],a=[];return e.forEach(s=>{let o=s[0];Px(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&n.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:a}},"styles2String"),$t=x((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=be(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=h0(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:QMe(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),QMe=x(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let n=isNaN(e[0])?0:e[0];return[n,n]}let r=isNaN(e[0])?0:e[0],i=isNaN(e[1])?0:e[1];return[r,i]},"getStrokeDashArray")});var JMe,r1,Z9,Bie,x5=z(()=>{JMe=Object.freeze({left:0,top:0,width:16,height:16}),r1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z9=Object.freeze({...JMe,...r1}),Bie=Object.freeze({...Z9,body:"",hidden:!1})});var eNe,Fie,$ie=z(()=>{x5();eNe=Object.freeze({width:null,height:null}),Fie=Object.freeze({...eNe,...r1})});var Q9,b5,zie=z(()=>{Q9=(t,e,r,i="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),l=n.pop(),u={provider:n.length>0?n[0]:i,prefix:l,name:o};return e&&!b5(u)?null:u}let a=n[0],s=a.split("-");if(s.length>1){let o={provider:i,prefix:s.shift(),name:s.join("-")};return e&&!b5(o)?null:o}if(r&&i===""){let o={provider:i,prefix:"",name:a};return e&&!b5(o,r)?null:o}return null},b5=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1});function qie(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}var Gie=z(()=>{});function J9(t,e){let r=qie(t,e);for(let i in Bie)i in r1?i in t&&!(i in r)&&(r[i]=r1[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}var Vie=z(()=>{x5();Gie()});function Wie(t,e){let r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);function a(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;let o=i[s]&&i[s].parent,l=o&&a(o);l&&(n[s]=[o].concat(l))}return n[s]}return(e||Object.keys(r).concat(Object.keys(i))).forEach(a),n}var Uie=z(()=>{});function Hie(t,e,r){let i=t.icons,n=t.aliases||Object.create(null),a={};function s(o){a=J9(i[o]||n[o],a)}return s(e),r.forEach(s),J9(t,a)}function eI(t,e){if(t.icons[e])return Hie(t,e,[]);let r=Wie(t,[e])[e];return r?Hie(t,e,r):null}var Yie=z(()=>{Vie();Uie()});function tI(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;let i=t.split(tNe);if(i===null||!i.length)return t;let n=[],a=i.shift(),s=rNe.test(a);for(;;){if(s){let o=parseFloat(a);isNaN(o)?n.push(a):n.push(Math.ceil(o*e*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");s=!s}}var tNe,rNe,Xie=z(()=>{tNe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,rNe=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function iNe(t,e="defs"){let r="",i=t.indexOf("<"+e);for(;i>=0;){let n=t.indexOf(">",i),a=t.indexOf("",a);if(s===-1)break;r+=t.slice(n+1,a).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:r,content:t}}function nNe(t,e){return t?""+t+""+e:e}function jie(t,e,r){let i=iNe(t);return nNe(i.defs,e+i.content+r)}var Kie=z(()=>{});function rI(t,e){let r={...Z9,...t},i={...Fie,...e},n={left:r.left,top:r.top,width:r.width,height:r.height},a=r.body;[r,i].forEach(m=>{let y=[],v=m.hFlip,b=m.vFlip,T=m.rotate;v?b?T+=2:(y.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),y.push("scale(-1 1)"),n.top=n.left=0):b&&(y.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),y.push("scale(1 -1)"),n.top=n.left=0);let C;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:C=n.height/2+n.top,y.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:y.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:C=n.width/2+n.left,y.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}T%2===1&&(n.left!==n.top&&(C=n.left,n.left=n.top,n.top=C),n.width!==n.height&&(C=n.width,n.width=n.height,n.height=C)),y.length&&(a=jie(a,'',""))});let s=i.width,o=i.height,l=n.width,u=n.height,h,d;s===null?(d=o===null?"1em":o==="auto"?u:o,h=tI(d,l/u)):(h=s==="auto"?l:s,d=o===null?tI(h,u/l):o==="auto"?u:o);let f={},p=(m,y)=>{aNe(y)||(f[m]=y.toString())};p("width",h),p("height",d);let g=[n.left,n.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}var aNe,Zie=z(()=>{x5();$ie();Xie();Kie();aNe=t=>t==="unset"||t==="undefined"||t==="none"});function oNe(t){t=t.replace(/[0-9]+$/,"")||"a";let e=Qie.get(t)||0;return Qie.set(t,e+1),e?`${t}${e}`:t}function iI(t){let e=[],r;for(;r=sNe.exec(t);)e.push(r[1]);if(!e.length)return t;let i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{let a=oNe(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}var sNe,Qie,Jie=z(()=>{sNe=/\sid="(\S+)"/g,Qie=new Map});function nI(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in e)r+=" "+i+'="'+e[i]+'"';return'"+t+""}var ene=z(()=>{});var tne=z(()=>{zie();Yie();Zie();Jie();ene()});function lI(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function lne(t){f0=t}function ai(t,e=""){let r=typeof t=="string"?t:t.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Ds.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,e)};return i}function pu(t,e){if(e){if(Ds.escapeTest.test(t))return t.replace(Ds.escapeReplace,nne)}else if(Ds.escapeTestNoEncode.test(t))return t.replace(Ds.escapeReplaceNoEncode,nne);return t}function ane(t){try{t=encodeURI(t).replace(Ds.percentDecode,"%")}catch{return null}return t}function sne(t,e){let r=t.replace(Ds.findPipe,(a,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),i=r.split(Ds.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length0?-2:-1}function one(t,e,r,i,n){let a=e.href,s=e.title||null,o=t[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function VNe(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(i===null)return e;let n=i[1];return e.split(` `).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=n.length?a.slice(n.length):a}).join(` `)}function fi(t,e){return d0.parse(t,e)}var f0,zx,lNe,Ds,cNe,uNe,hNe,qx,dNe,cI,cne,une,fNe,uI,pNe,hI,gNe,mNe,E5,dI,yNe,hne,vNe,fI,rne,xNe,bNe,TNe,kNe,dne,wNe,S5,pI,fne,CNe,pne,ENe,SNe,ANe,gne,_Ne,LNe,mne,RNe,INe,DNe,MNe,NNe,ONe,PNe,k5,BNe,yne,vne,FNe,ine,gI,$Ne,aI,zNe,T5,Bx,qNe,nne,w5,cc,C5,mI,uc,$x,WNe,d0,m7t,y7t,v7t,x7t,b7t,T7t,k7t,xne=z(()=>{f0=lI();zx={exec:()=>null};lNe=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},cNe=/^(?:[ \t]*(?:\n|$))+/,uNe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hNe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,qx=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dNe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,cI=/(?:[*+-]|\d{1,9}[.)])/,cne=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,une=ai(cne).replace(/bull/g,cI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),fNe=ai(cne).replace(/bull/g,cI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uI=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pNe=/^[^\n]+/,hI=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gNe=ai(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",hI).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mNe=ai(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,cI).getRegex(),E5="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",dI=/|$))/,yNe=ai("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",dI).replace("tag",E5).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hne=ai(uI).replace("hr",qx).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",E5).getRegex(),vNe=ai(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",hne).getRegex(),fI={blockquote:vNe,code:uNe,def:gNe,fences:hNe,heading:dNe,hr:qx,html:yNe,lheading:une,list:mNe,newline:cNe,paragraph:hne,table:zx,text:pNe},rne=ai("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",qx).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",E5).getRegex(),xNe={...fI,lheading:fNe,table:rne,paragraph:ai(uI).replace("hr",qx).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rne).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",E5).getRegex()},bNe={...fI,html:ai(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",dI).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:zx,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ai(uI).replace("hr",qx).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",une).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},TNe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,kNe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,dne=/^( {2,}|\\)\n(?!\s*$)/,wNe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",lNe?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),gne=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_Ne=ai(gne,"u").replace(/punct/g,S5).getRegex(),LNe=ai(gne,"u").replace(/punct/g,pne).getRegex(),mne="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",RNe=ai(mne,"gu").replace(/notPunctSpace/g,fne).replace(/punctSpace/g,pI).replace(/punct/g,S5).getRegex(),INe=ai(mne,"gu").replace(/notPunctSpace/g,SNe).replace(/punctSpace/g,ENe).replace(/punct/g,pne).getRegex(),DNe=ai("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fne).replace(/punctSpace/g,pI).replace(/punct/g,S5).getRegex(),MNe=ai(/\\(punct)/,"gu").replace(/punct/g,S5).getRegex(),NNe=ai(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ONe=ai(dI).replace("(?:-->|$)","-->").getRegex(),PNe=ai("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",ONe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),k5=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,BNe=ai(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",k5).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),yne=ai(/^!?\[(label)\]\[(ref)\]/).replace("label",k5).replace("ref",hI).getRegex(),vne=ai(/^!?\[(ref)\](?:\[\])?/).replace("ref",hI).getRegex(),FNe=ai("reflink|nolink(?!\\()","g").replace("reflink",yne).replace("nolink",vne).getRegex(),ine=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gI={_backpedal:zx,anyPunctuation:MNe,autolink:NNe,blockSkip:ANe,br:dne,code:kNe,del:zx,emStrongLDelim:_Ne,emStrongRDelimAst:RNe,emStrongRDelimUnd:DNe,escape:TNe,link:BNe,nolink:vne,punctuation:CNe,reflink:yne,reflinkSearch:FNe,tag:PNe,text:wNe,url:zx},$Ne={...gI,link:ai(/^!?\[(label)\]\((.*?)\)/).replace("label",k5).getRegex(),reflink:ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",k5).getRegex()},aI={...gI,emStrongRDelimAst:INe,emStrongLDelim:LNe,url:ai(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ine).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ai(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},nne=t=>qNe[t];w5=class{options;rules;lexer;constructor(t){this.options=t||f0}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Fx(r,` `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],i=VNe(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let i=Fx(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Fx(e[0],` `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let r=Fx(e[0],` `).split(` `),i="",n="",a=[];for(;r.length>0;){let s=!1,o=[],l;for(l=0;l1,n={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;t;){let l=!1,u="",h="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;u=e[0],t=t.substring(u.length);let d=e[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),f=t.split(` `,1)[0],p=!d.trim(),g=0;if(this.options.pedantic?(g=2,h=d.trimStart()):p?g=e[1].length+1:(g=e[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,h=d.slice(g),g+=e[1].length),p&&this.rules.other.blankLine.test(f)&&(u+=f+` `,t=t.substring(f.length+1),l=!0),!l){let v=this.rules.other.nextBulletRegex(g),b=this.rules.other.hrRegex(g),T=this.rules.other.fencesBeginRegex(g),C=this.rules.other.headingBeginRegex(g),k=this.rules.other.htmlBeginRegex(g);for(;t;){let w=t.split(` `,1)[0],E;if(f=w,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),E=f):E=f.replace(this.rules.other.tabCharGlobal," "),T.test(f)||C.test(f)||k.test(f)||v.test(f)||b.test(f))break;if(E.search(this.rules.other.nonSpaceChar)>=g||!f.trim())h+=` `+E.slice(g);else{if(p||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||C.test(d)||b.test(d))break;h+=` `+f}!p&&!f.trim()&&(p=!0),u+=w+` `,t=t.substring(w.length+1),d=E.slice(g)}}n.loose||(s?n.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0));let m=null,y;this.options.gfm&&(m=this.rules.other.listIsTask.exec(h),m&&(y=m[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:u,task:!!m,checked:y,loose:!1,text:h,tokens:[]}),n.raw+=u}let o=n.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let l=0;ld.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=h}if(n.loose)for(let l=0;l({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)===` `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=Fx(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=GNe(e[2],"()");if(a===-2)return;if(a>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let i=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),one(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=e[i.toLowerCase()];if(!n){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return one(r,n,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,a,s,o=n,l=0,u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,e=e.slice(-1*t.length+n);(i=u.exec(e))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(s=[...a].length,i[3]||i[4]){o+=s;continue}else if((i[5]||i[6])&&n%3&&!((n+s)%3)){l+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+l);let h=[...i[0]][0].length,d=t.slice(0,n+i.index+h+s);if(Math.min(n,s)%2){let p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,i;return e[2]==="@"?(r=e[1],i="mailto:"+r):(r=e[1],i=r),{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,i;if(e[2]==="@")r=e[0],i="mailto:"+r;else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);r=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},cc=class sI{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||f0,this.options.tokenizer=this.options.tokenizer||new w5,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ds,block:T5.normal,inline:Bx.normal};this.options.pedantic?(r.block=T5.pedantic,r.inline=Bx.pedantic):this.options.gfm&&(r.block=T5.gfm,this.options.breaks?r.inline=Bx.breaks:r.inline=Bx.gfm),this.tokenizer.rules=r}static get rules(){return{block:T5,inline:Bx}}static lex(e,r){return new sI(r).lex(e)}static lexInline(e,r){return new sI(r).inlineTokens(e)}lex(e){e=e.replace(Ds.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let r=0;r(n=s.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let s=r.at(-1);n.raw.length===1&&s!==void 0?s.raw+=` `:r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` `)+n.raw,s.text+=` `+n.text,this.inlineQueue.at(-1).src=s.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` `)+n.raw,s.text+=` `+n.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}let a=e;if(this.options.extensions?.startBlock){let s=1/0,o=e.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(a=e.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let s=r.at(-1);i&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(` `)?"":` `)+n.raw,s.text+=` `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(n),i=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` `)+n.raw,s.text+=` `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(n);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let i=e,n=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let s=!1,o="";for(;e;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},e,r))?(e=e.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(e,i,o)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),r.push(l);continue}let u=e;if(this.options.extensions?.startInline){let h=1/0,d=e.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(u=e.substring(0,h+1))}if(l=this.tokenizer.inlineText(u)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},C5=class{options;parser;constructor(t){this.options=t||f0}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(Ds.notSpaceStart)?.[0],n=t.replace(Ds.endingNewline,"")+` `;return i?'
'+(r?n:pu(n,!0))+`
`:"
"+(r?n:pu(n,!0))+`
`}blockquote({tokens:t}){return`
${this.parser.parse(t)}
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`${this.parser.parseInline(t)} `}hr(t){return`
`}list(t){let e=t.ordered,r=t.start,i="";for(let s=0;s `+i+" `}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+pu(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`
  • ${e}
  • `}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    `}table(t){let e="",r="";for(let n=0;n${i}`),` `+e+` `+i+`
    `}tablerow({text:t}){return` ${t} `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+` `}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${pu(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),n=ane(t);if(n===null)return i;t=n;let a='
    ",a}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let n=ane(t);if(n===null)return pu(r);t=n;let a=`${r}{let s=n[a].flat(1/0);r=r.concat(this.walkTokens(s,e))}):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...s){let o=n.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),i.extensions=e),r.renderer){let n=this.defaults.renderer||new C5(this.defaults);for(let a in r.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=r.renderer[s],l=n[s];n[s]=(...u)=>{let h=o.apply(n,u);return h===!1&&(h=l.apply(n,u)),h||""}}i.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new w5(this.defaults);for(let a in r.tokenizer){if(!(a in n))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=r.tokenizer[s],l=n[s];n[s]=(...u)=>{let h=o.apply(n,u);return h===!1&&(h=l.apply(n,u)),h}}i.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new $x;for(let a in r.hooks){if(!(a in n))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=r.hooks[s],l=n[s];$x.passThroughHooks.has(a)?n[s]=u=>{if(this.defaults.async&&$x.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await o.call(n,u);return l.call(n,d)})();let h=o.call(n,u);return l.call(n,h)}:n[s]=(...u)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(n,u);return d===!1&&(d=await l.apply(n,u)),d})();let h=o.apply(n,u);return h===!1&&(h=l.apply(n,u)),h}}i.hooks=n}if(r.walkTokens){let n=this.defaults.walkTokens,a=r.walkTokens;i.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),n&&(o=o.concat(n.call(this,s))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return cc.lex(t,e??this.defaults)}parser(t,e){return uc.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},n={...this.defaults,...i},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let s=n.hooks?await n.hooks.preprocess(e):e,o=await(n.hooks?await n.hooks.provideLexer():t?cc.lex:cc.lexInline)(s,n),l=n.hooks?await n.hooks.processAllTokens(o):o;n.walkTokens&&await Promise.all(this.walkTokens(l,n.walkTokens));let u=await(n.hooks?await n.hooks.provideParser():t?uc.parse:uc.parseInline)(l,n);return n.hooks?await n.hooks.postprocess(u):u})().catch(a);try{n.hooks&&(e=n.hooks.preprocess(e));let s=(n.hooks?n.hooks.provideLexer():t?cc.lex:cc.lexInline)(e,n);n.hooks&&(s=n.hooks.processAllTokens(s)),n.walkTokens&&this.walkTokens(s,n.walkTokens);let o=(n.hooks?n.hooks.provideParser():t?uc.parse:uc.parseInline)(s,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(t,e){return r=>{if(r.message+=` Please report this to https://github.com/markedjs/marked.`,t){let i="

    An error occurred:

    "+pu(r.message+"",!0)+"
    ";return e?Promise.resolve(i):i}if(e)return Promise.reject(r);throw r}}},d0=new WNe;fi.options=fi.setOptions=function(t){return d0.setOptions(t),fi.defaults=d0.defaults,lne(fi.defaults),fi};fi.getDefaults=lI;fi.defaults=f0;fi.use=function(...t){return d0.use(...t),fi.defaults=d0.defaults,lne(fi.defaults),fi};fi.walkTokens=function(t,e){return d0.walkTokens(t,e)};fi.parseInline=d0.parseInline;fi.Parser=uc;fi.parser=uc.parse;fi.Renderer=C5;fi.TextRenderer=mI;fi.Lexer=cc;fi.lexer=cc.lex;fi.Tokenizer=w5;fi.Hooks=$x;fi.parse=fi;m7t=fi.options,y7t=fi.setOptions,v7t=fi.use,x7t=fi.walkTokens,b7t=fi.parseInline,T7t=uc.parse,k7t=cc.lex});function A5(t){for(var e=[],r=1;r{});function wne(t,{markdownAutoWrap:e}){let i=t.replace(//g,` `).replace(/\n{2,}/g,` `);return A5(i)}function Cne(t){return t.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}function Ene(t,e={}){let r=wne(t,e),i=fi.lexer(r),n=[[]],a=0;function s(o,l="normal"){o.type==="text"?o.text.split(` `).forEach((h,d)=>{d!==0&&(a++,n.push([])),h.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&n[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(u=>{s(u,o.type)}):o.type==="html"&&n[a].push({content:o.text,type:"normal"})}return x(s,"processNode"),i.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{s(l)}):o.type==="html"?n[a].push({content:o.text,type:"normal"}):n[a].push({content:o.raw,type:"normal"})}),n}function Sne(t){return t?`

    ${t.replace(/\\n|\n/g,"
    ")}

    `:""}function Ane(t,{markdownAutoWrap:e}={}){let r=fi.lexer(t);function i(n){return n.type==="text"?e===!1?n.text.replace(/\n */g,"
    ").replace(/ /g," "):n.text.replace(/\n */g,"
    "):n.type==="strong"?`${n.tokens?.map(i).join("")}`:n.type==="em"?`${n.tokens?.map(i).join("")}`:n.type==="paragraph"?`

    ${n.tokens?.map(i).join("")}

    `:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(Q.warn(`Unsupported markdown: ${n.type}`),n.raw)}return x(i,"output"),r.map(i).join("")}function _ne(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}function Lne(t,e){let r=_ne(e.content);return kI(t,[],r,e.type)}function kI(t,e,r,i){if(r.length===0)return[{content:e.join(""),type:i},{content:"",type:i}];let[n,...a]=r,s=[...e,n];return t([{content:s.join(""),type:i}])?kI(t,s,a,i):(e.length===0&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function Rne(t,e){if(t.some(({content:r})=>r.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return _5(t,e)}function _5(t,e,r=[],i=[]){if(t.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";t[0].content===" "&&(n=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),e(s))return _5(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){let[o,l]=Lne(e,a);r.push([o]),l.content&&t.unshift(l)}return _5(t,e,r)}function xI(t,e){e&&t.attr("style",e)}async function Ine(t,e,r,i,n=!1,a=It()){let s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,bne)}px`),s.attr("height",`${Math.min(10*r,bne)}px`);let o=s.append("xhtml:div"),l=Ji(e.label)?await hm(e.label.replace(ot.lineBreakRegex,` `),a):vr(e.label,a),u=e.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),xI(h,e.labelStyle),h.attr("class",`${u} ${i}`),xI(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let d=o.node().getBoundingClientRect();return d.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),d=o.node().getBoundingClientRect()),s.node()}function R5(t,e,r,i=!1){let n=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}function Dne(t,e,r){let i=t.append("text"),n=R5(i,1,e);I5(n,r);let a=n.node().getComputedTextLength();return i.remove(),a}function wI(t,e,r){let i=t.append("text"),n=R5(i,1,e);I5(n,[{content:r,type:"normal"}]);let a=n.node()?.getBoundingClientRect();return a&&i.remove(),a}function Mne(t,e,r,i=!1,n=!1){let s=e.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");n&&l.attr("text-anchor","middle");let u=0;for(let h of r){let d=x(p=>Dne(s,1.1,p)<=t,"checkWidth"),f=d(h)?[h]:Rne(h,d);for(let p of f){let g=R5(l,u,1.1,n);I5(g,p),u++}}if(i){let h=l.node().getBBox(),d=2;return o.attr("x",h.x-d).attr("y",h.y-d).attr("width",h.width+2*d).attr("height",h.height+2*d),s.node()}else return l.node()}function bI(t){let e=/&(amp|lt|gt);/g;return t.replace(e,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}function I5(t,e){t.text(""),e.forEach((r,i)=>{let n=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(bI(r.content)):n.text(" "+bI(r.content))})}async function Nne(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{let o=`${a}:${s}`;return await UNe(o)?await gu(o,void 0,{class:"label-icon"}):``})()),n));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}var TI,vI,Tne,L5,kne,UNe,gu,bne,ra,qa=z(()=>{Zr();_r();ir();tne();Lr();xne();yI();TI={body:'?',height:80,width:80},vI=new Map,Tne=new Map,L5=x(t=>{for(let e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Q.debug("Registering icon pack:",e.name),"loader"in e)Tne.set(e.name,e.loader);else if("icons"in e)vI.set(e.name,e.icons);else throw Q.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),kne=x(async(t,e)=>{let r=Q9(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);let i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let n=vI.get(i);if(!n){let s=Tne.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},vI.set(i,n)}catch(o){throw Q.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}let a=eI(n,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),UNe=x(async t=>{try{return await kne(t),!0}catch{return!1}},"isIconAvailable"),gu=x(async(t,e,r)=>{let i;try{i=await kne(t,e?.fallbackPrefix)}catch(s){Q.error(s),i=TI}let n=rI(i,e),a=nI(iI(n.body),{...n.attributes,...r});return vr(a,It())},"getIconSVG");x(wne,"preprocessMarkdown");x(Cne,"nonMarkdownToLines");x(Ene,"markdownToLines");x(Sne,"nonMarkdownToHTML");x(Ane,"markdownToHTML");x(_ne,"splitTextToChars");x(Lne,"splitWordToFitWidth");x(kI,"splitWordToFitWidthRecursion");x(Rne,"splitLineToFitWidth");x(_5,"splitLineToFitWidthRecursion");x(xI,"applyStyle");bne=16384;x(Ine,"addHtmlSpan");x(R5,"createTspan");x(Dne,"computeWidthOfText");x(wI,"computeDimensionOfText");x(Mne,"createFormattedText");x(bI,"decodeHTMLEntities");x(I5,"updateTextContentAndStyles");x(Nne,"replaceIconSubstring");ra=x(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},h)=>{if(Q.debug("XYZ createText",e,r,i,n,a,o,"addSvgBackground: ",u),a){let d=s?Ane(e,h):Sne(e),f=await Nne(Go(d),h),p=e.replace(/\\\\/g,"\\"),g={isNode:o,label:Ji(e)?p:f,labelStyle:r.replace("fill:","color:")};return await Ine(t,g,l,n,u,h)}else{let d=Go(e.replace(//g,"
    ")),f=s?Ene(d.replace("
    ","
    "),h):Cne(d),p=Mne(l,t,f,e?u:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ze(p).attr("style",g)}else{let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Ze(p).select("rect").attr("style",g.replace(/background:/g,"fill:"));let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ze(p).select("text").attr("style",m)}return i?Ze(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Ze(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText")});function CI(t,e,r){if(t&&t.length){let[i,n]=e,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(let l of t){let[u,h]=l;l[0]=(u-i)*s-(h-n)*o+i,l[1]=(u-i)*o+(h-n)*s+n}}}function HNe(t,e){return t[0]===e[0]&&t[1]===e[1]}function YNe(t,e,r,i=1){let n=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(n)for(let u of s)CI(u,o,n);let l=(function(u,h,d){let f=[];for(let b of u){let T=[...b];HNe(T[0],T[T.length-1])||T.push([T[0][0],T[0][1]]),T.length>2&&f.push(T)}let p=[];h=Math.max(h,.1);let g=[];for(let b of f)for(let T=0;Tb.yminT.ymin?1:b.xT.x?1:b.ymax===T.ymax?0:(b.ymax-T.ymax)/Math.abs(b.ymax-T.ymax))),!g.length)return p;let m=[],y=g[0].ymin,v=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let T=0;Ty);T++)b=T;g.splice(0,b+1).forEach((T=>{m.push({s:y,edge:T})}))}if(m=m.filter((b=>!(b.edge.ymax<=y))),m.sort(((b,T)=>b.edge.x===T.edge.x?0:(b.edge.x-T.edge.x)/Math.abs(b.edge.x-T.edge.x))),(d!==1||v%h==0)&&m.length>1)for(let b=0;b=m.length)break;let C=m[b].edge,k=m[T].edge;p.push([[Math.round(C.x),y],[Math.round(k.x),y]])}y+=d,m.forEach((b=>{b.edge.x=b.edge.x+d*b.edge.islope})),v++}return p})(s,a,i);if(n){for(let u of s)CI(u,o,-n);(function(u,h,d){let f=[];u.forEach((p=>f.push(...p))),CI(f,h,d)})(l,o,-n)}return l}function Ux(t,e){var r;let i=e.hachureAngle+90,n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),YNe(t,n,i,a||1)}function z5(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function SI(t,e){return t.type===e}function zI(t){let e=[],r=(function(s){let o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:XNe,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:EI,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:One,text:""},o})(t),i="BOD",n=0,a=r[n];for(;!SI(a,One);){let s=0,o=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return zI("M0,0"+t);n++,s=D5[a.text],i=a.text}else SI(a,EI)?s=D5[i]:(n++,s=D5[a.text],i=a.text);if(!(n+sh%2?u+r:u+e));a.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{let l=o.map(((u,h)=>h%2?u+r:u+e));a.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":a.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{let l=o.map(((u,h)=>h%2?u+r:u+e));a.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=i,r=n}return a}function Wne(t){let e=[],r="",i=0,n=0,a=0,s=0,o=0,l=0;for(let{key:u,data:h}of t){switch(u){case"M":e.push({key:"M",data:[...h]}),[i,n]=h,[a,s]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],n=h[5],o=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,n]});break;case"V":n=h[0],e.push({key:"L",data:[i,n]});break;case"S":{let d=0,f=0;r==="C"||r==="S"?(d=i+(i-o),f=n+(n-l)):(d=i,f=n),e.push({key:"C",data:[d,f,...h]}),o=h[0],l=h[1],i=h[2],n=h[3];break}case"T":{let[d,f]=h,p=0,g=0;r==="Q"||r==="T"?(p=i+(i-o),g=n+(n-l)):(p=i,g=n);let m=i+2*(p-i)/3,y=n+2*(g-n)/3,v=d+2*(p-d)/3,b=f+2*(g-f)/3;e.push({key:"C",data:[m,y,v,b,d,f]}),o=p,l=g,i=d,n=f;break}case"Q":{let[d,f,p,g]=h,m=i+2*(d-i)/3,y=n+2*(f-n)/3,v=p+2*(d-p)/3,b=g+2*(f-g)/3;e.push({key:"C",data:[m,y,v,b,p,g]}),o=d,l=f,i=p,n=g;break}case"A":{let d=Math.abs(h[0]),f=Math.abs(h[1]),p=h[2],g=h[3],m=h[4],y=h[5],v=h[6];d===0||f===0?(e.push({key:"C",data:[i,n,y,v,y,v]}),i=y,n=v):(i!==y||n!==v)&&(Une(i,n,y,v,d,f,p,g,m).forEach((function(b){e.push({key:"C",data:b})})),i=y,n=v);break}case"Z":e.push({key:"Z",data:[]}),i=a,n=s}r=u}return e}function Gx(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function Une(t,e,r,i,n,a,s,o,l,u){let h=(d=s,Math.PI*d/180);var d;let f=[],p=0,g=0,m=0,y=0;if(u)[p,g,m,y]=u;else{[t,e]=Gx(t,e,-h),[r,i]=Gx(r,i,-h);let L=(t-r)/2,_=(e-i)/2,I=L*L/(n*n)+_*_/(a*a);I>1&&(I=Math.sqrt(I),n*=I,a*=I);let D=n*n,P=a*a,O=D*P-D*_*_-P*L*L,F=D*_*_+P*L*L,$=(o===l?-1:1)*Math.sqrt(Math.abs(O/F));m=$*n*_/a+(t+r)/2,y=$*-a*L/n+(e+i)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),g=Math.asin(parseFloat(((i-y)/a).toFixed(9))),tg&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let v=g-p;if(Math.abs(v)>120*Math.PI/180){let L=g,_=r,I=i;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=Une(r=m+n*Math.cos(g),i=y+a*Math.sin(g),_,I,n,a,s,0,l,[g,L,m,y])}v=g-p;let b=Math.cos(p),T=Math.sin(p),C=Math.cos(g),k=Math.sin(g),w=Math.tan(v/4),E=4/3*n*w,S=4/3*a*w,R=[t,e],M=[t+E*T,e-S*b],N=[r+E*k,i-S*C],A=[r,i];if(M[0]=2*R[0]-M[0],M[1]=2*R[1]-M[1],u)return[M,N,A].concat(f);{f=[M,N,A].concat(f);let L=[];for(let _=0;_2){let n=[];for(let a=0;a2*Math.PI&&(p=0,g=2*Math.PI);let m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-p)/2),v=qne(y,u,h,d,f,p,g,1,l);if(!l.disableMultiStroke){let b=qne(y,u,h,d,f,p,g,1.5,l);v.push(...b)}return s&&(o?v.push(...ef(u,h,u+d*Math.cos(p),h+f*Math.sin(p),l),...ef(u,h,u+d*Math.cos(g),h+f*Math.sin(g),l)):v.push({op:"lineTo",data:[u,h]},{op:"lineTo",data:[u+d*Math.cos(p),h+f*Math.sin(p)]})),{type:"path",ops:v}}function Fne(t,e){let r=Wne(Vne(zI(t))),i=[],n=[0,0],a=[0,0];for(let{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],n=[o[0],o[1]];break;case"L":i.push(...ef(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[l,u,h,d,f,p]=o;i.push(...ZNe(l,u,h,d,f,p,a,e)),a=[f,p];break}case"Z":i.push(...ef(a[0],a[1],n[0],n[1],e)),a=[n[0],n[1]]}return{type:"path",ops:i}}function AI(t,e){let r=[];for(let i of t)if(i.length){let n=e.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+lr(n,e),i[0][1]+lr(n,e)]});for(let s=1;s500?.4:-.0016668*l+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>o&&(h=l/10);let d=h/2,f=.2+.2*Xne(n),p=n.bowing*n.maxRandomnessOffset*(i-e)/200,g=n.bowing*n.maxRandomnessOffset*(t-r)/200;p=lr(p,n,u),g=lr(g,n,u);let m=[],y=()=>lr(d,n,u),v=()=>lr(h,n,u),b=n.preserveVertices;return a&&(s?m.push({op:"move",data:[t+(b?0:y()),e+(b?0:y())]}):m.push({op:"move",data:[t+(b?0:lr(h,n,u)),e+(b?0:lr(h,n,u))]})),s?m.push({op:"bcurveTo",data:[p+t+(r-t)*f+y(),g+e+(i-e)*f+y(),p+t+2*(r-t)*f+y(),g+e+2*(i-e)*f+y(),r+(b?0:y()),i+(b?0:y())]}):m.push({op:"bcurveTo",data:[p+t+(r-t)*f+v(),g+e+(i-e)*f+v(),p+t+2*(r-t)*f+v(),g+e+2*(i-e)*f+v(),r+(b?0:v()),i+(b?0:v())]}),m}function M5(t,e,r){if(!t.length)return[];let i=[];i.push([t[0][0]+lr(e,r),t[0][1]+lr(e,r)]),i.push([t[0][0]+lr(e,r),t[0][1]+lr(e,r)]);for(let n=1;n3){let a=[],s=1-r.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+21&&n.push(o)):n.push(o),n.push(t[e+3])}else{let l=t[e+0],u=t[e+1],h=t[e+2],d=t[e+3],f=p0(l,u,.5),p=p0(u,h,.5),g=p0(h,d,.5),m=p0(f,p,.5),y=p0(p,g,.5),v=p0(m,y,.5);BI([l,f,m,v],0,r,n),BI([v,y,g,d],0,r,n)}var a,s;return n}function JNe(t,e){return $5(t,0,t.length,e)}function $5(t,e,r,i,n){let a=n||[],s=t[e],o=t[r-1],l=0,u=1;for(let h=e+1;hl&&(l=d,u=h)}return Math.sqrt(l)>i?($5(t,e,u+1,i,a),$5(t,u,r,i,a)):(a.length||a.push(s),a.push(o)),a}function _I(t,e=.15,r){let i=[],n=(t.length-1)/3;for(let a=0;a0?$5(i,0,i.length,r):i}var Wx,LI,RI,II,DI,MI,so,NI,XNe,EI,One,D5,jNe,Vo,n1,FI,N5,$I,Je,zt=z(()=>{Wx=class{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){let i=Ux(e,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(e,r){let i=[];for(let n of e)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}};LI=class extends Wx{fillPolygons(e,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let n=Ux(e,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(let[u,h]of n)z5([u,h])&&s.push([[u[0]-o,u[1]+l],[...h]],[[u[0]+o,u[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}},RI=class extends Wx{fillPolygons(e,r){let i=this._fillPolygons(e,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,n);return i.ops=i.ops.concat(a.ops),i}},II=class{constructor(e){this.helper=e}fillPolygons(e,r){let i=Ux(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(e,r){let i=[],n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);let s=n/4;for(let o of e){let l=z5(o),u=l/n,h=Math.ceil(u)-1,d=l-h*n,f=(o[0][0]+o[1][0])/2-n/4,p=Math.min(o[0][1],o[1][1]);for(let g=0;g{let o=z5(s),l=Math.floor(o/(i+n)),u=(o+n-l*(i+n))/2,h=s[0],d=s[1];h[0]>d[0]&&(h=s[1],d=s[0]);let f=Math.atan((d[1]-h[1])/(d[0]-h[0]));for(let p=0;p{let s=z5(a),o=Math.round(s/(2*r)),l=a[0],u=a[1];l[0]>u[0]&&(l=a[1],u=a[0]);let h=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let d=0;d2*Math.PI&&(E=0,S=2*Math.PI);let R=(S-E)/b.curveStepCount,M=[];for(let N=E;N<=S;N+=R)M.push([T+k*Math.cos(N),C+w*Math.sin(N)]);return M.push([T+k*Math.cos(S),C+w*Math.sin(S)]),M.push([T,C]),i1([M],b)})(e,r,i,n,a,s,u));return u.stroke!==Vo&&h.push(d),this._d("arc",h,u)}curve(e,r){let i=this._o(r),n=[],a=Pne(e,i);if(i.fill&&i.fill!==Vo)if(i.fillStyle==="solid"){let s=Pne(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],o=e;if(o.length){let l=typeof o[0][0]=="number"?[o]:o;for(let u of l)u.length<3?s.push(...u):u.length===3?s.push(..._I(Gne([u[0],u[0],u[1],u[2]]),10,(1+i.roughness)/2)):s.push(..._I(Gne(u),10,(1+i.roughness)/2))}s.length&&n.push(i1([s],i))}return i.stroke!==Vo&&n.push(a),this._d("curve",n,i)}polygon(e,r){let i=this._o(r),n=[],a=O5(e,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(AI([e],i)):n.push(i1([e],i))),i.stroke!==Vo&&n.push(a),this._d("polygon",n,i)}path(e,r){let i=this._o(r),n=[];if(!e)return this._d("path",n,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=i.fill&&i.fill!=="transparent"&&i.fill!==Vo,s=i.stroke!==Vo,o=!!(i.simplification&&i.simplification<1),l=(function(h,d,f){let p=Wne(Vne(zI(h))),g=[],m=[],y=[0,0],v=[],b=()=>{v.length>=4&&m.push(..._I(v,d)),v=[]},T=()=>{b(),m.length&&(g.push(m),m=[])};for(let{key:k,data:w}of p)switch(k){case"M":T(),y=[w[0],w[1]],m.push(y);break;case"L":b(),m.push([w[0],w[1]]);break;case"C":if(!v.length){let E=m.length?m[m.length-1]:y;v.push([E[0],E[1]])}v.push([w[0],w[1]]),v.push([w[2],w[3]]),v.push([w[4],w[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(T(),!f)return g;let C=[];for(let k of g){let w=JNe(k,f);w.length&&C.push(w)}return C})(e,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),u=Fne(e,i);if(a)if(i.fillStyle==="solid")if(l.length===1){let h=Fne(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push(AI(l,i));else n.push(i1(l,i));return s&&(o?l.forEach((h=>{n.push(O5(h,!1,i))})):n.push(u)),this._d("path",n,i)}opsToPath(e,r){let i="";for(let n of e.ops){let a=typeof r=="number"&&r>=0?n.data.map((s=>+s.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(e){let r=e.sets||[],i=e.options||this.defaultOptions,n=[];for(let a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Vo};break;case"fillPath":s={d:this.opsToPath(a),stroke:Vo,strokeWidth:0,fill:i.fill||Vo};break;case"fillSketch":s=this.fillSketch(a,i)}s&&n.push(s)}return n}fillSketch(e,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||Vo,strokeWidth:i,fill:Vo}}_mergedShape(e){return e.filter(((r,i)=>i===0||r.op!=="move"))}},FI=class{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new n1(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),n=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(let s of r)switch(s.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";let o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,o),n.restore();break}case"fillSketch":this.fillSketch(n,s,i)}}fillSketch(e,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=n,this._drawToContext(e,r,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,i,n="nonzero"){e.beginPath();for(let a of r.ops){let s=typeof i=="number"&&i>=0?a.data.map((o=>+o.toFixed(i))):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(n):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,i,n,a){let s=this.gen.line(e,r,i,n,a);return this.draw(s),s}rectangle(e,r,i,n,a){let s=this.gen.rectangle(e,r,i,n,a);return this.draw(s),s}ellipse(e,r,i,n,a){let s=this.gen.ellipse(e,r,i,n,a);return this.draw(s),s}circle(e,r,i,n){let a=this.gen.circle(e,r,i,n);return this.draw(a),a}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i),i}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i),i}arc(e,r,i,n,a,s,o=!1,l){let u=this.gen.arc(e,r,i,n,a,s,o,l);return this.draw(u),u}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i),i}path(e,r){let i=this.gen.path(e,r);return this.draw(i),i}},N5="http://www.w3.org/2000/svg",$I=class{constructor(e,r){this.svg=e,this.gen=new n1(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(N5,"g"),s=e.options.fixedDecimalPlaceDigits;for(let o of r){let l=null;switch(o.type){case"path":l=n.createElementNS(N5,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS(N5,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,o,i)}l&&a.appendChild(l)}return a}fillSketch(e,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);let a=e.createElementNS(N5,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,i,n,a){let s=this.gen.line(e,r,i,n,a);return this.draw(s)}rectangle(e,r,i,n,a){let s=this.gen.rectangle(e,r,i,n,a);return this.draw(s)}ellipse(e,r,i,n,a){let s=this.gen.ellipse(e,r,i,n,a);return this.draw(s)}circle(e,r,i,n){let a=this.gen.circle(e,r,i,n);return this.draw(a)}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i)}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i)}arc(e,r,i,n,a,s,o=!1,l){let u=this.gen.arc(e,r,i,n,a,s,o,l);return this.draw(u)}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i)}path(e,r){let i=this.gen.path(e,r);return this.draw(i)}},Je={canvas:(t,e)=>new FI(t,e),svg:(t,e)=>new $I(t,e),generator:t=>new n1(t),newSeed:()=>n1.newSeed()}});function Yr(t){let e=t.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}function tf(t,e,r,i,n,a){let s=[],l=r-t,u=i-e,h=l/a,d=2*Math.PI/h,f=e+u/2;for(let p=0;p<=50;p++){let g=p/50,m=t+g*l,y=f+n*Math.sin(d*(m-t));s.push({x:m,y})}return s}function Yx(t,e,r,i,n,a){let s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let d=0;dl.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=e.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);let n=e.find(l=>l.getAttribute("fill")!=="none"),a=e.find(l=>l.getAttribute("stroke")!=="none"),s=x((l,u)=>l?.getAttribute(u)??void 0,"getAttr");if(n){let l={fill:s(n,"fill"),"fill-opacity":s(n,"fill-opacity")??"1"};Object.entries(l).forEach(([u,h])=>{h&&r.setAttribute(u,h)})}if(a){let l={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([u,h])=>{h&&r.setAttribute(u,h)})}let o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}function cae(t,e){return t.intersect(e)}function uae(t,e,r,i){var n=t.x,a=t.y,s=n-i.x,o=a-i.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);i.x0}function pae(t,e,r){let i=t.x,n=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(h){s=Math.min(s,h.x),o=Math.min(o,h.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));let l=i-t.width/2-s,u=n-t.height/2-o;for(let h=0;h1&&a.sort(function(h,d){let f=h.x-r.x,p=h.y-r.y,g=Math.sqrt(f*f+p*p),m=d.x-r.x,y=d.y-r.y,v=Math.sqrt(m*m+y*y);return gh,":first-child");return d.attr("class","anchor").attr("style",Vn(o)),qt(e,d),e.intersect=function(f){return Q.info("Circle intersect",e,s,f),Mt.circle(e,s,f)},a}function UI(t,e,r,i,n,a,s){let l=(t+r)/2,u=(e+i)/2,h=Math.atan2(i-e,r-t),d=(r-t)/2,f=(i-e)/2,p=d/n,g=f/a,m=Math.sqrt(p**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-m**2),v=l+y*a*Math.sin(h)*(s?-1:1),b=u-y*n*Math.cos(h)*(s?-1:1),T=Math.atan2((e-b)/a,(t-v)/n),k=Math.atan2((i-b)/a,(r-v)/n)-T;s&&k<0&&(k+=2*Math.PI),!s&&k>0&&(k-=2*Math.PI);let w=[];for(let E=0;E<20;E++){let S=E/19,R=T+S*k,M=v+n*Math.cos(R),N=b+a*Math.sin(R);w.push({x:M,y:N})}return w}function mae(t,e,r){let[i,n]=[e,r].sort((a,s)=>s-a);return n*(1-Math.sqrt(1-(t/i/2)**2))}async function yae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,o=x(R=>R+s,"calcTotalHeight"),l=x(R=>{let M=R/2;return[M/(2.5+R/50),M]},"calcEllipseRadius"),{shapeSvg:u,bbox:h}=await cr(t,e,ar(e)),d=o(e?.height?e?.height:h.height),[f,p]=l(d),g=mae(d,f,p),y=(e?.width?e?.width:h.width)+a*2+g-g,v=d,{cssStyles:b}=e,T=[{x:y/2,y:-v/2},{x:-y/2,y:-v/2},...UI(-y/2,-v/2,-y/2,v/2,f,p,!1),{x:y/2,y:v/2},...UI(y/2,v/2,y/2,-v/2,f,p,!0)],C=Je.svg(u),k=$t(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let w=Yr(T),E=C.path(w,k),S=u.insert(()=>E,":first-child");return S.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",b),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(${f/2}, 0)`),qt(e,S),e.intersect=function(R){return Mt.polygon(e,T,R)},u}function Mh(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}async function vae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?28:n,s=e.look==="neo"?24:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.width??l.width)+(e.look==="neo"?a*2:a+q5),h=(e?.height??l.height)+(e.look==="neo"?s*2:s),d=0,f=u,p=-h,g=0,m=[{x:d+q5,y:p},{x:f,y:p},{x:f,y:g},{x:d,y:g},{x:d,y:p+q5},{x:d+q5,y:p}],y,{cssStyles:v}=e;if(e.look==="handDrawn"){let b=Je.svg(o),T=$t(e,{}),C=Yr(m),k=b.path(C,T);y=o.insert(()=>k,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),v&&y.attr("style",v)}else y=Mh(o,u,h,m);return i&&y.attr("style",i),qt(e,y),e.intersect=function(b){return Mt.polygon(e,m,b)},o}function xae(t,e){let{nodeStyles:r}=Dt(e);e.label="";let i=t.insert("g").attr("class",ar(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=Je.svg(i),l=$t(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");let u=Yr(s),h=o.path(u,l),d=i.insert(()=>h,":first-child");return n&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",n),r&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(f){return Mt.polygon(e,s,f)},i}async function HI(t,e,r){let{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i;let{shapeSvg:a,bbox:s,halfPadding:o}=await cr(t,e,ar(e)),l=16,u=r?.padding??o,h=e.look==="neo"?s.width/2+l*2:s.width/2+u,d,{cssStyles:f}=e;if(e.look==="handDrawn"){let p=Je.svg(a),g=$t(e,{}),m=p.circle(0,0,h*2,g);d=a.insert(()=>m,":first-child"),d.attr("class","basic label-container").attr("style",Vn(f))}else d=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0);return qt(e,d),e.calcIntersect=function(p,g){let m=p.width/2;return Mt.circle(p,m,g)},e.intersect=function(p){return Q.info("Circle intersect",e,h,p),Mt.circle(e,h,p)},a}function bae(t){let e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=t*2,n={x:i/2*e,y:i/2*r},a={x:-(i/2)*e,y:i/2*r},s={x:-(i/2)*e,y:-(i/2)*r},o={x:i/2*e,y:-(i/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y} M ${n.x},${n.y} L ${s.x},${s.y}`}function Tae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r,e.label="";let n=t.insert("g").attr("class",ar(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,o=Je.svg(n),l=$t(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");let u=o.circle(0,0,a*2,l),h=bae(a),d=o.path(h,l),f=n.insert(()=>u,":first-child");return f.insert(()=>d),f.attr("class","outer-path"),s&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",s),i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),qt(e,f),e.intersect=function(p){return Q.info("crossedCircle intersect",e,{radius:a,point:p}),Mt.circle(e,a,p)},n}function Rh(t,e,r,i=100,n=0,a=180){let s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let d=0;dk,":first-child").attr("stroke-opacity",0),w.insert(()=>T,":first-child"),w.attr("class","text"),f&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${d}, 0)`),s.attr("transform",`translate(${-u/2+d-(a.x-(a.left??0))},${-h/2+(e.padding??0)/2-(a.y-(a.top??0))})`),qt(e,w),e.intersect=function(E){return Mt.polygon(e,g,E)},n}function Ih(t,e,r,i=100,n=0,a=180){let s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let d=0;dk,":first-child").attr("stroke-opacity",0),w.insert(()=>T,":first-child"),w.attr("class","text"),f&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${-d}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-h/2+(e.padding??0)/2-(a.y-(a.top??0))})`),qt(e,w),e.intersect=function(E){return Mt.polygon(e,g,E)},n}function Ga(t,e,r,i=100,n=0,a=180){let s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let d=0;dR,":first-child").attr("stroke-opacity",0),M.insert(()=>C,":first-child"),M.insert(()=>E,":first-child"),M.attr("class","text"),f&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${d-d/4}, 0)`),s.attr("transform",`translate(${-u/2+(e.padding??0)/2-(a.x-(a.left??0))},${-h/2+(e.padding??0)/2-(a.y-(a.top??0))})`),qt(e,M),e.intersect=function(N){return Mt.polygon(e,m,N)},n}async function Eae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,o=20,l=5,{shapeSvg:u,bbox:h}=await cr(t,e,ar(e)),d=Math.max(o,(h.width+a*2)*1.25,e?.width??0),f=Math.max(l,h.height+s*2,e?.height??0),p=f/2,{cssStyles:g}=e,m=Je.svg(u),y=$t(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=d,b=f,T=v-p,C=b/4,k=[{x:T,y:0},{x:C,y:0},{x:0,y:b/2},{x:C,y:b},{x:T,y:b},...Yx(-T,-b/2,p,50,270,90)],w=Yr(k),E=m.path(w,y),S=u.insert(()=>E,":first-child");return S.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),S.attr("transform",`translate(${-d/2}, ${-f/2})`),qt(e,S),e.intersect=function(R){return Mt.polygon(e,k,R)},u}async function Sae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?24:n,s=e.look==="neo"?24:n;if(e.width||e.height){let y=e.width??0;e.width=(e.width??0)-s,e.widthk,":first-child"),g=o.insert(()=>C,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let y=dOe(0,0,h,p,d,f);g=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",Vn(m)).attr("style",i)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-h/2}, ${-(p/2+f)})`),qt(e,g),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(e.padding??0)/1.5-(l.y-(l.top??0))})`),e.intersect=function(y){let v=Mt.rect(e,y),b=v.x-(e.x??0);if(d!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(v.y-(e.y??0))>(e.height??0)/2-f)){let T=f*f*(1-b*b/(d*d));T>0&&(T=Math.sqrt(T)),T=f-T,y.y-(e.y??0)>0&&(T=-T),v.y+=T}return v},o}async function Aae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await cr(t,e,ar(e)),u=o.width+n,h=o.height+a,d=h*.2,f=-u/2,p=-h/2-d/2,{cssStyles:g}=e,m=Je.svg(s),y=$t(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:f,y:p+d},{x:-f,y:p+d},{x:-f,y:-p},{x:f,y:-p},{x:f,y:p},{x:-f,y:p},{x:-f,y:p+d}],b=m.polygon(v.map(C=>[C.x,C.y]),y),T=s.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),l.attr("transform",`translate(${f+(e.padding??0)/2-(o.x-(o.left??0))}, ${p+d+(e.padding??0)/2-(o.y-(o.top??0))})`),qt(e,T),e.intersect=function(C){return Mt.rect(e,C)},s}async function _ae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e),n=e.look==="neo"?12:5;e.labelStyle=r;let a=e.padding??0,s=e.look==="neo"?16:a,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.width?e?.width/2:l.width/2)+(s??0),h=u-n,d,{cssStyles:f}=e;if(e.look==="handDrawn"){let p=Je.svg(o),g=$t(e,{roughness:.2,strokeWidth:2.5}),m=$t(e,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,g),v=p.circle(0,0,h*2,m);d=o.insert("g",":first-child"),d.attr("class",Vn(e.cssClasses)).attr("style",Vn(f)),d.node()?.appendChild(y),d.node()?.appendChild(v)}else{d=o.insert("g",":first-child");let p=d.insert("circle",":first-child"),g=d.insert("circle");d.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return qt(e,d),e.intersect=function(p){return Q.info("DoubleCircle intersect",e,u,p),Mt.circle(e,u,p)},o}function Lae(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=Dt(e);e.label="",e.labelStyle=i;let a=t.insert("g").attr("class",ar(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=Je.svg(a),{nodeBorder:u}=r,h=$t(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);let d=l.circle(0,0,s*2,h),f=a.insert(()=>d,":first-child");return f.selectAll("path").attr("style",`fill: ${u} !important;`),o&&o.length>0&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),qt(e,f),e.intersect=function(p){return Q.info("filledCircle intersect",e,{radius:s,point:p}),Mt.circle(e,s,p)},a}async function Rae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?n*2:n;(e.width||e.height)&&(e.height=e?.height??0,e.heightv,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return p&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",p),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),e.width=u,e.height=h,qt(e,b),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-h/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(T){return Q.info("Triangle intersect",e,f,T),Mt.polygon(e,f,T)},s}function Iae(t,e,{dir:r,config:{state:i,themeVariables:n}}){let{nodeStyles:a}=Dt(e);e.label="";let s=t.insert("g").attr("class",ar(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,l=Math.max(70,e?.width??0),u=Math.max(10,e?.height??0);r==="LR"&&(l=Math.max(10,e?.width??0),u=Math.max(70,e?.height??0));let h=-1*l/2,d=-1*u/2,f=Je.svg(s),p=$t(e,{stroke:n.lineColor,fill:n.lineColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let g=f.rectangle(h,d,l,u,p),m=s.insert(()=>g,":first-child");o&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",o),a&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",a),qt(e,m);let y=i?.padding??0;return e.width&&e.height&&(e.width+=y/2||0,e.height+=y/2||0),e.intersect=function(v){return Mt.rect(e,v)},s}async function Dae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=15,a=10,s=e.look==="neo"?16:e.padding??0,o=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-o*2,e.heightb,":first-child");return T.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",p),i&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),qt(e,T),e.intersect=function(C){return Q.info("Pill intersect",e,{radius:f,point:C}),Mt.polygon(e,y,C)},l}async function Mae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e),n=e.look==="neo"?3.5:4;e.labelStyle=r;let a=e.padding??0,s=70,o=32,l=e.look==="neo"?s:a,u=e.look==="neo"?o:a;if(e.width||e.height){let T=(e.height??0)/n;e.width=(e?.width??0)-2*T-u,e.height=(e.height??0)-l}let{shapeSvg:h,bbox:d}=await cr(t,e,ar(e)),f=(e?.height?e?.height:d.height)+l,p=f/n,g=(e?.width?e?.width:d.width)+2*p+u,m=[{x:p,y:0},{x:g-p,y:0},{x:g,y:-f/2},{x:g-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}],y,{cssStyles:v}=e;if(e.look==="handDrawn"){let b=Je.svg(h),T=$t(e,{}),C=gOe(0,0,g,f,p),k=b.path(C,T);y=h.insert(()=>k,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),v&&y.attr("style",v)}else y=Mh(h,g,f,m);return i&&y.attr("style",i),e.width=g,e.height=f,qt(e,y),e.intersect=function(b){return Mt.polygon(e,m,b)},h}async function Nae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.label="",e.labelStyle=r;let{shapeSvg:n}=await cr(t,e,ar(e)),a=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,l=Je.svg(n),u=$t(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],d=Yr(h),f=l.path(d,u),p=n.insert(()=>f,":first-child");return p.attr("class","basic label-container outer-path"),o&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",o),i&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-a/2}, ${-s/2})`),qt(e,p),e.intersect=function(g){return Q.info("Pill intersect",e,{points:h}),Mt.polygon(e,h,g)},n}async function Oae(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=Dt(e);e.labelStyle=n;let a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:h,label:d}=await cr(t,e,"icon-shape default"),f=e.pos==="t",p=o,g=o,{nodeBorder:m}=r,{stylesMap:y}=h0(e),v=-g/2,b=-p/2,T=e.label?8:0,C=Je.svg(u),k=$t(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let w=C.rectangle(v,b,g,p,k),E=Math.max(g,h.width),S=p+h.height+T,R=C.rectangle(-E/2,-S/2,E,S,{...k,fill:"transparent",stroke:"none"}),M=u.insert(()=>w,":first-child"),N=u.insert(()=>R);if(e.icon){let A=u.append("g");A.html(`${await gu(e.icon,{height:o,width:o,fallbackPrefix:""})}`);let L=A.node().getBBox(),_=L.width,I=L.height,D=L.x,P=L.y;A.attr("transform",`translate(${-_/2-D},${f?h.height/2+T/2-I/2-P:-h.height/2-T/2-I/2-P})`),A.attr("style",`color: ${y.get("stroke")??m};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-S/2:S/2-h.height})`),M.attr("transform",`translate(0,${f?h.height/2+T/2:-h.height/2-T/2})`),qt(e,N),e.intersect=function(A){if(Q.info("iconSquare intersect",e,A),!e.label)return Mt.rect(e,A);let L=e.x??0,_=e.y??0,I=e.height??0,D=[];return f?D=[{x:L-h.width/2,y:_-I/2},{x:L+h.width/2,y:_-I/2},{x:L+h.width/2,y:_-I/2+h.height+T},{x:L+g/2,y:_-I/2+h.height+T},{x:L+g/2,y:_+I/2},{x:L-g/2,y:_+I/2},{x:L-g/2,y:_-I/2+h.height+T},{x:L-h.width/2,y:_-I/2+h.height+T}]:D=[{x:L-g/2,y:_-I/2},{x:L+g/2,y:_-I/2},{x:L+g/2,y:_-I/2+p},{x:L+h.width/2,y:_-I/2+p},{x:L+h.width/2/2,y:_+I/2},{x:L-h.width/2,y:_+I/2},{x:L-h.width/2,y:_-I/2+p},{x:L-g/2,y:_-I/2+p}],Mt.polygon(e,D,A)},u}async function Pae(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=Dt(e);e.labelStyle=n;let a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:h,label:d}=await cr(t,e,"icon-shape default"),f=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:v}=h0(e),b=Je.svg(u),T=$t(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let C=v.get("fill");T.stroke=C??y;let k=u.append("g");e.icon&&k.html(`${await gu(e.icon,{height:o,width:o,fallbackPrefix:""})}`);let w=k.node().getBBox(),E=w.width,S=w.height,R=w.x,M=w.y,N=Math.max(E,S)*Math.SQRT2+f*2,A=b.circle(0,0,N,T),L=Math.max(N,h.width),_=N+h.height+p,I=b.rectangle(-L/2,-_/2,L,_,{...T,fill:"transparent",stroke:"none"}),D=u.insert(()=>A,":first-child"),P=u.insert(()=>I);return k.attr("transform",`translate(${-E/2-R},${g?h.height/2+p/2-S/2-M:-h.height/2-p/2-S/2-M})`),k.attr("style",`color: ${v.get("stroke")??m};`),d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-_/2:_/2-h.height})`),D.attr("transform",`translate(0,${g?h.height/2+p/2:-h.height/2-p/2})`),qt(e,P),e.intersect=function(O){return Q.info("iconSquare intersect",e,O),Mt.rect(e,O)},u}async function Bae(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=Dt(e);e.labelStyle=n;let a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:h,halfPadding:d,label:f}=await cr(t,e,"icon-shape default"),p=e.pos==="t",g=o+d*2,m=o+d*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=h0(e),T=-m/2,C=-g/2,k=e.label?8:0,w=Je.svg(u),E=$t(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");let S=b.get("fill");E.stroke=S??v;let R=w.path(rf(T,C,m,g,5),E),M=Math.max(m,h.width),N=g+h.height+k,A=w.rectangle(-M/2,-N/2,M,N,{...E,fill:"transparent",stroke:"none"}),L=u.insert(()=>R,":first-child").attr("class","icon-shape2"),_=u.insert(()=>A);if(e.icon){let I=u.append("g");I.html(`${await gu(e.icon,{height:o,width:o,fallbackPrefix:""})}`);let D=I.node().getBBox(),P=D.width,O=D.height,F=D.x,$=D.y;I.attr("transform",`translate(${-P/2-F},${p?h.height/2+k/2-O/2-$:-h.height/2-k/2-O/2-$})`),I.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-N/2:N/2-h.height})`),L.attr("transform",`translate(0,${p?h.height/2+k/2:-h.height/2-k/2})`),qt(e,_),e.intersect=function(I){if(Q.info("iconSquare intersect",e,I),!e.label)return Mt.rect(e,I);let D=e.x??0,P=e.y??0,O=e.height??0,F=[];return p?F=[{x:D-h.width/2,y:P-O/2},{x:D+h.width/2,y:P-O/2},{x:D+h.width/2,y:P-O/2+h.height+k},{x:D+m/2,y:P-O/2+h.height+k},{x:D+m/2,y:P+O/2},{x:D-m/2,y:P+O/2},{x:D-m/2,y:P-O/2+h.height+k},{x:D-h.width/2,y:P-O/2+h.height+k}]:F=[{x:D-m/2,y:P-O/2},{x:D+m/2,y:P-O/2},{x:D+m/2,y:P-O/2+g},{x:D+h.width/2,y:P-O/2+g},{x:D+h.width/2/2,y:P+O/2},{x:D-h.width/2,y:P+O/2},{x:D-h.width/2,y:P-O/2+g},{x:D-m/2,y:P-O/2+g}],Mt.polygon(e,F,I)},u}async function Fae(t,e,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=Dt(e);e.labelStyle=n;let a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(o,l??0);let{shapeSvg:u,bbox:h,halfPadding:d,label:f}=await cr(t,e,"icon-shape default"),p=e.pos==="t",g=o+d*2,m=o+d*2,{nodeBorder:y,mainBkg:v}=r,{stylesMap:b}=h0(e),T=-m/2,C=-g/2,k=e.label?8:0,w=Je.svg(u),E=$t(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");let S=b.get("fill");E.stroke=S??v;let R=w.path(rf(T,C,m,g,.1),E),M=Math.max(m,h.width),N=g+h.height+k,A=w.rectangle(-M/2,-N/2,M,N,{...E,fill:"transparent",stroke:"none"}),L=u.insert(()=>R,":first-child"),_=u.insert(()=>A);if(e.icon){let I=u.append("g");I.html(`${await gu(e.icon,{height:o,width:o,fallbackPrefix:""})}`);let D=I.node().getBBox(),P=D.width,O=D.height,F=D.x,$=D.y;I.attr("transform",`translate(${-P/2-F},${p?h.height/2+k/2-O/2-$:-h.height/2-k/2-O/2-$})`),I.attr("style",`color: ${b.get("stroke")??y};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-N/2:N/2-h.height})`),L.attr("transform",`translate(0,${p?h.height/2+k/2:-h.height/2-k/2})`),qt(e,_),e.intersect=function(I){if(Q.info("iconSquare intersect",e,I),!e.label)return Mt.rect(e,I);let D=e.x??0,P=e.y??0,O=e.height??0,F=[];return p?F=[{x:D-h.width/2,y:P-O/2},{x:D+h.width/2,y:P-O/2},{x:D+h.width/2,y:P-O/2+h.height+k},{x:D+m/2,y:P-O/2+h.height+k},{x:D+m/2,y:P+O/2},{x:D-m/2,y:P+O/2},{x:D-m/2,y:P-O/2+h.height+k},{x:D-h.width/2,y:P-O/2+h.height+k}]:F=[{x:D-m/2,y:P-O/2},{x:D+m/2,y:P-O/2},{x:D+m/2,y:P-O/2+g},{x:D+h.width/2,y:P-O/2+g},{x:D+h.width/2/2,y:P+O/2},{x:D-h.width/2,y:P+O/2},{x:D-h.width/2,y:P-O/2+g},{x:D-m/2,y:P-O/2+g}],Mt.polygon(e,F,I)},u}async function $ae(t,e,{config:{flowchart:r}}){let i=new Image;i.src=e?.img??"",await i.decode();let n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/a;let{labelStyles:s}=Dt(e);e.labelStyle=s;let o=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let l=Math.max(e.label?o??0:0,e?.assetWidth??n),u=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,h=e.constraint==="on"?u/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(u,o??0);let{shapeSvg:d,bbox:f,label:p}=await cr(t,e,"image-shape default"),g=e.pos==="t",m=-u/2,y=-h/2,v=e.label?8:0,b=Je.svg(d),T=$t(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let C=b.rectangle(m,y,u,h,T),k=Math.max(u,f.width),w=h+f.height+v,E=b.rectangle(-k/2,-w/2,k,w,{...T,fill:"none",stroke:"none"}),S=d.insert(()=>C,":first-child"),R=d.insert(()=>E);if(e.img){let M=d.append("image");M.attr("href",e.img),M.attr("width",u),M.attr("height",h),M.attr("preserveAspectRatio","none"),M.attr("transform",`translate(${-u/2},${g?w/2-h:-w/2})`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-h/2-f.height/2-v/2:h/2-f.height/2+v/2})`),S.attr("transform",`translate(0,${g?f.height/2+v/2:-f.height/2-v/2})`),qt(e,R),e.intersect=function(M){if(Q.info("iconSquare intersect",e,M),!e.label)return Mt.rect(e,M);let N=e.x??0,A=e.y??0,L=e.height??0,_=[];return g?_=[{x:N-f.width/2,y:A-L/2},{x:N+f.width/2,y:A-L/2},{x:N+f.width/2,y:A-L/2+f.height+v},{x:N+u/2,y:A-L/2+f.height+v},{x:N+u/2,y:A+L/2},{x:N-u/2,y:A+L/2},{x:N-u/2,y:A-L/2+f.height+v},{x:N-f.width/2,y:A-L/2+f.height+v}]:_=[{x:N-u/2,y:A-L/2},{x:N+u/2,y:A-L/2},{x:N+u/2,y:A-L/2+h},{x:N+f.width/2,y:A-L/2+h},{x:N+f.width/2/2,y:A+L/2},{x:N-f.width/2,y:A+L/2},{x:N-f.width/2,y:A-L/2+h},{x:N-u/2,y:A-L/2+h}],Mt.polygon(e,_,M)},d}async function zae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=n,s=e.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=Math.max(l.width+(s??0)*2,e?.width??0),h=Math.max(l.height+(a??0)*2,e?.height??0),d=[{x:0,y:0},{x:u,y:0},{x:u+3*h/6,y:-h},{x:-3*h/6,y:-h}],f,{cssStyles:p}=e;if(e.look==="handDrawn"){let g=Je.svg(o),m=$t(e,{}),y=Yr(d),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-u/2}, ${h/2})`),p&&f.attr("style",p)}else f=Mh(o,u,h,d);return i&&f.attr("style",i),e.width=u,e.height=h,qt(e,f),e.intersect=function(g){return Mt.polygon(e,d,g)},o}async function Xx(t,e,r){let{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i;let{shapeSvg:a,bbox:s}=await cr(t,e,ar(e)),o=Math.max(s.width+r.labelPaddingX*2,e?.width||0),l=Math.max(s.height+r.labelPaddingY*2,e?.height||0),u=-o/2,h=-l/2,d,{rx:f,ry:p}=e,{cssStyles:g}=e;if(r?.rx&&r.ry&&(f=r.rx,p=r.ry),e.look==="handDrawn"){let m=Je.svg(a),y=$t(e,{}),v=f||p?m.path(rf(u,h,o,l,f||0),y):m.rectangle(u,h,o,l,y);d=a.insert(()=>v,":first-child"),d.attr("class","basic label-container").attr("style",Vn(g))}else d=a.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",n).attr("rx",Vn(f)).attr("ry",Vn(p)).attr("x",u).attr("y",h).attr("width",o).attr("height",l);return qt(e,d),e.calcIntersect=function(m,y){return Mt.rect(m,y)},e.intersect=function(m){return Mt.rect(e,m)},a}async function qae(t,e){let{shapeSvg:r,bbox:i,label:n}=await cr(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),qt(e,a),e.intersect=function(l){return Mt.rect(e,l)},r}async function Gae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=n,s=e.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.height??l.height)+a,h=(e?.width??l.width)+s,d=[{x:0,y:0},{x:h+3*u/6,y:0},{x:h,y:-u},{x:-(3*u)/6,y:-u}],f,{cssStyles:p}=e;if(e.look==="handDrawn"){let g=Je.svg(o),m=$t(e,{}),y=Yr(d),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${u/2})`),p&&f.attr("style",p)}else f=Mh(o,h,u,d);return i&&f.attr("style",i),e.width=h,e.height=u,qt(e,f),e.intersect=function(g){return Mt.polygon(e,d,g)},o}async function Vae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=n,s=e.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.height??l.height)+a,h=(e?.width??l.width)+s,d=[{x:-3*u/6,y:0},{x:h,y:0},{x:h+3*u/6,y:-u},{x:0,y:-u}],f,{cssStyles:p}=e;if(e.look==="handDrawn"){let g=Je.svg(o),m=$t(e,{}),y=Yr(d),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${u/2})`),p&&f.attr("style",p)}else f=Mh(o,h,u,d);return i&&f.attr("style",i),e.width=h,e.height=u,qt(e,f),e.intersect=function(g){return Mt.polygon(e,d,g)},o}function Wae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",ar(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),l=7,u=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],h=Je.svg(n),d=$t(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let f=Yr(u),p=h.path(f,d),g=n.insert(()=>p,":first-child");return g.attr("class","outer-path"),a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),i&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${s/2},${-o})`),qt(e,g),e.intersect=function(m){return Q.info("lightningBolt intersect",e,m),Mt.polygon(e,u,m)},n}async function Uae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?24:n;if(e.width||e.height){let v=e.width??0;e.width=(e.width??0)-a,e.widthw,":first-child").attr("class","line"),m=o.insert(()=>k,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{let v=mOe(0,0,h,p,d,f,g);m=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",Vn(y)).attr("style",i)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-h/2}, ${-(p/2+f)})`),qt(e,m),u.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),e.intersect=function(v){let b=Mt.rect(e,v),T=b.x-(e.x??0);if(d!=0&&(Math.abs(T)<(e.width??0)/2||Math.abs(T)==(e.width??0)/2&&Math.abs(b.y-(e.y??0))>(e.height??0)/2-f)){let C=f*f*(1-T*T/(d*d));C>0&&(C=Math.sqrt(C)),C=f-C,v.y-(e.y??0)>0&&(C=-C),b.y+=C}return b},o}async function Hae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n;if(e.width||e.height){let C=e.width;e.width=(C??0)*10/11-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10)}let{shapeSvg:o,bbox:l,label:u}=await cr(t,e,ar(e)),h=(e?.width?e?.width:l.width)+(a??0)*2,d=(e?.height?e?.height:l.height)+(s??0)*2,f=e.look==="neo"?d/4:d/8,p=d+f,{cssStyles:g}=e,m=Je.svg(o),y=$t(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:-h/2-h/2*.1,y:-p/2},{x:-h/2-h/2*.1,y:p/2},...tf(-h/2-h/2*.1,p/2,h/2+h/2*.1,p/2,f,.8),{x:h/2+h/2*.1,y:-p/2},{x:-h/2-h/2*.1,y:-p/2},{x:-h/2,y:-p/2},{x:-h/2,y:p/2*1.1},{x:-h/2,y:-p/2}],b=m.polygon(v.map(C=>[C.x,C.y]),y),T=o.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-f/2})`),u.attr("transform",`translate(${-h/2+(e.padding??0)+h/2*.1/2-(l.x-(l.left??0))},${-d/2+(e.padding??0)-f/2-(l.y-(l.top??0))})`),qt(e,T),e.intersect=function(C){return Mt.polygon(e,v,C)},o}async function Yae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,o=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2-2*o,10),e.height=Math.max((e?.height??0)-s*2-2*o,10));let{shapeSvg:l,bbox:u,label:h}=await cr(t,e,ar(e)),d=(e?.width?e?.width:u.width)+a*2+2*o,f=(e?.height?e?.height:u.height)+s*2+2*o,p=d-2*o,g=f-2*o,m=-p/2,y=-g/2,{cssStyles:v}=e,b=Je.svg(l),T=$t(e,{}),C=[{x:m-o,y:y+o},{x:m-o,y:y+g+o},{x:m+p-o,y:y+g+o},{x:m+p-o,y:y+g},{x:m+p,y:y+g},{x:m+p,y:y+g-o},{x:m+p+o,y:y+g-o},{x:m+p+o,y:y-o},{x:m+o,y:y-o},{x:m+o,y},{x:m,y},{x:m,y:y+o}],k=[{x:m,y:y+o},{x:m+p-o,y:y+o},{x:m+p-o,y:y+g},{x:m+p,y:y+g},{x:m+p,y},{x:m,y}];e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let w=Yr(C),E=b.path(w,T),S=Yr(k),R=b.path(S,T);e.look!=="handDrawn"&&(E=VI(E),R=VI(R));let M=l.insert("g",":first-child");return M.insert(()=>E),M.insert(()=>R),M.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",v),i&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(u.width/2)-o-(u.x-(u.left??0))}, ${-(u.height/2)+o-(u.y-(u.top??0))})`),qt(e,M),e.intersect=function(N){return Mt.polygon(e,C,N)},l}async function Xae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await cr(t,e,ar(e)),o=e.padding??0,l=e.look==="neo"?16:o,u=e.look==="neo"?12:o,h=!0;(e.width||e.height)&&(h=!1,e.width=(e?.width??0)-l*2,e.height=(e?.height??0)-u*3);let d=Math.max(a.width,e?.width??0)+l*2,f=Math.max(a.height,e?.height??0)+u*3,p=e.look==="neo"?f/4:f/8,g=f+(h?p/2:-p/2),m=-d/2,y=-g/2,v=10,{cssStyles:b}=e,T=tf(m-v,y+g+v,m+d-v,y+g+v,p,.8),C=T?.[T.length-1],k=[{x:m-v,y:y+v},{x:m-v,y:y+g+v},...T,{x:m+d-v,y:C.y-v},{x:m+d,y:C.y-v},{x:m+d,y:C.y-2*v},{x:m+d+v,y:C.y-2*v},{x:m+d+v,y:y-v},{x:m+v,y:y-v},{x:m+v,y},{x:m,y},{x:m,y:y+v}],w=[{x:m,y:y+v},{x:m+d-v,y:y+v},{x:m+d-v,y:C.y-v},{x:m+d,y:C.y-v},{x:m+d,y},{x:m,y}],E=Je.svg(n),S=$t(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let R=Yr(k),M=E.path(R,S),N=Yr(w),A=E.path(N,S),L=n.insert(()=>M,":first-child");return L.insert(()=>A),L.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&L.selectAll("path").attr("style",b),i&&e.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-(a.width/2)-v-(a.x-(a.left??0))}, ${-(a.height/2)+v-p/2-(a.y-(a.top??0))})`),qt(e,L),e.intersect=function(_){return Mt.polygon(e,k,_)},n}async function jae(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i,e.useHtmlLabels||Kr(It())||(e.centerLabel=!0);let{shapeSvg:s,bbox:o,label:l}=await cr(t,e,ar(e)),u=Math.max(o.width+(e.padding??0)*2,e?.width??0),h=Math.max(o.height+(e.padding??0)*2,e?.height??0),d=-u/2,f=-h/2,{cssStyles:p}=e,g=Je.svg(s),m=$t(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let y=g.rectangle(d,f,u,h,m),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",n),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),qt(e,v),e.intersect=function(b){return Mt.rect(e,b)},s}async function Kae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await cr(t,e,ar(e)),s=a.width+(e.padding??0),o=a.height+(e.padding??0),l=s+o,u=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}],d,{cssStyles:f}=e;if(e.look==="handDrawn"){let p=Je.svg(n),g=$t(e,{}),m=xOe(0,0,l),y=p.path(m,g);d=n.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&d.attr("style",f)}else d=Mh(n,l,l,h),d.attr("transform",`translate(${-l/2+u}, ${l/2})`);return i&&d.attr("style",i),qt(e,d),e.calcIntersect=function(p,g){let m=p.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],v=Mt.polygon(p,y,g);return{x:v.x-.5,y:v.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},n}async function Zae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?21:n??0,s=e.look==="neo"?12:n??0,{shapeSvg:o,bbox:l,label:u}=await cr(t,e,ar(e)),h=(e?.width??l.width)+(e.look==="neo"?a*2:a),d=(e?.height??l.height)+(e.look==="neo"?s*2:s),f=-h/2,p=-d/2,g=p/2,m=[{x:f+g,y:p},{x:f,y:0},{x:f+g,y:-p},{x:-f,y:-p},{x:-f,y:p}],{cssStyles:y}=e,v=Je.svg(o),b=$t(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=Yr(m),C=v.path(T,b),k=o.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${-g/2},0)`),u.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),qt(e,k),e.intersect=function(w){return Mt.polygon(e,m,w)},o}async function Qae(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n;e.cssClasses?n="node "+e.cssClasses:n="node default";let a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",i),l=e.description,u=e.label,h=await Dh(o,u,e.labelStyle,!0,!0),d={width:0,height:0};if(Kr(be())){let S=h.children[0],R=Ze(h);d=S.getBoundingClientRect(),R.attr("width",d.width),R.attr("height",d.height)}Q.info("Text 2",l);let f=l||[],p=h.getBBox(),g=await Dh(o,Array.isArray(f)?f.join("
    "):f,e.labelStyle,!0,!0),m=g.children[0],y=Ze(g);d=m.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height);let v=(e.padding||0)/2;Ze(g).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+v+5)+")"),Ze(h).attr("transform","translate( "+(d.width(Q.debug("Rough node insert CXC",M),N),":first-child"),w=a.insert(()=>(Q.debug("Rough node insert CXC",M),M),":first-child")}else w=s.insert("rect",":first-child"),E=s.insert("line"),w.attr("class","outer title-state").attr("style",i).attr("x",-d.width/2-v).attr("y",-d.height/2-v).attr("width",d.width+(e.padding||0)).attr("height",d.height+(e.padding||0)),E.attr("class","divider").attr("x1",-d.width/2-v).attr("x2",d.width/2+v).attr("y1",-d.height/2-v+p.height+v).attr("y2",-d.height/2-v+p.height+v);return qt(e,w),e.intersect=function(S){return Mt.rect(e,S)},a}async function Jae(t,e,{config:{themeVariables:r}}){let i=r?.radius??5,n={rx:i,ry:i,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return Xx(t,e,n)}async function ese(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await cr(t,e,ar(e)),u=(e?.width??o.width)+n*2+(e.look==="neo"?g0:g0*2),h=(e?.height??o.height)+a*2,d=u-g0,f=h,p=g0-u/2,g=-h/2,{cssStyles:m}=e,y=Je.svg(s),v=$t(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let b=[{x:p,y:g},{x:p+d,y:g},{x:p+d,y:g+f},{x:p-g0,y:g+f},{x:p-g0,y:g},{x:p,y:g},{x:p,y:g+f}],T=y.polygon(b.map(k=>[k.x,k.y]),v),C=s.insert(()=>T,":first-child");return C.attr("class","basic label-container outer-path").attr("style",Vn(m)),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),m&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),l.attr("transform",`translate(${g0/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),qt(e,C),e.intersect=function(k){return Mt.rect(e,k)},s}async function tse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2,10),e.height=Math.max((e?.height??0)/1.5-s*2,10));let{shapeSvg:o,bbox:l,label:u}=await cr(t,e,ar(e)),h=(e?.width?e?.width:l.width)+a*2,d=((e?.height?e?.height:l.height)+s*2)*1.5,f=h,p=d/1.5,g=-f/2,m=-p/2,{cssStyles:y}=e,v=Je.svg(o),b=$t(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=[{x:g,y:m},{x:g,y:m+p},{x:g+f,y:m+p},{x:g+f,y:m-p/2}],C=Yr(T),k=v.path(C,b),w=o.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",y),i&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),w.attr("transform",`translate(0, ${p/4})`),u.attr("transform",`translate(${-f/2+(e.padding??0)-(l.x-(l.left??0))}, ${-p/4+(e.padding??0)-(l.y-(l.top??0))})`),qt(e,w),e.intersect=function(E){return Mt.polygon(e,T,E)},o}async function rse(t,e){let r=e.padding??0,i=e.look==="neo"?16:r*2,n=e.look==="neo"?12:r,a={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??i,labelPaddingY:n};return Xx(t,e,a)}async function ise(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?20:n,s=e.look==="neo"?12:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=l.height+(e.look==="neo"?s*2:s),h=l.width+u/4+(e.look==="neo"?a*2:a),d=u/2,{cssStyles:f}=e,p=Je.svg(o),g=$t(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let m=[{x:-h/2+d,y:-u/2},{x:h/2-d,y:-u/2},...Yx(-h/2+d,0,d,50,90,270),{x:h/2-d,y:u/2},...Yx(h/2-d,0,d,50,270,450)],y=Yr(m),v=p.path(y,g),b=o.insert(()=>v,":first-child");return b.attr("class","basic label-container outer-path"),f&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),qt(e,b),e.intersect=function(T){return Mt.polygon(e,m,T)},o}async function nse(t,e){let r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5,classes:"flowchart-node"};return Xx(t,e,r)}function ase(t,e,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i;let{cssStyles:a}=e,{lineColor:s,stateBorder:o,nodeBorder:l,nodeShadow:u}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let h=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),d=Je.svg(h),f=$t(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let p=d.circle(0,0,e.width,{...f,stroke:s,strokeWidth:2}),g=o??l,m=(e.width??0)*5/14,y=d.circle(0,0,m,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),v=h.insert(()=>p,":first-child");if(v.insert(()=>y),e.look!=="handDrawn"&&v.attr("class","outer-path"),a&&v.selectAll("path").attr("style",a),n&&v.selectAll("path").attr("style",n),e.width<25&&u&&e.look!=="handDrawn"){let b=t.node()?.ownerSVGElement?.id??"",T=b?`${b}-drop-shadow-small`:"drop-shadow-small";v.attr("style",`filter:url(#${T})`)}return qt(e,v),e.intersect=function(b){return Mt.circle(e,(e.width??0)/2,b)},h}function sse(t,e,{config:{themeVariables:r}}){let{lineColor:i,nodeShadow:n}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),s;if(e.look==="handDrawn"){let l=Je.svg(a).circle(0,0,e.width,Pie(i));s=a.insert(()=>l),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&e.look!=="handDrawn"){let o=t.node()?.ownerSVGElement?.id??"",l=o?`${o}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${l})`)}return qt(e,s),e.intersect=function(o){return Mt.circle(e,(e.width??7)/2,o)},a}async function ose(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e?.padding??8,a=e.look==="neo"?28:n,s=e.look==="neo"?12:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.width??l.width)+2*a1+a,h=(e?.height??l.height)+s,d=u-2*a1,f=h,p=-u/2,g=-h/2,m=[{x:0,y:0},{x:d,y:0},{x:d,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(e.look==="handDrawn"){let y=Je.svg(o),v=$t(e,{}),b=y.rectangle(p,g,d+16,f,v),T=y.line(p+a1,g,p+a1,g+f,v),C=y.line(p+a1+d,g,p+a1+d,g+f,v);o.insert(()=>T,":first-child"),o.insert(()=>C,":first-child");let k=o.insert(()=>b,":first-child"),{cssStyles:w}=e;k.attr("class","basic label-container").attr("style",Vn(w)),qt(e,k)}else{let y=Mh(o,d,f,m);i&&y.attr("style",i),qt(e,y)}return e.intersect=function(y){return Mt.polygon(e,m,y)},o}async function lse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-s*2,10),e.width=Math.max((e?.width??0)-a*2-GI*(e.height+s*2),10));let{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.height?e?.height:l.height)+s*2,h=GI*u,d=GI*u,p=(e?.width?e?.width:l.width)+a*2+h-h,g=u,m=-p/2,y=-g/2,{cssStyles:v}=e,b=Je.svg(o),T=$t(e,{}),C=[{x:m-h/2,y},{x:m+p+h/2,y},{x:m+p+h/2,y:y+g},{x:m-h/2,y:y+g}],k=[{x:m+p-h/2,y:y+g},{x:m+p+h/2,y:y+g},{x:m+p+h/2,y:y+g-d}];e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let w=Yr(C),E=b.path(w,T),S=Yr(k),R=b.path(S,{...T,fillStyle:"solid"}),M=o.insert(()=>R,":first-child");return M.insert(()=>E,":first-child"),M.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",v),i&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",i),qt(e,M),e.intersect=function(N){return Mt.polygon(e,C,N)},o}async function cse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,label:s}=await cr(t,e,ar(e)),o=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=l/8,h=.2*o,d=.2*l,f=l+u,{cssStyles:p}=e,g=Je.svg(n),m=$t(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let y=[{x:-o/2-o/2*.1,y:f/2},...tf(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,u,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],v=-o/2+o/2*.1,b=-f/2-d*.4,T=[{x:v+o-h,y:(b+l)*1.3},{x:v+o,y:b+l-d},{x:v+o,y:(b+l)*.9},...tf(v+o,(b+l)*1.25,v+o-h,(b+l)*1.3,-l*.02,.5)],C=Yr(y),k=g.path(C,m),w=Yr(T),E=g.path(w,{...m,fillStyle:"solid"}),S=n.insert(()=>E,":first-child");return S.insert(()=>k,":first-child"),S.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),qt(e,S),e.intersect=function(R){return Mt.polygon(e,y,R)},n}async function use(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a}=await cr(t,e,ar(e)),s=Math.max(a.width+(e.padding??0),e?.width||0),o=Math.max(a.height+(e.padding??0),e?.height||0),l=-s/2,u=-o/2,h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",u).attr("width",s).attr("height",o),qt(e,h),e.intersect=function(d){return Mt.rect(e,d)},n}async function hse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?12:n/2;if(e.width||e.height){let m=e.height??0;e.height=(e.height??0)-a,e.heightT,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{let m=bOe(0,0,f,u,d,h);g=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Vn(p)).attr("style",i),g.attr("class","basic label-container outer-path"),p&&g.selectAll("path").attr("style",p),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",d),g.attr("transform",`translate(${-f/2}, ${u/2} )`),l.attr("transform",`translate(${-(o.width/2)-d-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),qt(e,g),e.intersect=function(m){let y=Mt.rect(e,m),v=y.y-(e.y??0);if(h!=0&&(Math.abs(v)<(e.height??0)/2||Math.abs(v)==(e.height??0)/2&&Math.abs(y.x-(e.x??0))>(e.width??0)/2-d)){let b=d*d*(1-v*v/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=d-b,m.x-(e.x??0)>0&&(b=-b),y.x+=b}return y},s}async function dse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=(e.look==="neo",n),s=e.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.height??l.height)+a,h=(e?.width??l.width)+s,d=[{x:-3*u/6,y:0},{x:h+3*u/6,y:0},{x:h,y:-u},{x:0,y:-u}],f,{cssStyles:p}=e;if(e.look==="handDrawn"){let g=Je.svg(o),m=$t(e,{}),y=Yr(d),v=g.path(y,m);f=o.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${u/2})`),p&&f.attr("style",p)}else f=Mh(o,h,u,d);return i&&f.attr("style",i),e.width=h,e.height=u,qt(e,f),e.intersect=function(g){return Mt.polygon(e,d,g)},o}async function fse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,o=15,l=5;(e.width||e.height)&&(e.height=(e.height??0)-s*2,e.heightb,":first-child");return T.attr("class","basic label-container outer-path"),p&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",p),i&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),qt(e,T),e.intersect=function(C){return Mt.polygon(e,y,C)},u}async function pse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?n*2:n;(e.width||e.height)&&(e.width=((e?.width??0)-a)/2,e.widthb,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return g&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),e.width=h,e.height=d,qt(e,T),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${d/2-(o.height+(e.padding??0)/(u?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(C){return Q.info("Triangle intersect",e,p,C),Mt.polygon(e,p,C)},s}async function gse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?12:n,o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-a*2,e.width<10&&(e.width=10),e.height=(e?.height??0)-s*2,e.height<10&&(e.height=10));let{shapeSvg:l,bbox:u,label:h}=await cr(t,e,ar(e)),d=(e?.width?e?.width:u.width)+(a??0)*2,f=(e?.height?e?.height:u.height)+(s??0)*2,p=e.look==="neo"?f/4:f/8,g=f+(o?p:-p),{cssStyles:m}=e,v=14-d,b=v>0?v/2:0,T=Je.svg(l),C=$t(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let k=[{x:-d/2-b,y:g/2},...tf(-d/2-b,g/2,d/2+b,g/2,p,.8),{x:d/2+b,y:-g/2},{x:-d/2-b,y:-g/2}],w=Yr(k),E=T.path(w,C),S=l.insert(()=>E,":first-child");return S.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-p/2})`),h.attr("transform",`translate(${-d/2+(e.padding??0)-(u.x-(u.left??0))},${-f/2+(e.padding??0)-p-(u.y-(u.top??0))})`),qt(e,S),e.intersect=function(R){return Mt.polygon(e,k,R)},l}async function mse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.padding??0,a=e.look==="neo"?16:n,s=e.look==="neo"?20:n;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let C=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-C*(20/9)),e.width=e.width-a*2}let{shapeSvg:o,bbox:l}=await cr(t,e,ar(e)),u=(e?.width?e?.width:l.width)+a*2,h=(e?.height?e?.height:l.height)+s,d=h/8,f=h+d*2,{cssStyles:p}=e,g=Je.svg(o),m=$t(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let y=[{x:-u/2,y:f/2},...tf(-u/2,f/2,u/2,f/2,d,1),{x:u/2,y:-f/2},...tf(u/2,-f/2,-u/2,-f/2,d,-1)],v=Yr(y),b=g.path(v,m),T=o.insert(()=>b,":first-child");return T.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),qt(e,T),e.intersect=function(C){return Mt.polygon(e,y,C)},o}async function yse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e.look==="neo"?16:e.padding??0,a=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-n*2-En,10),e.height=Math.max((e?.height??0)-a*2-En,10));let{shapeSvg:s,bbox:o,label:l}=await cr(t,e,ar(e)),u=(e?.width?e?.width:o.width)+n*2+En,h=(e?.height?e?.height:o.height)+a*2+En,d=u-En,f=h-En,p=-d/2,g=-f/2,{cssStyles:m}=e,y=Je.svg(s),v=$t(e,{}),b=[{x:p-En,y:g-En},{x:p-En,y:g+f},{x:p+d,y:g+f},{x:p+d,y:g-En}],T=`M${p-En},${g-En} L${p+d},${g-En} L${p+d},${g+f} L${p-En},${g+f} L${p-En},${g-En} M${p-En},${g} L${p+d},${g} M${p},${g-En} L${p},${g+f}`;e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let C=y.path(T,v),k=s.insert(()=>C,":first-child");return k.attr("transform",`translate(${En/2}, ${En/2})`),k.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(o.width/2)+En/2-(o.x-(o.left??0))}, ${-(o.height/2)+En/2-(o.y-(o.top??0))})`),qt(e,k),e.intersect=function(w){return Mt.polygon(e,b,w)},s}async function YI(t,e){let r=e;r.alias&&(e.label=r.alias);let{theme:i,themeVariables:n}=It(),{rowEven:a,rowOdd:s,nodeBorder:o,borderColorArray:l}=n;if(e.look==="handDrawn"){let{themeVariables:Z}=It(),{background:Y}=Z,se={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Y}`]};await YI(t,se)}let u=It();e.useHtmlLabels=u.htmlLabels;let h=u.er?.diagramPadding??10,d=u.er?.entityPadding??6,{cssStyles:f}=e,{labelStyles:p,nodeStyles:g}=Dt(e);if(r.attributes.length===0&&e.label){let Z={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5,classes:""};za(e.label,u)+Z.labelPaddingX*20){let Z=v.width+h*2-(k+w+E+S);k+=Z/N,w+=Z/N,E>0&&(E+=Z/N),S>0&&(S+=Z/N)}let L=k+w+E+S,_=Je.svg(y),I=$t(e,{});e.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let D=0;C.length>0&&(D=C.reduce((Z,Y)=>Z+(Y?.rowHeight??0),0));let P=Math.max(A.width+h*2,e?.width||0,L),O=Math.max((D??0)+v.height,e?.height||0),F=-P/2,$=-O/2;if(y.selectAll("g:not(:first-child)").each((Z,Y,se)=>{let J=Ze(se[Y]),te=J.attr("transform"),re=0,ee=0;if(te){let pe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(te);pe&&(re=parseFloat(pe[1]),ee=parseFloat(pe[2]),J.attr("class").includes("attribute-name")?re+=k:J.attr("class").includes("attribute-keys")?re+=k+w:J.attr("class").includes("attribute-comment")&&(re+=k+w+E))}J.attr("transform",`translate(${F+h/2+re}, ${ee+$+v.height+d/2})`)}),y.select(".name").attr("transform","translate("+-v.width/2+", "+($+d/2)+")"),i!=null&&aae.has(i)){let Z=r.colorIndex??0;y.attr("data-color-id",`color-${Z%l.length}`)}let B=_.rectangle(F,$,P,O,I),G=y.insert(()=>B,":first-child").attr("class","outer-path").attr("style",f.join(""));T.push(0);for(let[Z,Y]of C.entries()){let J=(Z+1)%2===0&&Y.yOffset!==0,te=_.rectangle(F,v.height+$+Y?.yOffset,P,Y?.rowHeight,{...I,fill:J?a:s,stroke:o});y.insert(()=>te,"g.label").attr("style",f.join("")).attr("class",`row-rect-${J?"even":"odd"}`)}let H=1e-4,X=o1(F,v.height+$,P+F,v.height+$,H),U=_.polygon(X.map(Z=>[Z.x,Z.y]),I);if(y.insert(()=>U).attr("class","divider"),X=o1(k+F,v.height+$,k+F,O+$,H),U=_.polygon(X.map(Z=>[Z.x,Z.y]),I),y.insert(()=>U).attr("class","divider"),R){let Z=k+w+F;X=o1(Z,v.height+$,Z,O+$,H),U=_.polygon(X.map(Y=>[Y.x,Y.y]),I),y.insert(()=>U).attr("class","divider")}if(M){let Z=k+w+E+F;X=o1(Z,v.height+$,Z,O+$,H),U=_.polygon(X.map(Y=>[Y.x,Y.y]),I),y.insert(()=>U).attr("class","divider")}for(let Z of T){let Y=v.height+$+Z;X=o1(F,Y,P+F,Y,H),U=_.polygon(X.map(se=>[se.x,se.y]),I),y.insert(()=>U).attr("class","divider")}if(qt(e,G),g&&e.look!=="handDrawn")if(i!=null&&wOe.has(i))y.selectAll("path").attr("style",g);else{let Y=g.split(";")?.filter(se=>se.includes("stroke"))?.map(se=>`${se}`).join("; ");y.selectAll("path").attr("style",Y??""),y.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(Z){return Mt.rect(e,Z)},y}async function s1(t,e,r,i=0,n=0,a=[],s=""){let o=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);e!==jc(e)&&(e=jc(e),e=e.replaceAll("<","<").replaceAll(">",">"));let l=o.node().appendChild(await ra(o,e,{width:za(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">")}let u=l.getBBox();if(Zl(r.htmlLabels)){let h=l.children[0];h.style.textAlign="start";let d=Ze(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}return u}function o1(t,e,r,i,n){return t===r?[{x:t-n/2,y:e},{x:t+n/2,y:e},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:t,y:e-n/2},{x:t,y:e+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}async function vse(t,e,r,i,n=r.class.padding??12){let a=i?0:3,s=t.insert("g").attr("class",ar(e)).attr("id",e.domId||e.id),o=null,l=null,u=null,h=null,d=0,f=0,p=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let b=e.annotations[0];await Hx(o,{text:`\xAB${b}\xBB`},0),d=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Hx(l,e,0,["font-weight: bolder"]);let g=l.node().getBBox();f=g.height,u=s.insert("g").attr("class","members-group text");let m=0;for(let b of e.members){let T=await Hx(u,b,m,[b.parseClassifier()]);m+=T+a}p=u.node().getBBox().height,p<=0&&(p=n/2),h=s.insert("g").attr("class","methods-group text");let y=0;for(let b of e.methods){let T=await Hx(h,b,y,[b.parseClassifier()]);y+=T+a}let v=s.node().getBBox();if(o!==null){let b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${d})`),v=s.node().getBBox(),u.attr("transform",`translate(0, ${d+f+n*2})`),v=s.node().getBBox(),h.attr("transform",`translate(0, ${d+f+(p?p+n*4:n*2)})`),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}async function Hx(t,e,r,i=[]){let n=t.insert("g").attr("class","label").attr("style",i.join("; ")),a=It(),s="useHtmlLabels"in e?e.useHtmlLabels:Zl(a.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Ji(o)&&(s=!0);let l=await ra(n,Sw(Go(o)),{width:za(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a),u,h=1;if(s){let d=l.children[0],f=Ze(l);h=d.innerHTML.split("
    ").length,d.innerHTML.includes("")&&(h+=d.innerHTML.split("").length-1);let p=d.getElementsByTagName("img");if(p){let g=o.replace(/]*>/g,"").trim()==="";await Promise.all([...p].map(m=>new Promise(y=>{function v(){if(m.style.display="flex",m.style.flexDirection="column",g){let b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,C=parseInt(b,10)*5+"px";m.style.minWidth=C,m.style.maxWidth=C}else m.style.width="100%";y(m)}x(v,"setupImage"),setTimeout(()=>{m.complete&&v()}),m.addEventListener("error",v),m.addEventListener("load",v)})))}u=d.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{i.includes("font-weight: bolder")&&Ze(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;let d=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(d.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),u=l.getBBox()}return n.attr("transform","translate(0,"+(-u.height/(2*h)+r)+")"),u.height}async function xse(t,e){let r=be(),{themeVariables:i}=r,{useGradient:n}=i,a=r.class.padding??12,s=a,o=e.useHtmlLabels??Zl(r.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];let{shapeSvg:u,bbox:h}=await vse(t,e,r,o,s),{labelStyles:d,nodeStyles:f}=Dt(e);e.labelStyle=d,e.cssStyles=l.styles||"";let p=l.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));let g=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox,m=Je.svg(u),y=$t(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=Math.max(e.width??0,h.width),b=Math.max(e.height??0,h.height),T=(e.height??0)>h.height;l.members.length===0&&l.methods.length===0?b+=s:l.members.length>0&&l.methods.length===0&&(b+=s*2);let C=-v/2,k=-b/2,w=g?a*2:l.members.length===0&&l.methods.length===0?-a:0;T&&(w=a*2);let E=m.rectangle(C-a,k-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0),v+2*a,b+2*a+w,y),S=u.insert(()=>E,":first-child");S.attr("class","basic label-container outer-path");let R=S.node().getBBox(),M=u.select(".annotation-group").node().getBBox().height-(g?a/2:0)||0,N=u.select(".label-group").node().getBBox().height-(g?a/2:0)||0,A=u.select(".members-group").node().getBBox().height-(g?a/2:0)||0,L=(M+N+k+a-(k-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(".text").each((_,I,D)=>{let P=Ze(D[I]),O=P.attr("transform"),F=0;if(O){let H=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);H&&(F=parseFloat(H[2]))}let $=F+k+a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(P.attr("class").includes("methods-group")){let G=Math.max(A,s/2);T?$=Math.max(L,M+N+G+k+s*2+a)+s*2:$=M+N+G+k+s*4+a}l.members.length===0&&l.methods.length===0&&r.class?.hideEmptyMembersBox&&(l.annotations.length>0?$=F-s:$=F),o||($-=4);let B=C;(P.attr("class").includes("label-group")||P.attr("class").includes("annotation-group"))&&(B=-P.node()?.getBBox().width/2||0,u.selectAll("text").each(function(G,H,X){window.getComputedStyle(X[H]).textAnchor==="middle"&&(B=0)})),P.attr("transform",`translate(${B}, ${$})`)}),l.members.length>0||l.methods.length>0||g){let _=M+N+k+a,I=m.line(R.x,_,R.x+R.width,_+.001,y);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",p)}if(g||l.members.length>0||l.methods.length>0){let _=M+N+A+k+s*2+a,I=m.line(R.x,T?Math.max(L,_):_,R.x+R.width,(T?Math.max(L,_):_)+.001,y);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",p)}if(l.look!=="handDrawn"&&u.selectAll("path").attr("style",p),S.select(":nth-child(2)").attr("style",p),u.selectAll(".divider").select("path").attr("style",p),e.labelStyle?u.selectAll("span").attr("style",e.labelStyle):u.selectAll("span").attr("style",p),!o){let _=RegExp(/color\s*:\s*([^;]*)/),I=_.exec(p);if(I){let D=I[0].replace("color","fill");u.selectAll("tspan").attr("style",D)}else if(d){let D=_.exec(d);if(D){let P=D[0].replace("color","fill");u.selectAll("tspan").attr("style",P)}}}return qt(e,S),e.intersect=function(_){return Mt.rect(e,_)},u}async function bse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n=e,a=e,s=20,o=20,l="verifyMethod"in e,u=ar(e),{themeVariables:h}=be(),{borderColorArray:d,requirementEdgeLabelBackground:f}=h,p=t.insert("g").attr("class",u).attr("id",e.domId??e.id),g;l?g=await mu(p,`<<${n.type}>>`,0,e.labelStyle):g=await mu(p,"<<Element>>",0,e.labelStyle);let m=g,y=await mu(p,n.name,m,e.labelStyle+"; font-weight: bold;");if(m+=y+o,l){let R=await mu(p,`${n.requirementId?`ID: ${n.requirementId}`:""}`,m,e.labelStyle);m+=R;let M=await mu(p,`${n.text?`Text: ${n.text}`:""}`,m,e.labelStyle);m+=M;let N=await mu(p,`${n.risk?`Risk: ${n.risk}`:""}`,m,e.labelStyle);m+=N,await mu(p,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,m,e.labelStyle)}else{let R=await mu(p,`${a.type?`Type: ${a.type}`:""}`,m,e.labelStyle);m+=R,await mu(p,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,m,e.labelStyle)}let v=(p.node()?.getBBox().width??200)+s,b=(p.node()?.getBBox().height??200)+s,T=-v/2,C=-b/2,k=Je.svg(p),w=$t(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let E=k.rectangle(T,C,v,b,w),S=p.insert(()=>E,":first-child");if(S.attr("class","basic label-container outer-path").attr("style",i),d?.length){let R=e.colorIndex??0;p.attr("data-color-id",`color-${R%d.length}`)}if(p.selectAll(".label").each((R,M,N)=>{let A=Ze(N[M]),L=A.attr("transform"),_=0,I=0;if(L){let F=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(L);F&&(_=parseFloat(F[1]),I=parseFloat(F[2]))}let D=I-b/2,P=T+s/2;(M===0||M===1)&&(P=_),A.attr("transform",`translate(${P}, ${D+s})`)}),m>g+y+o){let R=C+g+y+o,M;if(e.look==="neo"){let L=[[T,R],[T+v,R],[T+v,R+.001],[T,R+.001]];M=k.polygon(L,w)}else M=k.line(T,R,T+v,R,w);p.insert(()=>M).attr("class","divider")}return qt(e,S),e.intersect=function(R){return Mt.rect(e,R)},i&&e.look!=="handDrawn"&&(f||d?.length)&&p.selectAll("path").attr("style",i),p}async function mu(t,e,r,i=""){if(e==="")return 0;let n=t.insert("g").attr("class","label").attr("style",i),a=be(),s=a.htmlLabels??!0,o=await ra(n,Sw(Go(e)),{width:za(e,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},a),l;if(s){let u=o.children[0],h=Ze(o);l=u.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}else{let u=o.children[0];for(let h of u.children)i&&h.setAttribute("style",i);l=o.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}async function Tse(t,e,{config:r}){let{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i||"";let a=10,s=e.width;e.width=(e.width??200)-10;let{shapeSvg:o,bbox:l,label:u}=await cr(t,e,ar(e)),h=e.padding||10,d="",f;"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(d=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));let p={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},g,m;f?{label:g,bbox:m}=await qI(f,"ticket"in e&&e.ticket||"",p):{label:g,bbox:m}=await qI(o,"ticket"in e&&e.ticket||"",p);let{label:y,bbox:v}=await qI(o,"assigned"in e&&e.assigned||"",p);e.width=s;let b=10,T=e?.width||0,C=Math.max(m.height,v.height)/2,k=Math.max(l.height+b*2,e?.height||0)+C,w=-T/2,E=-k/2;u.attr("transform","translate("+(h-T/2)+", "+(-C-l.height/2)+")"),g.attr("transform","translate("+(h-T/2)+", "+(-C+l.height/2)+")"),y.attr("transform","translate("+(h+T/2-v.width-2*a)+", "+(-C+l.height/2)+")");let S,{rx:R,ry:M}=e,{cssStyles:N}=e;if(e.look==="handDrawn"){let A=Je.svg(o),L=$t(e,{}),_=R||M?A.path(rf(w,E,T,k,R||0),L):A.rectangle(w,E,T,k,L);S=o.insert(()=>_,":first-child"),S.attr("class","basic label-container").attr("style",N||null)}else{S=o.insert("rect",":first-child"),S.attr("class","basic label-container __APA__").attr("style",n).attr("rx",R??5).attr("ry",M??5).attr("x",w).attr("y",E).attr("width",T).attr("height",k);let A="priority"in e&&e.priority;if(A){let L=o.append("line"),_=w+2,I=E+Math.floor((R??0)/2),D=E+k-Math.floor((R??0)/2);L.attr("x1",_).attr("y1",I).attr("x2",_).attr("y2",D).attr("stroke-width","4").attr("stroke",COe(A))}}return qt(e,S),e.height=k,e.intersect=function(A){return Mt.rect(e,A)},o}async function kse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await cr(t,e,ar(e)),l=a.width+10*s,u=a.height+8*s,h=.15*l,{cssStyles:d}=e,f=a.width+20,p=a.height+20,g=Math.max(l,f),m=Math.max(u,p);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let y,v=`M0 0 a${h},${h} 1 0,0 ${g*.25},${-1*m*.1} a${h},${h} 1 0,0 ${g*.25},0 a${h},${h} 1 0,0 ${g*.25},0 a${h},${h} 1 0,0 ${g*.25},${m*.1} a${h},${h} 1 0,0 ${g*.15},${m*.33} a${h*.8},${h*.8} 1 0,0 0,${m*.34} a${h},${h} 1 0,0 ${-1*g*.15},${m*.33} a${h},${h} 1 0,0 ${-1*g*.25},${m*.15} a${h},${h} 1 0,0 ${-1*g*.25},0 a${h},${h} 1 0,0 ${-1*g*.25},0 a${h},${h} 1 0,0 ${-1*g*.25},${-1*m*.15} a${h},${h} 1 0,0 ${-1*g*.1},${-1*m*.33} a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34} a${h},${h} 1 0,0 ${g*.1},${-1*m*.33} H0 V0 Z`;if(e.look==="handDrawn"){let b=Je.svg(n),T=$t(e,{}),C=b.path(v,T);y=n.insert(()=>C,":first-child"),y.attr("class","basic label-container").attr("style",Vn(d))}else y=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",v);return y.attr("transform",`translate(${-g/2}, ${-m/2})`),qt(e,y),e.calcIntersect=function(b,T){return Mt.rect(b,T)},e.intersect=function(b){return Q.info("Bang intersect",e,b),Mt.rect(e,b)},n}async function wse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await cr(t,e,ar(e)),l=a.width+2*s,u=a.height+2*s,h=.15*l,d=.25*l,f=.35*l,p=.2*l,{cssStyles:g}=e,m,y=`M0 0 a${h},${h} 0 0,1 ${l*.25},${-1*l*.1} a${f},${f} 1 0,1 ${l*.4},${-1*l*.1} a${d},${d} 1 0,1 ${l*.35},${l*.2} a${h},${h} 1 0,1 ${l*.15},${u*.35} a${p},${p} 1 0,1 ${-1*l*.15},${u*.65} a${d},${h} 1 0,1 ${-1*l*.25},${l*.15} a${f},${f} 1 0,1 ${-1*l*.5},0 a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15} a${h},${h} 1 0,1 ${-1*l*.1},${-1*u*.35} a${p},${p} 1 0,1 ${l*.1},${-1*u*.65} H0 V0 Z`;if(e.look==="handDrawn"){let v=Je.svg(n),b=$t(e,{}),T=v.path(y,b);m=n.insert(()=>T,":first-child"),m.attr("class","basic label-container").attr("style",Vn(g))}else m=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),m.attr("transform",`translate(${-l/2}, ${-u/2})`),qt(e,m),e.calcIntersect=function(v,b){return Mt.rect(v,b)},e.intersect=function(v){return Q.info("Cloud intersect",e,v),Mt.rect(e,v)},n}async function Cse(t,e){let{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await cr(t,e,ar(e)),l=a.width+8*s,u=a.height+2*s,h=5,d=e.look==="neo"?` M${-l/2} ${u/2-h} v${-u+2*h} q0,-${h} ${h},-${h} h${l-2*h} q${h},0 ${h},${h} v${u-h} H${-l/2} Z `:` M${-l/2} ${u/2-h} v${-u+2*h} q0,-${h} ${h},-${h} h${l-2*h} q${h},0 ${h},${h} v${u-2*h} q0,${h} ${-h},${h} h${-(l-2*h)} q${-h},0 ${-h},${-h} Z `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=n.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",d);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",u/2).attr("x2",l/2).attr("y2",u/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>o.node()),qt(e,f),e.calcIntersect=function(p,g){return Mt.rect(p,g)},e.intersect=function(p){return Mt.rect(e,p)},n}async function Ese(t,e){let r={padding:e.padding??0};return HI(t,e,r)}function XI(t){return t in Sse}async function m0(t,e,r){let i,n;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let a=e.shape?Sse[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),n=await a(i,e,r)}else n=await a(t,e,r),i=n;return i.attr("data-look",Vn(e.look)),e.tooltip&&n.attr("title",e.tooltip),G5.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}var cr,qI,qt,ar,eOe,l1,tOe,Dh,rf,sae,rOe,iOe,nOe,aOe,sOe,oOe,oae,c1,lae,lOe,hae,cOe,uOe,hOe,Mt,q5,dOe,fOe,pOe,jne,Kne,Zne,Qne,gOe,mOe,yOe,vOe,Jne,eae,xOe,g0,a1,GI,bOe,TOe,kOe,tae,rae,iae,nae,En,aae,wOe,COe,EOe,SOe,Sse,G5,Ase,_se,jx,oo=z(()=>{Rs();Is();qa();Zr();_r();ir();Lr();Lr();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();Lr();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();zt();Lr();Lr();zt();Lr();zt();Lr();zt();zt();zt();cr=x(async(t,e,r)=>{let i,n=e.useHtmlLabels||Zl(be()?.htmlLabels);r?i=r:i="node default";let a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",Vn(e.labelStyle)),o;e.label===void 0?o="":o=typeof e.label=="string"?e.label:e.label[0];let l=!!e.icon||!!e.img,u=e.labelType==="markdown",h=await ra(s,vr(Go(o),be()),{useHtmlLabels:n,width:e.width||be().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:l,markdown:u},be()),d=h.getBBox(),f=(e?.padding??0)/2;if(n){let p=h.children[0],g=Ze(h);await Ox(p,o),d=p.getBoundingClientRect(),g.attr("width",d.width),g.attr("height",d.height)}return n?s.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):s.attr("transform","translate(0, "+-d.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:d,halfPadding:f,label:s}},"labelHelper"),qI=x(async(t,e,r)=>{let i=r.useHtmlLabels??Kr(be()),n=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await ra(n,vr(Go(e),be()),{useHtmlLabels:i,width:r.width||be()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),s=a.getBBox(),o=r.padding/2;if(Kr(be())){let l=a.children[0],u=Ze(a);s=l.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return i?n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):n.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:n}},"insertLabel"),qt=x((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),ar=x((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");x(Yr,"createPathFromPoints");x(tf,"generateFullSineWavePoints");x(Yx,"generateCirclePoints");x(VI,"mergePaths");eOe=x((t,e)=>{var r=t.x,i=t.y,n=e.x-r,a=e.y-i,s=t.width/2,o=t.height/2,l,u;return Math.abs(a)*s>Math.abs(n)*o?(a<0&&(o=-o),l=a===0?0:o*n/a,u=o):(n<0&&(s=-s),l=s,u=n===0?0:s*a/n),{x:r+l,y:i+u}},"intersectRect"),l1=eOe,tOe=x(async(t,e,r,i=!1,n=!1)=>{let a=e||"";typeof a=="object"&&(a=a[0]);let s=be(),o=Kr(s);return await ra(t,a,{style:r,isTitle:i,useHtmlLabels:o,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Dh=tOe,rf=x((t,e,r,i,n)=>["M",t+n,e,"H",t+r-n,"A",n,n,0,0,1,t+r,e+n,"V",e+i-n,"A",n,n,0,0,1,t+r-n,e+i,"H",t+n,"A",n,n,0,0,1,t,e+i-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" "),"createRoundedRectPathD"),sae=x(async(t,e)=>{Q.info("Creating subgraph rect for ",e.id,e);let r=be(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:h}=Dt(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=Kr(r),p=d.insert("g").attr("class","cluster-label "),g;e.labelType==="markdown"?g=await ra(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}):g=await Dh(p,e.label,e.labelStyle||"",!1,!0);let m=g.getBBox();if(Kr(r)){let E=g.children[0],S=Ze(g);m=E.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height)}let y=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height,b=e.x-y/2,T=e.y-v/2;Q.trace("Data ",e,JSON.stringify(e));let C;if(e.look==="handDrawn"){let E=Je.svg(d),S=$t(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:n}),R=E.path(rf(b,T,y,v,0),S);C=d.insert(()=>(Q.debug("Rough node insert CXC",R),R),":first-child"),C.select("path:nth-child(2)").attr("style",u.join(";")),C.select("path").attr("style",h.join(";").replace("fill","stroke"))}else C=d.insert("rect",":first-child"),C.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",T).attr("width",y).attr("height",v);let{subGraphTitleTopMargin:k}=Lh(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+k})`),o){let E=p.select("span");E&&E.attr("style",o)}let w=C.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=m.height-e.padding/2,e.intersect=function(E){return l1(e,E)},{cluster:d,labelBBox:m}},"rect"),rOe=x((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),n=0*e.padding,a=n/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");let s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return l1(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),iOe=x(async(t,e)=>{let r=be(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=i,u=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),h=u.insert("g",":first-child"),d=u.insert("g").attr("class","cluster-label"),f=u.append("rect"),p=await Dh(d,e.label,e.labelStyle,void 0,!0),g=p.getBBox();if(Kr(r)){let R=p.children[0],M=Ze(p);g=R.getBoundingClientRect(),M.attr("width",g.width),M.attr("height",g.height)}let m=0*e.padding,y=m/2,v=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+m;e.width<=g.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let b=e.height+m,T=e.height+m-g.height-6,C=e.x-v/2,k=e.y-b/2;e.width=v;let w=e.y-e.height/2-y+g.height+2,E;if(e.look==="handDrawn"){let R=e.cssClasses.includes("statediagram-cluster-alt"),M=Je.svg(u),N=e.rx||e.ry?M.path(rf(C,k,v,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:n}):M.rectangle(C,k,v,b,{seed:n});E=u.insert(()=>N,":first-child");let A=M.rectangle(C,w,v,T,{fill:R?a:s,fillStyle:R?"hachure":"solid",stroke:l,seed:n});E=u.insert(()=>N,":first-child"),f=u.insert(()=>A)}else E=h.insert("rect",":first-child"),E.attr("class","outer").attr("x",C).attr("y",k).attr("width",v).attr("height",b).attr("data-look",e.look),f.attr("class","inner").attr("x",C).attr("y",w).attr("width",v).attr("height",T);d.attr("transform",`translate(${e.x-g.width/2}, ${k+1-(Kr(r)?0:3)})`);let S=E.node().getBBox();return e.height=S.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(R){return l1(e,R)},{cluster:u,labelBBox:g}},"roundedWithTitle"),nOe=x(async(t,e)=>{Q.info("Creating subgraph rect for ",e.id,e);let r=be(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:h}=Dt(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),f=Kr(r),p=d.insert("g").attr("class","cluster-label "),g=await ra(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}),m=g.getBBox();if(Kr(r)){let E=g.children[0],S=Ze(g);m=E.getBoundingClientRect(),S.attr("width",m.width),S.attr("height",m.height)}let y=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height,b=e.x-y/2,T=e.y-v/2;Q.trace("Data ",e,JSON.stringify(e));let C;if(e.look==="handDrawn"){let E=Je.svg(d),S=$t(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:n}),R=E.path(rf(b,T,y,v,e.rx),S);C=d.insert(()=>(Q.debug("Rough node insert CXC",R),R),":first-child"),C.select("path:nth-child(2)").attr("style",u.join(";")),C.select("path").attr("style",h.join(";").replace("fill","stroke"))}else C=d.insert("rect",":first-child"),C.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",T).attr("width",y).attr("height",v);let{subGraphTitleTopMargin:k}=Lh(r);if(p.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+k})`),o){let E=p.select("span");E&&E.attr("style",o)}let w=C.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=m.height-e.padding/2,e.intersect=function(E){return l1(e,E)},{cluster:d,labelBBox:m}},"kanbanSection"),aOe=x((t,e)=>{let r=be(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),o=s.insert("g",":first-child"),l=0*e.padding,u=e.width+l;e.diff=-e.padding;let h=e.height+l,d=e.x-u/2,f=e.y-h/2;e.width=u;let p;if(e.look==="handDrawn"){let y=Je.svg(s).rectangle(d,f,u,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});p=s.insert(()=>y,":first-child")}else{p=o.insert("rect",":first-child");let m="outer";e.look,m="divider",p.attr("class",m).attr("x",d).attr("y",f).attr("width",u).attr("height",h).attr("data-look",e.look)}let g=p.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(m){return l1(e,m)},{cluster:s,labelBBox:{}}},"divider"),sOe=sae,oOe={rect:sae,squareRect:sOe,roundedWithTitle:iOe,noteGroup:rOe,divider:aOe,kanbanSection:nOe},oae=new Map,c1=x(async(t,e)=>{let r=e.shape||"rect",i=await oOe[r](t,e);return oae.set(e.id,i),i},"insertCluster"),lae=x(()=>{oae=new Map},"clear");x(cae,"intersectNode");lOe=cae;x(uae,"intersectEllipse");hae=uae;x(dae,"intersectCircle");cOe=dae;x(fae,"intersectLine");x(WI,"sameSign");uOe=fae;x(pae,"intersectPolygon");hOe=pae,Mt={node:lOe,circle:cOe,ellipse:hae,polygon:hOe,rect:l1};x(gae,"anchor");x(UI,"generateArcPoints");x(mae,"calculateArcSagitta");x(yae,"bowTieRect");x(Mh,"insertPolygonShape");q5=12;x(vae,"card");x(xae,"choice");x(HI,"circle");x(bae,"createLine");x(Tae,"crossedCircle");x(Rh,"generateCirclePoints");x(kae,"curlyBraceLeft");x(Ih,"generateCirclePoints");x(wae,"curlyBraceRight");x(Ga,"generateCirclePoints");x(Cae,"curlyBraces");x(Eae,"curvedTrapezoid");dOe=x((t,e,r,i,n,a)=>[`M${t},${e+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),fOe=x((t,e,r,i,n,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),pOe=x((t,e,r,i,n,a)=>[`M${t-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),jne=8,Kne=8;x(Sae,"cylinder");x(Aae,"dividedRectangle");x(_ae,"doublecircle");x(Lae,"filledCircle");Zne=10,Qne=10;x(Rae,"flippedTriangle");x(Iae,"forkJoin");x(Dae,"halfRoundedRectangle");gOe=x((t,e,r,i,n)=>[`M${t+n},${e}`,`L${t+r-n},${e}`,`L${t+r},${e-i/2}`,`L${t+r-n},${e-i}`,`L${t+n},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" "),"createHexagonPathD");x(Mae,"hexagon");x(Nae,"hourglass");x(Oae,"icon");x(Pae,"iconCircle");x(Bae,"iconRounded");x(Fae,"iconSquare");x($ae,"imageSquare");x(zae,"inv_trapezoid");x(Xx,"drawRect");x(qae,"labelRect");x(Gae,"lean_left");x(Vae,"lean_right");x(Wae,"lightningBolt");mOe=x((t,e,r,i,n,a,s)=>[`M${t},${e+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),yOe=x((t,e,r,i,n,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),vOe=x((t,e,r,i,n,a)=>[`M${t-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Jne=10,eae=10;x(Uae,"linedCylinder");x(Hae,"linedWaveEdgedRect");x(Yae,"multiRect");x(Xae,"multiWaveEdgedRectangle");x(jae,"note");xOe=x((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");x(Kae,"question");x(Zae,"rect_left_inv_arrow");x(Qae,"rectWithTitle");x(Jae,"roundedRect");g0=8;x(ese,"shadedProcess");x(tse,"slopedRect");x(rse,"squareRect");x(ise,"stadium");x(nse,"state");x(ase,"stateEnd");x(sse,"stateStart");a1=8;x(ose,"subroutine");GI=.2;x(lse,"taggedRect");x(cse,"taggedWaveEdgedRectangle");x(use,"text");bOe=x((t,e,r,i,n,a)=>`M${t},${e} a${n},${a} 0,0,1 0,${-i} l${r},0 a${n},${a} 0,0,1 0,${i} M${r},${-i} a${n},${a} 0,0,0 0,${i} l${-r},0`,"createCylinderPathD"),TOe=x((t,e,r,i,n,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),kOe=x((t,e,r,i,n,a)=>[`M${t+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),tae=5,rae=10;x(hse,"tiltedCylinder");x(dse,"trapezoid");x(fse,"trapezoidalPentagon");iae=10,nae=10;x(pse,"triangle");x(gse,"waveEdgedRectangle");x(mse,"waveRectangle");En=10;x(yse,"windowPane");aae=new Set(["redux-color","redux-dark-color"]),wOe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);x(YI,"erBox");x(s1,"addText");x(o1,"lineToPolygon");x(vse,"textHelper");x(Hx,"addText");x(xse,"classBox");x(bse,"requirementBox");x(mu,"addText");COe=x(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");x(Tse,"kanbanItem");x(kse,"bang");x(wse,"cloud");x(Cse,"defaultMindmapNode");x(Ese,"mindmapCircle");EOe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:rse},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Jae},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:ise},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ose},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Sae},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:HI},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:kse},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:wse},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Kae},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Mae},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Vae},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Gae},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:dse},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:zae},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:_ae},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:use},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:vae},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ese},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:sse},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ase},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Iae},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Nae},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:kae},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:wae},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Cae},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Wae},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:gse},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Dae},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:hse},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Uae},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Eae},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Aae},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:pse},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:yse},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Lae},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:fse},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Rae},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tse},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Xae},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Yae},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:yae},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Tae},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:cse},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:lse},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:mse},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Zae},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Hae}],SOe=x(()=>{let e=[...Object.entries({state:nse,choice:xae,note:jae,rectWithTitle:Qae,labelRect:qae,iconSquare:Fae,iconCircle:Pae,icon:Oae,iconRounded:Bae,imageSquare:$ae,anchor:gae,kanbanItem:Tse,mindmapCircle:Ese,defaultMindmapNode:Cse,classBox:xse,erBox:YI,requirementBox:bse}),...EOe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Sse=SOe();x(XI,"isValidShape");G5=new Map;x(m0,"insertNode");Ase=x((t,e)=>{G5.set(e.id,t)},"setNodeElem"),_se=x(()=>{G5.clear()},"clear"),jx=x(t=>{let e=G5.get(t.id);Q.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode")});function Zx(t,e){Kr(be())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}function Mse(t){let e=[],r=[];for(let i=1;i5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===s.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}function Nse(t,e){if(t.length<2)return"";let r="",i=t.length,n=1e-5;for(let a=0;a({...n}));if(t.length>=2&&Ba[e.arrowTypeStart]){let n=Ba[e.arrowTypeStart],a=t[0],s=t[1],{angle:o}=jI(a,s),l=n*Math.cos(o),u=n*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+u}let i=t.length;if(i>=2&&Ba[e.arrowTypeEnd]){let n=Ba[e.arrowTypeEnd],a=t[i-1],s=t[i-2],{angle:o}=jI(s,a),l=n*Math.cos(o),u=n*Math.sin(o);r[i-1].x=a.x-l,r[i-1].y=a.y-u}return r}var AOe,_Oe,LOe,Lse,ROe,V5,Va,Dse,Kx,W5,U5,IOe,DOe,Rse,Ise,MOe,NOe,H5,OOe,POe,BOe,FOe,$Oe,zOe,qOe,GOe,VOe,WOe,UOe,HOe,YOe,XOe,jOe,KOe,ZOe,QOe,JOe,ePe,tPe,rPe,iPe,nPe,Y5,Tl=z(()=>{$o();oo();Rs();Is();qa();Zr();_r();ir();Lr();zt();AOe=x((t,e,r,i,n,a=!1,s)=>{e.arrowTypeStart&&Lse(t,"start",e.arrowTypeStart,r,i,n,a,s),e.arrowTypeEnd&&Lse(t,"end",e.arrowTypeEnd,r,i,n,a,s)},"addEdgeMarkers"),_Oe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},LOe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Lse=x((t,e,r,i,n,a,s=!1,o)=>{let l=_Oe[r],u=l&&LOe.includes(l.type);if(!l){Q.warn(`Unknown arrow type: ${r}`);return}let h=l.type,p=`${n}_${a}-${h}${e==="start"?"Start":"End"}${s&&u?"-margin":""}`;if(o&&o.trim()!==""){let g=o.replace(/[^\dA-Za-z]/g,"_"),m=`${p}_${g}`;if(!document.getElementById(m)){let y=document.getElementById(p);if(y){let v=y.cloneNode(!0);v.id=m,v.querySelectorAll("path, circle, line").forEach(T=>{T.setAttribute("stroke",o),l.fill&&T.setAttribute("fill",o)}),y.parentNode?.appendChild(v)}}t.attr(`marker-${e}`,`url(${i}#${m})`)}else t.attr(`marker-${e}`,`url(${i}#${p})`)},"addEdgeMarker"),ROe=x(t=>typeof t=="string"?t:be()?.flowchart?.curve,"resolveEdgeCurveType"),V5=new Map,Va=new Map,Dse=x(()=>{V5.clear(),Va.clear()},"clear"),Kx=x(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),W5=x(async(t,e)=>{let r=be(),i=Kr(r),{labelStyles:n}=Dt(e);e.labelStyle=n;let a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",e.id),o=e.labelType==="markdown",u=await ra(t,e.label,{style:Kx(e.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),Q.info("abc82",e,e.labelType);let h=u.getBBox(),d=h;if(i){let p=u.children[0],g=Ze(u);h=p.getBoundingClientRect(),d=h,g.attr("width",h.width),g.attr("height",h.height)}else{let p=Ze(u).select("text").node();p&&typeof p.getBBox=="function"&&(d=p.getBBox())}s.attr("transform",fl(d,i)),V5.set(e.id,a),e.width=h.width,e.height=h.height;let f;if(e.startLabelLeft){let p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Dh(g,e.startLabelLeft,Kx(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(i){let v=m.children[0],b=Ze(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",fl(y,i)),Va.get(e.id)||Va.set(e.id,{}),Va.get(e.id).startLeft=p,Zx(f,e.startLabelLeft)}if(e.startLabelRight){let p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Dh(g,e.startLabelRight,Kx(e.labelStyle)||"",!1,!1);f=m,g.node().appendChild(m);let y=m.getBBox();if(i){let v=m.children[0],b=Ze(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",fl(y,i)),Va.get(e.id)||Va.set(e.id,{}),Va.get(e.id).startRight=p,Zx(f,e.startLabelRight)}if(e.endLabelLeft){let p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Dh(g,e.endLabelLeft,Kx(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(i){let v=m.children[0],b=Ze(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",fl(y,i)),p.node().appendChild(m),Va.get(e.id)||Va.set(e.id,{}),Va.get(e.id).endLeft=p,Zx(f,e.endLabelLeft)}if(e.endLabelRight){let p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Dh(g,e.endLabelRight,Kx(e.labelStyle)||"",!1,!1);f=m;let y=m.getBBox();if(i){let v=m.children[0],b=Ze(m);y=v.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}g.attr("transform",fl(y,i)),p.node().appendChild(m),Va.get(e.id)||Va.set(e.id,{}),Va.get(e.id).endRight=p,Zx(f,e.endLabelRight)}return u},"insertEdgeLabel");x(Zx,"setTerminalWidth");U5=x((t,e)=>{Q.debug("Moving label abc88 ",t.id,t.label,V5.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=be(),{subGraphTitleTotalMargin:n}=Lh(i);if(t.label){let a=V5.get(t.id),s=t.x,o=t.y;if(r){let l=Xt.calcLabelPosition(r);Q.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+n/2})`)}if(t.startLabelLeft){let a=Va.get(t.id).startLeft,s=t.x,o=t.y;if(r){let l=Xt.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){let a=Va.get(t.id).startRight,s=t.x,o=t.y;if(r){let l=Xt.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){let a=Va.get(t.id).endLeft,s=t.x,o=t.y;if(r){let l=Xt.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){let a=Va.get(t.id).endRight,s=t.x,o=t.y;if(r){let l=Xt.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),IOe=x((t,e)=>{let r=t.x,i=t.y,n=Math.abs(e.x-r),a=Math.abs(e.y-i),s=t.width/2,o=t.height/2;return n>=s||a>=o},"outsideNode"),DOe=x((t,e,r)=>{Q.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,n=t.y,a=Math.abs(i-r.x),s=t.width/2,o=r.xMath.abs(i-e.x)*l){let d=r.y{Q.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(a=>{if(Q.info("abc88 checking point",a,e),!IOe(e,a)&&!n){let s=DOe(e,i,a);Q.debug("abc88 inside",a,i,s),Q.debug("abc88 intersection",s,e);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?Q.warn("abc88 no intersect",s,r):r.push(s),n=!0}else Q.warn("abc88 outside",a,i),i=a,n||r.push(a)}),Q.debug("returning points",r),r},"cutPathAtIntersect");x(Mse,"extractCornerPoints");Ise=x(function(t,e,r){let i=e.x-t.x,n=e.y-t.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:e.x-s*i,y:e.y-s*n}},"findAdjacentPoint"),MOe=x(function(t){let{cornerPointPositions:e}=Mse(t),r=[];for(let i=0;i10&&Math.abs(a.y-n.y)>=10){Q.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));let p=5;s.x===o.x?f={x:u<0?o.x-p+d:o.x+p-d,y:h<0?o.y-d:o.y+d}:f={x:u<0?o.x-d:o.x+d,y:h<0?o.y-p+d:o.y+p-d}}else Q.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(t[i]);return r},"fixCorners"),NOe=x((t,e,r)=>{let i=t-e-r,n=2,a=2,s=n+a,o=Math.floor(i/s),l=Array(o).fill(`${n} ${a}`).join(" ");return`0 ${e} ${l} ${r}`},"generateDashArray"),H5=x(function(t,e,r,i,n,a,s,o=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l}=be(),u=e.points,h=!1,d=n;var f=a;let p=[];for(let P in e.cssCompiledStyles)Px(P)||p.push(e.cssCompiledStyles[P]);Q.debug("UIO intersect check",e.points,f.x,d.x),f.intersect&&d.intersect&&!o&&(u=u.slice(1,e.points.length-1),u.unshift(d.intersect(u[0])),Q.debug("Last point UIO",e.start,"-->",e.end,u[u.length-1],f,f.intersect(u[u.length-1])),u.push(f.intersect(u[u.length-1])));let g=btoa(JSON.stringify(u));e.toCluster&&(Q.info("to cluster abc88",r.get(e.toCluster)),u=Rse(e.points,r.get(e.toCluster).node),h=!0),e.fromCluster&&(Q.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=Rse(u.reverse(),r.get(e.fromCluster).node).reverse(),h=!0);let m=u.filter(P=>!Number.isNaN(P.y)),y=ROe(e.curve);y!=="rounded"&&(m=MOe(m));let v=wh;switch(y){case"linear":v=wh;break;case"basis":v=su;break;case"cardinal":v=nx;break;case"bumpX":v=J2;break;case"bumpY":v=ex;break;case"catmullRom":v=ox;break;case"monotoneX":v=lx;break;case"monotoneY":v=cx;break;case"natural":v=ux;break;case"step":v=hx;break;case"stepAfter":v=fx;break;case"stepBefore":v=dx;break;case"rounded":v=wh;break;default:v=su}let{x:b,y:T}=jC(e),C=au().x(b).y(T).curve(v),k;switch(e.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(e.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let w,E=y==="rounded"?Nse(Ose(m,e),5):C(m),S=Array.isArray(e.style)?e.style:[e.style],R=S.find(P=>P?.startsWith("stroke:")),M="";e.animate&&(M="edge-animation-fast"),e.animation&&(M="edge-animation-"+e.animation);let N=!1;if(e.look==="handDrawn"){let P=Je.svg(t);Object.assign([],m);let O=P.path(E,{roughness:.3,seed:l});k+=" transition",w=Ze(O).select("path").attr("id",`${s}-${e.id}`).attr("class"," "+k+(e.classes?" "+e.classes:"")+(M?" "+M:"")).attr("style",S?S.reduce(($,B)=>$+";"+B,""):"");let F=w.attr("d");w.attr("d",F),t.node().appendChild(w.node())}else{let P=p.join(";"),O=S?S.reduce((X,U)=>X+U+";",""):"",F=(P?P+";"+O+";":O)+";"+(S?S.reduce((X,U)=>X+";"+U,""):"");w=t.append("path").attr("d",E).attr("id",`${s}-${e.id}`).attr("class"," "+k+(e.classes?" "+e.classes:"")+(M?" "+M:"")).attr("style",F),R=F.match(/stroke:([^;]+)/)?.[1],N=e.animate===!0||!!e.animation||P.includes("animation");let $=w.node(),B=typeof $.getTotalLength=="function"?$.getTotalLength():0,G=T9[e.arrowTypeStart]||0,H=T9[e.arrowTypeEnd]||0;if(e.look==="neo"&&!N){let U=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?NOe(B,G,H):`0 ${G} ${B-G-H} ${H}`}; stroke-dashoffset: 0;`;w.attr("style",U+w.attr("style"))}}w.attr("data-edge",!0),w.attr("data-et","edge"),w.attr("data-id",e.id),w.attr("data-points",g),w.attr("data-look",Vn(e.look)),e.showPoints&&m.forEach(P=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",P.x).attr("cy",P.y)});let A="";(be().flowchart.arrowMarkerAbsolute||be().state.arrowMarkerAbsolute)&&(A=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,A=A.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Q.info("arrowTypeStart",e.arrowTypeStart),Q.info("arrowTypeEnd",e.arrowTypeEnd);let L=!N&&e?.look==="neo";AOe(w,e,A,s,i,L,R);let _=Math.floor(u.length/2),I=u[_];Xt.isLabelCoordinateInPath(I,w.attr("d"))||(h=!0);let D={};return h&&(D.updatedPath=u),D.originalPath=e.points,D},"insertEdge");x(Nse,"generateRoundedPath");x(jI,"calculateDeltaAndAngle");x(Ose,"applyMarkerOffsetsToPoints");OOe=x((t,e,r,i)=>{e.forEach(n=>{nPe[n](t,r,i)})},"insertMarkers"),POe=x((t,e,r)=>{Q.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),BOe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),FOe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),$Oe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),zOe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),qOe=x((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),GOe=x((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),VOe=x((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),WOe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),UOe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{transitionColor:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),HOe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),YOe=x((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),XOe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),jOe=x((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),KOe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),ZOe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),QOe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),JOe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let l=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),ePe=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 L20,10 M20,10 L0,20`)},"requirement_arrow"),tPe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{strokeWidth:a}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 L20,10 M20,10 L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),rPe=x((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),iPe=x((t,e,r)=>{let i=It(),{themeVariables:n}=i,{strokeWidth:a}=n,s=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),nPe={extension:POe,composition:BOe,aggregation:FOe,dependency:$Oe,lollipop:zOe,point:qOe,circle:GOe,cross:VOe,barb:WOe,barbNeo:UOe,only_one:HOe,zero_or_one:YOe,one_or_more:XOe,zero_or_more:jOe,only_one_neo:KOe,zero_or_one_neo:ZOe,one_or_more_neo:QOe,zero_or_more_neo:JOe,requirement_arrow:ePe,requirement_contains:rPe,requirement_arrow_neo:tPe,requirement_contains_neo:iPe},Y5=OOe});function sPe(t){return typeof t=="symbol"||gn(t)&&Fa(t)==aPe}var aPe,Wo,y0=z(()=>{Eh();ml();aPe="[object Symbol]";Wo=sPe});function oPe(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r{lo=oPe});function Fse(t){if(typeof t=="string")return t;if(Ot(t))return lo(t,Fse)+"";if(Wo(t))return Bse?Bse.call(t):"";var e=t+"";return e=="0"&&1/t==-lPe?"-0":e}var lPe,Pse,Bse,$se,zse=z(()=>{n0();v0();rn();y0();lPe=1/0,Pse=va?va.prototype:void 0,Bse=Pse?Pse.toString:void 0;$se=Fse});function uPe(t){for(var e=t.length;e--&&cPe.test(t.charAt(e)););return e}var cPe,qse,Gse=z(()=>{cPe=/\s/;qse=uPe});function dPe(t){return t&&t.slice(0,qse(t)+1).replace(hPe,"")}var hPe,Vse,Wse=z(()=>{Gse();hPe=/^\s+/;Vse=dPe});function yPe(t){if(typeof t=="number")return t;if(Wo(t))return Use;if(Oi(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Oi(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vse(t);var r=pPe.test(t);return r||gPe.test(t)?mPe(t.slice(2),r?2:8):fPe.test(t)?Use:+t}var Use,fPe,pPe,gPe,mPe,Hse,Yse=z(()=>{Wse();zo();y0();Use=NaN,fPe=/^[-+]0x[0-9a-f]+$/i,pPe=/^0b[01]+$/i,gPe=/^0o[0-7]+$/i,mPe=parseInt;Hse=yPe});function xPe(t){if(!t)return t===0?t:0;if(t=Hse(t),t===Xse||t===-Xse){var e=t<0?-1:1;return e*vPe}return t===t?t:0}var Xse,vPe,u1,KI=z(()=>{Yse();Xse=1/0,vPe=17976931348623157e292;u1=xPe});function bPe(t){var e=u1(t),r=e%1;return e===e?r?e-r:e:0}var yu,h1=z(()=>{KI();yu=bPe});var TPe,X5,jse=z(()=>{Ud();pl();TPe=ro(wn,"WeakMap"),X5=TPe});function kPe(){}var Sn,ZI=z(()=>{Sn=kPe});function wPe(t,e){for(var r=-1,i=t==null?0:t.length;++r{j5=wPe});function CPe(t,e,r,i){for(var n=t.length,a=r+(i?1:-1);i?a--:++a{K5=CPe});function EPe(t){return t!==t}var Kse,Zse=z(()=>{Kse=EPe});function SPe(t,e,r){for(var i=r-1,n=t.length;++i{Qse=SPe});function APe(t,e,r){return e===e?Qse(t,e,r):K5(t,Kse,r)}var d1,Z5=z(()=>{JI();Zse();Jse();d1=APe});function _Pe(t,e){var r=t==null?0:t.length;return!!r&&d1(t,e,0)>-1}var Q5,eD=z(()=>{Z5();Q5=_Pe});var LPe,eoe,toe=z(()=>{M9();LPe=s5(Object.keys,Object),eoe=LPe});function DPe(t){if(!uu(t))return eoe(t);var e=[];for(var r in Object(t))IPe.call(t,r)&&r!="constructor"&&e.push(r);return e}var RPe,IPe,f1,J5=z(()=>{Km();toe();RPe=Object.prototype,IPe=RPe.hasOwnProperty;f1=DPe});function MPe(t){return Cn(t)?h5(t):f1(t)}var Qr,vu=z(()=>{F9();J5();yl();Qr=MPe});var NPe,OPe,PPe,Wa,roe=z(()=>{e1();c0();G9();yl();Km();vu();NPe=Object.prototype,OPe=NPe.hasOwnProperty,PPe=p5(function(t,e){if(uu(e)||Cn(e)){bl(e,Qr(e),t);return}for(var r in e)OPe.call(e,r)&&hu(t,r,e[r])}),Wa=PPe});function $Pe(t,e){if(Ot(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Wo(t)?!0:FPe.test(t)||!BPe.test(t)||e!=null&&t in Object(e)}var BPe,FPe,p1,e3=z(()=>{rn();y0();BPe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FPe=/^\w*$/;p1=$Pe});function qPe(t){var e=Gm(t,function(i){return r.size===zPe&&r.clear(),i}),r=e.cache;return e}var zPe,ioe,noe=z(()=>{S9();zPe=500;ioe=qPe});var GPe,VPe,WPe,aoe,soe=z(()=>{noe();GPe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,VPe=/\\(\\)?/g,WPe=ioe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(GPe,function(r,i,n,a){e.push(n?a.replace(VPe,"$1"):i||r)}),e}),aoe=WPe});function UPe(t){return t==null?"":$se(t)}var t3,tD=z(()=>{zse();t3=UPe});function HPe(t,e){return Ot(t)?t:p1(t,e)?[t]:aoe(t3(t))}var nf,Qx=z(()=>{rn();e3();soe();tD();nf=HPe});function XPe(t){if(typeof t=="string"||Wo(t))return t;var e=t+"";return e=="0"&&1/t==-YPe?"-0":e}var YPe,xu,g1=z(()=>{y0();YPe=1/0;xu=XPe});function jPe(t,e){e=nf(e,t);for(var r=0,i=e.length;t!=null&&r{Qx();g1();af=jPe});function KPe(t,e,r){var i=t==null?void 0:af(t,e);return i===void 0?r:i}var ooe,loe=z(()=>{Jx();ooe=KPe});function ZPe(t,e){for(var r=-1,i=e.length,n=t.length;++r{m1=ZPe});function QPe(t){return Ot(t)||oc(t)||!!(coe&&t&&t[coe])}var coe,uoe,hoe=z(()=>{n0();Zm();rn();coe=va?va.isConcatSpreadable:void 0;uoe=QPe});function doe(t,e,r,i,n){var a=-1,s=t.length;for(r||(r=uoe),n||(n=[]);++a0&&r(o)?e>1?doe(o,e-1,r,i,n):m1(n,o):i||(n[n.length]=o)}return n}var bu,y1=z(()=>{r3();hoe();bu=doe});function JPe(t){var e=t==null?0:t.length;return e?bu(t,1):[]}var si,i3=z(()=>{y1();si=JPe});function eBe(t){return f5(d5(t,void 0,si),t+"")}var foe,poe=z(()=>{i3();$9();q9();foe=eBe});function tBe(t,e,r){var i=-1,n=t.length;e<0&&(e=-e>n?0:n+e),r=r>n?n:r,r<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(n);++i{n3=tBe});function uBe(t){return cBe.test(t)}var rBe,iBe,nBe,aBe,sBe,oBe,lBe,cBe,goe,moe=z(()=>{rBe="\\ud800-\\udfff",iBe="\\u0300-\\u036f",nBe="\\ufe20-\\ufe2f",aBe="\\u20d0-\\u20ff",sBe=iBe+nBe+aBe,oBe="\\ufe0e\\ufe0f",lBe="\\u200d",cBe=RegExp("["+lBe+rBe+sBe+oBe+"]");goe=uBe});function hBe(t,e,r,i){var n=-1,a=t==null?0:t.length;for(i&&a&&(r=t[++n]);++n{yoe=hBe});function dBe(t,e){return t&&bl(e,Qr(e),t)}var xoe,boe=z(()=>{c0();vu();xoe=dBe});function fBe(t,e){return t&&bl(e,io(e),t)}var Toe,koe=z(()=>{c0();Qd();Toe=fBe});function pBe(t,e){for(var r=-1,i=t==null?0:t.length,n=0,a=[];++r{v1=pBe});function gBe(){return[]}var s3,iD=z(()=>{s3=gBe});var mBe,yBe,woe,vBe,x1,o3=z(()=>{a3();iD();mBe=Object.prototype,yBe=mBe.propertyIsEnumerable,woe=Object.getOwnPropertySymbols,vBe=woe?function(t){return t==null?[]:(t=Object(t),v1(woe(t),function(e){return yBe.call(t,e)}))}:s3,x1=vBe});function xBe(t,e){return bl(t,x1(t),e)}var Coe,Eoe=z(()=>{c0();o3();Coe=xBe});var bBe,TBe,l3,nD=z(()=>{r3();o5();o3();iD();bBe=Object.getOwnPropertySymbols,TBe=bBe?function(t){for(var e=[];t;)m1(e,x1(t)),t=jm(t);return e}:s3,l3=TBe});function kBe(t,e){return bl(t,l3(t),e)}var Soe,Aoe=z(()=>{c0();nD();Soe=kBe});function wBe(t,e,r){var i=e(t);return Ot(t)?i:m1(i,r(t))}var c3,aD=z(()=>{r3();rn();c3=wBe});function CBe(t){return c3(t,Qr,x1)}var eb,sD=z(()=>{aD();o3();vu();eb=CBe});function EBe(t){return c3(t,io,l3)}var u3,oD=z(()=>{aD();nD();Qd();u3=EBe});var SBe,h3,_oe=z(()=>{Ud();pl();SBe=ro(wn,"DataView"),h3=SBe});var ABe,d3,Loe=z(()=>{Ud();pl();ABe=ro(wn,"Promise"),d3=ABe});var _Be,sf,lD=z(()=>{Ud();pl();_Be=ro(wn,"Set"),sf=_Be});var Roe,LBe,Ioe,Doe,Moe,Noe,RBe,IBe,DBe,MBe,NBe,x0,Uo,b0=z(()=>{_oe();JC();Loe();lD();jse();Eh();w9();Roe="[object Map]",LBe="[object Object]",Ioe="[object Promise]",Doe="[object Set]",Moe="[object WeakMap]",Noe="[object DataView]",RBe=Sh(h3),IBe=Sh(Xd),DBe=Sh(d3),MBe=Sh(sf),NBe=Sh(X5),x0=Fa;(h3&&x0(new h3(new ArrayBuffer(1)))!=Noe||Xd&&x0(new Xd)!=Roe||d3&&x0(d3.resolve())!=Ioe||sf&&x0(new sf)!=Doe||X5&&x0(new X5)!=Moe)&&(x0=function(t){var e=Fa(t),r=e==LBe?t.constructor:void 0,i=r?Sh(r):"";if(i)switch(i){case RBe:return Noe;case IBe:return Roe;case DBe:return Ioe;case MBe:return Doe;case NBe:return Moe}return e});Uo=x0});function BBe(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&PBe.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var OBe,PBe,Ooe,Poe=z(()=>{OBe=Object.prototype,PBe=OBe.hasOwnProperty;Ooe=BBe});function FBe(t,e){var r=e?Xm(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Boe,Foe=z(()=>{i5();Boe=FBe});function zBe(t){var e=new t.constructor(t.source,$Be.exec(t));return e.lastIndex=t.lastIndex,e}var $Be,$oe,zoe=z(()=>{$Be=/\w*$/;$oe=zBe});function qBe(t){return Goe?Object(Goe.call(t)):{}}var qoe,Goe,Voe,Woe=z(()=>{n0();qoe=va?va.prototype:void 0,Goe=qoe?qoe.valueOf:void 0;Voe=qBe});function oFe(t,e,r){var i=t.constructor;switch(e){case KBe:return Xm(t);case GBe:case VBe:return new i(+t);case ZBe:return Boe(t,r);case QBe:case JBe:case eFe:case tFe:case rFe:case iFe:case nFe:case aFe:case sFe:return n5(t,r);case WBe:return new i;case UBe:case XBe:return new i(t);case HBe:return $oe(t);case YBe:return new i;case jBe:return Voe(t)}}var GBe,VBe,WBe,UBe,HBe,YBe,XBe,jBe,KBe,ZBe,QBe,JBe,eFe,tFe,rFe,iFe,nFe,aFe,sFe,Uoe,Hoe=z(()=>{i5();Foe();zoe();Woe();I9();GBe="[object Boolean]",VBe="[object Date]",WBe="[object Map]",UBe="[object Number]",HBe="[object RegExp]",YBe="[object Set]",XBe="[object String]",jBe="[object Symbol]",KBe="[object ArrayBuffer]",ZBe="[object DataView]",QBe="[object Float32Array]",JBe="[object Float64Array]",eFe="[object Int8Array]",tFe="[object Int16Array]",rFe="[object Int32Array]",iFe="[object Uint8Array]",nFe="[object Uint8ClampedArray]",aFe="[object Uint16Array]",sFe="[object Uint32Array]";Uoe=oFe});function cFe(t){return gn(t)&&Uo(t)==lFe}var lFe,Yoe,Xoe=z(()=>{b0();ml();lFe="[object Map]";Yoe=cFe});var joe,uFe,Koe,Zoe=z(()=>{Xoe();l0();Rx();joe=xl&&xl.isMap,uFe=joe?vl(joe):Yoe,Koe=uFe});function dFe(t){return gn(t)&&Uo(t)==hFe}var hFe,Qoe,Joe=z(()=>{b0();ml();hFe="[object Set]";Qoe=dFe});var ele,fFe,tle,rle=z(()=>{Joe();l0();Rx();ele=xl&&xl.isSet,fFe=ele?vl(ele):Qoe,tle=fFe});function f3(t,e,r,i,n,a){var s,o=e&pFe,l=e&gFe,u=e&mFe;if(r&&(s=n?r(t,i,n,a):r(t)),s!==void 0)return s;if(!Oi(t))return t;var h=Ot(t);if(h){if(s=Ooe(t),!o)return a5(t,s)}else{var d=Uo(t),f=d==nle||d==TFe;if(lc(t))return r5(t,o);if(d==ale||d==ile||f&&!n){if(s=l||f?{}:l5(t),!o)return l?Soe(t,Toe(s,t)):Coe(t,xoe(s,t))}else{if(!$i[d])return n?t:{};s=Uoe(t,d,o)}}a||(a=new lu);var p=a.get(t);if(p)return p;a.set(t,s),tle(t)?t.forEach(function(y){s.add(f3(y,e,r,y,t,a))}):Koe(t)&&t.forEach(function(y,v){s.set(v,f3(y,e,r,v,t,a))});var g=u?l?u3:eb:l?io:Qr,m=h?void 0:g(t);return j5(m||t,function(y,v){m&&(v=y,y=t[v]),hu(s,v,f3(y,e,r,v,t,a))}),s}var pFe,gFe,mFe,ile,yFe,vFe,xFe,bFe,nle,TFe,kFe,wFe,ale,CFe,EFe,SFe,AFe,_Fe,LFe,RFe,IFe,DFe,MFe,NFe,OFe,PFe,BFe,FFe,$Fe,$i,p3,cD=z(()=>{Ax();QI();e1();boe();koe();L9();D9();Eoe();Aoe();sD();oD();b0();Poe();Hoe();N9();rn();Jm();Zoe();zo();rle();vu();Qd();pFe=1,gFe=2,mFe=4,ile="[object Arguments]",yFe="[object Array]",vFe="[object Boolean]",xFe="[object Date]",bFe="[object Error]",nle="[object Function]",TFe="[object GeneratorFunction]",kFe="[object Map]",wFe="[object Number]",ale="[object Object]",CFe="[object RegExp]",EFe="[object Set]",SFe="[object String]",AFe="[object Symbol]",_Fe="[object WeakMap]",LFe="[object ArrayBuffer]",RFe="[object DataView]",IFe="[object Float32Array]",DFe="[object Float64Array]",MFe="[object Int8Array]",NFe="[object Int16Array]",OFe="[object Int32Array]",PFe="[object Uint8Array]",BFe="[object Uint8ClampedArray]",FFe="[object Uint16Array]",$Fe="[object Uint32Array]",$i={};$i[ile]=$i[yFe]=$i[LFe]=$i[RFe]=$i[vFe]=$i[xFe]=$i[IFe]=$i[DFe]=$i[MFe]=$i[NFe]=$i[OFe]=$i[kFe]=$i[wFe]=$i[ale]=$i[CFe]=$i[EFe]=$i[SFe]=$i[AFe]=$i[PFe]=$i[BFe]=$i[FFe]=$i[$Fe]=!0;$i[bFe]=$i[nle]=$i[_Fe]=!1;p3=f3});function qFe(t){return p3(t,zFe)}var zFe,xi,uD=z(()=>{cD();zFe=4;xi=qFe});function WFe(t){return p3(t,GFe|VFe)}var GFe,VFe,hD,sle=z(()=>{cD();GFe=1,VFe=4;hD=WFe});function UFe(t){for(var e=-1,r=t==null?0:t.length,i=0,n=[];++e{Tu=UFe});function YFe(t){return this.__data__.set(t,HFe),this}var HFe,lle,cle=z(()=>{HFe="__lodash_hash_undefined__";lle=YFe});function XFe(t){return this.__data__.has(t)}var ule,hle=z(()=>{ule=XFe});function g3(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new s0;++e{e5();cle();hle();g3.prototype.add=g3.prototype.push=lle;g3.prototype.has=ule;b1=g3});function jFe(t,e){for(var r=-1,i=t==null?0:t.length;++r{y3=jFe});function KFe(t,e){return t.has(e)}var T1,v3=z(()=>{T1=KFe});function JFe(t,e,r,i,n,a){var s=r&ZFe,o=t.length,l=e.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(t),h=a.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,p=r&QFe?new b1:void 0;for(a.set(t,e),a.set(e,t);++d{m3();dD();v3();ZFe=1,QFe=2;x3=JFe});function e$e(t){var e=-1,r=Array(t.size);return t.forEach(function(i,n){r[++e]=[n,i]}),r}var dle,fle=z(()=>{dle=e$e});function t$e(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}var k1,b3=z(()=>{k1=t$e});function g$e(t,e,r,i,n,a,s){switch(r){case p$e:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case f$e:return!(t.byteLength!=e.byteLength||!a(new Ym(t),new Ym(e)));case n$e:case a$e:case l$e:return gl(+t,+e);case s$e:return t.name==e.name&&t.message==e.message;case c$e:case h$e:return t==e+"";case o$e:var o=dle;case u$e:var l=i&r$e;if(o||(o=k1),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;i|=i$e,s.set(t,e);var h=x3(o(t),o(e),i,n,a,s);return s.delete(t),h;case d$e:if(pD)return pD.call(t)==pD.call(e)}return!1}var r$e,i$e,n$e,a$e,s$e,o$e,l$e,c$e,u$e,h$e,d$e,f$e,p$e,ple,pD,gle,mle=z(()=>{n0();R9();a0();fD();fle();b3();r$e=1,i$e=2,n$e="[object Boolean]",a$e="[object Date]",s$e="[object Error]",o$e="[object Map]",l$e="[object Number]",c$e="[object RegExp]",u$e="[object Set]",h$e="[object String]",d$e="[object Symbol]",f$e="[object ArrayBuffer]",p$e="[object DataView]",ple=va?va.prototype:void 0,pD=ple?ple.valueOf:void 0;gle=g$e});function x$e(t,e,r,i,n,a){var s=r&m$e,o=eb(t),l=o.length,u=eb(e),h=u.length;if(l!=h&&!s)return!1;for(var d=l;d--;){var f=o[d];if(!(s?f in e:v$e.call(e,f)))return!1}var p=a.get(t),g=a.get(e);if(p&&g)return p==e&&g==t;var m=!0;a.set(t,e),a.set(e,t);for(var y=s;++d{sD();m$e=1,y$e=Object.prototype,v$e=y$e.hasOwnProperty;yle=x$e});function k$e(t,e,r,i,n,a){var s=Ot(t),o=Ot(e),l=s?ble:Uo(t),u=o?ble:Uo(e);l=l==xle?T3:l,u=u==xle?T3:u;var h=l==T3,d=u==T3,f=l==u;if(f&&lc(t)){if(!lc(e))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new lu),s||Kd(t)?x3(t,e,r,i,n,a):gle(t,e,l,r,i,n,a);if(!(r&b$e)){var p=h&&Tle.call(t,"__wrapped__"),g=d&&Tle.call(e,"__wrapped__");if(p||g){var m=p?t.value():t,y=g?e.value():e;return a||(a=new lu),n(m,y,r,i,a)}}return f?(a||(a=new lu),yle(t,e,r,i,n,a)):!1}var b$e,xle,ble,T3,T$e,Tle,kle,wle=z(()=>{Ax();fD();mle();vle();b0();rn();Jm();Ix();b$e=1,xle="[object Arguments]",ble="[object Array]",T3="[object Object]",T$e=Object.prototype,Tle=T$e.hasOwnProperty;kle=k$e});function Cle(t,e,r,i,n){return t===e?!0:t==null||e==null||!gn(t)&&!gn(e)?t!==t&&e!==e:kle(t,e,r,i,Cle,n)}var k3,gD=z(()=>{wle();ml();k3=Cle});function E$e(t,e,r,i){var n=r.length,a=n,s=!i;if(t==null)return!a;for(t=Object(t);n--;){var o=r[n];if(s&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++n{Ax();gD();w$e=1,C$e=2;Ele=E$e});function S$e(t){return t===t&&!Oi(t)}var w3,mD=z(()=>{zo();w3=S$e});function A$e(t){for(var e=Qr(t),r=e.length;r--;){var i=e[r],n=t[i];e[r]=[i,n,w3(n)]}return e}var Ale,_le=z(()=>{mD();vu();Ale=A$e});function _$e(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var C3,yD=z(()=>{C3=_$e});function L$e(t){var e=Ale(t);return e.length==1&&e[0][2]?C3(e[0][0],e[0][1]):function(r){return r===t||Ele(r,t,e)}}var Lle,Rle=z(()=>{Sle();_le();yD();Lle=L$e});function R$e(t,e){return t!=null&&e in Object(t)}var Ile,Dle=z(()=>{Ile=R$e});function I$e(t,e,r){e=nf(e,t);for(var i=-1,n=e.length,a=!1;++i{Qx();Zm();rn();Mx();c5();g1();E3=I$e});function D$e(t,e){return t!=null&&E3(t,e,Ile)}var S3,xD=z(()=>{Dle();vD();S3=D$e});function O$e(t,e){return p1(t)&&w3(e)?C3(xu(t),e):function(r){var i=ooe(r,t);return i===void 0&&i===e?S3(r,t):k3(e,i,M$e|N$e)}}var M$e,N$e,Mle,Nle=z(()=>{gD();loe();xD();e3();mD();yD();g1();M$e=1,N$e=2;Mle=O$e});function P$e(t){return function(e){return e?.[t]}}var A3,bD=z(()=>{A3=P$e});function B$e(t){return function(e){return af(e,t)}}var Ole,Ple=z(()=>{Jx();Ole=B$e});function F$e(t){return p1(t)?A3(xu(t)):Ole(t)}var Ble,Fle=z(()=>{bD();Ple();e3();g1();Ble=F$e});function $$e(t){return typeof t=="function"?t:t==null?$a:typeof t=="object"?Ot(t)?Mle(t[0],t[1]):Lle(t):Ble(t)}var Ri,Ms=z(()=>{Rle();Nle();_h();rn();Fle();Ri=$$e});function z$e(t,e,r,i){for(var n=-1,a=t==null?0:t.length;++n{$le=z$e});function q$e(t,e){return t&&Hm(t,e,Qr)}var w1,_3=z(()=>{t5();vu();w1=q$e});function G$e(t,e){return function(r,i){if(r==null)return r;if(!Cn(r))return t(r,i);for(var n=r.length,a=e?n:-1,s=Object(r);(e?a--:++a{yl();qle=G$e});var V$e,co,of=z(()=>{_3();Gle();V$e=qle(w1),co=V$e});function W$e(t,e,r,i){return co(t,function(n,a,s){e(i,n,r(n),s)}),i}var Vle,Wle=z(()=>{of();Vle=W$e});function U$e(t,e){return function(r,i){var n=Ot(r)?$le:Vle,a=e?e():{};return n(r,t,Ri(i,2),a)}}var Ule,Hle=z(()=>{zle();Wle();Ms();rn();Ule=U$e});var H$e,L3,Yle=z(()=>{pl();H$e=function(){return wn.Date.now()},L3=H$e});var Xle,Y$e,X$e,lf,jle=z(()=>{t1();a0();u0();Qd();Xle=Object.prototype,Y$e=Xle.hasOwnProperty,X$e=du(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&qo(e[0],e[1],n)&&(i=1);++r{R3=j$e});function Z$e(t,e,r,i){var n=-1,a=Q5,s=!0,o=t.length,l=[],u=e.length;if(!o)return l;r&&(e=lo(e,vl(r))),i?(a=R3,s=!1):e.length>=K$e&&(a=T1,s=!1,e=new b1(e));e:for(;++n{m3();eD();TD();v0();l0();v3();K$e=200;Kle=Z$e});var Q$e,cf,Qle=z(()=>{Zle();y1();t1();u5();Q$e=du(function(t,e){return o0(t)?Kle(t,bu(e,1,o0,!0)):[]}),cf=Q$e});function J$e(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var xa,Jle=z(()=>{xa=J$e});function eze(t,e,r){var i=t==null?0:t.length;return i?(e=r||e===void 0?1:yu(e),n3(t,e<0?0:e,i)):[]}var Dn,ece=z(()=>{rD();h1();Dn=eze});function tze(t,e,r){var i=t==null?0:t.length;return i?(e=r||e===void 0?1:yu(e),e=i-e,n3(t,0,e<0?0:e)):[]}var Nh,tce=z(()=>{rD();h1();Nh=tze});function rze(t){return typeof t=="function"?t:$a}var C1,I3=z(()=>{_h();C1=rze});function ize(t,e){var r=Ot(t)?j5:co;return r(t,C1(e))}var Pe,D3=z(()=>{QI();of();I3();rn();Pe=ize});var rce=z(()=>{D3()});function nze(t,e){for(var r=-1,i=t==null?0:t.length;++r{ice=nze});function aze(t,e){var r=!0;return co(t,function(i,n,a){return r=!!e(i,n,a),r}),r}var ace,sce=z(()=>{of();ace=aze});function sze(t,e,r){var i=Ot(t)?ice:ace;return r&&qo(t,e,r)&&(e=void 0),i(t,Ri(e,3))}var ss,oce=z(()=>{nce();sce();Ms();rn();u0();ss=sze});function oze(t,e){var r=[];return co(t,function(i,n,a){e(i,n,a)&&r.push(i)}),r}var M3,kD=z(()=>{of();M3=oze});function lze(t,e){var r=Ot(t)?v1:M3;return r(t,Ri(e,3))}var oi,wD=z(()=>{a3();kD();Ms();rn();oi=lze});function cze(t){return function(e,r,i){var n=Object(e);if(!Cn(e)){var a=Ri(r,3);e=Qr(e),r=function(o){return a(n[o],o,n)}}var s=t(e,r,i);return s>-1?n[a?e[s]:s]:void 0}}var lce,cce=z(()=>{Ms();yl();vu();lce=cze});function hze(t,e,r){var i=t==null?0:t.length;if(!i)return-1;var n=r==null?0:yu(r);return n<0&&(n=uze(i+n,0)),K5(t,Ri(e,3),n)}var uze,uce,hce=z(()=>{JI();Ms();h1();uze=Math.max;uce=hze});var dze,Ns,dce=z(()=>{cce();hce();dze=lce(uce),Ns=dze});function fze(t){return t&&t.length?t[0]:void 0}var ba,fce=z(()=>{ba=fze});var pce=z(()=>{fce()});function pze(t,e){var r=-1,i=Cn(t)?Array(t.length):[];return co(t,function(n,a,s){i[++r]=e(n,a,s)}),i}var N3,CD=z(()=>{of();yl();N3=pze});function gze(t,e){var r=Ot(t)?lo:N3;return r(t,Ri(e,3))}var at,E1=z(()=>{v0();Ms();CD();rn();at=gze});function mze(t,e){return bu(at(t,e),1)}var Ua,ED=z(()=>{y1();E1();Ua=mze});function yze(t,e){return t==null?t:Hm(t,C1(e),io)}var SD,gce=z(()=>{t5();I3();Qd();SD=yze});function vze(t,e){return t&&w1(t,C1(e))}var AD,mce=z(()=>{_3();I3();AD=vze});var xze,bze,Tze,_D,yce=z(()=>{Um();Hle();xze=Object.prototype,bze=xze.hasOwnProperty,Tze=Ule(function(t,e,r){bze.call(t,r)?t[r].push(e):cu(t,r,[e])}),_D=Tze});function kze(t,e){return t>e}var vce,xce=z(()=>{vce=kze});function Eze(t,e){return t!=null&&Cze.call(t,e)}var wze,Cze,bce,Tce=z(()=>{wze=Object.prototype,Cze=wze.hasOwnProperty;bce=Eze});function Sze(t,e){return t!=null&&E3(t,e,bce)}var Pt,kce=z(()=>{Tce();vD();Pt=Sze});function _ze(t){return typeof t=="string"||!Ot(t)&&gn(t)&&Fa(t)==Aze}var Aze,Mn,O3=z(()=>{Eh();rn();ml();Aze="[object String]";Mn=_ze});function Lze(t,e){return lo(e,function(r){return t[r]})}var wce,Cce=z(()=>{v0();wce=Lze});function Rze(t){return t==null?[]:wce(t,Qr(t))}var Or,LD=z(()=>{Cce();vu();Or=Rze});function Dze(t,e,r,i){t=Cn(t)?t:Or(t),r=r&&!i?yu(r):0;var n=t.length;return r<0&&(r=Ize(n+r,0)),Mn(t)?r<=n&&t.indexOf(e,r)>-1:!!n&&d1(t,e,r)>-1}var Ize,nn,Ece=z(()=>{Z5();yl();O3();h1();LD();Ize=Math.max;nn=Dze});function Nze(t,e,r){var i=t==null?0:t.length;if(!i)return-1;var n=r==null?0:yu(r);return n<0&&(n=Mze(i+n,0)),d1(t,e,n)}var Mze,P3,Sce=z(()=>{Z5();h1();Mze=Math.max;P3=Nze});function $ze(t){if(t==null)return!0;if(Cn(t)&&(Ot(t)||typeof t=="string"||typeof t.splice=="function"||lc(t)||Kd(t)||oc(t)))return!t.length;var e=Uo(t);if(e==Oze||e==Pze)return!t.size;if(uu(t))return!f1(t).length;for(var r in t)if(Fze.call(t,r))return!1;return!0}var Oze,Pze,Bze,Fze,br,B3=z(()=>{J5();b0();Zm();rn();yl();Jm();Km();Ix();Oze="[object Map]",Pze="[object Set]",Bze=Object.prototype,Fze=Bze.hasOwnProperty;br=$ze});function qze(t){return gn(t)&&Fa(t)==zze}var zze,Ace,_ce=z(()=>{Eh();ml();zze="[object RegExp]";Ace=qze});var Lce,Gze,kl,Rce=z(()=>{_ce();l0();Rx();Lce=xl&&xl.isRegExp,Gze=Lce?vl(Lce):Ace,kl=Gze});function Vze(t){return t===void 0}var Rr,Ice=z(()=>{Rr=Vze});function Wze(t,e){return t{F3=Wze});function Uze(t,e){var r={};return e=Ri(e,3),w1(t,function(i,n,a){cu(r,n,e(i,n,a))}),r}var T0,Dce=z(()=>{Um();_3();Ms();T0=Uze});function Hze(t,e,r){for(var i=-1,n=t.length;++i{y0();S1=Hze});function Yze(t){return t&&t.length?S1(t,$a,vce):void 0}var uo,Mce=z(()=>{$3();xce();_h();uo=Yze});function Xze(t){return t&&t.length?S1(t,$a,F3):void 0}var hc,ID=z(()=>{$3();RD();_h();hc=Xze});function jze(t,e){return t&&t.length?S1(t,Ri(e,2),F3):void 0}var k0,Nce=z(()=>{$3();Ms();RD();k0=jze});function Zze(t){if(typeof t!="function")throw new TypeError(Kze);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var Kze,Oce,Pce=z(()=>{Kze="Expected a function";Oce=Zze});function Qze(t,e,r,i){if(!Oi(t))return t;e=nf(e,t);for(var n=-1,a=e.length,s=a-1,o=t;o!=null&&++n{e1();Qx();Mx();zo();g1();Bce=Qze});function Jze(t,e,r){for(var i=-1,n=e.length,a={};++i{Jx();Fce();Qx();z3=Jze});function eqe(t,e){if(t==null)return{};var r=lo(u3(t),function(i){return[i]});return e=Ri(e),z3(t,r,function(i,n){return e(i,n[0])})}var ho,$ce=z(()=>{v0();Ms();DD();oD();ho=eqe});function tqe(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}var zce,qce=z(()=>{zce=tqe});function rqe(t,e){if(t!==e){var r=t!==void 0,i=t===null,n=t===t,a=Wo(t),s=e!==void 0,o=e===null,l=e===e,u=Wo(e);if(!o&&!u&&!a&&t>e||a&&s&&l&&!o&&!u||i&&s&&l||!r&&l||!n)return 1;if(!i&&!a&&!u&&t{y0();Gce=rqe});function iqe(t,e,r){for(var i=-1,n=t.criteria,a=e.criteria,s=n.length,o=r.length;++i=o)return l;var u=r[i];return l*(u=="desc"?-1:1)}}return t.index-e.index}var Wce,Uce=z(()=>{Vce();Wce=iqe});function nqe(t,e,r){e.length?e=lo(e,function(a){return Ot(a)?function(s){return af(s,a.length===1?a[0]:a)}:a}):e=[$a];var i=-1;e=lo(e,vl(Ri));var n=N3(t,function(a,s,o){var l=lo(e,function(u){return u(a)});return{criteria:l,index:++i,value:a}});return zce(n,function(a,s){return Wce(a,s,r)})}var Hce,Yce=z(()=>{v0();Jx();Ms();CD();qce();l0();Uce();_h();rn();Hce=nqe});var aqe,Xce,jce=z(()=>{bD();aqe=A3("length"),Xce=aqe});function yqe(t){for(var e=Kce.lastIndex=0;Kce.test(t);)++e;return e}var Zce,sqe,oqe,lqe,cqe,uqe,hqe,MD,ND,dqe,Qce,Jce,eue,fqe,tue,rue,pqe,gqe,mqe,Kce,iue,nue=z(()=>{Zce="\\ud800-\\udfff",sqe="\\u0300-\\u036f",oqe="\\ufe20-\\ufe2f",lqe="\\u20d0-\\u20ff",cqe=sqe+oqe+lqe,uqe="\\ufe0e\\ufe0f",hqe="["+Zce+"]",MD="["+cqe+"]",ND="\\ud83c[\\udffb-\\udfff]",dqe="(?:"+MD+"|"+ND+")",Qce="[^"+Zce+"]",Jce="(?:\\ud83c[\\udde6-\\uddff]){2}",eue="[\\ud800-\\udbff][\\udc00-\\udfff]",fqe="\\u200d",tue=dqe+"?",rue="["+uqe+"]?",pqe="(?:"+fqe+"(?:"+[Qce,Jce,eue].join("|")+")"+rue+tue+")*",gqe=rue+tue+pqe,mqe="(?:"+[Qce+MD+"?",MD,Jce,eue,hqe].join("|")+")",Kce=RegExp(ND+"(?="+ND+")|"+mqe+gqe,"g");iue=yqe});function vqe(t){return goe(t)?iue(t):Xce(t)}var aue,sue=z(()=>{jce();moe();nue();aue=vqe});function xqe(t,e){return z3(t,e,function(r,i){return S3(t,i)})}var oue,lue=z(()=>{DD();xD();oue=xqe});var bqe,w0,cue=z(()=>{lue();poe();bqe=foe(function(t,e){return t==null?{}:oue(t,e)}),w0=bqe});function wqe(t,e,r,i){for(var n=-1,a=kqe(Tqe((e-t)/(r||1)),0),s=Array(a);a--;)s[i?a:++n]=t,t+=r;return s}var Tqe,kqe,uue,hue=z(()=>{Tqe=Math.ceil,kqe=Math.max;uue=wqe});function Cqe(t){return function(e,r,i){return i&&typeof i!="number"&&qo(e,r,i)&&(r=i=void 0),e=u1(e),r===void 0?(r=e,e=0):r=u1(r),i=i===void 0?e{hue();u0();KI();due=Cqe});var Eqe,wl,pue=z(()=>{fue();Eqe=due(),wl=Eqe});function Sqe(t,e,r,i,n){return n(t,function(a,s,o){r=i?(i=!1,a):e(r,a,s,o)}),r}var gue,mue=z(()=>{gue=Sqe});function Aqe(t,e,r){var i=Ot(t)?yoe:gue,n=arguments.length<3;return i(t,Ri(e,4),r,n,co)}var li,OD=z(()=>{voe();of();Ms();mue();rn();li=Aqe});function _qe(t,e){var r=Ot(t)?v1:M3;return r(t,Oce(Ri(e,3)))}var uf,yue=z(()=>{a3();kD();Ms();rn();Pce();uf=_qe});function Iqe(t){if(t==null)return 0;if(Cn(t))return Mn(t)?aue(t):t.length;var e=Uo(t);return e==Lqe||e==Rqe?t.size:f1(t).length}var Lqe,Rqe,PD,vue=z(()=>{J5();b0();yl();O3();sue();Lqe="[object Map]",Rqe="[object Set]";PD=Iqe});function Dqe(t,e){var r;return co(t,function(i,n,a){return r=e(i,n,a),!r}),!!r}var xue,bue=z(()=>{of();xue=Dqe});function Mqe(t,e,r){var i=Ot(t)?y3:xue;return r&&qo(t,e,r)&&(e=void 0),i(t,Ri(e,3))}var tb,Tue=z(()=>{dD();Ms();bue();rn();u0();tb=Mqe});var Nqe,ku,kue=z(()=>{y1();Yce();t1();u0();Nqe=du(function(t,e){if(t==null)return[];var r=e.length;return r>1&&qo(t,e[0],e[1])?e=[]:r>2&&qo(e[0],e[1],e[2])&&(e=[e[0]]),Hce(t,bu(e,1),[])}),ku=Nqe});var Oqe,Pqe,wue,Cue=z(()=>{lD();ZI();b3();Oqe=1/0,Pqe=sf&&1/k1(new sf([,-0]))[1]==Oqe?function(t){return new sf(t)}:Sn,wue=Pqe});function Fqe(t,e,r){var i=-1,n=Q5,a=t.length,s=!0,o=[],l=o;if(r)s=!1,n=R3;else if(a>=Bqe){var u=e?null:wue(t);if(u)return k1(u);s=!1,n=T1,l=new b1}else l=e?[]:o;e:for(;++i{m3();eD();TD();v3();Cue();b3();Bqe=200;A1=Fqe});var $qe,BD,Eue=z(()=>{y1();t1();q3();u5();$qe=du(function(t){return A1(bu(t,1,o0,!0))}),BD=$qe});function zqe(t){return t&&t.length?A1(t):[]}var _1,Sue=z(()=>{q3();_1=zqe});function qqe(t,e){return t&&t.length?A1(t,Ri(e,2)):[]}var Aue,_ue=z(()=>{Ms();q3();Aue=qqe});function Vqe(t){var e=++Gqe;return t3(t)+e}var Gqe,C0,Lue=z(()=>{tD();Gqe=0;C0=Vqe});function Wqe(t,e,r){for(var i=-1,n=t.length,a=e.length,s={};++i{Rue=Wqe});function Uqe(t,e){return Rue(t||[],e||[],hu)}var G3,Due=z(()=>{e1();Iue();G3=Uqe});var Yt=z(()=>{roe();uD();sle();ole();z9();jle();Qle();ece();tce();rce();oce();wD();dce();pce();ED();i3();D3();gce();mce();yce();kce();_h();Ece();Sce();rn();B3();kx();zo();Rce();O3();Ice();vu();Jle();E1();Dce();Mce();V9();ID();Nce();ZI();Yle();cue();$ce();pue();OD();yue();vue();Tue();kue();Eue();Sue();Lue();LD();Due();});function Nue(t,e){t[e]?t[e]++:t[e]=1}function Oue(t,e){--t[e]||delete t[e]}function rb(t,e,r,i){var n=""+e,a=""+r;if(!t&&n>a){var s=n;n=a,a=s}return n+Mue+a+Mue+(Rr(i)?Hqe:i)}function Yqe(t,e,r,i){var n=""+e,a=""+r;if(!t&&n>a){var s=n;n=a,a=s}var o={v:n,w:a};return i&&(o.name=i),o}function FD(t,e){return rb(t,e.v,e.w,e.name)}var Hqe,E0,Mue,bi,V3=z(()=>{Yt();Hqe="\0",E0="\0",Mue="