You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Textbook__Detail.594e90e...

605 lines
1.9 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

var kt=Object.assign,VI=(Dt,Ne,ie)=>new Promise((Te,ae)=>{var X=G=>{try{j(ie.next(G))}catch(oe){ae(oe)}},le=G=>{try{j(ie.throw(G))}catch(oe){ae(oe)}},j=G=>G.done?Te(G.value):Promise.resolve(G.value).then(X,le);j((ie=ie.apply(Dt,Ne)).next())});(window.webpackJsonp=window.webpackJsonp||[]).push([[282,3,5,6,7,8,9,11,12],{"+GGh":function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNtkgDU0ZEcJyGshsSftj3RTyDY8DHqQ0WT5z/gwYmck0Gc018EkW6qOgU0hyQQkAiVjKQ6gCBh0IYJwG9wpZpyffPwsvBCI7CxpQLEJKw2DFmQObIEmsmAmIKoIYNkmABPTUoEOY4Ar01c0Bxx4zekujrONBpiUMmlYnY2TAhcWgUoXn7NVOCFmxi2DWZo3UcVPWnPC338+DIMUEnniwIFg1bANoYkN3z6hKN4kHvDhfuz4Kf5bgV82fv45SlzcHR8JZhNmiInY30onCQpnkoXPKEzaa8kBw/WT0Vs8iSiGT7eNvTEJSGXsSMB101nCWpsMMCll2/rG/C5IObJ0fyWhhYtcg2LOVDrQM3CVZYf2rmThylxLC1wmjHkmZ47EjhUzldWHPAz7z7OzY+cUjJ8BrBD+SliRk6AGkxXLjmFi9rLb+OyQ2I2HNgMYCp8UqoIkwF7dECTm/Hxm6PUY6asCW0Xj4aF0A9iys76BrVatlT2xLnsUwN5lmxb1lmUp+0aYzTGms0K+jHn03UFnGv12IcwCLdZrBl5G+xj28rosAB7p9xjAdFk2afz+BgrDM7G2DY8MXJQJhnrHgsnpJBLVnuGcfrPMRKHKC/DYiiDbwtsVOiu0VgQPobXA6DJIpsk2BlwUr2puq8CVrM9nSCl3qLmRmyDLGnzCYpvATToPjc2xBhf3BJaIDaOEgbJJCrfcQii7GYpa0CcWnnUjVqwh3mNPjN8onCE4CxBTkYfFAVfbmvDivuBpSRNODdN7z8sDisS5YS8OUGLF5kAXTO9GoKymBtNhsSF7oRZz6X2T2CaTx56YeZ1pKworLMTpKbPbkS2hJ5v8VzKC7ElocOj3ufnJw6yJmep9PTRrQXiNZGmxhgXiVLb+eKI/7w1fm4UGx4+Z0t805vj+6rsQZl8KssiCkekZiMJZoKMYu3EDlYdH87nQYCV/zYGWrAhrW5BN4TPSyGB1IXkjUMU2KQWYEvT1jflDNTVXs5NOe+ci36KxTBgrUcKse5/FhWGSxDyZtT5jbJ7ROIvEZm1pxhgxctGi2FBiYs6fH4tsB+e0Ry49N1hdNunMVHMdvV0RG6TceCU7g7JIprGYliL7j0BIQA6YtcTzcopjEzBWCrD6xqbx5dmiDR8MEH4CS7LGguC2zGbvHjdOJ6iL2R0HErGYByTZEVEm6mKhf59nk5p7GNebzb0+5KG0zEujffnxxzovZK8yc5JPJoU0o4GYCLcOPL3uhT1tw4BEmShljZqwrQPvslFrtFpfi8Acu/Y+bJvLxLXZJmDL3WjBZ7TPJeWTNXfEtHPsTbl7l4Q1p48S9gpSeDvhzbEM2RpcvLvXLEj0GALw2AHTCTkwc13FP8MSg3j8gfYKb4aAee0YYkbwQtyK94KFELIRTa4BAnPimScWbxOzkQuNTpOZC0EVgbJaowdeWBraVHARk7MbUVbqG7O53EQNdhqAi9XsotQ9ZCYSVZy9aEf+tTKroCDACSuMccxJGEFrwBXXO0krkX/WXHUgMocj0BY8L+bjheMPC85xCOSMRTmKYTnmWZVlnAQ0MkZZ6ORsZBiIFb6t/OSuvjkWD7dec3HwEdkHCdImIC0IkfWN2Wgp5MTm2ctncz5k+QzS1QV5GHJWga9TEtOQsHf74gdnnRLhfhlAuVHLAeHxFjAakVLIlLwo7uuFjg0dI0ch3NU+mS3C2Ysm1o4lAFHg3PtSkGEXA7ZiVhdZDsyOCQvhvjLw8cdAUxPQqq1zbJgPxrsmmi8fbQKmgk0dwFThur4hfyuoLbJNiU3M1Na2JEJR7N1773f5SVKvzZ4JTLxVYP9BCU4+JQ3EcZ4DaWozx6A2wZnGhzTuef36VwJ990hw8CEpttnGZHUkHeMwzNlHZ6n8WPqE7Ws1XXwm6tVwBCv92EvAOyeK7jrP2JjnRX6gdfXfe0eiW/cElbpY+JtZ8cxjwDJ3Zo6/PJCj5+4pRo6uOFarxV5e/IcZ5CcFVxAi6+vzCyTElbV25sNV5E3RHattCSILJqKd5lHuc4L6lUCHjl4XvThN4pZfCQwakuDU01J3+OeelXj8YYHvn57ic7txUe6TCdrYsJ/f57zXJa67Ose22wJXX1tFtc68ffcfBJYuZQItYMvimQ/6YooD91dn1Uy9lJ2/895cOch3TVAI4zqMd0sEhmuUQartXpmV4+F7BXbomuCEkyrYrpPVZA7AFmT29BQLrl8H3D6uSf/+zgVVtN2WWyD+8/rYrMuCj/WThka6mprBVD9XQ2O+WLXc1Ear94LcNoFg9njVbEU6yTfQ4De3CsyaIXHWT1Ls1tuEgBkveIB9/zR1l5nP3jlBQIGsWgW+/s0UXxqaGn1FfV52O8dLOpyanxt+meOV2RLHfzXFUUcrTjXvXTE2x8L3agCs5MSPO66CoUOpUGR1novpTMtZkCmCM5PlGcx7XrU6Ivj2UT+XJWc14iWLgT/+tgkrlgHbtEpw/EkV9FTXEAnynIU3GzYpHD/3eIY5UwUOPLKK/Q5PSzspFBgTe2/rsLwRfV4by2r66jU2ZiNzIR/eMHsxK8Ig00x4oWzDpJ29O/5wh8QzT0m0aw9cNLaCrjubC/viCxK3EoONSakMrn9PnyLxuzsE1q0DBgxM8N3vVdCylTRmKpm0etD+3x8sBy44J8c2LYFrf1FFq1YeCMuWAuvXS+QiwRVjM7RsBfzkJ5WwAVICkyYJvD5PYsyYKr7w+Zi9yOTyuotCriNS3hHq2IwVsq0Ad2Ak8zSoL/pEgfwqdR0euz/DvFcEKpUEI0dV0LlLgtt/3rSx811zu+9c3gKpZnrfkLjZO6W+mPr6bJKEPL5sh1x7ufTfkYANipY9uM4iBssyibvvlPjrZIk2bYELxqbYuTtxCjCdA0yFSCI/e4w3/iFxzZUCQgA77Zzg7PMr2K6DVYLRtmr8990t8JfJAkcNS3HC19QdyxILu08len9waobWrYEbfl01p22L7+r3pZc2YfFi4Oc/r0OH7QygQ1amYFg0g4m9uJ5Ruy+tOQadqWUMZ/UYszOUfpv8cIaZzwv0H1TBoMMr+NPvsmDqPl4j0LASqNsmQYfO5gY0p+5lBP2LPjji1CqS6pbTXrTfRDUP1jfkK6DanEsR5jYNCshuqK6rwTKJupK2XLN8KXDjLwTe+adEq9bA+Zek2NXqKTITlAa79QavwQjQWZbg6acEHnlQ4OO1QMuWgMqIOnUCzjqviq7dCOWeYVYuBy48P0OaAFddW0X79uaaNjYA7ZX+sILiww+BM8/I9Pu/uL7KevwTrFsnccbpBnzX/6LOnXPRn2OTxa6BBxJ1P1C4jOqHzfZzmWvp22xIL3lWe/N1gV57mRAZ1w4fnJjjvQUCXzqhij0HmthH2k/9XrUMaL+9Gb953bZFsxthS7CXPouGBrm/kNmMmuxVs72lhotuNcCcl4DbbxRY8xHQc9cEY85KsMOO9BnPANMJYIONyFeJwMsvCTxwr8DSJUDrNsCxx6cYcmiCCTcJzH5Zok0b4MxzKtitV9gtcdstEjNfFFp7DTvasNf6JuCi8zNUqsAll1XRpjXwwVLgggsydOoIXHV1NWjvefddiSuvzLDXXgl+dEbFsleYRIRt0+bKFboanI9lgKKth6Bdx/hUResiBOIG+7ksKxFI5r4o8PSfMnTdJcVXf1gpFL2nPJLjtek5Dv9aFb36m2ukW4i0EPMMtsUAtqoxPwtCXFdrhy57DPqvLOE6wW0/zcT93FckrhsvcMR/JfjGSSmqFX8El5lIYHUjsHiR2d+CN4Hn/irwwTJDgocenuLYryZo184AM88kJtwq8cocgXPOUwCzrAngnXckxo3N0a0bMPanVVTs8R55SODRRwQOOTTFid9Wd3OChQsFfnp5js6dgauuqvPGv5T4+98E7r5HYMTICoZrkIZMpXFC5ElJTuBphWGmEBpLWnH04gvbb28uoTdJqUwzf67Ex+sE9hlQYauCQkO3foXE767PkGXAN8+oolOXotm6cIHEk3dm+vqM+EEVnbqR4eqTjS0FLj079fXZBAl5SmGnPENkHQzerih6YZThmUmQWPR+gm7Use/2Z/UTEqxfJ6E01rTnJWbNlPrCpBXgC/0TjDw+QY8elCz45EJ1eS5ZBHTdyQv7rCnB1VflePufEudfWMHuuydYtRJYvFjixl/l2qYY/7Mq2lqzccEbEtdck+tTvu46G0otcCZOFJg5U+DHP65gj74KkBZgZLba307Ys1BHbEBi3/+u3c8VZ5yG6EI9tmwJcPt1TRA5cOBhKQ4ZVkGSWmDYysXatQkeuK0Jy96XOPiYKvofZBKm4vIziVnPSMz6a4b2HROMHFOHOpsIkWzZogBb1dD0PCQO4jstgEi/WezHCgrBtAPWqkNAcwFRAh98AMydLfHqHAMulRmpn+23Bw4+PMVBhyTav3KekvXXyNl243QTDvzxXoHJTwnU1UGz0vLlxr2mnxNPSnHIIRVHPXPmADfdaITxySenGDzY0+u55zahvj68xHv3S3D6aUYBE58Ri2kQsUzxk/ZzqSOargvWz6VeU4VqAHNmSvz5gUyHsr5fqGD4N1IkFWOdrFkDPHB7hmXvC+y8W4pDh6f46KMEa1ZLfPSRxNrV0FJlzYf27w8lPqw3d3zvfSs46ARlD3F/c8tBTDHYuxKyZ7jLks4Cd3Fru+jETQSstR8n+N93BN57N8G7b0u8+0+p/Rz+Q8Dacy8TFn1HKIlQ3ymxQ5cEbVoz595OyLSpEr+ZIDRTbd8Z2H6HRIdepacUm533EwUuAkeCaVNz3Hmnubf33TfBD36gwCOx+kPglpsNs6mjf7haYslS4KAhKUZ9S4Gw2O1RKzvknRHBmsLSfi6+ZC0U3q7TARIL35KY9Nsc6z6W2OMLFQz7ptKIEk/cIzB/jhn3hn6q1QSt2gOt2yVYuViiab3El0+qQ7fdSxtrNrS7Db6f1DdkywODlfRFjGj9epmwt6+zkKrM04fuFxpMTq9scCgb3mDMGRXsNzAU9mpM69cbLdexoxmhuqMvvTjTgBl7eRVduviSlQLJI48IPPaoAZjKTn/5yzpUnNHoNdefHswxebLA/5xSwYD9Urfec9EiiVWruGaxWicyKJ0k5fVFtwo9XOhB4Ym6H7brkKLjjlxjmb///a7E/ROatGYbdUYVHXdM8MYrArOnCrRsDbRsnWCbVkDLVgnq1L9bAa3aJWjd1gCrrqUddwLMmy4w/dEMHbumGKEY+lP4UQBbJ6VsYVjH1+tI+SpGUXcR4TsUuEXAKc/og6US554utNnZ83MJeu4KvDpbaTLg4MMSdIzqBaTdvAbg3keC2S9J/OtfEgpg+w6wtVAFdwZqHcFVF2qSYMJtAi9OFzj+hBTDhhlRzMd/469zvPqqxF79Eqiy0tlnVdB3j9R9njyvSy/P9E1y3TVVtGvrFxHfdY/AlKlRy+0WnpyBB6UY+pWKaWtmq4vUtVr4tmHY7ruFpR/fPm2SBgrfngVtScjaE7kAZjyeY++DK2hdblJt9lkFADMCI2IIx2glYHJL9dUJm3yXPq7u8A7beQa7ZrzAvLkSF12eoncfqi0aozYAbVxQllIDZvpUidMswKg2aAxQVwDVF2P2LImbbszRp0+iM01P/H78552baQa6bGwVP78qw/4DU4w60WSYJN6VVrzo4iZ03znBxRcpK8P8qOM986zAa6+bvN7cFPY9/Yv3k7FwEJmdwWIXtg/ypvrunWK/wanzwniPPVkXpsBtxrRymcQDt2bYvluCEaOreo8v/DnHgjkC+x1RQd+BRvS/+GSOt+cKDD62ip13N9ePj3KzERXtoBAigwkLwMXqgC5196+5i8ysCr7g4moLsG+PTtG9h5kIqjsWWnHouDYsP/awwGuvSYw5PcV+6kIpRnLg8iFNsdxV43Mt9pXn1bGDme81axIsWSSw6+cSrF4NnPXjTJeQbrihirvuEpgyReCSS6rYeSefGT/9jMQDk3J8+cgUJxxfCYDsskVbtyONpc6KazLvjfHuB7ZSyN5csS3BM0u3Asgu4FDgWrNGQmXOrduZG5tC56RbmtCjT4rh31F6McHfHszwj5kCXzymin6Djef1/IM53pyV44hRdeixBzn8WxpWfn9O5BOLhI71hjPHwiJXfZuzAds7hBhsc07ltNMr2Hcgay5kx1qxAvjZuAwNjcD3Tq3oNp8Fb0osWCDxr/+V6N4jwSWXVDDvdaW5MsNw51S1JzZuXI7evROce46ZGNV9cMllTZrlzj27il7K0GXHKvO2KNvTIHOMFrvxcT8XsXf0YJPoCTnxQtrpzwpMeyrHoSMr2GeQ6fZ463WBJ36foU//Cr70dZMV/v2hHP+YkeOLR1fRb4hiQ2AKA1j3PT4dYc/nONE2hTA2hdZCwaod2pRljiT2g85Rq93MDhzAOGiJwYaNSLBjl7AnngDpLIAw5mDKc1J7XApg/ZUGi9hrxXJg7KWZFvfKR1N+Ef0ooO3SM8HAAQmO/HKKhx8SeOIJgWOOSTFihOo/S3DDrzPNkKNHpzhg/woefSTH408K7LVngjNON+GRziXomeIemLMqavRz0fMiyEh13ai+wTDsjQ+7LHg2+ZtrMh0S/3tMFV12Mcw07yWBZyZl2GdwBUOGW4A9mGH+TIFBCmCDTVlJMdiCWTkO/1Ydeuy5FQBGRqtuyHOEZYvYpCeoEMy6Fny5mrSJhUcU0GliuAbr1dtoNfNsL/KRjAXgmgapaUHCajChAaYZjOqd9lgKUKp+uHYN0KED0LVbgu7dE/Tpk2L33iaj0vU6qbonMqxcAVx6WVXrKwVu1YEx9rImXS8980dV/OxnGbIcuOTiKrp19ezlRbMntNIFtAxspk5IPfjq9Cxb6UN7DRSwFFuU4XvmDfstWihx941N2LZTgu+eb6oQ6rxmPJPjxadzHKDaco4weksx2PwZuQbYXipEwjDYVgWYKhXJ3JSKaLUNFYWJ1eg9/7p10Ws8VyKwJiwIVEeEEvnDj03QRZUwainLEoD+/VnDYGMUwAaQkPYspfa1eBGw3XYJWrfyz2HgzKPObd48geuvz7Wpe+V4I4TJLH7iSWVf5FqbrV3LvC+nN2t1RNTo5yqUj4pdqAawvijuRTurUbo0wjj3f5mUYe4MgUFHVnHAkYa9VEh+7LcZ3psvcNSoOvTsZ/b53EMC82dagA0x2075U44FL29FBmtokAOFyGbWzOSsmekqoa50Qv1QNEmeySiEEQ+qjxDANleD9R/AFnFYMAa6MYizvoapQufttwm89JLA0KEpjj9OCXdCc4KsCTj/giadBLRoAYy/ok5XFPQWcTko6ufiRqrXX56hqF/eACju8zI3DPlfHnSG4DWALMjVGG++okkbrd85vwXadzTsqEA68YomrP1I4qQL69C6vQHj84rBZuY4kDHY1BKAvfOqQPe+Keq22ZzZKf+sadepV+062NZdcNuVSXos6MGnh4840zUU9Jz1uDDWIfI1iVEnp9jJPVGMheIAyH7i1ZiefFxqv0plkfsOMD1j7of9zW+SNWuhi+Ivz5JQvf2jR1dw7rmZnrBxP62ic2ff2aFC7B/uzjFtmve2hg1VGs3bHJ+sn6u4PM0/ycYCK3hWlwFfuIDDP2Fn/hyBJ+7J0XWXBF8fY8KjGteSf0k8cGMT2nVIMEqFTctqCmBvWIDt+UUTIqc+mOOtiMHuGdeENtsmGHn6ljdb9VVetSqbJKVqOCxmjWYiPWsQaMIuA28VeGHPS0qewS66vIJevcNMs/iZUPdMVD7YNGFDJBW5aWTmLv9oDfDO2yaUqv/eessUz9VP//4JWrVO8MI0gSFDUpz0bWKvRPeY3XJrhvnzDVIP2D/FrJeFBuU++yQYfXJVG8Y8lHldZLDOWYtbEw4oUYcE1RvjEBn0dkXspbZV9caFbwkcflwV/Q4w2aN6/cHbm/D+2xL9D67ggKMUkMz1e84C7ABiMFkOsN9f1oQOOyYY/sNPCWCNjXJk1pQ9bNIlW4e0K2nK2qFDH8p6izZJ0AxGCYP2Is2V0iHyNYljv5qiqyrdEHlRbhCHO3uB1WZ/fUZqy2HMaUqDGf1mkgQDrl9en+P110LxppoJBwxUWWGKxkaJm27KdYY5flwdOnU0PtqcVyT+eH+G5Sug21e+fWIFgw5MMWeOxO0TMw2yLl2BH55ah07bWwnger8+nX4udRTnyLOFGI31EhOubEKaJjjl4ipatjFh8I3ZAk/fn+ny0LfOa4EWrXxv2vMPZXhjpoACGDHYNMtgh32rDrvsmWDdGuDe8evRZdcUQ0/5lACmFn3U14vFUghbxGG990zkugyP5rKGLcFDo94ElsEiEGxqxCeAOVvDAu3663LdD6ay0969EuzeJ0HPngkqqTJWJS4bm+mu1mOOTjFyZEUXsO+7L8O8eeZEVPfq90+tog8r+KpS0sQ7Mt2wqN4fPbqqvTPz/FKWGZKYL31aNO9qZY2Etv+LTFIyVkOtZq4OgW3GswJT/5yhV78UR59oEpS35wk8eXcOmUsMGV5FPxsGKbOc8rAJkRxgL0/O8drzObr1StFn/wreXyB0VtmrfwVDTmBNe5s6OTW2d0bIypX5BVKIK023M1voYAEWG6qOgOxTdIwQprwsbspLcM2VuWawI45M0Hn7Ev8lzh6ZTTFjusTChYbB+u9HIdtXApQwb6d6vVw53ofnV+ZI3Hxzjt12U0ZqVXcfzJgpcMcdJrANHpziuK9U7OfD8f/7fYkJd2RYsgQ44MAUJ46qmNKMlQ2+pdmGSnsOcT8XD33uORO1njzI2phJ/Kvfj92VYcGrQoNrt35GT02+J8eCV3N8fnAFg44xK7K4868A9ubMHPtbBlPDXrlI4tGb4kUiCQ77ZhW77LXlfTG3R7XwdtVK8ZaUwkpwq7vIWWSt0y5rc2miha8NWR7M5FkB9/3eaKOTvptg5x683GP9LzIzLVBd246QmPyUxD/mSQwfkWqWotDofTsDOvO6TxDMOCXmzJbo0TM1pSMdw4F778tx4IEpdt2FXdRo/GpPaz8G/vxUjqFDK6hrYT07FiZj1vH9XEa3mUK1GV9BvEf99CTa4x570lrvL5TYYafEmMkSaFoPvPqCQP9DDeA8E5rTbFgBfNgo0bZjgjZqfYL9Wb0K+PebAmtXS70EbsddEnTuvuXBZWfFH7h+RTZaSOhHBzgRTwxmc/W4yZBCIKXzZm8+WXBR1Chat0ranA5fEkYNWxwoJMRKQOXCtMOM3n+4pM1/njokfKXCH8fUQml8Roe6fi57ecqzSPZYb9ZSboDCDVZfMuJZZCDqo+dMBDqMWqhtskC2hTuOe9aXtTZKwOZneev+FcBWWRYrV9qHn9jnQjhmYCHLWWGW3RyTxGGO2n/c62xVAVuiX9YVYUDuGcddFm6hUMrGqMwbuKwxkbGift+inh5SFzBhwfOyXhTdEDUWajhd5sbNPS/vVxkLwYTigP3ouPEjxtli3rBx0fpjKimzp+oYMDJ5ty6kwqMVeLFhpTwqyzP7+CbrFdk+Kzc5rAmGgMDNTj/J1oTVpR2f9fnISvaHueClhXOdlfLFtvHlKvkcH4Dabzz+kqcc8vHHK5u5LcF73A3pUenHHMc8ltI38fgwGQr+sjComSnQZlG/l40spvvCh2ueJBjg+vf+k+AqhEgazMrl+XgppX5cOQ8tpH0cqAg0FF6C8GjeNKAku4Jub2aF8IyUmbcOhO7zHqD+ooWh2JxQWIaqOX5b5iKX3mWmLLxwRgjARNvYjLK8D58/z4u5+oy9eGnIEGsZG1Hpi/YXeW/sixsC0PEI8B9EWamyU4/QXLU8f0hIOdL3yDNwBOEy7KDgIKTzIt1m9JrJ/uLqALceyA7heWFxvwZc5qYPWYyySTqeC7cUGtkXbzlTzQK9Occ+YK/gKc/hMjNiFJrwWODHXRMOaPaGdmslLRiL4p+Vm2gby1qfJfaqyWCWudqu+kC8ICH3DrQQN0i9nAkeemuA5QviBjyR4LbvF/SQswH8Hy6RKGkncgAjPeYcXN42ZCHnkGelm2E6AAAD+0lEQVRGSOzKH1qiXo+deQ0Yp3N4qAsfM24AxdYiukm3mivQXoZpm9VjkZYKWoVKmJYCCQH8P0hc7tDN5qarVsme+fp8RgLsEJSG2OTwk3AMRYhk4t7oK+Ik3zlqxBlNeLhqh3bD9ZEHL3XTel/KG8H2wPYXz3w5u3mmtJqFgGSf7+U9L/7lBfRlUdTxsBH9XLavPmh1LnxzWvH5XqTTNOi5+Heds+HCW34jfBbA1SyD0QAVyMR68aiU0n0RA4GNWw3crqAJDSaWDFnSdTxRcP5V6EkZmmFs44BIsLTbB59nbBVkogQtb8HQ0TST1GgeNKuuoy5V620V+7lIXId9XoEdET1Ul8KotyWYeGcsFQAsAhuNn7du/78BmJ7jZbLtCqm+SgYjOZBo8t1vJ9L9SgLanr4CxoVLF6O8KOfCnodFfSfU/GYPHlNt1utiBLMqXBZrWTICLw9vG6vDnKhmHliweJYW01rJ4Jz/Gs+6D8AWe16u+G2g4x+NXgTkZwVcG8VgLHwlqz4Q4/JcXrjhDI9NrGUsvqCWjM3Q/CSghAzkcGgnKQhrBCT2RQ/m074gHlsr8Q2i3yevKXqIietWdRgmC8LqJ7Ijyso+Ud8XufFkRRjWKfpjhrCN1UD3QHENAPWJ+c4l2uazBK5NAhgNfOUyeZTIxbVSyj1rtvcUtBdv3YnB51UYTyYCrRSFRseKhUdbUjilAYQt2AqcBRuDhyEunEmg22PzCfR/M8DZG0n7Xny1kOuI8N/XGDrxJUCyxjB5bKGdUe6BGZvjswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"+oxA":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___1SA8P",flex_space_between:"flex_space_between___3iSxN",flex_box_vertical_center:"flex_box_vertical_center___2JAtS",flex_box_center_end:"flex_box_center_end___2w-PB",flex_box_column:"flex_box_column___2s4Ak",head:"head___3iBvF",node:"node____ISDx"}},"+ua5":function(Dt,Ne,ie){},"/cxE":function(Dt,Ne,ie){"use strict";ie.d(Ne,"f",function(){return X}),ie.d(Ne,"g",function(){return le}),ie.d(Ne,"h",function(){return j}),ie.d(Ne,"e",function(){return oe}),ie.d(Ne,"b",function(){return V}),ie.d(Ne,"c",function(){return l}),ie.d(Ne,"d",function(){return F}),ie.d(Ne,"a",function(){return O});class Te{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(C){setTimeout(()=>{throw C.stack?new Error(C.message+`
`+C.stack):C},0)}}emit(C){this.listeners.forEach(b=>{b(C)})}onUnexpectedError(C){this.unexpectedErrorHandler(C),this.emit(C)}onUnexpectedExternalError(C){this.unexpectedErrorHandler(C)}}const ae=new Te;function X(C){oe(C)||ae.onUnexpectedError(C);return}function le(C){oe(C)||ae.onUnexpectedExternalError(C);return}function j(C){if(C instanceof Error){let{name:b,message:p}=C;const y=C.stacktrace||C.stack;return{$isError:!0,name:b,message:p,stack:y}}return C}const G="Canceled";function oe(C){return C instanceof Error&&C.name===G&&C.message===G}function V(){const C=new Error(G);return C.name=C.message,C}function l(C){return C?new Error(`Illegal argument: ${C}`):new Error("Illegal argument")}function F(C){return C?new Error(`Illegal state: ${C}`):new Error("Illegal state")}class O extends Error{constructor(C){super("NotSupported");C&&(this.message=C)}}},"1j5w":function(Dt,Ne,ie){"use strict";ie.d(Ne,"d",function(){return dt}),ie.d(Ne,"b",function(){return nt}),ie.d(Ne,"c",function(){return xt}),ie.d(Ne,"a",function(){return Pn});var Te=ie("VTBJ"),ae=ie("1OyB"),X=ie("vuIU"),le=ie("JX7q"),j=ie("Ji7U"),G=ie("LK+K"),oe=ie("q1tI"),V=ie("I8Z2"),l=ie("BGR+"),F=ie("wx14"),O=ie("rePB"),C=ie("4IlW"),b=ie("2GS6"),p=ie("Gytx"),y=ie.n(p),x=ie("TSYQ"),g=ie.n(x),h=ie("U8pU"),c=ie("ODXe"),d=/iPhone/i,I=/iPod/i,A=/iPad/i,R=/\bAndroid(?:.+)Mobile\b/i,N=/Android/i,P=/\bAndroid(?:.+)SD4930UR\b/i,D=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,E=/Windows Phone/i,v=/\bWindows(?:.+)ARM\b/i,_=/BlackBerry/i,T=/BB10/i,w=/Opera Mini/i,M=/\b(CriOS|Chrome)(?:.+)Mobile/i,Z=/Mobile(?:.+)Firefox\b/i;function z($t,ft){return $t.test(ft)}function L($t){var ft=$t||(typeof navigator!="undefined"?navigator.userAgent:""),yt=ft.split("[FBAN");if(typeof yt[1]!="undefined"){var ut=yt,Ae=Object(c.a)(ut,1);ft=Ae[0]}if(yt=ft.split("Twitter"),typeof yt[1]!="undefined"){var Ue=yt,vt=Object(c.a)(Ue,1);ft=vt[0]}var ht={apple:{phone:z(d,ft)&&!z(E,ft),ipod:z(I,ft),tablet:!z(d,ft)&&z(A,ft)&&!z(E,ft),device:(z(d,ft)||z(I,ft)||z(A,ft))&&!z(E,ft)},amazon:{phone:z(P,ft),tablet:!z(P,ft)&&z(D,ft),device:z(P,ft)||z(D,ft)},android:{phone:!z(E,ft)&&z(P,ft)||!z(E,ft)&&z(R,ft),tablet:!z(E,ft)&&!z(P,ft)&&!z(R,ft)&&(z(D,ft)||z(N,ft)),device:!z(E,ft)&&(z(P,ft)||z(D,ft)||z(R,ft)||z(N,ft))||z(/\bokhttp\b/i,ft)},windows:{phone:z(E,ft),tablet:z(v,ft),device:z(E,ft)||z(v,ft)},other:{blackberry:z(_,ft),blackberry10:z(T,ft),opera:z(w,ft),firefox:z(Z,ft),chrome:z(M,ft),device:z(_,ft)||z(T,ft)||z(w,ft)||z(Z,ft)||z(M,ft)},any:null,phone:null,tablet:null};return ht.any=ht.apple.device||ht.android.device||ht.windows.device||ht.other.device,ht.phone=ht.apple.phone||ht.android.phone||ht.windows.phone,ht.tablet=ht.apple.tablet||ht.android.tablet||ht.windows.tablet,ht}var W=Object(Te.a)(Object(Te.a)({},L()),{},{isMobile:L}),Y=W;function H(){}function ne($t,ft,yt){var ut=ft||"";return $t.key||"".concat(ut,"item_").concat(yt)}function ce($t){return"".concat($t,"-menu-")}function we($t,ft){var yt=-1;oe.Children.forEach($t,function(ut){yt+=1,ut&&ut.type&&ut.type.isMenuItemGroup?oe.Children.forEach(ut.props.children,function(Ae){yt+=1,ft(Ae,yt)}):ft(ut,yt)})}function Ce($t,ft,yt){if(!$t||yt.find)return;oe.Children.forEach($t,function(ut){if(ut){var Ae=ut.type;if(!Ae||!(Ae.isSubMenu||Ae.isMenuItem||Ae.isMenuItemGroup))return;ft.indexOf(ut.key)!==-1?yt.find=!0:ut.props.children&&Ce(ut.props.children,ft,yt)}})}var Ke=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Ie=function(ft){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=ft&&typeof ft.getBoundingClientRect=="function"&&ft.getBoundingClientRect().width;if(ut){if(yt){var Ae=getComputedStyle(ft),Ue=Ae.marginLeft,vt=Ae.marginRight;ut+=+Ue.replace("px","")+ +vt.replace("px","")}ut=+ut.toFixed(6)}return ut||0},je=function(ft,yt,ut){ft&&Object(h.a)(ft.style)==="object"&&(ft.style[yt]=ut)},Ve=function(){return Y.any},$e=ie("KQm4"),Pe=ie("Ff2n"),se=ie("i8i4"),S=ie("bdgK"),B=ie("uciX"),J=ie("8XRh"),ue={adjustX:1,adjustY:1},q={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},xe={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},We=q,it=0,be={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Le=function(ft,yt,ut){var Ae=ce(yt),Ue=ft.getState();ft.setState({defaultActiveFirst:Object(Te.a)(Object(Te.a)({},Ue.defaultActiveFirst),{},Object(O.a)({},Ae,ut))})},Fe=function($t){Object(j.a)(yt,$t);var ft=Object(G.a)(yt);function yt(ut){var Ae;Object(ae.a)(this,yt),Ae=ft.call(this,ut),Ae.onDestroy=function(Et){Ae.props.onDestroy(Et)},Ae.onKeyDown=function(Et){var Rt=Et.keyCode,Ct=Ae.menuInstance,et=Ae.props,Ut=et.isOpen,en=et.store;if(Rt===C.a.ENTER)return Ae.onTitleClick(Et),Le(en,Ae.props.eventKey,!0),!0;if(Rt===C.a.RIGHT)return Ut?Ct.onKeyDown(Et):(Ae.triggerOpenChange(!0),Le(en,Ae.props.eventKey,!0)),!0;if(Rt===C.a.LEFT){var ln;if(Ut)ln=Ct.onKeyDown(Et);else return;return ln||(Ae.triggerOpenChange(!1),ln=!0),ln}return Ut&&(Rt===C.a.UP||Rt===C.a.DOWN)?Ct.onKeyDown(Et):void 0},Ae.onOpenChange=function(Et){Ae.props.onOpenChange(Et)},Ae.onPopupVisibleChange=function(Et){Ae.triggerOpenChange(Et,Et?"mouseenter":"mouseleave")},Ae.onMouseEnter=function(Et){var Rt=Ae.props,Ct=Rt.eventKey,et=Rt.onMouseEnter,Ut=Rt.store;Le(Ut,Ae.props.eventKey,!1),et({key:Ct,domEvent:Et})},Ae.onMouseLeave=function(Et){var Rt=Ae.props,Ct=Rt.parentMenu,et=Rt.eventKey,Ut=Rt.onMouseLeave;Ct.subMenuInstance=Object(le.a)(Ae),Ut({key:et,domEvent:Et})},Ae.onTitleMouseEnter=function(Et){var Rt=Ae.props,Ct=Rt.eventKey,et=Rt.onItemHover,Ut=Rt.onTitleMouseEnter;et({key:Ct,hover:!0}),Ut({key:Ct,domEvent:Et})},Ae.onTitleMouseLeave=function(Et){var Rt=Ae.props,Ct=Rt.parentMenu,et=Rt.eventKey,Ut=Rt.onItemHover,en=Rt.onTitleMouseLeave;Ct.subMenuInstance=Object(le.a)(Ae),Ut({key:et,hover:!1}),en({key:et,domEvent:Et})},Ae.onTitleClick=function(Et){var Rt=Object(le.a)(Ae),Ct=Rt.props;if(Ct.onTitleClick({key:Ct.eventKey,domEvent:Et}),Ct.triggerSubMenuAction==="hover")return;Ae.triggerOpenChange(!Ct.isOpen,"click"),Le(Ct.store,Ae.props.eventKey,!1)},Ae.onSubMenuClick=function(Et){typeof Ae.props.onClick=="function"&&Ae.props.onClick(Ae.addKeyPath(Et))},Ae.onSelect=function(Et){Ae.props.onSelect(Et)},Ae.onDeselect=function(Et){Ae.props.onDeselect(Et)},Ae.getPrefixCls=function(){return"".concat(Ae.props.rootPrefixCls,"-submenu")},Ae.getActiveClassName=function(){return"".concat(Ae.getPrefixCls(),"-active")},Ae.getDisabledClassName=function(){return"".concat(Ae.getPrefixCls(),"-disabled")},Ae.getSelectedClassName=function(){return"".concat(Ae.getPrefixCls(),"-selected")},Ae.getOpenClassName=function(){return"".concat(Ae.props.rootPrefixCls,"-submenu-open")},Ae.saveMenuInstance=function(Et){Ae.menuInstance=Et},Ae.addKeyPath=function(Et){return Object(Te.a)(Object(Te.a)({},Et),{},{keyPath:(Et.keyPath||[]).concat(Ae.props.eventKey)})},Ae.triggerOpenChange=function(Et,Rt){var Ct=Ae.props.eventKey,et=function(){Ae.onOpenChange({key:Ct,item:Object(le.a)(Ae),trigger:Rt,open:Et})};Rt==="mouseenter"?Ae.mouseenterTimeout=setTimeout(function(){et()},0):et()},Ae.isChildrenSelected=function(){var Et={find:!1};return Ce(Ae.props.children,Ae.props.selectedKeys,Et),Et.find},Ae.isOpen=function(){return Ae.props.openKeys.indexOf(Ae.props.eventKey)!==-1},Ae.adjustWidth=function(){if(!Ae.subMenuTitle||!Ae.menuInstance)return;var Et=se.findDOMNode(Ae.menuInstance);if(Et.offsetWidth>=Ae.subMenuTitle.offsetWidth)return;Et.style.minWidth="".concat(Ae.subMenuTitle.offsetWidth,"px")},Ae.saveSubMenuTitle=function(Et){Ae.subMenuTitle=Et},Ae.getBaseProps=function(){var Et=Object(le.a)(Ae),Rt=Et.props;return{mode:Rt.mode==="horizontal"?"vertical":Rt.mode,visible:Ae.props.isOpen,level:Rt.level+1,inlineIndent:Rt.inlineIndent,focusable:!1,onClick:Ae.onSubMenuClick,onSelect:Ae.onSelect,onDeselect:Ae.onDeselect,onDestroy:Ae.onDestroy,selectedKeys:Rt.selectedKeys,eventKey:"".concat(Rt.eventKey,"-menu-"),openKeys:Rt.openKeys,motion:Rt.motion,onOpenChange:Ae.onOpenChange,subMenuOpenDelay:Rt.subMenuOpenDelay,parentMenu:Object(le.a)(Ae),subMenuCloseDelay:Rt.subMenuCloseDelay,forceSubMenuRender:Rt.forceSubMenuRender,triggerSubMenuAction:Rt.triggerSubMenuAction,builtinPlacements:Rt.builtinPlacements,defaultActiveFirst:Rt.store.getState().defaultActiveFirst[ce(Rt.eventKey)],multiple:Rt.multiple,prefixCls:Rt.rootPrefixCls,id:Ae.internalMenuId,manualRef:Ae.saveMenuInstance,itemIcon:Rt.itemIcon,expandIcon:Rt.expandIcon,direction:Rt.direction}},Ae.getMotion=function(Et,Rt){var Ct=Object(le.a)(Ae),et=Ct.haveRendered,Ut=Ae.props,en=Ut.motion,ln=Ut.rootPrefixCls,Gn=Object(Te.a)(Object(Te.a)({},en),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:et||!Rt||Et!=="inline"});return Gn};var Ue=ut.store,vt=ut.eventKey,ht=Ue.getState(),Qt=ht.defaultActiveFirst;Ae.isRootMenu=!1;var nn=!1;return Qt&&(nn=Qt[vt]),Le(Ue,vt,nn),Ae}return Object(X.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ae=this,Ue=this.props,vt=Ue.mode,ht=Ue.parentMenu,Qt=Ue.manualRef;if(Qt&&Qt(this),vt!=="horizontal"||!ht.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ae.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ae=this.props,Ue=Ae.onDestroy,vt=Ae.eventKey;Ue&&Ue(vt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ae){var Ue=this,vt=this.getBaseProps(),ht=this.getMotion(vt.mode,vt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||vt.visible||vt.forceSubMenuRender,!this.haveOpened)return oe.createElement("div",null);var Qt=vt.direction;return oe.createElement(J.default,Object.assign({visible:vt.visible},ht),function(nn){var Et=nn.className,Rt=nn.style,Ct=g()("".concat(vt.prefixCls,"-sub"),Et,Object(O.a)({},"".concat(vt.prefixCls,"-rtl"),Qt==="rtl"));return oe.createElement(pe,Object.assign({},vt,{id:Ue.internalMenuId,className:Ct,style:Rt}),Ae)})}},{key:"render",value:function(){var Ae,Ue=Object(Te.a)({},this.props),vt=Ue.isOpen,ht=this.getPrefixCls(),Qt=Ue.mode==="inline",nn=g()(ht,"".concat(ht,"-").concat(Ue.mode),(Ae={},Object(O.a)(Ae,Ue.className,!!Ue.className),Object(O.a)(Ae,this.getOpenClassName(),vt),Object(O.a)(Ae,this.getActiveClassName(),Ue.active||vt&&!Qt),Object(O.a)(Ae,this.getDisabledClassName(),Ue.disabled),Object(O.a)(Ae,this.getSelectedClassName(),this.isChildrenSelected()),Ae));this.internalMenuId||(Ue.eventKey?this.internalMenuId="".concat(Ue.eventKey,"$Menu"):(it+=1,this.internalMenuId="$__$".concat(it,"$Menu")));var Et={},Rt={},Ct={};Ue.disabled||(Et={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Rt={onClick:this.onTitleClick},Ct={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var et={},Ut=Ue.direction;Qt&&(Ut==="rtl"?et.paddingRight=Ue.inlineIndent*Ue.level:et.paddingLeft=Ue.inlineIndent*Ue.level);var en={};this.props.isOpen&&(en={"aria-owns":this.internalMenuId});var ln=null;Ue.mode!=="horizontal"&&(ln=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ln=oe.createElement(this.props.expandIcon,Object(Te.a)({},this.props))));var Gn=oe.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:et,className:"".concat(ht,"-title"),role:"button"},Ct,Rt,{"aria-expanded":vt},en,{"aria-haspopup":"true",title:typeof Ue.title=="string"?Ue.title:void 0}),Ue.title,ln||oe.createElement("i",{className:"".concat(ht,"-arrow")})),Mn=this.renderChildren(Ue.children),hn=Ue.parentMenu.isRootMenu?Ue.parentMenu.props.getPopupContainer:function(Ir){return Ir.parentNode},On=be[Ue.mode],gn=Ue.popupOffset?{offset:Ue.popupOffset}:{},Wn=Ue.mode==="inline"?"":Ue.popupClassName;Wn+=Ut==="rtl"?" ".concat(ht,"-rtl"):"";var jn=Ue.disabled,rr=Ue.triggerSubMenuAction,ur=Ue.subMenuOpenDelay,Sr=Ue.forceSubMenuRender,ui=Ue.subMenuCloseDelay,Ci=Ue.builtinPlacements;Ke.forEach(function(Ir){return delete Ue[Ir]}),delete Ue.onClick;var _n=Ut==="rtl"?Object.assign({},xe,Ci):Object.assign({},q,Ci);return delete Ue.direction,oe.createElement("li",Object.assign({},Ue,Et,{className:nn,role:"menuitem"}),Qt&&Gn,Qt&&Mn,!Qt&&oe.createElement(B.a,{prefixCls:ht,popupClassName:g()("".concat(ht,"-popup"),Wn),getPopupContainer:hn,builtinPlacements:_n,popupPlacement:On,popupVisible:vt,popupAlign:gn,popup:Mn,action:jn?[]:[rr],mouseEnterDelay:ur,mouseLeaveDelay:ui,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Sr},Gn))}}]),yt}(oe.Component);Fe.defaultProps={onMouseEnter:H,onMouseLeave:H,onTitleMouseEnter:H,onTitleMouseLeave:H,onTitleClick:H,manualRef:H,mode:"vertical",title:""};var ze=Object(V.b)(function($t,ft){var yt=$t.openKeys,ut=$t.activeKey,Ae=$t.selectedKeys,Ue=ft.eventKey,vt=ft.subMenuKey;return{isOpen:yt.indexOf(Ue)>-1,active:ut[vt]===Ue,selectedKeys:Ae}})(Fe);ze.isSubMenu=!0;var dt=ze,It="menuitem-overflowed",Jt=.5,Bt=function($t){Object(j.a)(yt,$t);var ft=Object(G.a)(yt);function yt(){var ut;return Object(ae.a)(this,yt),ut=ft.apply(this,arguments),ut.resizeObserver=null,ut.mutationObserver=null,ut.originalTotalWidth=0,ut.overflowedItems=[],ut.menuItemSizes=[],ut.cancelFrameId=null,ut.state={lastVisibleIndex:void 0},ut.getMenuItemNodes=function(){var Ae=ut.props.prefixCls,Ue=se.findDOMNode(Object(le.a)(ut));return Ue?[].slice.call(Ue.children).filter(function(vt){return vt.className.split(" ").indexOf("".concat(Ae,"-overflowed-submenu"))<0}):[]},ut.getOverflowedSubMenuItem=function(Ae,Ue,vt){var ht=ut.props,Qt=ht.overflowedIndicator,nn=ht.level,Et=ht.mode,Rt=ht.prefixCls,Ct=ht.theme;if(nn!==1||Et!=="horizontal")return null;var et=ut.props.children[0],Ut=et.props,en=Ut.children,ln=Ut.title,Gn=Ut.style,Mn=Object(Pe.a)(Ut,["children","title","style"]),hn=Object(Te.a)({},Gn),On="".concat(Ae,"-overflowed-indicator"),gn="".concat(Ae,"-overflowed-indicator");Ue.length===0&&vt!==!0?hn=Object(Te.a)(Object(Te.a)({},hn),{},{display:"none"}):vt&&(hn=Object(Te.a)(Object(Te.a)({},hn),{},{visibility:"hidden",position:"absolute"}),On="".concat(On,"-placeholder"),gn="".concat(gn,"-placeholder"));var Wn=Ct?"".concat(Rt,"-").concat(Ct):"",jn={};return Ke.forEach(function(rr){Mn[rr]!==void 0&&(jn[rr]=Mn[rr])}),oe.createElement(dt,Object.assign({title:Qt,className:"".concat(Rt,"-overflowed-submenu"),popupClassName:Wn},jn,{key:On,eventKey:gn,disabled:!1,style:hn}),Ue)},ut.setChildrenWidthAndResize=function(){if(ut.props.mode!=="horizontal")return;var Ae=se.findDOMNode(Object(le.a)(ut));if(!Ae)return;var Ue=Ae.children;if(!Ue||Ue.length===0)return;var vt=Ae.children[Ue.length-1];je(vt,"display","inline-block");var ht=ut.getMenuItemNodes(),Qt=ht.filter(function(nn){return nn.className.split(" ").indexOf(It)>=0});Qt.forEach(function(nn){je(nn,"display","inline-block")}),ut.menuItemSizes=ht.map(function(nn){return Ie(nn,!0)}),Qt.forEach(function(nn){je(nn,"display","none")}),ut.overflowedIndicatorWidth=Ie(Ae.children[Ae.children.length-1],!0),ut.originalTotalWidth=ut.menuItemSizes.reduce(function(nn,Et){return nn+Et},0),ut.handleResize(),je(vt,"display","none")},ut.handleResize=function(){if(ut.props.mode!=="horizontal")return;var Ae=se.findDOMNode(Object(le.a)(ut));if(!Ae)return;var Ue=Ie(Ae);ut.overflowedItems=[];var vt=0,ht;ut.originalTotalWidth>Ue+Jt&&(ht=-1,ut.menuItemSizes.forEach(function(Qt){vt+=Qt,vt+ut.overflowedIndicatorWidth<=Ue&&(ht+=1)})),ut.setState({lastVisibleIndex:ht})},ut}return Object(X.a)(yt,[{key:"componentDidMount",value:function(){var Ae=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ue=se.findDOMNode(this);if(!Ue)return;this.resizeObserver=new S.default(function(vt){vt.forEach(function(){var ht=Ae.cancelFrameId;cancelAnimationFrame(ht),Ae.cancelFrameId=requestAnimationFrame(Ae.setChildrenWidthAndResize)})}),[].slice.call(Ue.children).concat(Ue).forEach(function(vt){Ae.resizeObserver.observe(vt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ae.resizeObserver.disconnect(),[].slice.call(Ue.children).concat(Ue).forEach(function(vt){Ae.resizeObserver.observe(vt)}),Ae.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ue,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ae){var Ue=this,vt=this.state.lastVisibleIndex;return(Ae||[]).reduce(function(ht,Qt,nn){var Et=Qt;if(Ue.props.mode==="horizontal"){var Rt=Ue.getOverflowedSubMenuItem(Qt.props.eventKey,[]);vt!==void 0&&Ue.props.className.indexOf("".concat(Ue.props.prefixCls,"-root"))!==-1&&(nn>vt&&(Et=oe.cloneElement(Qt,{style:{display:"none"},eventKey:"".concat(Qt.props.eventKey,"-hidden"),className:"".concat(It)})),nn===vt+1&&(Ue.overflowedItems=Ae.slice(vt+1).map(function(et){return oe.cloneElement(et,{key:et.props.eventKey,mode:"vertical-left"})}),Rt=Ue.getOverflowedSubMenuItem(Qt.props.eventKey,Ue.overflowedItems)));var Ct=[].concat(Object($e.a)(ht),[Rt,Et]);return nn===Ae.length-1&&Ct.push(Ue.getOverflowedSubMenuItem(Qt.props.eventKey,[],!0)),Ct}return[].concat(Object($e.a)(ht),[Et])},[])}},{key:"render",value:function(){var Ae=this.props,Ue=Ae.visible,vt=Ae.prefixCls,ht=Ae.overflowedIndicator,Qt=Ae.mode,nn=Ae.level,Et=Ae.tag,Rt=Ae.children,Ct=Ae.theme,et=Object(Pe.a)(Ae,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ut=Et;return oe.createElement(Ut,Object.assign({},et),this.renderChildren(Rt))}}]),yt}(oe.Component);Bt.defaultProps={tag:"div",className:""};var Nt=Bt;function cn($t){return $t.length?$t.every(function(ft){return!!ft.props.disabled}):!0}function sn($t,ft,yt){var ut=$t.getState();$t.setState({activeKey:Object(Te.a)(Object(Te.a)({},ut.activeKey),{},Object(O.a)({},ft,yt))})}function zt($t){return $t.eventKey||"0-menu-"}function dn($t,ft){var yt=ft,ut=$t.children,Ae=$t.eventKey;if(yt){var Ue;if(we(ut,function(vt,ht){vt&&vt.props&&!vt.props.disabled&&yt===ne(vt,Ae,ht)&&(Ue=!0)}),Ue)return yt}return yt=null,$t.defaultActiveFirst&&we(ut,function(vt,ht){!yt&&vt&&!vt.props.disabled&&(yt=ne(vt,Ae,ht))}),yt}function Tn($t){if($t){var ft=this.instanceArray.indexOf($t);ft!==-1?this.instanceArray[ft]=$t:this.instanceArray.push($t)}}var Se=function($t){Object(j.a)(yt,$t);var ft=Object(G.a)(yt);function yt(ut){var Ae;return Object(ae.a)(this,yt),Ae=ft.call(this,ut),Ae.onKeyDown=function(Ue,vt){var ht=Ue.keyCode,Qt;if(Ae.getFlatInstanceArray().forEach(function(Et){Et&&Et.props.active&&Et.onKeyDown&&(Qt=Et.onKeyDown(Ue))}),Qt)return 1;var nn=null;return(ht===C.a.UP||ht===C.a.DOWN)&&(nn=Ae.step(ht===C.a.UP?-1:1)),nn?(Ue.preventDefault(),sn(Ae.props.store,zt(Ae.props),nn.props.eventKey),typeof vt=="function"&&vt(nn),1):void 0},Ae.onItemHover=function(Ue){var vt=Ue.key,ht=Ue.hover;sn(Ae.props.store,zt(Ae.props),ht?vt:null)},Ae.onDeselect=function(Ue){Ae.props.onDeselect(Ue)},Ae.onSelect=function(Ue){Ae.props.onSelect(Ue)},Ae.onClick=function(Ue){Ae.props.onClick(Ue)},Ae.onOpenChange=function(Ue){Ae.props.onOpenChange(Ue)},Ae.onDestroy=function(Ue){Ae.props.onDestroy(Ue)},Ae.getFlatInstanceArray=function(){return Ae.instanceArray},Ae.step=function(Ue){var vt=Ae.getFlatInstanceArray(),ht=Ae.props.store.getState().activeKey[zt(Ae.props)],Qt=vt.length;if(!Qt)return null;Ue<0&&(vt=vt.concat().reverse());var nn=-1;if(vt.every(function(et,Ut){return et&&et.props.eventKey===ht?(nn=Ut,!1):!0}),!Ae.props.defaultActiveFirst&&nn!==-1&&cn(vt.slice(nn,Qt-1)))return;var Et=(nn+1)%Qt,Rt=Et;do{var Ct=vt[Rt];if(!Ct||Ct.props.disabled)Rt=(Rt+1)%Qt;else return Ct}while(Rt!==Et);return null},Ae.renderCommonMenuItem=function(Ue,vt,ht){var Qt=Ae.props.store.getState(),nn=Object(le.a)(Ae),Et=nn.props,Rt=ne(Ue,Et.eventKey,vt),Ct=Ue.props;if(!Ct||typeof Ue.type=="string")return Ue;var et=Rt===Qt.activeKey,Ut=Object(Te.a)(Object(Te.a)({mode:Ct.mode||Et.mode,level:Et.level,inlineIndent:Et.inlineIndent,renderMenuItem:Ae.renderMenuItem,rootPrefixCls:Et.prefixCls,index:vt,parentMenu:Et.parentMenu,manualRef:Ct.disabled?void 0:Object(b.a)(Ue.ref,Tn.bind(Object(le.a)(Ae))),eventKey:Rt,active:!Ct.disabled&&et,multiple:Et.multiple,onClick:function(ln){(Ct.onClick||H)(ln),Ae.onClick(ln)},onItemHover:Ae.onItemHover,motion:Et.motion,subMenuOpenDelay:Et.subMenuOpenDelay,subMenuCloseDelay:Et.subMenuCloseDelay,forceSubMenuRender:Et.forceSubMenuRender,onOpenChange:Ae.onOpenChange,onDeselect:Ae.onDeselect,onSelect:Ae.onSelect,builtinPlacements:Et.builtinPlacements,itemIcon:Ct.itemIcon||Ae.props.itemIcon,expandIcon:Ct.expandIcon||Ae.props.expandIcon},ht),{},{direction:Et.direction});return(Et.mode==="inline"||Ve())&&(Ut.triggerSubMenuAction="click"),oe.cloneElement(Ue,Ut)},Ae.renderMenuItem=function(Ue,vt,ht){if(!Ue)return null;var Qt=Ae.props.store.getState(),nn={openKeys:Qt.openKeys,selectedKeys:Qt.selectedKeys,triggerSubMenuAction:Ae.props.triggerSubMenuAction,subMenuKey:ht};return Ae.renderCommonMenuItem(Ue,vt,nn)},ut.store.setState({activeKey:Object(Te.a)(Object(Te.a)({},ut.store.getState().activeKey),{},Object(O.a)({},ut.eventKey,dn(ut,ut.activeKey)))}),Ae.instanceArray=[],Ae}return Object(X.a)(yt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ae){return this.props.visible||Ae.visible||this.props.className!==Ae.className||!y()(this.props.style,Ae.style)}},{key:"componentDidUpdate",value:function(Ae){var Ue=this.props,vt="activeKey"in Ue?Ue.activeKey:Ue.store.getState().activeKey[zt(Ue)],ht=dn(Ue,vt);if(ht!==vt)sn(Ue.store,zt(Ue),ht);else if("activeKey"in Ae){var Qt=dn(Ae,Ae.activeKey);ht!==Qt&&sn(Ue.store,zt(Ue),ht)}}},{key:"render",value:function(){var Ae=this,Ue=Object(F.a)({},this.props);this.instanceArray=[];var vt=g()(Ue.prefixCls,Ue.className,"".concat(Ue.prefixCls,"-").concat(Ue.mode)),ht={className:vt,role:Ue.role||"menu"};Ue.id&&(ht.id=Ue.id),Ue.focusable&&(ht.tabIndex=0,ht.onKeyDown=this.onKeyDown);var Qt=Ue.prefixCls,nn=Ue.eventKey,Et=Ue.visible,Rt=Ue.level,Ct=Ue.mode,et=Ue.overflowedIndicator,Ut=Ue.theme;return Ke.forEach(function(en){return delete Ue[en]}),delete Ue.onClick,oe.createElement(Nt,Object.assign({},Ue,{prefixCls:Qt,mode:Ct,tag:"ul",level:Rt,theme:Ut,visible:Et,overflowedIndicator:et},ht),oe.Children.map(Ue.children,function(en,ln){return Ae.renderMenuItem(en,ln,nn||"0-menu-")}))}}]),yt}(oe.Component);Se.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:H};var fe=Object(V.b)()(Se),pe=fe,ve=ie("Kwbf");function Oe($t,ft,yt){var ut=$t.prefixCls,Ae=$t.motion,Ue=$t.defaultMotions,vt=Ue===void 0?{}:Ue,ht=$t.openAnimation,Qt=$t.openTransitionName,nn=ft.switchingModeFromInline;if(Ae)return Ae;if(Object(h.a)(ht)==="object"&&ht)Object(ve.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ht=="string")return{motionName:"".concat(ut,"-open-").concat(ht)};if(Qt)return{motionName:Qt};var Et=vt[yt];return Et||(nn?null:vt.other)}var ge=function($t){Object(j.a)(yt,$t);var ft=Object(G.a)(yt);function yt(ut){var Ae;Object(ae.a)(this,yt),Ae=ft.call(this,ut),Ae.inlineOpenKeys=[],Ae.onSelect=function(ht){var Qt=Object(le.a)(Ae),nn=Qt.props;if(nn.selectable){var Et=Ae.store.getState(),Rt=Et.selectedKeys,Ct=ht.key;nn.multiple?Rt=Rt.concat([Ct]):Rt=[Ct],"selectedKeys"in nn||Ae.store.setState({selectedKeys:Rt}),nn.onSelect(Object(Te.a)(Object(Te.a)({},ht),{},{selectedKeys:Rt}))}},Ae.onClick=function(ht){var Qt=Ae.getRealMenuMode(),nn=Object(le.a)(Ae),Et=nn.store,Rt=nn.props.onOpenChange;Qt!=="inline"&&!("openKeys"in Ae.props)&&(Et.setState({openKeys:[]}),Rt([])),Ae.props.onClick(ht)},Ae.onKeyDown=function(ht,Qt){Ae.innerMenu.getWrappedInstance().onKeyDown(ht,Qt)},Ae.onOpenChange=function(ht){var Qt=Object(le.a)(Ae),nn=Qt.props,Et=Ae.store.getState().openKeys.concat(),Rt=!1,Ct=function(Ut){var en=!1;if(Ut.open)en=Et.indexOf(Ut.key)===-1,en&&Et.push(Ut.key);else{var ln=Et.indexOf(Ut.key);en=ln!==-1,en&&Et.splice(ln,1)}Rt=Rt||en};Array.isArray(ht)?ht.forEach(Ct):Ct(ht),Rt&&("openKeys"in Ae.props||Ae.store.setState({openKeys:Et}),nn.onOpenChange(Et))},Ae.onDeselect=function(ht){var Qt=Object(le.a)(Ae),nn=Qt.props;if(nn.selectable){var Et=Ae.store.getState().selectedKeys.concat(),Rt=ht.key,Ct=Et.indexOf(Rt);Ct!==-1&&Et.splice(Ct,1),"selectedKeys"in nn||Ae.store.setState({selectedKeys:Et}),nn.onDeselect(Object(Te.a)(Object(Te.a)({},ht),{},{selectedKeys:Et}))}},Ae.onMouseEnter=function(ht){Ae.restoreModeVerticalFromInline();var Qt=Ae.props.onMouseEnter;Qt&&Qt(ht)},Ae.onTransitionEnd=function(ht){var Qt=ht.propertyName==="width"&&ht.target===ht.currentTarget,nn=ht.target.className,Et=Object.prototype.toString.call(nn)==="[object SVGAnimatedString]"?nn.animVal:nn,Rt=ht.propertyName==="font-size"&&Et.indexOf("anticon")>=0;(Qt||Rt)&&Ae.restoreModeVerticalFromInline()},Ae.setInnerMenu=function(ht){Ae.innerMenu=ht},Ae.isRootMenu=!0;var Ue=ut.defaultSelectedKeys,vt=ut.defaultOpenKeys;return"selectedKeys"in ut&&(Ue=ut.selectedKeys||[]),"openKeys"in ut&&(vt=ut.openKeys||[]),Ae.store=Object(V.c)({selectedKeys:Ue,openKeys:vt,activeKey:{"0-menu-":dn(ut,ut.activeKey)}}),Ae.state={switchingModeFromInline:!1},Ae}return Object(X.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ae){this.updateOpentKeysWhenSwitchMode(Ae),this.updateMiniStore();var Ue=this.props,vt=Ue.siderCollapsed,ht=Ue.inlineCollapsed,Qt=Ue.onOpenChange;(!Ae.inlineCollapsed&&ht||!Ae.siderCollapsed&&vt)&&Qt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ae){var Ue=this.props,vt=this.store,ht=this.inlineOpenKeys,Qt=vt.getState(),nn={};Ae.mode==="inline"&&Ue.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ue||((Ue.inlineCollapsed&&!Ae.inlineCollapsed||Ue.siderCollapsed&&!Ae.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Qt.openKeys.concat(),nn.openKeys=[]),(!Ue.inlineCollapsed&&Ae.inlineCollapsed||!Ue.siderCollapsed&&Ae.siderCollapsed)&&(nn.openKeys=ht,this.inlineOpenKeys=[])),Object.keys(nn).length&&vt.setState(nn)}},{key:"updateMenuDisplay",value:function(){var Ae=this.props.collapsedWidth,Ue=this.store,vt=this.prevOpenKeys,ht=this.getInlineCollapsed()&&(Ae===0||Ae==="0"||Ae==="0px");ht?(this.prevOpenKeys=Ue.getState().openKeys.concat(),this.store.setState({openKeys:[]})):vt&&(this.store.setState({openKeys:vt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ae=this.props.mode,Ue=this.state.switchingModeFromInline,vt=this.getInlineCollapsed();return Ue&&vt?"inline":vt?"vertical":Ae}},{key:"getInlineCollapsed",value:function(){var Ae=this.props,Ue=Ae.inlineCollapsed,vt=Ae.siderCollapsed;return vt!==void 0?vt:Ue}},{key:"restoreModeVerticalFromInline",value:function(){var Ae=this.state.switchingModeFromInline;Ae&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ae=Object(Te.a)({},Object(l.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ue=this.getRealMenuMode();return Ae.className+=" ".concat(Ae.prefixCls,"-root"),Ae.direction==="rtl"&&(Ae.className+=" ".concat(Ae.prefixCls,"-rtl")),Ae=Object(Te.a)(Object(Te.a)({},Ae),{},{mode:Ue,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Oe(this.props,this.state,Ue)}),delete Ae.openAnimation,delete Ae.openTransitionName,oe.createElement(V.a,{store:this.store},oe.createElement(pe,Object.assign({},Ae,{ref:this.setInnerMenu}),this.props.children))}}]),yt}(oe.Component);ge.defaultProps={selectable:!0,onClick:H,onSelect:H,onOpenChange:H,onDeselect:H,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:oe.createElement("span",null,"\xB7\xB7\xB7")};var ye=ge,Re=function($t){Object(j.a)(yt,$t);var ft=Object(G.a)(yt);function yt(){var ut;return Object(ae.a)(this,yt),ut=ft.apply(this,arguments),ut.onKeyDown=function(Ae){var Ue=Ae.keyCode;return Ue===C.a.ENTER?(ut.onClick(Ae),!0):void 0},ut.onMouseLeave=function(Ae){var Ue=ut.props,vt=Ue.eventKey,ht=Ue.onItemHover,Qt=Ue.onMouseLeave;ht({key:vt,hover:!1}),Qt({key:vt,domEvent:Ae})},ut.onMouseEnter=function(Ae){var Ue=ut.props,vt=Ue.eventKey,ht=Ue.onItemHover,Qt=Ue.onMouseEnter;ht({key:vt,hover:!0}),Qt({key:vt,domEvent:Ae})},ut.onClick=function(Ae){var Ue=ut.props,vt=Ue.eventKey,ht=Ue.multiple,Qt=Ue.onClick,nn=Ue.onSelect,Et=Ue.onDeselect,Rt=Ue.isSelected,Ct={key:vt,keyPath:[vt],item:Object(le.a)(ut),domEvent:Ae};Qt(Ct),ht?Rt?Et(Ct):nn(Ct):Rt||nn(Ct)},ut.saveNode=function(Ae){ut.node=Ae},ut}return Object(X.a)(yt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ae=this.props;Ae.onDestroy&&Ae.onDestroy(Ae.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ae,Ue=Object(Te.a)({},this.props),vt=g()(this.getPrefixCls(),Ue.className,(Ae={},Object(O.a)(Ae,this.getActiveClassName(),!Ue.disabled&&Ue.active),Object(O.a)(Ae,this.getSelectedClassName(),Ue.isSelected),Object(O.a)(Ae,this.getDisabledClassName(),Ue.disabled),Ae)),ht=Object(Te.a)(Object(Te.a)({},Ue.attribute),{},{title:typeof Ue.title=="string"?Ue.title:void 0,className:vt,role:Ue.role||"menuitem","aria-disabled":Ue.disabled});Ue.role==="option"?ht=Object(Te.a)(Object(Te.a)({},ht),{},{role:"option","aria-selected":Ue.isSelected}):(Ue.role===null||Ue.role==="none")&&(ht.role="none");var Qt={onClick:Ue.disabled?null:this.onClick,onMouseLeave:Ue.disabled?null:this.onMouseLeave,onMouseEnter:Ue.disabled?null:this.onMouseEnter},nn=Object(Te.a)({},Ue.style);Ue.mode==="inline"&&(Ue.direction==="rtl"?nn.paddingRight=Ue.inlineIndent*Ue.level:nn.paddingLeft=Ue.inlineIndent*Ue.level),Ke.forEach(function(Rt){return delete Ue[Rt]}),delete Ue.direction;var Et=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Et=oe.createElement(this.props.itemIcon,this.props)),oe.createElement("li",Object.assign({},Object(l.default)(Ue,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ht,Qt,{style:nn,ref:this.saveNode}),Ue.children,Et)}}]),yt}(oe.Component);Re.isMenuItem=!0,Re.defaultProps={onSelect:H,onMouseEnter:H,onMouseLeave:H,manualRef:H};var Me=Object(V.b)(function($t,ft){var yt=$t.activeKey,ut=$t.selectedKeys,Ae=ft.eventKey,Ue=ft.subMenuKey;return{active:yt[Ue]===Ae,isSelected:ut.indexOf(Ae)!==-1}})(Re),nt=Me,qe=function($t){Object(j.a)(yt,$t);var ft=Object(G.a)(yt);function yt(){var ut;return Object(ae.a)(this,yt),ut=ft.apply(this,arguments),ut.renderInnerMenuItem=function(Ae){var Ue=ut.props,vt=Ue.renderMenuItem,ht=Ue.index;return vt(Ae,ht,ut.props.subMenuKey)},ut}return Object(X.a)(yt,[{key:"render",value:function(){var Ae=Object(F.a)({},this.props),Ue=Ae.className,vt=Ue===void 0?"":Ue,ht=Ae.rootPrefixCls,Qt="".concat(ht,"-item-group-title"),nn="".concat(ht,"-item-group-list"),Et=Ae.title,Rt=Ae.children;return Ke.forEach(function(Ct){return delete Ae[Ct]}),delete Ae.onClick,delete Ae.direction,oe.createElement("li",Object.assign({},Ae,{className:"".concat(vt," ").concat(ht,"-item-group")}),oe.createElement("div",{className:Qt,title:typeof Et=="string"?Et:void 0},Et),oe.createElement("ul",{className:nn},oe.Children.map(Rt,this.renderInnerMenuItem)))}}]),yt}(oe.Component);qe.isMenuItemGroup=!0,qe.defaultProps={disabled:!0};var xt=qe,yn=function(ft){var yt=ft.className,ut=ft.rootPrefixCls,Ae=ft.style;return oe.createElement("li",{className:"".concat(yt," ").concat(ut,"-item-divider"),style:Ae})};yn.defaultProps={disabled:!0,className:"",style:{}};var Pn=yn,An=Ne.e=ye},"24hK":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});class Te{constructor(X){this.element=X,this.next=Te.Undefined,this.prev=Te.Undefined}}Te.Undefined=new Te(void 0);class ae{constructor(){this._first=Te.Undefined,this._last=Te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Te.Undefined}clear(){let X=this._first;for(;X!==Te.Undefined;){const le=X.next;X.prev=Te.Undefined,X.next=Te.Undefined,X=le}this._first=Te.Undefined,this._last=Te.Undefined,this._size=0}unshift(X){return this._insert(X,!1)}push(X){return this._insert(X,!0)}_insert(X,le){const j=new Te(X);if(this._first===Te.Undefined)this._first=j,this._last=j;else if(le){const oe=this._last;this._last=j,j.prev=oe,oe.next=j}else{const oe=this._first;this._first=j,j.next=oe,oe.prev=j}this._size+=1;let G=!1;return()=>{G||(G=!0,this._remove(j))}}shift(){if(this._first===Te.Undefined)return;{const X=this._first.element;return this._remove(this._first),X}}pop(){if(this._last===Te.Undefined)return;{const X=this._last.element;return this._remove(this._last),X}}_remove(X){if(X.prev!==Te.Undefined&&X.next!==Te.Undefined){const le=X.prev;le.next=X.next,X.next.prev=le}else X.prev===Te.Undefined&&X.next===Te.Undefined?(this._first=Te.Undefined,this._last=Te.Undefined):X.next===Te.Undefined?(this._last=this._last.prev,this._last.next=Te.Undefined):X.prev===Te.Undefined&&(this._first=this._first.next,this._first.prev=Te.Undefined);this._size-=1}*[Symbol.iterator](){let X=this._first;for(;X!==Te.Undefined;)yield X.element,X=X.next}}},"3/fG":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});function Te(X,le){let j;return le.length===0?j=X:j=X.replace(/\{(\d+)\}/g,function(G,oe){const V=oe[0];return typeof le[V]!="undefined"?le[V]:G}),j}function ae(X,le,...j){return Te(le,j)}},"55Ip":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return c});var Te=ie("Ty5D"),ae=ie("dI71"),X=ie("q1tI"),le=ie.n(X),j=ie("YS25"),G=ie("17x9"),oe=ie.n(G),V=ie("wx14"),l=ie("zLVn"),F=ie("9R94"),O=function(E){Object(ae.a)(v,E);function v(){for(var T,w=arguments.length,M=new Array(w),Z=0;Z<w;Z++)M[Z]=arguments[Z];return T=E.call.apply(E,[this].concat(M))||this,T.history=Object(j.a)(T.props),T}var _=v.prototype;return _.render=function(){return le.a.createElement(Te.c,{history:this.history,children:this.props.children})},v}(le.a.Component),C=function(E){Object(ae.a)(v,E);function v(){for(var T,w=arguments.length,M=new Array(w),Z=0;Z<w;Z++)M[Z]=arguments[Z];return T=E.call.apply(E,[this].concat(M))||this,T.history=Object(j.b)(T.props),T}var _=v.prototype;return _.render=function(){return le.a.createElement(Te.c,{history:this.history,children:this.props.children})},v}(le.a.Component),b=function(v,_){return typeof v=="function"?v(_):v},p=function(v,_){return typeof v=="string"?Object(j.c)(v,null,null,_):v},y=function(v){return v},x=le.a.forwardRef;typeof x=="undefined"&&(x=y);function g(E){return!!(E.metaKey||E.altKey||E.ctrlKey||E.shiftKey)}var h=x(function(E,v){var _=E.innerRef,T=E.navigate,w=E.onClick,M=Object(l.a)(E,["innerRef","navigate","onClick"]),Z=M.target,z=Object(V.a)({},M,{onClick:function(W){try{w&&w(W)}catch(Y){throw W.preventDefault(),Y}!W.defaultPrevented&&W.button===0&&(!Z||Z==="_self")&&!g(W)&&(W.preventDefault(),T())}});return y!==x?z.ref=v||_:z.ref=_,le.a.createElement("a",z)}),c=x(function(E,v){var _=E.component,T=_===void 0?h:_,w=E.replace,M=E.to,Z=E.innerRef,z=Object(l.a)(E,["component","replace","to","innerRef"]);return le.a.createElement(Te.e.Consumer,null,function(L){L||Object(F.a)(!1);var W=L.history,Y=p(b(M,L.location),L.location),H=Y?W.createHref(Y):"",ne=Object(V.a)({},z,{href:H,navigate:function(){var we=b(M,L.location),Ce=w?W.replace:W.push;Ce(we)}});return y!==x?ne.ref=v||Z:ne.innerRef=Z,le.a.createElement(T,ne)})});if(!1)var d,I;var A=function(v){return v},R=le.a.forwardRef;typeof R=="undefined"&&(R=A);function N(){for(var E=arguments.length,v=new Array(E),_=0;_<E;_++)v[_]=arguments[_];return v.filter(function(T){return T}).join(" ")}var P=R(function(E,v){var _=E["aria-current"],T=_===void 0?"page":_,w=E.activeClassName,M=w===void 0?"active":w,Z=E.activeStyle,z=E.className,L=E.exact,W=E.isActive,Y=E.location,H=E.sensitive,ne=E.strict,ce=E.style,we=E.to,Ce=E.innerRef,Ke=Object(l.a)(E,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return le.a.createElement(Te.e.Consumer,null,function(Ie){Ie||Object(F.a)(!1);var je=Y||Ie.location,Ve=p(b(we,je),je),$e=Ve.pathname,Pe=$e&&$e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),se=Pe?Object(Te.f)(je.pathname,{path:Pe,exact:L,sensitive:H,strict:ne}):null,S=!!(W?W(se,je):se),B=S?N(z,M):z,J=S?Object(V.a)({},ce,{},Z):ce,ue=Object(V.a)({"aria-current":S&&T||null,className:B,style:J,to:Ve},Ke);return A!==R?ue.ref=v||Ce:ue.innerRef=Ce,le.a.createElement(c,ue)})});if(!1)var D},"5VLF":function(Dt,Ne,ie){"use strict";var Te,ae;function X(le,j,G){var oe=function(V,l){return le.js_beautify(V,l)};return oe.js=le.js_beautify,oe.css=j.css_beautify,oe.html=G.html_beautify,oe.js_beautify=le.js_beautify,oe.css_beautify=j.css_beautify,oe.html_beautify=G.html_beautify,oe}!(Te=[ie("6UM0"),ie("TXwP"),ie("psGv")],ae=function(le,j,G){return X(le,j,G)}.apply(Ne,Te),ae!==void 0&&(Dt.exports=ae))},"5Y4S":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return X});var Te=ie("MNsG");const ae=Te.b.performance&&typeof Te.b.performance.now=="function";class X{constructor(le){this._highResolution=ae&&le,this._startTime=this._now(),this._stopTime=-1}static create(le=!0){return new X(le)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Te.b.performance.now():Date.now()}}},"6+eU":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return R});var Te=ie("wx14"),ae=ie("rePB"),X=ie("VTBJ"),le=ie("1OyB"),j=ie("vuIU"),G=ie("Ji7U"),oe=ie("LK+K"),V=ie("q1tI"),l=ie.n(V),F=ie("TSYQ"),O=ie.n(F),C=function(P){var D,E="".concat(P.rootPrefixCls,"-item"),v=O()(E,"".concat(E,"-").concat(P.page),(D={},Object(ae.a)(D,"".concat(E,"-active"),P.active),Object(ae.a)(D,P.className,!!P.className),Object(ae.a)(D,"".concat(E,"-disabled"),!P.page),D)),_=function(){P.onClick(P.page)},T=function(M){P.onKeyPress(M,P.onClick,P.page)};return l.a.createElement("li",{title:P.showTitle?P.page:null,className:v,onClick:_,onKeyPress:T,tabIndex:"0"},P.itemRender(P.page,"page",l.a.createElement("a",{rel:"nofollow"},P.page)))},b=C,p={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},y=function(N){Object(G.a)(D,N);var P=Object(oe.a)(D);function D(){var E;Object(le.a)(this,D);for(var v=arguments.length,_=new Array(v),T=0;T<v;T++)_[T]=arguments[T];return E=P.call.apply(P,[this].concat(_)),E.state={goInputText:""},E.buildOptionText=function(w){return"".concat(w," ").concat(E.props.locale.items_per_page)},E.changeSize=function(w){E.props.changeSize(Number(w))},E.handleChange=function(w){E.setState({goInputText:w.target.value})},E.handleBlur=function(w){var M=E.props,Z=M.goButton,z=M.quickGo,L=M.rootPrefixCls,W=E.state.goInputText;if(Z||W==="")return;if(w.relatedTarget&&(w.relatedTarget.className.indexOf("".concat(L,"-prev"))>=0||w.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;E.setState({goInputText:""}),z(E.getValidValue())},E.go=function(w){var M=E.state.goInputText;if(M==="")return;(w.keyCode===p.ENTER||w.type==="click")&&(E.setState({goInputText:""}),E.props.quickGo(E.getValidValue()))},E}return Object(j.a)(D,[{key:"getValidValue",value:function(){var v=this.state,_=v.goInputText,T=v.current;return!_||isNaN(_)?T:Number(_)}},{key:"getPageSizeOptions",value:function(){var v=this.props,_=v.pageSize,T=v.pageSizeOptions;return T.some(function(w){return w.toString()===_.toString()})?T:T.concat([_.toString()]).sort(function(w,M){var Z=isNaN(Number(w))?0:Number(w),z=isNaN(Number(M))?0:Number(M);return Z-z})}},{key:"render",value:function(){var v=this,_=this.props,T=_.pageSize,w=_.locale,M=_.rootPrefixCls,Z=_.changeSize,z=_.quickGo,L=_.goButton,W=_.selectComponentClass,Y=_.buildOptionText,H=_.selectPrefixCls,ne=_.disabled,ce=this.state.goInputText,we="".concat(M,"-options"),Ce=W,Ke=null,Ie=null,je=null;if(!Z&&!z)return null;var Ve=this.getPageSizeOptions();if(Z&&Ce){var $e=Ve.map(function(Pe,se){return l.a.createElement(Ce.Option,{key:se,value:Pe.toString()},(Y||v.buildOptionText)(Pe))});Ke=l.a.createElement(Ce,{disabled:ne,prefixCls:H,showSearch:!1,className:"".concat(we,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||Ve[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},$e)}return z&&(L&&(je=typeof L=="boolean"?l.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ne,className:"".concat(we,"-quick-jumper-button")},w.jump_to_confirm):l.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),Ie=l.a.createElement("div",{className:"".concat(we,"-quick-jumper")},w.jump_to,l.a.createElement("input",{disabled:ne,type:"text",value:ce,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),w.page,je)),l.a.createElement("li",{className:"".concat(we)},Ke,Ie)}}]),D}(l.a.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var x=y,g=ie("N2Kk");function h(){}function c(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}function d(N,P,D){return D}function I(N,P,D){var E=typeof N=="undefined"?P.pageSize:N;return Math.floor((D.total-1)/E)+1}var A=function(N){Object(G.a)(D,N);var P=Object(oe.a)(D);function D(E){var v;Object(le.a)(this,D),v=P.call(this,E),v.getJumpPrevPage=function(){return Math.max(1,v.state.current-(v.props.showLessItems?3:5))},v.getJumpNextPage=function(){return Math.min(I(void 0,v.state,v.props),v.state.current+(v.props.showLessItems?3:5))},v.getItemIcon=function(Z,z){var L=v.props.prefixCls,W=Z||l.a.createElement("button",{type:"button","aria-label":z,className:"".concat(L,"-item-link")});return typeof Z=="function"&&(W=l.a.createElement(Z,Object(X.a)({},v.props))),W},v.savePaginationNode=function(Z){v.paginationNode=Z},v.isValid=function(Z){return c(Z)&&Z!==v.state.current},v.shouldDisplayQuickJumper=function(){var Z=v.props,z=Z.showQuickJumper,L=Z.pageSize,W=Z.total;return W<=L?!1:z},v.handleKeyDown=function(Z){(Z.keyCode===p.ARROW_UP||Z.keyCode===p.ARROW_DOWN)&&Z.preventDefault()},v.handleKeyUp=function(Z){var z=v.getValidValue(Z),L=v.state.currentInputValue;z!==L&&v.setState({currentInputValue:z}),Z.keyCode===p.ENTER?v.handleChange(z):Z.keyCode===p.ARROW_UP?v.handleChange(z-1):Z.keyCode===p.ARROW_DOWN&&v.handleChange(z+1)},v.changePageSize=function(Z){var z=v.state.current,L=I(Z,v.state,v.props);z=z>L?L:z,L===0&&(z=v.state.current),typeof Z=="number"&&("pageSize"in v.props||v.setState({pageSize:Z}),"current"in v.props||v.setState({current:z,currentInputValue:z})),v.props.onShowSizeChange(z,Z),"onChange"in v.props&&v.props.onChange&&v.props.onChange(z,Z)},v.handleChange=function(Z){var z=v.props.disabled,L=Z;if(v.isValid(L)&&!z){var W=I(void 0,v.state,v.props);L>W?L=W:L<1&&(L=1),"current"in v.props||v.setState({current:L,currentInputValue:L});var Y=v.state.pageSize;return v.props.onChange(L,Y),L}return v.state.current},v.prev=function(){v.hasPrev()&&v.handleChange(v.state.current-1)},v.next=function(){v.hasNext()&&v.handleChange(v.state.current+1)},v.jumpPrev=function(){v.handleChange(v.getJumpPrevPage())},v.jumpNext=function(){v.handleChange(v.getJumpNextPage())},v.hasPrev=function(){return v.state.current>1},v.hasNext=function(){return v.state.current<I(void 0,v.state,v.props)},v.runIfEnter=function(Z,z){if(Z.key==="Enter"||Z.charCode===13){for(var L=arguments.length,W=new Array(L>2?L-2:0),Y=2;Y<L;Y++)W[Y-2]=arguments[Y];z.apply(void 0,W)}},v.runIfEnterPrev=function(Z){v.runIfEnter(Z,v.prev)},v.runIfEnterNext=function(Z){v.runIfEnter(Z,v.next)},v.runIfEnterJumpPrev=function(Z){v.runIfEnter(Z,v.jumpPrev)},v.runIfEnterJumpNext=function(Z){v.runIfEnter(Z,v.jumpNext)},v.handleGoTO=function(Z){(Z.keyCode===p.ENTER||Z.type==="click")&&v.handleChange(v.state.currentInputValue)};var _=E.onChange!==h,T="current"in E;T&&!_&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var w=E.defaultCurrent;"current"in E&&(w=E.current);var M=E.defaultPageSize;return"pageSize"in E&&(M=E.pageSize),w=Math.min(w,I(M,void 0,E)),v.state={current:w,currentInputValue:w,pageSize:M},v}return Object(j.a)(D,[{key:"componentDidUpdate",value:function(v,_){var T=this.props.prefixCls;if(_.current!==this.state.current&&this.paginationNode){var w=this.paginationNode.querySelector(".".concat(T,"-item-").concat(_.current));w&&document.activeElement===w&&w.blur()}}},{key:"getValidValue",value:function(v){var _=v.target.value,T=I(void 0,this.state,this.props),w=this.state.currentInputValue,M;return _===""?M=_:isNaN(Number(_))?M=w:_>=T?M=T:M=Number(_),M}},{key:"getShowSizeChanger",value:function(){var v=this.props,_=v.showSizeChanger,T=v.total,w=v.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:T>w}},{key:"renderPrev",value:function(v){var _=this.props,T=_.prevIcon,w=_.itemRender,M=w(v,"prev",this.getItemIcon(T,"prev page")),Z=!this.hasPrev();return Object(V.isValidElement)(M)?Object(V.cloneElement)(M,{disabled:Z}):M}},{key:"renderNext",value:function(v){var _=this.props,T=_.nextIcon,w=_.itemRender,M=w(v,"next",this.getItemIcon(T,"next page")),Z=!this.hasNext();return Object(V.isValidElement)(M)?Object(V.cloneElement)(M,{disabled:Z}):M}},{key:"render",value:function(){var v=this,_=this.props,T=_.prefixCls,w=_.className,M=_.style,Z=_.disabled,z=_.hideOnSinglePage,L=_.total,W=_.locale,Y=_.showQuickJumper,H=_.showLessItems,ne=_.showTitle,ce=_.showTotal,we=_.simple,Ce=_.itemRender,Ke=_.showPrevNextJumpers,Ie=_.jumpPrevIcon,je=_.jumpNextIcon,Ve=_.selectComponentClass,$e=_.selectPrefixCls,Pe=_.pageSizeOptions,se=this.state,S=se.current,B=se.pageSize,J=se.currentInputValue;if(z===!0&&L<=B)return null;var ue=I(void 0,this.state,this.props),q=[],xe=null,We=null,it=null,be=null,Le=null,Fe=Y&&Y.goButton,ze=H?1:2,dt=S-1>0?S-1:0,It=S+1<ue?S+1:ue,Jt=Object.keys(this.props).reduce(function(ge,ye){return(ye.substr(0,5)==="data-"||ye.substr(0,5)==="aria-"||ye==="role")&&(ge[ye]=v.props[ye]),ge},{});if(we)return Fe&&(typeof Fe=="boolean"?Le=l.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},W.jump_to_confirm):Le=l.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Fe),Le=l.a.createElement("li",{title:ne?"".concat(W.jump_to).concat(S,"/").concat(ue):null,className:"".concat(T,"-simple-pager")},Le)),l.a.createElement("ul",Object(Te.a)({className:O()(T,"".concat(T,"-simple"),Object(ae.a)({},"".concat(T,"-disabled"),Z),w),style:M,ref:this.savePaginationNode},Jt),l.a.createElement("li",{title:ne?W.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:O()("".concat(T,"-prev"),Object(ae.a)({},"".concat(T,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(dt)),l.a.createElement("li",{title:ne?"".concat(S,"/").concat(ue):null,className:"".concat(T,"-simple-pager")},l.a.createElement("input",{type:"text",value:J,disabled:Z,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),l.a.createElement("span",{className:"".concat(T,"-slash")},"/"),ue),l.a.createElement("li",{title:ne?W.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:O()("".concat(T,"-next"),Object(ae.a)({},"".concat(T,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(It)),Le);if(ue<=3+ze*2){var Bt={locale:W,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:ne,itemRender:Ce};ue||q.push(l.a.createElement(b,Object(Te.a)({},Bt,{key:"noPager",page:ue,className:"".concat(T,"-disabled")})));for(var Nt=1;Nt<=ue;Nt+=1){var cn=S===Nt;q.push(l.a.createElement(b,Object(Te.a)({},Bt,{key:Nt,page:Nt,active:cn})))}}else{var sn=H?W.prev_3:W.prev_5,zt=H?W.next_3:W.next_5;Ke&&(xe=l.a.createElement("li",{title:ne?sn:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:O()("".concat(T,"-jump-prev"),Object(ae.a)({},"".concat(T,"-jump-prev-custom-icon"),!!Ie))},Ce(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ie,"prev page"))),We=l.a.createElement("li",{title:ne?zt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:O()("".concat(T,"-jump-next"),Object(ae.a)({},"".concat(T,"-jump-next-custom-icon"),!!je))},Ce(this.getJumpNextPage(),"jump-next",this.getItemIcon(je,"next page")))),be=l.a.createElement(b,{locale:W,last:!0,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ue,page:ue,active:!1,showTitle:ne,itemRender:Ce}),it=l.a.createElement(b,{locale:W,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:ne,itemRender:Ce});var dn=Math.max(1,S-ze),Tn=Math.min(S+ze,ue);S-1<=ze&&(Tn=1+ze*2),ue-S<=ze&&(dn=ue-ze*2);for(var Se=dn;Se<=Tn;Se+=1){var fe=S===Se;q.push(l.a.createElement(b,{locale:W,rootPrefixCls:T,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Se,page:Se,active:fe,showTitle:ne,itemRender:Ce}))}S-1>=ze*2&&S!==1+2&&(q[0]=Object(V.cloneElement)(q[0],{className:"".concat(T,"-item-after-jump-prev")}),q.unshift(xe)),ue-S>=ze*2&&S!==ue-2&&(q[q.length-1]=Object(V.cloneElement)(q[q.length-1],{className:"".concat(T,"-item-before-jump-next")}),q.push(We)),dn!==1&&q.unshift(it),Tn!==ue&&q.push(be)}var pe=null;ce&&(pe=l.a.createElement("li",{className:"".concat(T,"-total-text")},ce(L,[L===0?0:(S-1)*B+1,S*B>L?L:S*B])));var ve=!this.hasPrev()||!ue,Oe=!this.hasNext()||!ue;return l.a.createElement("ul",Object(Te.a)({className:O()(T,w,Object(ae.a)({},"".concat(T,"-disabled"),Z)),style:M,unselectable:"unselectable",ref:this.savePaginationNode},Jt),pe,l.a.createElement("li",{title:ne?W.prev_page:null,onClick:this.prev,tabIndex:ve?null:0,onKeyPress:this.runIfEnterPrev,className:O()("".concat(T,"-prev"),Object(ae.a)({},"".concat(T,"-disabled"),ve)),"aria-disabled":ve},this.renderPrev(dt)),q,l.a.createElement("li",{title:ne?W.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:O()("".concat(T,"-next"),Object(ae.a)({},"".concat(T,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(It)),l.a.createElement(x,{disabled:Z,locale:W,rootPrefixCls:T,selectComponentClass:Ve,selectPrefixCls:$e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:S,pageSize:B,pageSizeOptions:Pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Fe}))}}],[{key:"getDerivedStateFromProps",value:function(v,_){var T={};if("current"in v&&(T.current=v.current,v.current!==_.current&&(T.currentInputValue=T.current)),"pageSize"in v&&v.pageSize!==_.pageSize){var w=_.current,M=I(v.pageSize,_,v);w=w>M?M:w,"current"in v||(T.current=w,T.currentInputValue=w),T.pageSize=v.pageSize}return T}}]),D}(l.a.Component);A.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:h,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:h,locale:g.a,style:{},itemRender:d,totalBoundaryShowSizeChanger:50};var R=A},"6UM0":function(Dt,Ne,ie){var Te,ae;(function(){var X;(function(){"use strict";var j=[function(l,F,O){var C=O(1).Beautifier,b=O(5).Options;function p(y,x){var g=new C(y,x);return g.beautify()}l.exports=p,l.exports.defaultOptions=function(){return new b}},function(l,F,O){var C=O(2).Output,b=O(3).Token,p=O(4),y=O(5).Options,x=O(7).Tokenizer,g=O(7).line_starters,h=O(7).positionable_operators,c=O(7).TOKEN;function d(H,ne){return ne.indexOf(H)!==-1}function I(H){return H.replace(/^\s+/g,"")}function A(H){for(var ne={},ce=0;ce<H.length;ce++)ne[H[ce].replace(/-/g,"_")]=H[ce];return ne}function R(H,ne){return H&&H.type===c.RESERVED&&H.text===ne}function N(H,ne){return H&&H.type===c.RESERVED&&d(H.text,ne)}var P=["case","return","do","if","throw","else","await","break","continue","async"],D=["before-newline","after-newline","preserve-newline"],E=A(D),v=[E.before_newline,E.preserve_newline],_={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function T(H,ne){if(ne.multiline_frame||ne.mode===_.ForInitializer||ne.mode===_.Conditional)return;H.remove_indent(ne.start_line_index)}function w(H){H=H.replace(p.allLineBreaks,`
`);for(var ne=[],ce=H.indexOf(`
`);ce!==-1;)ne.push(H.substring(0,ce)),H=H.substring(ce+1),ce=H.indexOf(`
`);return H.length&&ne.push(H),ne}function M(H){return H===_.ArrayLiteral}function Z(H){return d(H,[_.Expression,_.ForInitializer,_.Conditional])}function z(H,ne){for(var ce=0;ce<H.length;ce++){var we=H[ce].trim();if(we.charAt(0)!==ne)return!1}return!0}function L(H,ne){for(var ce=0,we=H.length,Ce;ce<we;ce++)if(Ce=H[ce],Ce&&Ce.indexOf(ne)!==0)return!1;return!0}function W(H,ne){ne=ne||{},this._source_text=H||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new y(ne)}W.prototype.create_flags=function(H,ne){var ce=0;H&&(ce=H.indentation_level,!this._output.just_added_newline()&&H.line_indent_level>ce&&(ce=H.line_indent_level));var we={mode:ne,parent:H,last_token:H?H.last_token:new b(c.START_BLOCK,""),last_word:H?H.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ce,alignment:0,line_indent_level:H?H.line_indent_level:ce,start_line_index:this._output.get_line_number(),ternary_depth:0};return we},W.prototype._reset=function(H){var ne=H.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new C(this._options,ne),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(_.BlockStatement);var ce=new x(H,this._options);return this._tokens=ce.tokenize(),H},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var H,ne=this._reset(this._source_text),ce=this._options.eol;this._options.eol==="auto"&&(ce=`
`,ne&&p.lineBreak.test(ne||"")&&(ce=ne.match(p.lineBreak)[0]));for(var we=this._tokens.next();we;)this.handle_token(we),this._last_last_text=this._flags.last_token.text,this._flags.last_token=we,we=this._tokens.next();return H=this._output.get_code(ce),H},W.prototype.handle_token=function(H,ne){H.type===c.START_EXPR?this.handle_start_expr(H):H.type===c.END_EXPR?this.handle_end_expr(H):H.type===c.START_BLOCK?this.handle_start_block(H):H.type===c.END_BLOCK?this.handle_end_block(H):H.type===c.WORD?this.handle_word(H):H.type===c.RESERVED?this.handle_word(H):H.type===c.SEMICOLON?this.handle_semicolon(H):H.type===c.STRING?this.handle_string(H):H.type===c.EQUALS?this.handle_equals(H):H.type===c.OPERATOR?this.handle_operator(H):H.type===c.COMMA?this.handle_comma(H):H.type===c.BLOCK_COMMENT?this.handle_block_comment(H,ne):H.type===c.COMMENT?this.handle_comment(H,ne):H.type===c.DOT?this.handle_dot(H):H.type===c.EOF?this.handle_eof(H):H.type===c.UNKNOWN?this.handle_unknown(H,ne):this.handle_unknown(H,ne)},W.prototype.handle_whitespace_and_comments=function(H,ne){var ce=H.newlines,we=this._options.keep_array_indentation&&M(this._flags.mode);if(H.comments_before)for(var Ce=H.comments_before.next();Ce;)this.handle_whitespace_and_comments(Ce,ne),this.handle_token(Ce,ne),Ce=H.comments_before.next();if(we)for(var Ke=0;Ke<ce;Ke+=1)this.print_newline(Ke>0,ne);else if(this._options.max_preserve_newlines&&ce>this._options.max_preserve_newlines&&(ce=this._options.max_preserve_newlines),this._options.preserve_newlines&&ce>1){this.print_newline(!1,ne);for(var Ie=1;Ie<ce;Ie+=1)this.print_newline(!0,ne)}};var Y=["async","break","continue","return","throw","yield"];W.prototype.allow_wrap_or_preserved_newline=function(H,ne){if(ne=ne===void 0?!1:ne,this._output.just_added_newline())return;var ce=this._options.preserve_newlines&&H.newlines||ne,we=d(this._flags.last_token.text,h)||d(H.text,h);if(we){var Ce=d(this._flags.last_token.text,h)&&d(this._options.operator_position,v)||d(H.text,h);ce=ce&&Ce}if(ce)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(N(this._flags.last_token,Y))return;this._output.set_wrap_point()}},W.prototype.print_newline=function(H,ne){if(!ne&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var ce=this._tokens.peek();this._flags.mode===_.Statement&&!(this._flags.if_block&&R(ce,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(H)&&(this._flags.multiline_frame=!0)},W.prototype.print_token_line_indentation=function(H){this._output.just_added_newline()&&(this._options.keep_array_indentation&&H.newlines&&(H.text==="["||M(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(H.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},W.prototype.print_token=function(H){if(this._output.raw){this._output.add_raw_token(H);return}if(this._options.comma_first&&H.previous&&H.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var ne=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(ne),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(H),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(H),this._output.non_breaking_space=!0,this._output.add_token(H.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},W.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},W.prototype.set_mode=function(H){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,H),this._flags=this.create_flags(this._previous_flags,H),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},W.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===_.Statement&&T(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},W.prototype.start_of_object_property=function(){return this._flags.parent.mode===_.ObjectLiteral&&this._flags.mode===_.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"]))},W.prototype.start_of_statement=function(H){var ne=!1;return ne=ne||N(this._flags.last_token,["var","let","const"])&&H.type===c.WORD,ne=ne||R(this._flags.last_token,"do"),ne=ne||!(this._flags.parent.mode===_.ObjectLiteral&&this._flags.mode===_.Statement)&&N(this._flags.last_token,Y)&&!H.newlines,ne=ne||R(this._flags.last_token,"else")&&!(R(H,"if")&&!H.comments_before),ne=ne||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===_.ForInitializer||this._previous_flags.mode===_.Conditional),ne=ne||this._flags.last_token.type===c.WORD&&this._flags.mode===_.BlockStatement&&!this._flags.in_case&&!(H.text==="--"||H.text==="++")&&this._last_last_text!=="function"&&H.type!==c.WORD&&H.type!==c.RESERVED,ne=ne||this._flags.mode===_.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"])),ne?(this.set_mode(_.Statement),this.indent(),this.handle_whitespace_and_comments(H,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(H,N(H,["do","for","if","while"])),!0):!1},W.prototype.handle_start_expr=function(H){this.start_of_statement(H)||this.handle_whitespace_and_comments(H);var ne=_.Expression;if(H.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){N(this._flags.last_token,g)&&(this._output.space_before_token=!0),this.print_token(H),this.set_mode(ne),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}ne=_.ArrayLiteral,M(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),d(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,ne=_.ForInitializer):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,ne=_.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&H.whitespace_before===""?this._output.space_before_token=!1:(d(this._flags.last_token.text,g)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(H);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var ce=this._tokens.peek(-3);if(this._options.space_after_named_function&&ce){var we=this._tokens.peek(-4);N(ce,["async","function"])||ce.text==="*"&&N(we,["async","function"])?this._output.space_before_token=!0:this._flags.mode===_.ObjectLiteral?(ce.text==="{"||ce.text===","||ce.text==="*"&&(we.text==="{"||we.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(H);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===_.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(H,H.newlines),this.print_token(H),this.set_mode(ne),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},W.prototype.handle_end_expr=function(H){for(;this._flags.mode===_.Statement;)this.restore_mode();this.handle_whitespace_and_comments(H),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(H,H.text==="]"&&M(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===c.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(H),this.restore_mode(),T(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===_.Conditional&&(this._previous_flags.mode=_.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},W.prototype.handle_start_block=function(H){this.handle_whitespace_and_comments(H);var ne=this._tokens.peek(),ce=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(_.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(_.BlockStatement):ce&&(d(ce.text,[":",","])&&d(ne.type,[c.STRING,c.WORD,c.RESERVED])||d(ne.text,["get","set","..."])&&d(ce.type,[c.WORD,c.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(ce.text,[":",","])?this.set_mode(_.BlockStatement):this.set_mode(_.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(_.BlockStatement):d(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||N(this._flags.last_token,["return","throw","import","default"])?this.set_mode(_.ObjectLiteral):this.set_mode(_.BlockStatement),this._flags.last_token&&(N(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var we=!ne.comments_before&&ne.text==="}",Ce=we&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var Ke=0,Ie=null;this._flags.inline_frame=!0;do if(Ke+=1,Ie=this._tokens.peek(Ke-1),Ie.newlines){this._flags.inline_frame=!1;break}while(Ie.type!==c.EOF&&!(Ie.type===c.END_BLOCK&&Ie.opened===H))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&H.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(Ce||this._flags.last_token.type===c.EQUALS||N(this._flags.last_token,P)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(M(this._previous_flags.mode)&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(H),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(this._flags.last_token.type===c.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(H),this.indent(),!we&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},W.prototype.handle_end_block=function(H){for(this.handle_whitespace_and_comments(H);this._flags.mode===_.Statement;)this.restore_mode();var ne=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!ne?this._output.space_before_token=!0:this._options.brace_style==="expand"?ne||this.print_newline():ne||(M(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(H)},W.prototype.handle_word=function(H){if(H.type===c.RESERVED){if(d(H.text,["set","get"])&&this._flags.mode!==_.ObjectLiteral)H.type=c.WORD;else if(H.text==="import"&&d(this._tokens.peek().text,["(","."]))H.type=c.WORD;else if(d(H.text,["as","from"])&&!this._flags.import_block)H.type=c.WORD;else if(this._flags.mode===_.ObjectLiteral){var ne=this._tokens.peek();ne.text===":"&&(H.type=c.WORD)}}if(this.start_of_statement(H)?N(this._flags.last_token,["var","let","const"])&&H.type===c.WORD&&(this._flags.declaration_statement=!0):H.newlines&&!Z(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!N(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(H),this.print_newline()):this.handle_whitespace_and_comments(H),this._flags.do_block&&!this._flags.do_while)if(R(H,"while")){this._output.space_before_token=!0,this.print_token(H),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&R(H,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===_.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&N(H,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(H),this._flags.in_case=!0;return}if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(H)),R(H,"function")){(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&(!this._output.just_added_blankline()&&!H.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?N(this._flags.last_token,["get","set","new","export"])||N(this._flags.last_token,Y)?this._output.space_before_token=!0:R(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Z(this._flags.mode)||M(this._flags.mode))||this.print_newline(),this.print_token(H),this._flags.last_word=H.text;return}var ce="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?ce="SPACE":N(H,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&H.newlines?ce="NEWLINE":(ce="SPACE",this._output.space_before_token=!0):ce="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===_.BlockStatement?ce="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&Z(this._flags.mode)?ce="SPACE":this._flags.last_token.type===c.STRING?ce="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(d(this._last_last_text,["function","yield"])||this._flags.mode===_.ObjectLiteral&&d(this._last_last_text,["{",","]))?ce="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?ce="SPACE":ce="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,ce="NEWLINE"),N(H,g)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ce="SPACE":ce="NEWLINE"),N(H,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===_.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&H.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var we=this._output.current_line;we.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ce==="NEWLINE"?N(this._flags.last_token,P)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&N(H,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?(this._flags.last_token.type!==c.START_EXPR||!N(H,["var","let","const"]))&&this._flags.last_token.text!==":"&&(R(H,"if")&&R(H.previous,"else")?this._output.space_before_token=!0:this.print_newline()):N(H,g)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&M(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ce==="SPACE"&&(this._output.space_before_token=!0);H.previous&&(H.previous.type===c.WORD||H.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(H),this._flags.last_word=H.text,H.type===c.RESERVED&&(H.text==="do"?this._flags.do_block=!0:H.text==="if"?this._flags.if_block=!0:H.text==="import"?this._flags.import_block=!0:this._flags.import_block&&R(H,"from")&&(this._flags.import_block=!1))},W.prototype.handle_semicolon=function(H){this.start_of_statement(H)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(H);for(var ne=this._tokens.peek();this._flags.mode===_.Statement&&!(this._flags.if_block&&R(ne,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(H)},W.prototype.handle_string=function(H){H.text.startsWith("`")&&H.newlines===0&&H.whitespace_before===""&&(H.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(H)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(H),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(H):H.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(H.previous.text==="]"||H.previous.text===")")&&H.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(H)},W.prototype.handle_equals=function(H){this.start_of_statement(H)||this.handle_whitespace_and_comments(H),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(H),this._output.space_before_token=!0},W.prototype.handle_comma=function(H){this.handle_whitespace_and_comments(H,!0),this.print_token(H),this._output.space_before_token=!0,this._flags.declaration_statement?(Z(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(H)):this._flags.mode===_.ObjectLiteral||this._flags.mode===_.Statement&&this._flags.parent.mode===_.ObjectLiteral?(this._flags.mode===_.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(H)},W.prototype.handle_operator=function(H){var ne=H.text==="*"&&(N(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),ce=d(H.text,["-","+"])&&(d(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||d(this._flags.last_token.text,g)||this._flags.last_token.text===",");if(!this.start_of_statement(H)){var we=!ne;this.handle_whitespace_and_comments(H,we)}if(H.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(H);return}if(H.text==="::"){this.print_token(H);return}if(this._flags.last_token.type===c.OPERATOR&&d(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(H),H.text===":"&&this._flags.in_case){this.print_token(H),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var Ce=!0,Ke=!0,Ie=!1;if(H.text===":"?this._flags.ternary_depth===0?Ce=!1:(this._flags.ternary_depth-=1,Ie=!0):H.text==="?"&&(this._flags.ternary_depth+=1),!ce&&!ne&&this._options.preserve_newlines&&d(H.text,h)){var je=H.text===":",Ve=je&&Ie,$e=je&&!Ie;switch(this._options.operator_position){case E.before_newline:this._output.space_before_token=!$e,this.print_token(H),(!je||Ve)&&this.allow_wrap_or_preserved_newline(H),this._output.space_before_token=!0;return;case E.after_newline:this._output.space_before_token=!0,!je||Ve?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(H):this._output.space_before_token=!1,this.print_token(H),this._output.space_before_token=!0;return;case E.preserve_newline:$e||this.allow_wrap_or_preserved_newline(H),Ce=!(this._output.just_added_newline()||$e),this._output.space_before_token=Ce,this.print_token(H),this._output.space_before_token=!0;return}}if(ne){this.allow_wrap_or_preserved_newline(H),Ce=!1;var Pe=this._tokens.peek();Ke=Pe&&d(Pe.type,[c.WORD,c.RESERVED])}else if(H.text==="...")this.allow_wrap_or_preserved_newline(H),Ce=this._flags.last_token.type===c.START_BLOCK,Ke=!1;else if(d(H.text,["--","++","!","~"])||ce){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(H),Ce=!1,Ke=!1,H.newlines&&(H.text==="--"||H.text==="++"||H.text==="~")){var se=N(this._flags.last_token,P)&&H.newlines;se&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(se,!0)}this._flags.last_token.text===";"&&Z(this._flags.mode)&&(Ce=!0),this._flags.last_token.type===c.RESERVED?Ce=!0:this._flags.last_token.type===c.END_EXPR?Ce=!(this._flags.last_token.text==="]"&&(H.text==="--"||H.text==="++")):this._flags.last_token.type===c.OPERATOR&&(Ce=d(H.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(H.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(Ke=!0)),(this._flags.mode===_.BlockStatement&&!this._flags.inline_frame||this._flags.mode===_.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ce,this.print_token(H),this._output.space_before_token=Ke},W.prototype.handle_block_comment=function(H,ne){if(this._output.raw){this._output.add_raw_token(H),H.directives&&H.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(H.directives){this.print_newline(!1,ne),this.print_token(H),H.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!p.newline.test(H.text)&&!H.newlines){this._output.space_before_token=!0,this.print_token(H),this._output.space_before_token=!0;return}else this.print_block_commment(H,ne)},W.prototype.print_block_commment=function(H,ne){var ce=w(H.text),we,Ce=!1,Ke=!1,Ie=H.whitespace_before,je=Ie.length;if(this.print_newline(!1,ne),this.print_token_line_indentation(H),this._output.add_token(ce[0]),this.print_newline(!1,ne),ce.length>1){for(ce=ce.slice(1),Ce=z(ce,"*"),Ke=L(ce,Ie),Ce&&(this._flags.alignment=1),we=0;we<ce.length;we++)Ce?(this.print_token_line_indentation(H),this._output.add_token(I(ce[we]))):Ke&&ce[we]?(this.print_token_line_indentation(H),this._output.add_token(ce[we].substring(je))):(this._output.current_line.set_indent(-1),this._output.add_token(ce[we])),this.print_newline(!1,ne);this._flags.alignment=0}},W.prototype.handle_comment=function(H,ne){H.newlines?this.print_newline(!1,ne):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(H),this.print_newline(!1,ne)},W.prototype.handle_dot=function(H){this.start_of_statement(H)||this.handle_whitespace_and_comments(H,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),N(this._flags.last_token,P)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(H,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(H)},W.prototype.handle_unknown=function(H,ne){this.print_token(H),H.text[H.text.length-1]===`
`&&this.print_newline(!1,ne)},W.prototype.handle_eof=function(H){for(;this._flags.mode===_.Statement;)this.restore_mode();this.handle_whitespace_and_comments(H)},l.exports.Beautifier=W},function(l){function F(b){this.__parent=b,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}F.prototype.clone_empty=function(){var b=new F(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},F.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},F.prototype.has_match=function(b){for(var p=this.__items.length-1;p>=0;p--)if(this.__items[p].match(b))return!0;return!1},F.prototype.set_indent=function(b,p){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=p||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},F.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},F.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},F.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var b=this.__parent.current_line;return b.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),b.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),b.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,b.__items[0]===" "&&(b.__items.splice(0,1),b.__character_count-=1),!0}return!1},F.prototype.is_empty=function(){return this.__items.length===0},F.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},F.prototype.push=function(b){this.__items.push(b);var p=b.lastIndexOf(`
`);p!==-1?this.__character_count=b.length-p:this.__character_count+=b.length},F.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},F.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},F.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},F.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},F.prototype.toString=function(){var b="";return this.is_empty()?this.__parent.indent_empty_lines&&(b=this.__parent.get_indent_string(this.__indent_count)):(b=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),b+=this.__items.join("")),b};function O(b,p){this.__cache=[""],this.__indent_size=b.indent_size,this.__indent_string=b.indent_char,b.indent_with_tabs||(this.__indent_string=new Array(b.indent_size+1).join(b.indent_char)),p=p||"",b.indent_level>0&&(p=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=p,this.__base_string_length=p.length}O.prototype.get_indent_size=function(b,p){var y=this.__base_string_length;return p=p||0,b<0&&(y=0),y+=b*this.__indent_size,y+=p,y},O.prototype.get_indent_string=function(b,p){var y=this.__base_string;return p=p||0,b<0&&(b=0,y=""),p+=b*this.__indent_size,this.__ensure_cache(p),y+=this.__cache[p],y},O.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},O.prototype.__add_column=function(){var b=this.__cache.length,p=0,y="";this.__indent_size&&b>=this.__indent_size&&(p=Math.floor(b/this.__indent_size),b-=p*this.__indent_size,y=new Array(p+1).join(this.__indent_string)),b&&(y+=new Array(b+1).join(" ")),this.__cache.push(y)};function C(b,p){this.__indent_cache=new O(b,p),this.raw=!1,this._end_with_newline=b.end_with_newline,this.indent_size=b.indent_size,this.wrap_line_length=b.wrap_line_length,this.indent_empty_lines=b.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new F(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}C.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},C.prototype.get_line_number=function(){return this.__lines.length},C.prototype.get_indent_string=function(b,p){return this.__indent_cache.get_indent_string(b,p)},C.prototype.get_indent_size=function(b,p){return this.__indent_cache.get_indent_size(b,p)},C.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},C.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},C.prototype.get_code=function(b){this.trim(!0);var p=this.current_line.pop();p&&(p[p.length-1]===`
`&&(p=p.replace(/\n+$/g,"")),this.current_line.push(p)),this._end_with_newline&&this.__add_outputline();var y=this.__lines.join(`
`);return b!==`
`&&(y=y.replace(/[\n]/g,b)),y},C.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},C.prototype.set_indent=function(b,p){return b=b||0,p=p||0,this.next_line.set_indent(b,p),this.__lines.length>1?(this.current_line.set_indent(b,p),!0):(this.current_line.set_indent(),!1)},C.prototype.add_raw_token=function(b){for(var p=0;p<b.newlines;p++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(b.whitespace_before),this.current_line.push(b.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},C.prototype.add_token=function(b){this.__add_space_before_token(),this.current_line.push(b),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},C.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},C.prototype.remove_indent=function(b){for(var p=this.__lines.length;b<p;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},C.prototype.trim=function(b){for(b=b===void 0?!1:b,this.current_line.trim();b&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},C.prototype.just_added_newline=function(){return this.current_line.is_empty()},C.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},C.prototype.ensure_empty_line_above=function(b,p){for(var y=this.__lines.length-2;y>=0;){var x=this.__lines[y];if(x.is_empty())break;if(x.item(0).indexOf(b)!==0&&x.item(-1)!==p){this.__lines.splice(y+1,0,new F(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},l.exports.Output=C},function(l){function F(O,C,b,p){this.type=O,this.text=C,this.comments_before=null,this.newlines=b||0,this.whitespace_before=p||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}l.exports.Token=F},function(l,F){var O="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",C="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",b="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",p="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",y="(?:\\\\u[0-9a-fA-F]{4}|["+O+b+"])",x="(?:\\\\u[0-9a-fA-F]{4}|["+C+b+p+"])*";F.identifier=new RegExp(y+x,"g"),F.identifierStart=new RegExp(y),F.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+C+b+p+"])+");var g=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;F.newline=/[\n\r\u2028\u2029]/,F.lineBreak=new RegExp(`\r
|`+F.newline.source),F.allLineBreaks=new RegExp(F.lineBreak.source,"g")},function(l,F,O){var C=O(6).Options,b=["before-newline","after-newline","preserve-newline"];function p(y){C.call(this,y,"js");var x=this.raw_options.brace_style||null;x==="expand-strict"?this.raw_options.brace_style="expand":x==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var g=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var h=0;h<g.length;h++)g[h]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=g[h];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",b),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}p.prototype=new C,l.exports.Options=p},function(l){function F(b,p){this.raw_options=O(b,p),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}F.prototype._get_array=function(b,p){var y=this.raw_options[b],x=p||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(x=y.concat()):typeof y=="string"&&(x=y.split(/[^a-zA-Z0-9_\/\-]+/)),x},F.prototype._get_boolean=function(b,p){var y=this.raw_options[b],x=y===void 0?!!p:!!y;return x},F.prototype._get_characters=function(b,p){var y=this.raw_options[b],x=p||"";return typeof y=="string"&&(x=y.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),x},F.prototype._get_number=function(b,p){var y=this.raw_options[b];p=parseInt(p,10),isNaN(p)&&(p=0);var x=parseInt(y,10);return isNaN(x)&&(x=p),x},F.prototype._get_selection=function(b,p,y){var x=this._get_selection_list(b,p,y);if(x.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+p+`
You passed in: '`+this.raw_options[b]+"'");return x[0]},F.prototype._get_selection_list=function(b,p,y){if(!p||p.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[p[0]],!this._is_valid_selection(y,p))throw new Error("Invalid Default Value!");var x=this._get_array(b,y);if(!this._is_valid_selection(x,p))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+p+`
You passed in: '`+this.raw_options[b]+"'");return x},F.prototype._is_valid_selection=function(b,p){return b.length&&p.length&&!b.some(function(y){return p.indexOf(y)===-1})};function O(b,p){var y={};b=C(b);var x;for(x in b)x!==p&&(y[x]=b[x]);if(p&&b[p])for(x in b[p])y[x]=b[p][x];return y}function C(b){var p={},y;for(y in b){var x=y.replace(/-/g,"_");p[x]=b[y]}return p}l.exports.Options=F,l.exports.normalizeOpts=C,l.exports.mergeOpts=O},function(l,F,O){var C=O(8).InputScanner,b=O(9).Tokenizer,p=O(9).TOKEN,y=O(13).Directives,x=O(4),g=O(12).Pattern,h=O(14).TemplatablePattern;function c(z,L){return L.indexOf(z)!==-1}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:p.START,RAW:p.RAW,EOF:p.EOF},I=new y(/\/\*/,/\*\//),A=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,R=/[0-9]/,N=/[^\d\.]/,P=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),D=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";D=D.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),D="\\?\\.(?!\\d) "+D,D=D.replace(/ /g,"|");var E=new RegExp(D),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),_=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),T=new RegExp("^(?:"+_.join("|")+")$"),w,M=function(z,L){b.call(this,z,L),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var W=new g(this._input),Y=new h(this._input).read_options(this._options);this.__patterns={template:Y,identifier:Y.starting_with(x.identifier).matching(x.identifierMatch),number:W.matching(A),punct:W.matching(E),comment:W.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:W.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:W.matching(/<!--/),html_comment_end:W.matching(/-->/),include:W.starting_with(/#include/).until_after(x.lineBreak),shebang:W.starting_with(/#!/).until_after(x.lineBreak),xml:W.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:Y.until(/['\\\n\r\u2028\u2029]/),double_quote:Y.until(/["\\\n\r\u2028\u2029]/),template_text:Y.until(/[`\\$]/),template_expression:Y.until(/[`}\\]/)}};M.prototype=new b,M.prototype._is_comment=function(z){return z.type===d.COMMENT||z.type===d.BLOCK_COMMENT||z.type===d.UNKNOWN},M.prototype._is_opening=function(z){return z.type===d.START_BLOCK||z.type===d.START_EXPR},M.prototype._is_closing=function(z,L){return(z.type===d.END_BLOCK||z.type===d.END_EXPR)&&L&&(z.text==="]"&&L.text==="["||z.text===")"&&L.text==="("||z.text==="}"&&L.text==="{")},M.prototype._reset=function(){w=!1},M.prototype._get_next_token=function(z,L){var W=null;this._readWhitespace();var Y=this._input.peek();return Y===null?this._create_token(d.EOF,""):(W=W||this._read_non_javascript(Y),W=W||this._read_string(Y),W=W||this._read_word(z),W=W||this._read_singles(Y),W=W||this._read_comment(Y),W=W||this._read_regexp(Y,z),W=W||this._read_xml(Y,z),W=W||this._read_punctuation(),W=W||this._create_token(d.UNKNOWN,this._input.next()),W)},M.prototype._read_word=function(z){var L;if(L=this.__patterns.identifier.read(),L!=="")return L=L.replace(x.allLineBreaks,`
`),!(z.type===d.DOT||z.type===d.RESERVED&&(z.text==="set"||z.text==="get"))&&T.test(L)?(L==="in"||L==="of")&&(z.type===d.WORD||z.type===d.STRING)?this._create_token(d.OPERATOR,L):this._create_token(d.RESERVED,L):this._create_token(d.WORD,L);if(L=this.__patterns.number.read(),L!=="")return this._create_token(d.WORD,L)},M.prototype._read_singles=function(z){var L=null;return z==="("||z==="["?L=this._create_token(d.START_EXPR,z):z===")"||z==="]"?L=this._create_token(d.END_EXPR,z):z==="{"?L=this._create_token(d.START_BLOCK,z):z==="}"?L=this._create_token(d.END_BLOCK,z):z===";"?L=this._create_token(d.SEMICOLON,z):z==="."&&N.test(this._input.peek(1))?L=this._create_token(d.DOT,z):z===","&&(L=this._create_token(d.COMMA,z)),L&&this._input.next(),L},M.prototype._read_punctuation=function(){var z=this.__patterns.punct.read();if(z!=="")return z==="="?this._create_token(d.EQUALS,z):z==="?."?this._create_token(d.DOT,z):this._create_token(d.OPERATOR,z)},M.prototype._read_non_javascript=function(z){var L="";if(z==="#"){if(this._is_first_token()&&(L=this.__patterns.shebang.read(),L))return this._create_token(d.UNKNOWN,L.trim()+`
`);if(L=this.__patterns.include.read(),L)return this._create_token(d.UNKNOWN,L.trim()+`
`);z=this._input.next();var W="#";if(this._input.hasNext()&&this._input.testChar(R)){do z=this._input.next(),W+=z;while(this._input.hasNext()&&z!=="#"&&z!=="=");return z==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(W+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(W+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,W)}this._input.back()}else if(z==="<"&&this._is_first_token()){if(L=this.__patterns.html_comment_start.read(),L){for(;this._input.hasNext()&&!this._input.testChar(x.newline);)L+=this._input.next();return w=!0,this._create_token(d.COMMENT,L)}}else if(w&&z==="-"&&(L=this.__patterns.html_comment_end.read(),L))return w=!1,this._create_token(d.COMMENT,L);return null},M.prototype._read_comment=function(z){var L=null;if(z==="/"){var W="";if(this._input.peek(1)==="*"){W=this.__patterns.block_comment.read();var Y=I.get_directives(W);Y&&Y.ignore==="start"&&(W+=I.readIgnored(this._input)),W=W.replace(x.allLineBreaks,`
`),L=this._create_token(d.BLOCK_COMMENT,W),L.directives=Y}else this._input.peek(1)==="/"&&(W=this.__patterns.comment.read(),L=this._create_token(d.COMMENT,W))}return L},M.prototype._read_string=function(z){if(z==="`"||z==="'"||z==='"'){var L=this._input.next();return this.has_char_escapes=!1,z==="`"?L+=this._read_string_recursive("`",!0,"${"):L+=this._read_string_recursive(z),this.has_char_escapes&&this._options.unescape_strings&&(L=Z(L)),this._input.peek()===z&&(L+=this._input.next()),L=L.replace(x.allLineBreaks,`
`),this._create_token(d.STRING,L)}return null},M.prototype._allow_regexp_or_xml=function(z){return z.type===d.RESERVED&&c(z.text,["return","case","throw","else","do","typeof","yield"])||z.type===d.END_EXPR&&z.text===")"&&z.opened.previous.type===d.RESERVED&&c(z.opened.previous.text,["if","while","for"])||c(z.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},M.prototype._read_regexp=function(z,L){if(z==="/"&&this._allow_regexp_or_xml(L)){for(var W=this._input.next(),Y=!1,H=!1;this._input.hasNext()&&(Y||H||this._input.peek()!==z)&&!this._input.testChar(x.newline);)W+=this._input.peek(),Y?Y=!1:(Y=this._input.peek()==="\\",this._input.peek()==="["?H=!0:this._input.peek()==="]"&&(H=!1)),this._input.next();return this._input.peek()===z&&(W+=this._input.next(),W+=this._input.read(x.identifier)),this._create_token(d.STRING,W)}return null},M.prototype._read_xml=function(z,L){if(this._options.e4x&&z==="<"&&this._allow_regexp_or_xml(L)){var W="",Y=this.__patterns.xml.read_match();if(Y){for(var H=Y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),ne=H.indexOf("{")===0,ce=0;Y;){var we=!!Y[1],Ce=Y[2],Ke=!!Y[Y.length-1]||Ce.slice(0,8)==="![CDATA[";if(!Ke&&(Ce===H||ne&&Ce.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(we?--ce:++ce),W+=Y[0],ce<=0)break;Y=this.__patterns.xml.read_match()}return Y||(W+=this._input.match(/[\s\S]*/g)[0]),W=W.replace(x.allLineBreaks,`
`),this._create_token(d.STRING,W)}}return null};function Z(z){for(var L="",W=0,Y=new C(z),H=null;Y.hasNext();)if(H=Y.match(/([\s]|[^\\]|\\\\)+/g),H&&(L+=H[0]),Y.peek()==="\\"){if(Y.next(),Y.peek()==="x")H=Y.match(/x([0-9A-Fa-f]{2})/g);else if(Y.peek()==="u")H=Y.match(/u([0-9A-Fa-f]{4})/g);else{L+="\\",Y.hasNext()&&(L+=Y.next());continue}if(!H)return z;if(W=parseInt(H[1],16),W>126&&W<=255&&H[0].indexOf("x")===0)return z;if(W>=0&&W<32){L+="\\"+H[0];continue}else W===34||W===39||W===92?L+="\\"+String.fromCharCode(W):L+=String.fromCharCode(W)}return L}M.prototype._read_string_recursive=function(z,L,W){var Y,H;z==="'"?H=this.__patterns.single_quote:z==='"'?H=this.__patterns.double_quote:z==="`"?H=this.__patterns.template_text:z==="}"&&(H=this.__patterns.template_expression);for(var ne=H.read(),ce="";this._input.hasNext();){if(ce=this._input.next(),ce===z||!L&&x.newline.test(ce)){this._input.back();break}else ce==="\\"&&this._input.hasNext()?(Y=this._input.peek(),Y==="x"||Y==="u"?this.has_char_escapes=!0:Y==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ce+=this._input.next()):W&&(W==="${"&&ce==="$"&&this._input.peek()==="{"&&(ce+=this._input.next()),W===ce&&(z==="`"?ce+=this._read_string_recursive("}",L,"`"):ce+=this._read_string_recursive("`",L,"${"),this._input.hasNext()&&(ce+=this._input.next())));ce+=H.read(),ne+=ce}return ne},l.exports.Tokenizer=M,l.exports.TOKEN=d,l.exports.positionable_operators=P.slice(),l.exports.line_starters=v.slice()},function(l){var F=RegExp.prototype.hasOwnProperty("sticky");function O(C){this.__input=C||"",this.__input_length=this.__input.length,this.__position=0}O.prototype.restart=function(){this.__position=0},O.prototype.back=function(){this.__position>0&&(this.__position-=1)},O.prototype.hasNext=function(){return this.__position<this.__input_length},O.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__input.charAt(this.__position),this.__position+=1),C},O.prototype.peek=function(C){var b=null;return C=C||0,C+=this.__position,C>=0&&C<this.__input_length&&(b=this.__input.charAt(C)),b},O.prototype.__match=function(C,b){C.lastIndex=b;var p=C.exec(this.__input);return p&&!(F&&C.sticky)&&(p.index!==b&&(p=null)),p},O.prototype.test=function(C,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(C,b):!1},O.prototype.testChar=function(C,b){var p=this.peek(b);return C.lastIndex=0,p!==null&&C.test(p)},O.prototype.match=function(C){var b=this.__match(C,this.__position);return b?this.__position+=b[0].length:b=null,b},O.prototype.read=function(C,b,p){var y="",x;return C&&(x=this.match(C),x&&(y+=x[0])),b&&(x||!C)&&(y+=this.readUntil(b,p)),y},O.prototype.readUntil=function(C,b){var p="",y=this.__position;C.lastIndex=this.__position;var x=C.exec(this.__input);return x?(y=x.index,b&&(y+=x[0].length)):y=this.__input_length,p=this.__input.substring(this.__position,y),this.__position=y,p},O.prototype.readUntilAfter=function(C){return this.readUntil(C,!0)},O.prototype.get_regexp=function(C,b){var p=null,y="g";return b&&F&&(y="y"),typeof C=="string"&&C!==""?p=new RegExp(C,y):C&&(p=new RegExp(C.source,y)),p},O.prototype.get_literal_regexp=function(C){return RegExp(C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},O.prototype.peekUntilAfter=function(C){var b=this.__position,p=this.readUntilAfter(C);return this.__position=b,p},O.prototype.lookBack=function(C){var b=this.__position-1;return b>=C.length&&this.__input.substring(b-C.length,b).toLowerCase()===C},l.exports.InputScanner=O},function(l,F,O){var C=O(8).InputScanner,b=O(3).Token,p=O(10).TokenStream,y=O(11).WhitespacePattern,x={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},g=function(h,c){this._input=new C(h),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new y(this._input)};g.prototype.tokenize=function(){this._input.restart(),this.__tokens=new p,this._reset();for(var h,c=new b(x.START,""),d=null,I=[],A=new p;c.type!==x.EOF;){for(h=this._get_next_token(c,d);this._is_comment(h);)A.add(h),h=this._get_next_token(c,d);A.isEmpty()||(h.comments_before=A,A=new p),h.parent=d,this._is_opening(h)?(I.push(d),d=h):d&&this._is_closing(h,d)&&(h.opened=d,d.closed=h,d=I.pop(),h.parent=d),h.previous=c,c.next=h,this.__tokens.add(h),c=h}return this.__tokens},g.prototype._is_first_token=function(){return this.__tokens.isEmpty()},g.prototype._reset=function(){},g.prototype._get_next_token=function(h,c){this._readWhitespace();var d=this._input.read(/.+/g);return d?this._create_token(x.RAW,d):this._create_token(x.EOF,"")},g.prototype._is_comment=function(h){return!1},g.prototype._is_opening=function(h){return!1},g.prototype._is_closing=function(h,c){return!1},g.prototype._create_token=function(h,c){var d=new b(h,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return d},g.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},l.exports.Tokenizer=g,l.exports.TOKEN=x},function(l){function F(O){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=O}F.prototype.restart=function(){this.__position=0},F.prototype.isEmpty=function(){return this.__tokens_length===0},F.prototype.hasNext=function(){return this.__position<this.__tokens_length},F.prototype.next=function(){var O=null;return this.hasNext()&&(O=this.__tokens[this.__position],this.__position+=1),O},F.prototype.peek=function(O){var C=null;return O=O||0,O+=this.__position,O>=0&&O<this.__tokens_length&&(C=this.__tokens[O]),C},F.prototype.add=function(O){this.__parent_token&&(O.parent=this.__parent_token),this.__tokens.push(O),this.__tokens_length+=1},l.exports.TokenStream=F},function(l,F,O){var C=O(12).Pattern;function b(p,y){C.call(this,p,y),y?this._line_regexp=this._input.get_regexp(y._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}b.prototype=new C,b.prototype.__set_whitespace_patterns=function(p,y){p+="\\t ",y+="\\n\\r",this._match_pattern=this._input.get_regexp("["+p+y+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+y+"]")},b.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var p=this._input.read(this._match_pattern);if(p===" ")this.whitespace_before_token=" ";else if(p){var y=this.__split(this._newline_regexp,p);this.newline_count=y.length-1,this.whitespace_before_token=y[this.newline_count]}return p},b.prototype.matching=function(p,y){var x=this._create();return x.__set_whitespace_patterns(p,y),x._update(),x},b.prototype._create=function(){return new b(this._input,this)},b.prototype.__split=function(p,y){p.lastIndex=0;for(var x=0,g=[],h=p.exec(y);h;)g.push(y.substring(x,h.index)),x=h.index+h[0].length,h=p.exec(y);return x<y.length?g.push(y.substring(x,y.length)):g.push(""),g},l.exports.WhitespacePattern=b},function(l){function F(O,C){this._input=O,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,C&&(this._starting_pattern=this._input.get_regexp(C._starting_pattern,!0),this._match_pattern=this._input.get_regexp(C._match_pattern,!0),this._until_pattern=this._input.get_regexp(C._until_pattern),this._until_after=C._until_after)}F.prototype.read=function(){var O=this._input.read(this._starting_pattern);return(!this._starting_pattern||O)&&(O+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),O},F.prototype.read_match=function(){return this._input.match(this._match_pattern)},F.prototype.until_after=function(O){var C=this._create();return C._until_after=!0,C._until_pattern=this._input.get_regexp(O),C._update(),C},F.prototype.until=function(O){var C=this._create();return C._until_after=!1,C._until_pattern=this._input.get_regexp(O),C._update(),C},F.prototype.starting_with=function(O){var C=this._create();return C._starting_pattern=this._input.get_regexp(O,!0),C._update(),C},F.prototype.matching=function(O){var C=this._create();return C._match_pattern=this._input.get_regexp(O,!0),C._update(),C},F.prototype._create=function(){return new F(this._input,this)},F.prototype._update=function(){},l.exports.Pattern=F},function(l){function F(O,C){O=typeof O=="string"?O:O.source,C=typeof C=="string"?C:C.source,this.__directives_block_pattern=new RegExp(O+/ beautify( \w+[:]\w+)+ /.source+C,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(O+/\sbeautify\signore:end\s/.source+C,"g")}F.prototype.get_directives=function(O){if(!O.match(this.__directives_block_pattern))return null;var C={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(O);b;)C[b[1]]=b[2],b=this.__directive_pattern.exec(O);return C},F.prototype.readIgnored=function(O){return O.readUntilAfter(this.__directives_end_ignore_pattern)},l.exports.Directives=F},function(l,F,O){var C=O(12).Pattern,b={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function p(y,x){C.call(this,y,x),this.__template_pattern=null,this._disabled=Object.assign({},b),this._excluded=Object.assign({},b),x&&(this.__template_pattern=this._input.get_regexp(x.__template_pattern),this._excluded=Object.assign(this._excluded,x._excluded),this._disabled=Object.assign(this._disabled,x._disabled));var g=new C(y);this.__patterns={handlebars_comment:g.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:g.starting_with(/{{{/).until_after(/}}}/),handlebars:g.starting_with(/{{/).until_after(/}}/),php:g.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:g.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:g.starting_with(/{%/).until_after(/%}/),django_value:g.starting_with(/{{/).until_after(/}}/),django_comment:g.starting_with(/{#/).until_after(/#}/),smarty:g.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:g.starting_with(/{\*/).until_after(/\*}/),smarty_literal:g.starting_with(/{literal}/).until_after(/{\/literal}/)}}p.prototype=new C,p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){this.__set_templated_pattern()},p.prototype.disable=function(y){var x=this._create();return x._disabled[y]=!0,x._update(),x},p.prototype.read_options=function(y){var x=this._create();for(var g in b)x._disabled[g]=y.templating.indexOf(g)===-1;return x._update(),x},p.prototype.exclude=function(y){var x=this._create();return x._excluded[y]=!0,x._update(),x},p.prototype.read=function(){var y="";this._match_pattern?y=this._input.read(this._starting_pattern):y=this._input.read(this._starting_pattern,this.__template_pattern);for(var x=this._read_template();x;)this._match_pattern?x+=this._input.read(this._match_pattern):x+=this._input.readUntil(this.__template_pattern),y+=x,x=this._read_template();return this._until_after&&(y+=this._input.readUntilAfter(this._until_pattern)),y},p.prototype.__set_templated_pattern=function(){var y=[];this._disabled.php||y.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||y.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(y.push(this.__patterns.django._starting_pattern.source),y.push(this.__patterns.django_value._starting_pattern.source),y.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||y.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&y.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+y.join("|")+")")},p.prototype._read_template=function(){var y="",x=this._input.peek();if(x==="<"){var g=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&g==="?"&&(y=y||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&g==="%"&&(y=y||this.__patterns.erb.read())}else x==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(y=y||this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars_unescaped.read(),y=y||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(y=y||this.__patterns.django_value.read()),this._excluded.django||(y=y||this.__patterns.django_comment.read(),y=y||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(y=y||this.__patterns.smarty_comment.read(),y=y||this.__patterns.smarty_literal.read(),y=y||this.__patterns.smarty.read()));return y},l.exports.TemplatablePattern=p}],G={};function oe(l){var F=G[l];if(F!==void 0)return F.exports;var O=G[l]={exports:{}};return j[l](O,O.exports,oe),O.exports}var V=oe(0);X=V})();var le=X;!(Te=[],ae=function(){return{js_beautify:le}}.apply(Ne,Te),ae!==void 0&&(Dt.exports=ae))})()},"6nfa":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"746U":function(Dt,Ne,ie){"use strict";ie.d(Ne,"f",function(){return Te}),ie.d(Ne,"l",function(){return ae}),ie.d(Ne,"k",function(){return X}),ie.d(Ne,"j",function(){return le}),ie.d(Ne,"g",function(){return j}),ie.d(Ne,"m",function(){return G}),ie.d(Ne,"h",function(){return oe}),ie.d(Ne,"n",function(){return V}),ie.d(Ne,"c",function(){return l}),ie.d(Ne,"a",function(){return F}),ie.d(Ne,"i",function(){return O}),ie.d(Ne,"o",function(){return C}),ie.d(Ne,"e",function(){return y}),ie.d(Ne,"d",function(){return x}),ie.d(Ne,"p",function(){return g}),ie.d(Ne,"b",function(){return h});function Te(c){return Array.isArray(c)}function ae(c){return typeof c=="string"}function X(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)&&!(c instanceof RegExp)&&!(c instanceof Date)}function le(c){return typeof c=="number"&&!isNaN(c)}function j(c){return c===!0||c===!1}function G(c){return typeof c=="undefined"}function oe(c){return!V(c)}function V(c){return G(c)||c===null}function l(c,d){if(!c)throw new Error(d?`Unexpected type, expected '${d}'`:"Unexpected type")}function F(c){if(V(c))throw new Error("Assertion Failed: argument is undefined or null");return c}function O(c){return typeof c=="function"}function C(c,d){const I=Math.min(c.length,d.length);for(let A=0;A<I;A++)b(c[A],d[A])}function b(c,d){if(ae(d)){if(typeof c!==d)throw new Error(`argument does not match constraint: typeof ${d}`)}else if(O(d)){try{if(c instanceof d)return}catch(I){}if(!V(c)&&c.constructor===d)return;if(d.length===1&&d.call(void 0,c)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function p(c){let d=[],I=Object.getPrototypeOf(c);for(;Object.prototype!==I;)d=d.concat(Object.getOwnPropertyNames(I)),I=Object.getPrototypeOf(I);return d}function y(c){const d=[];for(const I of p(c))typeof c[I]=="function"&&d.push(I);return d}function x(c,d){const I=R=>function(){const N=Array.prototype.slice.call(arguments,0);return d(R,N)};let A={};for(const R of c)A[R]=I(R);return A}function g(c){return c===null?void 0:c}function h(c,d="Unreachable"){throw new Error(d)}},"7ixt":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return X});var Te={adjustX:1,adjustY:1},ae=[0,0],X={left:{points:["cr","cl"],overflow:Te,offset:[-4,0],targetOffset:ae},right:{points:["cl","cr"],overflow:Te,offset:[4,0],targetOffset:ae},top:{points:["bc","tc"],overflow:Te,offset:[0,-4],targetOffset:ae},bottom:{points:["tc","bc"],overflow:Te,offset:[0,4],targetOffset:ae},topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-4],targetOffset:ae},leftTop:{points:["tr","tl"],overflow:Te,offset:[-4,0],targetOffset:ae},topRight:{points:["br","tr"],overflow:Te,offset:[0,-4],targetOffset:ae},rightTop:{points:["tl","tr"],overflow:Te,offset:[4,0],targetOffset:ae},bottomRight:{points:["tr","br"],overflow:Te,offset:[0,4],targetOffset:ae},rightBottom:{points:["bl","br"],overflow:Te,offset:[4,0],targetOffset:ae},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,4],targetOffset:ae},leftBottom:{points:["br","bl"],overflow:Te,offset:[-4,0],targetOffset:ae}},le=X},"8HAY":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return j}),ie.d(Ne,"b",function(){return G}),ie.d(Ne,"d",function(){return oe}),ie.d(Ne,"e",function(){return V}),ie.d(Ne,"c",function(){return l});var Te=ie("MI8n"),ae=ie("pmY6"),X=ie("3/fG"),le=function(F,O,C,b){function p(y){return y instanceof C?y:new C(function(x){x(y)})}return new(C||(C=Promise))(function(y,x){function g(d){try{c(b.next(d))}catch(I){x(I)}}function h(d){try{c(b.throw(d))}catch(I){x(I)}}function c(d){d.done?y(d.value):p(d.value).then(g,h)}c((b=b.apply(F,O||[])).next())})};class j extends ae.a{constructor(F,O="",C="",b=!0,p){super();this._onDidChange=this._register(new Te.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=F,this._label=O,this._cssClass=C,this._enabled=b,this._actionCallback=p}get id(){return this._id}get label(){return this._label}set label(F){this._setLabel(F)}_setLabel(F){this._label!==F&&(this._label=F,this._onDidChange.fire({label:F}))}get tooltip(){return this._tooltip||""}set tooltip(F){this._setTooltip(F)}_setTooltip(F){this._tooltip!==F&&(this._tooltip=F,this._onDidChange.fire({tooltip:F}))}get class(){return this._cssClass}set class(F){this._setClass(F)}_setClass(F){this._cssClass!==F&&(this._cssClass=F,this._onDidChange.fire({class:F}))}get enabled(){return this._enabled}set enabled(F){this._setEnabled(F)}_setEnabled(F){this._enabled!==F&&(this._enabled=F,this._onDidChange.fire({enabled:F}))}get checked(){return this._checked}set checked(F){this._setChecked(F)}_setChecked(F){this._checked!==F&&(this._checked=F,this._onDidChange.fire({checked:F}))}run(F,O){return le(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(F))})}}class G extends ae.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Te.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Te.b),this.onDidRun=this._onDidRun.event}run(F,O){return le(this,void 0,void 0,function*(){if(!F.enabled)return;this._onBeforeRun.fire({action:F});let C;try{yield this.runAction(F,O)}catch(b){C=b}this._onDidRun.fire({action:F,error:C})})}runAction(F,O){return le(this,void 0,void 0,function*(){yield F.run(O)})}}class oe extends j{constructor(F){super(oe.ID,F,F?"separator text":"separator");this.checked=!1,this.enabled=!1}}oe.ID="vs.actions.separator";class V{constructor(F,O,C,b){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=F,this.label=O,this.class=b,this._actions=C}get actions(){return this._actions}dispose(){}run(){return le(this,void 0,void 0,function*(){})}}class l extends j{constructor(){super(l.ID,X.a("submenu.empty","(empty)"),void 0,!1)}}l.ID="vs.actions.empty"},"8WcF":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8hTe":function(Dt,Ne,ie){Dt.exports={button:"button___1wy9m"}},"8mKB":function(Dt,Ne,ie){"use strict";var Te=ie("rePB"),ae=ie("1OyB"),X=ie("vuIU"),le=ie("Ji7U"),j=ie("md7G"),G=ie("foSv"),oe=ie("q1tI"),V=ie.n(oe),l=ie("m+aA"),F=ie("TSYQ"),O=ie.n(F),C=ie("4IlW");function b(E){var v=E.pageXOffset,_="scrollLeft";if(typeof v!="number"){var T=E.document;v=T.documentElement[_],typeof v!="number"&&(v=T.body[_])}return v}function p(E){var v,_,T=E.ownerDocument,w=T.body,M=T&&T.documentElement,Z=E.getBoundingClientRect();return v=Z.left,_=Z.top,v-=M.clientLeft||w.clientLeft||0,_-=M.clientTop||w.clientTop||0,{left:v,top:_}}function y(E){var v=p(E),_=E.ownerDocument,T=_.defaultView||_.parentWindow;return v.left+=b(T),v.left}function x(E){var v=g();return function(){var T=Object(G.a)(E),w;if(v){var M=Object(G.a)(this).constructor;w=Reflect.construct(T,arguments,M)}else w=T.apply(this,arguments);return Object(j.a)(this,w)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(E){return!1}}var h=function(E){Object(le.a)(_,E);var v=x(_);function _(){var T;return Object(ae.a)(this,_),T=v.apply(this,arguments),T.onHover=function(w){var M=T.props,Z=M.onHover,z=M.index;Z(w,z)},T.onClick=function(w){var M=T.props,Z=M.onClick,z=M.index;Z(w,z)},T.onKeyDown=function(w){var M=T.props,Z=M.onClick,z=M.index;w.keyCode===13&&Z(w,z)},T}return Object(X.a)(_,[{key:"getClassName",value:function(){var w=this.props,M=w.prefixCls,Z=w.index,z=w.value,L=w.allowHalf,W=w.focused,Y=Z+1,H=M;return z===0&&Z===0&&W?H+=" ".concat(M,"-focused"):L&&z+.5>=Y&&z<Y?(H+=" ".concat(M,"-half ").concat(M,"-active"),W&&(H+=" ".concat(M,"-focused"))):(H+=Y<=z?" ".concat(M,"-full"):" ".concat(M,"-zero"),Y===z&&W&&(H+=" ".concat(M,"-focused"))),H}},{key:"render",value:function(){var w=this.onHover,M=this.onClick,Z=this.onKeyDown,z=this.props,L=z.disabled,W=z.prefixCls,Y=z.character,H=z.characterRender,ne=z.index,ce=z.count,we=z.value,Ce=typeof Y=="function"?Y(this.props):Y,Ke=V.a.createElement("li",{className:this.getClassName()},V.a.createElement("div",{onClick:L?null:M,onKeyDown:L?null:Z,onMouseMove:L?null:w,role:"radio","aria-checked":we>ne?"true":"false","aria-posinset":ne+1,"aria-setsize":ce,tabIndex:L?-1:0},V.a.createElement("div",{className:"".concat(W,"-first")},Ce),V.a.createElement("div",{className:"".concat(W,"-second")},Ce)));return H&&(Ke=H(Ke,this.props)),Ke}}]),_}(V.a.Component);function c(E,v){var _=Object.keys(E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(E);v&&(T=T.filter(function(w){return Object.getOwnPropertyDescriptor(E,w).enumerable})),_.push.apply(_,T)}return _}function d(E){for(var v=1;v<arguments.length;v++){var _=arguments[v]!=null?arguments[v]:{};v%2?c(Object(_),!0).forEach(function(T){Object(Te.a)(E,T,_[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(_)):c(Object(_)).forEach(function(T){Object.defineProperty(E,T,Object.getOwnPropertyDescriptor(_,T))})}return E}function I(E){var v=A();return function(){var T=Object(G.a)(E),w;if(v){var M=Object(G.a)(this).constructor;w=Reflect.construct(T,arguments,M)}else w=T.apply(this,arguments);return Object(j.a)(this,w)}}function A(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(E){return!1}}function R(){}var N=function(E){Object(le.a)(_,E);var v=I(_);function _(T){var w;Object(ae.a)(this,_),w=v.call(this,T),w.onHover=function(Z,z){var L=w.props.onHoverChange,W=w.getStarValue(z,Z.pageX),Y=w.state.cleanedValue;W!==Y&&w.setState({hoverValue:W,cleanedValue:null}),L(W)},w.onMouseLeave=function(){var Z=w.props.onHoverChange;w.setState({hoverValue:void 0,cleanedValue:null}),Z(void 0)},w.onClick=function(Z,z){var L=w.props.allowClear,W=w.state.value,Y=w.getStarValue(z,Z.pageX),H=!1;L&&(H=Y===W),w.onMouseLeave(),w.changeValue(H?0:Y),w.setState({cleanedValue:H?Y:null})},w.onFocus=function(){var Z=w.props.onFocus;w.setState({focused:!0}),Z&&Z()},w.onBlur=function(){var Z=w.props.onBlur;w.setState({focused:!1}),Z&&Z()},w.onKeyDown=function(Z){var z=Z.keyCode,L=w.props,W=L.count,Y=L.allowHalf,H=L.onKeyDown,ne=L.direction,ce=ne==="rtl",we=w.state.value;z===C.a.RIGHT&&we<W&&!ce?(Y?we+=.5:we+=1,w.changeValue(we),Z.preventDefault()):z===C.a.LEFT&&we>0&&!ce||z===C.a.RIGHT&&we>0&&ce?(Y?we-=.5:we-=1,w.changeValue(we),Z.preventDefault()):z===C.a.LEFT&&we<W&&ce&&(Y?we+=.5:we+=1,w.changeValue(we),Z.preventDefault()),H&&H(Z)},w.saveRef=function(Z){return function(z){w.stars[Z]=z}},w.saveRate=function(Z){w.rate=Z};var M=T.value;return M===void 0&&(M=T.defaultValue),w.stars={},w.state={value:M,focused:!1,cleanedValue:null},w}return Object(X.a)(_,[{key:"componentDidMount",value:function(){var w=this.props,M=w.autoFocus,Z=w.disabled;M&&!Z&&this.focus()}},{key:"getStarDOM",value:function(w){return Object(l.a)(this.stars[w])}},{key:"getStarValue",value:function(w,M){var Z=this.props,z=Z.allowHalf,L=Z.direction,W=L==="rtl",Y=w+1;if(z){var H=this.getStarDOM(w),ne=y(H),ce=H.clientWidth;(W&&M-ne>ce/2||!W&&M-ne<ce/2)&&(Y-=.5)}return Y}},{key:"focus",value:function(){var w=this.props.disabled;w||this.rate.focus()}},{key:"blur",value:function(){var w=this.props.disabled;w||this.rate.blur()}},{key:"changeValue",value:function(w){var M=this.props.onChange;"value"in this.props||this.setState({value:w}),M(w)}},{key:"render",value:function(){for(var w=this.props,M=w.count,Z=w.allowHalf,z=w.style,L=w.prefixCls,W=w.disabled,Y=w.className,H=w.character,ne=w.characterRender,ce=w.tabIndex,we=w.direction,Ce=this.state,Ke=Ce.value,Ie=Ce.hoverValue,je=Ce.focused,Ve=[],$e=W?"".concat(L,"-disabled"):"",Pe=0;Pe<M;Pe+=1)Ve.push(V.a.createElement(h,{ref:this.saveRef(Pe),index:Pe,count:M,disabled:W,prefixCls:"".concat(L,"-star"),allowHalf:Z,value:Ie===void 0?Ke:Ie,onClick:this.onClick,onHover:this.onHover,key:Pe,character:H,characterRender:ne,focused:je}));var se=O()(L,$e,Y,Object(Te.a)({},"".concat(L,"-rtl"),we==="rtl"));return V.a.createElement("ul",{className:se,style:z,onMouseLeave:W?null:this.onMouseLeave,tabIndex:W?-1:ce,onFocus:W?null:this.onFocus,onBlur:W?null:this.onBlur,onKeyDown:W?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Ve)}}],[{key:"getDerivedStateFromProps",value:function(w,M){return"value"in w&&w.value!==void 0?d(d({},M),{},{value:w.value}):M}}]),_}(V.a.Component);N.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:R,character:"\u2605",onHoverChange:R,tabIndex:0,direction:"ltr"};var P=N,D=Ne.a=P},"9Bee":function(Dt,Ne,ie){"use strict";var Te=ie("DYRE"),ae=ie("zeV3"),X=ie("+L6B"),le=ie("2/Rp"),j=ie("k1fw"),G=ie("9og8"),oe=ie("tJVT"),V=ie("WmNS"),l=ie.n(V),F=ie("q1tI"),O=ie.n(F),C=ie("vg9a"),b=ie("DlQD"),p=ie.n(b),y=ie("rUJ1");function x(Se,fe){var pe=Se.match(/^(\s+)(?:```)/);if(pe===null)return fe;var ve=pe[1];return fe.split(`
`).map(function(Oe){var ge=Oe.match(/^\s+/);if(ge===null)return Oe;var ye=Object(oe.a)(ge,1),Re=ye[0];return Re.length>=ve.length?Oe.slice(ve.length):Oe}).join(`
`)}var g=[],h=["<ul>"],c=new p.a.Renderer,d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function I(){g.length=0,h=["<ul>"]}var A={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function R(Se,fe,pe,ve){if(fe>=Se.length||Se[fe].level<=pe)return fe;var Oe=Se[fe];ve.push("<li><a href='#"+Oe.anchor+"'>"+Oe.text+"</a>"),fe++;var ge=[];return fe=R(Se,fe,Oe.level,ge),ge.length>0&&(ve.push("<ul>"),ge.forEach(function(ye){ve.push(ye)}),ve.push("</ul>")),ve.push("</li>"),fe=R(Se,fe,pe,ve),fe}function N(){return R(g,0,0,h),h.push("</ul>"),h.join("")}var P={heading:function(fe){var pe=d.exec(fe);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},fences:function(fe){var pe=this.rules.block.fences.exec(fe);if(pe){var ve=pe[0],Oe=x(ve,pe[3]||""),ge=pe[2]?pe[2].trim():pe[2];if(["latex","katex","math"].indexOf(ge)>=0){var ye=v(),Re=Oe;Oe=ye,_[ye]={type:"block",expression:Re}}return{type:"code",raw:ve,lang:ge,text:Oe}}}},D=/(?:\${2})([^\n`]+?)(?:\${2})/gi,E=0,v=function(){return"__special_katext_id_".concat(E++,"__")},_={};function T(){return _}function w(){E=0,_={}}function M(Se){return Se=Se.replace(D,function(fe,pe){var ve=v();return _[ve]={type:"inline",expression:pe},ve}),Se}var Z=c.listitem;c.listitem=function(Se){return Z(M(Se))};var z=c.paragraph;c.paragraph=function(Se){return z(M(Se))};var L=c.tablecell;c.tablecell=function(Se,fe){return L(M(Se),fe)},c.code=function(Se,fe,pe){var ve=(fe||"").match(/\S*/)[0];return ve?["latex","katex","math"].indexOf(ve)>=0?"<p class='editormd-tex'>".concat(Se,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(fe,'">').concat(pe?Se:Object(y.escape)(Se,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(pe?Se:Object(y.escape)(Se,!0))+"</code></pre>"},c.heading=function(Se,fe,pe){var ve=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return g.push({anchor:ve,level:fe,text:Se}),"<h"+fe+' id="'+ve+'">'+Se+"</h"+fe+">"},p.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),p.a.use({tokenizer:P,renderer:c});var W=p.a,Y=ie("SJMd"),H=ie("ulZh"),ne=ie.n(H),ce=ie("m3rI"),we=ie("Oy/b"),Ce=ie("p5ED"),Ke=ie("ErOA"),Ie=ie("STEk");/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var je=function(Se,fe){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,ve){pe.__proto__=ve}||function(pe,ve){for(var Oe in ve)Object.prototype.hasOwnProperty.call(ve,Oe)&&(pe[Oe]=ve[Oe])})(Se,fe)};function Ve(Se,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function pe(){this.constructor=Se}je(Se,fe),Se.prototype=fe===null?Object.create(fe):(pe.prototype=fe.prototype,new pe)}function $e(Se,fe,pe,ve){return new(pe||(pe=Promise))(function(Oe,ge){function ye(nt){try{Me(ve.next(nt))}catch(qe){ge(qe)}}function Re(nt){try{Me(ve.throw(nt))}catch(qe){ge(qe)}}function Me(nt){var qe;nt.done?Oe(nt.value):(qe=nt.value,qe instanceof pe?qe:new pe(function(xt){xt(qe)})).then(ye,Re)}Me((ve=ve.apply(Se,fe||[])).next())})}function Pe(Se,fe){var pe,ve,Oe,ge,ye={label:0,sent:function(){if(1&Oe[0])throw Oe[1];return Oe[1]},trys:[],ops:[]};return ge={next:Re(0),throw:Re(1),return:Re(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function Re(Me){return function(nt){return function(qe){if(pe)throw new TypeError("Generator is already executing.");for(;ye;)try{if(pe=1,ve&&(Oe=2&qe[0]?ve.return:qe[0]?ve.throw||((Oe=ve.return)&&Oe.call(ve),0):ve.next)&&!(Oe=Oe.call(ve,qe[1])).done)return Oe;switch(ve=0,Oe&&(qe=[2&qe[0],Oe.value]),qe[0]){case 0:case 1:Oe=qe;break;case 4:return ye.label++,{value:qe[1],done:!1};case 5:ye.label++,ve=qe[1],qe=[0];continue;case 7:qe=ye.ops.pop(),ye.trys.pop();continue;default:if(!(Oe=ye.trys,(Oe=Oe.length>0&&Oe[Oe.length-1])||qe[0]!==6&&qe[0]!==2)){ye=0;continue}if(qe[0]===3&&(!Oe||qe[1]>Oe[0]&&qe[1]<Oe[3])){ye.label=qe[1];break}if(qe[0]===6&&ye.label<Oe[1]){ye.label=Oe[1],Oe=qe;break}if(Oe&&ye.label<Oe[2]){ye.label=Oe[2],ye.ops.push(qe);break}Oe[2]&&ye.ops.pop(),ye.trys.pop();continue}qe=fe.call(Se,ye)}catch(xt){qe=[6,xt],ve=0}finally{pe=Oe=0}if(5&qe[0])throw qe[1];return{value:qe[0]?qe[1]:void 0,done:!0}}([Me,nt])}}}var se=function(){function Se(){}return Se.addKey=function(fe){Se.key=fe},Object.defineProperty(Se,"isLicensed",{get:function(){return!!Se.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Se.key)},enumerable:!1,configurable:!0}),Se}(),S=function(){function Se(){}return Se.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Se.setAttributes=function(fe,pe){for(var ve=0,Oe=pe;ve<Oe.length;ve++){var ge=Oe[ve],ye=ge[0],Re=ge[1];fe.setAttribute(ye,Re)}},Se.createRect=function(fe,pe,ve){var Oe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Oe.setAttribute("width",fe.toString()),Oe.setAttribute("height",pe.toString()),ve&&Se.setAttributes(Oe,ve),Oe},Se.createLine=function(fe,pe,ve,Oe,ge){var ye=document.createElementNS("http://www.w3.org/2000/svg","line");return ye.setAttribute("x1",fe.toString()),ye.setAttribute("y1",pe.toString()),ye.setAttribute("x2",ve.toString()),ye.setAttribute("y2",Oe.toString()),ge&&Se.setAttributes(ye,ge),ye},Se.createPolygon=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ve.setAttribute("points",fe),pe&&Se.setAttributes(ve,pe),ve},Se.createCircle=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","circle");return ve.setAttribute("cx",(fe/2).toString()),ve.setAttribute("cy",(fe/2).toString()),ve.setAttribute("r",fe.toString()),pe&&Se.setAttributes(ve,pe),ve},Se.createEllipse=function(fe,pe,ve){var Oe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Oe.setAttribute("cx",(fe/2).toString()),Oe.setAttribute("cy",(pe/2).toString()),Oe.setAttribute("rx",(fe/2).toString()),Oe.setAttribute("ry",(pe/2).toString()),ve&&Se.setAttributes(Oe,ve),Oe},Se.createGroup=function(fe){var pe=document.createElementNS("http://www.w3.org/2000/svg","g");return fe&&Se.setAttributes(pe,fe),pe},Se.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Se.createMarker=function(fe,pe,ve,Oe,ge,ye,Re){var Me=document.createElementNS("http://www.w3.org/2000/svg","marker");return Se.setAttributes(Me,[["id",fe],["orient",pe],["markerWidth",ve.toString()],["markerHeight",Oe.toString()],["refX",ge.toString()],["refY",ye.toString()]]),Me.appendChild(Re),Me},Se.createText=function(fe){var pe=document.createElementNS("http://www.w3.org/2000/svg","text");return pe.setAttribute("x","0"),pe.setAttribute("y","0"),fe&&Se.setAttributes(pe,fe),pe},Se.createTSpan=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ve.textContent=fe,pe&&Se.setAttributes(ve,pe),ve},Se.createImage=function(fe){var pe=document.createElementNS("http://www.w3.org/2000/svg","image");return fe&&Se.setAttributes(pe,fe),pe},Se.createPoint=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ve.x=fe,ve.y=pe,ve},Se.createPath=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg","path");return ve.setAttribute("d",fe),pe&&Se.setAttributes(ve,pe),ve},Se.createElement=function(fe,pe){var ve=document.createElementNS("http://www.w3.org/2000/svg",fe);return pe&&Se.setAttributes(ve,pe),ve},Se.getHollowRectanglePath=function(fe,pe,ve,Oe,ge,ye,Re,Me){return"M"+fe+","+pe+"V"+(pe+Oe)+"H"+(fe+ve)+"V"+pe+"H"+ge+"V"+ye+"H"+(ge+Re)+"V"+(ye+Me)+"H"+ge+"V"+pe+"Z"},Se}(),B=function(){function Se(fe){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+fe+"_"}return Object.defineProperty(Se.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),Se.prototype.addClass=function(fe){return this.styleSheet===void 0&&this.addStyleSheet(),fe.name=""+this.classNamePrefix+fe.localName,this.classes.push(fe),this.styleSheet.sheet.insertRule("."+fe.name+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length),fe},Se.prototype.addRule=function(fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(fe),this.styleSheet.sheet.insertRule(fe.selector+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length)},Se.prototype.addStyleSheet=function(){var fe;this.styleSheet=document.createElement("style"),((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).appendChild(this.styleSheet),this.addRule(new J("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new J("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new J("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ue("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ue("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Se.prototype.removeStyleSheet=function(){var fe;this.styleSheet&&(((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Se}(),J=function(Se,fe){this.selector=Se,this.style=fe},ue=function(Se,fe){this.localName=Se,this.style=fe},q=function(){function Se(){this.blocks=[],this.display=""}return Se.prototype.addButtonBlock=function(fe){fe.className=this.blockClassName,fe.buttonClassName=this.buttonClassName,fe.buttonColorsClassName=this.buttonColorsClassName,fe.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(fe)},Se.prototype.addElementBlock=function(fe){fe.className===void 0&&(fe.className=this.blockClassName),this.blocks.push(fe)},Se.prototype.getUI=function(){var fe=document.createElement("div");return fe.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,fe.style.display=this.display,this.blocks.forEach(function(pe){return fe.appendChild(pe.getUI())}),fe},Se}(),xe=function(){function Se(){}return Se.prototype.getUI=function(){var fe=document.createElement("div");if(fe.className=this.className,this.minWidth!==void 0&&(fe.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":fe.style.justifyContent="flex-start";break;case"center":fe.style.justifyContent="center";break;case"end":fe.style.justifyContent="flex-end"}return fe.style.whiteSpace="nowrap",fe},Se}(),We=function(Se){function fe(){var pe=Se!==null&&Se.apply(this,arguments)||this;return pe.buttons=[],pe}return Ve(fe,Se),fe.prototype.addButton=function(pe){pe.className=this.buttonClassName,pe.colorsClassName=this.buttonColorsClassName,pe.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(pe)},fe.prototype.getUI=function(){var pe=Se.prototype.getUI.call(this);return this.buttons.forEach(function(ve){return pe.appendChild(ve.getUI())}),pe},fe}(xe),it=function(){function Se(fe,pe){this._isActive=!1,this._isHidden=!1,this._icon=fe,this.title=pe,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Se.prototype,"icon",{get:function(){return this._icon},set:function(fe){this._icon=fe,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"isActive",{get:function(){return this._isActive},set:function(fe){this._isActive=fe,this.adjustClassName()},enumerable:!1,configurable:!0}),Se.prototype.getUI=function(){var fe=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return fe.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},Se.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},Se.prototype.hide=function(){this._isHidden=!0},Se}(),be=function(Se){function fe(){var pe=Se!==null&&Se.apply(this,arguments)||this;return pe.elements=[],pe}return Ve(fe,Se),fe.prototype.addElement=function(pe){this.elements.push(pe)},fe.prototype.getUI=function(){var pe=Se.prototype.getUI.call(this);return this.elements.forEach(function(ve){return pe.appendChild(ve)}),pe},fe}(xe),Le=function(){function Se(fe,pe){this.horizontal=fe,this.vertical=pe}return Object.defineProperty(Se.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Se.prototype.getVerticalLength=function(fe){return fe/this.ratio},Se.prototype.getHorizontalLength=function(fe){return fe*this.ratio},Se}(),Fe=function(){function Se(){}return Se.getIcon=function(fe,pe){if(fe>0&&pe>0){var ve=new Le(fe,pe),Oe=ve.ratio>=1?20:ve.getHorizontalLength(20),ge=ve.ratio<1?20:ve.getVerticalLength(20),ye=document.createElementNS("http://www.w3.org/2000/svg","svg");ye.setAttribute("xmlns","http://www.w3.org/2000/svg"),ye.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ye);var Re=S.createDefs();ye.appendChild(Re);var Me=S.createElement("clipPath",[["id","text-bg-clip"]]);Re.appendChild(Me);var nt=S.createPath(S.getHollowRectanglePath((24-Oe)/2,(24-ge)/2,Oe,ge,(24-Oe)/2+2,(24-ge)/2+2,Oe-4,ge-4));ye.appendChild(nt);var qe=S.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);qe.appendChild(S.createTSpan(fe+":"+pe)),ye.appendChild(qe);var xt=qe.getBBox();S.setAttributes(qe,[["x",((24-xt.width)/2).toString()],["y",((24-xt.height)/2-xt.y).toString()]]);var yn=S.createPath(S.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(xt.width))/2,(24-Math.ceil(xt.height))/2,Math.ceil(xt.width),Math.ceil(xt.height)));return Me.appendChild(yn),S.setAttributes(nt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ye),ye.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},Se}(),ze=function(Se){function fe(pe,ve,Oe){var ge=Se.call(this,pe,ve)||this;return ge.isDropdownOpen=!1,ge.onClick=ge.dropdownButtonClicked,ge.dropdownButtons=Oe,ge}return Ve(fe,Se),fe.prototype.setupDropdown=function(){var pe=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ve){ve.className=pe.className,ve.colorsClassName=pe.colorsClassName,pe.dropdownBlock.appendChild(ve.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},fe.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},fe.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},fe.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},fe.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},fe.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},fe}(it),dt=function(){function Se(fe,pe){this.GRIP_SIZE=10,this.color=fe,this.fillColor=pe,this.visual=S.createGroup(),this.visual.appendChild(S.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(S.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Se.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},Se.prototype.setCenter=function(fe,pe){this.visual.childNodes.forEach(function(ve){return S.setAttributes(ve,[["cx",fe.toString()],["cy",pe.toString()]])})},Se}(),It=function(){function Se(fe,pe,ve,Oe){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=fe,this.canvasHeight=pe,this.margin=ve,this.container=Oe,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(Se.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(fe){this._aspectRatio=fe,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(fe){this._isGridVisible=fe,this.gridContainer&&S.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(fe){this._zoomFactor=fe,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Se.prototype.open=function(){var fe=this;this.cropShadeElement=S.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=S.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var pe=0;pe<this.numberOfGridLines;pe++)this.horizontalGridLines.push(S.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(S.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ve){return fe.gridContainer.appendChild(ve)}),this.verticalGridLines.forEach(function(ve){return fe.gridContainer.appendChild(ve)}),this.cropRectElement=S.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new dt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new dt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new dt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new dt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},Se.prototype.setCropRectangle=function(fe){this.cropRect=fe;var pe=Object.assign({},this.cropRect);this.zoomFactor!==1&&(pe.width=this.cropRect.width*this.zoomFactor,pe.height=this.cropRect.height*this.zoomFactor,pe.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-pe.width/2,pe.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-pe.height/2),S.setAttributes(this.cropRectElement,[["x",pe.x.toString()],["y",pe.y.toString()],["width",pe.width.toString()],["height",pe.height.toString()]]);var ve=pe.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ge,ye){var Re=pe.y+ve*(ye+1);S.setAttributes(ge,[["x1",""+pe.x],["y1",""+Re],["x2",""+(pe.x+pe.width)],["y2",""+Re]])});var Oe=pe.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ge,ye){var Re=pe.x+Oe*(ye+1);S.setAttributes(ge,[["x1",""+Re],["y1",""+pe.y],["x2",""+Re],["y2",""+(pe.y+pe.height)]])}),S.setAttributes(this.cropShadeElement,[["d",S.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,pe.x,pe.y,pe.width,pe.height)]]),this.topLeftGrip.setCenter(pe.x,pe.y),this.topRightGrip.setCenter(pe.x+pe.width,pe.y),this.bottomLeftGrip.setCenter(pe.x,pe.y+pe.height),this.bottomRightGrip.setCenter(pe.x+pe.width,pe.y+pe.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Se.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},Se.prototype.clientToLocalCoordinates=function(fe,pe){var ve=this.container.getBoundingClientRect();return{x:fe-ve.left+this.margin,y:pe-ve.top+this.margin}},Se.prototype.onPointerDown=function(fe){this.container.setPointerCapture(fe.pointerId),this.previousPoint=this.clientToLocalCoordinates(fe.clientX,fe.clientY),this.cropRectElement===fe.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(fe.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(fe.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(fe.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(fe.target)&&(this.activeGrip=this.bottomRightGrip)},Se.prototype.onPointerMove=function(fe){if(this.isMoving)this.move(this.clientToLocalCoordinates(fe.clientX,fe.clientY));else if(this.activeGrip){var pe=this.clientToLocalCoordinates(fe.clientX,fe.clientY);this.resize(pe)}fe.preventDefault()},Se.prototype.onPointerUp=function(fe){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(fe.pointerId)},Se.prototype.move=function(fe){var pe=fe.x-this.previousPoint.x,ve=fe.y-this.previousPoint.y;this.zoomFactor!==1&&(pe=-pe/this.zoomFactor,ve=-ve/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+pe),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ve),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=fe},Se.prototype.resize=function(fe){var pe=Object.assign({},this.cropRect),ve=fe.x-this.previousPoint.x,Oe=fe.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:pe.x+ve<this.margin&&(ve=this.margin-pe.x),pe.x+=ve,pe.width=this.cropRect.x+this.cropRect.width-pe.x;break;case this.bottomRightGrip:case this.topRightGrip:pe.width+ve>this.canvasWidth*this.zoomFactor&&(ve=this.canvasWidth*this.zoomFactor-pe.width),pe.width+=ve}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(pe.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ve),pe.height=this.aspectRatio.getVerticalLength(pe.width)):(pe.y+=Oe,pe.height=this.cropRect.y+this.cropRect.height-pe.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?pe.height=this.aspectRatio.getVerticalLength(pe.width):pe.height+=Oe}pe.width<10&&(pe.x=this.cropRect.x,pe.width=10),pe.height<10&&(pe.y=this.cropRect.y,pe.height=10),this.previousPoint=fe,pe.x>=this.margin&&pe.y>=this.margin&&pe.x-this.margin+pe.width<=this.canvasWidth&&pe.y-this.margin+pe.height<=this.canvasHeight&&(this.cropRect=pe,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Se.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var fe=this.cropRect.x+this.cropRect.width/2,pe=this.cropRect.y+this.cropRect.height/2,ve=this.aspectRatio.getHorizontalLength(this.cropRect.height),Oe=this.aspectRatio.getVerticalLength(this.cropRect.width);ve/this.canvasWidth<Oe/this.canvasHeight?this.cropRect.width=ve:this.cropRect.height=Oe,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=fe-this.cropRect.width/2,this.cropRect.y=pe-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},Se.prototype.getRescaledRect=function(fe,pe,ve,Oe,ge,ye){var Re=ve/fe,Me=Oe/pe;return{x:(ge.x-ye)*Re+ye,y:(ge.y-ye)*Me+ye,width:ge.width*Re,height:ge.height*Me}},Se.prototype.scaleCanvas=function(fe,pe){var ve=this.getRescaledRect(this.canvasWidth,this.canvasHeight,fe,pe,this.cropRect,this.margin);this.canvasWidth=fe,this.canvasHeight=pe,this.onCropChange&&this.onCropChange(ve),this.setCropRectangle(ve)},Se}(),Jt=function(){function Se(fe){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=fe,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(Se.prototype,"angle",{get:function(){return this._angle},set:function(fe){this._angle=fe,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Se.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},Se.prototype.onPointerDown=function(fe){this.controlContainer.setPointerCapture(fe.pointerId),this.isDragging=!0,this.previousPoint={x:fe.clientX,y:fe.clientY}},Se.prototype.onPointerMove=function(fe){this.isDragging&&(this.onAngleChange&&this.onAngleChange((fe.clientX-this.previousPoint.x)/5),this.previousPoint.x=fe.clientX)},Se.prototype.onPointerUp=function(fe){this.isDragging&&this.onAngleChange&&this.onAngleChange((fe.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(fe.pointerId)},Se.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var fe=this.angleLabelText.getBBox();S.setAttributes(this.angleLabelElement,[["x",((this.width-fe.width)/2).toString()],["y",(this.height/2).toString()]])}},Se.prototype.positionScaleShape=function(){if(this.scaleShape){var fe=this.scaleShape.transform.baseVal.getItem(0);fe.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(fe,0)}},Se.prototype.getVisual=function(){var fe=document.createElementNS("http://www.w3.org/2000/svg","svg");fe.setAttribute("xmlns","http://www.w3.org/2000/svg"),fe.setAttribute("width",this.width+"px"),fe.setAttribute("height",this.height+"px"),fe.setAttribute("viewBox","0 0 "+this.width+" "+this.height),fe.style.flexShrink="0",document.body.appendChild(fe);for(var pe="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ve=1;ve<=this.width/5+10;ve++){var Oe=ve%5==0?this.height/3:this.height/6;pe+="h4v"+-Oe+"h1v"+Oe}pe+="v1H0Z",this.scaleShape=S.createPath(pe);var ge=S.createTransform();this.scaleShape.transform.baseVal.appendItem(ge),fe.appendChild(this.scaleShape),this.angleLabelElement=S.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=S.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ye=S.createTSpan("");return ye.innerHTML="&deg;",this.angleLabelElement.appendChild(ye),fe.appendChild(this.angleLabelElement),document.body.removeChild(fe),fe},Se}(),Bt=function(){function Se(){this.naturalSize=!1,this.imageType="image/png"}return Se.prototype.rasterize=function(fe,pe,ve,Oe,ge,ye,Re){var Me=this;return new Promise(function(nt){var qe=document.createElement("canvas");qe.width=fe.width.baseVal.value-2*Oe,qe.height=fe.height.baseVal.value-2*Oe;var xt=1,yn=1;Me.naturalSize===!0?(xt=pe.naturalWidth/(fe.width.baseVal.value-2*Oe)/ye,yn=pe.naturalHeight/(fe.height.baseVal.value-2*Oe)/Re,qe.width=pe.naturalWidth/ye,qe.height=pe.naturalHeight/Re):Me.width!==void 0&&Me.height!==void 0&&(xt=Me.width/ve.width,yn=Me.height/ve.height,qe.width*=xt,qe.height*=yn);var Pn=qe.getContext("2d");Pn.translate(qe.width/2,qe.height/2),Pn.rotate(ge*Math.PI/180),Pn.scale(ye,Re),Pn.translate(-qe.width/2,-qe.height/2),Pn.drawImage(pe,0,0,qe.width,qe.height);var An=document.createElement("canvas");An.width=ve.width*xt,An.height=ve.height*yn,An.getContext("2d").putImageData(Pn.getImageData((ve.x-Oe)*xt,(ve.y-Oe)*yn,ve.width*xt,ve.height*yn),0,0),nt(An.toDataURL(Me.imageType,Me.imageQuality))})},Se}(),Nt=function(){function Se(fe){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=Se.instanceCounter++,this.styles=new B(this.instanceNo),this.target=fe,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(Se.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(fe){this._zoomToCropEnabled=fe,fe?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(fe){this._isGridVisible=fe,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"gridLines",{get:function(){return this._gridLines},set:function(fe){this._gridLines=fe,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(fe){this._rotationAngle=fe,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"aspectRatio",{get:function(){var fe;return(fe=this._aspectRatio)!==null&&fe!==void 0?fe:this.aspectRatios[0]},set:function(fe){this._aspectRatio=fe},enumerable:!1,configurable:!0}),Se.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},Se.prototype.show=function(){this.showUI(),this.open()},Se.prototype.close=function(fe){fe===void 0&&(fe=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),fe||this.closeEventListeners.forEach(function(pe){return pe()}),this._isOpen=!1)},Se.prototype.addRenderEventListener=function(fe){this.renderEventListeners.push(fe)},Se.prototype.removeRenderEventListener=function(fe){this.renderEventListeners.indexOf(fe)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(fe),1)},Se.prototype.addCloseEventListener=function(fe){this.closeEventListeners.push(fe)},Se.prototype.removeCloseEventListener=function(fe){this.closeEventListeners.indexOf(fe)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(fe),1)},Se.prototype.setupResizeObserver=function(){var fe=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){fe.resize(fe.target.clientWidth,fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},Se.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var fe=1*this.target.clientWidth/this.target.clientHeight,pe=this.contentDiv.clientWidth/fe>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*fe:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ve=pe+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/fe;this.resize(pe,ve)}},Se.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Se.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",S.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},Se.prototype.resize=function(fe,pe){this.imageWidth=Math.round(fe),this.imageHeight=Math.round(pe),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},Se.prototype.setEditingTarget=function(){var fe=document.createElement("canvas");fe.width=this.target.naturalWidth,fe.height=this.target.naturalHeight,fe.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var pe=fe.toDataURL();S.setAttributes(this.editingTarget,[["href",pe]]),this.setEditingTargetSize()},Se.prototype.setTopLeft=function(){var fe=this.target.getBoundingClientRect(),pe=this.editorCanvas.getBoundingClientRect();this.left=fe.left-pe.left-this.CANVAS_MARGIN,this.top=fe.top-pe.top-this.CANVAS_MARGIN},Se.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=S.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=S.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=S.createGroup(),this.editingTargetRotationScaleContainer=S.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var fe=S.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(fe);var pe=S.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(pe),this.editingTargetContainer=S.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},Se.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},Se.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=S.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new It(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},Se.prototype.zoomToCrop=function(){if(this.cropRect){var fe=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,pe=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=fe+"px "+pe+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-fe+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-pe+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},Se.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},Se.prototype.cropRectChanged=function(fe){this.cropRect=fe,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},Se.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},Se.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Se.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Se.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var fe=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,pe=this.target.offsetTop>fe+this.CANVAS_MARGIN?this.target.offsetTop-(fe+this.CANVAS_MARGIN):0;this.coverDiv.style.top=pe+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},Se.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Se.prototype.addTopToolbar=function(){var fe=this;this.topToolbar=new q,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var pe=new We;pe.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(pe);var ve=[];this.aspectRatios.forEach(function(yn){var Pn=new it(Fe.getIcon(yn.horizontal,yn.vertical),yn.horizontal===0&&yn.vertical===0?"FREE":yn.horizontal+":"+yn.vertical);Pn.onClick=function(){return fe.ratioButtonClicked(yn)},ve.push(Pn)}),this.aspectRatioButton=new ze(Fe.getIcon(0,0),"Aspect ratio",ve),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,pe.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Oe=new it('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");Oe.isActive=this.isGridVisible,Oe.onClick=function(){fe.isGridVisible=!fe.isGridVisible,Oe.isActive=fe.isGridVisible},pe.addButton(Oe);var ge=new it('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(ge.isActive=this.zoomToCropEnabled,ge.onClick=function(){fe.zoomToCropEnabled=!fe.zoomToCropEnabled,ge.isActive=fe.zoomToCropEnabled},pe.addButton(ge),!se.isLicensed){var ye=new be;this.topToolbar.addElementBlock(ye);var Re=document.createElement("div");Re.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Me=document.createElement("a");Me.style.color="currentColor",Me.href="https://markerjs.com/products/cropro",Me.target="_blank",Me.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Re.appendChild(Me),ye.addElement(Re)}var nt=new We;nt.minWidth=3*this.toolbarHeight+"px",nt.contentAlign="end",this.topToolbar.addButtonBlock(nt);var qe=new it('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");qe.onClick=this.startRenderAndClose,nt.addButton(qe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(qe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var xt=new it('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");xt.onClick=this.close,nt.addButton(xt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(xt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Se.prototype.addBottomToolbar=function(){var fe=this;this.bottomToolbar=new q,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var pe=new We;pe.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(pe);var ve=new it('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");ve.onClick=this.rotateLeftButtonClicked,pe.addButton(ve);var Oe=new it('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");Oe.onClick=this.rotateRightButtonClicked,pe.addButton(Oe);var ge=new be;ge.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ge),this.straightener=new Jt("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(nt){fe.rotateBy(nt),fe.straightener.angle=fe.rotationAngle},ge.addElement(this.straightener.getUI());var ye=new We;ye.minWidth=2*this.toolbarHeight+"px",ye.contentAlign="end",this.bottomToolbar.addButtonBlock(ye);var Re=new it('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Re.onClick=this.flipHorizontallyButtonClicked,ye.addButton(Re);var Me=new it('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");Me.onClick=this.flipVerticallyButtonClicked,ye.addButton(Me)},Se.prototype.ratioButtonClicked=function(fe){this.aspectRatio=fe,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Se.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Fe.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Se.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Le(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Se.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Se.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Se.prototype.restoreState=function(fe){if(fe){var pe=this.cropLayer.getRescaledRect(fe.width,fe.height,this.imageWidth,this.imageHeight,fe.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(pe),this.cropRectChanged(pe),this.flippedHorizontally=fe.flippedHorizontally,this.flippedVertically=fe.flippedVertically,this.applyFlip(),this.rotationAngle=fe.rotationAngle,this.applyRotation()}},Se.prototype.clientToLocalCoordinates=function(fe,pe){var ve=this.cropImage.getBoundingClientRect();return{x:fe-ve.left,y:pe-ve.top}},Se.prototype.onWindowResize=function(){this.positionUI()},Se.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var fe=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},Se.prototype.rotateLeftButtonClicked=function(){var fe=this.rotationAngle-90;this.rotationAngle%90!=0&&(fe+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(fe)},Se.prototype.rotateRightButtonClicked=function(){var fe=this.rotationAngle+90;this.rotationAngle%90!=0&&(fe-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(fe)},Se.prototype.rotateTo=function(fe){fe=(fe=fe>180?fe-360:fe)<=-180?fe+360:fe,this.rotationAngle=fe,this.applyRotation()},Se.prototype.rotateBy=function(fe){this.rotateTo((this.rotationAngle+fe)%360)},Se.prototype.applyRotation=function(){var fe=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var pe=this.editingTargetRotationContainer.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(pe,0);var ve=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ve.width,this.imageHeight/ve.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=fe},Se.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Se.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Se.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Se.prototype.startRenderAndClose=function(){return $e(this,void 0,void 0,function(){var fe,pe;return Pe(this,function(ve){switch(ve.label){case 0:return[4,this.render()];case 1:return fe=ve.sent(),pe=this.getState(),this.renderEventListeners.forEach(function(Oe){return Oe(fe,pe)}),this.close(!0),[2]}})})},Se.prototype.render=function(){return $e(this,void 0,void 0,function(){var fe;return Pe(this,function(pe){switch(pe.label){case 0:return(fe=new Bt).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.width=this.renderWidth,fe.height=this.renderHeight,this.unzoomFromCrop(),S.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,fe.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return pe.sent(),[4,fe.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,pe.sent()]}})})},Se.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ue("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ue("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ue("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var fe=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ue("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*fe)+`px;
height: `+(this.toolbarHeight-2*fe)+`px;
padding: `+fe+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ue("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ue("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new J("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new J("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new ue("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new ue("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new ue("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new ue("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*fe)+`px;
padding: `+fe+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ue("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},Se.instanceCounter=0,Se}(),cn=ie("8hTe"),sn=ie.n(cn),zt=/<pre[^>]*>/g;function dn(Se){var fe=document.createElement("div");return fe.innerHTML=Se,fe.childNodes.length===0?"":fe.childNodes[0].nodeValue}var Tn=Ne.a=function(Se){var fe=Se.value,pe=fe===void 0?"":fe,ve=Se.edit,Oe=ve===void 0?!1:ve,ge=Se.className,ye=Se.showTextOnly,Re=Se.showLines,Me=Se.replaces,nt=Se.zoomImg,qe=Se.hasMask,xt=Se.style,yn=xt===void 0?{}:xt,Pn=Se.stylesPrev,An=Pn===void 0?{}:Pn,$t=String(pe),ft=Object(F.useRef)(),yt=Object(F.useRef)(),ut=Object(F.useState)(""),Ae=Object(oe.a)(ut,2),Ue=Ae[0],vt=Ae[1],ht=Object(F.useState)("office"),Qt=Object(oe.a)(ht,2),nn=Qt[0],Et=Qt[1],Rt=function(){var hn=new Nt(yt.current);hn.displayMode="popup",hn.addRenderEventListener(function(){var On=Object(G.a)(l.a.mark(function gn(Wn){var jn;return l.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return ft.current.style.display="none",ur.next=3,Object(Ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Wn}});case 3:jn=ur.sent,jn!=null&&jn.id&&Me(yt.current.getAttribute("src").replace(ce.a.API_SERVER,""),"/api/attachments/".concat(jn==null?void 0:jn.id,"?type=").concat(jn.content_type));case 5:case"end":return ur.stop()}},gn)}));return function(gn){return On.apply(this,arguments)}}()),hn.show()},Ct=function(){var hn=new Ie.a(yt.current);hn.settings.displayMode="popup",hn.addEventListener("render",function(){var On=Object(G.a)(l.a.mark(function gn(Wn){var jn;return l.a.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:if(ft.current.style.display="none",!yt.current){ur.next=6;break}return ur.next=4,Object(Ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Wn.dataUrl}});case 4:jn=ur.sent,jn!=null&&jn.id&&Me(yt.current.getAttribute("src").replace(ce.a.API_SERVER,""),"/api/attachments/".concat(jn==null?void 0:jn.id,"?type=").concat(jn.content_type));case 6:case"end":return ur.stop()}},gn)}));return function(gn){return On.apply(this,arguments)}}()),hn.show(),window.markerArea=hn},et=Object(F.useMemo)(function(){ft.current&&(ft.current.style.zIndex=-1);try{var Mn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,On=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;$t=$t.replace(Mn,"("+ce.a.API_SERVER+"/api/attachments/").replace(hn,'"'+ce.a.API_SERVER+"/api/attachments/").replace(On,'"'+ce.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(rr){}var gn=W($t),Wn=T();if($t.match(/\[TOC\]/)&&(gn=gn.replace("<p>[TOC]</p>",N()),I()),gn=gn.replace(/(__special_katext_id_\d+__)/g,function(rr,ur){var Sr=Wn[ur],ui=Sr.type,Ci=Sr.expression;return Object(we.renderToString)(dn(Ci)||"",{displayMode:ui==="block",throwOnError:!1,output:"html"})}),gn=gn.replace(/▁/g,"\u2581\u2581\u2581"),w(),ye){var jn=document.createElement("div");return jn.innerHTML=gn,jn.innerText}return setTimeout(function(){return ln()},500),gn},[$t]),Ut=Object(F.useRef)();A.WebkitLineClamp=Re,Re&&(yn=Object(j.a)(Object(j.a)({},yn),A));function en(Mn){var hn=Mn.target;if(hn.tagName.toUpperCase()==="IMG"){if(nt){var On=hn.getAttribute("src");vt(On),Et("image")}}else if(hn.tagName.toUpperCase()==="A"){var gn=hn.getAttribute("href");if(gn.indexOf("office")>-1)Mn.preventDefault(),vt(gn),Et("office");else if(gn.indexOf("application/pdf")>-1)Mn.preventDefault(),vt(gn),Et("pdf");else if(gn.indexOf("text/html")>-1)Mn.preventDefault(),vt(gn),Et("html");else if(gn.startsWith("#")){Mn.preventDefault();var Wn=document.getElementById(gn.replace("#",""));Wn&&Wn.scrollIntoView(!0)}}}var ln=function(){var hn,On=(hn=Ut.current)===null||hn===void 0?void 0:hn.querySelectorAll("video");On==null||On.forEach(function(gn){if(gn.oncontextmenu=function(){return!1},gn.src.indexOf(".m3u8")>-1&&!gn.canPlayType("application/vnd.apple.mpegurl")){if(ne.a.isSupported()){var Wn=new ne.a;Wn.loadSource(gn.src),Wn.attachMedia(gn)}}})};Object(F.useEffect)(function(){if(Ut.current&&et&&(et.match(zt)&&window.PR.prettyPrint()),Ut.current)return Ut.current.addEventListener("click",en),function(){Ut.current.removeEventListener("click",en),w(),I()}},[et,Ut.current,en]);var Gn=function(hn){if(!Oe)return;hn.target.nodeName==="IMG"?(ft.current.style.zIndex=1,ft.current.style.display="flex",ft.current.style.width=hn.target.clientWidth+"px",ft.current.style.height=hn.target.clientHeight+"px",ft.current.style.top=hn.target.offsetTop+"px",ft.current.style.left=hn.target.offsetLeft+"px",yt.current.src=hn.target.getAttribute("src")):ft.current.style.display="none"};return O.a.createElement("div",{style:{position:"relative"}},O.a.createElement("div",{ref:Ut,style:Object(j.a)({},yn),className:"".concat(ge||""," markdown-body ").concat(sn.a.mdBody),onMouseOver:Gn,dangerouslySetInnerHTML:{__html:et}}),O.a.createElement("div",{ref:ft,className:sn.a.button},O.a.createElement(ae.a,null,O.a.createElement(le.a,{onClick:function(){return Rt()}},"\u88C1\u526A"),O.a.createElement(le.a,{onClick:function(){return Ct()}},"\u7F16\u8F91"))),O.a.createElement("img",{ref:yt,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),O.a.createElement(Ce.a,{close:!0,data:Ue,type:Ue!=null&&Ue.length?nn:"",style:Object(j.a)({},An),onClose:function(){return vt("")}}))}},"9JIy":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},BU3w:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return G});var Te=ie("MNnm"),ae="rc-util-key";function X(oe){if(oe.attachTo)return oe.attachTo;var V=document.querySelector("head");return V||document.body}function le(oe){var V,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Te.a)())return null;var F=document.createElement("style");if((V=l.csp)===null||V===void 0?void 0:V.nonce){var O;F.nonce=(O=l.csp)===null||O===void 0?void 0:O.nonce}F.innerHTML=oe;var C=X(l),b=C.firstChild;return l.prepend&&C.prepend?C.prepend(F):l.prepend&&b?C.insertBefore(F,b):C.appendChild(F),F}var j=new Map;function G(oe,V){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=X(l);if(!j.has(F)){var O=le("",l),C=O.parentNode;j.set(F,C),C.removeChild(O)}var b=Array.from(j.get(F).children).find(function(h){return h.tagName==="STYLE"&&h[ae]===V});if(b){var p,y;if(((p=l.csp)===null||p===void 0?void 0:p.nonce)&&b.nonce!==((y=l.csp)===null||y===void 0?void 0:y.nonce)){var x;b.nonce=(x=l.csp)===null||x===void 0?void 0:x.nonce}return b.innerHTML!==oe&&(b.innerHTML=oe),b}var g=le(oe,l);return g[ae]=V,g}},BdwD:function(Dt,Ne,ie){"use strict";var Te=ie("+L6B"),ae=ie("2/Rp"),X=ie("0Owb"),le=ie("k1fw"),j=ie("q1tI"),G=ie.n(j),oe=ie("FOrL"),V=ie.n(oe),l=function(O){var C=O.buttonProps,b=C===void 0?{}:C,p=O.styles,y=p===void 0?{}:p,x=O.imgStyles,g=x===void 0?{}:x,h=O.customText,c=O.ButtonText,d=O.ButtonClick,I=O.Buttonclass,A=O.ButtonTwo;return G.a.createElement("section",{className:"tc animated fadeIn",style:Object(le.a)(Object(le.a)({},{color:"#999",margin:"0 auto",padding:"100px 0"}),y)},G.a.createElement("img",{src:V.a,style:Object(le.a)(Object(le.a)({},{width:"200px",height:"150px"}),g)}),G.a.createElement("p",{className:"mt10 font14"},h||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),c&&G.a.createElement(ae.a,Object(X.a)({className:I,onClick:d},b),c),A&&A)};Ne.a=l},Bq7L:function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"C/vA":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Te});function Te(ae){const X=this;let le=!1,j;return function(){return le||(le=!0,j=ae.apply(X,arguments)),j}}},"Cg/j":function(Dt,Ne,ie){"use strict";ie.d(Ne,"b",function(){return Te}),ie.d(Ne,"a",function(){return ae}),ie.d(Ne,"c",function(){return le}),ie.d(Ne,"d",function(){return j});var Te;(function(G){G.serviceIds=new Map,G.DI_TARGET="$di$target",G.DI_DEPENDENCIES="$di$dependencies";function oe(V){return V[G.DI_DEPENDENCIES]||[]}G.getServiceDependencies=oe})(Te||(Te={}));const ae=le("instantiationService");function X(G,oe,V,l){oe[Te.DI_TARGET]===oe?oe[Te.DI_DEPENDENCIES].push({id:G,index:V,optional:l}):(oe[Te.DI_DEPENDENCIES]=[{id:G,index:V,optional:l}],oe[Te.DI_TARGET]=oe)}function le(G){if(Te.serviceIds.has(G))return Te.serviceIds.get(G);const oe=function(V,l,F){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");X(oe,V,F,!1)};return oe.toString=()=>G,Te.serviceIds.set(G,oe),oe}function j(G){return function(oe,V,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");X(G,oe,l,!0)}}},DlQD:function(Dt,Ne,ie){(function(Te,ae){Dt.exports=ae()})(this,function(){"use strict";function Te(pe,ve){for(var Oe=0;Oe<ve.length;Oe++){var ge=ve[Oe];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(pe,ge.key,ge)}}function ae(pe,ve,Oe){return ve&&Te(pe.prototype,ve),Oe&&Te(pe,Oe),pe}function X(pe,ve){if(!pe)return;if(typeof pe=="string")return le(pe,ve);var Oe=Object.prototype.toString.call(pe).slice(8,-1);if(Oe==="Object"&&pe.constructor&&(Oe=pe.constructor.name),Oe==="Map"||Oe==="Set")return Array.from(pe);if(Oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe))return le(pe,ve)}function le(pe,ve){(ve==null||ve>pe.length)&&(ve=pe.length);for(var Oe=0,ge=new Array(ve);Oe<ve;Oe++)ge[Oe]=pe[Oe];return ge}function j(pe,ve){var Oe;if(typeof Symbol=="undefined"||pe[Symbol.iterator]==null){if(Array.isArray(pe)||(Oe=X(pe))||ve&&pe&&typeof pe.length=="number"){Oe&&(pe=Oe);var ge=0;return function(){return ge>=pe.length?{done:!0}:{done:!1,value:pe[ge++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Oe=pe[Symbol.iterator](),Oe.next.bind(Oe)}function G(pe,ve){return ve={exports:{}},pe(ve,ve.exports),ve.exports}var oe=G(function(pe){function ve(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Oe(ge){pe.exports.defaults=ge}pe.exports={defaults:ve(),getDefaults:ve,changeDefaults:Oe}}),V=oe.defaults,l=oe.getDefaults,F=oe.changeDefaults,O=/[&<>"']/,C=/[&<>"']/g,b=/[<>"']|&(?!#?\w+;)/,p=/[<>"']|&(?!#?\w+;)/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x=function(ve){return y[ve]};function g(pe,ve){if(ve){if(O.test(pe))return pe.replace(C,x)}else if(b.test(pe))return pe.replace(p,x);return pe}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(pe){return pe.replace(h,function(ve,Oe){return Oe=Oe.toLowerCase(),Oe==="colon"?":":Oe.charAt(0)==="#"?Oe.charAt(1)==="x"?String.fromCharCode(parseInt(Oe.substring(2),16)):String.fromCharCode(+Oe.substring(1)):""})}var d=/(^|[^\[])\^/g;function I(pe,ve){pe=pe.source||pe,ve=ve||"";var Oe={replace:function(ye,Re){return Re=Re.source||Re,Re=Re.replace(d,"$1"),pe=pe.replace(ye,Re),Oe},getRegex:function(){return new RegExp(pe,ve)}};return Oe}var A=/[^\w:]/g,R=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function N(pe,ve,Oe){if(pe){var ge;try{ge=decodeURIComponent(c(Oe)).replace(A,"").toLowerCase()}catch(ye){return null}if(ge.indexOf("javascript:")===0||ge.indexOf("vbscript:")===0||ge.indexOf("data:")===0)return null}ve&&!R.test(Oe)&&(Oe=_(ve,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(ye){return null}return Oe}var P={},D=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(pe,ve){P[" "+pe]||(D.test(pe)?P[" "+pe]=pe+"/":P[" "+pe]=Z(pe,"/",!0)),pe=P[" "+pe];var Oe=pe.indexOf(":")===-1;return ve.substring(0,2)==="//"?Oe?ve:pe.replace(E,"$1")+ve:ve.charAt(0)==="/"?Oe?ve:pe.replace(v,"$1")+ve:pe+ve}var T={exec:function(){}};function w(pe){for(var ve=1,Oe,ge;ve<arguments.length;ve++){Oe=arguments[ve];for(ge in Oe)Object.prototype.hasOwnProperty.call(Oe,ge)&&(pe[ge]=Oe[ge])}return pe}function M(pe,ve){var Oe=pe.replace(/\|/g,function(Re,Me,nt){for(var qe=!1,xt=Me;--xt>=0&&nt[xt]==="\\";)qe=!qe;return qe?"|":" |"}),ge=Oe.split(/ \|/),ye=0;if(ge.length>ve)ge.splice(ve);else for(;ge.length<ve;)ge.push("");for(;ye<ge.length;ye++)ge[ye]=ge[ye].trim().replace(/\\\|/g,"|");return ge}function Z(pe,ve,Oe){var ge=pe.length;if(ge===0)return"";for(var ye=0;ye<ge;){var Re=pe.charAt(ge-ye-1);if(Re===ve&&!Oe)ye++;else if(Re!==ve&&Oe)ye++;else break}return pe.substr(0,ge-ye)}function z(pe,ve){if(pe.indexOf(ve[1])===-1)return-1;for(var Oe=pe.length,ge=0,ye=0;ye<Oe;ye++)if(pe[ye]==="\\")ye++;else if(pe[ye]===ve[0])ge++;else if(pe[ye]===ve[1]&&(ge--,ge<0))return ye;return-1}function L(pe){pe&&pe.sanitize&&!pe.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var W={escape:g,unescape:c,edit:I,cleanUrl:N,resolveUrl:_,noopTest:T,merge:w,splitCells:M,rtrim:Z,findClosingBracket:z,checkSanitizeDeprecation:L},Y=oe.defaults,H=W.rtrim,ne=W.splitCells,ce=W.escape,we=W.findClosingBracket;function Ce(pe,ve,Oe){var ge=ve.href,ye=ve.title?ce(ve.title):null,Re=pe[1].replace(/\\([\[\]])/g,"$1");return pe[0].charAt(0)!=="!"?{type:"link",raw:Oe,href:ge,title:ye,text:Re}:{type:"image",raw:Oe,href:ge,title:ye,text:ce(Re)}}function Ke(pe,ve){var Oe=pe.match(/^(\s+)(?:```)/);if(Oe===null)return ve;var ge=Oe[1];return ve.split(`
`).map(function(ye){var Re=ye.match(/^\s+/);if(Re===null)return ye;var Me=Re[0];return Me.length>=ge.length?ye.slice(ge.length):ye}).join(`
`)}var Ie=function(){function pe(Oe){this.options=Oe||Y}var ve=pe.prototype;return ve.space=function(ge){var ye=this.rules.block.newline.exec(ge);if(ye)return ye[0].length>1?{type:"space",raw:ye[0]}:{raw:`
`}},ve.code=function(ge,ye){var Re=this.rules.block.code.exec(ge);if(Re){var Me=ye[ye.length-1];if(Me&&Me.type==="paragraph")return{raw:Re[0],text:Re[0].trimRight()};var nt=Re[0].replace(/^ {4}/gm,"");return{type:"code",raw:Re[0],codeBlockStyle:"indented",text:this.options.pedantic?nt:H(nt,`
`)}}},ve.fences=function(ge){var ye=this.rules.block.fences.exec(ge);if(ye){var Re=ye[0],Me=Ke(Re,ye[3]||"");return{type:"code",raw:Re,lang:ye[2]?ye[2].trim():ye[2],text:Me}}},ve.heading=function(ge){var ye=this.rules.block.heading.exec(ge);if(ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},ve.nptable=function(ge){var ye=this.rules.block.nptable.exec(ge);if(ye){var Re={type:"table",header:ne(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
`):[],raw:ye[0]};if(Re.header.length===Re.align.length){var Me=Re.align.length,nt;for(nt=0;nt<Me;nt++)/^ *-+: *$/.test(Re.align[nt])?Re.align[nt]="right":/^ *:-+: *$/.test(Re.align[nt])?Re.align[nt]="center":/^ *:-+ *$/.test(Re.align[nt])?Re.align[nt]="left":Re.align[nt]=null;for(Me=Re.cells.length,nt=0;nt<Me;nt++)Re.cells[nt]=ne(Re.cells[nt],Re.header.length);return Re}}},ve.hr=function(ge){var ye=this.rules.block.hr.exec(ge);if(ye)return{type:"hr",raw:ye[0]}},ve.blockquote=function(ge){var ye=this.rules.block.blockquote.exec(ge);if(ye){var Re=ye[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ye[0],text:Re}}},ve.list=function(ge){var ye=this.rules.block.list.exec(ge);if(ye){for(var Re=ye[0],Me=ye[2],nt=Me.length>1,qe=Me[Me.length-1]===")",xt={type:"list",raw:Re,ordered:nt,start:nt?+Me.slice(0,-1):"",loose:!1,items:[]},yn=ye[0].match(this.rules.block.item),Pn=!1,An,$t,ft,yt,ut,Ae,Ue,vt=yn.length,ht=0;ht<vt;ht++)An=yn[ht],Re=An,$t=An.length,An=An.replace(/^ *([*+-]|\d+[.)]) */,""),~An.indexOf(`
`)&&($t-=An.length,An=this.options.pedantic?An.replace(/^ {1,4}/gm,""):An.replace(new RegExp("^ {1,"+$t+"}","gm"),"")),ht!==vt-1&&(ft=this.rules.block.bullet.exec(yn[ht+1])[0],(nt?ft.length===1||!qe&&ft[ft.length-1]===")":ft.length>1||this.options.smartLists&&ft!==Me)&&(yt=yn.slice(ht+1).join(`
`),xt.raw=xt.raw.substring(0,xt.raw.length-yt.length),ht=vt-1)),ut=Pn||/\n\n(?!\s*$)/.test(An),ht!==vt-1&&(Pn=An.charAt(An.length-1)===`
`,ut||(ut=Pn)),ut&&(xt.loose=!0),Ae=/^\[[ xX]\] /.test(An),Ue=void 0,Ae&&(Ue=An[1]!==" ",An=An.replace(/^\[[ xX]\] +/,"")),xt.items.push({type:"list_item",raw:Re,task:Ae,checked:Ue,loose:ut,text:An});return xt}},ve.html=function(ge){var ye=this.rules.block.html.exec(ge);if(ye)return{type:this.options.sanitize?"paragraph":"html",raw:ye[0],pre:!this.options.sanitizer&&(ye[1]==="pre"||ye[1]==="script"||ye[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ye[0]):ce(ye[0]):ye[0]}},ve.def=function(ge){var ye=this.rules.block.def.exec(ge);if(ye){ye[3]&&(ye[3]=ye[3].substring(1,ye[3].length-1));var Re=ye[1].toLowerCase().replace(/\s+/g," ");return{tag:Re,raw:ye[0],href:ye[2],title:ye[3]}}},ve.table=function(ge){var ye=this.rules.block.table.exec(ge);if(ye){var Re={type:"table",header:ne(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
`):[]};if(Re.header.length===Re.align.length){Re.raw=ye[0];var Me=Re.align.length,nt;for(nt=0;nt<Me;nt++)/^ *-+: *$/.test(Re.align[nt])?Re.align[nt]="right":/^ *:-+: *$/.test(Re.align[nt])?Re.align[nt]="center":/^ *:-+ *$/.test(Re.align[nt])?Re.align[nt]="left":Re.align[nt]=null;for(Me=Re.cells.length,nt=0;nt<Me;nt++)Re.cells[nt]=ne(Re.cells[nt].replace(/^ *\| *| *\| *$/g,""),Re.header.length);return Re}}},ve.lheading=function(ge){var ye=this.rules.block.lheading.exec(ge);if(ye)return{type:"heading",raw:ye[0],depth:ye[2].charAt(0)==="="?1:2,text:ye[1]}},ve.paragraph=function(ge){var ye=this.rules.block.paragraph.exec(ge);if(ye)return{type:"paragraph",raw:ye[0],text:ye[1].charAt(ye[1].length-1)===`
`?ye[1].slice(0,-1):ye[1]}},ve.text=function(ge,ye){var Re=this.rules.block.text.exec(ge);if(Re){var Me=ye[ye.length-1];return Me&&Me.type==="text"?{raw:Re[0],text:Re[0]}:{type:"text",raw:Re[0],text:Re[0]}}},ve.escape=function(ge){var ye=this.rules.inline.escape.exec(ge);if(ye)return{type:"escape",raw:ye[0],text:ce(ye[1])}},ve.tag=function(ge,ye,Re){var Me=this.rules.inline.tag.exec(ge);if(Me)return!ye&&/^<a /i.test(Me[0])?ye=!0:ye&&/^<\/a>/i.test(Me[0])&&(ye=!1),!Re&&/^<(pre|code|kbd|script)(\s|>)/i.test(Me[0])?Re=!0:Re&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Me[0])&&(Re=!1),{type:this.options.sanitize?"text":"html",raw:Me[0],inLink:ye,inRawBlock:Re,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ce(Me[0]):Me[0]}},ve.link=function(ge){var ye=this.rules.inline.link.exec(ge);if(ye){var Re=we(ye[2],"()");if(Re>-1){var Me=ye[0].indexOf("!")===0?5:4,nt=Me+ye[1].length+Re;ye[2]=ye[2].substring(0,Re),ye[0]=ye[0].substring(0,nt).trim(),ye[3]=""}var qe=ye[2],xt="";if(this.options.pedantic){var yn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(qe);yn?(qe=yn[1],xt=yn[3]):xt=""}else xt=ye[3]?ye[3].slice(1,-1):"";qe=qe.trim().replace(/^<([\s\S]*)>$/,"$1");var Pn=Ce(ye,{href:qe&&qe.replace(this.rules.inline._escapes,"$1"),title:xt&&xt.replace(this.rules.inline._escapes,"$1")},ye[0]);return Pn}},ve.reflink=function(ge,ye){var Re;if((Re=this.rules.inline.reflink.exec(ge))||(Re=this.rules.inline.nolink.exec(ge))){var Me=(Re[2]||Re[1]).replace(/\s+/g," ");if(Me=ye[Me.toLowerCase()],!Me||!Me.href){var nt=Re[0].charAt(0);return{type:"text",raw:nt,text:nt}}var qe=Ce(Re,Me,Re[0]);return qe}},ve.strong=function(ge,ye,Re){Re===void 0&&(Re="");var Me=this.rules.inline.strong.start.exec(ge);if(Me&&(!Me[1]||Me[1]&&(Re===""||this.rules.inline.punctuation.exec(Re)))){ye=ye.slice(-1*ge.length);var nt=Me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;nt.lastIndex=0;for(var qe;(Me=nt.exec(ye))!=null;)if(qe=this.rules.inline.strong.middle.exec(ye.slice(0,Me.index+3)),qe)return{type:"strong",raw:ge.slice(0,qe[0].length),text:ge.slice(2,qe[0].length-2)}}},ve.em=function(ge,ye,Re){Re===void 0&&(Re="");var Me=this.rules.inline.em.start.exec(ge);if(Me&&(!Me[1]||Me[1]&&(Re===""||this.rules.inline.punctuation.exec(Re)))){ye=ye.slice(-1*ge.length);var nt=Me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;nt.lastIndex=0;for(var qe;(Me=nt.exec(ye))!=null;)if(qe=this.rules.inline.em.middle.exec(ye.slice(0,Me.index+2)),qe)return{type:"em",raw:ge.slice(0,qe[0].length),text:ge.slice(1,qe[0].length-1)}}},ve.codespan=function(ge){var ye=this.rules.inline.code.exec(ge);if(ye){var Re=ye[2].replace(/\n/g," "),Me=/[^ ]/.test(Re),nt=Re.startsWith(" ")&&Re.endsWith(" ");return Me&&nt&&(Re=Re.substring(1,Re.length-1)),Re=ce(Re,!0),{type:"codespan",raw:ye[0],text:Re}}},ve.br=function(ge){var ye=this.rules.inline.br.exec(ge);if(ye)return{type:"br",raw:ye[0]}},ve.del=function(ge){var ye=this.rules.inline.del.exec(ge);if(ye)return{type:"del",raw:ye[0],text:ye[1]}},ve.autolink=function(ge,ye){var Re=this.rules.inline.autolink.exec(ge);if(Re){var Me,nt;return Re[2]==="@"?(Me=ce(this.options.mangle?ye(Re[1]):Re[1]),nt="mailto:"+Me):(Me=ce(Re[1]),nt=Me),{type:"link",raw:Re[0],text:Me,href:nt,tokens:[{type:"text",raw:Me,text:Me}]}}},ve.url=function(ge,ye){var Re;if(Re=this.rules.inline.url.exec(ge)){var Me,nt;if(Re[2]==="@")Me=ce(this.options.mangle?ye(Re[0]):Re[0]),nt="mailto:"+Me;else{var qe;do qe=Re[0],Re[0]=this.rules.inline._backpedal.exec(Re[0])[0];while(qe!==Re[0]);Me=ce(Re[0]),Re[1]==="www."?nt="http://"+Me:nt=Me}return{type:"link",raw:Re[0],text:Me,href:nt,tokens:[{type:"text",raw:Me,text:Me}]}}},ve.inlineText=function(ge,ye,Re){var Me=this.rules.inline.text.exec(ge);if(Me){var nt;return ye?nt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Me[0]):ce(Me[0]):Me[0]:nt=ce(this.options.smartypants?Re(Me[0]):Me[0]),{type:"text",raw:Me[0],text:nt}}},pe}(),je=W.noopTest,Ve=W.edit,$e=W.merge,Pe={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:je,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Pe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Pe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Pe.def=Ve(Pe.def).replace("label",Pe._label).replace("title",Pe._title).getRegex(),Pe.bullet=/(?:[*+-]|\d{1,9}[.)])/,Pe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Pe.item=Ve(Pe.item,"gm").replace(/bull/g,Pe.bullet).getRegex(),Pe.list=Ve(Pe.list).replace(/bull/g,Pe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Pe.def.source+")").getRegex(),Pe._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Pe._comment=/<!--(?!-?>)[\s\S]*?-->/,Pe.html=Ve(Pe.html,"i").replace("comment",Pe._comment).replace("tag",Pe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pe.paragraph=Ve(Pe._paragraph).replace("hr",Pe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Pe._tag).getRegex(),Pe.blockquote=Ve(Pe.blockquote).replace("paragraph",Pe.paragraph).getRegex(),Pe.normal=$e({},Pe),Pe.gfm=$e({},Pe.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Pe.gfm.nptable=Ve(Pe.gfm.nptable).replace("hr",Pe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Pe._tag).getRegex(),Pe.gfm.table=Ve(Pe.gfm.table).replace("hr",Pe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Pe._tag).getRegex(),Pe.pedantic=$e({},Pe.normal,{html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pe._comment).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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:je,paragraph:Ve(Pe.normal._paragraph).replace("hr",Pe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Pe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var se={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:je,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};se._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",se.punctuation=Ve(se.punctuation).replace(/punctuation/g,se._punctuation).getRegex(),se._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",se._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",se.em.start=Ve(se.em.start).replace(/punctuation/g,se._punctuation).getRegex(),se.em.middle=Ve(se.em.middle).replace(/punctuation/g,se._punctuation).replace(/overlapSkip/g,se._overlapSkip).getRegex(),se.em.endAst=Ve(se.em.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.em.endUnd=Ve(se.em.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.start=Ve(se.strong.start).replace(/punctuation/g,se._punctuation).getRegex(),se.strong.middle=Ve(se.strong.middle).replace(/punctuation/g,se._punctuation).replace(/blockSkip/g,se._blockSkip).getRegex(),se.strong.endAst=Ve(se.strong.endAst,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.strong.endUnd=Ve(se.strong.endUnd,"g").replace(/punctuation/g,se._punctuation).getRegex(),se.blockSkip=Ve(se._blockSkip,"g").getRegex(),se.overlapSkip=Ve(se._overlapSkip,"g").getRegex(),se._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,se._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,se._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])?)+(?![-_])/,se.autolink=Ve(se.autolink).replace("scheme",se._scheme).replace("email",se._email).getRegex(),se._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,se.tag=Ve(se.tag).replace("comment",Pe._comment).replace("attribute",se._attribute).getRegex(),se._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,se._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,se.link=Ve(se.link).replace("label",se._label).replace("href",se._href).replace("title",se._title).getRegex(),se.reflink=Ve(se.reflink).replace("label",se._label).getRegex(),se.reflinkSearch=Ve(se.reflinkSearch,"g").replace("reflink",se.reflink).replace("nolink",se.nolink).getRegex(),se.normal=$e({},se),se.pedantic=$e({},se.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",se._label).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",se._label).getRegex()}),se.gfm=$e({},se.normal,{escape:Ve(se.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),se.gfm.url=Ve(se.gfm.url,"i").replace("email",se.gfm._extended_email).getRegex(),se.breaks=$e({},se.gfm,{br:Ve(se.br).replace("{2,}","*").getRegex(),text:Ve(se.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var S={block:Pe,inline:se},B=oe.defaults,J=S.block,ue=S.inline;function q(pe){return pe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function xe(pe){var ve="",Oe,ge,ye=pe.length;for(Oe=0;Oe<ye;Oe++)ge=pe.charCodeAt(Oe),Math.random()>.5&&(ge="x"+ge.toString(16)),ve+="&#"+ge+";";return ve}var We=function(){function pe(Oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Oe||B,this.options.tokenizer=this.options.tokenizer||new Ie,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ge={block:J.normal,inline:ue.normal};this.options.pedantic?(ge.block=J.pedantic,ge.inline=ue.pedantic):this.options.gfm&&(ge.block=J.gfm,this.options.breaks?ge.inline=ue.breaks:ge.inline=ue.gfm),this.tokenizer.rules=ge}pe.lex=function(ge,ye){var Re=new pe(ye);return Re.lex(ge)};var ve=pe.prototype;return ve.lex=function(ge){return ge=ge.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(ge,this.tokens,!0),this.inline(this.tokens),this.tokens},ve.blockTokens=function(ge,ye,Re){ye===void 0&&(ye=[]),Re===void 0&&(Re=!0),ge=ge.replace(/^ +$/gm,"");for(var Me,nt,qe,xt;ge;){if(Me=this.tokenizer.space(ge)){ge=ge.substring(Me.raw.length),Me.type&&ye.push(Me);continue}if(Me=this.tokenizer.code(ge,ye)){ge=ge.substring(Me.raw.length),Me.type?ye.push(Me):(xt=ye[ye.length-1],xt.raw+=`
`+Me.raw,xt.text+=`
`+Me.text);continue}if(Me=this.tokenizer.fences(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Me=this.tokenizer.heading(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Me=this.tokenizer.nptable(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Me=this.tokenizer.hr(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Me=this.tokenizer.blockquote(ge)){ge=ge.substring(Me.raw.length),Me.tokens=this.blockTokens(Me.text,[],Re),ye.push(Me);continue}if(Me=this.tokenizer.list(ge)){for(ge=ge.substring(Me.raw.length),qe=Me.items.length,nt=0;nt<qe;nt++)Me.items[nt].tokens=this.blockTokens(Me.items[nt].text,[],!1);ye.push(Me);continue}if(Me=this.tokenizer.html(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Re&&(Me=this.tokenizer.def(ge))){ge=ge.substring(Me.raw.length),this.tokens.links[Me.tag]||(this.tokens.links[Me.tag]={href:Me.href,title:Me.title});continue}if(Me=this.tokenizer.table(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Me=this.tokenizer.lheading(ge)){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Re&&(Me=this.tokenizer.paragraph(ge))){ge=ge.substring(Me.raw.length),ye.push(Me);continue}if(Me=this.tokenizer.text(ge,ye)){ge=ge.substring(Me.raw.length),Me.type?ye.push(Me):(xt=ye[ye.length-1],xt.raw+=`
`+Me.raw,xt.text+=`
`+Me.text);continue}if(ge){var yn="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(yn);break}else throw new Error(yn)}}return ye},ve.inline=function(ge){var ye,Re,Me,nt,qe,xt,yn=ge.length;for(ye=0;ye<yn;ye++){xt=ge[ye];switch(xt.type){case"paragraph":case"text":case"heading":{xt.tokens=[],this.inlineTokens(xt.text,xt.tokens);break}case"table":{for(xt.tokens={header:[],cells:[]},nt=xt.header.length,Re=0;Re<nt;Re++)xt.tokens.header[Re]=[],this.inlineTokens(xt.header[Re],xt.tokens.header[Re]);for(nt=xt.cells.length,Re=0;Re<nt;Re++)for(qe=xt.cells[Re],xt.tokens.cells[Re]=[],Me=0;Me<qe.length;Me++)xt.tokens.cells[Re][Me]=[],this.inlineTokens(qe[Me],xt.tokens.cells[Re][Me]);break}case"blockquote":{this.inline(xt.tokens);break}case"list":{for(nt=xt.items.length,Re=0;Re<nt;Re++)this.inline(xt.items[Re].tokens);break}}}return ge},ve.inlineTokens=function(ge,ye,Re,Me,nt){ye===void 0&&(ye=[]),Re===void 0&&(Re=!1),Me===void 0&&(Me=!1),nt===void 0&&(nt="");var qe,xt=ge,yn;if(this.tokens.links){var Pn=Object.keys(this.tokens.links);if(Pn.length>0)for(;(yn=this.tokenizer.rules.inline.reflinkSearch.exec(xt))!=null;)Pn.includes(yn[0].slice(yn[0].lastIndexOf("[")+1,-1))&&(xt=xt.slice(0,yn.index)+"["+"a".repeat(yn[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(yn=this.tokenizer.rules.inline.blockSkip.exec(xt))!=null;)xt=xt.slice(0,yn.index)+"["+"a".repeat(yn[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ge;){if(qe=this.tokenizer.escape(ge)){ge=ge.substring(qe.raw.length),ye.push(qe);continue}if(qe=this.tokenizer.tag(ge,Re,Me)){ge=ge.substring(qe.raw.length),Re=qe.inLink,Me=qe.inRawBlock,ye.push(qe);continue}if(qe=this.tokenizer.link(ge)){ge=ge.substring(qe.raw.length),qe.type==="link"&&(qe.tokens=this.inlineTokens(qe.text,[],!0,Me)),ye.push(qe);continue}if(qe=this.tokenizer.reflink(ge,this.tokens.links)){ge=ge.substring(qe.raw.length),qe.type==="link"&&(qe.tokens=this.inlineTokens(qe.text,[],!0,Me)),ye.push(qe);continue}if(qe=this.tokenizer.strong(ge,xt,nt)){ge=ge.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Re,Me),ye.push(qe);continue}if(qe=this.tokenizer.em(ge,xt,nt)){ge=ge.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Re,Me),ye.push(qe);continue}if(qe=this.tokenizer.codespan(ge)){ge=ge.substring(qe.raw.length),ye.push(qe);continue}if(qe=this.tokenizer.br(ge)){ge=ge.substring(qe.raw.length),ye.push(qe);continue}if(qe=this.tokenizer.del(ge)){ge=ge.substring(qe.raw.length),qe.tokens=this.inlineTokens(qe.text,[],Re,Me),ye.push(qe);continue}if(qe=this.tokenizer.autolink(ge,xe)){ge=ge.substring(qe.raw.length),ye.push(qe);continue}if(!Re&&(qe=this.tokenizer.url(ge,xe))){ge=ge.substring(qe.raw.length),ye.push(qe);continue}if(qe=this.tokenizer.inlineText(ge,Me,q)){ge=ge.substring(qe.raw.length),nt=qe.raw.slice(-1),ye.push(qe);continue}if(ge){var An="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(An);break}else throw new Error(An)}}return ye},ae(pe,null,[{key:"rules",get:function(){return{block:J,inline:ue}}}]),pe}(),it=oe.defaults,be=W.cleanUrl,Le=W.escape,Fe=function(){function pe(Oe){this.options=Oe||it}var ve=pe.prototype;return ve.code=function(ge,ye,Re){var Me=(ye||"").match(/\S*/)[0];if(this.options.highlight){var nt=this.options.highlight(ge,Me);nt!=null&&nt!==ge&&(Re=!0,ge=nt)}return Me?'<pre><code class="'+this.options.langPrefix+Le(Me,!0)+'">'+(Re?ge:Le(ge,!0))+`</code></pre>
`:"<pre><code>"+(Re?ge:Le(ge,!0))+`</code></pre>
`},ve.blockquote=function(ge){return`<blockquote>
`+ge+`</blockquote>
`},ve.html=function(ge){return ge},ve.heading=function(ge,ye,Re,Me){return this.options.headerIds?"<h"+ye+' id="'+this.options.headerPrefix+Me.slug(Re)+'">'+ge+"</h"+ye+`>
`:"<h"+ye+">"+ge+"</h"+ye+`>
`},ve.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ve.list=function(ge,ye,Re){var Me=ye?"ol":"ul",nt=ye&&Re!==1?' start="'+Re+'"':"";return"<"+Me+nt+`>
`+ge+"</"+Me+`>
`},ve.listitem=function(ge){return"<li>"+ge+`</li>
`},ve.checkbox=function(ge){return"<input "+(ge?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ve.paragraph=function(ge){return"<p>"+ge+`</p>
`},ve.table=function(ge,ye){return ye&&(ye="<tbody>"+ye+"</tbody>"),`<table>
<thead>
`+ge+`</thead>
`+ye+`</table>
`},ve.tablerow=function(ge){return`<tr>
`+ge+`</tr>
`},ve.tablecell=function(ge,ye){var Re=ye.header?"th":"td",Me=ye.align?"<"+Re+' align="'+ye.align+'">':"<"+Re+">";return Me+ge+"</"+Re+`>
`},ve.strong=function(ge){return"<strong>"+ge+"</strong>"},ve.em=function(ge){return"<em>"+ge+"</em>"},ve.codespan=function(ge){return"<code>"+ge+"</code>"},ve.br=function(){return this.options.xhtml?"<br/>":"<br>"},ve.del=function(ge){return"<del>"+ge+"</del>"},ve.link=function(ge,ye,Re){if(ge=be(this.options.sanitize,this.options.baseUrl,ge),ge===null)return Re;var Me='<a href="'+Le(ge)+'"';return ye&&(Me+=' title="'+ye+'"'),Me+=">"+Re+"</a>",Me},ve.image=function(ge,ye,Re){if(ge=be(this.options.sanitize,this.options.baseUrl,ge),ge===null)return Re;var Me='<img src="'+ge+'" alt="'+Re+'"';return ye&&(Me+=' title="'+ye+'"'),Me+=this.options.xhtml?"/>":">",Me},ve.text=function(ge){return ge},pe}(),ze=function(){function pe(){}var ve=pe.prototype;return ve.strong=function(ge){return ge},ve.em=function(ge){return ge},ve.codespan=function(ge){return ge},ve.del=function(ge){return ge},ve.html=function(ge){return ge},ve.text=function(ge){return ge},ve.link=function(ge,ye,Re){return""+Re},ve.image=function(ge,ye,Re){return""+Re},ve.br=function(){return""},pe}(),dt=function(){function pe(){this.seen={}}var ve=pe.prototype;return ve.slug=function(ge){var ye=ge.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ye)){var Re=ye;do this.seen[Re]++,ye=Re+"-"+this.seen[Re];while(this.seen.hasOwnProperty(ye))}return this.seen[ye]=0,ye},pe}(),It=oe.defaults,Jt=W.unescape,Bt=function(){function pe(Oe){this.options=Oe||It,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ze,this.slugger=new dt}pe.parse=function(ge,ye){var Re=new pe(ye);return Re.parse(ge)};var ve=pe.prototype;return ve.parse=function(ge,ye){ye===void 0&&(ye=!0);var Re="",Me,nt,qe,xt,yn,Pn,An,$t,ft,yt,ut,Ae,Ue,vt,ht,Qt,nn,Et,Rt=ge.length;for(Me=0;Me<Rt;Me++){yt=ge[Me];switch(yt.type){case"space":continue;case"hr":{Re+=this.renderer.hr();continue}case"heading":{Re+=this.renderer.heading(this.parseInline(yt.tokens),yt.depth,Jt(this.parseInline(yt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Re+=this.renderer.code(yt.text,yt.lang,yt.escaped);continue}case"table":{for($t="",An="",xt=yt.header.length,nt=0;nt<xt;nt++)An+=this.renderer.tablecell(this.parseInline(yt.tokens.header[nt]),{header:!0,align:yt.align[nt]});for($t+=this.renderer.tablerow(An),ft="",xt=yt.cells.length,nt=0;nt<xt;nt++){for(Pn=yt.tokens.cells[nt],An="",yn=Pn.length,qe=0;qe<yn;qe++)An+=this.renderer.tablecell(this.parseInline(Pn[qe]),{header:!1,align:yt.align[qe]});ft+=this.renderer.tablerow(An)}Re+=this.renderer.table($t,ft);continue}case"blockquote":{ft=this.parse(yt.tokens),Re+=this.renderer.blockquote(ft);continue}case"list":{for(ut=yt.ordered,Ae=yt.start,Ue=yt.loose,xt=yt.items.length,ft="",nt=0;nt<xt;nt++)ht=yt.items[nt],Qt=ht.checked,nn=ht.task,vt="",ht.task&&(Et=this.renderer.checkbox(Qt),Ue?ht.tokens.length>0&&ht.tokens[0].type==="text"?(ht.tokens[0].text=Et+" "+ht.tokens[0].text,ht.tokens[0].tokens&&ht.tokens[0].tokens.length>0&&ht.tokens[0].tokens[0].type==="text"&&(ht.tokens[0].tokens[0].text=Et+" "+ht.tokens[0].tokens[0].text)):ht.tokens.unshift({type:"text",text:Et}):vt+=Et),vt+=this.parse(ht.tokens,Ue),ft+=this.renderer.listitem(vt,nn,Qt);Re+=this.renderer.list(ft,ut,Ae);continue}case"html":{Re+=this.renderer.html(yt.text);continue}case"paragraph":{Re+=this.renderer.paragraph(this.parseInline(yt.tokens));continue}case"text":{for(ft=yt.tokens?this.parseInline(yt.tokens):yt.text;Me+1<Rt&&ge[Me+1].type==="text";)yt=ge[++Me],ft+=`
`+(yt.tokens?this.parseInline(yt.tokens):yt.text);Re+=ye?this.renderer.paragraph(ft):ft;continue}default:{var Ct='Token with "'+yt.type+'" type was not found.';if(this.options.silent){console.error(Ct);return}else throw new Error(Ct)}}}return Re},ve.parseInline=function(ge,ye){ye=ye||this.renderer;var Re="",Me,nt,qe=ge.length;for(Me=0;Me<qe;Me++){nt=ge[Me];switch(nt.type){case"escape":{Re+=ye.text(nt.text);break}case"html":{Re+=ye.html(nt.text);break}case"link":{Re+=ye.link(nt.href,nt.title,this.parseInline(nt.tokens,ye));break}case"image":{Re+=ye.image(nt.href,nt.title,nt.text);break}case"strong":{Re+=ye.strong(this.parseInline(nt.tokens,ye));break}case"em":{Re+=ye.em(this.parseInline(nt.tokens,ye));break}case"codespan":{Re+=ye.codespan(nt.text);break}case"br":{Re+=ye.br();break}case"del":{Re+=ye.del(this.parseInline(nt.tokens,ye));break}case"text":{Re+=ye.text(nt.text);break}default:{var xt='Token with "'+nt.type+'" type was not found.';if(this.options.silent){console.error(xt);return}else throw new Error(xt)}}}return Re},pe}(),Nt=W.merge,cn=W.checkSanitizeDeprecation,sn=W.escape,zt=oe.getDefaults,dn=oe.changeDefaults,Tn=oe.defaults;function Se(pe,ve,Oe){if(typeof pe=="undefined"||pe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof pe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(pe)+", string expected");if(typeof ve=="function"&&(Oe=ve,ve=null),ve=Nt({},Se.defaults,ve||{}),cn(ve),Oe){var ge=ve.highlight,ye;try{ye=We.lex(pe,ve)}catch(qe){return Oe(qe)}var Re=function(xt){var yn;if(!xt)try{yn=Bt.parse(ye,ve)}catch(Pn){xt=Pn}return ve.highlight=ge,xt?Oe(xt):Oe(null,yn)};if(!ge||ge.length<3)return Re();if(delete ve.highlight,!ye.length)return Re();var Me=0;Se.walkTokens(ye,function(qe){qe.type==="code"&&(Me++,setTimeout(function(){ge(qe.text,qe.lang,function(xt,yn){if(xt)return Re(xt);yn!=null&&yn!==qe.text&&(qe.text=yn,qe.escaped=!0),Me--,Me===0&&Re()})},0))}),Me===0&&Re();return}try{var nt=We.lex(pe,ve);return ve.walkTokens&&Se.walkTokens(nt,ve.walkTokens),Bt.parse(nt,ve)}catch(qe){if(qe.message+=`
Please report this to https://github.com/markedjs/marked.`,ve.silent)return"<p>An error occurred:</p><pre>"+sn(qe.message+"",!0)+"</pre>";throw qe}}Se.options=Se.setOptions=function(pe){return Nt(Se.defaults,pe),dn(Se.defaults),Se},Se.getDefaults=zt,Se.defaults=Tn,Se.use=function(pe){var ve=Nt({},pe);if(pe.renderer&&function(){var ge=Se.defaults.renderer||new Fe,ye=function(nt){var qe=ge[nt];ge[nt]=function(){for(var xt=arguments.length,yn=new Array(xt),Pn=0;Pn<xt;Pn++)yn[Pn]=arguments[Pn];var An=pe.renderer[nt].apply(ge,yn);return An===!1&&(An=qe.apply(ge,yn)),An}};for(var Re in pe.renderer)ye(Re);ve.renderer=ge}(),pe.tokenizer&&function(){var ge=Se.defaults.tokenizer||new Ie,ye=function(nt){var qe=ge[nt];ge[nt]=function(){for(var xt=arguments.length,yn=new Array(xt),Pn=0;Pn<xt;Pn++)yn[Pn]=arguments[Pn];var An=pe.tokenizer[nt].apply(ge,yn);return An===!1&&(An=qe.apply(ge,yn)),An}};for(var Re in pe.tokenizer)ye(Re);ve.tokenizer=ge}(),pe.walkTokens){var Oe=Se.defaults.walkTokens;ve.walkTokens=function(ge){pe.walkTokens(ge),Oe&&Oe(ge)}}Se.setOptions(ve)},Se.walkTokens=function(pe,ve){for(var Oe=j(pe),ge;!(ge=Oe()).done;){var ye=ge.value;ve(ye);switch(ye.type){case"table":{for(var Re=j(ye.tokens.header),Me;!(Me=Re()).done;){var nt=Me.value;Se.walkTokens(nt,ve)}for(var qe=j(ye.tokens.cells),xt;!(xt=qe()).done;)for(var yn=xt.value,Pn=j(yn),An;!(An=Pn()).done;){var $t=An.value;Se.walkTokens($t,ve)}break}case"list":{Se.walkTokens(ye.items,ve);break}default:ye.tokens&&Se.walkTokens(ye.tokens,ve)}}},Se.Parser=Bt,Se.parser=Bt.parse,Se.Renderer=Fe,Se.TextRenderer=ze,Se.Lexer=We,Se.lexer=We.lex,Se.Tokenizer=Ie,Se.Slugger=dt,Se.parse=Se;var fe=Se;return fe})},Dz72:function(Dt,Ne,ie){"use strict";var Te=ie("2qtc"),ae=ie("kLXV"),X=ie("7Kak"),le=ie("9yH6"),j=ie("iQDF"),G=ie("+eQT"),oe=ie("5NDa"),V=ie("5rEg"),l=ie("OaEy"),F=ie("2fM7"),O=ie("9og8"),C=ie("k1fw"),b=ie("y8nQ"),p=ie("Vl3Y"),y=ie("tJVT"),x=ie("WmNS"),g=ie.n(x),h=ie("q1tI"),c=ie.n(h),d=ie("9kvl"),I=ie("wd/R"),A=ie.n(I),R=ie("J1Xd"),N=ie.n(R),P=ie("NReP"),D=function(v){var _,T=v.visible,w=v.onOk,M=v.onCancel,Z=v.title,z=Z===void 0?"":Z,L=v.coreCurriculum,W=v.dispatch,Y=L.CoreSubjects,H=p.a.useForm(),ne=Object(y.a)(H,1),ce=ne[0],we=Object(h.useState)(!1),Ce=Object(y.a)(we,2),Ke=Ce[0],Ie=Ce[1],je=Object(h.useState)([]),Ve=Object(y.a)(je,2),$e=Ve[0],Pe=Ve[1],se=Object(h.useState)(!1),S=Object(y.a)(se,2),B=S[0],J=S[1],ue=Object(h.useState)(""),q=Object(y.a)(ue,2),xe=q[0],We=q[1];Object(h.useEffect)(function(){if(W({type:"coreCurriculum/getCoreSubjects",payload:{page:1,limit:12}}),T!=null&&T.id){var Fe,ze;console.log(T),ce.setFieldsValue(Object(C.a)(Object(C.a)({},T),{},{attachment_id:T==null||((Fe=T.attachment)===null||Fe===void 0)?void 0:Fe.id,publication_time:A()(T==null?void 0:T.publication_time)}));var dt=[Object(C.a)(Object(C.a)({},T==null?void 0:T.attachment),{},{response:{id:T==null||((ze=T.attachment)===null||ze===void 0)?void 0:ze.id}})];Pe(dt),We(T==null?void 0:T.name)}},[T]);var it=function(){ce.submit()},be=function(){M()},Le=function(){var Fe=Object(O.a)(g.a.mark(function ze(dt){var It;return g.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:Ie(!0),It=Object(C.a)({},dt),w(It);case 3:case"end":return Bt.stop()}},ze)}));return function(dt){return Fe.apply(this,arguments)}}();return c.a.createElement(ae.a,{title:"".concat(T!=null&&T.id?"\u7F16\u8F91":"\u65B0\u5EFA").concat(z),visible:T,onOk:it,centered:!0,onCancel:be,confirmLoading:Ke,okButtonProps:{disabled:B},width:686,afterClose:function(){Ie(!1),Pe([]),We(""),ce.resetFields()},okText:"\u786E\u8BA4\u65B0\u589E",cancelText:"\u53D6\u6D88"},c.a.createElement(p.a,{form:ce,colon:!1,labelCol:{span:4},wrapperCol:{span:18},onFinish:Le,className:N.a.form},c.a.createElement(p.a.Item,{label:"\u6838\u5FC3\u8BFE\u7A0B",name:"core_subject_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},c.a.createElement(F.a,{placeholder:"\u8BF7\u9009\u62E9",getPopupContainer:function(ze){return ze.parentElement}},Y==null||((_=Y.list)===null||_===void 0)?void 0:_.map(function(Fe,ze){return c.a.createElement(F.a.Option,{key:ze,value:Fe==null?void 0:Fe.id},Fe==null?void 0:Fe.name)}))),c.a.createElement(p.a.Item,{label:"\u6559\u6750\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6559\u6750\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6559\u6750\u540D\u79F0"},{max:100,message:"\u53EA\u80FD\u8F93\u5165100\u4E2A\u5B57\u7B26"}]},c.a.createElement(V.a,{maxLength:100,value:xe,placeholder:"\u8BF7\u8F93\u5165\u6559\u6750\u540D\u79F0",suffix:c.a.createElement("span",null,xe==null?void 0:xe.length,"/100"),onChange:function(ze){return We(ze.target.value)}})),c.a.createElement(p.a.Item,{label:"\u4F5C\u8005",name:"author",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},c.a.createElement(V.a,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005"})),c.a.createElement(p.a.Item,{label:"\u51FA\u7248\u793E",name:"publisher",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"},{whitespace:!0,message:"\u5B9E\u8DF5\u51FA\u7248\u793E"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},c.a.createElement(V.a,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"})),c.a.createElement(p.a.Item,{label:"\u51FA\u7248\u65F6\u95F4",name:"publication_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u7248\u65F6\u95F4"}]},c.a.createElement(G.a,{style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u51FA\u7248\u65F6\u95F4",format:"YYYY-MM-DD",allowClear:!1})),c.a.createElement(p.a.Item,{label:"ISBN",name:"number",rules:[{required:!0,message:"\u8BF7\u8F93\u5165ISBN"},{whitespace:!0,message:"\u8BF7\u8F93\u5165ISBN"}]},c.a.createElement(V.a,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165ISBN"})),c.a.createElement(p.a.Item,{label:"\u9605\u8BFB\u94FE\u63A5",name:"link"},c.a.createElement(V.a,{maxLength:200,placeholder:"\u8BF7\u8F93\u5165\u9605\u8BFB\u94FE\u63A5"})),c.a.createElement(p.a.Item,{label:"\u7C7B\u578B",name:"material_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},c.a.createElement(le.a.Group,{style:{paddingTop:5}},c.a.createElement(le.a,{value:1},"\u4E3B\u6559\u6750"),c.a.createElement(le.a,{value:2,style:{marginLeft:14}},"\u5B9E\u8DF5\u6559\u6750"))),c.a.createElement(p.a.Item,{label:"\u51FA\u5904",name:"source_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u5904"}]},c.a.createElement(le.a.Group,{style:{paddingTop:5}},c.a.createElement(le.a,{value:1},"\u56FD\u5185\u6559\u6750"),c.a.createElement(le.a,{value:2},"\u56FD\u5916\u6559\u6750"))),c.a.createElement(p.a.Item,{name:"attachment_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},c.a.createElement(P.a,{ButtonText:c.a.createElement(c.a.Fragment,null,c.a.createElement("i",{className:"iconfont icon-shangchuanfujian r5 font14"}),c.a.createElement("span",{className:"ml5"},"\u4E0A\u4F20\u5C01\u9762"))}))))};Ne.a=Object(d.a)(function(E){var v=E.dispatch,_=E.coreCurriculum;return{dispatch:v,coreCurriculum:_}})(D)},FEOs:function(Dt,Ne,ie){Dt.exports=ie.p+"static/jcxq.1dd9b6d4.jpg"},FOrL:function(Dt,Ne,ie){Dt.exports=ie.p+"static/nodata.a6b3f948.png"},FWmy:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Te});function Te(ae,X){if(!ae)throw new Error(X?`Assertion failed (${X})`:"Assertion Failed")}},GfqC:function(Dt,Ne,ie){"use strict";var Te=ie("q1tI"),ae=ie.n(Te),X=ie("TSYQ"),le=ie.n(X);function j(W,Y){var H="cannot "+W.method+" "+W.action+" "+Y.status+"'",ne=new Error(H);return ne.status=Y.status,ne.method=W.method,ne.url=W.action,ne}function G(W){var Y=W.responseText||W.response;if(!Y)return Y;try{return JSON.parse(Y)}catch(H){return Y}}function oe(W){var Y=new XMLHttpRequest;W.onProgress&&Y.upload&&(Y.upload.onprogress=function(we){we.total>0&&(we.percent=we.loaded/we.total*100),W.onProgress(we)});var H=new FormData;W.data&&Object.keys(W.data).forEach(function(ce){var we=W.data[ce];if(Array.isArray(we)){we.forEach(function(Ce){H.append(ce+"[]",Ce)});return}H.append(ce,W.data[ce])}),W.file instanceof Blob?H.append(W.filename,W.file,W.file.name):H.append(W.filename,W.file),Y.onerror=function(we){W.onError(we)},Y.onload=function(){return Y.status<200||Y.status>=300?W.onError(j(W,Y),G(Y)):W.onSuccess(G(Y),Y)},Y.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in Y&&(Y.withCredentials=!0);var ne=W.headers||{};return ne["X-Requested-With"]!==null&&Y.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ne).forEach(function(ce){ne[ce]!==null&&Y.setRequestHeader(ce,ne[ce])}),Y.send(H),{abort:function(){Y.abort()}}}var V=+new Date,l=0;function F(){return"rc-upload-"+V+"-"+ ++l}function O(W,Y){return W.indexOf(Y,W.length-Y.length)!==-1}var C=function(W,Y){if(W&&Y){var H=Array.isArray(Y)?Y:Y.split(","),ne=W.name||"",ce=W.type||"",we=ce.replace(/\/.*$/,"");return H.some(function(Ce){var Ke=Ce.trim();return Ke.charAt(0)==="."?O(ne.toLowerCase(),Ke.toLowerCase()):/\/\*$/.test(Ke)?we===Ke.replace(/\/.*$/,""):ce===Ke})}return!0};function b(W,Y){var H=W.createReader(),ne=[];function ce(){H.readEntries(function(we){var Ce=Array.prototype.slice.apply(we);ne=ne.concat(Ce);var Ke=!Ce.length;Ke?Y(ne):ce()})}ce()}var p=function(Y,H,ne){var ce=function we(Ce,Ke){Ke=Ke||"",Ce.isFile?Ce.file(function(Ie){ne(Ie)&&(Ce.fullPath&&!Ie.webkitRelativePath&&(Object.defineProperties(Ie,{webkitRelativePath:{writable:!0}}),Ie.webkitRelativePath=Ce.fullPath.replace(/^\//,""),Object.defineProperties(Ie,{webkitRelativePath:{writable:!1}})),H([Ie]))}):Ce.isDirectory&&b(Ce,function(Ie){Ie.forEach(function(je){we(je,""+Ke+Ce.name+"/")})})};Y.forEach(function(we){ce(we.webkitGetAsEntry())})},y=p,x=Object.assign||function(W){for(var Y=1;Y<arguments.length;Y++){var H=arguments[Y];for(var ne in H)Object.prototype.hasOwnProperty.call(H,ne)&&(W[ne]=H[ne])}return W},g=function(){function W(Y,H){var ne=[],ce=!0,we=!1,Ce=void 0;try{for(var Ke=Y[Symbol.iterator](),Ie;!(ce=(Ie=Ke.next()).done)&&!(ne.push(Ie.value),H&&ne.length===H);ce=!0);}catch(je){we=!0,Ce=je}finally{try{!ce&&Ke.return&&Ke.return()}finally{if(we)throw Ce}}return ne}return function(Y,H){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return W(Y,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function W(Y,H){for(var ne=0;ne<H.length;ne++){var ce=H[ne];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(Y,ce.key,ce)}}return function(Y,H,ne){return H&&W(Y.prototype,H),ne&&W(Y,ne),Y}}();function c(W,Y,H){return Y in W?Object.defineProperty(W,Y,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[Y]=H,W}function d(W,Y){var H={};for(var ne in W){if(Y.indexOf(ne)>=0)continue;if(!Object.prototype.hasOwnProperty.call(W,ne))continue;H[ne]=W[ne]}return H}function I(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function A(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function R(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}var N=function(Y){return Object.keys(Y).reduce(function(H,ne){return(ne.substr(0,5)==="data-"||ne.substr(0,5)==="aria-"||ne==="role")&&(H[ne]=Y[ne]),H},{})},P=function(W){R(Y,W);function Y(){var H,ne,ce,we;I(this,Y);for(var Ce=arguments.length,Ke=Array(Ce),Ie=0;Ie<Ce;Ie++)Ke[Ie]=arguments[Ie];return we=(ne=(ce=A(this,(H=Y.__proto__||Object.getPrototypeOf(Y)).call.apply(H,[this].concat(Ke))),ce),ce.state={uid:F()},ce.reqs={},ce.onChange=function(je){var Ve=je.target.files;ce.uploadFiles(Ve),ce.reset()},ce.onClick=function(je){var Ve=ce.fileInput;if(!Ve)return;var $e=ce.props,Pe=$e.children,se=$e.onClick;Pe&&Pe.type==="button"&&(Ve.parentNode.focus(),Ve.parentNode.querySelector("button").blur()),Ve.click(),se&&se(je)},ce.onKeyDown=function(je){je.key==="Enter"&&ce.onClick()},ce.onFileDrop=function(je){var Ve=ce.props.multiple;if(je.preventDefault(),je.type==="dragover")return;if(ce.props.directory)y(Array.prototype.slice.call(je.dataTransfer.items),ce.uploadFiles,function(Pe){return C(Pe,ce.props.accept)});else{var $e=Array.prototype.slice.call(je.dataTransfer.files).filter(function(Pe){return C(Pe,ce.props.accept)});Ve===!1&&($e=$e.slice(0,1)),ce.uploadFiles($e)}},ce.uploadFiles=function(je){var Ve=Array.prototype.slice.call(je);Ve.map(function($e){return $e.uid=F(),$e}).forEach(function($e){ce.upload($e,Ve)})},ce.saveFileInput=function(je){ce.fileInput=je},ne),A(ce,we)}return h(Y,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(ne,ce){var we=this,Ce=this.props;if(!Ce.beforeUpload)return setTimeout(function(){return we.post(ne)},0);var Ke=Ce.beforeUpload(ne,ce);Ke&&Ke.then?Ke.then(function(Ie){var je=Object.prototype.toString.call(Ie);return je==="[object File]"||je==="[object Blob]"?we.post(Ie):we.post(ne)}).catch(function(Ie){console.log(Ie)}):Ke!==!1&&setTimeout(function(){return we.post(ne)},0);return}},{key:"post",value:function(ne){var ce=this;if(!this._isMounted)return;var we=this.props,Ce=we.onStart,Ke=we.onProgress,Ie=we.transformFile,je=Ie===void 0?function(Ve){return Ve}:Ie;new Promise(function(Ve){var $e=we.action;return typeof $e=="function"&&($e=$e(ne)),Ve($e)}).then(function(Ve){var $e=ne.uid,Pe=we.customRequest||oe,se=Promise.resolve(je(ne)).then(function(S){var B=we.data;return typeof B=="function"&&(B=B(S)),Promise.all([S,B])}).catch(function(S){console.error(S)});se.then(function(S){var B=g(S,2),J=B[0],ue=B[1],q={action:Ve,filename:we.name,data:ue,file:J,headers:we.headers,withCredentials:we.withCredentials,method:we.method||"post",onProgress:Ke?function(xe){Ke(xe,ne)}:null,onSuccess:function(We,it){delete ce.reqs[$e],we.onSuccess(We,ne,it)},onError:function(We,it){delete ce.reqs[$e],we.onError(We,it,ne)}};Ce(ne),ce.reqs[$e]=Pe(q)})})}},{key:"reset",value:function(){this.setState({uid:F()})}},{key:"abort",value:function(ne){var ce=this.reqs;if(ne){var we=ne;ne&&ne.uid&&(we=ne.uid),ce[we]&&ce[we].abort&&ce[we].abort(),delete ce[we]}else Object.keys(ce).forEach(function(Ce){ce[Ce]&&ce[Ce].abort&&ce[Ce].abort(),delete ce[Ce]})}},{key:"render",value:function(){var ne,ce=this.props,we=ce.component,Ce=ce.prefixCls,Ke=ce.className,Ie=ce.disabled,je=ce.id,Ve=ce.style,$e=ce.multiple,Pe=ce.accept,se=ce.children,S=ce.directory,B=ce.openFileDialogOnClick,J=ce.onMouseEnter,ue=ce.onMouseLeave,q=d(ce,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),xe=le()((ne={},c(ne,Ce,!0),c(ne,Ce+"-disabled",Ie),c(ne,Ke,Ke),ne)),We=Ie?{}:{onClick:B?this.onClick:function(){},onKeyDown:B?this.onKeyDown:function(){},onMouseEnter:J,onMouseLeave:ue,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.a.createElement(we,x({},We,{className:xe,role:"button",style:Ve}),ae.a.createElement("input",x({},N(q),{id:je,type:"file",ref:this.saveFileInput,onClick:function(be){return be.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Pe,directory:S?"directory":null,webkitdirectory:S?"webkitdirectory":null,multiple:$e,onChange:this.onChange})),se)}}]),Y}(Te.Component),D=P,E=Object.assign||function(W){for(var Y=1;Y<arguments.length;Y++){var H=arguments[Y];for(var ne in H)Object.prototype.hasOwnProperty.call(H,ne)&&(W[ne]=H[ne])}return W},v=function(){function W(Y,H){for(var ne=0;ne<H.length;ne++){var ce=H[ne];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(Y,ce.key,ce)}}return function(Y,H,ne){return H&&W(Y.prototype,H),ne&&W(Y,ne),Y}}();function _(W,Y){if(!(W instanceof Y))throw new TypeError("Cannot call a class as a function")}function T(W,Y){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:W}function w(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);W.prototype=Object.create(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(W,Y):W.__proto__=Y)}function M(){}var Z=function(W){w(Y,W);function Y(){var H,ne,ce,we;_(this,Y);for(var Ce=arguments.length,Ke=Array(Ce),Ie=0;Ie<Ce;Ie++)Ke[Ie]=arguments[Ie];return we=(ne=(ce=T(this,(H=Y.__proto__||Object.getPrototypeOf(Y)).call.apply(H,[this].concat(Ke))),ce),ce.saveUploader=function(je){ce.uploader=je},ne),T(ce,we)}return v(Y,[{key:"abort",value:function(ne){this.uploader.abort(ne)}},{key:"render",value:function(){return ae.a.createElement(D,E({},this.props,{ref:this.saveUploader}))}}]),Y}(Te.Component);Z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:M,onError:M,onSuccess:M,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var z=Z,L=Ne.a=z},Gytx:function(Dt,Ne){Dt.exports=function(Te,ae,X,le){var j=X?X.call(le,Te,ae):void 0;if(j!==void 0)return!!j;if(Te===ae)return!0;if(typeof Te!="object"||!Te||typeof ae!="object"||!ae)return!1;var G=Object.keys(Te),oe=Object.keys(ae);if(G.length!==oe.length)return!1;for(var V=Object.prototype.hasOwnProperty.bind(ae),l=0;l<G.length;l++){var F=G[l];if(!V(F))return!1;var O=Te[F],C=ae[F];if(j=X?X.call(le,O,C,F):void 0,j===!1||j===void 0&&O!==C)return!1}return!0}},I8Z2:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return le}),ie.d(Ne,"b",function(){return b}),ie.d(Ne,"c",function(){return y});var Te=ie("q1tI"),ae=function(){var x=function(g,h){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var I in d)d.hasOwnProperty(I)&&(c[I]=d[I])},x(g,h)};return function(g,h){x(g,h);function c(){this.constructor=g}g.prototype=h===null?Object.create(h):(c.prototype=h.prototype,new c)}}(),X=Te.createContext(null),le=function(x){ae(g,x);function g(){return x!==null&&x.apply(this,arguments)||this}return g.prototype.render=function(){return Te.createElement(X.Provider,{value:this.props.store},this.props.children)},g}(Te.Component),j=ie("Gytx"),G=ie.n(j),oe=ie("2mql"),V=ie.n(oe),l=function(){var x=function(g,h){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var I in d)d.hasOwnProperty(I)&&(c[I]=d[I])},x(g,h)};return function(g,h){x(g,h);function c(){this.constructor=g}g.prototype=h===null?Object.create(h):(c.prototype=h.prototype,new c)}}(),F=function(){return F=Object.assign||function(x){for(var g,h=1,c=arguments.length;h<c;h++){g=arguments[h];for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(x[d]=g[d])}return x},F.apply(this,arguments)};function O(x){return x.displayName||x.name||"Component"}var C=function(){return{}};function b(x,g){g===void 0&&(g={});var h=!!x,c=x||C;return function(I){var A=function(N){l(P,N);function P(D,E){var v=N.call(this,D,E)||this;return v.unsubscribe=null,v.handleChange=function(){if(!v.unsubscribe)return;var _=c(v.store.getState(),v.props);v.setState({subscribed:_})},v.store=v.context,v.state={subscribed:c(v.store.getState(),D),store:v.store,props:D},v}return P.getDerivedStateFromProps=function(D,E){return x&&x.length===2&&D!==E.props?{subscribed:c(E.store.getState(),D),props:D}:{props:D}},P.prototype.componentDidMount=function(){this.trySubscribe()},P.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},P.prototype.shouldComponentUpdate=function(D,E){return!G()(this.props,D)||!G()(this.state.subscribed,E.subscribed)},P.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},P.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},P.prototype.render=function(){var D=F(F(F({},this.props),this.state.subscribed),{store:this.store});return Te.createElement(I,F({},D,{ref:this.props.miniStoreForwardedRef}))},P.displayName="Connect("+O(I)+")",P.contextType=X,P}(Te.Component);if(g.forwardRef){var R=Te.forwardRef(function(N,P){return Te.createElement(A,F({},N,{miniStoreForwardedRef:P}))});return V()(R,I)}return V()(A,I)}}var p=function(){return p=Object.assign||function(x){for(var g,h=1,c=arguments.length;h<c;h++){g=arguments[h];for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(x[d]=g[d])}return x},p.apply(this,arguments)};function y(x){var g=x,h=[];function c(A){g=p(p({},g),A);for(var R=0;R<h.length;R++)h[R]()}function d(){return g}function I(A){return h.push(A),function(){var N=h.indexOf(A);h.splice(N,1)}}return{setState:c,getState:d,subscribe:I}}},"IP8+":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___XQSqg",flex_space_between:"flex_space_between___1K2C7",flex_box_vertical_center:"flex_box_vertical_center___3SBtI",flex_box_center_end:"flex_box_center_end___1hv7I",flex_box_column:"flex_box_column___2D6O2",Bg:"Bg___1WQc4",DivDownPlay:"DivDownPlay___2Hyig",editor:"editor___1gfhX",MultiLine:"MultiLine___2ifKf",btns:"btns___3vCHk",edit:"edit___eVdkb",add:"add___1lwwx",list:"list___1mLCD",left:"left___2qrWk",right:"right___Vd4G3",title:"title___2qvu7",fbitem:"fbitem___35fA_",fenge:"fenge___3_I-a",name:"name___2E-TT",school:"school___1b9em",time:"time___3QKbI",des:"des___WclSO",form:"form___yHtz-",btn:"btn___NrUqs",img:"img___2twGy",TopMenusDiv:"TopMenusDiv___33zlh",SrollStage:"SrollStage___1ollU",StageItem:"StageItem___1gFfs",StageItemActive:"StageItemActive___9jn5-"}},J1Xd:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___2GWAp",flex_space_between:"flex_space_between___3LGpf",flex_box_vertical_center:"flex_box_vertical_center___2nX-J",flex_box_center_end:"flex_box_center_end___aRaMn",flex_box_column:"flex_box_column___1csdj",form:"form___3oiEv",btn:"btn___Lmn3l",img:"img___1eSOH"}},JAbv:function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},JYp7:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Te});var Te;(function(ae){function X(d){return d&&typeof d=="object"&&typeof d[Symbol.iterator]=="function"}ae.is=X;const le=Object.freeze([]);function j(){return le}ae.empty=j;function*G(d){yield d}ae.single=G;function oe(d){return d||le}ae.from=oe;function V(d){return!d||d[Symbol.iterator]().next().done===!0}ae.isEmpty=V;function l(d){return d[Symbol.iterator]().next().value}ae.first=l;function F(d,I){for(const A of d)if(I(A))return!0;return!1}ae.some=F;function O(d,I){for(const A of d)if(I(A))return A;return}ae.find=O;function*C(d,I){for(const A of d)I(A)&&(yield A)}ae.filter=C;function*b(d,I){let A=0;for(const R of d)yield I(R,A++)}ae.map=b;function*p(...d){for(const I of d)for(const A of I)yield A}ae.concat=p;function*y(d){for(const I of d)for(const A of I)yield A}ae.concatNested=y;function x(d,I,A){let R=A;for(const N of d)R=I(R,N);return R}ae.reduce=x;function*g(d,I,A=d.length){for(I<0&&(I+=d.length),A<0?A+=d.length:A>d.length&&(A=d.length);I<A;I++)yield d[I]}ae.slice=g;function h(d,I=Number.POSITIVE_INFINITY){const A=[];if(I===0)return[A,d];const R=d[Symbol.iterator]();for(let N=0;N<I;N++){const P=R.next();if(P.done)return[A,ae.empty()];A.push(P.value)}return[A,{[Symbol.iterator](){return R}}]}ae.consume=h;function c(d,I,A=(R,N)=>R===N){const R=d[Symbol.iterator](),N=I[Symbol.iterator]();for(;;){const P=R.next(),D=N.next();if(P.done!==D.done)return!1;if(P.done)return!0;if(!A(P.value,D.value))return!1}}ae.equals=c})(Te||(Te={}))},KOXS:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},LRjK:function(Dt,Ne,ie){"use strict";ie.r(Ne);var Te=ie("iQDF"),ae=ie("+eQT"),X=ie("5NDa"),le=ie("5rEg"),j=ie("DjyN"),G=ie("NUBc"),oe=ie("jCWc"),V=ie("kPKH"),l=ie("5Dmo"),F=ie("3S7+"),O=ie("14J3"),C=ie("BMrR"),b=ie("+L6B"),p=ie("2/Rp"),y=ie("miYZ"),x=ie("tsqr"),g=ie("2qtc"),h=ie("kLXV"),c=ie("k1fw"),d=ie("9og8"),I=ie("y8nQ"),A=ie("Vl3Y"),R=ie("tJVT"),N=ie("WmNS"),P=ie.n(N),D=ie("q1tI"),E=ie.n(D),v=ie("ErOA"),_=ie("IP8+"),T=ie.n(_),w=ie("9Bee"),M=ie("Dz72"),Z=ie("m3rI"),z=ie("Nf5h"),L=ie("phzI"),W=ie("Ty5D"),Y=ie("9kvl"),H=ie("55Ip"),ne=ie("xKgJ"),ce=ie("1vsH"),we=ie("wd/R"),Ce=ie.n(we),Ke=function(je){var Ve,$e=je.globalSetting,Pe=je.dispatch,se=je.user,S=je.virtualSpaces,B=Object(W.i)(),J=A.a.useForm(),ue=Object(R.a)(J,1),q=ue[0],xe=B.id,We=Object(D.useState)("description"),it=Object(R.a)(We,2),be=it[0],Le=it[1],Fe=Object(D.useState)({}),ze=Object(R.a)(Fe,2),dt=ze[0],It=ze[1],Jt=Object(D.useState)({page:1,limit:10}),Bt=Object(R.a)(Jt,2),Nt=Bt[0],cn=Bt[1],sn=Object(D.useState)(0),zt=Object(R.a)(sn,2),dn=zt[0],Tn=zt[1],Se=Object(D.useState)(!0),fe=Object(R.a)(Se,2),pe=fe[0],ve=fe[1],Oe=Object(D.useState)(!1),ge=Object(R.a)(Oe,2),ye=ge[0],Re=ge[1],Me=Object(D.useState)(""),nt=Object(R.a)(Me,2),qe=nt[0],xt=nt[1],yn=Object(D.useState)([]),Pn=Object(R.a)(yn,2),An=Pn[0],$t=Pn[1],ft=Object(D.useState)(""),yt=Object(R.a)(ft,2),ut=yt[0],Ae=yt[1],Ue=Object(D.useRef)(""),vt=Object(D.useState)(!1),ht=Object(R.a)(vt,2),Qt=ht[0],nn=ht[1],Et=Object(D.useState)(!1),Rt=Object(R.a)(Et,2),Ct=Rt[0],et=Rt[1],Ut=Object(D.useState)(!1),en=Object(R.a)(Ut,2),ln=en[0],Gn=en[1],Mn=S.virtualSpacesDetails,hn=dt.name,On=dt.attachment,gn=dt.author,Wn=dt.publisher,jn=dt.number,rr=dt.publication_time,ur=dt.material_type,Sr=dt.link;Object(D.useEffect)(function(){Mr()},[xe]),Object(D.useEffect)(function(){Gi()},[be]),Object(D.useEffect)(function(){Qt||xt(Ue.current)},[Qt]);var ui=[{id:"description",name:"\u7B80\u4ECB"},{id:"directory",name:"\u76EE\u5F55"},{id:"foreword",name:"\u524D\u8A00"},{id:"feedback",name:"\u8BD5\u7528\u53CD\u9988"}],Ci={description:"\u7B80\u4ECB",directory:"\u76EE\u5F55",foreword:"\u524D\u8A00"},_n=[{name:"\u7B80\u4ECB",type:"description",topUseEidt:Object(ne.w)()&&E.a.createElement(z.e,{style:{borderRadius:"4px"},onClick:function(){nn(!0)}},"\u7F16\u8F91\u7B80\u4ECB")},{name:"\u76EE\u5F55",type:"directory",topUseEidt:Object(ne.w)()&&E.a.createElement(z.e,{style:{borderRadius:"4px"},onClick:function(){nn(!0)}},"\u7F16\u8F91\u76EE\u5F55")},{name:"\u524D\u8A00",type:"foreword",topUseEidt:Object(ne.w)()&&E.a.createElement(z.e,{style:{borderRadius:"4px"},onClick:function(){nn(!0)}},"\u7F16\u8F91\u524D\u8A00")},{name:"\u8BD5\u7528\u53CD\u9988",type:"feedback",topUseEidt:Object(ne.w)()&&E.a.createElement(z.e,{style:{borderRadius:"4px"},onClick:function(){et(!0)}},"\u589E\u52A0\u8BD5\u7528\u53CD\u9988")}],Ir=function(Cr){var gr,Jr=Object(ne.s)()||(se==null||((gr=se.userInfo)===null||gr===void 0)?void 0:gr.user_id)===Cr;return Jr},Mr=function(){var rn=Object(d.a)(P.a.mark(function Cr(){var gr;return P.a.wrap(function(Ki){for(;;)switch(Ki.prev=Ki.next){case 0:return ve(!0),Ki.next=3,Object(v.a)("/api/core_materials/".concat(xe,".json"),{method:"get"});case 3:gr=Ki.sent,(gr==null?void 0:gr.status)!==-1&&It(Object(c.a)({},gr==null?void 0:gr.data)),ve(!1);case 6:case"end":return Ki.stop()}},Cr)}));return function(){return rn.apply(this,arguments)}}(),Gi=function(){var rn=Object(d.a)(P.a.mark(function Cr(){var gr,Jr,Ki,Ar,no,ul,rd;return P.a.wrap(function(Wa){for(;;)switch(Wa.prev=Wa.next){case 0:if(ve(!0),console.log(be),!(be==="feedback")){Wa.next=9;break}return Wa.next=5,Object(v.a)("/api/core_materials/".concat(xe,"/feedbacks.json"),{method:"get"});case 5:gr=Wa.sent,(gr==null?void 0:gr.status)!==-1&&($t(gr==null||((Jr=gr.data)===null||Jr===void 0)?void 0:Jr.list),Tn(gr==null||((Ki=gr.data)===null||Ki===void 0)?void 0:Ki.size)),Wa.next=13;break;case 9:return Wa.next=11,Object(v.a)("/api/core_materials/".concat(xe,"/show_desc.json"),{method:"get",params:{column:be}});case 11:Ar=Wa.sent,(Ar==null?void 0:Ar.status)!==-1&&(xt((Ar==null||((no=Ar.data)===null||no===void 0)?void 0:no[be])||""),Ae((Ar==null||((ul=Ar.data)===null||ul===void 0)?void 0:ul[be])||""),Ue.current=(Ar==null||((rd=Ar.data)===null||rd===void 0)?void 0:rd[be])||"");case 13:ve(!1);case 14:case"end":return Wa.stop()}},Cr)}));return function(){return rn.apply(this,arguments)}}(),ai=function(){h.a.confirm({title:"\u63D0\u793A",okText:"\u786E\u5B9A",icon:!1,centered:!0,cancelText:"\u53D6\u6D88",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:function(){var Cr=Object(d.a)(P.a.mark(function Jr(){var Ki;return P.a.wrap(function(no){for(;;)switch(no.prev=no.next){case 0:return no.next=2,Object(v.a)("/api/core_materials/".concat(xe,".json"),{method:"delete"});case 2:Ki=no.sent,(Ki==null?void 0:Ki.status)!==-1&&(x.b.success("\u5220\u9664\u6210\u529F"),Y.d.push("/recommend"));case 4:case"end":return no.stop()}},Jr)}));function gr(){return Cr.apply(this,arguments)}return gr}()})},qr=function(){var rn=Object(d.a)(P.a.mark(function Cr(gr){var Jr;return P.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Ar.next=2,Object(v.a)("/api/core_materials/".concat(xe,".json"),{method:"put",body:Object(c.a)({material_type:String(ur)},gr)});case 2:Jr=Ar.sent,(Jr==null?void 0:Jr.status)!==-1&&(Mr(),x.b.success("\u7F16\u8F91\u6210\u529F"),Re(!1));case 4:case"end":return Ar.stop()}},Cr)}));return function(gr){return rn.apply(this,arguments)}}(),Pi=function(){var rn=Object(d.a)(P.a.mark(function Cr(gr){var Jr;return P.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Gn(!0),Ar.next=3,Object(v.a)("/api/core_materials/".concat(xe,"/add_feedback.json"),{method:"post",body:Object(c.a)({},gr)});case 3:Jr=Ar.sent,(Jr==null?void 0:Jr.status)!==-1&&(Mr(),x.b.success("\u589E\u52A0\u6210\u529F"),et(!1),Gi()),Gn(!1);case 6:case"end":return Ar.stop()}},Cr)}));return function(gr){return rn.apply(this,arguments)}}(),Qi=function(){var rn=Object(d.a)(P.a.mark(function Cr(){var gr,Jr;return P.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Gn(!0),gr={},gr[be]=qe,Ar.next=5,Object(v.a)("/api/core_materials/".concat(xe,"/update_desc.json"),{method:"put",body:gr});case 5:Jr=Ar.sent,(Jr==null?void 0:Jr.status)!==-1&&(Gi(),x.b.success("\u7F16\u8F91\u6210\u529F"),nn(!1)),Gn(!1);case 8:case"end":return Ar.stop()}},Cr)}));return function(){return rn.apply(this,arguments)}}();return E.a.createElement("section",null,E.a.createElement("div",{className:"".concat(T.a.Bg),style:{width:"100%",height:168,backgroundImage:"url(".concat(ie("FEOs"),")")}},E.a.createElement("div",{className:T.a.list,style:{width:1200,height:"100%",margin:"0 auto",position:"relative",color:"#fff"}},E.a.createElement("div",{style:{position:"absolute",top:"10px"}},E.a.createElement("span",{className:"primary-hover",style:{cursor:"pointer"},onClick:function(){Y.d.go(-1)}},E.a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE")),E.a.createElement("div",{className:T.a.left},E.a.createElement("img",{src:Z.a.API_SERVER+(On==null?void 0:On.url)})),E.a.createElement("div",{className:T.a.right},E.a.createElement("div",{className:"".concat(T.a.title," ").concat(T.a.MultiLine)},hn),E.a.createElement("aside",null,E.a.createElement("span",null,"\u4F5C\u8005\uFF1A",gn),E.a.createElement("span",null,"\u51FA\u7248\u793E\uFF1A",Wn),E.a.createElement("span",null,"ISBN\uFF1A",jn),E.a.createElement("span",null,"\u51FA\u7248\u65F6\u95F4\uFF1A",rr?Ce()(rr).format("YYYY-MM-DD"):"--"))),Object(ne.w)()&&E.a.createElement("div",{style:{position:"absolute",top:"10px",right:"0px"}},E.a.createElement("span",{className:"current primary-hover",onClick:function(){Re(Object(c.a)({},dt))}},E.a.createElement("i",{className:"iconfont icon-bianji-moren mr5"}),"\u7F16\u8F91"),E.a.createElement("span",{className:"current delete-hover ml20",onClick:function(){ai()}},E.a.createElement("i",{className:"iconfont icon-shanchutimu mr5"}),"\u5220\u9664")),Sr&&E.a.createElement("div",{style:{position:"absolute",top:"60px",right:"0px"}},E.a.createElement(p.a,{className:"mt25 ".concat(T.a.DivDownPlay),onClick:function(){Object(ce.S)(Sr)}},"\u5728\u7EBF\u9605\u8BFB")))),E.a.createElement(C.a,{className:T.a.TopMenusDiv,align:"middle",justify:"space-between"},E.a.createElement(C.a,{className:T.a.SrollStage},_n==null?void 0:_n.map(function(rn,Cr){return E.a.createElement(H.a,{key:Cr,className:"".concat(be===(rn==null?void 0:rn.type)&&T.a.StageItemActive," ").concat(T.a.StageItem),to:"/recommend/detail/".concat(xe),onClick:function(){Le(rn==null?void 0:rn.type),nn(!1)}},rn==null?void 0:rn.name)})),E.a.createElement(C.a,{align:"middle"},_n==null||((Ve=_n.find(function(rn){return rn.type===be}))===null||Ve===void 0)?void 0:Ve.topUseEidt)),E.a.createElement("div",{className:"mt20 pb20",style:{width:1200,margin:"0 auto"}},Qt?E.a.createElement(E.a.Fragment,null,E.a.createElement(L.a,{defaultvalue:ut,onChange:function(Cr){xt(Cr)}}),E.a.createElement(z.c,{confirmTitle:"\u4FDD\u5B58",confirmLoading:ln,confirmClick:Qi,cancelClick:function(){nn(!1)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt25"})):E.a.createElement(E.a.Fragment,null,be==="feedback"?E.a.createElement("div",null,An==null?void 0:An.map(function(rn,Cr){return E.a.createElement("div",{className:T.a.fbitem},Cr!==0&&E.a.createElement("div",{className:T.a.fenge}),E.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},E.a.createElement("div",null,E.a.createElement("span",{className:T.a.name},rn==null?void 0:rn.user_name),E.a.createElement("span",{className:T.a.school},rn==null?void 0:rn.school_name)),E.a.createElement("div",null,E.a.createElement("span",{className:T.a.time},Ce()(rn==null?void 0:rn.time).format("YYYY-MM-DD HH:mm:ss")))),E.a.createElement("div",{className:"".concat(T.a.des," ").concat(T.a.MultiLine)},E.a.createElement(F.a,{title:rn==null?void 0:rn.content},rn==null?void 0:rn.content)))}),(An==null?void 0:An.length)!=0&&E.a.createElement(C.a,{wrap:!1,align:"middle",justify:"space-between",style:{width:1200,margin:"20px auto"}},E.a.createElement(V.a,null,"\u5171\xA0",E.a.createElement("span",{style:{color:"#165DFF"}},dn||0),"\xA0\u6761\u6570\u636E"),E.a.createElement(V.a,null,E.a.createElement(G.a,{showSizeChanger:!1,showQuickJumper:!0,current:Nt.page,pageSize:Nt.limit,onChange:function(Cr,gr){Nt.page=Cr,cn(Object(c.a)({},Nt)),Mr()},total:dn||0})))):E.a.createElement(E.a.Fragment,null,qe&&E.a.createElement(w.a,{className:T.a.editor,value:qe})))),E.a.createElement(M.a,{visible:ye,title:"\u6559\u6750",onCancel:function(){return Re(!1)},onOk:qr}),E.a.createElement(h.a,{title:"\u589E\u52A0\u8BD5\u7528\u53CD\u9988",visible:Ct,onOk:function(){return q.submit()},centered:!0,onCancel:function(){return et(!1)},confirmLoading:ln,width:686,afterClose:function(){Gn(!1),q.resetFields()},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},E.a.createElement(A.a,{form:q,colon:!1,labelCol:{span:3},onFinish:Pi,className:T.a.form},E.a.createElement(A.a.Item,{label:"\u59D3\u540D",name:"user_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{max:100,message:"\u53EA\u80FD\u8F93\u516560\u4E2A\u5B57\u7B26"}]},E.a.createElement(le.a,{maxLength:100,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),E.a.createElement(A.a.Item,{label:"\u6240\u5C5E\u5B66\u6821",name:"school_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u6821"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u6821"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},E.a.createElement(le.a,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u6821"})),E.a.createElement(A.a.Item,{label:"\u53CD\u9988\u65F6\u95F4",name:"time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u53CD\u9988\u65F6\u95F4"}]},E.a.createElement(ae.a,{style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u53CD\u9988\u65F6\u95F4",format:"YYYY-MM-DD HH:mm",allowClear:!1})),E.a.createElement(A.a.Item,{label:"\u8BD5\u7528\u53CD\u9988",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BD5\u7528\u53CD\u9988"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u8BD5\u7528\u53CD\u9988"},{max:500,message:"\u53EA\u80FD\u8F93\u5165500\u4E2A\u5B57\u7B26"}]},E.a.createElement(le.a.TextArea,{maxLength:500,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u7528\u53CD\u9988",rows:6})))))};Ne.default=Object(Y.a)(function(Ie){var je=Ie.virtualSpaces,Ve=Ie.globalSetting,$e=Ie.user;return{globalSetting:Ve,virtualSpaces:je,user:$e}})(Ke)},LdHM:function(Dt,Ne,ie){"use strict";ie.d(Ne,"b",function(){return d}),ie.d(Ne,"a",function(){return A});var Te=ie("1OyB"),ae=ie("vuIU"),X=ie("Ji7U"),le=ie("LK+K"),j=ie("q1tI"),G=ie("rePB"),oe=ie("Ff2n"),V=ie("ODXe"),l=ie("4IlW"),F=ie("bX4T"),O=ie("YrtM"),C=ie("TSYQ"),b=ie.n(C),p=ie("+nKL"),y=ie("8OUc"),x=function(ne,ce){var we=ne.prefixCls,Ce=ne.id,Ke=ne.flattenOptions,Ie=ne.childrenAsData,je=ne.values,Ve=ne.searchValue,$e=ne.multiple,Pe=ne.defaultActiveFirstOption,se=ne.height,S=ne.itemHeight,B=ne.notFoundContent,J=ne.open,ue=ne.menuItemSelectedIcon,q=ne.virtual,xe=ne.onSelect,We=ne.onToggleOpen,it=ne.onActiveValue,be=ne.onScroll,Le=ne.onMouseEnter,Fe="".concat(we,"-item"),ze=Object(O.a)(function(){return Ke},[J,Ke],function(fe,pe){return pe[0]&&fe[1]!==pe[1]}),dt=j.useRef(null),It=function(pe){pe.preventDefault()},Jt=function(pe){dt.current&&dt.current.scrollTo({index:pe})},Bt=function(pe){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=ze.length,ge=0;ge<Oe;ge+=1){var ye=(pe+ge*ve+Oe)%Oe,Re=ze[ye],Me=Re.group,nt=Re.data;if(!Me&&!nt.disabled)return ye}return-1},Nt=j.useState(function(){return Bt(0)}),cn=Object(V.a)(Nt,2),sn=cn[0],zt=cn[1],dn=function(pe){zt(pe);var ve=ze[pe];if(!ve){it(null,-1);return}it(ve.data.value,pe)};j.useEffect(function(){dn(Pe!==!1?Bt(0):-1)},[ze.length,Ve]),j.useEffect(function(){var fe=setTimeout(function(){if(!$e&&J&&je.size===1){var pe=Array.from(je)[0],ve=ze.findIndex(function(Oe){var ge=Oe.data;return ge.value===pe});dn(ve),Jt(ve)}});return function(){return clearTimeout(fe)}},[J]);var Tn=function(pe){pe!==void 0&&xe(pe,{selected:!je.has(pe)}),$e||We(!1)};if(j.useImperativeHandle(ce,function(){return{onKeyDown:function(pe){var ve=pe.which;switch(ve){case l.a.UP:case l.a.DOWN:{var Oe=0;if(ve===l.a.UP?Oe=-1:ve===l.a.DOWN&&(Oe=1),Oe!==0){var ge=Bt(sn+Oe,Oe);Jt(ge),dn(ge)}break}case l.a.ENTER:{var ye=ze[sn];ye&&!ye.data.disabled?Tn(ye.data.value):Tn(void 0),J&&pe.preventDefault();break}case l.a.ESC:We(!1)}},onKeyUp:function(){},scrollTo:function(pe){Jt(pe)}}}),ze.length===0)return j.createElement("div",{role:"listbox",id:"".concat(Ce,"_list"),className:"".concat(Fe,"-empty"),onMouseDown:It},B);function Se(fe){var pe=ze[fe];if(!pe)return null;var ve=pe.data||{},Oe=ve.value,ge=ve.label,ye=ve.children,Re=Object(F.a)(ve,!0),Me=Ie?ye:ge;return pe?j.createElement("div",Object.assign({"aria-label":typeof Me=="string"?Me:null},Re,{key:fe,role:"option",id:"".concat(Ce,"_list_").concat(fe),"aria-selected":je.has(Oe)}),Oe):null}return j.createElement(j.Fragment,null,j.createElement("div",{role:"listbox",id:"".concat(Ce,"_list"),style:{height:0,width:0,overflow:"hidden"}},Se(sn-1),Se(sn),Se(sn+1)),j.createElement(p.a,{itemKey:"key",ref:dt,data:ze,height:se,itemHeight:S,fullHeight:!1,onMouseDown:It,onScroll:be,virtual:q,onMouseEnter:Le},function(fe,pe){var ve,Oe=fe.group,ge=fe.groupOption,ye=fe.data,Re=ye.label,Me=ye.key;if(Oe)return j.createElement("div",{className:b()(Fe,"".concat(Fe,"-group"))},Re!==void 0?Re:Me);var nt=ye.disabled,qe=ye.value,xt=ye.title,yn=ye.children,Pn=ye.style,An=ye.className,$t=Object(oe.a)(ye,["disabled","value","title","children","style","className"]),ft=je.has(qe),yt="".concat(Fe,"-option"),ut=b()(Fe,yt,An,(ve={},Object(G.a)(ve,"".concat(yt,"-grouped"),ge),Object(G.a)(ve,"".concat(yt,"-active"),sn===pe&&!nt),Object(G.a)(ve,"".concat(yt,"-disabled"),nt),Object(G.a)(ve,"".concat(yt,"-selected"),ft),ve)),Ae=Ie?yn:Re,Ue=!ue||typeof ue=="function"||ft;return j.createElement("div",Object.assign({},$t,{"aria-selected":ft,className:ut,title:xt,onMouseMove:function(){if(sn===pe||nt)return;dn(pe)},onClick:function(){nt||Tn(qe)},style:Pn}),j.createElement("div",{className:"".concat(yt,"-content")},Ae||qe),j.isValidElement(ue)||ft,Ue&&j.createElement(y.a,{className:"".concat(Fe,"-option-state"),customizeIcon:ue,customizeIconProps:{isSelected:ft}},ft?"\u2713":null))}))},g=j.forwardRef(x);g.displayName="OptionList";var h=g,c=function(){return null};c.isSelectOption=!0;var d=c,I=function(){return null};I.isSelectOptGroup=!0;var A=I,R=ie("VTBJ"),N=ie("Zm9Q");function P(H){var ne=H.key,ce=H.props,we=ce.children,Ce=ce.value,Ke=Object(oe.a)(ce,["children","value"]);return Object(R.a)({key:ne,value:Ce!==void 0?Ce:ne,children:we},Ke)}function D(H){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(N.a)(H).map(function(ce,we){if(!j.isValidElement(ce)||!ce.type)return null;var Ce=ce.type.isSelectOptGroup,Ke=ce.key,Ie=ce.props,je=Ie.children,Ve=Object(oe.a)(Ie,["children"]);return ne||!Ce?P(ce):Object(R.a)(Object(R.a)({key:"__RC_SELECT_GRP__".concat(Ke===null?we:Ke,"__"),label:Ke},Ve),{},{options:D(je)})}).filter(function(ce){return ce})}var E=ie("2Qr1"),v=ie("qNPg"),_=ie("U8pU"),T=ie("Kwbf"),w=ie("WKfj");function M(H){var ne=H.mode,ce=H.options,we=H.children,Ce=H.backfill,Ke=H.allowClear,Ie=H.placeholder,je=H.getInputElement,Ve=H.showSearch,$e=H.onSearch,Pe=H.defaultOpen,se=H.autoFocus,S=H.labelInValue,B=H.value,J=H.inputValue,ue=H.optionLabelProp,q=ne==="multiple"||ne==="tags",xe=Ve!==void 0?Ve:q||ne==="combobox",We=ce||D(we);if(Object(T.a)(ne!=="tags"||We.every(function(Fe){return!Fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ne==="tags"||ne==="combobox"){var it=We.some(function(Fe){return Fe.options?Fe.options.some(function(ze){return typeof("value"in ze?ze.value:ze.key)=="number"}):typeof("value"in Fe?Fe.value:Fe.key)=="number"});Object(T.a)(!it,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(ne!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(ne==="combobox"||!Ce,"`backfill` only works with `combobox` mode."),Object(T.a)(ne==="combobox"||!je,"`getInputElement` only work with `combobox` mode."),Object(T.b)(ne!=="combobox"||!je||!Ke||!Ie,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$e&&!xe&&ne!=="combobox"&&ne!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!Pe||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),B!=null){var be=Object(w.d)(B);Object(T.a)(!S||be.every(function(Fe){return Object(_.a)(Fe)==="object"&&("key"in Fe||"value"in Fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!q||Array.isArray(B),"`value` should be array when `mode` is `multiple` or `tags`")}if(we){var Le=null;Object(N.a)(we).some(function(Fe){if(!j.isValidElement(Fe)||!Fe.type)return!1;var ze=Fe.type;if(ze.isSelectOption)return!1;if(ze.isSelectOptGroup){var dt=Object(N.a)(Fe.props.children).every(function(It){return!j.isValidElement(It)||!Fe.type||It.type.isSelectOption?!0:(Le=It.type,!1)});return!dt}return Le=ze,!0}),Le&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Le.displayName||Le.name||Le,"`.")),Object(T.a)(J===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Z=M,z=Object(v.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:D,flattenOptions:E.d,getLabeledValue:E.e,filterOptions:E.b,isValueDisabled:E.g,findValueOption:E.c,warningProps:Z,fillOptionsWithMissingValue:E.a}),L=function(H){Object(X.a)(ce,H);var ne=Object(le.a)(ce);function ce(){var we;return Object(Te.a)(this,ce),we=ne.apply(this,arguments),we.selectRef=j.createRef(),we.focus=function(){we.selectRef.current.focus()},we.blur=function(){we.selectRef.current.blur()},we}return Object(ae.a)(ce,[{key:"render",value:function(){return j.createElement(z,Object.assign({ref:this.selectRef},this.props))}}]),ce}(j.Component);L.Option=d,L.OptGroup=A;var W=L,Y=Ne.c=W},MEgm:function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MI8n:function(Dt,Ne,ie){"use strict";ie.d(Ne,"c",function(){return j}),ie.d(Ne,"b",function(){return l}),ie.d(Ne,"e",function(){return F}),ie.d(Ne,"a",function(){return O}),ie.d(Ne,"d",function(){return C}),ie.d(Ne,"f",function(){return b});var Te=ie("/cxE"),ae=ie("pmY6"),X=ie("24hK"),le=ie("5Y4S"),j;(function(p){p.None=()=>ae.a.None;function y(M){return(Z,z=null,L)=>{let W=!1,Y;return Y=M(H=>W?void 0:(Y?Y.dispose():W=!0,Z.call(z,H)),null,L),W&&Y.dispose(),Y}}p.once=y;function x(M,Z){return A((z,L=null,W)=>M(Y=>z.call(L,Z(Y)),null,W))}p.map=x;function g(M,Z){return A((z,L=null,W)=>M(Y=>{Z(Y),z.call(L,Y)},null,W))}p.forEach=g;function h(M,Z){return A((z,L=null,W)=>M(Y=>Z(Y)&&z.call(L,Y),null,W))}p.filter=h;function c(M){return M}p.signal=c;function d(...M){return(Z,z=null,L)=>Object(ae.e)(...M.map(W=>W(Y=>Z.call(z,Y),null,L)))}p.any=d;function I(M,Z,z){let L=z;return x(M,W=>(L=Z(L,W),L))}p.reduce=I;function A(M){let Z;const z=new l({onFirstListenerAdd(){Z=M(z.fire,z)},onLastListenerRemove(){Z.dispose()}});return z.event}function R(M,Z,z=100,L=!1,W){let Y,H,ne,ce=0;const we=new l({leakWarningThreshold:W,onFirstListenerAdd(){Y=M(Ce=>{ce++,H=Z(H,Ce),L&&!ne&&(we.fire(H),H=void 0),clearTimeout(ne),ne=setTimeout(()=>{const Ke=H;H=void 0,ne=void 0,(!L||ce>1)&&we.fire(Ke),ce=0},z)})},onLastListenerRemove(){Y.dispose()}});return we.event}p.debounce=R;function N(M,Z=(z,L)=>z===L){let z=!0,L;return h(M,W=>{const Y=z||!Z(W,L);return z=!1,L=W,Y})}p.latch=N;function P(M,Z){return[p.filter(M,Z),p.filter(M,z=>!Z(z))]}p.split=P;function D(M,Z=!1,z=[]){let L=z.slice(),W=M(ne=>{L?L.push(ne):H.fire(ne)});const Y=()=>{L&&L.forEach(ne=>H.fire(ne)),L=null},H=new l({onFirstListenerAdd(){W||(W=M(ne=>H.fire(ne)))},onFirstListenerDidAdd(){L&&(Z?setTimeout(Y):Y())},onLastListenerRemove(){W&&W.dispose(),W=null}});return H.event}p.buffer=D;class E{constructor(M){this.event=M}map(M){return new E(x(this.event,M))}forEach(M){return new E(g(this.event,M))}filter(M){return new E(h(this.event,M))}reduce(M,Z){return new E(I(this.event,M,Z))}latch(){return new E(N(this.event))}debounce(M,Z=100,z=!1,L){return new E(R(this.event,M,Z,z,L))}on(M,Z,z){return this.event(M,Z,z)}once(M,Z,z){return y(this.event)(M,Z,z)}}function v(M){return new E(M)}p.chain=v;function _(M,Z,z=L=>L){const L=(...ne)=>H.fire(z(...ne)),W=()=>M.on(Z,L),Y=()=>M.removeListener(Z,L),H=new l({onFirstListenerAdd:W,onLastListenerRemove:Y});return H.event}p.fromNodeEventEmitter=_;function T(M,Z,z=L=>L){const L=(...ne)=>H.fire(z(...ne)),W=()=>M.addEventListener(Z,L),Y=()=>M.removeEventListener(Z,L),H=new l({onFirstListenerAdd:W,onLastListenerRemove:Y});return H.event}p.fromDOMEventEmitter=T;function w(M){return new Promise(Z=>y(M)(Z))}p.toPromise=w})(j||(j={}));class G{constructor(p){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${p}_${G._idPool++}`}start(p){this._stopWatch=new le.a(!0),this._listenerCount=p}stop(){if(this._stopWatch){const p=this._stopWatch.elapsed();this._elapsedOverall+=p,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${p.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}G._idPool=0;let oe=-1;class V{constructor(p,y=Math.random().toString(18).slice(2,5)){this.customThreshold=p,this.name=y,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(p){let y=oe;if(typeof this.customThreshold=="number"&&(y=this.customThreshold),y<=0||p<y)return;this._stacks||(this._stacks=new Map);const x=new Error().stack.split(`
`).slice(3).join(`
`),g=this._stacks.get(x)||0;if(this._stacks.set(x,g+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=y*.5;let h,c=0;for(const[d,I]of this._stacks)(!h||c<I)&&(h=d,c=I);console.warn(`[${this.name}] potential listener LEAK detected, having ${p} listeners already. MOST frequent listener (${c}):`),console.warn(h)}return()=>{const h=this._stacks.get(x)||0;this._stacks.set(x,h-1)}}}class l{constructor(p){var y;this._disposed=!1,this._options=p,this._leakageMon=oe>0?new V(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((y=this._options)===null||y===void 0?void 0:y._profName)?new G(this._options._profName):void 0}get event(){return this._event||(this._event=(p,y,x)=>{var g;this._listeners||(this._listeners=new X.a);const h=this._listeners.isEmpty();h&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const c=this._listeners.push(y?[p,y]:p);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,p,y);const d=(g=this._leakageMon)===null||g===void 0?void 0:g.check(this._listeners.size),I=Object(ae.i)(()=>{if(d&&d(),!this._disposed&&(c(),this._options&&this._options.onLastListenerRemove)){const A=this._listeners&&!this._listeners.isEmpty();A||this._options.onLastListenerRemove(this)}});return x instanceof ae.b?x.add(I):Array.isArray(x)&&x.push(I),I}),this._event}fire(p){var y,x;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new X.a);for(let g of this._listeners)this._deliveryQueue.push([g,p]);for((y=this._perfMon)===null||y===void 0||y.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[g,h]=this._deliveryQueue.shift();try{typeof g=="function"?g.call(void 0,h):g[0].call(g[1],h)}catch(c){Object(Te.f)(c)}}(x=this._perfMon)===null||x===void 0||x.stop()}}dispose(){var p,y,x,g,h;this._disposed||(this._disposed=!0,(p=this._listeners)===null||p===void 0||p.clear(),(y=this._deliveryQueue)===null||y===void 0||y.clear(),(g=(x=this._options)===null||x===void 0?void 0:x.onLastListenerRemove)===null||g===void 0||g.call(x),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class F extends l{constructor(p){super(p);this._isPaused=0,this._eventQueue=new X.a,this._mergeFn=p==null?void 0:p.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const p=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(p))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(p){this._listeners&&(this._isPaused!==0?this._eventQueue.push(p):super.fire(p))}}class O extends F{constructor(p){var y;super(p);this._delay=(y=p.delay)!==null&&y!==void 0?y:100}fire(p){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(p)}}class C{constructor(){this.buffers=[]}wrapEvent(p){return(y,x,g)=>p(h=>{const c=this.buffers[this.buffers.length-1];c?c.push(()=>y.call(x,h)):y.call(x,h)},void 0,g)}bufferEvents(p){const y=[];this.buffers.push(y);const x=p();return this.buffers.pop(),y.forEach(g=>g()),x}}class b{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=ae.a.None,this.emitter=new l({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Dt,Ne,ie){"use strict";(function(Te,ae){ie.d(Ne,"b",function(){return x}),ie.d(Ne,"i",function(){return d}),ie.d(Ne,"f",function(){return I}),ie.d(Ne,"d",function(){return A}),ie.d(Ne,"g",function(){return R}),ie.d(Ne,"h",function(){return N}),ie.d(Ne,"c",function(){return P}),ie.d(Ne,"k",function(){return D}),ie.d(Ne,"j",function(){return E}),ie.d(Ne,"a",function(){return v}),ie.d(Ne,"e",function(){return w});var X;const le="en";let j=!1,G=!1,oe=!1,V=!1,l=!1,F=!1,O=!1,C,b=le,p,y;const x=typeof self=="object"?self:typeof Te=="object"?Te:{};let g;typeof x.vscode!="undefined"&&typeof x.vscode.process!="undefined"?g=x.vscode.process:typeof ae!="undefined"&&(g=ae);const h=typeof((X=g==null?void 0:g.versions)===null||X===void 0?void 0:X.electron)=="string"&&g.type==="renderer";if(typeof navigator=="object"&&!h)y=navigator.userAgent,j=y.indexOf("Windows")>=0,G=y.indexOf("Macintosh")>=0,O=(y.indexOf("Macintosh")>=0||y.indexOf("iPad")>=0||y.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,oe=y.indexOf("Linux")>=0,F=!0,C=navigator.language,b=C;else if(typeof g=="object"){j=g.platform==="win32",G=g.platform==="darwin",oe=g.platform==="linux",V=oe&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,C=le,b=le;const M=g.env.VSCODE_NLS_CONFIG;if(M)try{const Z=JSON.parse(M),z=Z.availableLanguages["*"];C=Z.locale,b=z||le,p=Z._translationsConfigFile}catch(Z){}l=!0}else console.error("Unable to resolve platform.");let c=0;G?c=1:j?c=3:oe&&(c=2);const d=j,I=G,A=oe,R=l,N=F,P=O,D=y,E=function(){if(x.setImmediate)return x.setImmediate.bind(x);if(typeof x.postMessage=="function"&&!x.importScripts){let z=[];x.addEventListener("message",W=>{if(W.data&&W.data.vscodeSetImmediateId)for(let Y=0,H=z.length;Y<H;Y++){const ne=z[Y];if(ne.id===W.data.vscodeSetImmediateId){z.splice(Y,1),ne.callback();return}}});let L=0;return W=>{const Y=++L;z.push({id:Y,callback:W}),x.postMessage({vscodeSetImmediateId:Y},"*")}}if(typeof(g==null?void 0:g.nextTick)=="function")return g.nextTick.bind(g);const Z=Promise.resolve();return z=>Z.then(z)}(),v=G||O?2:j?1:3;let _=!0,T=!1;function w(){if(!T){T=!0;const M=new Uint8Array(2);M[0]=1,M[1]=2;const Z=new Uint16Array(M.buffer);_=Z[0]===(2<<8)+1}return _}}).call(this,ie("IyRk"),ie("Q2Ig"))},N0LK:function(Dt,Ne,ie){"use strict";ie.d(Ne,"C",function(){return Te}),ie.d(Ne,"v",function(){return X}),ie.d(Ne,"s",function(){return le}),ie.d(Ne,"t",function(){return j}),ie.d(Ne,"U",function(){return G}),ie.d(Ne,"J",function(){return oe}),ie.d(Ne,"O",function(){return V}),ie.d(Ne,"p",function(){return l}),ie.d(Ne,"T",function(){return F}),ie.d(Ne,"q",function(){return O}),ie.d(Ne,"N",function(){return C}),ie.d(Ne,"M",function(){return b}),ie.d(Ne,"Q",function(){return p}),ie.d(Ne,"u",function(){return y}),ie.d(Ne,"x",function(){return x}),ie.d(Ne,"I",function(){return g}),ie.d(Ne,"f",function(){return h}),ie.d(Ne,"h",function(){return c}),ie.d(Ne,"g",function(){return d}),ie.d(Ne,"i",function(){return I}),ie.d(Ne,"G",function(){return A}),ie.d(Ne,"H",function(){return R}),ie.d(Ne,"r",function(){return N}),ie.d(Ne,"R",function(){return P}),ie.d(Ne,"d",function(){return D}),ie.d(Ne,"e",function(){return E}),ie.d(Ne,"E",function(){return v}),ie.d(Ne,"F",function(){return _}),ie.d(Ne,"j",function(){return T}),ie.d(Ne,"z",function(){return w}),ie.d(Ne,"K",function(){return Z}),ie.d(Ne,"L",function(){return z}),ie.d(Ne,"m",function(){return W}),ie.d(Ne,"k",function(){return H}),ie.d(Ne,"A",function(){return ce}),ie.d(Ne,"a",function(){return we}),ie.d(Ne,"n",function(){return Ce}),ie.d(Ne,"l",function(){return Ke}),ie.d(Ne,"D",function(){return Ie}),ie.d(Ne,"B",function(){return je}),ie.d(Ne,"b",function(){return Ve}),ie.d(Ne,"S",function(){return $e}),ie.d(Ne,"o",function(){return Pe}),ie.d(Ne,"P",function(){return se}),ie.d(Ne,"w",function(){return S}),ie.d(Ne,"c",function(){return B}),ie.d(Ne,"y",function(){return q});function Te(be){return!be||typeof be!="string"?!0:be.trim().length===0}const ae=/{(\d+)}/g;function X(be,...Le){return Le.length===0?be:be.replace(ae,function(Fe,ze){const dt=parseInt(ze,10);return isNaN(dt)||dt<0||dt>=Le.length?Fe:Le[dt]})}function le(be){return be.replace(/[<>&]/g,function(Le){switch(Le){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Le}})}function j(be){return be.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function G(be,Le=" "){const Fe=oe(be,Le);return V(Fe,Le)}function oe(be,Le){if(!be||!Le)return be;const Fe=Le.length;if(Fe===0||be.length===0)return be;let ze=0;for(;be.indexOf(Le,ze)===ze;)ze=ze+Fe;return be.substring(ze)}function V(be,Le){if(!be||!Le)return be;const Fe=Le.length,ze=be.length;if(Fe===0||ze===0)return be;let dt=ze,It=-1;for(;!(It=be.lastIndexOf(Le,dt-1),It===-1||It+Fe!==dt);){if(It===0)return"";dt=It}return be.substring(0,dt)}function l(be){return be.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function F(be){return be.replace(/\*/g,"")}function O(be,Le,Fe={}){if(!be)throw new Error("Cannot create regex from empty string");Le||(be=j(be)),Fe.wholeWord&&(/\B/.test(be.charAt(0))||(be="\\b"+be),/\B/.test(be.charAt(be.length-1))||(be=be+"\\b"));let ze="";return Fe.global&&(ze+="g"),Fe.matchCase||(ze+="i"),Fe.multiline&&(ze+="m"),Fe.unicode&&(ze+="u"),new RegExp(be,ze)}function C(be){if(be.source==="^"||be.source==="^$"||be.source==="$"||be.source==="^\\s*$")return!1;const Le=be.exec("");return!!(Le&&be.lastIndex===0)}function b(be){return(be.global?"g":"")+(be.ignoreCase?"i":"")+(be.multiline?"m":"")+(be.unicode?"u":"")}function p(be){return be.split(/\r\n|\r|\n/)}function y(be){for(let Le=0,Fe=be.length;Le<Fe;Le++){const ze=be.charCodeAt(Le);if(ze!==32&&ze!==9)return Le}return-1}function x(be,Le=0,Fe=be.length){for(let ze=Le;ze<Fe;ze++){const dt=be.charCodeAt(ze);if(dt!==32&&dt!==9)return be.substring(Le,ze)}return be.substring(Le,Fe)}function g(be,Le=be.length-1){for(let Fe=Le;Fe>=0;Fe--){const ze=be.charCodeAt(Fe);if(ze!==32&&ze!==9)return Fe}return-1}function h(be,Le){return be<Le?-1:be>Le?1:0}function c(be,Le,Fe=0,ze=be.length,dt=0,It=Le.length){for(;Fe<ze&&dt<It;Fe++,dt++){let Nt=be.charCodeAt(Fe),cn=Le.charCodeAt(dt);if(Nt<cn)return-1;if(Nt>cn)return 1}const Jt=ze-Fe,Bt=It-dt;return Jt<Bt?-1:Jt>Bt?1:0}function d(be,Le){return I(be,Le,0,be.length,0,Le.length)}function I(be,Le,Fe=0,ze=be.length,dt=0,It=Le.length){for(;Fe<ze&&dt<It;Fe++,dt++){let Nt=be.charCodeAt(Fe),cn=Le.charCodeAt(dt);if(Nt===cn)continue;if(Nt>=128||cn>=128)return c(be.toLowerCase(),Le.toLowerCase(),Fe,ze,dt,It);A(Nt)&&(Nt-=32),A(cn)&&(cn-=32);const sn=Nt-cn;if(sn===0)continue;return sn}const Jt=ze-Fe,Bt=It-dt;return Jt<Bt?-1:Jt>Bt?1:0}function A(be){return be>=97&&be<=122}function R(be){return be>=65&&be<=90}function N(be,Le){return be.length===Le.length&&I(be,Le)===0}function P(be,Le){const Fe=Le.length;return Le.length>be.length?!1:I(be,Le,0,Fe)===0}function D(be,Le){let Fe,ze=Math.min(be.length,Le.length);for(Fe=0;Fe<ze;Fe++)if(be.charCodeAt(Fe)!==Le.charCodeAt(Fe))return Fe;return ze}function E(be,Le){let Fe,ze=Math.min(be.length,Le.length);const dt=be.length-1,It=Le.length-1;for(Fe=0;Fe<ze;Fe++)if(be.charCodeAt(dt-Fe)!==Le.charCodeAt(It-Fe))return Fe;return ze}function v(be){return 55296<=be&&be<=56319}function _(be){return 56320<=be&&be<=57343}function T(be,Le){return(be-55296<<10)+(Le-56320)+65536}function w(be,Le,Fe){const ze=be.charCodeAt(Fe);if(v(ze)&&Fe+1<Le){const dt=be.charCodeAt(Fe+1);if(_(dt))return T(ze,dt)}return ze}function M(be,Le){const Fe=be.charCodeAt(Le-1);if(_(Fe)&&Le>1){const ze=be.charCodeAt(Le-2);if(v(ze))return T(ze,Fe)}return Fe}function Z(be,Le){const Fe=J.getInstance(),ze=Le,dt=be.length,It=w(be,dt,Le);Le+=It>=65536?2:1;let Jt=Fe.getGraphemeBreakType(It);for(;Le<dt;){const Bt=w(be,dt,Le),Nt=Fe.getGraphemeBreakType(Bt);if(B(Jt,Nt))break;Le+=Bt>=65536?2:1,Jt=Nt}return Le-ze}function z(be,Le){const Fe=J.getInstance(),ze=Le,dt=M(be,Le);Le-=dt>=65536?2:1;let It=Fe.getGraphemeBreakType(dt);for(;Le>0;){const Jt=M(be,Le),Bt=Fe.getGraphemeBreakType(Jt);if(B(Bt,It))break;Le-=Jt>=65536?2:1,It=Bt}return ze-Le}const L=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(be){return L.test(be)}const Y=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function H(be){return Y.test(be)}const ne=/^[\t\n\r\x20-\x7E]*$/;function ce(be){return ne.test(be)}const we=/[\u2028\u2029]/;function Ce(be){return we.test(be)}function Ke(be){for(let Le=0,Fe=be.length;Le<Fe;Le++)if(Ie(be.charCodeAt(Le)))return!0;return!1}function Ie(be){return be=+be,be>=11904&&be<=55215||be>=63744&&be<=64255||be>=65281&&be<=65374}function je(be){return be>=127462&&be<=127487||be===8986||be===8987||be===9200||be===9203||be>=9728&&be<=10175||be===11088||be===11093||be>=127744&&be<=128591||be>=128640&&be<=128764||be>=128992&&be<=129003||be>=129280&&be<=129535||be>=129648&&be<=129750}const Ve=String.fromCharCode(65279);function $e(be){return!!(be&&be.length>0&&be.charCodeAt(0)===65279)}function Pe(be,Le=!1){return be?(Le&&(be=be.replace(/\\./g,"")),be.toLowerCase()!==be):!1}function se(be){const Le=90-65+1;return be=be%(2*Le),be<Le?String.fromCharCode(97+be):String.fromCharCode(65+be-Le)}function S(be){const Le=J.getInstance();return Le.getGraphemeBreakType(be)}function B(be,Le){return be===0?Le!==5&&Le!==7:be===2&&Le===3?!1:be===4||be===2||be===3||(Le===4||Le===2||Le===3)?!0:be===8&&(Le===8||Le===9||Le===11||Le===12)||((be===11||be===9)&&(Le===9||Le===10)||((be===12||be===10)&&Le===10||(Le===5||Le===13||(Le===7||(be===1||be===13&&Le===14)))))?!1:!(be===6&&Le===6)}class J{constructor(){this._data=ue()}static getInstance(){return J._INSTANCE||(J._INSTANCE=new J),J._INSTANCE}getGraphemeBreakType(be){if(be<32)return be===10?3:be===13?2:4;if(be<127)return 0;const Le=this._data,Fe=Le.length/3;let ze=1;for(;ze<=Fe;)if(be<Le[3*ze])ze=2*ze;else if(be>Le[3*ze+1])ze=2*ze+1;else return Le[3*ze+2];return 0}}J._INSTANCE=null;function ue(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function q(be,Le){if(be===0)return 0;const Fe=xe(be,Le);if(Fe!==void 0)return Fe;const ze=M(Le,be);return be-=We(ze),be}function xe(be,Le){let Fe=M(Le,be);for(be-=We(Fe);it(Fe)||Fe===65039||Fe===8419;){if(be===0)return;Fe=M(Le,be),be-=We(Fe)}if(!je(Fe))return;if(be>=0){const ze=M(Le,be);ze===8205&&(be-=We(ze))}return be}function We(be){return be>=65536?2:1}function it(be){return 127995<=be&&be<=127999}},NQs2:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB",img_noactive:"img_noactive___s1naU",img_active:"img_active___11s7p",input_warp:"input_warp___3Y7JU"}},NReP:function(Dt,Ne,ie){"use strict";var Te=ie("DZo9"),ae=ie("8z0m"),X=ie("0Owb"),le=ie("14J3"),j=ie("BMrR"),G=ie("k1fw"),oe=ie("9og8"),V=ie("miYZ"),l=ie("tsqr"),F=ie("tJVT"),O=ie("PpiC"),C=ie("WmNS"),b=ie.n(C),p=ie("q1tI"),y=ie.n(p),x=ie("m3rI"),g=ie("jN4g"),h=ie("Nf5h"),c=function(I){var A,R,N=I.ButtonText,P=I.ButtonOptions,D=I.ImgStyle,E=I.ImgClassName,v=Object(O.a)(I,["ButtonText","ButtonOptions","ImgStyle","ImgClassName"]),_=Object(p.useState)(null),T=Object(F.a)(_,2),w=T[0],M=T[1],Z={maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:function(W){var Y=W.size/1024/1024;return Y==0?(l.b.error("".concat(W.name," \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(Y==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)")),Promise.reject()):Promise.resolve()},onChange:function(W){var Y=["uploading","done","removed"];if(Y.includes(W.file.status)&&M(W.file),W.file.status=="done"){var H,ne;v==null||v.onChange((H=W.file)===null||H===void 0||((ne=H.response)===null||ne===void 0)?void 0:ne.id)}},onRemove:function(){var L=Object(oe.a)(b.a.mark(function Y(H){return b.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:z();case 1:case"end":return ce.stop()}},Y)}));function W(Y){return L.apply(this,arguments)}return W}(),action:"".concat(x.a.API_SERVER,"/api/attachments.json")},z=function(){M(null),v==null||v.onChange(null)};return Object(p.useEffect)(function(){(v==null?void 0:v.value)&&M({response:{id:v==null?void 0:v.value}})},[v==null?void 0:v.value]),y.a.createElement("div",{id:(v==null?void 0:v.scrollId)||""},w!=null&&(A=w.response)!==null&&A!==void 0&&A.id?y.a.createElement(j.a,{align:"middle",justify:"center",className:E,style:Object(G.a)(Object(G.a)({},{position:"relative",width:400,backgroundColor:"#f4f3f4"}),D)},y.a.createElement("img",{src:x.a.API_SERVER+"/api/attachments/"+(w==null||((R=w.response)===null||R===void 0)?void 0:R.id),alt:"avatar",style:{width:"100%"}}),y.a.createElement("div",{style:{position:"absolute",right:"-6px",top:"-6px",cursor:"pointer",width:16,height:16,borderRadius:"50%",backgroundColor:"#fff"}},y.a.createElement(g.a,{onClick:Object(oe.a)(b.a.mark(function L(){return b.a.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:z();case 1:case"end":return Y.stop()}},L)})),style:{fontSize:"16px",color:"red"}}))):y.a.createElement(ae.a,Z,y.a.createElement(h.e,Object(X.a)({style:Object(G.a)({borderRadius:"2px"},P==null?void 0:P.style)},P),N)))};Ne.a=c},Nf5h:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return l}),ie.d(Ne,"i",function(){return y}),ie.d(Ne,"l",function(){return c}),ie.d(Ne,"f",function(){return R}),ie.d(Ne,"j",function(){return E}),ie.d(Ne,"d",function(){return We}),ie.d(Ne,"b",function(){return ze}),ie.d(Ne,"h",function(){return Bt}),ie.d(Ne,"g",function(){return zt}),ie.d(Ne,"k",function(){return ye}),ie.d(Ne,"e",function(){return ut}),ie.d(Ne,"c",function(){return Rt});var Te=ie("5NDa"),ae=ie("5rEg"),X=ie("tJVT"),le=ie("q1tI"),j=ie.n(le),G=ie("NQs2"),oe=ie.n(G),V=function(et){var Ut=et.dataSource,en=Ut===void 0?[]:Ut,ln=et.bannerImg,Gn=et.img,Mn=et.imgWidth,hn=Mn===void 0?346:Mn,On=et.title,gn=et.sunTitle,Wn=et.bannerExtraContent,jn=et.placeholder,rr=et.onChange,ur=Object(le.useState)(""),Sr=Object(X.a)(ur,2),ui=Sr[0],Ci=Sr[1];return j.a.createElement("div",{className:oe.a.banner,style:{backgroundImage:"url('".concat(ln,"')"),backgroundPosition:"center",backgroundSize:"cover"}},j.a.createElement("div",{className:oe.a.content},j.a.createElement("aside",null,j.a.createElement("p",{style:{marginBottom:"".concat(en.length==0?"0":"")}},j.a.createElement("b",null,On),j.a.createElement("span",null,gn)),en.length>0&&j.a.createElement("div",{className:oe.a.btns},en.map(function(_n,Ir){return _n.buttonShow&&j.a.createElement(j.a.Fragment,null,_n.Button?_n.Button:j.a.createElement("div",{key:Ir,onClick:_n.click},j.a.createElement("img",{src:_n.img,className:oe.a.img_noactive}),j.a.createElement("img",{src:_n.img_active,className:oe.a.img_active}),_n.name))})),Wn),en.length>0&&j.a.createElement("div",{className:oe.a.input_warp},j.a.createElement(ae.a,{value:ui,onChange:function(Ir){Ci(Ir.target.value)},placeholder:jn,onPressEnter:function(){return rr(ui)},color:"#fff"}),j.a.createElement("i",{onClick:function(){return rr(ui)},className:"iconfont icon-sousuo9 font14 pl10 current"}))))},l=V,F=ie("6nfa"),O=ie.n(F),C=ie("TSYQ"),b=ie.n(C),p=function(et){var Ut=et.dataSource,en=Ut===void 0?[]:Ut,ln=et.value,Gn=et.onChange,Mn=et.className,hn=et.title,On=et.titleWidth,gn=On===void 0?56:On,Wn=et.style,jn=Wn===void 0?{}:Wn,rr=et.fontColor,ur=rr===void 0?"#6A7283":rr,Sr=et.isId,ui=Sr===void 0?!1:Sr,Ci=Object(le.useState)(0),_n=Object(X.a)(Ci,2),Ir=_n[0],Mr=_n[1],Gi=Object(le.useState)(!1),ai=Object(X.a)(Gi,2),qr=ai[0],Pi=ai[1],Qi=Object(le.useRef)(null);return Object(le.useEffect)(function(){if(en.length!==0){var rn;(Qi==null||((rn=Qi.current)===null||rn===void 0)?void 0:rn.clientHeight)>98?Mr(1):Mr(0)}en.length===0&&Mr(0)},[en]),j.a.createElement("div",{className:b()(O.a.row,Mn),style:jn},j.a.createElement("div",{style:{width:gn,marginTop:qr?12:4},className:O.a.title},hn),j.a.createElement("div",{className:qr?"".concat(O.a.tagsWrap," ").concat(O.a.tagsBorderWrap):O.a.tagsWrap},j.a.createElement("div",{className:O.a.bar,style:Ir>0?{height:Ir===1?100:"auto",overflow:Ir===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},j.a.createElement("div",{className:O.a.name,ref:Qi},en==null?void 0:en.map(function(rn){return j.a.createElement("span",{onClick:function(){return Gn(ui?rn.id:rn.name)},key:ui?rn.id:rn.name,title:rn.name,style:{color:ur},className:ln===(ui?rn.id:rn.name)?O.a.active:""},rn.name)}))),!!Ir&&j.a.createElement(le.Fragment,null,Ir===1?j.a.createElement("div",{onClick:function(){var Cr;Mr(2),(Qi==null||((Cr=Qi.current)===null||Cr===void 0)?void 0:Cr.clientHeight)>205?Pi(!0):Pi(!1)},className:O.a.action},"\u5C55\u5F00",j.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):j.a.createElement("div",{onClick:function(){Mr(1),Pi(!1)},className:O.a.action},"\u6536\u8D77",j.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y=p,x=ie("cz0n"),g=ie.n(x),h=function(et){var Ut=et.dataSource,en=Ut===void 0?[]:Ut,ln=et.value,Gn=et.onChange,Mn=et.className;return j.a.createElement("div",{className:b()(g.a.tabs,Mn)},en.map(function(hn){return j.a.createElement("span",{onClick:function(){return Gn(hn.id)},className:ln===hn.id?g.a.active:"",key:hn.id},hn.name)}))},c=h,d=ie("KOXS"),I=ie.n(d),A=function(et){var Ut,en=et.dataSource,ln=en===void 0?[]:en,Gn=et.value,Mn=et.onChange,hn=et.className,On=et.style,gn=On===void 0?{}:On,Wn=et.placeholder,jn=Object(le.useState)(""),rr=Object(X.a)(jn,2),ur=rr[0],Sr=rr[1],ui=Object(le.useState)(""),Ci=Object(X.a)(ui,2),_n=Ci[0],Ir=Ci[1];Object(le.useEffect)(function(){var ai;(ai=JSON.stringify(Gn))!==null&&ai!==void 0&&ai.includes("{")?(Sr(Gn.id),Ir(Gn.value)):Ir(Gn)},[Gn]);var Mr=function(){Mn(_n||null,ur||"")},Gi=function(qr){if(qr===ur)return;Sr(qr),Mn(_n,qr)};return j.a.createElement("div",{className:b()(I.a.input,hn),style:gn},!!ln.length&&j.a.createElement("div",{className:I.a.dropdown},j.a.createElement("div",{className:I.a.text},(Ut=ln.find(function(ai){return ai.id===ur}))===null||Ut===void 0?void 0:Ut.name,j.a.createElement("i",{className:"iconfont icon-zhankai4"}),j.a.createElement("b",{className:I.a.b1}),j.a.createElement("b",{className:I.a.b2})),j.a.createElement("div",{className:I.a.menu},ln.map(function(ai,qr){return j.a.createElement("div",{key:qr,onClick:function(){return Gi(ai.id)}},ai.name)}))),j.a.createElement(ae.a,{onPressEnter:Mr,value:_n,onChange:function(qr){return Ir(qr.target.value||"")},bordered:!1,placeholder:Wn}),j.a.createElement("i",{onClick:Mr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=A,N=ie("f9pc"),P=ie.n(N),D=function(et){var Ut=et.value,en=et.onChange,ln=et.className,Gn=et.total,Mn=et.pageSize,hn=et.style,On=hn===void 0?{}:hn,gn=Ut<2,Wn=Ut>=Math.ceil(Gn/Mn);return Gn<=Mn?j.a.createElement(j.a.Fragment,null):j.a.createElement("div",{className:b()(P.a.quickPager,ln),style:On},j.a.createElement("div",{onClick:function(){gn||en(Ut-1,"prev")},className:gn?P.a.disabled:""},"\u4E0A\u4E00\u9875"),j.a.createElement("div",{onClick:function(){Wn||en(Ut+1,"next")},className:Wn?P.a.disabled:""},"\u4E0B\u4E00\u9875"))},E=D,v=ie("T2oS"),_=ie("W9HT"),T=ie("pC0b"),w=ie("GzdX"),M=ie("5Dmo"),Z=ie("3S7+"),z=ie("Oe0F"),L=ie.n(z),W=ie("m3rI"),Y=ie("1vsH"),H=ie("JAbv"),ne=ie.n(H),ce=ie("Bq7L"),we=ie.n(ce),Ce=ie("MEgm"),Ke=ie.n(Ce),Ie=ie("BdwD"),je=function(et){var Ut=et.className,en=et.dataSource,ln=en===void 0?[]:en,Gn=et.col,Mn=Gn===void 0?4:Gn,hn=et.right,On=et.bottom,gn=On===void 0?23:On,Wn=et.precision,jn=Wn===void 0?0:Wn,rr=et.wrapWidth,ur=rr===void 0?1200:rr,Sr=et.trackEventItems,ui=et.loading,Ci=Math.floor((ur-(Mn-1)*hn)/Mn);return j.a.createElement(_.a,{spinning:ui},j.a.createElement("div",{className:b()(L.a.list,Ut)},!!ln.length&&ln.map(function(_n,Ir){var Mr=_n.name,Gi=_n.id,ai=_n.identifier,qr=_n.power,Pi=_n.cover_image_id,Qi=_n.pic;return j.a.createElement("div",{className:L.a.wrap,key:Gi,style:{width:Ci,marginRight:(1+Ir)%Mn===0?0:hn+jn,marginBottom:gn}},j.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(ai,"/challenges"),className:L.a.li,onClick:function(Cr){Cr.preventDefault(),Sr&&Object(Y.db)([Sr]),qr&&Object(Y.S)("/shixuns/".concat(ai,"/challenges"))}},j.a.createElement("div",{className:L.a.img},j.a.createElement("img",{className:L.a.cover,src:Pi?"".concat(W.a.API_SERVER,"/api/attachments/").concat(Pi):"".concat(W.a.IMG_SERVER,"/").concat(Qi)}),_n.is_jupyter&&j.a.createElement("img",{className:L.a.sign,src:ne.a}),_n.is_jupyter_lab&&j.a.createElement("img",{className:L.a.sign,src:we.a}),_n.is_unity_3d&&j.a.createElement("img",{className:L.a.sign,src:Ke.a})),j.a.createElement("div",{className:L.a.name},j.a.createElement(Z.a,{title:Mr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},j.a.createElement("span",{className:L.a.e},Mr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),j.a.createElement("div",{className:L.a.tags},j.a.createElement(Z.a,{placement:"bottom",title:"\u5173\u5361\u6570"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),j.a.createElement("span",null,_n.challenges_count))),!!_n.myshixuns_count&&j.a.createElement(Z.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),j.a.createElement("span",null,_n.myshixuns_count))),j.a.createElement(Z.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},j.a.createElement("span",null,j.a.createElement("span",null,_n.level))),j.a.createElement("div",{className:L.a.rate},j.a.createElement(w.a,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),j.a.createElement("span",null,"\xA0",_n.score_info?"".concat(_n.score_info,"\u5206"):"5\u5206")))),!qr&&j.a.createElement("div",{className:L.a.lockWrap},j.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),j.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ln.length&&j.a.createElement(Ie.a,null)))},Ve=je,$e=ie("ZJlW"),Pe=ie.n($e),se=ie("z4EP"),S=ie.n(se),B=ie("+GGh"),J=ie.n(B),ue=ie("cFMs"),q=ie.n(ue),xe=function(et){var Ut=et.className,en=et.dataSource,ln=en===void 0?[]:en,Gn=et.col,Mn=Gn===void 0?4:Gn,hn=et.right,On=et.bottom,gn=On===void 0?23:On,Wn=et.precision,jn=Wn===void 0?0:Wn,rr=et.wrapWidth,ur=rr===void 0?1200:rr,Sr=et.trackEventItems,ui=et.loading,Ci=Math.floor((ur-(Mn-1)*hn)/Mn);return j.a.createElement(_.a,{spinning:ui},j.a.createElement("div",{className:b()(Pe.a.list,Ut)},!!ln.length&&ln.map(function(_n,Ir){var Mr=_n.name,Gi=_n.id,ai=_n.identifier,qr=_n.featured,Pi=_n.school_name,Qi=_n.image_url,rn=_n.excellent;return j.a.createElement("div",{key:Gi,className:Pe.a.wrap,style:{width:Ci,marginRight:(1+Ir)%Mn===0?0:hn+jn,marginBottom:gn}},j.a.createElement("a",{target:"_blank",href:"/paths/".concat(ai),className:Pe.a.li,onClick:function(gr){gr.preventDefault(),Sr&&Object(Y.db)([Sr]),Object(Y.S)("/paths/".concat(ai))}},j.a.createElement("div",{className:Pe.a.img},j.a.createElement("img",{className:Pe.a.cover,src:"".concat(W.a.IMG_SERVER,"/").concat(Qi)}),qr===1&&j.a.createElement("img",{className:Pe.a.sign,src:S.a}),qr===2&&j.a.createElement("img",{className:Pe.a.sign,src:""}),qr===3&&j.a.createElement("img",{className:Pe.a.sign,src:J.a}),qr===4&&j.a.createElement("img",{className:Pe.a.sign,src:""}),qr===5&&j.a.createElement("img",{className:Pe.a.sign,src:q.a})),j.a.createElement("div",{className:Pe.a.name},j.a.createElement(Z.a,{title:Mr},j.a.createElement("span",{className:Pe.a.e},Mr))),j.a.createElement(Z.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Pi)},j.a.createElement("div",{className:Pe.a.unit},j.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Pi)),j.a.createElement("div",{className:Pe.a.tags},j.a.createElement(Z.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),j.a.createElement("span",null,_n.stages_count))),j.a.createElement(Z.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),j.a.createElement("span",null,_n.members_count))),rn&&j.a.createElement("div",{className:Pe.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!ln.length&&j.a.createElement(Ie.a,null)))},We=xe,it=ie("iL++"),be=ie.n(it),Le=ie("xiVL"),Fe=function(et){var Ut=et.className,en=et.dataSource,ln=en===void 0?[]:en,Gn=et.col,Mn=Gn===void 0?4:Gn,hn=et.right,On=et.bottom,gn=On===void 0?23:On,Wn=et.precision,jn=Wn===void 0?0:Wn,rr=et.wrapWidth,ur=rr===void 0?1200:rr,Sr=et.trackEventItems,ui=et.loading,Ci=Math.floor((ur-(Mn-1)*hn)/Mn);return j.a.createElement(_.a,{spinning:ui},j.a.createElement("div",{className:b()(be.a.list,Ut)},!!ln.length&&ln.map(function(_n,Ir){var Mr=_n.subject_identifier,Gi=_n.id,ai=_n.identifier,qr=_n.power,Pi=_n.is_public!=0&&_n.is_public;return j.a.createElement("div",{className:be.a.wrap,key:Gi,style:{width:Ci,marginRight:(1+Ir)%Mn===0?0:hn+jn,marginBottom:gn}},j.a.createElement("a",{className:be.a.li,onClick:function(rn){rn.preventDefault()}},j.a.createElement("div",{className:be.a.top},j.a.createElement(Z.a,{title:_n.name},j.a.createElement("div",{className:be.a.name},_n.name)),j.a.createElement("img",{className:be.a.img,src:W.a.IMG_SERVER+"/images/"+_n.avatar_url}),j.a.createElement("div",{className:be.a.text},_n.creator),Mr&&j.a.createElement("div",{className:be.a.btns},j.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),j.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Pi&&j.a.createElement("div",{className:be.a.sign},"\u516C\u5F00")),j.a.createElement("div",{className:be.a.bottom},_n.visits>0&&j.a.createElement(Z.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-liulanyan"}),j.a.createElement("span",null,_n.visits))),_n.course_members_count>0&&j.a.createElement(Z.a,{title:"\u6210\u5458",placement:"bottom"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-chengyuan"}),_n.course_members_count)),_n.tasks_count>0&&j.a.createElement(Z.a,{title:"\u4F5C\u4E1A",placement:"bottom"},j.a.createElement("span",null,j.a.createElement("i",{className:"iconfont icon-zuoye"}),_n.tasks_count)),_n.is_end?j.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):j.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),j.a.createElement("div",{className:be.a.lockWrap},_n.is_accessible?j.a.createElement(j.a.Fragment,null,Mr&&j.a.createElement("div",{onClick:function(){return Object(Y.S)("/paths/".concat(Mr))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),j.a.createElement("div",{onClick:function(rn){Sr&&Object(Y.db)([Sr]),Object(Y.S)(_n.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):j.a.createElement(j.a.Fragment,null,j.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),j.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ln.length&&j.a.createElement(Ie.a,null)))},ze=Fe,dt=ie("f0W+"),It=ie.n(dt),Jt=function(et){var Ut=et.dataSource,en=Ut===void 0?[]:Ut,ln=et.value,Gn=et.onChange,Mn=et.className,hn=et.style,On=hn===void 0?{}:hn,gn=et.tabBarExtraContent;return j.a.createElement("div",{className:b()(It.a.tabs,Mn),style:On},j.a.createElement("div",{className:It.a.tabsWrap},en.map(function(Wn,jn){return j.a.createElement("div",{onClick:function(){return Gn(Wn.id)},className:ln===Wn.id?It.a.active:"",key:jn},Wn.name)})),j.a.createElement("div",{className:It.a.tabBar},gn))},Bt=Jt,Nt=ie("9JIy"),cn=ie.n(Nt),sn=function(et){var Ut=et.className,en=et.style,ln=en===void 0?{}:en,Gn=et.children;return j.a.createElement("div",{className:b()(cn.a.table,Ut),style:ln},Gn)},zt=sn,dn=ie("qVdP"),Tn=ie("jsC+"),Se=ie("lUTK"),fe=ie("BvKs"),pe=ie("8WcF"),ve=ie.n(pe),Oe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ge=function(et){var Ut,en=et.sortValue,ln=et.dropValue,Gn=et.className,Mn=et.onSort,hn=et.onDrop,On=et.dataSource,gn=On===void 0?Oe:On;return j.a.createElement("div",{className:b()(ve.a.orderWrap,Gn)},j.a.createElement(Tn.a,{overlay:j.a.createElement(fe.a,null,gn.map(function(Wn,jn){return j.a.createElement(fe.a.Item,{key:jn,onClick:function(){return hn(Wn.id)}},Wn.name)}))},j.a.createElement("span",{className:ve.a.orderTextWrap},(Ut=gn.find(function(Wn){return ln===Wn.id}))===null||Ut===void 0?void 0:Ut.name)),j.a.createElement("span",{className:ve.a.orderIconWrap},j.a.createElement("span",{className:ve.a.orderAsc},j.a.createElement("i",{className:en==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(ve.a.cursorPointer," ").concat(ve.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(ve.a.cursorPointer),onClick:function(){return Mn(en==="asc"?"desc":"asc")}})),j.a.createElement("span",{className:ve.a.orderDesc},j.a.createElement("i",{className:en==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(ve.a.cursorPointer," ").concat(ve.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(ve.a.cursorPointer),onClick:function(){return Mn(en==="asc"?"desc":"asc")}}))))},ye=ge,Re=ie("+L6B"),Me=ie("2/Rp"),nt=ie("0Owb"),qe=ie("9og8"),xt=ie("PpiC"),yn=ie("WmNS"),Pn=ie.n(yn),An=ie("siWv"),$t=ie.n(An),ft=ie("LvDl"),yt=function(et){var Ut=et.className,en=et.style,ln=et.children,Gn=et.loading,Mn=Gn===void 0?!1:Gn,hn=et.openLoading,On=et.onClick,gn=On===void 0?function(){}:On,Wn=et.size,jn=Wn===void 0?"middle":Wn,rr=et.shape,ur=rr===void 0?"round":rr,Sr=et.type,ui=Sr===void 0?"default":Sr,Ci=Object(xt.a)(et,["className","style","children","loading","openLoading","onClick","size","shape","type"]),_n=Object(le.useState)(!1),Ir=Object(X.a)(_n,2),Mr=Ir[0],Gi=Ir[1];return j.a.createElement(Me.a,Object(nt.a)({onClick:Object(ft.throttle)(function(){var ai=Object(qe.a)(Pn.a.mark(function qr(Pi){return Pn.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return hn&&Gi(!0),rn.prev=1,rn.next=4,gn(Pi);case 4:rn.next=9;break;case 6:rn.prev=6,rn.t0=rn.catch(1),console.log("error",rn.t0);case 9:hn&&Gi(!1);case 10:case"end":return rn.stop()}},qr,null,[[1,6]])}));return function(qr){return ai.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:b()($t.a.btn,$t.a["".concat(jn,"-").concat(ur)],Ut),style:en,size:jn,shape:ur,type:ui,loading:Mr||Mn},Ci),ln)},ut=yt,Ae=ie("+oxA"),Ue=ie.n(Ae),vt=function(et){var Ut=et.className,en=et.style,ln=et.children,Gn=ln===void 0?null:ln,Mn=et.onClick,hn=et.title;return j.a.createElement("div",{className:b()(Ue.a.head,Ut),style:en},j.a.createElement("span",{className:"primary-hover",onClick:Mn},j.a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),j.a.createElement("b",{title:hn},hn),j.a.createElement("div",{className:Ue.a.node},Gn))},ht=vt,Qt=ie("fgAr"),nn=ie.n(Qt),Et=function(et){var Ut=et.confirmShow,en=Ut===void 0?!0:Ut,ln=et.confirmTitle,Gn=et.confirmClick,Mn=et.cancelShow,hn=Mn===void 0?!0:Mn,On=et.cancelTitle,gn=et.cancelClick,Wn=et.className,jn=et.style,rr=et.confirmLoading,ur=rr===void 0?!1:rr;return j.a.createElement("div",{className:b()(nn.a.btns,Wn),style:jn},en&&j.a.createElement(Me.a,{loading:ur,onClick:Gn,type:"primary",className:nn.a.confirm},ln),hn&&j.a.createElement(Me.a,{onClick:gn,className:nn.a.cancel},On))},Rt=Et},OLES:function(Dt,Ne,ie){"use strict";var Te=ie("U8pU"),ae=ie("VTBJ"),X=ie("Ff2n"),le=ie("q1tI"),j=ie("uciX"),G=ie("7ixt"),oe=function(b){var p=b.overlay,y=b.prefixCls,x=b.id,g=b.overlayInnerStyle;return le.createElement("div",{className:"".concat(y,"-inner"),id:x,role:"tooltip",style:g},typeof p=="function"?p():p)},V=oe,l=function(b,p){var y=b.overlayClassName,x=b.trigger,g=x===void 0?["hover"]:x,h=b.mouseEnterDelay,c=h===void 0?0:h,d=b.mouseLeaveDelay,I=d===void 0?.1:d,A=b.overlayStyle,R=b.prefixCls,N=R===void 0?"rc-tooltip":R,P=b.children,D=b.onVisibleChange,E=b.afterVisibleChange,v=b.transitionName,_=b.animation,T=b.placement,w=T===void 0?"right":T,M=b.align,Z=M===void 0?{}:M,z=b.destroyTooltipOnHide,L=z===void 0?!1:z,W=b.defaultVisible,Y=b.getTooltipContainer,H=b.overlayInnerStyle,ne=Object(X.a)(b,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ce=Object(le.useRef)(null);Object(le.useImperativeHandle)(p,function(){return ce.current});var we=Object(ae.a)({},ne);"visible"in b&&(we.popupVisible=b.visible);var Ce=function(){var $e=b.arrowContent,Pe=$e===void 0?null:$e,se=b.overlay,S=b.id;return[le.createElement("div",{className:"".concat(N,"-arrow"),key:"arrow"},Pe),le.createElement(V,{key:"content",prefixCls:N,id:S,overlay:se,overlayInnerStyle:H})]},Ke=!1,Ie=!1;if(typeof L=="boolean")Ke=L;else if(L&&Object(Te.a)(L)==="object"){var je=L.keepParent;Ke=je===!0,Ie=je===!1}return le.createElement(j.a,Object.assign({popupClassName:y,prefixCls:N,popup:Ce,action:g,builtinPlacements:G.a,popupPlacement:w,ref:ce,popupAlign:Z,getPopupContainer:Y,onPopupVisibleChange:D,afterPopupVisibleChange:E,popupTransitionName:v,popupAnimation:_,defaultPopupVisible:W,destroyPopupOnHide:Ke,autoDestroy:Ie,mouseLeaveDelay:I,popupStyle:A,mouseEnterDelay:c},we),P)},F=Object(le.forwardRef)(l),O=Ne.a=F},Oe0F:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},SJMd:function(Dt,Ne){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ie,Te,ae,X=!1,le,j;window.PR_SHOULD_USE_CONTINUATION=!0;var G,oe;(function(){var V=window,l=["break,continue,do,else,for,if,return,while"],F=[l,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],O=[F,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[O,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],b=[O,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[O,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],y="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",x=[O,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],g="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",h=[l,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],c=[l,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],d=[l,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],I=[C,p,b,x,g,h,c,d],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,R="str",N="kwd",P="com",D="typ",E="lit",v="pun",_="pln",T="tag",w="dec",M="src",Z="atn",z="atv",L="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function Y(xe){for(var We=0,it=!1,be=!1,Le=0,Fe=xe.length;Le<Fe;++Le){var ze=xe[Le];if(ze.ignoreCase)be=!0;else if(/[a-z]/i.test(ze.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){it=!0,be=!1;break}}var dt={b:8,t:9,n:10,v:11,f:12,r:13};function It(sn){var zt=sn.charCodeAt(0);if(zt!==92)return zt;var dn=sn.charAt(1);return zt=dt[dn],zt||("0"<=dn&&dn<="7"?parseInt(sn.substring(1),8):dn==="u"||dn==="x"?parseInt(sn.substring(2),16):sn.charCodeAt(1))}function Jt(sn){if(sn<32)return(sn<16?"\\x0":"\\x")+sn.toString(16);var zt=String.fromCharCode(sn);return zt==="\\"||zt==="-"||zt==="]"||zt==="^"?"\\"+zt:zt}function Bt(sn){var zt=sn.substring(1,sn.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),dn=[],Tn=zt[0]==="^",Se=["["];Tn&&Se.push("^");for(var fe=Tn?1:0,pe=zt.length;fe<pe;++fe){var ve=zt[fe];if(/\\[bdsw]/i.test(ve))Se.push(ve);else{var Oe=It(ve),ge;fe+2<pe&&zt[fe+1]==="-"?(ge=It(zt[fe+2]),fe+=2):ge=Oe,dn.push([Oe,ge]),ge<65||Oe>122||(ge<65||Oe>90||dn.push([Math.max(65,Oe)|32,Math.min(ge,90)|32]),ge<97||Oe>122||dn.push([Math.max(97,Oe)&~32,Math.min(ge,122)&~32]))}}dn.sort(function(nt,qe){return nt[0]-qe[0]||qe[1]-nt[1]});for(var ye=[],Re=[],fe=0;fe<dn.length;++fe){var Me=dn[fe];Me[0]<=Re[1]+1?Re[1]=Math.max(Re[1],Me[1]):ye.push(Re=Me)}for(var fe=0;fe<ye.length;++fe){var Me=ye[fe];Se.push(Jt(Me[0])),Me[1]>Me[0]&&(Me[1]+1>Me[0]&&Se.push("-"),Se.push(Jt(Me[1])))}return Se.push("]"),Se.join("")}function Nt(sn){for(var zt=sn.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),dn=zt.length,Tn=[],Se=0,fe=0;Se<dn;++Se){var pe=zt[Se];if(pe==="(")++fe;else if(pe.charAt(0)==="\\"){var ve=+pe.substring(1);ve&&(ve<=fe?Tn[ve]=-1:zt[Se]=Jt(ve))}}for(var Se=1;Se<Tn.length;++Se)Tn[Se]===-1&&(Tn[Se]=++We);for(var Se=0,fe=0;Se<dn;++Se){var pe=zt[Se];if(pe==="(")++fe,Tn[fe]||(zt[Se]="(?:");else if(pe.charAt(0)==="\\"){var ve=+pe.substring(1);ve&&ve<=fe&&(zt[Se]="\\"+Tn[ve])}}for(var Se=0;Se<dn;++Se)zt[Se]==="^"&&zt[Se+1]!=="^"&&(zt[Se]="");if(sn.ignoreCase&&it)for(var Se=0;Se<dn;++Se){var pe=zt[Se],Oe=pe.charAt(0);pe.length>=2&&Oe==="["?zt[Se]=Bt(pe):Oe!=="\\"&&(zt[Se]=pe.replace(/[a-zA-Z]/g,function(Re){var Me=Re.charCodeAt(0);return"["+String.fromCharCode(Me&~32,Me|32)+"]"}))}return zt.join("")}for(var cn=[],Le=0,Fe=xe.length;Le<Fe;++Le){var ze=xe[Le];if(ze.global||ze.multiline)throw new Error(""+ze);cn.push("(?:"+Nt(ze)+")")}return new RegExp(cn.join("|"),be?"gi":"g")}function H(xe,We){var it=/(?:^|\s)nocode(?:\s|$)/,be=[],Le=0,Fe=[],ze=0;function dt(It){var Jt=It.nodeType;if(Jt==1){if(it.test(It.className))return;for(var Bt=It.firstChild;Bt;Bt=Bt.nextSibling)dt(Bt);var Nt=It.nodeName.toLowerCase();(Nt==="br"||Nt==="li")&&(be[ze]=`
`,Fe[ze<<1]=Le++,Fe[ze++<<1|1]=It)}else if(Jt==3||Jt==4){var cn=It.nodeValue;cn.length&&(We?cn=cn.replace(/\r\n?/g,`
`):cn=cn.replace(/[ \t\r\n]+/g," "),be[ze]=cn,Fe[ze<<1]=Le,Le+=cn.length,Fe[ze++<<1|1]=It)}}return dt(xe),{sourceCode:be.join("").replace(/\n$/,""),spans:Fe}}function ne(xe,We,it,be,Le){if(!it)return;var Fe={sourceNode:xe,pre:1,langExtension:null,numberLines:null,sourceCode:it,spans:null,basePos:We,decorations:null};be(Fe),Le.push.apply(Le,Fe.decorations)}var ce=/\S/;function we(xe){for(var We=void 0,it=xe.firstChild;it;it=it.nextSibling){var be=it.nodeType;We=be===1?We?xe:it:be===3&&ce.test(it.nodeValue)?xe:We}return We===xe?void 0:We}function Ce(xe,We){var it={},be;(function(){for(var ze=xe.concat(We),dt=[],It={},Jt=0,Bt=ze.length;Jt<Bt;++Jt){var Nt=ze[Jt],cn=Nt[3];if(cn)for(var sn=cn.length;--sn>=0;)it[cn.charAt(sn)]=Nt;var zt=Nt[1],dn=""+zt;It.hasOwnProperty(dn)||(dt.push(zt),It[dn]=null)}dt.push(/[\0-\uffff]/),be=Y(dt)})();var Le=We.length,Fe=function(ze){for(var dt=ze.sourceCode,It=ze.basePos,Jt=ze.sourceNode,Bt=[It,_],Nt=0,cn=dt.match(be)||[],sn={},zt=0,dn=cn.length;zt<dn;++zt){var Tn=cn[zt],Se=sn[Tn],fe=void 0,pe;if(typeof Se=="string")pe=!1;else{var ve=it[Tn.charAt(0)];if(ve)fe=Tn.match(ve[1]),Se=ve[0];else{for(var Oe=0;Oe<Le;++Oe)if(ve=We[Oe],fe=Tn.match(ve[1]),fe){Se=ve[0];break}fe||(Se=_)}pe=Se.length>=5&&Se.substring(0,5)==="lang-",pe&&!(fe&&typeof fe[1]=="string")&&(pe=!1,Se=M),pe||(sn[Tn]=Se)}var ge=Nt;if(Nt+=Tn.length,!pe)Bt.push(It+ge,Se);else{var ye=fe[1],Re=Tn.indexOf(ye),Me=Re+ye.length;fe[2]&&(Me=Tn.length-fe[2].length,Re=Me-ye.length);var nt=Se.substring(5);ne(Jt,It+ge,Tn.substring(0,Re),Fe,Bt),ne(Jt,It+ge+Re,ye,se(nt,ye),Bt),ne(Jt,It+ge+Me,Tn.substring(Me),Fe,Bt)}}ze.decorations=Bt};return Fe}function Ke(xe){var We=[],it=[];xe.tripleQuotedStrings?We.push([R,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):xe.multiLineStrings?We.push([R,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):We.push([R,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),xe.verbatimStrings&&it.push([R,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var be=xe.hashComments;be&&(xe.cStyleComments?(be>1?We.push([P,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):We.push([P,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),it.push([R,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):We.push([P,/^#[^\r\n]*/,null,"#"])),xe.cStyleComments&&(it.push([P,/^\/\/[^\r\n]*/,null]),it.push([P,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Le=xe.regexLiterals;if(Le){var Fe=Le>1?"":`
\r`,ze=Fe?".":"[\\S\\s]",dt="/(?=[^/*"+Fe+"])(?:[^/\\x5B\\x5C"+Fe+"]|\\x5C"+ze+"|\\x5B(?:[^\\x5C\\x5D"+Fe+"]|\\x5C"+ze+")*(?:\\x5D|$))+/";it.push(["lang-regex",RegExp("^"+W+"("+dt+")")])}var It=xe.types;It&&it.push([D,It]);var Jt=(""+xe.keywords).replace(/^ | $/g,"");Jt.length&&it.push([N,new RegExp("^(?:"+Jt.replace(/[\s,]+/g,"|")+")\\b"),null]),We.push([_,/^\s+/,null,` \r
\xA0`]);var Bt="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(Bt+="(?!s*/)"),it.push([E,/^@[a-z_$][a-z_$@0-9]*/i,null],[D,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[E,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[v,new RegExp(Bt),null]),Ce(We,it)}var Ie=Ke({keywords:I,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(xe,We,it){for(var be=/(?:^|\s)nocode(?:\s|$)/,Le=/\r\n?|\n/,Fe=xe.ownerDocument,ze=Fe.createElement("li");xe.firstChild;)ze.appendChild(xe.firstChild);var dt=[ze];function It(zt){var dn=zt.nodeType;if(dn==1&&!be.test(zt.className))if(zt.nodeName==="br")Jt(zt),zt.parentNode&&zt.parentNode.removeChild(zt);else for(var Tn=zt.firstChild;Tn;Tn=Tn.nextSibling)It(Tn);else if((dn==3||dn==4)&&it){var Se=zt.nodeValue,fe=Se.match(Le);if(fe){var pe=Se.substring(0,fe.index);zt.nodeValue=pe;var ve=Se.substring(fe.index+fe[0].length);if(ve){var Oe=zt.parentNode;Oe.insertBefore(Fe.createTextNode(ve),zt.nextSibling)}Jt(zt),pe||zt.parentNode.removeChild(zt)}}}function Jt(zt){for(;!zt.nextSibling;)if(zt=zt.parentNode,!zt)return;function dn(fe,pe){var ve=pe?fe.cloneNode(!1):fe,Oe=fe.parentNode;if(Oe){var ge=dn(Oe,1),ye=fe.nextSibling;ge.appendChild(ve);for(var Re=ye;Re;Re=ye)ye=Re.nextSibling,ge.appendChild(Re)}return ve}for(var Tn=dn(zt.nextSibling,0),Se;(Se=Tn.parentNode)&&Se.nodeType===1;)Tn=Se;dt.push(Tn)}for(var Bt=0;Bt<dt.length;++Bt)It(dt[Bt]);We===(We|0)&&dt[0].setAttribute("value",We);var Nt=Fe.createElement("ol");Nt.className="linenums";for(var cn=Math.max(0,We-1|0)||0,Bt=0,sn=dt.length;Bt<sn;++Bt)ze=dt[Bt],ze.className="L"+(Bt+cn)%10,ze.firstChild||ze.appendChild(Fe.createTextNode("\xA0")),Nt.appendChild(ze);xe.appendChild(Nt)}function Ve(xe){var We=/\bMSIE\s(\d+)/.exec(navigator.userAgent);We=We&&+We[1]<=8;var it=/\n/g,be=xe.sourceCode,Le=be.length,Fe=0,ze=xe.spans,dt=ze.length,It=0,Jt=xe.decorations,Bt=Jt.length,Nt=0;Jt[Bt]=Le;var cn,sn;for(sn=cn=0;sn<Bt;)Jt[sn]!==Jt[sn+2]?(Jt[cn++]=Jt[sn++],Jt[cn++]=Jt[sn++]):sn+=2;for(Bt=cn,sn=cn=0;sn<Bt;){for(var zt=Jt[sn],dn=Jt[sn+1],Tn=sn+2;Tn+2<=Bt&&Jt[Tn+1]===dn;)Tn+=2;Jt[cn++]=zt,Jt[cn++]=dn,sn=Tn}Bt=Jt.length=cn;var Se=xe.sourceNode,fe="";Se&&(fe=Se.style.display,Se.style.display="none");try{for(var pe=null;It<dt;){var ve=ze[It],Oe=ze[It+2]||Le,ge=Jt[Nt+2]||Le,Tn=Math.min(Oe,ge),ye=ze[It+1],Re;if(ye.nodeType!==1&&(Re=be.substring(Fe,Tn))){We&&(Re=Re.replace(it,"\r")),ye.nodeValue=Re;var Me=ye.ownerDocument,nt=Me.createElement("span");nt.className=Jt[Nt+1];var qe=ye.parentNode;qe.replaceChild(nt,ye),nt.appendChild(ye),Fe<Oe&&(ze[It+1]=ye=Me.createTextNode(be.substring(Tn,Oe)),qe.insertBefore(ye,nt.nextSibling))}Fe=Tn,Fe>=Oe&&(It+=2),Fe>=ge&&(Nt+=2)}}finally{Se&&(Se.style.display=fe)}}var $e={};function Pe(xe,We){for(var it=We.length;--it>=0;){var be=We[it];$e.hasOwnProperty(be)?V.console&&console.warn("cannot override language handler %s",be):$e[be]=xe}}function se(xe,We){return xe&&$e.hasOwnProperty(xe)||(xe=/^\s*</.test(We)?"default-markup":"default-code"),$e[xe]}Pe(Ie,["default-code"]),Pe(Ce([],[[_,/^[^<?]+/],[w,/^<!\w[^>]*(?:>|$)/],[P,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[v,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Pe(Ce([[_,/^[\s]+/,null,` \r
`],[z,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Z,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[v,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Pe(Ce([],[[z,/^[\s\S]+/]]),["uq.val"]),Pe(Ke({keywords:C,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),Pe(Ke({keywords:"null,true,false"}),["json"]),Pe(Ke({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),Pe(Ke({keywords:b,cStyleComments:!0}),["java"]),Pe(Ke({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Pe(Ke({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Pe(Ke({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Pe(Ke({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Pe(Ke({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Pe(Ke({keywords:y,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Pe(Ce([],[[R,/^[\s\S]+/]]),["regex"]);function S(xe){var We=xe.langExtension;try{var it=H(xe.sourceNode,xe.pre),be=it.sourceCode;xe.sourceCode=be,xe.spans=it.spans,xe.basePos=0,se(We,be)(xe),Ve(xe)}catch(Le){V.console&&console.log(Le&&Le.stack||Le)}}function B(xe,We,it){var be=it||!1,Le=We||null,Fe=document.createElement("div");Fe.innerHTML="<pre>"+xe+"</pre>",Fe=Fe.firstChild,be&&je(Fe,be,!0);var ze={langExtension:Le,numberLines:be,sourceNode:Fe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return S(ze),Fe.innerHTML}function J(xe,We){var it=We||document.body,be=it.ownerDocument||document;function Le(ve){return it.getElementsByTagName(ve)}for(var Fe=[Le("pre"),Le("code"),Le("xmp")],ze=[],dt=0;dt<Fe.length;++dt)for(var It=0,Jt=Fe[dt].length;It<Jt;++It)ze.push(Fe[dt][It]);Fe=null;var Bt=Date;Bt.now||(Bt={now:function(){return+new Date}});var Nt=0,cn=/\blang(?:uage)?-([\w.]+)(?!\S)/,sn=/\bprettyprint\b/,zt=/\bprettyprinted\b/,dn=/pre|xmp/i,Tn=/^code$/i,Se=/^(?:pre|code|xmp)$/i,fe={};function pe(){for(var ve=V.PR_SHOULD_USE_CONTINUATION?Bt.now()+250:Infinity;Nt<ze.length&&Bt.now()<ve;Nt++){for(var Oe=ze[Nt],ge=fe,ye=Oe;ye=ye.previousSibling;){var Re=ye.nodeType,Me=(Re===7||Re===8)&&ye.nodeValue;if(Me?!/^\??prettify\b/.test(Me):Re!==3||/\S/.test(ye.nodeValue))break;if(Me){ge={},Me.replace(/\b(\w+)=([\w:.%+-]+)/g,function(vt,ht,Qt){ge[ht]=Qt});break}}var nt=Oe.className;if((ge!==fe||sn.test(nt))&&!zt.test(nt)){for(var qe=!1,xt=Oe.parentNode;xt;xt=xt.parentNode){var yn=xt.tagName;if(Se.test(yn)&&xt.className&&sn.test(xt.className)){qe=!0;break}}if(!qe){Oe.className+=" prettyprinted";var Pn=ge.lang;if(!Pn){Pn=nt.match(cn);var An;!Pn&&(An=we(Oe))&&Tn.test(An.tagName)&&(Pn=An.className.match(cn)),Pn&&(Pn=Pn[1])}var $t;if(dn.test(Oe.tagName))$t=1;else{var ft=Oe.currentStyle,yt=be.defaultView,ut=ft?ft.whiteSpace:yt&&yt.getComputedStyle?yt.getComputedStyle(Oe,null).getPropertyValue("white-space"):0;$t=ut&&ut.substring(0,3)==="pre"}var Ae=ge.linenums;(Ae=Ae==="true"||+Ae)||(Ae=nt.match(/\blinenums\b(?::(\d+))?/),Ae=Ae?Ae[1]&&Ae[1].length?+Ae[1]:!0:!1),Ae&&je(Oe,Ae,$t);var Ue={langExtension:Pn,sourceNode:Oe,numberLines:Ae,pre:$t,sourceCode:null,basePos:null,spans:null,decorations:null};S(Ue)}}}Nt<ze.length?V.setTimeout(pe,250):typeof xe=="function"&&xe()}pe()}var ue=V.PR={createSimpleLexer:Ce,registerLangHandler:Pe,sourceDecorator:Ke,PR_ATTRIB_NAME:Z,PR_ATTRIB_VALUE:z,PR_COMMENT:P,PR_DECLARATION:w,PR_KEYWORD:N,PR_LITERAL:E,PR_NOCODE:L,PR_PLAIN:_,PR_PUNCTUATION:v,PR_SOURCE:M,PR_STRING:R,PR_TAG:T,PR_TYPE:D,prettyPrintOne:X?V.prettyPrintOne=B:G=B,prettyPrint:oe=X?V.prettyPrint=J:oe=J},q=V.define;typeof q=="function"&&q.amd&&q("google-code-prettify",[],function(){return ue})})()},STEk:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Pe});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Te=function(se,S){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,J){B.__proto__=J}||function(B,J){for(var ue in J)Object.prototype.hasOwnProperty.call(J,ue)&&(B[ue]=J[ue])})(se,S)};function ae(se,S){function B(){this.constructor=se}Te(se,S),se.prototype=S===null?Object.create(S):(B.prototype=S.prototype,new B)}function X(se,S,B,J){return new(B||(B=Promise))(function(ue,q){function xe(be){try{it(J.next(be))}catch(Le){q(Le)}}function We(be){try{it(J.throw(be))}catch(Le){q(Le)}}function it(be){var Le;be.done?ue(be.value):(Le=be.value,Le instanceof B?Le:new B(function(Fe){Fe(Le)})).then(xe,We)}it((J=J.apply(se,S||[])).next())})}function le(se,S){var B,J,ue,q,xe={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return q={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function We(it){return function(be){return function(Le){if(B)throw new TypeError("Generator is already executing.");for(;xe;)try{if(B=1,J&&(ue=2&Le[0]?J.return:Le[0]?J.throw||((ue=J.return)&&ue.call(J),0):J.next)&&!(ue=ue.call(J,Le[1])).done)return ue;switch(J=0,ue&&(Le=[2&Le[0],ue.value]),Le[0]){case 0:case 1:ue=Le;break;case 4:return xe.label++,{value:Le[1],done:!1};case 5:xe.label++,J=Le[1],Le=[0];continue;case 7:Le=xe.ops.pop(),xe.trys.pop();continue;default:if(!(ue=xe.trys,(ue=ue.length>0&&ue[ue.length-1])||Le[0]!==6&&Le[0]!==2)){xe=0;continue}if(Le[0]===3&&(!ue||Le[1]>ue[0]&&Le[1]<ue[3])){xe.label=Le[1];break}if(Le[0]===6&&xe.label<ue[1]){xe.label=ue[1],ue=Le;break}if(ue&&xe.label<ue[2]){xe.label=ue[2],xe.ops.push(Le);break}ue[2]&&xe.ops.pop(),xe.trys.pop();continue}Le=S.call(se,xe)}catch(Fe){Le=[6,Fe],J=0}finally{B=ue=0}if(5&Le[0])throw Le[1];return{value:Le[0]?Le[1]:void 0,done:!0}}([it,be])}}}function j(){for(var se=0,S=0,B=arguments.length;S<B;S++)se+=arguments[S].length;var J=Array(se),ue=0;for(S=0;S<B;S++)for(var q=arguments[S],xe=0,We=q.length;xe<We;xe++,ue++)J[ue]=q[xe];return J}var G=function(){function se(){}return se.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},se.setAttributes=function(S,B){for(var J=0,ue=B;J<ue.length;J++){var q=ue[J],xe=q[0],We=q[1];S.setAttribute(xe,We)}},se.createRect=function(S,B,J){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",S.toString()),ue.setAttribute("height",B.toString()),J&&se.setAttributes(ue,J),ue},se.createLine=function(S,B,J,ue,q){var xe=document.createElementNS("http://www.w3.org/2000/svg","line");return xe.setAttribute("x1",S.toString()),xe.setAttribute("y1",B.toString()),xe.setAttribute("x2",J.toString()),xe.setAttribute("y2",ue.toString()),q&&se.setAttributes(xe,q),xe},se.createPolygon=function(S,B){var J=document.createElementNS("http://www.w3.org/2000/svg","polygon");return J.setAttribute("points",S),B&&se.setAttributes(J,B),J},se.createCircle=function(S,B){var J=document.createElementNS("http://www.w3.org/2000/svg","circle");return J.setAttribute("cx",(S/2).toString()),J.setAttribute("cy",(S/2).toString()),J.setAttribute("r",S.toString()),B&&se.setAttributes(J,B),J},se.createEllipse=function(S,B,J){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(S/2).toString()),ue.setAttribute("cy",(B/2).toString()),ue.setAttribute("rx",(S/2).toString()),ue.setAttribute("ry",(B/2).toString()),J&&se.setAttributes(ue,J),ue},se.createGroup=function(S){var B=document.createElementNS("http://www.w3.org/2000/svg","g");return S&&se.setAttributes(B,S),B},se.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},se.createMarker=function(S,B,J,ue,q,xe,We){var it=document.createElementNS("http://www.w3.org/2000/svg","marker");return se.setAttributes(it,[["id",S],["orient",B],["markerWidth",J.toString()],["markerHeight",ue.toString()],["refX",q.toString()],["refY",xe.toString()]]),it.appendChild(We),it},se.createText=function(S){var B=document.createElementNS("http://www.w3.org/2000/svg","text");return B.setAttribute("x","0"),B.setAttribute("y","0"),S&&se.setAttributes(B,S),B},se.createTSpan=function(S,B){var J=document.createElementNS("http://www.w3.org/2000/svg","tspan");return J.textContent=S,B&&se.setAttributes(J,B),J},se.createImage=function(S){var B=document.createElementNS("http://www.w3.org/2000/svg","image");return S&&se.setAttributes(B,S),B},se.createPoint=function(S,B){var J=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return J.x=S,J.y=B,J},se.createPath=function(S,B){var J=document.createElementNS("http://www.w3.org/2000/svg","path");return J.setAttribute("d",S),B&&se.setAttributes(J,B),J},se}(),oe=function(){function se(){}return se.addKey=function(S){se.key=S},Object.defineProperty(se,"isLicensed",{get:function(){return!!se.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(se.key)},enumerable:!1,configurable:!0}),se}(),V=function(){function se(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return se.prototype.rasterize=function(S,B,J){var ue=this;return new Promise(function(q){var xe=J!==void 0?J:document.createElement("canvas");S===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.setAttribute("xmlns","http://www.w3.org/2000/svg"),We.setAttribute("width",B.width.baseVal.valueAsString),We.setAttribute("height",B.height.baseVal.valueAsString),We.setAttribute("viewBox","0 0 "+B.viewBox.baseVal.width.toString()+" "+B.viewBox.baseVal.height.toString()),We.innerHTML=B.innerHTML,ue.naturalSize===!0?(We.width.baseVal.value=S.naturalWidth,We.height.baseVal.value=S.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(We.width.baseVal.value=ue.width,We.height.baseVal.value=ue.height),xe.width=We.width.baseVal.value,xe.height=We.height.baseVal.value;var it=We.outerHTML,be=xe.getContext("2d");ue.markersOnly!==!0&&be.drawImage(S,0,0,xe.width,xe.height);var Le=window.URL,Fe=new Image(xe.width,xe.height);Fe.setAttribute("crossOrigin","anonymous");var ze=new Blob([it],{type:"image/svg+xml"}),dt=Le.createObjectURL(ze);Fe.onload=function(){be.drawImage(Fe,0,0),Le.revokeObjectURL(dt);var It=xe.toDataURL(ue.imageType,ue.imageQuality);q(It)},Fe.src=dt})},se}(),l=function(){},F=function(){function se(S){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+S+"_"}return Object.defineProperty(se.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),se.prototype.addClass=function(S){return this.styleSheet===void 0&&this.addStyleSheet(),S.name=""+this.classNamePrefix+S.localName,this.classes.push(S),this.styleSheet.sheet.insertRule("."+S.name+" {"+S.style+"}",this.styleSheet.sheet.cssRules.length),S},se.prototype.addRule=function(S){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(S),this.styleSheet.sheet.insertRule(S.selector+" {"+S.style+"}",this.styleSheet.sheet.cssRules.length)},se.prototype.addStyleSheet=function(){var S;this.styleSheet=document.createElement("style"),((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).appendChild(this.styleSheet),this.addRule(new O("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new O("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new O("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new C("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new C("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},se.prototype.removeStyleSheet=function(){var S;this.styleSheet&&(((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},se}(),O=function(se,S){this.selector=se,this.style=S},C=function(se,S){this.localName=se,this.style=S},b=function(){function se(S,B,J,ue,q){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=S,this.displayMode=B,this.markerItems=J,this.uiStyleSettings=ue,this.styles=q,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return se.prototype.show=function(S){var B=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=S,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var J=document.createElement("div");J.className=this.toolbarBlockStyleClass.name,J.style.whiteSpace="nowrap",this.uiContainer.appendChild(J),this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(q){var xe=document.createElement("div");xe.className=""+B.toolbarButtonStyleClass.name,xe.setAttribute("data-type-name",q.typeName),xe.innerHTML=q.icon,xe.addEventListener("click",function(){B.markerToolbarButtonClicked(xe,q)}),B.buttons.push(xe),B.markerButtons.push(xe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ue,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},se.prototype.addButtonClickListener=function(S){this.buttonClickListeners.push(S)},se.prototype.removeButtonClickListener=function(S){this.buttonClickListeners.indexOf(S)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(S),1)},se.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},se.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var S=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var B=0;B<this.markerButtons.length;B++)B<S||B===S&&this.markerButtons.length-1===S?this.markerButtonBlock.appendChild(this.markerButtons[B]):(B===S&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[B]))}},se.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},se.prototype.resetButtonStyles=function(){var S=this;this.buttons.forEach(function(B){B.className=B.className.replace(S.uiStyleSettings.toolbarButtonStyleColorsClassName?S.uiStyleSettings.toolbarButtonStyleColorsClassName:S.toolbarButtonStyleColorsClass.name,"").trim(),B.className=B.className.replace(S.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?S.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:S.toolbarActiveButtonStyleColorsClass.name,"").trim(),B.className+=" "+(S.uiStyleSettings.toolbarButtonStyleColorsClassName?S.uiStyleSettings.toolbarButtonStyleColorsClassName:S.toolbarButtonStyleColorsClass.name)})},se.prototype.addActionButton=function(S,B,J){var ue=this,q=document.createElement("div");switch(q.className=""+this.toolbarButtonStyleClass.name,q.innerHTML=B,q.setAttribute("data-action",J),q.addEventListener("click",function(){ue.actionToolbarButtonClicked(q,J)}),J){case"select":q.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":q.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":q.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":q.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":q.style.fill=this.uiStyleSettings.closeButtonColor}S.appendChild(q),this.buttons.push(q)},se.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new C("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new C("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new C("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new C("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new C("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var S=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new C("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*S)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*S)+`px;
padding: `+S+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new C("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new C("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new O("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new O("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},se.prototype.markerToolbarButtonClicked=function(S,B){this.setActiveButton(S),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(J){return J("marker",B)}),this.markerButtonOverflowBlock.style.display="none"},se.prototype.actionToolbarButtonClicked=function(S,B){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(J){return J("action",B)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},se.prototype.setActiveButton=function(S){this.resetButtonStyles(),S.className=S.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),S.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},se.prototype.setActiveMarkerButton=function(S){var B=this.markerButtons.find(function(J){return J.getAttribute("data-type-name")===S});B&&this.setActiveButton(B)},se.prototype.setCurrentMarker=function(S){var B=this;this.currentMarker=S,this.buttons.filter(function(J){return/delete|notes/.test(J.getAttribute("data-action"))}).forEach(function(J){B.currentMarker===void 0?(J.style.fillOpacity="0.4",J.style.pointerEvents="none"):(J.style.fillOpacity="1",J.style.pointerEvents="all")})},se}(),p=function(){function se(S,B,J,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=S,this.displayMode=B,this.uiStyleSettings=J,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return se.prototype.addStyles=function(){var S;this.toolboxStyleClass=this.styles.addClass(new C("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new C("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var B=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new C("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new C("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new C("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new C("toolbox-panel-row_colors",`
background-color: `+((S=this.uiStyleSettings.toolboxBackgroundColor)!==null&&S!==void 0?S:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new C("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*B)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*B)+`px;
padding: `+B+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new C("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new C("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new O("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new O("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},se.prototype.show=function(S){var B;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=S,this.uiContainer.className=this.toolboxStyleClass.name+" "+((B=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&B!==void 0?B:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},se.prototype.setPanelButtons=function(S){var B,J,ue=this;this.panels=S,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((B=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&B!==void 0?B:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((J=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&J!==void 0?J:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(q){var xe;q.uiStyleSettings=ue.uiStyleSettings;var We=document.createElement("div");We.className=ue.toolboxButtonStyleClass.name+" "+((xe=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&xe!==void 0?xe:ue.toolboxButtonStyleColorsClass.name),We.innerHTML=q.icon,We.title=q.title,We.addEventListener("click",function(){ue.panelButtonClick(q)}),ue.panelButtons.push(We),ue.buttonRow.appendChild(We)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},se.prototype.panelButtonClick=function(S){var B=this,J=-1;if(S!==this.activePanel){J=this.panels.indexOf(S),this.panelRow.innerHTML="";var ue=S.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=S}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){B.displayMode==="inline"?B.panelRow.style.display="none":B.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(q,xe){var We,it;q.className=B.toolboxButtonStyleClass.name+" "+(xe===J?""+((We=B.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&We!==void 0?We:B.toolboxActiveButtonStyleColorsClass.name):""+((it=B.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&it!==void 0?it:B.toolboxButtonStyleColorsClass.name))})},se}(),y=function(se,S){this.title=se,this.icon=S},x=function(se){function S(B,J,ue,q){var xe=se.call(this,B,q||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return xe.colors=[],xe.addTransparent=!1,xe.colorBoxes=[],xe.colors=J,xe.currentColor=ue,xe.setCurrentColor=xe.setCurrentColor.bind(xe),xe.getColorBox=xe.getColorBox.bind(xe),xe}return ae(S,se),S.prototype.getUi=function(){var B=this,J=document.createElement("div");return J.style.overflow="hidden",J.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var q=B.getColorBox(ue);J.appendChild(q),B.colorBoxes.push(q)}),J},S.prototype.getColorBox=function(B){var J=this,ue=this.uiStyleSettings.toolbarHeight/4,q=this.uiStyleSettings.toolbarHeight-ue,xe=document.createElement("div");xe.style.display="inline-block",xe.style.boxSizing="content-box",xe.style.width=q-2+"px",xe.style.height=q-2+"px",xe.style.padding="1px",xe.style.marginRight="2px",xe.style.marginBottom="2px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderRadius=(q+2)/2+"px",xe.style.borderColor=B===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){J.setCurrentColor(B,xe)});var We=document.createElement("div");return We.style.display="inline-block",We.style.width=q-2+"px",We.style.height=q-2+"px",We.style.backgroundColor=B,We.style.borderRadius=q/2+"px",B==="transparent"&&(We.style.fill=this.uiStyleSettings.toolboxAccentColor,We.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),xe.appendChild(We),xe},S.prototype.setCurrentColor=function(B,J){var ue=this;this.currentColor=B,this.colorBoxes.forEach(function(q){q.style.borderColor=q===J?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(B)},S}(y),g=function(){function se(S,B,J){this._state="new",this._isSelected=!1,this._container=S,this._overlayContainer=B,this.globalSettings=J,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(se.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),se.prototype.ownsTarget=function(S){return!1},Object.defineProperty(se.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),se.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},se.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},se.prototype.pointerDown=function(S,B){},se.prototype.dblClick=function(S,B){},se.prototype.manipulate=function(S){},se.prototype.pointerUp=function(S){this.stateChanged()},se.prototype.dispose=function(){},se.prototype.addMarkerVisualToContainer=function(S){this.container.childNodes.length>0?this.container.insertBefore(S,this.container.childNodes[0]):this.container.appendChild(S)},se.prototype.getState=function(){return{typeName:se.typeName,state:this.state,notes:this.notes}},se.prototype.restoreState=function(S){this._state=S.state,this.notes=S.notes},se.prototype.scale=function(S,B){},se.prototype.colorChanged=function(S){this.onColorChanged&&this.onColorChanged(S),this.stateChanged()},se.prototype.fillColorChanged=function(S){this.onFillColorChanged&&this.onFillColorChanged(S),this.stateChanged()},se.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var S=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),S.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(S)&&this.onStateChanged(this)}},se.typeName="MarkerBase",se}(),h=function(){function se(){this.findGripByVisual=this.findGripByVisual.bind(this)}return se.prototype.findGripByVisual=function(S){return this.topLeft.ownsTarget(S)?this.topLeft:this.topCenter.ownsTarget(S)?this.topCenter:this.topRight.ownsTarget(S)?this.topRight:this.centerLeft.ownsTarget(S)?this.centerLeft:this.centerRight.ownsTarget(S)?this.centerRight:this.bottomLeft.ownsTarget(S)?this.bottomLeft:this.bottomCenter.ownsTarget(S)?this.bottomCenter:this.bottomRight.ownsTarget(S)?this.bottomRight:void 0},se}(),c=function(){function se(){this.GRIP_SIZE=10,this.visual=G.createGroup(),this.visual.appendChild(G.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(G.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return se.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},se}(),d=function(){function se(){}return se.toITransformMatrix=function(S){return{a:S.a,b:S.b,c:S.c,d:S.d,e:S.e,f:S.f}},se.toSVGMatrix=function(S,B){return S.a=B.a,S.b=B.b,S.c=B.c,S.d=B.d,S.e=B.e,S.f=B.f,S},se}(),I=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.left=0,q.top=0,q.width=0,q.height=0,q.defaultSize={x:50,y:20},q.offsetX=0,q.offsetY=0,q.rotationAngle=0,q.CB_DISTANCE=10,q._suppressMarkerCreateEvent=!1,q.container.transform.baseVal.appendItem(G.createTransform()),q.setupControlBox(),q}return ae(S,se),Object.defineProperty(S.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"visual",{get:function(){return this._visual},set:function(B){this._visual=B;var J=G.createTransform();this._visual.transform.baseVal.appendItem(J)},enumerable:!1,configurable:!0}),S.prototype.ownsTarget=function(B){return!!se.prototype.ownsTarget.call(this,B)||!!(this.controlGrips.findGripByVisual(B)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(B))},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.state==="new"&&(this.left=B.x,this.top=B.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(B);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(J),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(J)){this.activeGrip=this.rotatorGrip;var q=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=q.x-this.width/2,this.top=q.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},S.prototype.pointerUp=function(B){var J=this.state;se.prototype.pointerUp.call(this,B),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(B),this._state="select",J==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},S.prototype.moveVisual=function(B){this.visual.style.transform="translate("+B.x+"px, "+B.y+"px)"},S.prototype.manipulate=function(B){var J=this.unrotatePoint(B);this.state==="creating"?this.resize(B):this.state==="move"?(this.left=this.manipulationStartLeft+(J.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(J.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(J):this.state==="rotate"&&this.rotate(B)},S.prototype.resize=function(B){var J=this.manipulationStartLeft,ue=this.manipulationStartWidth,q=this.manipulationStartTop,xe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:J=this.manipulationStartLeft+B.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-J;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+B.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:q=this.manipulationStartTop+B.y-this.manipulationStartY,xe=this.manipulationStartHeight+this.manipulationStartTop-q;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:xe=this.manipulationStartHeight+B.y-this.manipulationStartY}ue>=0?(this.left=J,this.width=ue):(this.left=J+ue,this.width=-ue),xe>=0?(this.top=q,this.height=xe):(this.top=q+xe,this.height=-xe),this.setSize()},S.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},S.prototype.rotate=function(B){if(Math.abs(B.x-this.centerX)>.1){var J=Math.sign(B.x-this.centerX);this.rotationAngle=180*Math.atan((B.y-this.centerY)/(B.x-this.centerX))/Math.PI+90*J,this.applyRotation()}},S.prototype.applyRotation=function(){var B=this.container.transform.baseVal.getItem(0);B.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(B,0)},S.prototype.rotatePoint=function(B){if(this.rotationAngle===0)return B;var J=this.container.getCTM(),ue=G.createPoint(B.x,B.y);return{x:(ue=ue.matrixTransform(J)).x,y:ue.y}},S.prototype.unrotatePoint=function(B){if(this.rotationAngle===0)return B;var J=this.container.getCTM();J=J.inverse();var ue=G.createPoint(B.x,B.y);return{x:(ue=ue.matrixTransform(J)).x,y:ue.y}},S.prototype.select=function(){se.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){se.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=G.createGroup();var B=G.createTransform();B.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(B),this.container.appendChild(this.controlBox),this.controlRect=G.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=G.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new h,this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){var B=this.controlBox.transform.baseVal.getItem(0);B.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(B,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},S.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},S.prototype.createGrip=function(){var B=new c;return B.visual.transform.baseVal.appendItem(G.createTransform()),this.controlBox.appendChild(B.visual),B},S.prototype.positionGrips=function(){var B=this.controlGrips.topLeft.GRIP_SIZE,J=-B/2,ue=J,q=(this.width+this.CB_DISTANCE)/2-B/2,xe=(this.height+this.CB_DISTANCE)/2-B/2,We=this.height+this.CB_DISTANCE-B/2,it=this.width+this.CB_DISTANCE-B/2;this.positionGrip(this.controlGrips.topLeft.visual,J,ue),this.positionGrip(this.controlGrips.topCenter.visual,q,ue),this.positionGrip(this.controlGrips.topRight.visual,it,ue),this.positionGrip(this.controlGrips.centerLeft.visual,J,xe),this.positionGrip(this.controlGrips.centerRight.visual,it,xe),this.positionGrip(this.controlGrips.bottomLeft.visual,J,We),this.positionGrip(this.controlGrips.bottomCenter.visual,q,We),this.positionGrip(this.controlGrips.bottomRight.visual,it,We),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,q,ue-3*this.CB_DISTANCE)},S.prototype.positionGrip=function(B,J,ue){var q=B.transform.baseVal.getItem(0);q.setTranslate(J,ue),B.transform.baseVal.replaceItem(q,0)},S.prototype.hideControlBox=function(){this.controlBox.style.display="none"},S.prototype.showControlBox=function(){this.controlBox.style.display=""},S.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:d.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:d.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},se.prototype.getState.call(this))},S.prototype.restoreState=function(B){se.prototype.restoreState.call(this,B);var J=B;this.left=J.left,this.top=J.top,this.width=J.width,this.height=J.height,this.rotationAngle=J.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(d.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,J.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(d.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,J.containerTransformMatrix))},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J);var ue=this.rotatePoint({x:this.left,y:this.top}),q=this.unrotatePoint({x:ue.x*B,y:ue.y*J});this.left=q.x,this.top=q.y,this.width=this.width*B,this.height=this.height*J,this.adjustControlBox()},S}(g),A=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.fillColor="transparent",q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.opacity=1,q.setStrokeColor=q.setStrokeColor.bind(q),q.setFillColor=q.setFillColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.createVisual=q.createVisual.bind(q),q}return ae(S,se),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.visual)},S.prototype.createVisual=function(){this.visual=G.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.state==="new"&&(this.createVisual(),this.moveVisual(B),this._state="creating")},S.prototype.manipulate=function(B){se.prototype.manipulate.call(this,B)},S.prototype.resize=function(B){se.prototype.resize.call(this,B),this.setSize()},S.prototype.setSize=function(){se.prototype.setSize.call(this),G.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(B){se.prototype.pointerUp.call(this,B),this.setSize()},S.prototype.setStrokeColor=function(B){this.strokeColor=B,this.visual&&G.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(B),this.stateChanged()},S.prototype.setFillColor=function(B){this.fillColor=B,this.visual&&G.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},S.prototype.setStrokeWidth=function(B){this.strokeWidth=B,this.visual&&G.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},S.prototype.setStrokeDasharray=function(B){this.strokeDasharray=B,this.visual&&G.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},S.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},se.prototype.getState.call(this))},S.prototype.restoreState=function(B){var J=B;this.fillColor=J.fillColor,this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.opacity=J.opacity,this.createVisual(),se.prototype.restoreState.call(this,B),this.setSize()},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J),this.setSize()},S.title="Rectangle marker",S}(I),R=function(se){function S(B,J,ue,q){var xe=se.call(this,B,q||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return xe.widths=[],xe.widthBoxes=[],xe.widths=J,xe.currentWidth=ue,xe.setCurrentWidth=xe.setCurrentWidth.bind(xe),xe}return ae(S,se),S.prototype.getUi=function(){var B=this,J=document.createElement("div");return J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2",this.widths.forEach(function(ue){var q=document.createElement("div");q.style.display="flex",q.style.flexGrow="2",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.borderColor=ue===B.currentWidth?B.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){B.setCurrentWidth(ue,q)}),J.appendChild(q);var xe=document.createElement("div");xe.innerText=ue.toString(),xe.style.marginRight="5px",q.appendChild(xe);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.display="flex",We.style.alignItems="center";var it=document.createElement("hr");it.style.minWidth="20px",it.style.border="0px",it.style.borderTop=ue+"px solid "+B.uiStyleSettings.toolboxColor,it.style.flexGrow="2",We.appendChild(it),q.appendChild(We),B.widthBoxes.push(q)}),J},S.prototype.setCurrentWidth=function(B,J){var ue=this;this.currentWidth=B,this.widthBoxes.forEach(function(q){q.style.borderColor=q===J?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},S}(y),N=function(se){function S(B,J,ue,q){var xe=se.call(this,B,q||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return xe.styles=[],xe.styleBoxes=[],xe.styles=J,xe.currentStyle=ue,xe.setCurrentStyle=xe.setCurrentStyle.bind(xe),xe}return ae(S,se),S.prototype.getUi=function(){var B=this,J=document.createElement("div");return J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2",this.styles.forEach(function(ue){var q=document.createElement("div");q.style.display="flex",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.overflow="hidden",q.style.maxWidth=100/B.styles.length-5+"%",q.style.borderColor=ue===B.currentStyle?B.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){B.setCurrentStyle(ue,q)}),J.appendChild(q);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.overflow="hidden";var We=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+B.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
</svg>`;xe.innerHTML=We,q.appendChild(xe),B.styleBoxes.push(q)}),J},S.prototype.setCurrentStyle=function(B,J){var ue=this;this.currentStyle=B,this.styleBoxes.forEach(function(q){q.style.borderColor=q===J?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},S}(y),P=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.strokeColor=ue.defaultColor,q.strokeWidth=ue.defaultStrokeWidth,q.strokeDasharray=ue.defaultStrokeDasharray,q.strokePanel=new x("Line color",ue.defaultColorSet,ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new R("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new N("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return ae(S,se),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=se.prototype.getState.call(this);return B.typeName=S.typeName,B},S.typeName="FrameMarker",S.title="Frame marker",S.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',S}(A),D=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},E=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.x1=0,q.y1=0,q.x2=0,q.y2=0,q.defaultLength=50,q.manipulationStartX=0,q.manipulationStartY=0,q.manipulationStartX1=0,q.manipulationStartY1=0,q.manipulationStartX2=0,q.manipulationStartY2=0,q.setupControlBox(),q}return ae(S,se),S.prototype.ownsTarget=function(B){return!!se.prototype.ownsTarget.call(this,B)||!(!this.grip1.ownsTarget(B)&&!this.grip2.ownsTarget(B))},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.manipulationStartX=B.x,this.manipulationStartY=B.y,this.state==="new"&&(this.x1=B.x,this.y1=B.y,this.x2=B.x,this.y2=B.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(J)?this.activeGrip=this.grip1:this.grip2.ownsTarget(J)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},S.prototype.pointerUp=function(B){var J=this.state;se.prototype.pointerUp.call(this,B),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(B),this._state="select",J==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},S.prototype.adjustVisual=function(){},S.prototype.manipulate=function(B){this.state==="creating"?this.resize(B):this.state==="move"?(this.x1=this.manipulationStartX1+B.x-this.manipulationStartX,this.y1=this.manipulationStartY1+B.y-this.manipulationStartY,this.x2=this.manipulationStartX2+B.x-this.manipulationStartX,this.y2=this.manipulationStartY2+B.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(B)},S.prototype.resize=function(B){switch(this.activeGrip){case this.grip1:this.x1=B.x,this.y1=B.y;break;case this.grip2:case void 0:this.x2=B.x,this.y2=B.y}this.adjustVisual(),this.adjustControlBox()},S.prototype.select=function(){se.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){se.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=G.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){this.positionGrips()},S.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},S.prototype.createGrip=function(){var B=new c;return B.visual.transform.baseVal.appendItem(G.createTransform()),this.controlBox.appendChild(B.visual),B},S.prototype.positionGrips=function(){var B=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-B/2,this.y1-B/2),this.positionGrip(this.grip2.visual,this.x2-B/2,this.y2-B/2)},S.prototype.positionGrip=function(B,J,ue){var q=B.transform.baseVal.getItem(0);q.setTranslate(J,ue),B.transform.baseVal.replaceItem(q,0)},S.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},se.prototype.getState.call(this))},S.prototype.restoreState=function(B){se.prototype.restoreState.call(this,B);var J=B;this.x1=J.x1,this.y1=J.y1,this.x2=J.x2,this.y2=J.y2},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J),this.x1=this.x1*B,this.y1=this.y1*J,this.x2=this.x2*B,this.y2=this.y2*J,this.adjustVisual(),this.adjustControlBox()},S}(g),v=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.setStrokeColor=q.setStrokeColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.strokeColor=ue.defaultColor,q.strokeWidth=ue.defaultStrokeWidth,q.strokeDasharray=ue.defaultStrokeDasharray,q.strokePanel=new x("Line color",ue.defaultColorSet,ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new R("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new N("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return ae(S,se),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.visual&&B!==this.selectorLine&&B!==this.visibleLine)},S.prototype.createVisual=function(){this.visual=G.createGroup(),this.selectorLine=G.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=G.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},S.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),G.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),G.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),G.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setStrokeColor=function(B){this.strokeColor=B,this.adjustVisual(),this.colorChanged(B)},S.prototype.setStrokeWidth=function(B){this.strokeWidth=B,this.adjustVisual()},S.prototype.setStrokeDasharray=function(B){this.strokeDasharray=B,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){se.prototype.restoreState.call(this,B);var J=B;this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.createVisual(),this.adjustVisual()},S.typeName="LineMarker",S.title="Line marker",S.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',S}(E),_=function(se){function S(B,J,ue,q){var xe=se.call(this,B,q||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return xe.fonts=[],xe.fontBoxes=[],xe.fonts=J,xe.currentFont=ue,xe.setCurrentFont=xe.setCurrentFont.bind(xe),xe}return ae(S,se),S.prototype.getUi=function(){var B=this,J=document.createElement("div");return J.style.overflow="hidden",J.style.flexGrow="2",this.fonts.forEach(function(ue){var q=document.createElement("div");q.style.display="inline-block",q.style.alignItems="center",q.style.justifyContent="space-between",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.overflow="hidden",q.style.maxWidth=100/B.fonts.length-5+"%",q.style.borderColor=ue===B.currentFont?B.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){B.setCurrentFont(ue,q)}),J.appendChild(q);var xe=document.createElement("div");xe.style.display="flex",xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.fontFamily=ue,xe.style.overflow="hidden";var We=document.createElement("div");We.style.whiteSpace="nowrap",We.style.overflow="hidden",We.style.textOverflow="ellipsis",We.innerHTML="The quick brown fox jumps over the lazy dog",xe.appendChild(We),q.appendChild(xe),B.fontBoxes.push(q)}),J},S.prototype.setCurrentFont=function(B,J){var ue=this;this.currentFont=B,this.fontBoxes.forEach(function(q){q.style.borderColor=q===J?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},S}(y),T=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.color="transparent",q.padding=5,q.DEFAULT_TEXT="your text here",q.text=q.DEFAULT_TEXT,q.isMoved=!1,q.color=ue.defaultColor,q.fontFamily=ue.defaultFontFamily,q.defaultSize={x:100,y:30},q.setColor=q.setColor.bind(q),q.setFont=q.setFont.bind(q),q.renderText=q.renderText.bind(q),q.sizeText=q.sizeText.bind(q),q.textEditDivClicked=q.textEditDivClicked.bind(q),q.showTextEditor=q.showTextEditor.bind(q),q.setSize=q.setSize.bind(q),q.positionTextEditor=q.positionTextEditor.bind(q),q.colorPanel=new x("Color",ue.defaultColorSet,ue.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.fontFamilyPanel=new _("Font",ue.defaultFontFamilies,ue.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q}return ae(S,se),S.prototype.ownsTarget=function(B){if(se.prototype.ownsTarget.call(this,B)||B===this.visual||B===this.textElement||B===this.bgRectangle)return!0;var J=!1;return this.textElement.childNodes.forEach(function(ue){ue===B&&(J=!0)}),J},S.prototype.createVisual=function(){this.visual=G.createGroup(),this.bgRectangle=G.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=G.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(G.createTransform()),this.textElement.transform.baseVal.appendItem(G.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.isMoved=!1,this.pointerDownPoint=B,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(B),this._state="creating")},S.prototype.renderText=function(){var B=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(J){B.textElement.appendChild(G.createTSpan(J.trim()===""?" ":J.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},S.prototype.getTextScale=function(){var B=this.textElement.getBBox(),J=1;if(B.width>0&&B.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/B.width,q=(1*this.height-this.height*this.padding*2/100)/B.height;J=Math.min(ue,q)}return J},S.prototype.getTextPosition=function(B){var J=this.textElement.getBBox(),ue=0,q=0;return J.width>0&&J.height>0&&(ue=(this.width-J.width*B)/2,q=this.height/2-J.height*B/2),{x:ue,y:q}},S.prototype.sizeText=function(){var B=this.textElement.getBBox(),J=this.getTextScale(),ue=this.getTextPosition(J);ue.y-=B.y*J,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+J+", "+J+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(J,J))},S.prototype.manipulate=function(B){se.prototype.manipulate.call(this,B),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(B.x-this.pointerDownPoint.x)>5||Math.abs(B.y-this.pointerDownPoint.y)>5)},S.prototype.resize=function(B){se.prototype.resize.call(this,B),this.isMoved=!0,this.setSize(),this.sizeText()},S.prototype.setSize=function(){se.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(G.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),G.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},S.prototype.pointerUp=function(B){var J=this.state;J==="creating"&&(this._suppressMarkerCreateEvent=!0),se.prototype.pointerUp.call(this,B),this.setSize(),(J==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},S.prototype.showTextEditor=function(){var B=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(J){J.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var J=Number.parseFloat(B.textEditor.style.fontSize);B.textEditor.clientWidth>=Number.parseInt(B.textEditor.style.maxWidth)&&J>.9;)J-=.1,B.textEditor.style.fontSize=Math.max(J,.9)+"em"}),this.textEditor.addEventListener("keyup",function(J){J.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(J){if(J.clipboardData){var ue=J.clipboardData.getData("text"),q=window.getSelection();if(!q.rangeCount)return!1;q.deleteFromDocument(),q.getRangeAt(0).insertNode(document.createTextNode(ue)),J.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){B.textEditDivClicked(B.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},S.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var B=this.getTextScale(),J=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),q={x:ue.width*B,y:ue.height*B};J.x-=q.x/2,J.y-=q.y/2,this.textEditor.style.top=J.y+"px",this.textEditor.style.left=J.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-J.x+"px",this.textEditor.style.fontSize=Math.max(16*B,12)+"px",this.textElement.style.display="none"}},S.prototype.textEditDivClicked=function(B){this.text=B.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},S.prototype.select=function(){se.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},S.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),se.prototype.deselect.call(this)},S.prototype.dblClick=function(B,J){se.prototype.dblClick.call(this,B,J),this.showTextEditor()},S.prototype.setColor=function(B){this.textElement&&G.setAttributes(this.textElement,[["fill",B]]),this.color=B,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(B)},S.prototype.setFont=function(B){this.textElement&&G.setAttributes(this.textElement,[["font-family",B]]),this.fontFamily=B,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},S.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},S.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){var J=B;this.color=J.color,this.fontFamily=J.fontFamily,this.padding=J.padding,this.text=J.text,this.createVisual(),se.prototype.restoreState.call(this,B),this.setSize()},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J),this.setSize(),this.sizeText(),this.positionTextEditor()},S.typeName="TextMarker",S.title="Text marker",S.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',S}(I),w=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.color="transparent",q.lineWidth=3,q.drawing=!1,q.pixelRatio=1,q.color=ue.defaultColor,q.lineWidth=ue.defaultStrokeWidth,q.pixelRatio=ue.freehandPixelRatio,q.setColor=q.setColor.bind(q),q.addCanvas=q.addCanvas.bind(q),q.finishCreation=q.finishCreation.bind(q),q.setLineWidth=q.setLineWidth.bind(q),q.colorPanel=new x("Color",ue.defaultColorSet,ue.defaultColor),q.colorPanel.onColorChanged=q.setColor,q.lineWidthPanel=new R("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),q.lineWidthPanel.onWidthChanged=q.setLineWidth,q}return ae(S,se),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.visual&&B!==this.drawingImage)},S.prototype.createVisual=function(){this.visual=G.createGroup(),this.drawingImage=G.createImage(),this.visual.appendChild(this.drawingImage);var B=G.createTransform();this.visual.transform.baseVal.appendItem(B),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(B,J){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(B.x,B.y),this.drawing=!0):se.prototype.pointerDown.call(this,B,J)},S.prototype.manipulate=function(B){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(B.x,B.y),this.canvasContext.stroke()):se.prototype.manipulate.call(this,B)},S.prototype.resize=function(B){se.prototype.resize.call(this,B),G.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),G.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(B){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):se.prototype.pointerUp.call(this,B)},S.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},S.prototype.select=function(){this.state==="creating"&&this.finishCreation(),se.prototype.select.call(this)},S.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),se.prototype.deselect.call(this)},S.prototype.finishCreation=function(){for(var B=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),J=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=J[0],q=J[1],xe=J[2],We=J[3],it=!1,be=0;be<this.canvasElement.height;be++)for(var Le=0;Le<this.canvasElement.width;Le++)B.data[be*this.canvasElement.width*4+4*Le+3]>0&&(it=!0,be<q&&(q=be),Le<ue&&(ue=Le),be>We&&(We=be),Le>xe&&(xe=Le));if(it){this.left=ue/this.pixelRatio,this.top=q/this.pixelRatio,this.width=(xe-ue)/this.pixelRatio,this.height=(We-q)/this.pixelRatio;var Fe=document.createElement("canvas");Fe.width=xe-ue,Fe.height=We-q,Fe.getContext("2d").putImageData(this.canvasContext.getImageData(ue,q,xe-ue,We-q),0,0),this.drawingImgUrl=Fe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},S.prototype.setDrawingImage=function(){G.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),G.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},S.prototype.setColor=function(B){this.color=B,this.colorChanged(B)},S.prototype.setLineWidth=function(B){this.lineWidth=B},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=Object.assign({drawingImgUrl:this.drawingImgUrl},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){this.createVisual(),se.prototype.restoreState.call(this,B),this.drawingImgUrl=B.drawingImgUrl,this.setDrawingImage()},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J),this.setDrawingImage()},S.typeName="FreehandMarker",S.title="Freehand marker",S.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',S}(I),M=function(se){function S(B,J,ue){var q=se.call(this,B,ue||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return q.typeBoxes=[],q.currentType=J,q.setCurrentType=q.setCurrentType.bind(q),q}return ae(S,se),S.prototype.getUi=function(){var B=this,J=document.createElement("div");J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2";for(var ue=function(We){var it="both";switch(We){case 0:it="both";break;case 1:it="start";break;case 2:it="end";break;case 3:it="none"}var be=document.createElement("div");if(be.style.display="flex",be.style.flexGrow="2",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=it===q.currentType?q.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){B.setCurrentType(it,be)}),J.appendChild(be),it==="both"||it==="start"){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.minHeight="20px",Le.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Le.style.marginLeft="5px",be.appendChild(Le)}var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.minHeight="20px",Fe.style.flexGrow="2";var ze=document.createElement("hr");if(ze.style.minWidth="20px",ze.style.border="0px",ze.style.borderTop="3px solid "+(q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxColor:"#eeeeee"),ze.style.flexGrow="2",Fe.appendChild(ze),be.appendChild(Fe),it==="both"||it==="end"){var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,dt.style.marginRight="5px",be.appendChild(dt)}q.typeBoxes.push(be)},q=this,xe=0;xe<4;xe++)ue(xe);return J},S.prototype.setCurrentType=function(B,J){var ue=this;this.currentType=B,this.typeBoxes.forEach(function(q){q.style.borderColor=q===J?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},S}(y),Z=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.arrowType="end",q.arrowBaseHeight=10,q.arrowBaseWidth=10,q.getArrowPoints=q.getArrowPoints.bind(q),q.setArrowType=q.setArrowType.bind(q),q.arrowTypePanel=new M("Arrow type","end"),q.arrowTypePanel.onArrowTypeChanged=q.setArrowType,q}return ae(S,se),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.arrow1&&B!==this.arrow2)},S.prototype.getArrowPoints=function(B,J){var ue=this.arrowBaseWidth+2*this.strokeWidth,q=this.arrowBaseHeight+2*this.strokeWidth;return B-ue/2+","+(J+q/2)+" "+B+","+(J-q/2)+" "+(B+ue/2)+","+(J+q/2)},S.prototype.createTips=function(){this.arrow1=G.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(G.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=G.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(G.createTransform()),this.visual.appendChild(this.arrow2)},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.state==="creating"&&this.createTips()},S.prototype.adjustVisual=function(){if(se.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",G.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),G.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var B=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),J=this.arrow1.transform.baseVal.getItem(0);J.setRotate(B,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(J,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(B+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},S.prototype.setArrowType=function(B){this.arrowType=B,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=Object.assign({arrowType:this.arrowType},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){se.prototype.restoreState.call(this,B);var J=B;this.arrowType=J.arrowType,this.createTips(),this.adjustVisual()},S.typeName="ArrowMarker",S.title="Arrow marker",S.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',S}(v),z=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.fillColor=ue.defaultFillColor,q.strokeWidth=0,q.fillPanel=new x("Color",ue.defaultColorSet,ue.defaultFillColor),q.fillPanel.onColorChanged=q.setFillColor,q}return ae(S,se),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=se.prototype.getState.call(this);return B.typeName=S.typeName,B},S.typeName="CoverMarker",S.title="Cover marker",S.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',S}(A),L=function(se){function S(B,J,ue,q){var xe=se.call(this,B,q||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return xe.opacities=[],xe.opacityBoxes=[],xe.opacities=J,xe.currentOpacity=ue,xe.setCurrentOpacity=xe.setCurrentOpacity.bind(xe),xe}return ae(S,se),S.prototype.getUi=function(){var B=this,J=document.createElement("div");return J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2",J.style.justifyContent="space-between",this.opacities.forEach(function(ue){var q=document.createElement("div");q.style.display="flex",q.style.alignItems="center",q.style.justifyContent="center",q.style.padding="5px",q.style.borderWidth="2px",q.style.borderStyle="solid",q.style.borderColor=ue===B.currentOpacity?B.uiStyleSettings.toolboxAccentColor:"transparent",q.addEventListener("click",function(){B.setCurrentOpacity(ue,q)}),J.appendChild(q);var xe=document.createElement("div");xe.innerText=100*ue+"%",q.appendChild(xe),B.opacityBoxes.push(q)}),J},S.prototype.setCurrentOpacity=function(B,J){var ue=this;this.currentOpacity=B,this.opacityBoxes.forEach(function(q){q.style.borderColor=q===J?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},S}(y),W=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.setOpacity=q.setOpacity.bind(q),q.fillColor=ue.defaultHighlightColor,q.strokeWidth=0,q.opacity=ue.defaultHighlightOpacity,q.fillPanel=new x("Color",ue.defaultColorSet,q.fillColor),q.fillPanel.onColorChanged=q.setFillColor,q.opacityPanel=new L("Opacity",ue.defaultOpacitySteps,q.opacity),q.opacityPanel.onOpacityChanged=q.setOpacity,q}return ae(S,se),S.prototype.setOpacity=function(B){this.opacity=B,this.visual&&G.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=se.prototype.getState.call(this);return B.typeName=S.typeName,B},S.typeName="HighlightMarker",S.title="Highlight marker",S.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',S}(z),Y='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',H=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.bgColor="transparent",q.tipPosition={x:0,y:0},q.tipBase1Position={x:0,y:0},q.tipBase2Position={x:0,y:0},q.tipMoving=!1,q.color=ue.defaultStrokeColor,q.bgColor=ue.defaultFillColor,q.fontFamily=ue.defaultFontFamily,q.defaultSize={x:100,y:30},q.setBgColor=q.setBgColor.bind(q),q.getTipPoints=q.getTipPoints.bind(q),q.positionTip=q.positionTip.bind(q),q.setTipPoints=q.setTipPoints.bind(q),q.colorPanel=new x("Text color",ue.defaultColorSet,q.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),q.colorPanel.onColorChanged=q.setColor,q.bgColorPanel=new x("Fill color",ue.defaultColorSet,q.bgColor,Y),q.bgColorPanel.onColorChanged=q.setBgColor,q.fontFamilyPanel=new _("Font",ue.defaultFontFamilies,ue.defaultFontFamily),q.fontFamilyPanel.onFontChanged=q.setFont,q.tipGrip=new c,q.tipGrip.visual.transform.baseVal.appendItem(G.createTransform()),q.controlBox.appendChild(q.tipGrip.visual),q}return ae(S,se),S.prototype.ownsTarget=function(B){return se.prototype.ownsTarget.call(this,B)||this.tipGrip.ownsTarget(B)||this.tip===B},S.prototype.createTip=function(){G.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=G.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},S.prototype.pointerDown=function(B,J){this.state==="new"&&se.prototype.pointerDown.call(this,B,J),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(J)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):se.prototype.pointerDown.call(this,B,J)},S.prototype.pointerUp=function(B){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,se.prototype.pointerUp.call(this,B);else{var J=this.state==="creating";se.prototype.pointerUp.call(this,B),this.setTipPoints(J),this.positionTip()}},S.prototype.manipulate=function(B){if(this.tipMoving){var J=this.unrotatePoint(B);this.tipPosition={x:J.x-this.manipulationStartLeft,y:J.y-this.manipulationStartTop},this.positionTip()}else se.prototype.manipulate.call(this,B)},S.prototype.setBgColor=function(B){this.bgRectangle&&this.tip&&(G.setAttributes(this.bgRectangle,[["fill",B]]),G.setAttributes(this.tip,[["fill",B]])),this.bgColor=B,this.fillColorChanged(B)},S.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},S.prototype.setTipPoints=function(B){B===void 0&&(B=!1);var J=Math.min(this.height/2,15),ue=this.height/5;B&&(this.tipPosition={x:J+ue/2,y:this.height+20});var q=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?q<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:J,y:0},this.tipBase2Position={x:J+ue,y:0}):(this.tipBase1Position={x:0,y:J},this.tipBase2Position={x:0,y:J+ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?q<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ue=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-J-ue,y:0},this.tipBase2Position={x:this.width-J,y:0}):(this.tipBase1Position={x:this.width,y:J},this.tipBase2Position={x:this.width,y:J+ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?q<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ue=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-J-ue,y:this.height},this.tipBase2Position={x:this.width-J,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-J-ue},this.tipBase2Position={x:this.width,y:this.height-J}):q<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:J,y:this.height},this.tipBase2Position={x:J+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-J},this.tipBase2Position={x:0,y:this.height-J-ue})},S.prototype.resize=function(B){se.prototype.resize.call(this,B),this.positionTip()},S.prototype.positionTip=function(){G.setAttributes(this.tip,[["points",this.getTipPoints()]]);var B=this.tipGrip.visual.transform.baseVal.getItem(0);B.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(B,0)},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),S.prototype.select=function(){this.positionTip(),se.prototype.select.call(this)},S.prototype.getState=function(){var B=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){var J=B;this.bgColor=J.bgColor,this.tipPosition=J.tipPosition,se.prototype.restoreState.call(this,B),this.createTip(),this.setTipPoints()},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J),this.tipPosition={x:this.tipPosition.x*B,y:this.tipPosition.y*J},this.positionTip()},S.typeName="CalloutMarker",S.title="Callout marker",S.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',S}(T),ne=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.fillColor="transparent",q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.opacity=1,q.strokeColor=ue.defaultColor,q.strokeWidth=ue.defaultStrokeWidth,q.strokeDasharray=ue.defaultStrokeDasharray,q.fillColor=ue.defaultFillColor,q.setStrokeColor=q.setStrokeColor.bind(q),q.setFillColor=q.setFillColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.setOpacity=q.setOpacity.bind(q),q.createVisual=q.createVisual.bind(q),q.strokePanel=new x("Line color",j(ue.defaultColorSet,["transparent"]),ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.fillPanel=new x("Fill color",j(ue.defaultColorSet,["transparent"]),q.fillColor,Y),q.fillPanel.onColorChanged=q.setFillColor,q.strokeWidthPanel=new R("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new N("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q.opacityPanel=new L("Opacity",ue.defaultOpacitySteps,q.opacity),q.opacityPanel.onOpacityChanged=q.setOpacity,q}return ae(S,se),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.visual)},S.prototype.createVisual=function(){this.visual=G.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.state==="new"&&(this.createVisual(),this.moveVisual(B),this._state="creating")},S.prototype.manipulate=function(B){se.prototype.manipulate.call(this,B)},S.prototype.resize=function(B){se.prototype.resize.call(this,B),this.setSize()},S.prototype.setSize=function(){se.prototype.setSize.call(this),G.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},S.prototype.pointerUp=function(B){se.prototype.pointerUp.call(this,B),this.setSize()},S.prototype.setStrokeColor=function(B){this.strokeColor=B,this.visual&&G.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(B),this.stateChanged()},S.prototype.setFillColor=function(B){this.fillColor=B,this.visual&&G.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(B),this.stateChanged()},S.prototype.setStrokeWidth=function(B){this.strokeWidth=B,this.visual&&G.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},S.prototype.setStrokeDasharray=function(B){this.strokeDasharray=B,this.visual&&G.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},S.prototype.setOpacity=function(B){this.opacity=B,this.visual&&G.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){var J=B;this.fillColor=J.fillColor,this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.opacity=J.opacity,this.createVisual(),se.prototype.restoreState.call(this,B),this.setSize()},S.prototype.scale=function(B,J){se.prototype.scale.call(this,B,J),this.setSize()},S.typeName="EllipseMarker",S.title="Ellipse marker",S.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',S}(I),ce=function(se){function S(B,J,ue){return se.call(this,B,J,ue)||this}return ae(S,se),Object.defineProperty(S.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.tip1&&B!==this.tip2)},S.prototype.createTips=function(){this.tip1=G.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(G.createTransform()),this.visual.appendChild(this.tip1),this.tip2=G.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(G.createTransform()),this.visual.appendChild(this.tip2)},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.state==="creating"&&this.createTips()},S.prototype.adjustVisual=function(){if(se.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(G.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),G.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var B=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),J=this.tip1.transform.baseVal.getItem(0);J.setRotate(B,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(J,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(B+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=se.prototype.getState.call(this);return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){se.prototype.restoreState.call(this,B),this.createTips(),this.adjustVisual()},S.typeName="MeasurementMarker",S.title="Measurement marker",S.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',S}(v),we=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.strokePanel.colors=ue.defaultColorSet,q.fillColor="transparent",q}return ae(S,se),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=se.prototype.getState.call(this);return B.typeName=S.typeName,B},S.typeName="EllipseFrameMarker",S.title="Ellipse frame marker",S.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',S}(ne),Ce=function(){function se(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(se.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),se.prototype.addUndoStep=function(S){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(S)||(this.undoStack.push(S),JSON.stringify(this.lastRedoStep)!==JSON.stringify(S)&&this.redoStack.splice(0,this.redoStack.length))},se.prototype.replaceLastUndoStep=function(S){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=S)},se.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},se.prototype.undo=function(){if(this.undoStack.length>1){var S=this.undoStack.pop();return S!==void 0&&this.redoStack.push(S),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},se.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},se}(),Ke=function(se){function S(B,J,ue){var q=se.call(this,B,J,ue)||this;return q.strokeColor="transparent",q.strokeWidth=0,q.strokeDasharray="",q.curveX=0,q.curveY=0,q.manipulationStartCurveX=0,q.manipulationStartCurveY=0,q.setStrokeColor=q.setStrokeColor.bind(q),q.setStrokeWidth=q.setStrokeWidth.bind(q),q.setStrokeDasharray=q.setStrokeDasharray.bind(q),q.positionGrips=q.positionGrips.bind(q),q.addControlGrips=q.addControlGrips.bind(q),q.adjustVisual=q.adjustVisual.bind(q),q.setupControlBox=q.setupControlBox.bind(q),q.resize=q.resize.bind(q),q.strokeColor=ue.defaultColor,q.strokeWidth=ue.defaultStrokeWidth,q.strokeDasharray=ue.defaultStrokeDasharray,q.strokePanel=new x("Line color",ue.defaultColorSet,ue.defaultColor),q.strokePanel.onColorChanged=q.setStrokeColor,q.strokeWidthPanel=new R("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),q.strokeWidthPanel.onWidthChanged=q.setStrokeWidth,q.strokeStylePanel=new N("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),q.strokeStylePanel.onStyleChanged=q.setStrokeDasharray,q}return ae(S,se),S.prototype.ownsTarget=function(B){return!(!se.prototype.ownsTarget.call(this,B)&&B!==this.visual&&B!==this.selectorCurve&&B!==this.visibleCurve&&!this.curveGrip.ownsTarget(B))},S.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},S.prototype.createVisual=function(){this.visual=G.createGroup(),this.selectorCurve=G.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=G.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(B,J){se.prototype.pointerDown.call(this,B,J),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=B.x,this.curveY=B.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(J)&&(this.activeGrip=this.curveGrip,this._state="resize")},S.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),G.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),G.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),G.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setupControlBox=function(){se.prototype.setupControlBox.call(this),this.curveControlLine1=G.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=G.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},S.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,se.prototype.addControlGrips.call(this)},S.prototype.positionGrips=function(){se.prototype.positionGrips.call(this);var B=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-B/2,this.curveY-B/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},S.prototype.manipulate=function(B){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+B.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+B.y-this.manipulationStartY),se.prototype.manipulate.call(this,B)},S.prototype.resize=function(B){this.activeGrip===this.curveGrip&&(this.curveX=B.x,this.curveY=B.y),se.prototype.resize.call(this,B),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},S.prototype.setStrokeColor=function(B){this.strokeColor=B,this.adjustVisual(),this.colorChanged(B)},S.prototype.setStrokeWidth=function(B){this.strokeWidth=B,this.adjustVisual()},S.prototype.setStrokeDasharray=function(B){this.strokeDasharray=B,this.adjustVisual()},S.prototype.scale=function(B,J){this.curveX=this.curveX*B,this.curveY=this.curveY*J,se.prototype.scale.call(this,B,J)},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var B=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},se.prototype.getState.call(this));return B.typeName=S.typeName,B},S.prototype.restoreState=function(B){se.prototype.restoreState.call(this,B);var J=B;this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.curveX=J.curveX,this.curveY=J.curveY,this.createVisual(),this.adjustVisual()},S.typeName="CurveMarker",S.title="Curve marker",S.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',S}(E),Ie=function(){function se(S,B){B===void 0&&(B=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=S,this.cancelable=B}return Object.defineProperty(se.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),se.prototype.preventDefault=function(){this._defaultPrevented=!0},se}(),je=function(se){function S(B,J,ue){var q=se.call(this,B,!1)||this;return q.dataUrl=J,q.state=ue,q}return ae(S,se),S}(Ie),Ve=function(se){function S(B,J,ue){ue===void 0&&(ue=!1);var q=se.call(this,B,ue)||this;return q.marker=J,q}return ae(S,se),S}(Ie),$e=function(){function se(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return se.prototype.addEventListener=function(S,B){this[S].push(B)},se.prototype.removeEventListener=function(S,B){var J=this[S].indexOf(B);J>-1&&this[S].splice(J,1)},se}(),Pe=function(){function se(S){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new D,this._isOpen=!1,this.undoRedoManager=new Ce,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new $e,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=se.instanceCounter++,this.styles=new F(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=S,this.targetRoot=document.body,this.width=S.clientWidth,this.height=S.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(se.prototype,"ALL_MARKER_TYPES",{get:function(){return[P,w,Z,T,we,ne,W,H,ce,z,v,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[P,w,Z,T,ne,W,H]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"BASIC_MARKER_TYPES",{get:function(){return[P,w,Z,T,W]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(S){var B=this;this._availableMarkerTypes.splice(0),S.forEach(function(J){if(typeof J=="string"){var ue=B.ALL_MARKER_TYPES.find(function(q){return q.typeName===J});ue!==void 0&&B._availableMarkerTypes.push(ue)}else B._availableMarkerTypes.push(J)})},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(S){this._zoomLevel=S,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),se.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},se.prototype.show=function(){var S=this;this.styles.styleSheetRoot===void 0&&l.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=l.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(B){return B(new Ie(S))})},se.prototype.render=function(){return X(this,void 0,void 0,function(){var S;return le(this,function(B){switch(B.label){case 0:return this.setCurrentMarker(),(S=new V).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.markersOnly=this.renderMarkersOnly,S.width=this.renderWidth,S.height=this.renderHeight,[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return B.sent(),[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,B.sent()]}})})},se.prototype.close=function(S){var B=this;if(S===void 0&&(S=!1),this.isOpen){var J=!1;S||this.eventListeners.beforeclose.forEach(function(ue){var q=new Ie(B,!0);ue(q),q.defaultPrevented&&(J=!0)}),J||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new Ie(B))}),this.detachEvents(),this._isOpen=!1)}},se.prototype.addMarkersToToolbar=function(){for(var S,B=[],J=0;J<arguments.length;J++)B[J]=arguments[J];(S=this._availableMarkerTypes).push.apply(S,B)},se.prototype.addRenderEventListener=function(S){this.addEventListener("render",function(B){S(B.dataUrl,B.state)})},se.prototype.removeRenderEventListener=function(S){},se.prototype.addCloseEventListener=function(S){this.addEventListener("close",function(){S()})},se.prototype.removeCloseEventListener=function(S){},se.prototype.setupResizeObserver=function(){var S=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){S.resize(S.target.clientWidth,S.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return S.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},se.prototype.onPopupTargetResize=function(){var S=1*this.target.clientWidth/this.target.clientHeight,B=this.editorCanvas.clientWidth/S>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*S:this.editorCanvas.clientWidth,J=B<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/S;this.resize(B,J)},se.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},se.prototype.resize=function(S,B){this._isResizing=!0;var J=S/this.imageWidth,ue=B/this.imageHeight;this.imageWidth=Math.round(S),this.imageHeight=Math.round(B),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(J,ue),this._isResizing=!1},se.prototype.scaleMarkers=function(S,B){var J,ue=this;this._currentMarker&&this._currentMarker instanceof T?this._currentMarker.scale(S,B):(J=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(q){q!==ue._currentMarker&&q.scale(S,B)}),J!==void 0&&this.setCurrentMarker(J)},se.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},se.prototype.setTopLeft=function(){var S=this.editingTarget.getBoundingClientRect(),B=this.editorCanvas.getBoundingClientRect();this.left=S.left-B.left,this.top=S.top-B.top},se.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},se.prototype.addDefs=function(){for(var S,B=[],J=0;J<arguments.length;J++)B[J]=arguments[J];this.defs=G.createDefs(),this.addDefsToImage(),(S=this.defs).append.apply(S,B)},se.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},se.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},se.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},se.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},se.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},se.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},se.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},se.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var S=document.createElement("a");S.href="https://markerjs.com/",S.target="_blank",S.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',S.title="Powered by marker.js",S.style.display="grid",S.style.alignItems="center",S.style.justifyItems="center",S.style.padding="3px",S.style.width="20px",S.style.height="20px",this.logoUI.appendChild(S),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},se.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},se.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},se.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},se.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new b(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new p(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},se.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},se.prototype.removeMarker=function(S){this.markerImage.removeChild(S.container),this.markers.indexOf(S)>-1&&this.markers.splice(this.markers.indexOf(S),1),S.dispose()},se.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},se.prototype.toolbarButtonClicked=function(S,B){if(S==="marker"&&B!==void 0)this.createNewMarker(B);else if(S==="action")switch(B){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},se.prototype.deleteSelectedMarker=function(){var S=this;if(this._currentMarker!==void 0){var B=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var q=new Ve(S,S._currentMarker,!0);ue(q),q.defaultPrevented&&(B=!0)}),!B){var J=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new Ve(S,J))})}}},se.prototype.clear=function(){var S=this,B=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(xe){var We=new Ve(S,void 0,!0);xe(We),We.defaultPrevented&&(B=!0)}),!B)){this.setCurrentMarker();for(var J=function(xe){var We=ue.markers[xe];ue.setCurrentMarker(ue.markers[xe]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(it){return it(new Ve(S,We))})},ue=this,q=this.markers.length-1;q>=0;q--)J(q);this.addUndoStep()}},Object.defineProperty(se.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),se.prototype.showNotesEditor=function(){var S;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(S=this._currentMarker.notes)!==null&&S!==void 0?S:"",this.overlayContainer.appendChild(this.notesArea))},se.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},se.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},se.prototype.addUndoStep=function(){var S=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var B=this.getState(),J=this.undoRedoManager.getLastUndoStep();if(!J||J.width===B.width&&J.height===B.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(B),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(q){return q(new Ie(S))})}else this.undoRedoManager.replaceLastUndoStep(B),this.eventListeners.statechange.forEach(function(q){return q(new Ie(S))})}},se.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},se.prototype.undoStep=function(){var S=this,B=this.undoRedoManager.undo();B!==void 0&&(this.restoreState(B),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(J){return J(new Ie(S))}))},se.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},se.prototype.redoStep=function(){var S=this,B=this.undoRedoManager.redo();B!==void 0&&(this.restoreState(B),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(J){return J(new Ie(S))}))},se.prototype.stepZoom=function(){var S=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=S<this.zoomSteps.length-1?this.zoomSteps[S+1]:this.zoomSteps[0]},se.prototype.panTo=function(S){this.contentDiv.scrollBy({left:this.prevPanPoint.x-S.x,top:this.prevPanPoint.y-S.y}),this.prevPanPoint=S},se.prototype.startRenderAndClose=function(){return X(this,void 0,void 0,function(){var S,B,J=this;return le(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return S=ue.sent(),B=this.getState(),this.eventListeners.render.forEach(function(q){return q(new je(J,S,B))}),this.close(!0),[2]}})})},se.prototype.getState=function(S){S===!0&&this.setCurrentMarker();var B={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(J){return B.markers.push(J.getState())}),B},se.prototype.restoreState=function(S){var B=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);S.markers.forEach(function(J){var ue=B._availableMarkerTypes.find(function(xe){return xe.typeName===J.typeName});if(ue!==void 0){var q=B.addNewMarker(ue);q.restoreState(J),B.markers.push(q)}}),S.width&&S.height&&(S.width!==this.imageWidth||S.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/S.width,this.imageHeight/S.height),this.eventListeners.restorestate.forEach(function(J){return J(new Ie(B))})},se.prototype.addNewMarker=function(S){var B=G.createGroup();return this.markerImage.appendChild(B),new S(B,this.overlayContainer,this.settings)},se.prototype.createNewMarker=function(S){var B,J=this;(B=typeof S=="string"?this._availableMarkerTypes.find(function(ue){return ue.typeName===S}):S)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(B),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(B.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ue){return ue(new Ve(J,J._currentMarker))}))},se.prototype.markerCreated=function(S){var B=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(S),this.setCurrentMarker(S),S instanceof w&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(w):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(J){return J(new Ve(B,B._currentMarker))})},se.prototype.colorChanged=function(S){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=S,this.settings.defaultStrokeColor=S)},se.prototype.fillColorChanged=function(S){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=S)},se.prototype.markerStateChanged=function(S){var B=this;this.eventListeners.markerchange.forEach(function(J){return J(new Ve(B,S))})},se.prototype.setCurrentMarker=function(S){var B=this;this._currentMarker!==S&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(J){return J(new Ve(B,B._currentMarker))})),this._currentMarker=S,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(J){return J(new Ve(B,B._currentMarker))}))},se.prototype.onPointerDown=function(S){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||S.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var B=this.markers.find(function(J){return J.ownsTarget(S.target)});B!==void 0?(this.setCurrentMarker(B),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(S.clientX,S.clientY),S.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:S.clientX,y:S.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(S.clientX,S.clientY))},se.prototype.onDblClick=function(S){if(this._isFocused||this.focus(),this.mode==="select"){var B=this.markers.find(function(J){return J.ownsTarget(S.target)});B!==void 0&&B!==this._currentMarker&&this.setCurrentMarker(B),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(S.clientX,S.clientY),S.target):this.setCurrentMarker()}},se.prototype.onPointerMove=function(S){this.touchPoints!==1&&S.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||S.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(S.clientX,S.clientY)):this.zoomLevel>1&&this.panTo({x:S.clientX,y:S.clientY}))},se.prototype.onPointerUp=function(S){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(S.clientX,S.clientY)),this.isDragging=!1,this.addUndoStep()},se.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},se.prototype.onKeyUp=function(S){this._currentMarker===void 0||this.notesArea!==void 0||S.key!=="Delete"&&S.key!=="Backspace"||this.deleteSelectedMarker()},se.prototype.clientToLocalCoordinates=function(S,B){var J=this.markerImage.getBoundingClientRect();return{x:(S-J.left)/this.zoomLevel,y:(B-J.top)/this.zoomLevel}},se.prototype.onWindowResize=function(){this.positionUI()},se.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},se.prototype.addLicenseKey=function(S){oe.addKey(S)},se.prototype.addEventListener=function(S,B){this.eventListeners.addEventListener(S,B)},se.prototype.removeEventListener=function(S,B){this.eventListeners.removeEventListener(S,B)},se.prototype.renderState=function(S){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(S),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(se.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),se.prototype.focus=function(){var S=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(B){return B(new Ie(S))}))},se.prototype.blur=function(){var S=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(B){return B(new Ie(S))}))},se.instanceCounter=0,se}()},T8No:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return oe}),ie.d(Ne,"e",function(){return V}),ie.d(Ne,"c",function(){return v}),ie.d(Ne,"b",function(){return _}),ie.d(Ne,"d",function(){return T}),ie.d(Ne,"f",function(){return Z});var Te=ie("MNsG"),ae=ie("N0LK"),X=ie("Cg/j");let le=Te.k||"";const j=new Map;j.set("false",!1),j.set("true",!0),j.set("isMac",Te.f),j.set("isLinux",Te.d),j.set("isWindows",Te.i),j.set("isWeb",Te.h),j.set("isMacNative",Te.f&&!Te.h),j.set("isEdge",le.indexOf("Edg/")>=0),j.set("isFirefox",le.indexOf("Firefox")>=0),j.set("isChrome",le.indexOf("Chrome")>=0),j.set("isSafari",le.indexOf("Safari")>=0);const G=Object.prototype.hasOwnProperty;class oe{static has(L){return C.create(L)}static equals(L,W){return b.create(L,W)}static regex(L,W){return R.create(L,W)}static not(L){return g.create(L)}static and(...L){return D.create(L,null)}static or(...L){return E.create(L,null,!0)}static deserialize(L,W=!1){return L?this._deserializeOrExpression(L,W):void 0}static _deserializeOrExpression(L,W){let Y=L.split("||");return E.create(Y.map(H=>this._deserializeAndExpression(H,W)),null,!0)}static _deserializeAndExpression(L,W){let Y=L.split("&&");return D.create(Y.map(H=>this._deserializeOne(H,W)),null)}static _deserializeOne(L,W){if(L=L.trim(),L.indexOf("!=")>=0){let Y=L.split("!=");return x.create(Y[0].trim(),this._deserializeValue(Y[1],W))}if(L.indexOf("==")>=0){let Y=L.split("==");return b.create(Y[0].trim(),this._deserializeValue(Y[1],W))}if(L.indexOf("=~")>=0){let Y=L.split("=~");return R.create(Y[0].trim(),this._deserializeRegexValue(Y[1],W))}if(L.indexOf(" in ")>=0){let Y=L.split(" in ");return p.create(Y[0].trim(),Y[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(L)){const Y=L.split(">=");return d.create(Y[0].trim(),Y[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(L)){const Y=L.split(">");return c.create(Y[0].trim(),Y[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(L)){const Y=L.split("<=");return A.create(Y[0].trim(),Y[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(L)){const Y=L.split("<");return I.create(Y[0].trim(),Y[1].trim())}return/^\!\s*/.test(L)?g.create(L.substr(1).trim()):C.create(L)}static _deserializeValue(L,W){if(L=L.trim(),L==="true")return!0;if(L==="false")return!1;let Y=/^'([^']*)'$/.exec(L);return Y?Y[1].trim():L}static _deserializeRegexValue(L,W){if(Object(ae.C)(L)){if(W)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Y=L.indexOf("/"),H=L.lastIndexOf("/");if(Y===H||Y<0){if(W)throw new Error(`bad regexp-value '${L}', missing /-enclosure`);return console.warn(`bad regexp-value '${L}', missing /-enclosure`),null}let ne=L.slice(Y+1,H),ce=L[H+1]==="i"?"i":"";try{return new RegExp(ne,ce)}catch(we){if(W)throw new Error(`bad regexp-value '${L}', parse error: ${we}`);return console.warn(`bad regexp-value '${L}', parse error: ${we}`),null}}}function V(L,W){const Y=L?L.substituteConstants():void 0,H=W?W.substituteConstants():void 0;return!Y&&!H?!0:!Y||!H?!1:Y.equals(H)}function l(L,W){return L.cmp(W)}class F{constructor(){this.type=0}cmp(L){return this.type-L.type}equals(L){return L.type===this.type}substituteConstants(){return this}evaluate(L){return!1}serialize(){return"false"}keys(){return[]}negate(){return O.INSTANCE}}F.INSTANCE=new F;class O{constructor(){this.type=1}cmp(L){return this.type-L.type}equals(L){return L.type===this.type}substituteConstants(){return this}evaluate(L){return!0}serialize(){return"true"}keys(){return[]}negate(){return F.INSTANCE}}O.INSTANCE=new O;class C{constructor(L,W){this.key=L,this.negated=W,this.type=2}static create(L,W=null){const Y=j.get(L);return typeof Y=="boolean"?Y?O.INSTANCE:F.INSTANCE:new C(L,W)}cmp(L){return L.type!==this.type?this.type-L.type:w(this.key,L.key)}equals(L){return L.type===this.type?this.key===L.key:!1}substituteConstants(){const L=j.get(this.key);return typeof L=="boolean"?L?O.INSTANCE:F.INSTANCE:this}evaluate(L){return!!L.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}class b{constructor(L,W,Y){this.key=L,this.value=W,this.negated=Y,this.type=4}static create(L,W,Y=null){if(typeof W=="boolean")return W?C.create(L,Y):g.create(L,Y);const H=j.get(L);if(typeof H=="boolean"){const ne=H?"true":"false";return W===ne?O.INSTANCE:F.INSTANCE}return new b(L,W,Y)}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){const L=j.get(this.key);if(typeof L=="boolean"){const W=L?"true":"false";return this.value===W?O.INSTANCE:F.INSTANCE}return this}evaluate(L){return L.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class p{constructor(L,W){this.key=L,this.valueKey=W,this.type=10,this.negated=null}static create(L,W){return new p(L,W)}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.valueKey,L.key,L.valueKey)}equals(L){return L.type===this.type?this.key===L.key&&this.valueKey===L.valueKey:!1}substituteConstants(){return this}evaluate(L){const W=L.getValue(this.valueKey),Y=L.getValue(this.key);return Array.isArray(W)?W.indexOf(Y)>=0:typeof Y=="string"&&typeof W=="object"&&W!==null?G.call(W,Y):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=y.create(this)),this.negated}}class y{constructor(L){this._actual=L,this.type=11}static create(L){return new y(L)}cmp(L){return L.type!==this.type?this.type-L.type:this._actual.cmp(L._actual)}equals(L){return L.type===this.type?this._actual.equals(L._actual):!1}substituteConstants(){return this}evaluate(L){return!this._actual.evaluate(L)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class x{constructor(L,W,Y){this.key=L,this.value=W,this.negated=Y,this.type=5}static create(L,W,Y=null){if(typeof W=="boolean")return W?g.create(L,Y):C.create(L,Y);const H=j.get(L);if(typeof H=="boolean"){const ne=H?"true":"false";return W===ne?F.INSTANCE:O.INSTANCE}return new x(L,W,Y)}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){const L=j.get(this.key);if(typeof L=="boolean"){const W=L?"true":"false";return this.value===W?F.INSTANCE:O.INSTANCE}return this}evaluate(L){return L.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class g{constructor(L,W){this.key=L,this.negated=W,this.type=3}static create(L,W=null){const Y=j.get(L);return typeof Y=="boolean"?Y?F.INSTANCE:O.INSTANCE:new g(L,W)}cmp(L){return L.type!==this.type?this.type-L.type:w(this.key,L.key)}equals(L){return L.type===this.type?this.key===L.key:!1}substituteConstants(){const L=j.get(this.key);return typeof L=="boolean"?L?F.INSTANCE:O.INSTANCE:this}evaluate(L){return!L.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this.key,this)),this.negated}}function h(L,W){if(typeof L=="string"){const Y=parseFloat(L);isNaN(Y)||(L=Y)}return typeof L=="string"||typeof L=="number"?W(L):F.INSTANCE}class c{constructor(L,W,Y){this.key=L,this.value=W,this.negated=Y,this.type=12}static create(L,W,Y=null){return h(W,H=>new c(L,H,Y))}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class d{constructor(L,W,Y){this.key=L,this.value=W,this.negated=Y,this.type=13}static create(L,W,Y=null){return h(W,H=>new d(L,H,Y))}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}class I{constructor(L,W,Y){this.key=L,this.value=W,this.negated=Y,this.type=14}static create(L,W,Y=null){return h(W,H=>new I(L,H,Y))}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this.value,this)),this.negated}}class A{constructor(L,W,Y){this.key=L,this.value=W,this.negated=Y,this.type=15}static create(L,W,Y=null){return h(W,H=>new A(L,H,Y))}cmp(L){return L.type!==this.type?this.type-L.type:M(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class R{constructor(L,W){this.key=L,this.regexp=W,this.type=7,this.negated=null}static create(L,W){return new R(L,W)}cmp(L){if(L.type!==this.type)return this.type-L.type;if(this.key<L.key)return-1;if(this.key>L.key)return 1;const W=this.regexp?this.regexp.source:"",Y=L.regexp?L.regexp.source:"";return W<Y?-1:W>Y?1:0}equals(L){if(L.type===this.type){const W=this.regexp?this.regexp.source:"",Y=L.regexp?L.regexp.source:"";return this.key===L.key&&W===Y}return!1}substituteConstants(){return this}evaluate(L){let W=L.getValue(this.key);return this.regexp?this.regexp.test(W):!1}serialize(){const L=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${L}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this)),this.negated}}class N{constructor(L){this._actual=L,this.type=8}static create(L){return new N(L)}cmp(L){return L.type!==this.type?this.type-L.type:this._actual.cmp(L._actual)}equals(L){return L.type===this.type?this._actual.equals(L._actual):!1}substituteConstants(){return this}evaluate(L){return!this._actual.evaluate(L)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function P(L){let W=null;for(let Y=0,H=L.length;Y<H;Y++){const ne=L[Y].substituteConstants();if(L[Y]!==ne&&W===null){W=[];for(let ce=0;ce<Y;ce++)W[ce]=L[ce]}W!==null&&(W[Y]=ne)}return W===null?L:W}class D{constructor(L,W){this.expr=L,this.negated=W,this.type=6}static create(L,W){return D._normalizeArr(L,W)}cmp(L){if(L.type!==this.type)return this.type-L.type;if(this.expr.length<L.expr.length)return-1;if(this.expr.length>L.expr.length)return 1;for(let W=0,Y=this.expr.length;W<Y;W++){const H=l(this.expr[W],L.expr[W]);if(H!==0)return H}return 0}equals(L){if(L.type===this.type){if(this.expr.length!==L.expr.length)return!1;for(let W=0,Y=this.expr.length;W<Y;W++)if(!this.expr[W].equals(L.expr[W]))return!1;return!0}return!1}substituteConstants(){const L=P(this.expr);return L===this.expr?this:D.create(L,this.negated)}evaluate(L){for(let W=0,Y=this.expr.length;W<Y;W++)if(!this.expr[W].evaluate(L))return!1;return!0}static _normalizeArr(L,W){const Y=[];let H=!1;for(const ne of L){if(!ne)continue;if(ne.type===1){H=!0;continue}if(ne.type===0)return F.INSTANCE;if(ne.type===6){Y.push(...ne.expr);continue}Y.push(ne)}if(Y.length===0&&H)return O.INSTANCE;if(Y.length===0)return;if(Y.length===1)return Y[0];Y.sort(l);for(let ne=1;ne<Y.length;ne++)Y[ne-1].equals(Y[ne])&&(Y.splice(ne,1),ne--);if(Y.length===1)return Y[0];for(;Y.length>1;){const ne=Y[Y.length-1];if(ne.type!==9)break;Y.pop();const ce=Y.pop(),we=Y.length===0,Ce=E.create(ne.expr.map(Ke=>D.create([Ke,ce],null)),null,we);Ce&&(Y.push(Ce),Y.sort(l))}return Y.length===1?Y[0]:new D(Y,W)}serialize(){return this.expr.map(L=>L.serialize()).join(" && ")}keys(){const L=[];for(let W of this.expr)L.push(...W.keys());return L}negate(){if(!this.negated){const L=[];for(let W of this.expr)L.push(W.negate());this.negated=E.create(L,this,!0)}return this.negated}}class E{constructor(L,W){this.expr=L,this.negated=W,this.type=9}static create(L,W,Y){return E._normalizeArr(L,W,Y)}cmp(L){if(L.type!==this.type)return this.type-L.type;if(this.expr.length<L.expr.length)return-1;if(this.expr.length>L.expr.length)return 1;for(let W=0,Y=this.expr.length;W<Y;W++){const H=l(this.expr[W],L.expr[W]);if(H!==0)return H}return 0}equals(L){if(L.type===this.type){if(this.expr.length!==L.expr.length)return!1;for(let W=0,Y=this.expr.length;W<Y;W++)if(!this.expr[W].equals(L.expr[W]))return!1;return!0}return!1}substituteConstants(){const L=P(this.expr);return L===this.expr?this:E.create(L,this.negated,!1)}evaluate(L){for(let W=0,Y=this.expr.length;W<Y;W++)if(this.expr[W].evaluate(L))return!0;return!1}static _normalizeArr(L,W,Y){let H=[],ne=!1;if(L){for(let ce=0,we=L.length;ce<we;ce++){const Ce=L[ce];if(!Ce)continue;if(Ce.type===0){ne=!0;continue}if(Ce.type===1)return O.INSTANCE;if(Ce.type===9){H=H.concat(Ce.expr);continue}H.push(Ce)}if(H.length===0&&ne)return F.INSTANCE;H.sort(l)}if(H.length===0)return;if(H.length===1)return H[0];for(let ce=1;ce<H.length;ce++)H[ce-1].equals(H[ce])&&(H.splice(ce,1),ce--);if(H.length===1)return H[0];if(Y){for(let ce=0;ce<H.length;ce++)for(let we=ce+1;we<H.length;we++)Z(H[ce],H[we])&&(H.splice(we,1),we--);if(H.length===1)return H[0]}return new E(H,W)}serialize(){return this.expr.map(L=>L.serialize()).join(" || ")}keys(){const L=[];for(let W of this.expr)L.push(...W.keys());return L}negate(){if(!this.negated){let L=[];for(let W of this.expr)L.push(W.negate());for(;L.length>1;){const W=L.shift(),Y=L.shift(),H=[];for(const ce of z(W))for(const we of z(Y))H.push(D.create([ce,we],null));const ne=L.length===0;L.unshift(E.create(H,null,ne))}this.negated=L[0]}return this.negated}}class v extends C{constructor(L,W,Y){super(L,null);this._defaultValue=W,typeof Y=="object"?v._info.push(Object.assign(Object.assign({},Y),{key:L})):Y!==!0&&v._info.push({key:L,description:Y,type:W!=null?typeof W:void 0})}static all(){return v._info.values()}bindTo(L){return L.createKey(this.key,this._defaultValue)}getValue(L){return L.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(L){return b.create(this.key,L)}}v._info=[];const _=Object(X.c)("contextKeyService"),T="setContext";function w(L,W){return L<W?-1:L>W?1:0}function M(L,W,Y,H){return L<Y?-1:L>Y?1:W<H?-1:W>H?1:0}function Z(L,W){if(W.type===6&&L.type!==9&&L.type!==6){for(const ne of W.expr)if(L.equals(ne))return!0}const Y=L.negate(),H=z(Y).concat(z(W));H.sort(l);for(let ne=0;ne<H.length;ne++){const ce=H[ne],we=ce.negate();for(let Ce=ne+1;Ce<H.length;Ce++){const Ke=H[Ce];if(we.equals(Ke))return!0}}return!1}function z(L){return L.type===9?L.expr:[L]}},TXwP:function(Dt,Ne,ie){var Te,ae;(function(){var X;(function(){"use strict";var j=[,,function(l){function F(b){this.__parent=b,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}F.prototype.clone_empty=function(){var b=new F(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},F.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},F.prototype.has_match=function(b){for(var p=this.__items.length-1;p>=0;p--)if(this.__items[p].match(b))return!0;return!1},F.prototype.set_indent=function(b,p){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=p||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},F.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},F.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},F.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var b=this.__parent.current_line;return b.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),b.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),b.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,b.__items[0]===" "&&(b.__items.splice(0,1),b.__character_count-=1),!0}return!1},F.prototype.is_empty=function(){return this.__items.length===0},F.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},F.prototype.push=function(b){this.__items.push(b);var p=b.lastIndexOf(`
`);p!==-1?this.__character_count=b.length-p:this.__character_count+=b.length},F.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},F.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},F.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},F.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},F.prototype.toString=function(){var b="";return this.is_empty()?this.__parent.indent_empty_lines&&(b=this.__parent.get_indent_string(this.__indent_count)):(b=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),b+=this.__items.join("")),b};function O(b,p){this.__cache=[""],this.__indent_size=b.indent_size,this.__indent_string=b.indent_char,b.indent_with_tabs||(this.__indent_string=new Array(b.indent_size+1).join(b.indent_char)),p=p||"",b.indent_level>0&&(p=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=p,this.__base_string_length=p.length}O.prototype.get_indent_size=function(b,p){var y=this.__base_string_length;return p=p||0,b<0&&(y=0),y+=b*this.__indent_size,y+=p,y},O.prototype.get_indent_string=function(b,p){var y=this.__base_string;return p=p||0,b<0&&(b=0,y=""),p+=b*this.__indent_size,this.__ensure_cache(p),y+=this.__cache[p],y},O.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},O.prototype.__add_column=function(){var b=this.__cache.length,p=0,y="";this.__indent_size&&b>=this.__indent_size&&(p=Math.floor(b/this.__indent_size),b-=p*this.__indent_size,y=new Array(p+1).join(this.__indent_string)),b&&(y+=new Array(b+1).join(" ")),this.__cache.push(y)};function C(b,p){this.__indent_cache=new O(b,p),this.raw=!1,this._end_with_newline=b.end_with_newline,this.indent_size=b.indent_size,this.wrap_line_length=b.wrap_line_length,this.indent_empty_lines=b.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new F(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}C.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},C.prototype.get_line_number=function(){return this.__lines.length},C.prototype.get_indent_string=function(b,p){return this.__indent_cache.get_indent_string(b,p)},C.prototype.get_indent_size=function(b,p){return this.__indent_cache.get_indent_size(b,p)},C.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},C.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},C.prototype.get_code=function(b){this.trim(!0);var p=this.current_line.pop();p&&(p[p.length-1]===`
`&&(p=p.replace(/\n+$/g,"")),this.current_line.push(p)),this._end_with_newline&&this.__add_outputline();var y=this.__lines.join(`
`);return b!==`
`&&(y=y.replace(/[\n]/g,b)),y},C.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},C.prototype.set_indent=function(b,p){return b=b||0,p=p||0,this.next_line.set_indent(b,p),this.__lines.length>1?(this.current_line.set_indent(b,p),!0):(this.current_line.set_indent(),!1)},C.prototype.add_raw_token=function(b){for(var p=0;p<b.newlines;p++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(b.whitespace_before),this.current_line.push(b.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},C.prototype.add_token=function(b){this.__add_space_before_token(),this.current_line.push(b),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},C.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},C.prototype.remove_indent=function(b){for(var p=this.__lines.length;b<p;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},C.prototype.trim=function(b){for(b=b===void 0?!1:b,this.current_line.trim();b&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},C.prototype.just_added_newline=function(){return this.current_line.is_empty()},C.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},C.prototype.ensure_empty_line_above=function(b,p){for(var y=this.__lines.length-2;y>=0;){var x=this.__lines[y];if(x.is_empty())break;if(x.item(0).indexOf(b)!==0&&x.item(-1)!==p){this.__lines.splice(y+1,0,new F(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},l.exports.Output=C},,,,function(l){function F(b,p){this.raw_options=O(b,p),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}F.prototype._get_array=function(b,p){var y=this.raw_options[b],x=p||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(x=y.concat()):typeof y=="string"&&(x=y.split(/[^a-zA-Z0-9_\/\-]+/)),x},F.prototype._get_boolean=function(b,p){var y=this.raw_options[b],x=y===void 0?!!p:!!y;return x},F.prototype._get_characters=function(b,p){var y=this.raw_options[b],x=p||"";return typeof y=="string"&&(x=y.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),x},F.prototype._get_number=function(b,p){var y=this.raw_options[b];p=parseInt(p,10),isNaN(p)&&(p=0);var x=parseInt(y,10);return isNaN(x)&&(x=p),x},F.prototype._get_selection=function(b,p,y){var x=this._get_selection_list(b,p,y);if(x.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+p+`
You passed in: '`+this.raw_options[b]+"'");return x[0]},F.prototype._get_selection_list=function(b,p,y){if(!p||p.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[p[0]],!this._is_valid_selection(y,p))throw new Error("Invalid Default Value!");var x=this._get_array(b,y);if(!this._is_valid_selection(x,p))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+p+`
You passed in: '`+this.raw_options[b]+"'");return x},F.prototype._is_valid_selection=function(b,p){return b.length&&p.length&&!b.some(function(y){return p.indexOf(y)===-1})};function O(b,p){var y={};b=C(b);var x;for(x in b)x!==p&&(y[x]=b[x]);if(p&&b[p])for(x in b[p])y[x]=b[p][x];return y}function C(b){var p={},y;for(y in b){var x=y.replace(/-/g,"_");p[x]=b[y]}return p}l.exports.Options=F,l.exports.normalizeOpts=C,l.exports.mergeOpts=O},,function(l){var F=RegExp.prototype.hasOwnProperty("sticky");function O(C){this.__input=C||"",this.__input_length=this.__input.length,this.__position=0}O.prototype.restart=function(){this.__position=0},O.prototype.back=function(){this.__position>0&&(this.__position-=1)},O.prototype.hasNext=function(){return this.__position<this.__input_length},O.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__input.charAt(this.__position),this.__position+=1),C},O.prototype.peek=function(C){var b=null;return C=C||0,C+=this.__position,C>=0&&C<this.__input_length&&(b=this.__input.charAt(C)),b},O.prototype.__match=function(C,b){C.lastIndex=b;var p=C.exec(this.__input);return p&&!(F&&C.sticky)&&(p.index!==b&&(p=null)),p},O.prototype.test=function(C,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(C,b):!1},O.prototype.testChar=function(C,b){var p=this.peek(b);return C.lastIndex=0,p!==null&&C.test(p)},O.prototype.match=function(C){var b=this.__match(C,this.__position);return b?this.__position+=b[0].length:b=null,b},O.prototype.read=function(C,b,p){var y="",x;return C&&(x=this.match(C),x&&(y+=x[0])),b&&(x||!C)&&(y+=this.readUntil(b,p)),y},O.prototype.readUntil=function(C,b){var p="",y=this.__position;C.lastIndex=this.__position;var x=C.exec(this.__input);return x?(y=x.index,b&&(y+=x[0].length)):y=this.__input_length,p=this.__input.substring(this.__position,y),this.__position=y,p},O.prototype.readUntilAfter=function(C){return this.readUntil(C,!0)},O.prototype.get_regexp=function(C,b){var p=null,y="g";return b&&F&&(y="y"),typeof C=="string"&&C!==""?p=new RegExp(C,y):C&&(p=new RegExp(C.source,y)),p},O.prototype.get_literal_regexp=function(C){return RegExp(C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},O.prototype.peekUntilAfter=function(C){var b=this.__position,p=this.readUntilAfter(C);return this.__position=b,p},O.prototype.lookBack=function(C){var b=this.__position-1;return b>=C.length&&this.__input.substring(b-C.length,b).toLowerCase()===C},l.exports.InputScanner=O},,,,,function(l){function F(O,C){O=typeof O=="string"?O:O.source,C=typeof C=="string"?C:C.source,this.__directives_block_pattern=new RegExp(O+/ beautify( \w+[:]\w+)+ /.source+C,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(O+/\sbeautify\signore:end\s/.source+C,"g")}F.prototype.get_directives=function(O){if(!O.match(this.__directives_block_pattern))return null;var C={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(O);b;)C[b[1]]=b[2],b=this.__directive_pattern.exec(O);return C},F.prototype.readIgnored=function(O){return O.readUntilAfter(this.__directives_end_ignore_pattern)},l.exports.Directives=F},,function(l,F,O){var C=O(16).Beautifier,b=O(17).Options;function p(y,x){var g=new C(y,x);return g.beautify()}l.exports=p,l.exports.defaultOptions=function(){return new b}},function(l,F,O){var C=O(17).Options,b=O(2).Output,p=O(8).InputScanner,y=O(13).Directives,x=new y(/\/\*/,/\*\//),g=/\r\n|[\r\n]/,h=/\r\n|[\r\n]/g,c=/\s/,d=/(?:\s|\n)+/g,I=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,A=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function R(N,P){this._source_text=N||"",this._options=new C(P),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}R.prototype.eatString=function(N){var P="";for(this._ch=this._input.next();this._ch;){if(P+=this._ch,this._ch==="\\")P+=this._input.next();else if(N.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return P},R.prototype.eatWhitespace=function(N){for(var P=c.test(this._input.peek()),D=0;c.test(this._input.peek());)this._ch=this._input.next(),N&&this._ch===`
`&&((D===0||D<this._options.max_preserve_newlines)&&(D++,this._output.add_new_line(!0)));return P},R.prototype.foundNestedPseudoClass=function(){for(var N=0,P=1,D=this._input.peek(P);D;){if(D==="{")return!0;if(D==="(")N+=1;else if(D===")"){if(N===0)return!1;N-=1}else if(D===";"||D==="}")return!1;P++,D=this._input.peek(P)}return!1},R.prototype.print_string=function(N){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(N)},R.prototype.preserveSingleSpace=function(N){N&&(this._output.space_before_token=!0)},R.prototype.indent=function(){this._indentLevel++},R.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},R.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N=this._source_text,P=this._options.eol;P==="auto"&&(P=`
`,N&&g.test(N||"")&&(P=N.match(g)[0])),N=N.replace(h,`
`);var D=N.match(/^[\t ]*/)[0];this._output=new b(this._options,D),this._input=new p(N),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var E=0,v=!1,_=!1,T=!1,w=!1,M=!1,Z=!1,z=this._ch,L=!1,W,Y,H;W=this._input.read(d),Y=W!=="",H=z,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),z=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var ne=this._input.read(I),ce=x.get_directives(ne);ce&&ce.ignore==="start"&&(ne+=x.readIgnored(this._input)),this.print_string(ne),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(A)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(Y),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var we=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);we.match(/[ :]$/)&&(we=this.eatString(": ").replace(/\s$/,""),this.print_string(we),this._output.space_before_token=!0),we=we.replace(/\s$/,""),we==="extend"?w=!0:we==="import"&&(M=!0),we in this.NESTED_AT_RULE?(this._nestedLevel+=1,we in this.CONDITIONAL_GROUP_RULE&&(T=!0)):!v&&E===0&&we.indexOf(":")!==-1&&(_=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(Y),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")_&&(_=!1,this.outdent()),T?(T=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(H==="("?this._output.space_before_token=!1:H!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),H==="{"&&this._output.trim(!0),M=!1,w=!1,_&&(this.outdent(),_=!1),this.print_string(this._ch),v=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Ce=0;Ce<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ce++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ce])){L=!0;break}(v||T)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!w&&E===0?(this.print_string(":"),_||(_=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ke=H==='"'||H==="'";this.preserveSingleSpace(Ke||Y),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")L=!1,E===0?(_&&(this.outdent(),_=!1),w=!1,M=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),E++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),E&&(E--,this.outdent()));else{var Ie=!1;this._input.lookBack("with")&&(Ie=!0),this.preserveSingleSpace(Y||Ie),this.print_string(this._ch),_&&H==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),Z=!0):(this.eatWhitespace(),E++,this.indent())}else if(this._ch===")")E&&(E--,this.outdent()),Z&&this._input.peek()===";"&&this._options.selector_separator_newline&&(Z=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!_||Z)&&E===0&&!M&&!w?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!_&&E===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(Y),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var je=H==='"'||H==="'";this.preserveSingleSpace(je||Y),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&L&&this._output.add_new_line()}var Ve=this._output.get_code(P);return Ve},l.exports.Beautifier=R},function(l,F,O){var C=O(6).Options;function b(p){C.call(this,p,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var y=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||y;var x=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var g=0;g<x.length;g++)x[g]!=="expand"?this.brace_style="collapse":this.brace_style=x[g]}b.prototype=new C,l.exports.Options=b}],G={};function oe(l){var F=G[l];if(F!==void 0)return F.exports;var O=G[l]={exports:{}};return j[l](O,O.exports,oe),O.exports}var V=oe(15);X=V})();var le=X;!(Te=[],ae=function(){return{css_beautify:le}}.apply(Ne,Te),ae!==void 0&&(Dt.exports=ae))})()},Vg4E:function(Dt,Ne,ie){},Vhoy:function(Dt,Ne,ie){"use strict";ie.d(Ne,"d",function(){return le}),ie.d(Ne,"e",function(){return j}),ie.d(Ne,"c",function(){return G}),ie.d(Ne,"b",function(){return oe}),ie.d(Ne,"a",function(){return V});var Te=ie("MI8n");class ae{constructor(){this._icons=new Map,this._onDidRegister=new Te.b}add(l){const F=this._icons.get(l.id);F?l.description?F.description=l.description:console.error(`Duplicate registration of codicon ${l.id}`):(this._icons.set(l.id,l),this._onDidRegister.fire(l))}get(l){return this._icons.get(l)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const X=new ae,le=X;function j(l,F){return new oe(l,F)}function G(l){return l?l.replace(/\$\((.*?)\)/g,(F,O)=>` ${O} `).trim():""}class oe{constructor(l,F,O){this.id=l,this.definition=F,this.description=O,X.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var V;(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9\\-]+",l.iconModifierExpression="~[A-Za-z]+";const F=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function O(p){if(p instanceof oe)return["codicon","codicon-"+p.id];const y=F.exec(p.id);if(!y)return O(oe.error);let[,x,g]=y;const h=["codicon","codicon-"+x];return g&&h.push("codicon-modifier-"+g.substr(1)),h}l.asClassNameArray=O;function C(p){return O(p).join(" ")}l.asClassName=C;function b(p){return"."+O(p).join(".")}l.asCSSSelector=b})(V||(V={})),function(l){l.add=new l("add",{fontCharacter:"\\ea60"}),l.plus=new l("plus",l.add.definition),l.gistNew=new l("gist-new",l.add.definition),l.repoCreate=new l("repo-create",l.add.definition),l.lightbulb=new l("lightbulb",{fontCharacter:"\\ea61"}),l.lightBulb=new l("light-bulb",{fontCharacter:"\\ea61"}),l.repo=new l("repo",{fontCharacter:"\\ea62"}),l.repoDelete=new l("repo-delete",{fontCharacter:"\\ea62"}),l.gistFork=new l("gist-fork",{fontCharacter:"\\ea63"}),l.repoForked=new l("repo-forked",{fontCharacter:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{fontCharacter:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),l.recordKeys=new l("record-keys",{fontCharacter:"\\ea65"}),l.keyboard=new l("keyboard",{fontCharacter:"\\ea65"}),l.tag=new l("tag",{fontCharacter:"\\ea66"}),l.tagAdd=new l("tag-add",{fontCharacter:"\\ea66"}),l.tagRemove=new l("tag-remove",{fontCharacter:"\\ea66"}),l.person=new l("person",{fontCharacter:"\\ea67"}),l.personFollow=new l("person-follow",{fontCharacter:"\\ea67"}),l.personOutline=new l("person-outline",{fontCharacter:"\\ea67"}),l.personFilled=new l("person-filled",{fontCharacter:"\\ea67"}),l.gitBranch=new l("git-branch",{fontCharacter:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{fontCharacter:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{fontCharacter:"\\ea68"}),l.sourceControl=new l("source-control",{fontCharacter:"\\ea68"}),l.mirror=new l("mirror",{fontCharacter:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{fontCharacter:"\\ea69"}),l.star=new l("star",{fontCharacter:"\\ea6a"}),l.starAdd=new l("star-add",{fontCharacter:"\\ea6a"}),l.starDelete=new l("star-delete",{fontCharacter:"\\ea6a"}),l.starEmpty=new l("star-empty",{fontCharacter:"\\ea6a"}),l.comment=new l("comment",{fontCharacter:"\\ea6b"}),l.commentAdd=new l("comment-add",{fontCharacter:"\\ea6b"}),l.alert=new l("alert",{fontCharacter:"\\ea6c"}),l.warning=new l("warning",{fontCharacter:"\\ea6c"}),l.search=new l("search",{fontCharacter:"\\ea6d"}),l.searchSave=new l("search-save",{fontCharacter:"\\ea6d"}),l.logOut=new l("log-out",{fontCharacter:"\\ea6e"}),l.signOut=new l("sign-out",{fontCharacter:"\\ea6e"}),l.logIn=new l("log-in",{fontCharacter:"\\ea6f"}),l.signIn=new l("sign-in",{fontCharacter:"\\ea6f"}),l.eye=new l("eye",{fontCharacter:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{fontCharacter:"\\ea70"}),l.eyeWatch=new l("eye-watch",{fontCharacter:"\\ea70"}),l.circleFilled=new l("circle-filled",{fontCharacter:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{fontCharacter:"\\ea71"}),l.closeDirty=new l("close-dirty",{fontCharacter:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{fontCharacter:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),l.debugHint=new l("debug-hint",{fontCharacter:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{fontCharacter:"\\ea72"}),l.edit=new l("edit",{fontCharacter:"\\ea73"}),l.pencil=new l("pencil",{fontCharacter:"\\ea73"}),l.info=new l("info",{fontCharacter:"\\ea74"}),l.issueOpened=new l("issue-opened",{fontCharacter:"\\ea74"}),l.gistPrivate=new l("gist-private",{fontCharacter:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{fontCharacter:"\\ea75"}),l.lock=new l("lock",{fontCharacter:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{fontCharacter:"\\ea75"}),l.close=new l("close",{fontCharacter:"\\ea76"}),l.removeClose=new l("remove-close",{fontCharacter:"\\ea76"}),l.x=new l("x",{fontCharacter:"\\ea76"}),l.repoSync=new l("repo-sync",{fontCharacter:"\\ea77"}),l.sync=new l("sync",{fontCharacter:"\\ea77"}),l.clone=new l("clone",{fontCharacter:"\\ea78"}),l.desktopDownload=new l("desktop-download",{fontCharacter:"\\ea78"}),l.beaker=new l("beaker",{fontCharacter:"\\ea79"}),l.microscope=new l("microscope",{fontCharacter:"\\ea79"}),l.vm=new l("vm",{fontCharacter:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{fontCharacter:"\\ea7a"}),l.file=new l("file",{fontCharacter:"\\ea7b"}),l.fileText=new l("file-text",{fontCharacter:"\\ea7b"}),l.more=new l("more",{fontCharacter:"\\ea7c"}),l.ellipsis=new l("ellipsis",{fontCharacter:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{fontCharacter:"\\ea7c"}),l.mailReply=new l("mail-reply",{fontCharacter:"\\ea7d"}),l.reply=new l("reply",{fontCharacter:"\\ea7d"}),l.organization=new l("organization",{fontCharacter:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{fontCharacter:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{fontCharacter:"\\ea7e"}),l.newFile=new l("new-file",{fontCharacter:"\\ea7f"}),l.fileAdd=new l("file-add",{fontCharacter:"\\ea7f"}),l.newFolder=new l("new-folder",{fontCharacter:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{fontCharacter:"\\ea80"}),l.trash=new l("trash",{fontCharacter:"\\ea81"}),l.trashcan=new l("trashcan",{fontCharacter:"\\ea81"}),l.history=new l("history",{fontCharacter:"\\ea82"}),l.clock=new l("clock",{fontCharacter:"\\ea82"}),l.folder=new l("folder",{fontCharacter:"\\ea83"}),l.fileDirectory=new l("file-directory",{fontCharacter:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{fontCharacter:"\\ea83"}),l.logoGithub=new l("logo-github",{fontCharacter:"\\ea84"}),l.markGithub=new l("mark-github",{fontCharacter:"\\ea84"}),l.github=new l("github",{fontCharacter:"\\ea84"}),l.terminal=new l("terminal",{fontCharacter:"\\ea85"}),l.console=new l("console",{fontCharacter:"\\ea85"}),l.repl=new l("repl",{fontCharacter:"\\ea85"}),l.zap=new l("zap",{fontCharacter:"\\ea86"}),l.symbolEvent=new l("symbol-event",{fontCharacter:"\\ea86"}),l.error=new l("error",{fontCharacter:"\\ea87"}),l.stop=new l("stop",{fontCharacter:"\\ea87"}),l.variable=new l("variable",{fontCharacter:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{fontCharacter:"\\ea88"}),l.array=new l("array",{fontCharacter:"\\ea8a"}),l.symbolArray=new l("symbol-array",{fontCharacter:"\\ea8a"}),l.symbolModule=new l("symbol-module",{fontCharacter:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{fontCharacter:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{fontCharacter:"\\ea8b"}),l.symbolObject=new l("symbol-object",{fontCharacter:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{fontCharacter:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{fontCharacter:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{fontCharacter:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{fontCharacter:"\\ea8f"}),l.symbolNull=new l("symbol-null",{fontCharacter:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{fontCharacter:"\\ea90"}),l.symbolNumber=new l("symbol-number",{fontCharacter:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{fontCharacter:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{fontCharacter:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{fontCharacter:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{fontCharacter:"\\ea92"}),l.symbolKey=new l("symbol-key",{fontCharacter:"\\ea93"}),l.symbolText=new l("symbol-text",{fontCharacter:"\\ea93"}),l.symbolReference=new l("symbol-reference",{fontCharacter:"\\ea94"}),l.goToFile=new l("go-to-file",{fontCharacter:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{fontCharacter:"\\ea95"}),l.symbolValue=new l("symbol-value",{fontCharacter:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{fontCharacter:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{fontCharacter:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{fontCharacter:"\\ea97"}),l.archive=new l("archive",{fontCharacter:"\\ea98"}),l.arrowBoth=new l("arrow-both",{fontCharacter:"\\ea99"}),l.arrowDown=new l("arrow-down",{fontCharacter:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{fontCharacter:"\\ea9b"}),l.arrowRight=new l("arrow-right",{fontCharacter:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{fontCharacter:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{fontCharacter:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{fontCharacter:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{fontCharacter:"\\eaa0"}),l.arrowUp=new l("arrow-up",{fontCharacter:"\\eaa1"}),l.bell=new l("bell",{fontCharacter:"\\eaa2"}),l.bold=new l("bold",{fontCharacter:"\\eaa3"}),l.book=new l("book",{fontCharacter:"\\eaa4"}),l.bookmark=new l("bookmark",{fontCharacter:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{fontCharacter:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),l.briefcase=new l("briefcase",{fontCharacter:"\\eaac"}),l.broadcast=new l("broadcast",{fontCharacter:"\\eaad"}),l.browser=new l("browser",{fontCharacter:"\\eaae"}),l.bug=new l("bug",{fontCharacter:"\\eaaf"}),l.calendar=new l("calendar",{fontCharacter:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{fontCharacter:"\\eab1"}),l.check=new l("check",{fontCharacter:"\\eab2"}),l.checklist=new l("checklist",{fontCharacter:"\\eab3"}),l.chevronDown=new l("chevron-down",{fontCharacter:"\\eab4"}),l.dropDownButton=new l("drop-down-button",l.chevronDown.definition),l.chevronLeft=new l("chevron-left",{fontCharacter:"\\eab5"}),l.chevronRight=new l("chevron-right",{fontCharacter:"\\eab6"}),l.chevronUp=new l("chevron-up",{fontCharacter:"\\eab7"}),l.chromeClose=new l("chrome-close",{fontCharacter:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{fontCharacter:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{fontCharacter:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{fontCharacter:"\\eabb"}),l.circleOutline=new l("circle-outline",{fontCharacter:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),l.circleSlash=new l("circle-slash",{fontCharacter:"\\eabd"}),l.circuitBoard=new l("circuit-board",{fontCharacter:"\\eabe"}),l.clearAll=new l("clear-all",{fontCharacter:"\\eabf"}),l.clippy=new l("clippy",{fontCharacter:"\\eac0"}),l.closeAll=new l("close-all",{fontCharacter:"\\eac1"}),l.cloudDownload=new l("cloud-download",{fontCharacter:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{fontCharacter:"\\eac3"}),l.code=new l("code",{fontCharacter:"\\eac4"}),l.collapseAll=new l("collapse-all",{fontCharacter:"\\eac5"}),l.colorMode=new l("color-mode",{fontCharacter:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{fontCharacter:"\\eac7"}),l.compareChanges=new l("compare-changes",{fontCharacter:"\\eafd"}),l.creditCard=new l("credit-card",{fontCharacter:"\\eac9"}),l.dash=new l("dash",{fontCharacter:"\\eacc"}),l.dashboard=new l("dashboard",{fontCharacter:"\\eacd"}),l.database=new l("database",{fontCharacter:"\\eace"}),l.debugContinue=new l("debug-continue",{fontCharacter:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{fontCharacter:"\\ead0"}),l.debugPause=new l("debug-pause",{fontCharacter:"\\ead1"}),l.debugRestart=new l("debug-restart",{fontCharacter:"\\ead2"}),l.debugStart=new l("debug-start",{fontCharacter:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{fontCharacter:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{fontCharacter:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{fontCharacter:"\\ead6"}),l.debugStop=new l("debug-stop",{fontCharacter:"\\ead7"}),l.debug=new l("debug",{fontCharacter:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{fontCharacter:"\\ead9"}),l.deviceCamera=new l("device-camera",{fontCharacter:"\\eada"}),l.deviceMobile=new l("device-mobile",{fontCharacter:"\\eadb"}),l.diffAdded=new l("diff-added",{fontCharacter:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{fontCharacter:"\\eadd"}),l.diffModified=new l("diff-modified",{fontCharacter:"\\eade"}),l.diffRemoved=new l("diff-removed",{fontCharacter:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{fontCharacter:"\\eae0"}),l.diff=new l("diff",{fontCharacter:"\\eae1"}),l.discard=new l("discard",{fontCharacter:"\\eae2"}),l.editorLayout=new l("editor-layout",{fontCharacter:"\\eae3"}),l.emptyWindow=new l("empty-window",{fontCharacter:"\\eae4"}),l.exclude=new l("exclude",{fontCharacter:"\\eae5"}),l.extensions=new l("extensions",{fontCharacter:"\\eae6"}),l.eyeClosed=new l("eye-closed",{fontCharacter:"\\eae7"}),l.fileBinary=new l("file-binary",{fontCharacter:"\\eae8"}),l.fileCode=new l("file-code",{fontCharacter:"\\eae9"}),l.fileMedia=new l("file-media",{fontCharacter:"\\eaea"}),l.filePdf=new l("file-pdf",{fontCharacter:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{fontCharacter:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{fontCharacter:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{fontCharacter:"\\eaee"}),l.fileZip=new l("file-zip",{fontCharacter:"\\eaef"}),l.files=new l("files",{fontCharacter:"\\eaf0"}),l.filter=new l("filter",{fontCharacter:"\\eaf1"}),l.flame=new l("flame",{fontCharacter:"\\eaf2"}),l.foldDown=new l("fold-down",{fontCharacter:"\\eaf3"}),l.foldUp=new l("fold-up",{fontCharacter:"\\eaf4"}),l.fold=new l("fold",{fontCharacter:"\\eaf5"}),l.folderActive=new l("folder-active",{fontCharacter:"\\eaf6"}),l.folderOpened=new l("folder-opened",{fontCharacter:"\\eaf7"}),l.gear=new l("gear",{fontCharacter:"\\eaf8"}),l.gift=new l("gift",{fontCharacter:"\\eaf9"}),l.gistSecret=new l("gist-secret",{fontCharacter:"\\eafa"}),l.gist=new l("gist",{fontCharacter:"\\eafb"}),l.gitCommit=new l("git-commit",{fontCharacter:"\\eafc"}),l.gitCompare=new l("git-compare",{fontCharacter:"\\eafd"}),l.gitMerge=new l("git-merge",{fontCharacter:"\\eafe"}),l.githubAction=new l("github-action",{fontCharacter:"\\eaff"}),l.githubAlt=new l("github-alt",{fontCharacter:"\\eb00"}),l.globe=new l("globe",{fontCharacter:"\\eb01"}),l.grabber=new l("grabber",{fontCharacter:"\\eb02"}),l.graph=new l("graph",{fontCharacter:"\\eb03"}),l.gripper=new l("gripper",{fontCharacter:"\\eb04"}),l.heart=new l("heart",{fontCharacter:"\\eb05"}),l.home=new l("home",{fontCharacter:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{fontCharacter:"\\eb07"}),l.hubot=new l("hubot",{fontCharacter:"\\eb08"}),l.inbox=new l("inbox",{fontCharacter:"\\eb09"}),l.issueClosed=new l("issue-closed",{fontCharacter:"\\eba4"}),l.issueReopened=new l("issue-reopened",{fontCharacter:"\\eb0b"}),l.issues=new l("issues",{fontCharacter:"\\eb0c"}),l.italic=new l("italic",{fontCharacter:"\\eb0d"}),l.jersey=new l("jersey",{fontCharacter:"\\eb0e"}),l.json=new l("json",{fontCharacter:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{fontCharacter:"\\eb10"}),l.key=new l("key",{fontCharacter:"\\eb11"}),l.law=new l("law",{fontCharacter:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{fontCharacter:"\\eb13"}),l.linkExternal=new l("link-external",{fontCharacter:"\\eb14"}),l.link=new l("link",{fontCharacter:"\\eb15"}),l.listOrdered=new l("list-ordered",{fontCharacter:"\\eb16"}),l.listUnordered=new l("list-unordered",{fontCharacter:"\\eb17"}),l.liveShare=new l("live-share",{fontCharacter:"\\eb18"}),l.loading=new l("loading",{fontCharacter:"\\eb19"}),l.location=new l("location",{fontCharacter:"\\eb1a"}),l.mailRead=new l("mail-read",{fontCharacter:"\\eb1b"}),l.mail=new l("mail",{fontCharacter:"\\eb1c"}),l.markdown=new l("markdown",{fontCharacter:"\\eb1d"}),l.megaphone=new l("megaphone",{fontCharacter:"\\eb1e"}),l.mention=new l("mention",{fontCharacter:"\\eb1f"}),l.milestone=new l("milestone",{fontCharacter:"\\eb20"}),l.mortarBoard=new l("mortar-board",{fontCharacter:"\\eb21"}),l.move=new l("move",{fontCharacter:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{fontCharacter:"\\eb23"}),l.mute=new l("mute",{fontCharacter:"\\eb24"}),l.noNewline=new l("no-newline",{fontCharacter:"\\eb25"}),l.note=new l("note",{fontCharacter:"\\eb26"}),l.octoface=new l("octoface",{fontCharacter:"\\eb27"}),l.openPreview=new l("open-preview",{fontCharacter:"\\eb28"}),l.package_=new l("package",{fontCharacter:"\\eb29"}),l.paintcan=new l("paintcan",{fontCharacter:"\\eb2a"}),l.pin=new l("pin",{fontCharacter:"\\eb2b"}),l.play=new l("play",{fontCharacter:"\\eb2c"}),l.run=new l("run",{fontCharacter:"\\eb2c"}),l.plug=new l("plug",{fontCharacter:"\\eb2d"}),l.preserveCase=new l("preserve-case",{fontCharacter:"\\eb2e"}),l.preview=new l("preview",{fontCharacter:"\\eb2f"}),l.project=new l("project",{fontCharacter:"\\eb30"}),l.pulse=new l("pulse",{fontCharacter:"\\eb31"}),l.question=new l("question",{fontCharacter:"\\eb32"}),l.quote=new l("quote",{fontCharacter:"\\eb33"}),l.radioTower=new l("radio-tower",{fontCharacter:"\\eb34"}),l.reactions=new l("reactions",{fontCharacter:"\\eb35"}),l.references=new l("references",{fontCharacter:"\\eb36"}),l.refresh=new l("refresh",{fontCharacter:"\\eb37"}),l.regex=new l("regex",{fontCharacter:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{fontCharacter:"\\eb39"}),l.remote=new l("remote",{fontCharacter:"\\eb3a"}),l.remove=new l("remove",{fontCharacter:"\\eb3b"}),l.replaceAll=new l("replace-all",{fontCharacter:"\\eb3c"}),l.replace=new l("replace",{fontCharacter:"\\eb3d"}),l.repoClone=new l("repo-clone",{fontCharacter:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{fontCharacter:"\\eb3f"}),l.repoPull=new l("repo-pull",{fontCharacter:"\\eb40"}),l.repoPush=new l("repo-push",{fontCharacter:"\\eb41"}),l.report=new l("report",{fontCharacter:"\\eb42"}),l.requestChanges=new l("request-changes",{fontCharacter:"\\eb43"}),l.rocket=new l("rocket",{fontCharacter:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{fontCharacter:"\\eb45"}),l.rootFolder=new l("root-folder",{fontCharacter:"\\eb46"}),l.rss=new l("rss",{fontCharacter:"\\eb47"}),l.ruby=new l("ruby",{fontCharacter:"\\eb48"}),l.saveAll=new l("save-all",{fontCharacter:"\\eb49"}),l.saveAs=new l("save-as",{fontCharacter:"\\eb4a"}),l.save=new l("save",{fontCharacter:"\\eb4b"}),l.screenFull=new l("screen-full",{fontCharacter:"\\eb4c"}),l.screenNormal=new l("screen-normal",{fontCharacter:"\\eb4d"}),l.searchStop=new l("search-stop",{fontCharacter:"\\eb4e"}),l.server=new l("server",{fontCharacter:"\\eb50"}),l.settingsGear=new l("settings-gear",{fontCharacter:"\\eb51"}),l.settings=new l("settings",{fontCharacter:"\\eb52"}),l.shield=new l("shield",{fontCharacter:"\\eb53"}),l.smiley=new l("smiley",{fontCharacter:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{fontCharacter:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{fontCharacter:"\\eb56"}),l.splitVertical=new l("split-vertical",{fontCharacter:"\\eb57"}),l.squirrel=new l("squirrel",{fontCharacter:"\\eb58"}),l.starFull=new l("star-full",{fontCharacter:"\\eb59"}),l.starHalf=new l("star-half",{fontCharacter:"\\eb5a"}),l.symbolClass=new l("symbol-class",{fontCharacter:"\\eb5b"}),l.symbolColor=new l("symbol-color",{fontCharacter:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{fontCharacter:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{fontCharacter:"\\eb5e"}),l.symbolField=new l("symbol-field",{fontCharacter:"\\eb5f"}),l.symbolFile=new l("symbol-file",{fontCharacter:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{fontCharacter:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{fontCharacter:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{fontCharacter:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{fontCharacter:"\\eb64"}),l.symbolProperty=new l("symbol-property",{fontCharacter:"\\eb65"}),l.wrench=new l("wrench",{fontCharacter:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{fontCharacter:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{fontCharacter:"\\eb66"}),l.tasklist=new l("tasklist",{fontCharacter:"\\eb67"}),l.telescope=new l("telescope",{fontCharacter:"\\eb68"}),l.textSize=new l("text-size",{fontCharacter:"\\eb69"}),l.threeBars=new l("three-bars",{fontCharacter:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{fontCharacter:"\\eb6b"}),l.thumbsup=new l("thumbsup",{fontCharacter:"\\eb6c"}),l.tools=new l("tools",{fontCharacter:"\\eb6d"}),l.triangleDown=new l("triangle-down",{fontCharacter:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{fontCharacter:"\\eb6f"}),l.triangleRight=new l("triangle-right",{fontCharacter:"\\eb70"}),l.triangleUp=new l("triangle-up",{fontCharacter:"\\eb71"}),l.twitter=new l("twitter",{fontCharacter:"\\eb72"}),l.unfold=new l("unfold",{fontCharacter:"\\eb73"}),l.unlock=new l("unlock",{fontCharacter:"\\eb74"}),l.unmute=new l("unmute",{fontCharacter:"\\eb75"}),l.unverified=new l("unverified",{fontCharacter:"\\eb76"}),l.verified=new l("verified",{fontCharacter:"\\eb77"}),l.versions=new l("versions",{fontCharacter:"\\eb78"}),l.vmActive=new l("vm-active",{fontCharacter:"\\eb79"}),l.vmOutline=new l("vm-outline",{fontCharacter:"\\eb7a"}),l.vmRunning=new l("vm-running",{fontCharacter:"\\eb7b"}),l.watch=new l("watch",{fontCharacter:"\\eb7c"}),l.whitespace=new l("whitespace",{fontCharacter:"\\eb7d"}),l.wholeWord=new l("whole-word",{fontCharacter:"\\eb7e"}),l.window=new l("window",{fontCharacter:"\\eb7f"}),l.wordWrap=new l("word-wrap",{fontCharacter:"\\eb80"}),l.zoomIn=new l("zoom-in",{fontCharacter:"\\eb81"}),l.zoomOut=new l("zoom-out",{fontCharacter:"\\eb82"}),l.listFilter=new l("list-filter",{fontCharacter:"\\eb83"}),l.listFlat=new l("list-flat",{fontCharacter:"\\eb84"}),l.listSelection=new l("list-selection",{fontCharacter:"\\eb85"}),l.selection=new l("selection",{fontCharacter:"\\eb85"}),l.listTree=new l("list-tree",{fontCharacter:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{fontCharacter:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{fontCharacter:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{fontCharacter:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),l.symbolString=new l("symbol-string",{fontCharacter:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{fontCharacter:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{fontCharacter:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{fontCharacter:"\\eb90"}),l.callIncoming=new l("call-incoming",{fontCharacter:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{fontCharacter:"\\eb93"}),l.menu=new l("menu",{fontCharacter:"\\eb94"}),l.expandAll=new l("expand-all",{fontCharacter:"\\eb95"}),l.feedback=new l("feedback",{fontCharacter:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{fontCharacter:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),l.account=new l("account",{fontCharacter:"\\eb99"}),l.bellDot=new l("bell-dot",{fontCharacter:"\\eb9a"}),l.debugConsole=new l("debug-console",{fontCharacter:"\\eb9b"}),l.library=new l("library",{fontCharacter:"\\eb9c"}),l.output=new l("output",{fontCharacter:"\\eb9d"}),l.runAll=new l("run-all",{fontCharacter:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{fontCharacter:"\\eb9f"}),l.pinned=new l("pinned",{fontCharacter:"\\eba0"}),l.githubInverted=new l("github-inverted",{fontCharacter:"\\eba1"}),l.debugAlt=new l("debug-alt",{fontCharacter:"\\eb91"}),l.serverProcess=new l("server-process",{fontCharacter:"\\eba2"}),l.serverEnvironment=new l("server-environment",{fontCharacter:"\\eba3"}),l.pass=new l("pass",{fontCharacter:"\\eba4"}),l.stopCircle=new l("stop-circle",{fontCharacter:"\\eba5"}),l.playCircle=new l("play-circle",{fontCharacter:"\\eba6"}),l.record=new l("record",{fontCharacter:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{fontCharacter:"\\eba8"}),l.vmConnect=new l("vm-connect",{fontCharacter:"\\eba9"}),l.cloud=new l("cloud",{fontCharacter:"\\ebaa"}),l.merge=new l("merge",{fontCharacter:"\\ebab"}),l.exportIcon=new l("export",{fontCharacter:"\\ebac"}),l.graphLeft=new l("graph-left",{fontCharacter:"\\ebad"}),l.magnet=new l("magnet",{fontCharacter:"\\ebae"}),l.notebook=new l("notebook",{fontCharacter:"\\ebaf"}),l.redo=new l("redo",{fontCharacter:"\\ebb0"}),l.checkAll=new l("check-all",{fontCharacter:"\\ebb1"}),l.pinnedDirty=new l("pinned-dirty",{fontCharacter:"\\ebb2"}),l.passFilled=new l("pass-filled",{fontCharacter:"\\ebb3"}),l.circleLargeFilled=new l("circle-large-filled",{fontCharacter:"\\ebb4"}),l.circleLargeOutline=new l("circle-large-outline",{fontCharacter:"\\ebb5"}),l.combine=new l("combine",{fontCharacter:"\\ebb6"}),l.gather=new l("gather",{fontCharacter:"\\ebb6"}),l.table=new l("table",{fontCharacter:"\\ebb7"}),l.variableGroup=new l("variable-group",{fontCharacter:"\\ebb8"}),l.typeHierarchy=new l("type-hierarchy",{fontCharacter:"\\ebb9"}),l.typeHierarchySub=new l("type-hierarchy-sub",{fontCharacter:"\\ebba"}),l.typeHierarchySuper=new l("type-hierarchy-super",{fontCharacter:"\\ebbb"}),l.gitPullRequestCreate=new l("git-pull-request-create",{fontCharacter:"\\ebbc"}),l.runAbove=new l("run-above",{fontCharacter:"\\ebbd"}),l.runBelow=new l("run-below",{fontCharacter:"\\ebbe"}),l.notebookTemplate=new l("notebook-template",{fontCharacter:"\\ebbf"}),l.debugRerun=new l("debug-rerun",{fontCharacter:"\\ebc0"}),l.workspaceTrusted=new l("workspace-trusted",{fontCharacter:"\\ebc1"}),l.workspaceUntrusted=new l("workspace-untrusted",{fontCharacter:"\\ebc2"}),l.workspaceUnspecified=new l("workspace-unspecified",{fontCharacter:"\\ebc3"}),l.terminalCmd=new l("terminal-cmd",{fontCharacter:"\\ebc4"}),l.terminalDebian=new l("terminal-debian",{fontCharacter:"\\ebc5"}),l.terminalLinux=new l("terminal-linux",{fontCharacter:"\\ebc6"}),l.terminalPowershell=new l("terminal-powershell",{fontCharacter:"\\ebc7"}),l.terminalTmux=new l("terminal-tmux",{fontCharacter:"\\ebc8"}),l.terminalUbuntu=new l("terminal-ubuntu",{fontCharacter:"\\ebc9"}),l.terminalBash=new l("terminal-bash",{fontCharacter:"\\ebca"}),l.arrowSwap=new l("arrow-swap",{fontCharacter:"\\ebcb"}),l.copy=new l("copy",{fontCharacter:"\\ebcc"}),l.personAdd=new l("person-add",{fontCharacter:"\\ebcd"}),l.filterFilled=new l("filter-filled",{fontCharacter:"\\ebce"}),l.wand=new l("wand",{fontCharacter:"\\ebcf"}),l.debugLineByLine=new l("debug-line-by-line",{fontCharacter:"\\ebd0"}),l.inspect=new l("inspect",{fontCharacter:"\\ebd1"}),l.layers=new l("layers",{fontCharacter:"\\ebd2"}),l.layersDot=new l("layers-dot",{fontCharacter:"\\ebd3"}),l.layersActive=new l("layers-active",{fontCharacter:"\\ebd4"}),l.compass=new l("compass",{fontCharacter:"\\ebd5"}),l.compassDot=new l("compass-dot",{fontCharacter:"\\ebd6"}),l.compassActive=new l("compass-active",{fontCharacter:"\\ebd7"}),l.azure=new l("azure",{fontCharacter:"\\ebd8"}),l.issueDraft=new l("issue-draft",{fontCharacter:"\\ebd9"}),l.gitPullRequestClosed=new l("git-pull-request-closed",{fontCharacter:"\\ebda"}),l.gitPullRequestDraft=new l("git-pull-request-draft",{fontCharacter:"\\ebdb"}),l.debugAll=new l("debug-all",{fontCharacter:"\\ebdc"}),l.debugCoverage=new l("debug-coverage",{fontCharacter:"\\ebdd"}),l.runErrors=new l("run-errors",{fontCharacter:"\\ebde"}),l.folderLibrary=new l("folder-library",{fontCharacter:"\\ebdf"}),l.debugContinueSmall=new l("debug-continue-small",{fontCharacter:"\\ebe0"}),l.beakerStop=new l("beaker-stop",{fontCharacter:"\\ebe1"}),l.graphLine=new l("graph-line",{fontCharacter:"\\ebe2"}),l.graphScatter=new l("graph-scatter",{fontCharacter:"\\ebe3"}),l.pieChart=new l("pie-chart",{fontCharacter:"\\ebe4"}),l.bracket=new l("bracket",l.json.definition),l.bracketDot=new l("bracket-dot",{fontCharacter:"\\ebe5"}),l.bracketError=new l("bracket-error",{fontCharacter:"\\ebe6"}),l.lockSmall=new l("lock-small",{fontCharacter:"\\ebe7"}),l.azureDevops=new l("azure-devops",{fontCharacter:"\\ebe8"}),l.verifiedFilled=new l("verified-filled",{fontCharacter:"\\ebe9"})}(oe||(oe={}))},Y1PL:function(Dt,Ne,ie){"use strict";ie.r(Ne),ie.d(Ne,"ResizableTextArea",function(){return we});var Te=ie("wx14"),ae=ie("1OyB"),X=ie("vuIU"),le=ie("Ji7U"),j=ie("LK+K"),G=ie("q1tI"),oe=ie("VTBJ"),V=ie("rePB"),l=ie("Zm9Q"),F=ie("Kwbf"),O=ie("c+Xe"),C=ie("m+aA"),b=ie("bdgK"),p=new Map;function y(Ie){Ie.forEach(function(je){var Ve,$e=je.target;(Ve=p.get($e))===null||Ve===void 0||Ve.forEach(function(Pe){return Pe($e)})})}var x=new b.default(y),g=null,h=null;function c(Ie,je){p.has(Ie)||(p.set(Ie,new Set),x.observe(Ie)),p.get(Ie).add(je)}function d(Ie,je){p.has(Ie)&&(p.get(Ie).delete(je),p.get(Ie).size||(x.unobserve(Ie),p.delete(Ie)))}var I=function(Ie){Object(le.a)(Ve,Ie);var je=Object(j.a)(Ve);function Ve(){return Object(ae.a)(this,Ve),je.apply(this,arguments)}return Object(X.a)(Ve,[{key:"render",value:function(){return this.props.children}}]),Ve}(G.Component),A=G.createContext(null);function R(Ie){var je=Ie.children,Ve=Ie.onBatchResize,$e=G.useRef(0),Pe=G.useRef([]),se=G.useContext(A),S=G.useCallback(function(B,J,ue){$e.current+=1;var q=$e.current;Pe.current.push({size:B,element:J,data:ue}),Promise.resolve().then(function(){q===$e.current&&(Ve==null||Ve(Pe.current),Pe.current=[])}),se==null||se(B,J,ue)},[Ve,se]);return G.createElement(A.Provider,{value:S},je)}function N(Ie){var je=Ie.children,Ve=Ie.disabled,$e=G.useRef(null),Pe=G.useRef(null),se=G.useContext(A),S=G.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),B=G.isValidElement(je)&&Object(O.c)(je),J=B?je.ref:null,ue=G.useMemo(function(){return Object(O.a)(J,$e)},[J,$e]),q=G.useRef(Ie);q.current=Ie;var xe=G.useCallback(function(We){var it=q.current,be=it.onResize,Le=it.data,Fe=We.getBoundingClientRect(),ze=Fe.width,dt=Fe.height,It=We.offsetWidth,Jt=We.offsetHeight,Bt=Math.floor(ze),Nt=Math.floor(dt);if(S.current.width!==Bt||S.current.height!==Nt||S.current.offsetWidth!==It||S.current.offsetHeight!==Jt){var cn={width:Bt,height:Nt,offsetWidth:It,offsetHeight:Jt};S.current=cn;var sn=It===Math.round(ze)?ze:It,zt=Jt===Math.round(dt)?dt:Jt,dn=Object(oe.a)(Object(oe.a)({},cn),{},{offsetWidth:sn,offsetHeight:zt});se==null||se(dn,We,Le),be&&Promise.resolve().then(function(){be(dn,We)})}},[]);return G.useEffect(function(){var We=Object(C.a)($e.current)||Object(C.a)(Pe.current);return We&&!Ve&&c(We,xe),function(){return d(We,xe)}},[$e.current,Ve]),G.createElement(I,{ref:Pe},B?G.cloneElement(je,{ref:ue}):je)}var P="rc-observer-key";function D(Ie){var je=Ie.children,Ve=Object(l.a)(je);return Ve.map(function($e,Pe){var se=($e==null?void 0:$e.key)||"".concat(P,"-").concat(Pe);return G.createElement(N,Object(Te.a)({},Ie,{key:se}),$e)})}D.Collection=R;var E=D,v=ie("bT9E"),_=ie("TSYQ"),T=ie.n(_),w=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,M=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Z={},z;function L(Ie){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=Ie.getAttribute("id")||Ie.getAttribute("data-reactid")||Ie.getAttribute("name");if(je&&Z[Ve])return Z[Ve];var $e=window.getComputedStyle(Ie),Pe=$e.getPropertyValue("box-sizing")||$e.getPropertyValue("-moz-box-sizing")||$e.getPropertyValue("-webkit-box-sizing"),se=parseFloat($e.getPropertyValue("padding-bottom"))+parseFloat($e.getPropertyValue("padding-top")),S=parseFloat($e.getPropertyValue("border-bottom-width"))+parseFloat($e.getPropertyValue("border-top-width")),B=M.map(function(ue){return"".concat(ue,":").concat($e.getPropertyValue(ue))}).join(";"),J={sizingStyle:B,paddingSize:se,borderSize:S,boxSizing:Pe};return je&&Ve&&(Z[Ve]=J),J}function W(Ie){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,$e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;z||(z=document.createElement("textarea"),z.setAttribute("tab-index","-1"),z.setAttribute("aria-hidden","true"),document.body.appendChild(z)),Ie.getAttribute("wrap")?z.setAttribute("wrap",Ie.getAttribute("wrap")):z.removeAttribute("wrap");var Pe=L(Ie,je),se=Pe.paddingSize,S=Pe.borderSize,B=Pe.boxSizing,J=Pe.sizingStyle;z.setAttribute("style","".concat(J,";").concat(w)),z.value=Ie.value||Ie.placeholder||"";var ue=Number.MIN_SAFE_INTEGER,q=Number.MAX_SAFE_INTEGER,xe=z.scrollHeight,We;if(B==="border-box"?xe+=S:B==="content-box"&&(xe-=se),Ve!==null||$e!==null){z.value=" ";var it=z.scrollHeight-se;Ve!==null&&(ue=it*Ve,B==="border-box"&&(ue=ue+se+S),xe=Math.max(ue,xe)),$e!==null&&(q=it*$e,B==="border-box"&&(q=q+se+S),We=xe>q?"":"hidden",xe=Math.min(q,xe))}return{height:xe,minHeight:ue,maxHeight:q,overflowY:We,resize:"none"}}var Y=ie("Gytx"),H=ie.n(Y),ne;(function(Ie){Ie[Ie.NONE=0]="NONE",Ie[Ie.RESIZING=1]="RESIZING",Ie[Ie.RESIZED=2]="RESIZED"})(ne||(ne={}));var ce=function(Ie){Object(le.a)(Ve,Ie);var je=Object(j.a)(Ve);function Ve($e){var Pe;return Object(ae.a)(this,Ve),Pe=je.call(this,$e),Pe.nextFrameActionId=void 0,Pe.resizeFrameId=void 0,Pe.textArea=void 0,Pe.saveTextArea=function(se){Pe.textArea=se},Pe.handleResize=function(se){var S=Pe.state.resizeStatus,B=Pe.props,J=B.autoSize,ue=B.onResize;if(S!==ne.NONE)return;typeof ue=="function"&&ue(se),J&&Pe.resizeOnNextFrame()},Pe.resizeOnNextFrame=function(){cancelAnimationFrame(Pe.nextFrameActionId),Pe.nextFrameActionId=requestAnimationFrame(Pe.resizeTextarea)},Pe.resizeTextarea=function(){var se=Pe.props.autoSize;if(!se||!Pe.textArea)return;var S=se.minRows,B=se.maxRows,J=W(Pe.textArea,!1,S,B);Pe.setState({textareaStyles:J,resizeStatus:ne.RESIZING},function(){cancelAnimationFrame(Pe.resizeFrameId),Pe.resizeFrameId=requestAnimationFrame(function(){Pe.setState({resizeStatus:ne.RESIZED},function(){Pe.resizeFrameId=requestAnimationFrame(function(){Pe.setState({resizeStatus:ne.NONE}),Pe.fixFirefoxAutoScroll()})})})})},Pe.renderTextArea=function(){var se=Pe.props,S=se.prefixCls,B=S===void 0?"rc-textarea":S,J=se.autoSize,ue=se.onResize,q=se.className,xe=se.disabled,We=Pe.state,it=We.textareaStyles,be=We.resizeStatus,Le=Object(v.a)(Pe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Fe=T()(B,q,Object(V.a)({},"".concat(B,"-disabled"),xe));"value"in Le&&(Le.value=Le.value||"");var ze=Object(oe.a)(Object(oe.a)(Object(oe.a)({},Pe.props.style),it),be===ne.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return G.createElement(E,{onResize:Pe.handleResize,disabled:!(J||ue)},G.createElement("textarea",Object(Te.a)({},Le,{className:Fe,style:ze,ref:Pe.saveTextArea})))},Pe.state={textareaStyles:{},resizeStatus:ne.NONE},Pe}return Object(X.a)(Ve,[{key:"componentDidUpdate",value:function(Pe){(Pe.value!==this.props.value||!H()(Pe.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Pe=this.textArea.selectionStart,se=this.textArea.selectionEnd;this.textArea.setSelectionRange(Pe,se)}}catch(S){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ve}(G.Component),we=ce,Ce=function(Ie){Object(le.a)(Ve,Ie);var je=Object(j.a)(Ve);function Ve($e){var Pe;Object(ae.a)(this,Ve),Pe=je.call(this,$e),Pe.resizableTextArea=void 0,Pe.focus=function(){Pe.resizableTextArea.textArea.focus()},Pe.saveTextArea=function(S){Pe.resizableTextArea=S},Pe.handleChange=function(S){var B=Pe.props.onChange;Pe.setValue(S.target.value,function(){Pe.resizableTextArea.resizeTextarea()}),B&&B(S)},Pe.handleKeyDown=function(S){var B=Pe.props,J=B.onPressEnter,ue=B.onKeyDown;S.keyCode===13&&J&&J(S),ue&&ue(S)};var se=typeof $e.value=="undefined"||$e.value===null?$e.defaultValue:$e.value;return Pe.state={value:se},Pe}return Object(X.a)(Ve,[{key:"setValue",value:function(Pe,se){"value"in this.props||this.setState({value:Pe},se)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return G.createElement(we,Object(Te.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Pe){return"value"in Pe?{value:Pe.value}:null}}]),Ve}(G.Component),Ke=Ne.default=Ce},ZJlW:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},ZW9T:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Y});var Te=ie("k1fw"),ae=ie("oBTY"),X=ie("miYZ"),le=ie("tsqr"),j=ie("rAM+"),G=ie("tJVT"),oe=ie("PpiC"),V=ie("q1tI"),l=ie.n(V),F=ie("bdgK"),O=ie("9og8"),C=ie("WmNS"),b=ie.n(C),p={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},y={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},x={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},g={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},h=ie("5VLF"),c=ie.n(h),d={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},I=function(ne,ce){return ce.map(function(we){return{label:we,kind:ne.languages.CompletionItemKind.Keyword,insertText:we}})},A=function(ne){return Object.keys(d.tables).map(function(ce){return{label:ce,kind:ne.languages.CompletionItemKind.Variable,insertText:ce}})},R=function(ne,ce){var we=d.tables[ne];return we?we.map(function(Ce){return{label:Ce,kind:ce.languages.CompletionItemKind.Field,insertText:Ce}}):[]};function N(H,ne,ce,we,Ce){var Ke=ne.getWordUntilPosition(ce),Ie={startLineNumber:ce.lineNumber,endLineNumber:ce.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},je=we.map(function(Ve){return{label:Ve,kind:H.languages.CompletionItemKind.Keyword,insertText:Ve,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ie}});return Ce.map(function(Ve){je.push(Object(Te.a)(Object(Te.a)({},Ve),{},{range:Ie}))}),je}var P=function(H){d.languages.map(function(Ce){return H.languages.registerDocumentFormattingEditProvider(Ce,{provideDocumentFormattingEdits:function(Ie,je,Ve){return Object(O.a)(b.a.mark(function $e(){var Pe;return b.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return Pe=c()(Ie.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),S.abrupt("return",[{range:Ie.getFullModelRange(),text:Pe}]);case 2:case"end":return S.stop()}},$e)}))()}}),Ce});var ne=x.quickKey.map(function(Ce){return{label:Ce.label,kind:H.languages.CompletionItemKind.Method,insertText:Ce.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ce=g.quickKey.map(function(Ce){return{label:Ce.label,kind:H.languages.CompletionItemKind.Method,insertText:Ce.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),we=y.quickKey.map(function(Ce){return{label:Ce.label,kind:H.languages.CompletionItemKind.Method,insertText:Ce.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet}});H.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ke,Ie){var je=Ke.getWordUntilPosition(Ie),Ve={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},$e=Ke.getLineContent(Ie.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[].concat(Object(ae.a)(x.keywords.map(function(Pe){return{label:Pe,kind:H.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}})),Object(ae.a)(x.quickKey.map(function(Pe){return{label:Pe.label,kind:H.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:$e.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}})))}}}),H.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ke,Ie){var je=Ke.getWordUntilPosition(Ie),Ve={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn};return{suggestions:Object(ae.a)(p.keywords.map(function($e){return{label:$e,kind:H.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}}))}}}),H.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ke,Ie){var je=Ke.getWordUntilPosition(Ie),Ve={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},$e=Ke.getLineContent(Ie.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[].concat(Object(ae.a)(y.keywords.map(function(Pe){return{label:Pe,kind:H.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}})),Object(ae.a)(y.quickKey.map(function(Pe){return{label:Pe.label,kind:H.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:$e.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}})))}}}),H.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ke,Ie){var je=Ke.getWordUntilPosition(Ie),Ve={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},$e=Ke.getLineContent(Ie.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[].concat(Object(ae.a)(g.keywords.map(function(Pe){return{label:Pe,kind:H.languages.CompletionItemKind.Function,documentation:Pe,insertText:Pe,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}})),Object(ae.a)(g.quickKey.map(function(Pe){return{label:Pe.label,kind:H.languages.CompletionItemKind.Function,documentation:Pe.content,insertText:$e.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}})))}}})},D="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",E=ie("fjLI"),v=ie("LvDl"),_=ie("+ua5");function T(H){return/^\d+$/.test(H)?"".concat(H,"px"):H}function w(){}var M=!1,Z={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function z(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ne=H;if(Array.isArray(H)){for(var ce=0;ce<H.length;ce++){var we=Z[H[ce]];if(we)return we}return ne[0]}return Z[ne]||ne}var L=null,W=Ne.b=function(H){var ne=H.width,ce=ne===void 0?"100%":ne,we=H.height,Ce=we===void 0?"100%":we,Ke=H.value,Ie=H.language,je=Ie===void 0?"javascript":Ie,Ve=H.style,$e=Ve===void 0?{}:Ve,Pe=H.options,se=Pe===void 0?{}:Pe,S=H.overrideServices,B=S===void 0?{}:S,J=H.theme,ue=J===void 0?"vs-dark":J,q=H.onEditBlur,xe=H.onSave,We=H.autoHeight,it=We===void 0?!1:We,be=H.forbidCopy,Le=be===void 0?!1:be,Fe=H.onChange,ze=Fe===void 0?w:Fe,dt=H.editorDidMount,It=dt===void 0?w:dt,Jt=H.onFocus,Bt=Jt===void 0?w:Jt,Nt=H.filename,cn=Nt===void 0?"educoder.txt":Nt,sn=H.errorLine,zt=H.errorContent,dn=zt===void 0?"":zt,Tn=Object(oe.a)(H,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Se=Object(V.useRef)(),fe=Object(V.useRef)({}),pe=Object(V.useRef)(),ve=Object(V.useRef)(),Oe=Object(V.useRef)(!1),ge=Object(V.useRef)(),ye=Object(V.useState)(!1),Re=Object(G.a)(ye,2),Me=Re[0],nt=Re[1];function qe(){var Ct;return Se.current&&(Ct=new F.default(function(et){var Ut=Object(j.a)(et),en;try{for(Ut.s();!(en=Ut.n()).done;){var ln=en.value;(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&fe.current.instance.layout()}}catch(Gn){Ut.e(Gn)}finally{Ut.f()}}),Ct.observe(Se.current)),Ct}function xt(){le.b.warn(decodeURIComponent(D))}var yn=function(){var et=fe.current.instance;if(Ke!=null&&et&&Me){var Ut=et.getModel();Ut&&Ke!==Ut.getValue()&&(M=!0,Ut.setValue(Ke),et.layout(),M=!1)}};Object(V.useEffect)(function(){ve.current&&clearTimeout(ve.current),ve.current=setTimeout(function(){yn()},500)},[Ke,Me,fe.current]),Object(V.useEffect)(function(){if(sn&&fe.current&&fe.current.instance){var Ct=fe.current.instance;Ct.changeViewZones(function(Ut){var en=document.createElement("div");en.style.padding="10px 20px",en.style.width="calc(100% - 20px)",en.className="my-error-line-wrp",en.innerHTML=dn,Ut.addZone({afterLineNumber:sn||11,heightInLines:3,domNode:en})});var et={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ct.addOverlayWidget(et),Ct.revealPositionInCenter({lineNumber:20,column:1})}},[sn,fe.current,Me]);function Pn(){var Ct=fe.current.instance;if(Ct){var et=Ct.getSelection(),Ut=fe.current.pastePos||{},en=new L.Range(Ut.startLineNumber||et.endLineNumber,Ut.startColumn||et.endColumn,Ut.endLineNumber||et.endLineNumber,Ut.endColumn||et.endColumn);setTimeout(function(){Ct.executeEdits("",[{range:en,text:""}])},300)}}function An(Ct){(window.navigator.platform.match("Mac")?Ct.metaKey:Ct.ctrlKey)&&Ct.keyCode==83&&(Ct.preventDefault(),xe())}var $t=function(){if(it&&fe.current.instance){var et=fe.current.instance.getContentHeight();Et(et<Ce?Ce:et)}else Et(Ce)};function ft(Ct){var et=document.createEvent("MouseEvents");et.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ct.dispatchEvent(et)}function yt(Ct,et){var Ut=window.URL||window.webkitURL||window,en=new Blob([et]),ln=document.createElementNS("http://www.w3.org/1999/xhtml","a");ln.href=Ut.createObjectURL(en),ln.download=Ct,ft(ln)}Object(V.useEffect)(function(){$t()},[$t]),Object(V.useEffect)(function(){Se.current&&!Me&&Promise.all([ie.e(18),ie.e(29)]).then(ie.t.bind(null,"M/lh",7)).then(function(Ct){try{L=Ct,fe.current.instance=L.editor.create(Se.current,{value:Ke,language:z(je),theme:ue,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},B);var et=fe.current.instance,Ut=E.d._menuItems,en=Object(ae.a)(Ut).find(function(On){return On[0]._debugName=="EditorContext"}),ln=en[1],Gn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Mn=function(gn,Wn){var jn=gn._first;do{var rr,ur,Sr=Wn.includes((rr=jn.element)===null||rr===void 0||((ur=rr.command)===null||ur===void 0)?void 0:ur.id);Sr&&gn._remove(jn)}while(jn=jn.next)};if(It(et,L),setTimeout(function(){$t(),fe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){yt(cn||"educoder.txt",et.getValue())}}),et.getDomNode().addEventListener("input",function(){pe.current.autoFormat&&et.getAction("editor.action.formatDocument").run()})},500),fe.current.subscription=et.onDidChangeModelContent(function(On){Oe.current?clearTimeout(ge.current):($t(),ze(et.getValue(),On)),ge.current=setTimeout(function(){Oe.current=!1},500)}),window.Monaco||P(L,z(je)),Le&&(Mn(ln,Gn),Se.current.classList.add("noCopyPaste"),et.onKeyDown(function(On){var gn=On.keyCode,Wn=On.ctrlKey,jn=On.metaKey;(gn===33||gn===52)&&(jn||Wn)&&(xt(),On.preventDefault())})),window.Monaco=L,q&&et.onDidBlurEditorWidget(function(){q(et.getValue())}),Bt&&et.onDidFocusEditorText(function(){Bt(et.getValue())}),Le){et.addCommand(L.KeyMod.CtrlCmd|L.KeyCode.KEY_V,function(){return xt(),null}),et.onDidPaste(function(On){fe.current.pastePos=On});try{window.addEventListener("paste",Pn)}catch(On){}}var hn=qe();return nt(!0),function(){var On=fe.current.instance;On.dispose();var gn=On.getModel();gn&&gn.dispose(),fe.current.subscription&&fe.current.subscription.dispose(),Le&&window.removeEventListener("paste",Pn),hn.unobserve(Se.current)}}catch(On){}})},[]),Object(V.useEffect)(function(){var Ct=fe.current.instance;if(Ct&&Me)return document.addEventListener("keydown",An,!1),function(){document.removeEventListener("keydown",An)}},[xe,Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;if(Ct&&Me){var et=z(je);L.editor.setModelLanguage(Ct.getModel(),et),console.log("language:",je,Ct.getModel(),et)}},[je,Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;Ct&&Me&&L.editor.setTheme(ue)},[ue,Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;pe.current=se,Ct&&Me&&(Ct.updateOptions(Object(Te.a)({},se)),setTimeout(function(){Ct.getModel().updateOptions(Object(Te.a)({},se))},200))},[JSON.stringify(se),Me]),Object(V.useEffect)(function(){var Ct=fe.current.instance;Ct&&Me&&Ct.layout()},[ce,Ce,Me]);var ut=Object(V.useState)(T(ce)),Ae=Object(G.a)(ut,2),Ue=Ae[0],vt=Ae[1],ht=Object(V.useState)(T(Ce)),Qt=Object(G.a)(ht,2),nn=Qt[0],Et=Qt[1],Rt=Object(Te.a)(Object(Te.a)({},$e),{},{width:Ue,height:nn});return l.a.createElement("div",{className:"my-monaco-editor",ref:Se,style:Rt})};function Y(H){var ne=H.width,ce=ne===void 0?"100%":ne,we=H.height,Ce=we===void 0?"100%":we,Ke=H.original,Ie=H.modified,je=H.language,Ve=H.options,$e=Ve===void 0?{}:Ve,Pe=Object(V.useRef)(),se=Object(V.useState)(null),S=Object(G.a)(se,2),B=S[0],J=S[1];function ue(it){var be;return Pe.current&&(be=new F.default(function(Le){var Fe=Object(j.a)(Le),ze;try{for(Fe.s();!(ze=Fe.n()).done;){var dt=ze.value;(dt.target.offsetHeight>0||dt.target.offsetWidth>0)&&it.layout()}}catch(It){Fe.e(It)}finally{Fe.f()}}),be.observe(Pe.current)),be}Object(V.useEffect)(function(){Pe.current&&Promise.all([ie.e(18),ie.e(29)]).then(ie.t.bind(null,"M/lh",7)).then(function(it){L=it;var be=L.editor.createDiffEditor(Pe.current,Object(Te.a)(Object(Te.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},$e),{},{wordWrap:!0}));J(be);var Le=ue(be);return function(){be.dispose();var Fe=be.getModel();Fe&&Fe.dispose(),Le.unobserve(Pe.current)}})},[]),Object(V.useEffect)(function(){B&&B.setModel({original:L.editor.createModel(Ke,je),modified:L.editor.createModel(Ie,je)})},[Ke,Ie,je,B]);var q=T(ce),xe=T(Ce),We={width:q,height:xe};return l.a.createElement("div",{className:"my-diff-editor",ref:Pe,style:We})}},Zss7:function(Dt,Ne,ie){var Te;(function(ae){var X=/^\s+/,le=/\s+$/,j=0,G=ae.round,oe=ae.min,V=ae.max,l=ae.random;function F(S,B){if(S=S||"",B=B||{},S instanceof F)return S;if(!(this instanceof F))return new F(S,B);var J=O(S);this._originalInput=S,this._r=J.r,this._g=J.g,this._b=J.b,this._a=J.a,this._roundA=G(100*this._a)/100,this._format=B.format||J.format,this._gradientType=B.gradientType,this._r<1&&(this._r=G(this._r)),this._g<1&&(this._g=G(this._g)),this._b<1&&(this._b=G(this._b)),this._ok=J.ok,this._tc_id=j++}F.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var S=this.toRgb();return(S.r*299+S.g*587+S.b*114)/1e3},getLuminance:function(){var S=this.toRgb(),B,J,ue,q,xe,We;return B=S.r/255,J=S.g/255,ue=S.b/255,B<=.03928?q=B/12.92:q=ae.pow((B+.055)/1.055,2.4),J<=.03928?xe=J/12.92:xe=ae.pow((J+.055)/1.055,2.4),ue<=.03928?We=ue/12.92:We=ae.pow((ue+.055)/1.055,2.4),.2126*q+.7152*xe+.0722*We},setAlpha:function(S){return this._a=W(S),this._roundA=G(100*this._a)/100,this},toHsv:function(){var S=y(this._r,this._g,this._b);return{h:S.h*360,s:S.s,v:S.v,a:this._a}},toHsvString:function(){var S=y(this._r,this._g,this._b),B=G(S.h*360),J=G(S.s*100),ue=G(S.v*100);return this._a==1?"hsv("+B+", "+J+"%, "+ue+"%)":"hsva("+B+", "+J+"%, "+ue+"%, "+this._roundA+")"},toHsl:function(){var S=b(this._r,this._g,this._b);return{h:S.h*360,s:S.s,l:S.l,a:this._a}},toHslString:function(){var S=b(this._r,this._g,this._b),B=G(S.h*360),J=G(S.s*100),ue=G(S.l*100);return this._a==1?"hsl("+B+", "+J+"%, "+ue+"%)":"hsla("+B+", "+J+"%, "+ue+"%, "+this._roundA+")"},toHex:function(S){return g(this._r,this._g,this._b,S)},toHexString:function(S){return"#"+this.toHex(S)},toHex8:function(S){return h(this._r,this._g,this._b,this._a,S)},toHex8String:function(S){return"#"+this.toHex8(S)},toRgb:function(){return{r:G(this._r),g:G(this._g),b:G(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+G(this._r)+", "+G(this._g)+", "+G(this._b)+")":"rgba("+G(this._r)+", "+G(this._g)+", "+G(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:G(Y(this._r,255)*100)+"%",g:G(Y(this._g,255)*100)+"%",b:G(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+G(Y(this._r,255)*100)+"%, "+G(Y(this._g,255)*100)+"%, "+G(Y(this._b,255)*100)+"%)":"rgba("+G(Y(this._r,255)*100)+"%, "+G(Y(this._g,255)*100)+"%, "+G(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:z[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(S){var B="#"+c(this._r,this._g,this._b,this._a),J=B,ue=this._gradientType?"GradientType = 1, ":"";if(S){var q=F(S);J="#"+c(q._r,q._g,q._b,q._a)}return"progid:DXImageTransform.Microsoft.gradient("+ue+"startColorstr="+B+",endColorstr="+J+")"},toString:function(S){var B=!!S;S=S||this._format;var J=!1,ue=this._a<1&&this._a>=0,q=!B&&ue&&(S==="hex"||S==="hex6"||S==="hex3"||S==="hex4"||S==="hex8"||S==="name");return q?S==="name"&&this._a===0?this.toName():this.toRgbString():(S==="rgb"&&(J=this.toRgbString()),S==="prgb"&&(J=this.toPercentageRgbString()),(S==="hex"||S==="hex6")&&(J=this.toHexString()),S==="hex3"&&(J=this.toHexString(!0)),S==="hex4"&&(J=this.toHex8String(!0)),S==="hex8"&&(J=this.toHex8String()),S==="name"&&(J=this.toName()),S==="hsl"&&(J=this.toHslString()),S==="hsv"&&(J=this.toHsvString()),J||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(S,B){var J=S.apply(null,[this].concat([].slice.call(B)));return this._r=J._r,this._g=J._g,this._b=J._b,this.setAlpha(J._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(P,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(I,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(S,B){return S.apply(null,[this].concat([].slice.call(B)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(v,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},F.fromRatio=function(S,B){if(typeof S=="object"){var J={};for(var ue in S)S.hasOwnProperty(ue)&&(ue==="a"?J[ue]=S[ue]:J[ue]=Ke(S[ue]));S=J}return F(S,B)};function O(S){var B={r:0,g:0,b:0},J=1,ue=null,q=null,xe=null,We=!1,it=!1;return typeof S=="string"&&(S=Pe(S)),typeof S=="object"&&($e(S.r)&&$e(S.g)&&$e(S.b)?(B=C(S.r,S.g,S.b),We=!0,it=String(S.r).substr(-1)==="%"?"prgb":"rgb"):$e(S.h)&&$e(S.s)&&$e(S.v)?(ue=Ke(S.s),q=Ke(S.v),B=x(S.h,ue,q),We=!0,it="hsv"):$e(S.h)&&$e(S.s)&&$e(S.l)&&(ue=Ke(S.s),xe=Ke(S.l),B=p(S.h,ue,xe),We=!0,it="hsl"),S.hasOwnProperty("a")&&(J=S.a)),J=W(J),{ok:We,format:S.format||it,r:oe(255,V(B.r,0)),g:oe(255,V(B.g,0)),b:oe(255,V(B.b,0)),a:J}}function C(S,B,J){return{r:Y(S,255)*255,g:Y(B,255)*255,b:Y(J,255)*255}}function b(S,B,J){S=Y(S,255),B=Y(B,255),J=Y(J,255);var ue=V(S,B,J),q=oe(S,B,J),xe,We,it=(ue+q)/2;if(ue==q)xe=We=0;else{var be=ue-q;We=it>.5?be/(2-ue-q):be/(ue+q);switch(ue){case S:xe=(B-J)/be+(B<J?6:0);break;case B:xe=(J-S)/be+2;break;case J:xe=(S-B)/be+4;break}xe/=6}return{h:xe,s:We,l:it}}function p(S,B,J){var ue,q,xe;S=Y(S,360),B=Y(B,100),J=Y(J,100);function We(Le,Fe,ze){return ze<0&&(ze+=1),ze>1&&(ze-=1),ze<1/6?Le+(Fe-Le)*6*ze:ze<1/2?Fe:ze<2/3?Le+(Fe-Le)*(2/3-ze)*6:Le}if(B===0)ue=q=xe=J;else{var it=J<.5?J*(1+B):J+B-J*B,be=2*J-it;ue=We(be,it,S+1/3),q=We(be,it,S),xe=We(be,it,S-1/3)}return{r:ue*255,g:q*255,b:xe*255}}function y(S,B,J){S=Y(S,255),B=Y(B,255),J=Y(J,255);var ue=V(S,B,J),q=oe(S,B,J),xe,We,it=ue,be=ue-q;if(We=ue===0?0:be/ue,ue==q)xe=0;else{switch(ue){case S:xe=(B-J)/be+(B<J?6:0);break;case B:xe=(J-S)/be+2;break;case J:xe=(S-B)/be+4;break}xe/=6}return{h:xe,s:We,v:it}}function x(S,B,J){S=Y(S,360)*6,B=Y(B,100),J=Y(J,100);var ue=ae.floor(S),q=S-ue,xe=J*(1-B),We=J*(1-q*B),it=J*(1-(1-q)*B),be=ue%6,Le=[J,We,xe,xe,it,J][be],Fe=[it,J,J,We,xe,xe][be],ze=[xe,xe,it,J,J,We][be];return{r:Le*255,g:Fe*255,b:ze*255}}function g(S,B,J,ue){var q=[Ce(G(S).toString(16)),Ce(G(B).toString(16)),Ce(G(J).toString(16))];return ue&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0):q.join("")}function h(S,B,J,ue,q){var xe=[Ce(G(S).toString(16)),Ce(G(B).toString(16)),Ce(G(J).toString(16)),Ce(Ie(ue))];return q&&xe[0].charAt(0)==xe[0].charAt(1)&&xe[1].charAt(0)==xe[1].charAt(1)&&xe[2].charAt(0)==xe[2].charAt(1)&&xe[3].charAt(0)==xe[3].charAt(1)?xe[0].charAt(0)+xe[1].charAt(0)+xe[2].charAt(0)+xe[3].charAt(0):xe.join("")}function c(S,B,J,ue){var q=[Ce(Ie(ue)),Ce(G(S).toString(16)),Ce(G(B).toString(16)),Ce(G(J).toString(16))];return q.join("")}F.equals=function(S,B){return!S||!B?!1:F(S).toRgbString()==F(B).toRgbString()},F.random=function(){return F.fromRatio({r:l(),g:l(),b:l()})};function d(S,B){B=B===0?0:B||10;var J=F(S).toHsl();return J.s-=B/100,J.s=H(J.s),F(J)}function I(S,B){B=B===0?0:B||10;var J=F(S).toHsl();return J.s+=B/100,J.s=H(J.s),F(J)}function A(S){return F(S).desaturate(100)}function R(S,B){B=B===0?0:B||10;var J=F(S).toHsl();return J.l+=B/100,J.l=H(J.l),F(J)}function N(S,B){B=B===0?0:B||10;var J=F(S).toRgb();return J.r=V(0,oe(255,J.r-G(255*-(B/100)))),J.g=V(0,oe(255,J.g-G(255*-(B/100)))),J.b=V(0,oe(255,J.b-G(255*-(B/100)))),F(J)}function P(S,B){B=B===0?0:B||10;var J=F(S).toHsl();return J.l-=B/100,J.l=H(J.l),F(J)}function D(S,B){var J=F(S).toHsl(),ue=(J.h+B)%360;return J.h=ue<0?360+ue:ue,F(J)}function E(S){var B=F(S).toHsl();return B.h=(B.h+180)%360,F(B)}function v(S){var B=F(S).toHsl(),J=B.h;return[F(S),F({h:(J+120)%360,s:B.s,l:B.l}),F({h:(J+240)%360,s:B.s,l:B.l})]}function _(S){var B=F(S).toHsl(),J=B.h;return[F(S),F({h:(J+90)%360,s:B.s,l:B.l}),F({h:(J+180)%360,s:B.s,l:B.l}),F({h:(J+270)%360,s:B.s,l:B.l})]}function T(S){var B=F(S).toHsl(),J=B.h;return[F(S),F({h:(J+72)%360,s:B.s,l:B.l}),F({h:(J+216)%360,s:B.s,l:B.l})]}function w(S,B,J){B=B||6,J=J||30;var ue=F(S).toHsl(),q=360/J,xe=[F(S)];for(ue.h=(ue.h-(q*B>>1)+720)%360;--B;)ue.h=(ue.h+q)%360,xe.push(F(ue));return xe}function M(S,B){B=B||6;for(var J=F(S).toHsv(),ue=J.h,q=J.s,xe=J.v,We=[],it=1/B;B--;)We.push(F({h:ue,s:q,v:xe})),xe=(xe+it)%1;return We}F.mix=function(S,B,J){J=J===0?0:J||50;var ue=F(S).toRgb(),q=F(B).toRgb(),xe=J/100,We={r:(q.r-ue.r)*xe+ue.r,g:(q.g-ue.g)*xe+ue.g,b:(q.b-ue.b)*xe+ue.b,a:(q.a-ue.a)*xe+ue.a};return F(We)},F.readability=function(S,B){var J=F(S),ue=F(B);return(ae.max(J.getLuminance(),ue.getLuminance())+.05)/(ae.min(J.getLuminance(),ue.getLuminance())+.05)},F.isReadable=function(S,B,J){var ue=F.readability(S,B),q,xe;xe=!1,q=se(J);switch(q.level+q.size){case"AAsmall":case"AAAlarge":xe=ue>=4.5;break;case"AAlarge":xe=ue>=3;break;case"AAAsmall":xe=ue>=7;break}return xe},F.mostReadable=function(S,B,J){var ue=null,q=0,xe,We,it,be;J=J||{},We=J.includeFallbackColors,it=J.level,be=J.size;for(var Le=0;Le<B.length;Le++)xe=F.readability(S,B[Le]),xe>q&&(q=xe,ue=F(B[Le]));return F.isReadable(S,ue,{level:it,size:be})||!We?ue:(J.includeFallbackColors=!1,F.mostReadable(S,["#fff","#000"],J))};var Z=F.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=F.hexNames=L(Z);function L(S){var B={};for(var J in S)S.hasOwnProperty(J)&&(B[S[J]]=J);return B}function W(S){return S=parseFloat(S),(isNaN(S)||S<0||S>1)&&(S=1),S}function Y(S,B){ce(S)&&(S="100%");var J=we(S);return S=oe(B,V(0,parseFloat(S))),J&&(S=parseInt(S*B,10)/100),ae.abs(S-B)<1e-6?1:S%B/parseFloat(B)}function H(S){return oe(1,V(0,S))}function ne(S){return parseInt(S,16)}function ce(S){return typeof S=="string"&&S.indexOf(".")!=-1&&parseFloat(S)===1}function we(S){return typeof S=="string"&&S.indexOf("%")!=-1}function Ce(S){return S.length==1?"0"+S:""+S}function Ke(S){return S<=1&&(S=S*100+"%"),S}function Ie(S){return ae.round(parseFloat(S)*255).toString(16)}function je(S){return ne(S)/255}var Ve=function(){var S="[-\\+]?\\d+%?",B="[-\\+]?\\d*\\.\\d+%?",J="(?:"+B+")|(?:"+S+")",ue="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",q="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?";return{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+ue),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+ue),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+ue),hsva:new RegExp("hsva"+q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function $e(S){return!!Ve.CSS_UNIT.exec(S)}function Pe(S){S=S.replace(X,"").replace(le,"").toLowerCase();var B=!1;if(Z[S])S=Z[S],B=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var J;return(J=Ve.rgb.exec(S))?{r:J[1],g:J[2],b:J[3]}:(J=Ve.rgba.exec(S))?{r:J[1],g:J[2],b:J[3],a:J[4]}:(J=Ve.hsl.exec(S))?{h:J[1],s:J[2],l:J[3]}:(J=Ve.hsla.exec(S))?{h:J[1],s:J[2],l:J[3],a:J[4]}:(J=Ve.hsv.exec(S))?{h:J[1],s:J[2],v:J[3]}:(J=Ve.hsva.exec(S))?{h:J[1],s:J[2],v:J[3],a:J[4]}:(J=Ve.hex8.exec(S))?{r:ne(J[1]),g:ne(J[2]),b:ne(J[3]),a:je(J[4]),format:B?"name":"hex8"}:(J=Ve.hex6.exec(S))?{r:ne(J[1]),g:ne(J[2]),b:ne(J[3]),format:B?"name":"hex"}:(J=Ve.hex4.exec(S))?{r:ne(J[1]+""+J[1]),g:ne(J[2]+""+J[2]),b:ne(J[3]+""+J[3]),a:je(J[4]+""+J[4]),format:B?"name":"hex8"}:(J=Ve.hex3.exec(S))?{r:ne(J[1]+""+J[1]),g:ne(J[2]+""+J[2]),b:ne(J[3]+""+J[3]),format:B?"name":"hex"}:!1}function se(S){var B,J;return S=S||{level:"AA",size:"small"},B=(S.level||"AA").toUpperCase(),J=(S.size||"small").toLowerCase(),B!=="AA"&&B!=="AAA"&&(B="AA"),J!=="small"&&J!=="large"&&(J="small"),{level:B,size:J}}Dt.exports?Dt.exports=F:!(Te=function(){return F}.call(Ne,ie,Ne,Dt),Te!==void 0&&(Dt.exports=Te))})(Math)},bT9E:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});var Te=ie("VTBJ");function ae(X,le){var j=Object(Te.a)({},X);return Array.isArray(le)&&le.forEach(function(G){delete j[G]}),j}},cFMs:function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF61XQl4VdW1/m9GIAlhDGEIBATB2aetvCfYwYoDqKioVZGi4vxq9VlHVNSqtCA+obaKoBat4gRiHVBQBH2aiG3VKgIhYQhhyEQIhAwkuee8b49n7X32ubkRe7+PL3c4e5999vr3v/619jqHGH7gl+/7qdhSdAI8nAJgFHx/FHwUwPdyAOQAfgZ8X55V/mWf2b8YxF/+Ir/xj+R7/V4ed6jt2blUn3ocpG91fjU+dQwdl++RmWT9qWug79Wl0WPJ5fL+AcTYG/aKyXlhf8VH4zt1jB4faWfblfZL+1LHGedVX6r+aGd6kMEYla1CWIqJIR/qy/f/kY6y9vGAdzmAcfC83BBAFGgMoBAj6AtVxrYARo2r+yJANABJjGqDIQRkBV4FYPbZ08MXb+hY1Htybn5NtH1UG8cxDEzqawUs/Vl1G5OLT9lUmk0BRYNDfS87UH0rYKohG1anHxxwMPqmA3Oghp+PXKNaE98XYH5FUVe04BYg9lv4fm8+UzYD8YsiKzaKiZSROgIA/Z1eTKg9WZr2OUNglTOvgaJWqQSfcU0EYOq6ovpTzKIRROdHAdsCDycpxVgWkCij0bUVAqYFGj5nDiDp7+n1WgxqgEP2QQ5PjJ3vyWDcDW4tvgLx2IPw/YHBSeTKDRneYgn1u3aJFkNo9xLlGhOxheNctmtzAVODgYJN9tVhe6uNa6FRluPvCbC065NLnjKaAoHxHXGXDrekCF5IDgIY7Ro5iknLKEcW5SJVU4o0N+o67SL9suKz4GMOfP9IE1jyUxRbUQMaLsW1qi33aOsx24AuQCvXRsFK+0nEpGpWlLbTFiPjss8Zs8dsu16q81y+ygE44zDLVFGAc7GSC0yU1ZwgtKHRSahId5l0K9/3Yyj7/GHAnx6sCqV1HG6QA5q5RuWXbV2iACnFvecFi0oZzwkCFRDIfg2Xahk50p2yc9FxRTBlVHuXy3O5YY8GLnKuFBtSt6bGwr+jwp61TyGyg4KQuk/SRoPS9Z1kriiXyU2iaY+wn0t7RbGXyWRJAcyvXpeN/ftfhIeJ2jBGP8qwDq3l1C8ECNpNRrjRRMa09ZrNjIncnmYlAq4O2yvOltdpXBvRa6FrshZTSJyr3+VfKs5D7EIBQLWVBSgFlhCjJcNMiY5JWoBpuCbUaf7W4kLE8RY8/xgNbg50wiDU9VD3EqlFyIQ7XRkBmzaGbdREuiciMqSAo7pKgS3S1dLxqAjNEQCEtKUFXg08xkQ04iIGNZiNaCgKSjX/iq2oPRQLBnkNMdkKqAbglMa02DCECAcPOSLGoFkAwoQMxsHV7q+FjzxjQkLsFaFNDIAlEN+dzXkpoFCm4OeyQWe5bheYE7EQ687luu28mZ5ZK8XCh0NZXTGUAzhKJ6lrsN2lYXSaF1NujRyQlKay27mgQNgyIQ2pvswUBXO3kQATbrGhKMxcNOVjpSX06vABQ38kcH+GdlHBjZX41Mzjcq0Oce0EgCuZSwBA2ctuT9nOALXFtEYuTAHLGp+d93JFiS7GcUWWxnHEveoFSNMdSgMqk0eZXupAzYBG6NkhzPgBhN2cZ+GCfnPxMqG5CKD4qooQ9s5kpJoVR6TIumLsoMFPDeGIIrWLoEDpQPPZGs0FVGeEqiyXDHjpNVKfZYOPZAaou+LpiiQy9i4tpq4vxBPUrAmAZLtLmyWdrpIKftd7s5EbYKXFj8D3pxtodIl66pa08RLoH3pMR+LdyQZWtMcH6NrmkRGrAiV3c66ok7TngE9mu8oBOuYGncKeMi7J2CtAaL1KVn1UZt8+Vq9Mh74yosSICFPjgLjBhNFlR+TlFv8hgIk8l79ch6sUpDyEJmJb92kxFNU6RmRmiWWaKrBdlAKjqz0/r0yBaIBZaQDKVprJCMOEUiBEPzjTIwnA7NJxNvhDKQiVACUeQbEZFejUNWqXSEDlZBnlFiwRT1MQFKBGQJBIllsgcgp9qtt8k1t5hr7s82/MJCr1qfaKlHt2odVr6w5HxEUBFBLrltaKOjYqrWAb3OkaLcBEJWGVAem57PxYwut37CNG6S7Dw0pD8z/yPW2no00rVZEIhNrNEl1FXW+Ui0wYMSZmNgOufmnRNADPBIAmmivKBeiL7mi/ka5U4sK0YSPa265Xj8OqUoisZnC4VRssNgD1mBKAkDKUcq/U7dN51/qR7jPKA7Qek5+NPUPrGM06DoB06N4os9igiNJsLreX7HdiYeie+cZ1c6wUMQy0d8RD+kIZmRMNdS1K66hqBPFb/dqVqPt0OXr/9FzknvgzcXWuLSXNDB52L3sGDev/iUGX3oRuQ4+Q2WzbjTmCAQoWO68VxTTONInFoqovi732r/8a3UceDaSmmiU/el4ogxFWoq4vBEACIG4nOwigFRhA+4H9aKrYjO6HHx+MQ+OJvbGTsBQktktM5CIVMN16S/xq/hYArLTobgAzzfycGhhlATu3FOH+iNFqP3wd1e8vRv45U9HrJ+ca4PLbWuHH20L1YLten4/9675AwZRbkXXYkWYZiO8jJbMLWYbhtEbNqjfQsnu7VXYTReeUXYGugwrR55Qz5UIgUaK6JhkM1Hy8HDX/twLdCoahYNKVSO2WZSy4HW+8gPaGvQl8SNiYsbQMDJn834rOgrYSc/HGA2itq0br3ho0VWxDU0UpDtbV8OMGX3wdsocfjR1Ln8HB2srEvkv+mtl3AAZdcE34fA6wuDtMDDZ+hbyeq7RtN2LoLdiFMAXtNeSGyOTrVejDP9iMhvX/QPbhxyGlaxZqVy0JAHbKOWhYtxa7ly1E4bUzULNqKfZ9/VlSk0EPGnnXE0jN6W6BQDKq72P7ojk4sHl9p/tlDXJGHI2CS663CiDDubzWPdWoeG0hN3BGbi8MvuRaZPTuq+evbP4f0Lq3FrGUVGMcvhcX5nN8n5rRBSN/+wdJBmKBt1TuwK7lr6Btby3irS2ha2Jtug4ail4n/gTZI47Blmf/gJaqHUhJz7DKdOia9OG1taJrvwIMnca4hY+og8UQgQvVKqoezC/9fCJ8703du0Gvdg7LEb1pUAomaCz5CuULH8SQq2cga9TxqP3QBFjdJ2+h8p0XMHLGs2hY/wWad2wOgbqx9Fu+UnNGHY+03F5kJYtUQr8zLkFKBmMxC+TyswJY/vhL0a3gMDqzBJTmhDVu3YiqD5YJgF16vTyO/YnWl15zM3b+7a9o2LwBadk5KJx8IzJ65/Fhlc3/Pdrq9+CIu+YEhvaBTfPug9fWhlG3MSAFebDSJ+6H19qKkfz7wODtDfuw6YkZ3PxpOT04cA7WVaPboKHIH3chuvQrAFJUIABseW4WB9hh19wDxlCkHFb3y+a2bP4DEmAsI2W5ZX1+OkcSGEmLfqnB/NLiJQAmBWXL5Pqo9rDFLz+M6iDx3mtsQMmMKeh7xmXoc9ok1K5aajBY5bJnsO/LTzDyoUVWKbTsz/ex8+U/Yt83n2PIVXcha/jRZoLXlUMzQO5j+/OPcQYbfPktyD78aHGeUOLVXDwNG79GxatPBwwWcX0GwzNW93wOsn0bvkZ6Ti6GX3cXYukZAcDufoxUrQKb5kqA3T7LAFLpH2cIgBkMJjDYuqcG6bk9EUtL59e1/dX5yD3qRxg4cSo1Fj9YMdhh10xHZp8BjmJDH611NRbAEpBX5E+2lgszXEymJvbA93Odm9mGiFfRn/yrTuzIG22e9Wtk5g3CoCvusAB2NsoXPAivpRlDb5rJe9iz5i3Emw8Y+oUJ/IPVO5F7zH8ivVdfeSZxAT2OH4MMvTLd+jAA2M3IHsEAai0Gx5gbSv4VAIwxWFR+S4FV98m2xjzsfOtFZA8dhdxjT+JGLXtqJndrhVNvJiaKYfsrT3PdOWTyr43vK15j33sYeZsCHrVs4L5CANPkI1xqwGDTkdlX1YOaUaTJYMxFWu4xxFKJtJYDgaoezN9SdBLisbV6deuIgxjOmSwN2IaPTWXB+dcedr3yBBrLvsWIe56WGuxl5J/zK/T8rzNRMmMqep0yAXlnXsonpGz2b7g7TPZVMPlm5Bx5AoksSQJYMpkG2JRbkD38KDMKdSZePQiALQgYjGfoSd1YiAHpHEnpQOQFAxjTYJ15aQ2mS3Zkh3xtiYg0zGBmlKgZ7OrpyMyTAKMgBCSD3U9cpBqlDaQoYEWxlxVF+qXFtwL+Y3SBB0zmytBb2Xg9e+ax9UUrsOuN+Rh5/3PYu/YDVL8vAJbZvxDlC36HwuvuF+mHGBA/sB9gwpcEF7uWPYuGDSxN8WtkFY6SBCQYLKVrN8RS0yz3bEa3JoMdZbQP9lNphAg0bPwKFa8ulAC7ztHG2kpyMlyQluAabG8t+o07PyDQGFC95l0wod/v5+ca7otFpexlMJgPxFua0bZvj57ppootqPxgKbIPOwJ5Pz1bs09GrzyuSxXAco/6MdJ4ZCvBSXRWvKUJ9d+udQCso+XQOSaL+aXFC+H7VxvdhvJFasvBlb+yE6iC2VprdqJ+7Sr0/sk52PvFhxpgPU8ah4aN/0T3o04CUmm1ppkQ3bn4Cez7lmmwO4UGC2lBtbKJuyYA3b7oMRzYsh49TzgFmXn5EZGxmaxtqdqF+n99TgDmqOqAj6ZtpfBaDxJdKOghezhbMCma9bTIv/t/ye1nfiDyb58txyVAqTUYc5EkN7bv2y+w852XOrI8Ci+7Cd0KR2qAddgAiABYEiBKth7M31T0CWLsHkZKxVbyVI3UuUfnSH5aCU4u8le8jPyzf4Vep7AVJwx3YONX2L7IpTc6npou/QZh2E2sgpvqQQkIlqZ44fFDTFMwBnNUgcDHlgWz0VKzOzTII+6chVgKY1aRHOUajEeRj5E7hZjIv1dEkRxgwQ0cpX+8T4r8WcY9kI3bSrDn81X6fK11tWjdtwdp2d3RpW9/zWD9Tj0Pmf0G8fyfWAD0RTVWoMdYPrFL/uBQgtRkPcqAUbZxgTKGmL+peCtifiFNPIu9alc9k5yNRLehxYA9q99E7UdL9UhYMtVrb+PhNYuC2KtL/8HoN2EKaj9aFjFiFZ1qdBvHpffojX7jhYbjL0sn7l/3d27c4OXYDA8FMOLojJ59kDPy2KBfzejiXMyVte3fp130vu++hB+P44g7Zunr49py/u+5BuuaX2CMvaV6Jx8vWyT01VK9Cylp6Rh5m2Q2O4Mvgbv1L4+iefd2MBc48NxfuW9JC4FLIdkU+87JTzoNEWE6Wg/mbyqu5QnW77NBrNpQA/g+6j59F3s+fkufPd50AF5rC1K7ZsncFdAlvwAFV95JXAGNUGXTyE3lKKBb+5OOFEooxaDxS/UYBW0YvAGoxSIsmXsf4s3NCBhMuLxti+ah1QC5OBmbD3aGtG7ZIQulZGZi+A0zIpKeMbRUVWDLs7P1Qhh6xe18XtWrrb7W2L1z355m57xiSO/ZJwIt9OvkhL3Rwi8tPgjfzxDRUoKbGQRNRNxYqwziaM9W8qyb0FpXhX5nXobePzvXZBUAe4tXonVPlSNpqq0ftPGBXqNPRXqvPIfIt+7iUa1U2bPh4uX18D8u8e6QCfwrAkRpp5LH7xUAUwzGzyNdkoOFNs0jLpLuE6oNa3UKoz5f9Ff53iuo+yrY+eg6YAgKJ/8GsfQu/Do2PTGd70129nXkXU8BKa5WSegx3sx9HBP5AmAKQGrCQ4CyAGYYJZo5GtZ9gYoXHuW9sRVbeOPDyOiTb4CjfMFDaNy6Iek5KbzqDnQbKiNLDnpg/zdrUfdFoFN0ZwYogN4nj0POqOO4Mao+eAPNO7bKQwmg6Eh8oPfon4o2em5U0lYYPQQwPeGK/WRkKcEUAEzMi5563p2VjyJgY1Jj07x7kNGzL5qrKpA1eASYu+3afzAGX3wDkJqGXW8/j3hzkzGXTI81bi9FLDUV2Sxy168AFAUX3ShdLXWh9pxYIEqmHky4SL+3WJiKoSwXYYPN6bosAMq+yp9+AI1bxJ4gA1gqB9lD/K/STeULHuYAG3r9A1z/6LHQ2WfZ/SVPc+FeeOXt6DZMVViIg+qK3kfl+693CNIBEy5DjxPHcENWLP4TGso63q/sf8Yk9DxxrMmYZK5L5koGu3M2F/lt++qwb92XYiwUL5zYYqgt+oBrtr5j5Ya6Pia404hpwMw+/QOxzxLSRR+g+pN30f/Mi7Fr+ctcg3UfdTwqli5E9yP+A4POm2YEE2oArbWVKFvwO6Rl5eDwm4V77dTrEDQZEfkd5Lw4fqhOkZ+d2y8CbC07t2DLvDvRbfAING0vRd7pF6P+H2uQ1r0nhlxzr9zs9SEYbCOG3/oYMvqIfTzTFYnzVvz1cZ4MNQEmfqv7bAUqV7zO0xK9x4wT86eEv++j9tMVPAURAAyoWPxnDrABZ1/G9/WClxTzn7yHfeu/Qv/TJ6Hnj8eQISmXKlpogN0xG7G0NJ7G2Lb4qU7Z0D540MSp6H7Uj+TXPg7WVGLrc7M5k+YePRrbX31SiPyJU7HrnRdR/83nyD9tEnqddKpsEyC7tXY3yhY8lABgySRT1Qjd0aIl/PQYYjxNAZ89asnUItrIDsGrRL1Lu6jfPA/bnryXJwlzjz8Z1StfQ/7ZU5CZPxjlzzyC3ONOxsBLRFmKAlhG734ygarm1aRoxgwsWOAA4y4y+L2uaAVnsD5jzkSeTmzK32NA1YrXsad4FQZMuBQ9JBtVvPQkGjav5+UxWcNGkTvRhZasfO811H1ZBMFgJwegpXXzIYClg21OB5Ucwj367XFUrX4bXfrmo6WmEn68HV37D0Hz7nL0O3UiUjIyjNxX1pDDkd6jj2Awz8OWv8zhG9hDp94GliSlAPNamrDtr3Mx5LLfIDWLVZiYIj7MYIl0VTKaK/n2Mb+seCE872onO+no0GIvmudSbtUCW/Xyl1C75k0MvOgGtO3fi+oVr3CA9Ro7Hjtf+RMv0Rlw3jT0GH2qBli3wcORkp5pLWYFcKClshztTY0EYAHT1X32PipXLBEAO/18k23go2rFEp5L4gx2wsnccBWLn+QMxgE2dKRmC7XYNMBOvwA9f8TcKgW+rILgGuweGUUKF2k+yYa1iaF69dvYs/YjDLvqdpQv/jPPgw2bdgc2L/w9ehw7Gv3P/KWzHWtd88k7qPl0BboffiwGXXgtDmz+DttffUoy2BViuG2tfIP9YNUOVK8JInj2G9dgFWVCg6ldETLL/SdMQVp2roNxDx1sTOTfCs8T2/2UmcSwrQy4FUVqAmFvAiA0bvwS25+bibQefTDi9rmo/fhtVK98FflnX45eY8Yj3lCPrU/dj8LrH0Ba9x7ERc5BRp9+QeWDZlXqIr8JMxhLjRSt5C5SM5gF+KqVS0wG830BMMZgl90oGMy4Zh+V770uGIwDbGzgcq07fwKAPYpYLIb9G75Gd7ZXKo9r2r6Zg4rpuPxxk7hQF+U6j6L647dRW/QhCi68GjmHy9ybWjdS+5T+aQb3BMOvuwdpOT1xYMsGwmACYOIVQ1N5Cba9NM8BluivRtzwO6T37GvdbW4fnwTYXPVg/ubPfow4vqB6xdiLVEY2ckoO8Cm943nY9Mh1aG+ox5CrpiNr5HGoXfWGATDWv9fUiJQuXflVlC9kIn8jBlwwDem5oubRSB1I7FavWsqjPu0iSXKVu0jOYGcgb9wFpiBnEePKpZLBpIukAJt8o2Awi5kDgJ0vAKYNH2CRvVMabNStj2Dn314E23IacdMD3GDewWZsXjgbfnsbhl9/D1IyuxoAY8xTtmAm/LaDGDbtLl7vJRgwcHPVq//GA6Reo0/jJz6wmQHsz1qD0UjCb29HvLlRA469aa2r5KBjfQybdk8ISGnMraa4chQ2qOTnpEU/y+SzO4lKi0S5TqLEJM2UuxKsGohAxbOPIDWnBwZcdAM3GsvWcwabcDl3kYYg9H0NsGSXXeGVtwVpCjkWE2DMRRLtyDUYc5EfCQ3GXCQLGhY/RRiMAkykPjjAvmIMdj568sjTvmlD1MaXzBUuMqtgGBortqBr/wIMnXIz2hr3Y8fS59BcuQMDJ1yK3GNHc+NumjtdbhXN4XPRsGkddixZyBdXwcXXIpNv/whGYv23NzaITWu5zymqKZTIVwxmpTdUe7YvHBlFRiVOk7VEx+35qPxNny6B70/SzKGWqrNawGav8H5d05YNPFOfwiYlCmCELRSDDZx0LXeZZG6MaLLmwzfAKgk4wAqVZhJsx13kSsVgqnohGFvVB0sDF8kAxhjs5fkmwCxJULmcAIy7SDufGIPf3oqSx+/jW2Hs1X3UcRh47mQ0VWzFzjefR3tzE/qOPR19fzJBs1IAMJYHE6mJ+n8VY/fyV/hOx8DzpvLa+uBlgicEME12lPnsKLKTaYofqh6Mw6X0s4mIs5Jpc9VH7fOFbnqlwQA1kgRRiMGsPBqLKnma4n8elWkKxzgYIF6ah4aSb1B4xW3oxqO+QPvVfSYAxurcWarAfjHXwUpkBoxnLtJkMLb/53IRzK35nkcYLPx8rvqv12LX8lf56fqc/Avk/exsDuTqj9/l05nPUhwsaiUJU4PBSPaeVY/sevdl3lfezyei9+hfkFLr4P7HMIMJYDFZYoJSII/V2m17aa50keKGfTPzHuN7qGLLKcIthmY0ir3M9oLB2E0fm1p2w/fEc1bFl+ZfsQMe/i0UaYbb1X70pukirbvDyxcqgM0W9eyKQdm+XeN+eAdbuKHLF83hG9iH3Xg/rxow0hTJAky7SCbymYvcwDeY3QAToOQuUjOYeQsZu7tny8JH0f+si5B7zEl85DveWIQDZd9h4MTLkTPyeCNZyn7XALvt0dATpfet+zvPa3U/8kQMnHhFUOajDRyTBYdKg10pfonHsX7WTSEYJPsFu+Vt0IWyBi5hoyTEvgVzYc6ST++GF5+pM886SalA7Xg+V0iXkbwVca8BwCaj15izyOmFCyt/ZqZksFlguTAK8IYNX6Ji8RO6DdsmGX7LzFDEK1zkUvQZczryTiMaTC4KIfI/woDxv0SPE8bINIUA2JBLb0DWMKnBxJLj46p8bwnqviqWDDbWWvTSBflMRNcig5d1C5Zp31/Pqyi6DRkh3aoJyk3ziAZTDCZPy9ozhsoaMiKozKDbAT5kFKkAJjWY52Pr82TrKVlkyeOyhoxE3qlSWkTsKxpdJlsPphrxG2+b4qXwvIGmCLfvqIlwo3JPMJTa8D3U/3019q79EL3HnoXuxzGxbN6AUfXuS2iprMDAC6/hWX4azbEkYtX7r3HjdskbgJyjTpQ5G5MpD1bvQsuurbxEmOk/bRO50d2ysxwHa3ah66Bh+tayxq0laN+/F1lDRyEth+WBzK2y5p3laK2tAttQzugrixbtDWgKEAUS9tc4jn+h7bNz2SK+VTToQlrnSXQW1VS6/0BftVRuR+2n7/EdEpG5jxL4HYvwADQuZjr09sbI/I0fi0cHsIlO6vlezCbkyTJ6YhyVoDbb6bFL16t3DpSHdFdmGFUf3KBJtKf5PVo1otuTfvSKI/X4Vt6L6imRTqF3WgfMpokg1J48T4Im3fl71p6IdefvapBU1JPvOufFwlyXdBoigiZpPRg9hKcsNn7yDcCeIO1IqhqGkjd60AQtNVgy7V2pD3uXgDIjBZRxLgoQu7DQUekR0peBWzTZ29bCFDxqY1pVSkiWcrg8kyVUjo8+pTCKgWwD0uMinsma0DUmJ8yju+h8+9CV+SVrzkKcPb6J6in7ZlvqC9x166K5I1Cw9y/5YfYjoSw3bD+tOQQuyTauuq9IliL3Eugx2axpRY06ElQZBwfgDLZKEnSUBWn9GLe06/lelMESsZlyzcSWkeiJor1k6dB9nGvpwC9Z8wg89rhyq3zHNpaOIBNUYrhyaTTytNMa9LdQoOGIZG2mjGRRylL2ToEygAI2kTUkvcBto9yYzVTclhbD6LGQejCVTNPuMBFL0d/svqnvTAQ4uw8CtiTquczRWSBKor0bYOwRmhvWLIPvTVSLKACbzUwRLKUmV51BgdUFIG05aXgblNpQCc6l+nCdx9XedveKcfW55cD5H/NpNgHI5PRTYDlZThpGg1OBUblzNUlRx7lox2LPSGZSuw/JsFhEJ4egyZwA4/aoXp2NPV4RPBzjdHXJaqNIhrK0EdVjum+LdaJcrg0gDbYk27NZYG5YYkln7FV0psjCAIg0BmU0dryeUTK1TraiAKFbjw4WNOwepdeiGM0GlsuVdcY9dq59JMC4aTasLoQXX8sSy85ynoSJVxeAkmA/ChbFKgoAybCfbk/AZbej7GWzp1XrJUBHBDkFmQFI8kRnV2Rp6yy1iDT7uUS7QhYNCNRJKepc7jMhpZn7wSEAd8R2UYCkExKs10QjESDz42/B847RB7p0VUi8W+7MFTHqQCIiUKBgoedU5zLAaOsohzvVzEYnMLiXMrhRw2FYykJGbooyGWln02FkdKmYLOJ/RHOxl+v8TismAgIdaxSgDr19QgZTQ/DXrc5GSvxFeN5Eg8kSaSU7FRDSPAQQdmpCBxeE8SiYQixFj7PTK2TynCAn22JaL9qTb/3PHK68mNJqdCjKPrZGM4IBG5QUsJTVokxFvk8yux7JKP+G9kkBTNjTj2H9qofhxaebhYnS9+uIz34UOElDKGCEXJS0ig0AZSBbn6l+FDCN/qzVqNtGBAhUX2lbWy7JYC+apVe6jQQB3EuoabV0Fk2gGkDsSK8p12OD0aW7KHxsBpKfkxbth94+aYBpNvtuBXvM+Rz4sJKxNKtuswYBENVDTlZyaLdI9rMy8LYbVS4xkv1IukIZnM6p1l7B3T6h/yxU29MCiQJapGtUoIkCiUtX2d8lAlMkT5EfjItNoMui+uq4facBJtksFetWXgE//iBgPTQ42ac9O8GgDE7YRgl9Gyyu9gZ4HTcJG25bnYMgy3Zpap24XBr/LcF/KhraH9SdC2tpXFlukALSBV5jIzqB+X6geq4AWsnoMYpdcV3fC2CazdjpYOl4AAABHElEQVQGef2+WwD8Fl5c1jrTUh/rf9igUacerzJ0xH8LE3Kn7HgHQ7rcq/P/a1TAkwMwojsJGjvi0yC3/tsXDZQIkITYS/VvJ2Uj0hTUNRtgs1kvEZNEASOqTYRbDJFYcu0PCWAaaKye7Nva8fDbpsCPnQYkU36trEMBScEToZlCbs/qx45mXdEnZTI7TWCwkmubJoFeoqykJ0ftCthTbTGarc94e/sY9V0y7i8Zt/Z9+ukck/0gAKPD5Bvm371zItoxFr5/BGIeq20ugOfnIIYcePIxBQYz2WCKqG4Q/lmczsVsdjRKE7b204I0Li02sMtsFIsYwYC6ZY3sZ9Jcmcr869k168GE35A/0tOHGCsBKP8NEV+n3GGS5/9/aODhUXT7opcAAAAASUVORK5CYII="},cz0n:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},"f0W+":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fgAr:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___3W32R",flex_space_between:"flex_space_between___2uUoZ",flex_box_vertical_center:"flex_box_vertical_center___3Oxpz",flex_box_center_end:"flex_box_center_end___2tkyR",flex_box_column:"flex_box_column___2IFiF",btns:"btns___1c8D8",confirm:"confirm___2gIuB",cancel:"cancel___1ssuo"}},fjLI:function(Dt,Ne,ie){"use strict";ie.d(Ne,"f",function(){return b}),ie.d(Ne,"b",function(){return p}),ie.d(Ne,"a",function(){return y}),ie.d(Ne,"d",function(){return x}),ie.d(Ne,"e",function(){return g}),ie.d(Ne,"c",function(){return h});var Te=ie("8HAY"),ae=ie("Vhoy"),X=ie("MI8n"),le=ie("JYp7"),j=ie("pmY6"),G=ie("24hK"),oe=ie("nnTU"),V=ie("T8No"),l=ie("Cg/j"),F=ie("t9D7"),O=function(c,d,I,A){var R=arguments.length,N=R<3?d:A===null?A=Object.getOwnPropertyDescriptor(d,I):A,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(c,d,I,A);else for(var D=c.length-1;D>=0;D--)(P=c[D])&&(N=(R<3?P(N):R>3?P(d,I,N):P(d,I))||N);return R>3&&N&&Object.defineProperty(d,I,N),N},C=function(c,d){return function(I,A){d(I,A,c)}};function b(c){return c.command!==void 0}class p{constructor(c){this.id=p._idPool++,this._debugName=c}}p._idPool=0,p.CommandPalette=new p("CommandPalette"),p.EditorContext=new p("EditorContext"),p.SimpleEditorContext=new p("SimpleEditorContext"),p.EditorContextCopy=new p("EditorContextCopy"),p.EditorContextPeek=new p("EditorContextPeek"),p.MenubarEditMenu=new p("MenubarEditMenu"),p.MenubarCopy=new p("MenubarCopy"),p.MenubarGoMenu=new p("MenubarGoMenu"),p.MenubarSelectionMenu=new p("MenubarSelectionMenu"),p.InlineCompletionsActions=new p("InlineCompletionsActions");const y=Object(l.c)("menuService"),x=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new X.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:c=>c===p.CommandPalette}}addCommand(c){return this.addCommands(le.a.single(c))}addCommands(c){for(const d of c)this._commands.set(d.id,d);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(j.i)(()=>{let d=!1;for(const I of c)d=this._commands.delete(I.id)||d;d&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(c){return this._commands.get(c)}getCommands(){const c=new Map;return this._commands.forEach((d,I)=>c.set(I,d)),c}appendMenuItem(c,d){return this.appendMenuItems(le.a.single({id:c,item:d}))}appendMenuItems(c){const d=new Set,I=new G.a;for(const{id:A,item:R}of c){let N=this._menuItems.get(A);N||(N=new G.a,this._menuItems.set(A,N)),I.push(N.push(R)),d.add(A)}return this._onDidChangeMenu.fire(d),Object(j.i)(()=>{if(I.size>0){for(let A of I)A();this._onDidChangeMenu.fire(d),I.clear()}})}getMenuItems(c){let d;return this._menuItems.has(c)?d=[...this._menuItems.get(c)]:d=[],c===p.CommandPalette&&this._appendImplicitItems(d),d}_appendImplicitItems(c){const d=new Set;for(const I of c)b(I)&&(d.add(I.command.id),I.alt&&d.add(I.alt.id));this._commands.forEach((I,A)=>{d.has(A)||c.push({command:I})})}};class g extends Te.e{constructor(c,d,I,A){super(`submenuitem.${c.submenu.id}`,typeof c.title=="string"?c.title:c.title.value,[],"submenu");this.item=c,this._menuService=d,this._contextKeyService=I,this._options=A}get actions(){const c=[],d=this._menuService.createMenu(this.item.submenu,this._contextKeyService),I=d.getActions(this._options);d.dispose();for(const[,A]of I)A.length>0&&(c.push(...A),c.push(new Te.d));return c.length&&c.pop(),c}}let h=class c{constructor(d,I,A,R,N){var P,D;if(this._commandService=N,this.id=d.id,this.label=(A==null?void 0:A.renderShortTitle)&&d.shortTitle?typeof d.shortTitle=="string"?d.shortTitle:d.shortTitle.value:typeof d.title=="string"?d.title:d.title.value,this.tooltip=(D=typeof d.tooltip=="string"?d.tooltip:(P=d.tooltip)===null||P===void 0?void 0:P.value)!==null&&D!==void 0?D:"",this.enabled=!d.precondition||R.contextMatchesRules(d.precondition),this.checked=void 0,d.toggled){const E=d.toggled.condition?d.toggled:{condition:d.toggled};this.checked=R.contextMatchesRules(E.condition),this.checked&&E.tooltip&&(this.tooltip=typeof E.tooltip=="string"?E.tooltip:E.tooltip.value),E.title&&(this.label=typeof E.title=="string"?E.title:E.title.value)}this.item=d,this.alt=I?new c(I,void 0,A,R,N):void 0,this._options=A,F.d.isThemeIcon(d.icon)&&(this.class=ae.a.asClassName(d.icon))}dispose(){}run(...d){var I,A;let R=[];return((I=this._options)===null||I===void 0?void 0:I.arg)&&(R=[...R,this._options.arg]),((A=this._options)===null||A===void 0?void 0:A.shouldForwardArgs)&&(R=[...R,...d]),this._commandService.executeCommand(this.id,...R)}};h=O([C(3,V.b),C(4,oe.b)],h)},h78n:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return M});var Te=ie("q1tI"),ae=ie.n(Te),X=ie("TSYQ"),le=ie.n(X),j={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},G=function(L){var W=L.map(function(){return Object(Te.useRef)()}),Y=Object(Te.useRef)();return Object(Te.useEffect)(function(){var H=Date.now(),ne=!1;Object.keys(W).forEach(function(ce){var we=W[ce].current;if(!we)return;ne=!0;var Ce=we.style;Ce.transitionDuration=".3s, .3s, .3s, .06s",Y.current&&H-Y.current<100&&(Ce.transitionDuration="0s, 0s")}),ne&&(Y.current=Date.now())}),[W]};function oe(){return oe=Object.assign||function(z){for(var L=1;L<arguments.length;L++){var W=arguments[L];for(var Y in W)Object.prototype.hasOwnProperty.call(W,Y)&&(z[Y]=W[Y])}return z},oe.apply(this,arguments)}function V(z,L){return b(z)||C(z,L)||F(z,L)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F(z,L){if(!z)return;if(typeof z=="string")return O(z,L);var W=Object.prototype.toString.call(z).slice(8,-1);if(W==="Object"&&z.constructor&&(W=z.constructor.name),W==="Map"||W==="Set")return Array.from(z);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return O(z,L)}function O(z,L){(L==null||L>z.length)&&(L=z.length);for(var W=0,Y=new Array(L);W<L;W++)Y[W]=z[W];return Y}function C(z,L){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(z)))return;var W=[],Y=!0,H=!1,ne=void 0;try{for(var ce=z[Symbol.iterator](),we;!(Y=(we=ce.next()).done)&&!(W.push(we.value),L&&W.length===L);Y=!0);}catch(Ce){H=!0,ne=Ce}finally{try{!Y&&ce.return!=null&&ce.return()}finally{if(H)throw ne}}return W}function b(z){if(Array.isArray(z))return z}function p(z,L){if(z==null)return{};var W=y(z,L),Y,H;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(z);for(H=0;H<ne.length;H++){if(Y=ne[H],L.indexOf(Y)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(z,Y))continue;W[Y]=z[Y]}}return W}function y(z,L){if(z==null)return{};var W={},Y=Object.keys(z),H,ne;for(ne=0;ne<Y.length;ne++){if(H=Y[ne],L.indexOf(H)>=0)continue;W[H]=z[H]}return W}var x=function(L){var W=L.className,Y=L.percent,H=L.prefixCls,ne=L.strokeColor,ce=L.strokeLinecap,we=L.strokeWidth,Ce=L.style,Ke=L.trailColor,Ie=L.trailWidth,je=L.transition,Ve=p(L,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ve.gapPosition;var $e=Array.isArray(Y)?Y:[Y],Pe=Array.isArray(ne)?ne:[ne],se=G($e),S=V(se,1),B=S[0],J=we/2,ue=100-we/2,q="M ".concat(ce==="round"?J:0,",").concat(J,`
L `).concat(ce==="round"?ue:100,",").concat(J),xe="0 0 100 ".concat(we),We=0;return ae.a.createElement("svg",oe({className:le()("".concat(H,"-line"),W),viewBox:xe,preserveAspectRatio:"none",style:Ce},Ve),ae.a.createElement("path",{className:"".concat(H,"-line-trail"),d:q,strokeLinecap:ce,stroke:Ke,strokeWidth:Ie||we,fillOpacity:"0"}),$e.map(function(it,be){var Le={strokeDasharray:"".concat(it,"px, 100px"),strokeDashoffset:"-".concat(We,"px"),transition:je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Fe=Pe[be]||Pe[Pe.length-1];return We+=it,ae.a.createElement("path",{key:be,className:"".concat(H,"-line-path"),d:q,strokeLinecap:ce,stroke:Fe,strokeWidth:we,fillOpacity:"0",ref:B[be],style:Le})}))};x.defaultProps=j;var g=x;function h(){return h=Object.assign||function(z){for(var L=1;L<arguments.length;L++){var W=arguments[L];for(var Y in W)Object.prototype.hasOwnProperty.call(W,Y)&&(z[Y]=W[Y])}return z},h.apply(this,arguments)}function c(z,L){return N(z)||R(z,L)||I(z,L)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(z,L){if(!z)return;if(typeof z=="string")return A(z,L);var W=Object.prototype.toString.call(z).slice(8,-1);if(W==="Object"&&z.constructor&&(W=z.constructor.name),W==="Map"||W==="Set")return Array.from(z);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return A(z,L)}function A(z,L){(L==null||L>z.length)&&(L=z.length);for(var W=0,Y=new Array(L);W<L;W++)Y[W]=z[W];return Y}function R(z,L){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(z)))return;var W=[],Y=!0,H=!1,ne=void 0;try{for(var ce=z[Symbol.iterator](),we;!(Y=(we=ce.next()).done)&&!(W.push(we.value),L&&W.length===L);Y=!0);}catch(Ce){H=!0,ne=Ce}finally{try{!Y&&ce.return!=null&&ce.return()}finally{if(H)throw ne}}return W}function N(z){if(Array.isArray(z))return z}function P(z,L){if(z==null)return{};var W=D(z,L),Y,H;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(z);for(H=0;H<ne.length;H++){if(Y=ne[H],L.indexOf(Y)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(z,Y))continue;W[Y]=z[Y]}}return W}function D(z,L){if(z==null)return{};var W={},Y=Object.keys(z),H,ne;for(ne=0;ne<Y.length;ne++){if(H=Y[ne],L.indexOf(H)>=0)continue;W[H]=z[H]}return W}var E=0;function v(z){return+z.replace("%","")}function _(z){return Array.isArray(z)?z:[z]}function T(z,L,W,Y){var H=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,ne=arguments.length>5?arguments[5]:void 0,ce=50-Y/2,we=0,Ce=-ce,Ke=0,Ie=-2*ce;switch(ne){case"left":we=-ce,Ce=0,Ke=2*ce,Ie=0;break;case"right":we=ce,Ce=0,Ke=-2*ce,Ie=0;break;case"bottom":Ce=ce,Ie=2*ce;break;default:}var je="M 50,50 m ".concat(we,",").concat(Ce,`
a `).concat(ce,",").concat(ce," 0 1 1 ").concat(Ke,",").concat(-Ie,`
a `).concat(ce,",").concat(ce," 0 1 1 ").concat(-Ke,",").concat(Ie),Ve=Math.PI*2*ce,$e={stroke:W,strokeDasharray:"".concat(L/100*(Ve-H),"px ").concat(Ve,"px"),strokeDashoffset:"-".concat(H/2+z/100*(Ve-H),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:je,pathStyle:$e}}var w=function(L){var W=L.prefixCls,Y=L.strokeWidth,H=L.trailWidth,ne=L.gapDegree,ce=L.gapPosition,we=L.trailColor,Ce=L.strokeLinecap,Ke=L.style,Ie=L.className,je=L.strokeColor,Ve=L.percent,$e=P(L,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Pe=Object(Te.useMemo)(function(){return E+=1,E},[]),se=T(0,100,we,Y,ne,ce),S=se.pathString,B=se.pathStyle,J=_(Ve),ue=_(je),q=ue.find(function(Le){return Object.prototype.toString.call(Le)==="[object Object]"}),xe=G(J),We=c(xe,1),it=We[0],be=function(){var Fe=0;return J.map(function(ze,dt){var It=ue[dt]||ue[ue.length-1],Jt=Object.prototype.toString.call(It)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(Pe,")"):"",Bt=T(Fe,ze,It,Y,ne,ce);return Fe+=ze,ae.a.createElement("path",{key:dt,className:"".concat(W,"-circle-path"),d:Bt.pathString,stroke:Jt,strokeLinecap:Ce,strokeWidth:Y,opacity:ze===0?0:1,fillOpacity:"0",style:Bt.pathStyle,ref:it[dt]})})};return ae.a.createElement("svg",h({className:le()("".concat(W,"-circle"),Ie),viewBox:"0 0 100 100",style:Ke},$e),q&&ae.a.createElement("defs",null,ae.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(Pe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(q).sort(function(Le,Fe){return v(Le)-v(Fe)}).map(function(Le,Fe){return ae.a.createElement("stop",{key:Fe,offset:Le,stopColor:q[Le]})}))),ae.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:S,stroke:we,strokeLinecap:Ce,strokeWidth:H||Y,fillOpacity:"0",style:B}),be().reverse())};w.defaultProps=j;var M=w,Z={Line:g,Circle:M}},"iL++":function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},ic2d:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return le});var Te=ie("FWmy"),ae=ie("746U");class X{constructor(){this.data=new Map}add(j,G){Te.a(ae.l(j)),Te.a(ae.k(G)),Te.a(!this.data.has(j),"There is already an extension with this id"),this.data.set(j,G)}as(j){return this.data.get(j)||null}}const le=new X},nEHx:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Te});var Te;(function(ae){ae.DARK="dark",ae.LIGHT="light",ae.HIGH_CONTRAST="hc"})(Te||(Te={}))},nnTU:function(Dt,Ne,ie){"use strict";ie.d(Ne,"b",function(){return oe}),ie.d(Ne,"a",function(){return V});var Te=ie("MI8n"),ae=ie("JYp7"),X=ie("pmY6"),le=ie("24hK"),j=ie("746U"),G=ie("Cg/j");const oe=Object(G.c)("commandService"),V=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Te.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,F){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!F)throw new Error("invalid command");return this.registerCommand({id:l,handler:F})}if(l.description){const y=[];for(let g of l.description.args)y.push(g.constraint);const x=l.handler;l.handler=function(g,...h){return Object(j.o)(h,y),x(g,...h)}}const{id:O}=l;let C=this._commands.get(O);C||(C=new le.a,this._commands.set(O,C));let b=C.unshift(l),p=Object(X.i)(()=>{b();const y=this._commands.get(O);(y==null?void 0:y.isEmpty())&&this._commands.delete(O)});return this._onDidRegisterCommand.fire(O),p}registerCommandAlias(l,F){return V.registerCommand(l,(O,...C)=>O.get(oe).executeCommand(F,...C))}getCommand(l){const F=this._commands.get(l);return!F||F.isEmpty()?void 0:ae.a.first(F)}getCommands(){const l=new Map;for(const F of this._commands.keys()){const O=this.getCommand(F);O&&l.set(F,O)}return l}};V.registerCommand("noop",()=>{})},ogmK:function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return Bs});var Te=ie("1OyB"),ae=ie("vuIU"),X=ie("Ji7U"),le=ie("LK+K"),j=ie("rePB"),G=ie("VTBJ"),oe=ie("ODXe"),V=ie("q1tI"),l=ie("TSYQ"),F=ie.n(l),O=ie("Kwbf"),C=ie("6cGi"),b=ie("U8pU"),p=ie("4IlW"),y=V.createContext({}),x=y,g={visibility:"hidden"};function h(de){var Be=de.prefixCls,Je=de.prevIcon,Xe=Je===void 0?"\u2039":Je,pt=de.nextIcon,lt=pt===void 0?"\u203A":pt,mt=de.superPrevIcon,Ot=mt===void 0?"\xAB":mt,Gt=de.superNextIcon,Kt=Gt===void 0?"\xBB":Gt,an=de.onSuperPrev,Zt=de.onSuperNext,gt=de.onPrev,Xt=de.onNext,Pt=de.children,tn=V.useContext(x),Vt=tn.hideNextBtn,xn=tn.hidePrevBtn;return V.createElement("div",{className:Be},an&&V.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(Be,"-super-prev-btn"),style:xn?g:{}},Ot),gt&&V.createElement("button",{type:"button",onClick:gt,tabIndex:-1,className:"".concat(Be,"-prev-btn"),style:xn?g:{}},Xe),V.createElement("div",{className:"".concat(Be,"-view")},Pt),Xt&&V.createElement("button",{type:"button",onClick:Xt,tabIndex:-1,className:"".concat(Be,"-next-btn"),style:Vt?g:{}},lt),Zt&&V.createElement("button",{type:"button",onClick:Zt,tabIndex:-1,className:"".concat(Be,"-super-next-btn"),style:Vt?g:{}},Kt))}var c=h;function d(de){var Be=V.useContext(x),Je=Be.hideHeader;if(Je)return null;var Xe=de.prefixCls,pt=de.generateConfig,lt=de.locale,mt=de.value,Ot=de.format,Gt="".concat(Xe,"-header");return V.createElement(c,{prefixCls:Gt},mt?pt.locale.format(lt.locale,mt,Ot):"\xA0")}var I=d,A=ie("YrtM"),R=ie("KQm4"),N=new Map;function P(de,Be,Je){if(N.get(de)&&cancelAnimationFrame(N.get(de)),Je<=0){N.set(de,requestAnimationFrame(function(){de.scrollTop=Be}));return}var Xe=Be-de.scrollTop,pt=Xe/Je*10;N.set(de,requestAnimationFrame(function(){de.scrollTop+=pt,de.scrollTop!==Be&&P(de,Be,Je-10)}))}function D(de,Be){var Je=Be.onLeftRight,Xe=Be.onCtrlLeftRight,pt=Be.onUpDown,lt=Be.onPageUpDown,mt=Be.onEnter,Ot=de.which,Gt=de.ctrlKey,Kt=de.metaKey;switch(Ot){case p.a.LEFT:if(Gt||Kt){if(Xe)return Xe(-1),!0}else if(Je)return Je(-1),!0;break;case p.a.RIGHT:if(Gt||Kt){if(Xe)return Xe(1),!0}else if(Je)return Je(1),!0;break;case p.a.UP:if(pt)return pt(-1),!0;break;case p.a.DOWN:if(pt)return pt(1),!0;break;case p.a.PAGE_UP:if(lt)return lt(-1),!0;break;case p.a.PAGE_DOWN:if(lt)return lt(1),!0;break;case p.a.ENTER:if(mt)return mt(),!0;break}return!1}function E(de,Be,Je,Xe){var pt=de;if(!pt)switch(Be){case"time":pt=Xe?"hh:mm:ss a":"HH:mm:ss";break;case"week":pt="gggg-wo";break;case"month":pt="YYYY-MM";break;case"quarter":pt="YYYY-[Q]Q";break;case"year":pt="YYYY";break;default:pt=Je?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return pt}function v(de,Be){var Je=de==="time"?8:10;return Math.max(Je,Be.length)+2}var _=null,T=new Set;function w(de){return!_&&typeof window!="undefined"&&window.addEventListener&&(_=function(Je){Object(R.a)(T).forEach(function(Xe){Xe(Je)})},window.addEventListener("mousedown",_)),T.add(de),function(){T.delete(de),T.size===0&&(window.removeEventListener("mousedown",_),_=null)}}var M=function(Be){return Be==="month"||Be==="date"?"year":Be},Z=function(Be){return Be==="date"?"month":Be},z=function(Be){return Be==="month"||Be==="date"?"quarter":Be},L=function(Be){return Be==="date"?"week":Be},W={year:M,month:Z,quarter:z,week:L,time:null,date:null};function Y(de,Be){return de.some(function(Je){return Je&&Je.contains(Be)})}function H(de){var Be=de.prefixCls,Je=de.units,Xe=de.onSelect,pt=de.value,lt=de.active,mt=de.hideDisabledOptions,Ot="".concat(Be,"-cell"),Gt=V.useContext(x),Kt=Gt.open,an=V.useRef(null),Zt=V.useRef(new Map);return V.useLayoutEffect(function(){var gt=Zt.current.get(pt);gt&&Kt!==!1&&P(an.current,gt.offsetTop,120)},[pt]),V.useLayoutEffect(function(){if(Kt){var gt=Zt.current.get(pt);gt&&P(an.current,gt.offsetTop,0)}},[Kt]),V.createElement("ul",{className:F()("".concat(Be,"-column"),Object(j.a)({},"".concat(Be,"-column-active"),lt)),ref:an,style:{position:"relative"}},Je.map(function(gt){var Xt;return mt&&gt.disabled?null:V.createElement("li",{key:gt.value,ref:function(tn){Zt.current.set(gt.value,tn)},className:F()(Ot,(Xt={},Object(j.a)(Xt,"".concat(Ot,"-disabled"),gt.disabled),Object(j.a)(Xt,"".concat(Ot,"-selected"),pt===gt.value),Xt)),onClick:function(){if(gt.disabled)return;Xe(gt.value)}},V.createElement("div",{className:"".concat(Ot,"-inner")},gt.label))}))}var ne=H;function ce(de,Be){for(var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Xe=String(de);Xe.length<Be;)Xe="".concat(Je).concat(de);return Xe}var we=function(){for(var Be=arguments.length,Je=new Array(Be),Xe=0;Xe<Be;Xe++)Je[Xe]=arguments[Xe];return Je};function Ce(de){return de==null?[]:Array.isArray(de)?de:[de]}function Ke(de){var Be={};return Object.keys(de).forEach(function(Je){(Je.substr(0,5)==="data-"||Je.substr(0,5)==="aria-"||Je==="role"||Je==="name")&&Je.substr(0,7)!=="data-__"&&(Be[Je]=de[Je])}),Be}function Ie(de,Be){return de?de[Be]:null}function je(de,Be,Je){var Xe=[Ie(de,0),Ie(de,1)];return Xe[Je]=typeof Be=="function"?Be(Xe[Je]):Be,!Xe[0]&&!Xe[1]?null:Xe}function Ve(de,Be,Je,Xe,pt){var lt=de.setHour(Be,Je);return lt=de.setMinute(lt,Xe),lt=de.setSecond(lt,pt),lt}function $e(de,Be,Je,Xe,pt,lt){var mt=Math.floor(de/Xe)*Xe;if(mt<de)return[mt,60-pt,60-lt];var Ot=Math.floor(Be/pt)*pt;if(Ot<Be)return[mt,Ot,60-lt];var Gt=Math.floor(Je/lt)*lt;return[mt,Ot,Gt]}function Pe(de,Be){if(de.length!==Be.length)return!0;for(var Je=0;Je<de.length;Je+=1)if(de[Je].disabled!==Be[Je].disabled)return!0;return!1}function se(de,Be,Je,Xe){for(var pt=[],lt=de;lt<=Be;lt+=Je)pt.push({label:ce(lt,2),value:lt,disabled:(Xe||[]).includes(lt)});return pt}function S(de){var Be=de.generateConfig,Je=de.prefixCls,Xe=de.operationRef,pt=de.activeColumnIndex,lt=de.value,mt=de.showHour,Ot=de.showMinute,Gt=de.showSecond,Kt=de.use12Hours,an=de.hourStep,Zt=an===void 0?1:an,gt=de.minuteStep,Xt=gt===void 0?1:gt,Pt=de.secondStep,tn=Pt===void 0?1:Pt,Vt=de.disabledHours,xn=de.disabledMinutes,Dn=de.disabledSeconds,Jn=de.hideDisabledOptions,pr=de.onSelect,zn=[],Xn="".concat(Je,"-content"),ar="".concat(Je,"-time-panel"),ir,Zi=lt?Be.getHour(lt):-1,Ai=lt?Be.getMinute(lt):-1,za=lt?Be.getSecond(lt):-1,ki=function(Kr,vi,Ka,Pa){var $i=lt||Be.getNow(),ro=Math.max(0,vi),qi=Math.max(0,Ka),Va=Math.max(0,Pa);return $i=Ve(Be,$i,!Kt||!Kr?ro:ro+12,qi,Va),$i},Sa=se(0,23,Zt,Vt&&Vt()),Mi=Object(A.a)(function(){return Sa},Sa,Pe);Kt&&(ir=Zi>=12,Zi%=12);var as=V.useMemo(function(){if(!Kt)return[!1,!1];var Lr=[!0,!0];return Mi.forEach(function(Kr){var vi=Kr.disabled,Ka=Kr.value;if(vi)return;Ka>=12?Lr[1]=!1:Lr[0]=!1}),Lr},[Kt,Mi]),os=Object(oe.a)(as,2),ss=os[0],yo=os[1],ls=V.useMemo(function(){return Kt?Mi.filter(ir?function(Lr){return Lr.value>=12}:function(Lr){return Lr.value<12}).map(function(Lr){var Kr=Lr.value%12,vi=Kr===0?"12":ce(Kr,2);return Object(G.a)(Object(G.a)({},Lr),{},{label:vi,value:Kr})}):Mi},[Kt,Mi]),Ga=se(0,59,Xt,xn&&xn(Zi)),us=se(0,59,tn,Dn&&Dn(Zi,Ai));Xe.current={onUpDown:function(Kr){var vi=zn[pt];if(vi)for(var Ka=vi.units.findIndex(function(qi){return qi.value===vi.value}),Pa=vi.units.length,$i=1;$i<Pa;$i+=1){var ro=vi.units[(Ka+Kr*$i+Pa)%Pa];if(ro.disabled!==!0){vi.onSelect(ro.value);break}}}};function Bo(Lr,Kr,vi,Ka,Pa){Lr!==!1&&zn.push({node:V.cloneElement(Kr,{prefixCls:ar,value:vi,active:pt===zn.length,onSelect:Pa,units:Ka,hideDisabledOptions:Jn}),onSelect:Pa,value:vi,units:Ka})}Bo(mt,V.createElement(ne,{key:"hour"}),Zi,ls,function(Lr){pr(ki(ir,Lr,Ai,za),"mouse")}),Bo(Ot,V.createElement(ne,{key:"minute"}),Ai,Ga,function(Lr){pr(ki(ir,Zi,Lr,za),"mouse")}),Bo(Gt,V.createElement(ne,{key:"second"}),za,us,function(Lr){pr(ki(ir,Zi,Ai,Lr),"mouse")});var Fo=-1;return typeof ir=="boolean"&&(Fo=ir?1:0),Bo(Kt===!0,V.createElement(ne,{key:"12hours"}),Fo,[{label:"AM",value:0,disabled:ss},{label:"PM",value:1,disabled:yo}],function(Lr){pr(ki(!!Lr,Zi,Ai,za),"mouse")}),V.createElement("div",{className:Xn},zn.map(function(Lr){var Kr=Lr.node;return Kr}))}var B=S,J=function(Be){return Be.filter(function(Je){return Je!==!1}).length};function ue(de){var Be=de.generateConfig,Je=de.format,Xe=Je===void 0?"HH:mm:ss":Je,pt=de.prefixCls,lt=de.active,mt=de.operationRef,Ot=de.showHour,Gt=de.showMinute,Kt=de.showSecond,an=de.use12Hours,Zt=an===void 0?!1:an,gt=de.onSelect,Xt=de.value,Pt="".concat(pt,"-time-panel"),tn=V.useRef(),Vt=V.useState(-1),xn=Object(oe.a)(Vt,2),Dn=xn[0],Jn=xn[1],pr=J([Ot,Gt,Kt,Zt]);return mt.current={onKeyDown:function(Xn){return D(Xn,{onLeftRight:function(ir){Jn((Dn+ir+pr)%pr)},onUpDown:function(ir){Dn===-1?Jn(0):tn.current&&tn.current.onUpDown(ir)},onEnter:function(){gt(Xt||Be.getNow(),"key"),Jn(-1)}})},onBlur:function(){Jn(-1)}},V.createElement("div",{className:F()(Pt,Object(j.a)({},"".concat(Pt,"-active"),lt))},V.createElement(I,Object.assign({},de,{format:Xe,prefixCls:pt})),V.createElement(B,Object.assign({},de,{prefixCls:pt,activeColumnIndex:Dn,operationRef:tn})))}var q=ue,xe=7;function We(de,Be){return!de&&!Be?!0:!de||!Be?!1:void 0}function it(de,Be,Je){var Xe=We(Be,Je);if(typeof Xe=="boolean")return Xe;var pt=Math.floor(de.getYear(Be)/10),lt=Math.floor(de.getYear(Je)/10);return pt===lt}function be(de,Be,Je){var Xe=We(Be,Je);return typeof Xe=="boolean"?Xe:de.getYear(Be)===de.getYear(Je)}function Le(de,Be){var Je=Math.floor(de.getMonth(Be)/3);return Je+1}function Fe(de,Be,Je){var Xe=We(Be,Je);return typeof Xe=="boolean"?Xe:be(de,Be,Je)&&Le(de,Be)===Le(de,Je)}function ze(de,Be,Je){var Xe=We(Be,Je);return typeof Xe=="boolean"?Xe:be(de,Be,Je)&&de.getMonth(Be)===de.getMonth(Je)}function dt(de,Be,Je){var Xe=We(Be,Je);return typeof Xe=="boolean"?Xe:de.getYear(Be)===de.getYear(Je)&&de.getMonth(Be)===de.getMonth(Je)&&de.getDate(Be)===de.getDate(Je)}function It(de,Be,Je){var Xe=We(Be,Je);return typeof Xe=="boolean"?Xe:de.getHour(Be)===de.getHour(Je)&&de.getMinute(Be)===de.getMinute(Je)&&de.getSecond(Be)===de.getSecond(Je)}function Jt(de,Be,Je,Xe){var pt=We(Je,Xe);return typeof pt=="boolean"?pt:de.locale.getWeek(Be,Je)===de.locale.getWeek(Be,Xe)}function Bt(de,Be,Je){return dt(de,Be,Je)&&It(de,Be,Je)}function Nt(de,Be,Je,Xe){return!Be||!Je||!Xe?!1:!dt(de,Be,Xe)&&!dt(de,Je,Xe)&&de.isAfter(Xe,Be)&&de.isAfter(Je,Xe)}function cn(de,Be,Je){var Xe=Be.locale.getWeekFirstDay(de),pt=Be.setDate(Je,1),lt=Be.getWeekDay(pt),mt=Be.addDate(pt,Xe-lt);return Be.getMonth(mt)===Be.getMonth(Je)&&Be.getDate(mt)>1&&(mt=Be.addDate(mt,-7)),mt}function sn(de,Be,Je){var Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Be){case"year":return Je.addYear(de,Xe*10);case"quarter":case"month":return Je.addYear(de,Xe);default:return Je.addMonth(de,Xe)}}var zt=V.createContext({}),dn=zt;function Tn(de){var Be=de.cellPrefixCls,Je=de.generateConfig,Xe=de.rangedValue,pt=de.hoverRangedValue,lt=de.isInView,mt=de.isSameCell,Ot=de.offsetCell,Gt=de.today,Kt=de.value;function an(Zt){var gt,Xt=Ot(Zt,-1),Pt=Ot(Zt,1),tn=Ie(Xe,0),Vt=Ie(Xe,1),xn=Ie(pt,0),Dn=Ie(pt,1),Jn=Nt(Je,xn,Dn,Zt);function pr(Ai){return mt(tn,Ai)}function zn(Ai){return mt(Vt,Ai)}var Xn=mt(xn,Zt),ar=mt(Dn,Zt),ir=(Jn||ar)&&(!lt(Xt)||zn(Xt)),Zi=(Jn||Xn)&&(!lt(Pt)||pr(Pt));return gt={},Object(j.a)(gt,"".concat(Be,"-in-view"),lt(Zt)),Object(j.a)(gt,"".concat(Be,"-in-range"),Nt(Je,tn,Vt,Zt)),Object(j.a)(gt,"".concat(Be,"-range-start"),pr(Zt)),Object(j.a)(gt,"".concat(Be,"-range-end"),zn(Zt)),Object(j.a)(gt,"".concat(Be,"-range-start-single"),pr(Zt)&&!Vt),Object(j.a)(gt,"".concat(Be,"-range-end-single"),zn(Zt)&&!tn),Object(j.a)(gt,"".concat(Be,"-range-start-near-hover"),pr(Zt)&&(mt(Xt,xn)||Nt(Je,xn,Dn,Xt))),Object(j.a)(gt,"".concat(Be,"-range-end-near-hover"),zn(Zt)&&(mt(Pt,Dn)||Nt(Je,xn,Dn,Pt))),Object(j.a)(gt,"".concat(Be,"-range-hover"),Jn),Object(j.a)(gt,"".concat(Be,"-range-hover-start"),Xn),Object(j.a)(gt,"".concat(Be,"-range-hover-end"),ar),Object(j.a)(gt,"".concat(Be,"-range-hover-edge-start"),ir),Object(j.a)(gt,"".concat(Be,"-range-hover-edge-end"),Zi),Object(j.a)(gt,"".concat(Be,"-range-hover-edge-start-near-range"),ir&&mt(Xt,Vt)),Object(j.a)(gt,"".concat(Be,"-range-hover-edge-end-near-range"),Zi&&mt(Pt,tn)),Object(j.a)(gt,"".concat(Be,"-today"),mt(Gt,Zt)),Object(j.a)(gt,"".concat(Be,"-selected"),mt(Kt,Zt)),gt}return an}function Se(de){for(var Be=de.prefixCls,Je=de.disabledDate,Xe=de.onSelect,pt=de.rowNum,lt=de.colNum,mt=de.prefixColumn,Ot=de.rowClassName,Gt=de.baseDate,Kt=de.getCellClassName,an=de.getCellText,Zt=de.getCellNode,gt=de.getCellDate,Xt=de.titleCell,Pt=de.headerCells,tn=V.useContext(x),Vt=tn.onDateMouseEnter,xn=tn.onDateMouseLeave,Dn="".concat(Be,"-cell"),Jn=[],pr=0;pr<pt;pr+=1){for(var zn=[],Xn=void 0,ar=function(Ai){var za=pr*lt+Ai,ki=gt(Gt,za),Sa=Je&&Je(ki);Ai===0&&(Xn=ki,mt&&zn.push(mt(Xn))),zn.push(V.createElement("td",{key:Ai,title:Xt&&Xt(ki),className:F()(Dn,Object(G.a)(Object(j.a)({},"".concat(Dn,"-disabled"),Sa),Kt(ki))),onClick:function(){Sa||Xe(ki)},onMouseEnter:function(){!Sa&&Vt&&Vt(ki)},onMouseLeave:function(){!Sa&&xn&&xn(ki)}},Zt?Zt(ki):V.createElement("div",{className:"".concat(Dn,"-inner")},an(ki))))},ir=0;ir<lt;ir+=1)ar(ir);Jn.push(V.createElement("tr",{key:pr,className:Ot&&Ot(Xn)},zn))}return V.createElement("div",{className:"".concat(Be,"-body")},V.createElement("table",{className:"".concat(Be,"-content")},Pt&&V.createElement("thead",null,V.createElement("tr",null,Pt)),V.createElement("tbody",null,Jn)))}function fe(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.prefixColumn,pt=de.locale,lt=de.rowCount,mt=de.viewDate,Ot=de.value,Gt=de.dateRender,Kt=V.useContext(dn),an=Kt.rangedValue,Zt=Kt.hoverRangedValue,gt=cn(pt.locale,Je,mt),Xt="".concat(Be,"-cell"),Pt=Je.locale.getWeekFirstDay(pt.locale),tn=Je.getNow(),Vt=[],xn=pt.shortWeekDays||(Je.locale.getShortWeekDays?Je.locale.getShortWeekDays(pt.locale):[]);Xe&&Vt.push(V.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Dn=0;Dn<xe;Dn+=1)Vt.push(V.createElement("th",{key:Dn},xn[(Dn+Pt)%xe]));var Jn=Tn({cellPrefixCls:Xt,today:tn,value:Ot,generateConfig:Je,rangedValue:Xe?null:an,hoverRangedValue:Xe?null:Zt,isSameCell:function(Xn,ar){return dt(Je,Xn,ar)},isInView:function(Xn){return ze(Je,Xn,mt)},offsetCell:function(Xn,ar){return Je.addDate(Xn,ar)}}),pr=Gt?function(zn){return Gt(zn,tn)}:void 0;return V.createElement(Se,Object.assign({},de,{rowNum:lt,colNum:xe,baseDate:gt,getCellNode:pr,getCellText:Je.getDate,getCellClassName:Jn,getCellDate:Je.addDate,titleCell:function(Xn){return Je.locale.format(pt.locale,Xn,"YYYY-MM-DD")},headerCells:Vt}))}var pe=fe;function ve(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.viewDate,lt=de.onNextMonth,mt=de.onPrevMonth,Ot=de.onNextYear,Gt=de.onPrevYear,Kt=de.onYearClick,an=de.onMonthClick,Zt=V.useContext(x),gt=Zt.hideHeader;if(gt)return null;var Xt="".concat(Be,"-header"),Pt=Xe.shortMonths||(Je.locale.getShortMonths?Je.locale.getShortMonths(Xe.locale):[]),tn=Je.getMonth(pt),Vt=V.createElement("button",{type:"button",key:"year",onClick:Kt,tabIndex:-1,className:"".concat(Be,"-year-btn")},Je.locale.format(Xe.locale,pt,Xe.yearFormat)),xn=V.createElement("button",{type:"button",key:"month",onClick:an,tabIndex:-1,className:"".concat(Be,"-month-btn")},Xe.monthFormat?Je.locale.format(Xe.locale,pt,Xe.monthFormat):Pt[tn]),Dn=Xe.monthBeforeYear?[xn,Vt]:[Vt,xn];return V.createElement(c,Object.assign({},de,{prefixCls:Xt,onSuperPrev:Gt,onPrev:mt,onNext:lt,onSuperNext:Ot}),Dn)}var Oe=ve,ge=6;function ye(de){var Be=de.prefixCls,Je=de.panelName,Xe=Je===void 0?"date":Je,pt=de.keyboardConfig,lt=de.active,mt=de.operationRef,Ot=de.generateConfig,Gt=de.value,Kt=de.viewDate,an=de.onViewDateChange,Zt=de.onPanelChange,gt=de.onSelect,Xt="".concat(Be,"-").concat(Xe,"-panel");mt.current={onKeyDown:function(xn){return D(xn,Object(G.a)({onLeftRight:function(Jn){gt(Ot.addDate(Gt||Kt,Jn),"key")},onCtrlLeftRight:function(Jn){gt(Ot.addYear(Gt||Kt,Jn),"key")},onUpDown:function(Jn){gt(Ot.addDate(Gt||Kt,Jn*xe),"key")},onPageUpDown:function(Jn){gt(Ot.addMonth(Gt||Kt,Jn),"key")}},pt))}};var Pt=function(xn){var Dn=Ot.addYear(Kt,xn);an(Dn),Zt(null,Dn)},tn=function(xn){var Dn=Ot.addMonth(Kt,xn);an(Dn),Zt(null,Dn)};return V.createElement("div",{className:F()(Xt,Object(j.a)({},"".concat(Xt,"-active"),lt))},V.createElement(Oe,Object.assign({},de,{prefixCls:Be,value:Gt,viewDate:Kt,onPrevYear:function(){Pt(-1)},onNextYear:function(){Pt(1)},onPrevMonth:function(){tn(-1)},onNextMonth:function(){tn(1)},onMonthClick:function(){Zt("month",Kt)},onYearClick:function(){Zt("year",Kt)}})),V.createElement(pe,Object.assign({},de,{onSelect:function(xn){return gt(xn,"mouse")},prefixCls:Be,value:Gt,viewDate:Kt,rowCount:ge})))}var Re=ye;function Me(de,Be,Je){if(!Je)return Be;var Xe=Be;return Xe=de.setHour(Xe,de.getHour(Je)),Xe=de.setMinute(Xe,de.getMinute(Je)),Xe=de.setSecond(Xe,de.getSecond(Je)),Xe}var nt=we("date","time");function qe(de){var Be=de.prefixCls,Je=de.operationRef,Xe=de.generateConfig,pt=de.value,lt=de.defaultValue,mt=de.disabledTime,Ot=de.showTime,Gt=de.onSelect,Kt="".concat(Be,"-datetime-panel"),an=V.useState(null),Zt=Object(oe.a)(an,2),gt=Zt[0],Xt=Zt[1],Pt=V.useRef({}),tn=V.useRef({}),Vt=Object(b.a)(Ot)==="object"?Object(G.a)({},Ot):{};function xn(zn){var Xn=nt.indexOf(gt)+zn,ar=nt[Xn]||null;return ar}var Dn=function(Xn){tn.current.onBlur&&tn.current.onBlur(Xn),Xt(null)};Je.current={onKeyDown:function(Xn){if(Xn.which===p.a.TAB){var ar=xn(Xn.shiftKey?-1:1);return Xt(ar),ar&&Xn.preventDefault(),!0}if(gt){var ir=gt==="date"?Pt:tn;return ir.current&&ir.current.onKeyDown&&ir.current.onKeyDown(Xn),!0}return[p.a.LEFT,p.a.RIGHT,p.a.UP,p.a.DOWN].includes(Xn.which)?(Xt("date"),!0):!1},onBlur:Dn,onClose:Dn};var Jn=function(Xn,ar){var ir=Xn;ar==="date"&&!pt&&Vt.defaultValue?(ir=Xe.setHour(ir,Xe.getHour(Vt.defaultValue)),ir=Xe.setMinute(ir,Xe.getMinute(Vt.defaultValue)),ir=Xe.setSecond(ir,Xe.getSecond(Vt.defaultValue))):ar==="time"&&!pt&&lt&&(ir=Xe.setYear(ir,Xe.getYear(lt)),ir=Xe.setMonth(ir,Xe.getMonth(lt)),ir=Xe.setDate(ir,Xe.getDate(lt))),Gt&&Gt(ir,"mouse")},pr=mt?mt(pt||null):{};return V.createElement("div",{className:F()(Kt,Object(j.a)({},"".concat(Kt,"-active"),gt))},V.createElement(Re,Object.assign({},de,{operationRef:Pt,active:gt==="date",onSelect:function(Xn){Jn(Me(Xe,Xn,Ot&&Object(b.a)(Ot)==="object"?Ot.defaultValue:null),"date")}})),V.createElement(q,Object.assign({},de,{format:void 0},Vt,pr,{defaultValue:void 0,operationRef:tn,active:gt==="time",onSelect:function(Xn){Jn(Xn,"time")}})))}var xt=qe;function yn(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.value,lt="".concat(Be,"-cell"),mt=function(an){return V.createElement("td",{key:"week",className:F()(lt,"".concat(lt,"-week"))},Je.locale.getWeek(Xe.locale,an))},Ot="".concat(Be,"-week-panel-row"),Gt=function(an){return F()(Ot,Object(j.a)({},"".concat(Ot,"-selected"),Jt(Je,Xe.locale,pt,an)))};return V.createElement(Re,Object.assign({},de,{panelName:"week",prefixColumn:mt,rowClassName:Gt,keyboardConfig:{onLeftRight:null}}))}var Pn=yn;function An(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.viewDate,lt=de.onNextYear,mt=de.onPrevYear,Ot=de.onYearClick,Gt=V.useContext(x),Kt=Gt.hideHeader;if(Kt)return null;var an="".concat(Be,"-header");return V.createElement(c,Object.assign({},de,{prefixCls:an,onSuperPrev:mt,onSuperNext:lt}),V.createElement("button",{type:"button",onClick:Ot,className:"".concat(Be,"-year-btn")},Je.locale.format(Xe.locale,pt,Xe.yearFormat)))}var $t=An,ft=3,yt=4;function ut(de){var Be=de.prefixCls,Je=de.locale,Xe=de.value,pt=de.viewDate,lt=de.generateConfig,mt=de.monthCellRender,Ot=V.useContext(dn),Gt=Ot.rangedValue,Kt=Ot.hoverRangedValue,an="".concat(Be,"-cell"),Zt=Tn({cellPrefixCls:an,value:Xe,generateConfig:lt,rangedValue:Gt,hoverRangedValue:Kt,isSameCell:function(Vt,xn){return ze(lt,Vt,xn)},isInView:function(){return!0},offsetCell:function(Vt,xn){return lt.addMonth(Vt,xn)}}),gt=Je.shortMonths||(lt.locale.getShortMonths?lt.locale.getShortMonths(Je.locale):[]),Xt=lt.setMonth(pt,0),Pt=mt?function(tn){return mt(tn,Je)}:void 0;return V.createElement(Se,Object.assign({},de,{rowNum:yt,colNum:ft,baseDate:Xt,getCellNode:Pt,getCellText:function(Vt){return Je.monthFormat?lt.locale.format(Je.locale,Vt,Je.monthFormat):gt[lt.getMonth(Vt)]},getCellClassName:Zt,getCellDate:lt.addMonth,titleCell:function(Vt){return lt.locale.format(Je.locale,Vt,"YYYY-MM")}}))}var Ae=ut;function Ue(de){var Be=de.prefixCls,Je=de.operationRef,Xe=de.onViewDateChange,pt=de.generateConfig,lt=de.value,mt=de.viewDate,Ot=de.onPanelChange,Gt=de.onSelect,Kt="".concat(Be,"-month-panel");Je.current={onKeyDown:function(gt){return D(gt,{onLeftRight:function(Pt){Gt(pt.addMonth(lt||mt,Pt),"key")},onCtrlLeftRight:function(Pt){Gt(pt.addYear(lt||mt,Pt),"key")},onUpDown:function(Pt){Gt(pt.addMonth(lt||mt,Pt*ft),"key")},onEnter:function(){Ot("date",lt||mt)}})}};var an=function(gt){var Xt=pt.addYear(mt,gt);Xe(Xt),Ot(null,Xt)};return V.createElement("div",{className:Kt},V.createElement($t,Object.assign({},de,{prefixCls:Be,onPrevYear:function(){an(-1)},onNextYear:function(){an(1)},onYearClick:function(){Ot("year",mt)}})),V.createElement(Ae,Object.assign({},de,{prefixCls:Be,onSelect:function(gt){Gt(gt,"mouse"),Ot("date",gt)}})))}var vt=Ue;function ht(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.locale,pt=de.viewDate,lt=de.onNextYear,mt=de.onPrevYear,Ot=de.onYearClick,Gt=V.useContext(x),Kt=Gt.hideHeader;if(Kt)return null;var an="".concat(Be,"-header");return V.createElement(c,Object.assign({},de,{prefixCls:an,onSuperPrev:mt,onSuperNext:lt}),V.createElement("button",{type:"button",onClick:Ot,className:"".concat(Be,"-year-btn")},Je.locale.format(Xe.locale,pt,Xe.yearFormat)))}var Qt=ht,nn=4,Et=1;function Rt(de){var Be=de.prefixCls,Je=de.locale,Xe=de.value,pt=de.viewDate,lt=de.generateConfig,mt=V.useContext(dn),Ot=mt.rangedValue,Gt=mt.hoverRangedValue,Kt="".concat(Be,"-cell"),an=Tn({cellPrefixCls:Kt,value:Xe,generateConfig:lt,rangedValue:Ot,hoverRangedValue:Gt,isSameCell:function(Xt,Pt){return Fe(lt,Xt,Pt)},isInView:function(){return!0},offsetCell:function(Xt,Pt){return lt.addMonth(Xt,Pt*3)}}),Zt=lt.setDate(lt.setMonth(pt,0),1);return V.createElement(Se,Object.assign({},de,{rowNum:Et,colNum:nn,baseDate:Zt,getCellText:function(Xt){return lt.locale.format(Je.locale,Xt,Je.quarterFormat||"[Q]Q")},getCellClassName:an,getCellDate:function(Xt,Pt){return lt.addMonth(Xt,Pt*3)},titleCell:function(Xt){return lt.locale.format(Je.locale,Xt,"YYYY-[Q]Q")}}))}var Ct=Rt;function et(de){var Be=de.prefixCls,Je=de.operationRef,Xe=de.onViewDateChange,pt=de.generateConfig,lt=de.value,mt=de.viewDate,Ot=de.onPanelChange,Gt=de.onSelect,Kt="".concat(Be,"-quarter-panel");Je.current={onKeyDown:function(gt){return D(gt,{onLeftRight:function(Pt){Gt(pt.addMonth(lt||mt,Pt*3),"key")},onCtrlLeftRight:function(Pt){Gt(pt.addYear(lt||mt,Pt),"key")},onUpDown:function(Pt){Gt(pt.addYear(lt||mt,Pt),"key")}})}};var an=function(gt){var Xt=pt.addYear(mt,gt);Xe(Xt),Ot(null,Xt)};return V.createElement("div",{className:Kt},V.createElement(Qt,Object.assign({},de,{prefixCls:Be,onPrevYear:function(){an(-1)},onNextYear:function(){an(1)},onYearClick:function(){Ot("year",mt)}})),V.createElement(Ct,Object.assign({},de,{prefixCls:Be,onSelect:function(gt){Gt(gt,"mouse")}})))}var Ut=et;function en(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.viewDate,pt=de.onPrevDecade,lt=de.onNextDecade,mt=de.onDecadeClick,Ot=V.useContext(x),Gt=Ot.hideHeader;if(Gt)return null;var Kt="".concat(Be,"-header"),an=Je.getYear(Xe),Zt=Math.floor(an/gn)*gn,gt=Zt+gn-1;return V.createElement(c,Object.assign({},de,{prefixCls:Kt,onSuperPrev:pt,onSuperNext:lt}),V.createElement("button",{type:"button",onClick:mt,className:"".concat(Be,"-decade-btn")},Zt,"-",gt))}var ln=en,Gn=3,Mn=4;function hn(de){var Be=de.prefixCls,Je=de.value,Xe=de.viewDate,pt=de.locale,lt=de.generateConfig,mt=V.useContext(dn),Ot=mt.rangedValue,Gt=mt.hoverRangedValue,Kt="".concat(Be,"-cell"),an=lt.getYear(Xe),Zt=Math.floor(an/gn)*gn,gt=Zt+gn-1,Xt=lt.setYear(Xe,Zt-Math.ceil((Gn*Mn-gn)/2)),Pt=function(xn){var Dn=lt.getYear(xn);return Zt<=Dn&&Dn<=gt},tn=Tn({cellPrefixCls:Kt,value:Je,generateConfig:lt,rangedValue:Ot,hoverRangedValue:Gt,isSameCell:function(xn,Dn){return be(lt,xn,Dn)},isInView:Pt,offsetCell:function(xn,Dn){return lt.addYear(xn,Dn)}});return V.createElement(Se,Object.assign({},de,{rowNum:Mn,colNum:Gn,baseDate:Xt,getCellText:lt.getYear,getCellClassName:tn,getCellDate:lt.addYear,titleCell:function(xn){return lt.locale.format(pt.locale,xn,"YYYY")}}))}var On=hn,gn=10;function Wn(de){var Be=de.prefixCls,Je=de.operationRef,Xe=de.onViewDateChange,pt=de.generateConfig,lt=de.value,mt=de.viewDate,Ot=de.sourceMode,Gt=de.onSelect,Kt=de.onPanelChange,an="".concat(Be,"-year-panel");Je.current={onKeyDown:function(Xt){return D(Xt,{onLeftRight:function(tn){Gt(pt.addYear(lt||mt,tn),"key")},onCtrlLeftRight:function(tn){Gt(pt.addYear(lt||mt,tn*gn),"key")},onUpDown:function(tn){Gt(pt.addYear(lt||mt,tn*Gn),"key")},onEnter:function(){Kt(Ot==="date"?"date":"month",lt||mt)}})}};var Zt=function(Xt){var Pt=pt.addYear(mt,Xt*10);Xe(Pt),Kt(null,Pt)};return V.createElement("div",{className:an},V.createElement(ln,Object.assign({},de,{prefixCls:Be,onPrevDecade:function(){Zt(-1)},onNextDecade:function(){Zt(1)},onDecadeClick:function(){Kt("decade",mt)}})),V.createElement(On,Object.assign({},de,{prefixCls:Be,onSelect:function(Xt){Kt(Ot==="date"?"date":"month",Xt),Gt(Xt,"mouse")}})))}var jn=Wn;function rr(de){var Be=de.prefixCls,Je=de.generateConfig,Xe=de.viewDate,pt=de.onPrevDecades,lt=de.onNextDecades,mt=V.useContext(x),Ot=mt.hideHeader;if(Ot)return null;var Gt="".concat(Be,"-header"),Kt=Je.getYear(Xe),an=Math.floor(Kt/Mr)*Mr,Zt=an+Mr-1;return V.createElement(c,Object.assign({},de,{prefixCls:Gt,onSuperPrev:pt,onSuperNext:lt}),an,"-",Zt)}var ur=rr,Sr=3,ui=4;function Ci(de){var Be=Ir-1,Je=de.prefixCls,Xe=de.viewDate,pt=de.generateConfig,lt=de.disabledDate,mt="".concat(Je,"-cell"),Ot=pt.getYear(Xe),Gt=Math.floor(Ot/Ir)*Ir,Kt=Math.floor(Ot/Mr)*Mr,an=Kt+Mr-1,Zt=pt.setYear(Xe,Kt-Math.ceil((Sr*ui*Ir-Mr)/2)),gt=function(Pt){var tn,Vt=lt&&lt(Pt),xn=pt.getYear(Pt),Dn=xn+Be;return tn={},Object(j.a)(tn,"".concat(mt,"-disabled"),Vt),Object(j.a)(tn,"".concat(mt,"-in-view"),Kt<=xn&&Dn<=an),Object(j.a)(tn,"".concat(mt,"-selected"),xn===Gt),tn};return V.createElement(Se,Object.assign({},de,{rowNum:ui,colNum:Sr,baseDate:Zt,getCellText:function(Pt){var tn=pt.getYear(Pt);return"".concat(tn,"-").concat(tn+Be)},getCellClassName:gt,getCellDate:function(Pt,tn){return pt.addYear(Pt,tn*Ir)}}))}var _n=Ci,Ir=10,Mr=Ir*10;function Gi(de){var Be=de.prefixCls,Je=de.onViewDateChange,Xe=de.generateConfig,pt=de.viewDate,lt=de.operationRef,mt=de.onSelect,Ot=de.onPanelChange,Gt="".concat(Be,"-decade-panel");lt.current={onKeyDown:function(gt){return D(gt,{onLeftRight:function(Pt){mt(Xe.addYear(pt,Pt*Ir),"key")},onCtrlLeftRight:function(Pt){mt(Xe.addYear(pt,Pt*Mr),"key")},onUpDown:function(Pt){mt(Xe.addYear(pt,Pt*Ir*Sr),"key")},onEnter:function(){Ot("year",pt)}})}};var Kt=function(gt){var Xt=Xe.addYear(pt,gt*Mr);Je(Xt),Ot(null,Xt)},an=function(gt){mt(gt,"mouse"),Ot("year",gt)};return V.createElement("div",{className:Gt},V.createElement(ur,Object.assign({},de,{prefixCls:Be,onPrevDecades:function(){Kt(-1)},onNextDecades:function(){Kt(1)}})),V.createElement(_n,Object.assign({},de,{prefixCls:Be,onSelect:an})))}var ai=Gi;function qr(de,Be,Je){return Je?V.createElement("div",{className:"".concat(de,"-footer-extra")},Je(Be)):null}function Pi(de){var Be=de.prefixCls,Je=de.rangeList,Xe=Je===void 0?[]:Je,pt=de.components,lt=pt===void 0?{}:pt,mt=de.needConfirmButton,Ot=de.onNow,Gt=de.onOk,Kt=de.okDisabled,an=de.showNow,Zt=de.locale,gt,Xt;if(Xe.length){var Pt=lt.rangeItem||"span";gt=V.createElement(V.Fragment,null,Xe.map(function(Vt){var xn=Vt.label,Dn=Vt.onClick,Jn=Vt.onMouseEnter,pr=Vt.onMouseLeave;return V.createElement("li",{key:xn,className:"".concat(Be,"-preset")},V.createElement(Pt,{onClick:Dn,onMouseEnter:Jn,onMouseLeave:pr},xn))}))}if(mt){var tn=lt.button||"button";Ot&&!gt&&an!==!1&&(gt=V.createElement("li",{className:"".concat(Be,"-now")},V.createElement("a",{className:"".concat(Be,"-now-btn"),onClick:Ot},Zt.now))),Xt=mt&&V.createElement("li",{className:"".concat(Be,"-ok")},V.createElement(tn,{disabled:Kt,onClick:Gt},Zt.ok))}return!gt&&!Xt?null:V.createElement("ul",{className:"".concat(Be,"-ranges")},gt,Xt)}function Qi(de){var Be,Je=de.prefixCls,Xe=Je===void 0?"rc-picker":Je,pt=de.className,lt=de.style,mt=de.locale,Ot=de.generateConfig,Gt=de.value,Kt=de.defaultValue,an=de.pickerValue,Zt=de.defaultPickerValue,gt=de.disabledDate,Xt=de.mode,Pt=de.picker,tn=Pt===void 0?"date":Pt,Vt=de.tabIndex,xn=Vt===void 0?0:Vt,Dn=de.showNow,Jn=de.showTime,pr=de.showToday,zn=de.renderExtraFooter,Xn=de.hideHeader,ar=de.onSelect,ir=de.onChange,Zi=de.onPanelChange,Ai=de.onMouseDown,za=de.onPickerValueChange,ki=de.onOk,Sa=de.components,Mi=de.direction,as=de.hourStep,os=as===void 0?1:as,ss=de.minuteStep,yo=ss===void 0?1:ss,ls=de.secondStep,Ga=ls===void 0?1:ls,us=tn==="date"&&!!Jn||tn==="time",Bo=24%os===0,Fo=60%yo===0,Lr=60%Ga===0,Kr=V.useContext(x),vi=Kr.operationRef,Ka=Kr.panelRef,Pa=Kr.onSelect,$i=Kr.hideRanges,ro=Kr.defaultOpenValue,qi=V.useContext(dn),Va=qi.inRange,Fs=qi.panelPosition,So=qi.rangedValue,bo=qi.hoverRangedValue,yi=V.useRef({}),Co=V.useRef(!0),Yl=Object(C.a)(null,{value:Gt,defaultValue:Kt,postState:function(Bn){return!Bn&&ro&&tn==="time"?ro:Bn}}),da=Object(oe.a)(Yl,2),io=da[0],Xl=da[1],Ya=Object(C.a)(null,{value:an,defaultValue:Zt||io,postState:function(Bn){return Bn||Ot.getNow()}}),jo=Object(oe.a)(Ya,2),Ni=jo[0],ea=jo[1],Ca=function(Bn){ea(Bn),za&&za(Bn)},cs=function(Bn){var Pr=W[tn];return Pr?Pr(Bn):Bn},ta=Object(C.a)(function(){return tn==="time"?"time":cs("date")},{value:Xt}),Uo=Object(oe.a)(ta,2),na=Uo[0],cl=Uo[1];V.useEffect(function(){cl(tn)},[tn]);var Ao=V.useState(function(){return na}),or=Object(oe.a)(Ao,2),Au=or[0],Eo=or[1],Vr=function(Bn,Pr){var ao=cs(Bn||na);Eo(na),cl(ao),Zi&&(na!==ao||Bt(Ot,Ni,Ni))&&Zi(Pr,ao)},ha=function(Bn,Pr){var ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(na===tn||ao)&&(Xl(Bn),ar&&ar(Bn),Pa&&Pa(Bn,Pr),ir&&!Bt(Ot,Bn,io)&&ir(Bn))},ds=function(Bn){return yi.current&&yi.current.onKeyDown?([p.a.LEFT,p.a.RIGHT,p.a.UP,p.a.DOWN,p.a.PAGE_UP,p.a.PAGE_DOWN,p.a.ENTER].includes(Bn.which)&&Bn.preventDefault(),yi.current.onKeyDown(Bn)):(Object(O.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},bi=function(Bn){yi.current&&yi.current.onBlur&&yi.current.onBlur(Bn)};vi&&Fs!=="right"&&(vi.current={onKeyDown:ds,onClose:function(){yi.current&&yi.current.onClose&&yi.current.onClose()}}),V.useEffect(function(){Gt&&!Co.current&&ea(Gt)},[Gt]),V.useEffect(function(){Co.current=!1},[]);var fa,Xa=Object(G.a)(Object(G.a)({},de),{},{operationRef:yi,prefixCls:Xe,viewDate:Ni,value:io,onViewDateChange:Ca,sourceMode:Au,onPanelChange:Vr,disabledDate:na!=="decade"?gt:void 0});delete Xa.onChange,delete Xa.onSelect;switch(na){case"decade":fa=V.createElement(ai,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}));break;case"year":fa=V.createElement(jn,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}));break;case"month":fa=V.createElement(vt,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}));break;case"quarter":fa=V.createElement(Ut,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}));break;case"week":fa=V.createElement(Pn,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}));break;case"time":delete Xa.showTime,fa=V.createElement(q,Object.assign({},Xa,Object(b.a)(Jn)==="object"?Jn:null,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}));break;default:Jn?fa=V.createElement(xt,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}})):fa=V.createElement(Re,Object.assign({},Xa,{onSelect:function(Bn,Pr){Ca(Bn),ha(Bn,Pr)}}))}var dl,hl,hs=function(){var Bn=Ot.getNow(),Pr=$e(Ot.getHour(Bn),Ot.getMinute(Bn),Ot.getSecond(Bn),Bo?os:1,Fo?yo:1,Lr?Ga:1),ao=Ve(Ot,Bn,Pr[0],Pr[1],Pr[2]);ha(ao,"submit")};$i||(dl=qr(Xe,na,zn),hl=Pi({prefixCls:Xe,components:Sa,needConfirmButton:us,okDisabled:!io||gt&&gt(io),locale:mt,showNow:Dn,onNow:us&&hs,onOk:function(){io&&(ha(io,"submit",!0),ki&&ki(io))}}));var fl;if(pr&&na==="date"&&tn==="date"&&!Jn){var pl=Ot.getNow(),Bi="".concat(Xe,"-today-btn"),_o=gt&&gt(pl);fl=V.createElement("a",{className:F()(Bi,_o&&"".concat(Bi,"-disabled")),"aria-disabled":_o,onClick:function(){_o||ha(pl,"mouse",!0)}},mt.today)}return V.createElement(x.Provider,{value:Object(G.a)(Object(G.a)({},Kr),{},{hideHeader:"hideHeader"in de?Xn:Kr.hideHeader,hidePrevBtn:Va&&Fs==="right",hideNextBtn:Va&&Fs==="left"})},V.createElement("div",{tabIndex:xn,className:F()("".concat(Xe,"-panel"),pt,(Be={},Object(j.a)(Be,"".concat(Xe,"-panel-has-range"),So&&So[0]&&So[1]),Object(j.a)(Be,"".concat(Xe,"-panel-has-range-hover"),bo&&bo[0]&&bo[1]),Object(j.a)(Be,"".concat(Xe,"-panel-rtl"),Mi==="rtl"),Be)),style:lt,onKeyDown:ds,onBlur:bi,onMouseDown:Ai,ref:Ka},fa,dl||hl||fl?V.createElement("div",{className:"".concat(Xe,"-footer")},dl,hl,fl):null))}var rn=Qi,Cr=ie("uciX"),gr={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Jr(de){var Be,Je=de.prefixCls,Xe=de.popupElement,pt=de.popupStyle,lt=de.visible,mt=de.dropdownClassName,Ot=de.dropdownAlign,Gt=de.transitionName,Kt=de.getPopupContainer,an=de.children,Zt=de.range,gt=de.popupPlacement,Xt=de.direction,Pt="".concat(Je,"-dropdown"),tn=function(){return gt!==void 0?gt:Xt==="rtl"?"bottomRight":"bottomLeft"};return V.createElement(Cr.a,{showAction:[],hideAction:[],popupPlacement:tn(),builtinPlacements:gr,prefixCls:Pt,popupTransitionName:Gt,popup:Xe,popupAlign:Ot,popupVisible:lt,popupClassName:F()(mt,(Be={},Object(j.a)(Be,"".concat(Pt,"-range"),Zt),Object(j.a)(Be,"".concat(Pt,"-rtl"),Xt==="rtl"),Be)),popupStyle:pt,getPopupContainer:Kt},an)}var Ki=Jr;function Ar(de){var Be=de.open,Je=de.value,Xe=de.isClickOutside,pt=de.triggerOpen,lt=de.forwardKeyDown,mt=de.blurToCancel,Ot=de.onSubmit,Gt=de.onCancel,Kt=de.onFocus,an=de.onBlur,Zt=Object(V.useState)(!1),gt=Object(oe.a)(Zt,2),Xt=gt[0],Pt=gt[1],tn=Object(V.useState)(!1),Vt=Object(oe.a)(tn,2),xn=Vt[0],Dn=Vt[1],Jn=Object(V.useRef)(!1),pr=Object(V.useRef)(!1),zn={onMouseDown:function(){Pt(!0),pt(!0)},onKeyDown:function(ar){switch(ar.which){case p.a.ENTER:{Be?Ot()!==!1&&Pt(!0):pt(!0),ar.preventDefault();return}case p.a.TAB:{Xt&&Be&&!ar.shiftKey?(Pt(!1),ar.preventDefault()):!Xt&&Be&&(!lt(ar)&&ar.shiftKey&&(Pt(!0),ar.preventDefault()));return}case p.a.ESC:{Pt(!0),Gt();return}}!Be&&![p.a.SHIFT].includes(ar.which)?pt(!0):Xt||lt(ar)},onFocus:function(ar){Pt(!0),Dn(!0),Kt&&Kt(ar)},onBlur:function(ar){if(Jn.current||!Xe(document.activeElement)){Jn.current=!1;return}mt?setTimeout(function(){Xe(document.activeElement)&&Gt()},0):Be&&(pt(!1),pr.current&&Ot()),Dn(!1),an&&an(ar)}};return Object(V.useEffect)(function(){pr.current=!1},[Be]),Object(V.useEffect)(function(){pr.current=!0},[Je]),Object(V.useEffect)(function(){return w(function(Xn){var ar=Xn.target;Be&&(Xe(ar)?xn||pt(!1):(Jn.current=!0,requestAnimationFrame(function(){Jn.current=!1})))})}),[zn,{focused:xn,typing:Xt}]}function no(de){var Be=de.valueTexts,Je=de.onTextChange,Xe=V.useState(""),pt=Object(oe.a)(Xe,2),lt=pt[0],mt=pt[1],Ot=V.useRef([]);Ot.current=Be;function Gt(an){mt(an),Je(an)}function Kt(){mt(Ot.current[0])}return V.useEffect(function(){Be.every(function(an){return an!==lt})&&Kt()},[Be.join("||")]),[lt,Gt,Kt]}var ul=ie("Gytx"),rd=ie.n(ul);function id(de,Be){var Je=Be.formatList,Xe=Be.generateConfig,pt=Be.locale;return Object(A.a)(function(){if(!de)return[[""],""];for(var lt="",mt=[],Ot=0;Ot<Je.length;Ot+=1){var Gt=Je[Ot],Kt=Xe.locale.format(pt.locale,de,Gt);mt.push(Kt),Ot===0&&(lt=Kt)}return[mt,lt]},[de,Je],function(lt,mt){return lt[0]!==mt[0]||!rd()(lt[1],mt[1])})}function Wa(de,Be){var Je=Be.formatList,Xe=Be.generateConfig,pt=Be.locale,lt=Object(V.useState)(null),mt=Object(oe.a)(lt,2),Ot=mt[0],Gt=mt[1],Kt=Object(V.useRef)(null);function an(Vt){var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Kt.current),xn){Gt(Vt);return}Kt.current=requestAnimationFrame(function(){Gt(Vt)})}var Zt=id(Ot,{formatList:Je,generateConfig:Xe,locale:pt}),gt=Object(oe.a)(Zt,2),Xt=gt[1];function Pt(Vt){an(Vt)}function tn(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;an(null,Vt)}return Object(V.useEffect)(function(){tn(!0)},[de]),Object(V.useEffect)(function(){return function(){return cancelAnimationFrame(Kt.current)}},[]),[Xt,Pt,tn]}function Lh(de){var Be,Je=de.prefixCls,Xe=Je===void 0?"rc-picker":Je,pt=de.id,lt=de.tabIndex,mt=de.style,Ot=de.className,Gt=de.dropdownClassName,Kt=de.dropdownAlign,an=de.popupStyle,Zt=de.transitionName,gt=de.generateConfig,Xt=de.locale,Pt=de.inputReadOnly,tn=de.allowClear,Vt=de.autoFocus,xn=de.showTime,Dn=de.picker,Jn=Dn===void 0?"date":Dn,pr=de.format,zn=de.use12Hours,Xn=de.value,ar=de.defaultValue,ir=de.open,Zi=de.defaultOpen,Ai=de.defaultOpenValue,za=de.suffixIcon,ki=de.clearIcon,Sa=de.disabled,Mi=de.disabledDate,as=de.placeholder,os=de.getPopupContainer,ss=de.pickerRef,yo=de.panelRender,ls=de.onChange,Ga=de.onOpenChange,us=de.onFocus,Bo=de.onBlur,Fo=de.onMouseDown,Lr=de.onMouseUp,Kr=de.onMouseEnter,vi=de.onMouseLeave,Ka=de.onContextMenu,Pa=de.onClick,$i=de.direction,ro=de.autoComplete,qi=ro===void 0?"off":ro,Va=V.useRef(null),Fs=Jn==="date"&&!!xn||Jn==="time",So=Ce(E(pr,Jn,xn,zn)),bo=V.useRef(null),yi=V.useRef(null),Co=Object(C.a)(null,{value:Xn,defaultValue:ar}),Yl=Object(oe.a)(Co,2),da=Yl[0],io=Yl[1],Xl=V.useState(da),Ya=Object(oe.a)(Xl,2),jo=Ya[0],Ni=Ya[1],ea=V.useRef(null),Ca=Object(C.a)(!1,{value:ir,defaultValue:Zi,postState:function(Qn){return Sa?!1:Qn},onChange:function(Qn){Ga&&Ga(Qn),!Qn&&ea.current&&ea.current.onClose&&ea.current.onClose()}}),cs=Object(oe.a)(Ca,2),ta=cs[0],Uo=cs[1],na=id(jo,{formatList:So,generateConfig:gt,locale:Xt}),cl=Object(oe.a)(na,2),Ao=cl[0],or=cl[1],Au=no({valueTexts:Ao,onTextChange:function(Qn){var Us=gt.locale.parse(Xt.locale,Qn,So);Us&&(!Mi||!Mi(Us))&&Ni(Us)}}),Eo=Object(oe.a)(Au,3),Vr=Eo[0],ha=Eo[1],ds=Eo[2],bi=function(Qn){Ni(Qn),io(Qn),ls&&!Bt(gt,da,Qn)&&ls(Qn,Qn?gt.locale.format(Xt.locale,Qn,So[0]):"")},fa=function(Qn){if(Sa&&Qn)return;Uo(Qn)},Xa=function(Qn){return ta&&ea.current&&ea.current.onKeyDown?ea.current.onKeyDown(Qn):(Object(O.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},dl=function(){Lr&&Lr.apply(void 0,arguments),Va.current&&(Va.current.focus(),fa(!0))},hl=Ar({blurToCancel:Fs,open:ta,value:Vr,triggerOpen:fa,forwardKeyDown:Xa,isClickOutside:function(Qn){return!Y([bo.current,yi.current],Qn)},onSubmit:function(){return Mi&&Mi(jo)?!1:(bi(jo),fa(!1),ds(),!0)},onCancel:function(){fa(!1),Ni(da),ds()},onFocus:us,onBlur:Bo}),hs=Object(oe.a)(hl,2),fl=hs[0],pl=hs[1],Bi=pl.focused,_o=pl.typing;V.useEffect(function(){ta||(Ni(da),!Ao.length||Ao[0]===""?ha(""):or!==Vr&&ds())},[ta,Ao]),V.useEffect(function(){ta||ds()},[Jn]),V.useEffect(function(){Ni(da)},[da]),ss&&(ss.current={focus:function(){Va.current&&Va.current.focus()},blur:function(){Va.current&&Va.current.blur()}});var Ei=Object(G.a)(Object(G.a)({},de),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Bn=V.createElement(rn,Object.assign({},Ei,{generateConfig:gt,className:F()(Object(j.a)({},"".concat(Xe,"-panel-focused"),!_o)),value:jo,locale:Xt,tabIndex:-1,onChange:Ni,direction:$i}));yo&&(Bn=yo(Bn));var Pr=V.createElement("div",{className:"".concat(Xe,"-panel-container"),onMouseDown:function(Qn){Qn.preventDefault()}},Bn),ao;za&&(ao=V.createElement("span",{className:"".concat(Xe,"-suffix")},za));var Ou;tn&&da&&!Sa&&(Ou=V.createElement("span",{onMouseDown:function(Qn){Qn.preventDefault(),Qn.stopPropagation()},onMouseUp:function(Qn){Qn.preventDefault(),Qn.stopPropagation(),bi(null),fa(!1)},className:"".concat(Xe,"-clear")},ki||V.createElement("span",{className:"".concat(Xe,"-clear-btn")})));var fs=function(Qn,Us){(Us==="submit"||Us!=="key"&&!Fs)&&(bi(Qn),fa(!1))},Jl=$i==="rtl"?"bottomRight":"bottomLeft",Mh=Wa(Vr,{formatList:So,generateConfig:gt,locale:Xt}),js=Object(oe.a)(Mh,3),Zn=js[0],Fi=js[1],fi=js[2];return V.createElement(x.Provider,{value:{operationRef:ea,hideHeader:Jn==="time",panelRef:bo,onSelect:fs,open:ta,defaultOpenValue:Ai,onDateMouseEnter:Fi,onDateMouseLeave:fi}},V.createElement(Ki,{visible:ta,popupElement:Pr,popupStyle:an,prefixCls:Xe,dropdownClassName:Gt,dropdownAlign:Kt,getPopupContainer:os,transitionName:Zt,popupPlacement:Jl,direction:$i},V.createElement("div",{className:F()(Xe,Ot,(Be={},Object(j.a)(Be,"".concat(Xe,"-disabled"),Sa),Object(j.a)(Be,"".concat(Xe,"-focused"),Bi),Object(j.a)(Be,"".concat(Xe,"-rtl"),$i==="rtl"),Be)),style:mt,onMouseDown:Fo,onMouseUp:dl,onMouseEnter:Kr,onMouseLeave:vi,onContextMenu:Ka,onClick:Pa},V.createElement("div",{className:F()("".concat(Xe,"-input"),Object(j.a)({},"".concat(Xe,"-input-placeholder"),!!Zn)),ref:yi},V.createElement("input",Object.assign({id:pt,tabIndex:lt,disabled:Sa,readOnly:Pt||!_o,value:Zn||Vr,onChange:function(Qn){ha(Qn.target.value)},autoFocus:Vt,placeholder:as,ref:Va,title:Vr},fl,{size:v(Jn,So[0])},Ke(de),{autoComplete:qi})),ao,Ou))))}var ex=function(de){Object(X.a)(Je,de);var Be=Object(le.a)(Je);function Je(){var Xe;return Object(Te.a)(this,Je),Xe=Be.apply(this,arguments),Xe.pickerRef=V.createRef(),Xe.focus=function(){Xe.pickerRef.current&&Xe.pickerRef.current.focus()},Xe.blur=function(){Xe.pickerRef.current&&Xe.pickerRef.current.blur()},Xe}return Object(ae.a)(Je,[{key:"render",value:function(){return V.createElement(Lh,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Je}(V.Component),tx=ex;function zp(de,Be,Je){var Xe=de.picker,pt=de.locale,lt=de.selectedValue,mt=de.disabledDate,Ot=de.disabled,Gt=de.generateConfig,Kt=Ie(lt,0),an=Ie(lt,1);function Zt(Vt){var xn=Gt.getYear(Vt),Dn=Gt.locale.getWeek(pt.locale,Vt);return xn*100+Dn}function gt(Vt){var xn=Gt.getYear(Vt),Dn=Gt.getMonth(Vt);return xn*100+Dn}function Xt(Vt){var xn=Gt.getYear(Vt),Dn=Le(Gt,Vt);return xn*10+Dn}var Pt=V.useCallback(function(Vt){if(mt&&mt(Vt))return!0;if(Ot[1]&&an)return!dt(Gt,Vt,an)&&Gt.isAfter(Vt,an);if(Be&&an)switch(Xe){case"quarter":return Xt(Vt)>Xt(an);case"month":return gt(Vt)>gt(an);case"week":return Zt(Vt)>Zt(an);default:return!dt(Gt,Vt,an)&&Gt.isAfter(Vt,an)}return!1},[mt,Ot[1],an,Be]),tn=V.useCallback(function(Vt){if(mt&&mt(Vt))return!0;if(Ot[0]&&Kt)return!dt(Gt,Vt,an)&&Gt.isAfter(Kt,Vt);if(Je&&Kt)switch(Xe){case"quarter":return Xt(Vt)<Xt(Kt);case"month":return gt(Vt)<gt(Kt);case"week":return Zt(Vt)<Zt(Kt);default:return!dt(Gt,Vt,Kt)&&Gt.isAfter(Kt,Vt)}return!1},[mt,Ot[0],Kt,Je]);return[Pt,tn]}function nx(de,Be,Je,Xe){var pt=sn(de,Je,Xe,1);function lt(mt){return mt(de,Be)?"same":mt(pt,Be)?"closing":"far"}switch(Je){case"year":return lt(function(mt,Ot){return it(Xe,mt,Ot)});case"quarter":case"month":return lt(function(mt,Ot){return be(Xe,mt,Ot)});default:return lt(function(mt,Ot){return ze(Xe,mt,Ot)})}}function rx(de,Be,Je,Xe){var pt=Ie(de,0),lt=Ie(de,1);if(Be===0)return pt;if(pt&&lt){var mt=nx(pt,lt,Je,Xe);switch(mt){case"same":return pt;case"closing":return pt;default:return sn(lt,Je,Xe,-1)}}return pt}function F0(de){var Be=de.values,Je=de.picker,Xe=de.defaultDates,pt=de.generateConfig,lt=V.useState(function(){return[Ie(Xe,0),Ie(Xe,1)]}),mt=Object(oe.a)(lt,2),Ot=mt[0],Gt=mt[1],Kt=V.useState(null),an=Object(oe.a)(Kt,2),Zt=an[0],gt=an[1],Xt=Ie(Be,0),Pt=Ie(Be,1);function tn(xn){return Ot[xn]?Ot[xn]:Ie(Zt,xn)||rx(Be,xn,Je,pt)||Xt||Pt||pt.getNow()}function Vt(xn,Dn){if(xn){var Jn=je(Zt,xn,Dn);Gt(je(Ot,null,Dn)||[null,null]);var pr=(Dn+1)%2;Ie(Be,pr)||(Jn=je(Jn,xn,pr)),gt(Jn)}else(Xt||Pt)&&gt(null)}return[tn,Vt]}function Ph(de,Be){return de&&de[0]&&de[1]&&Be.isAfter(de[0],de[1])?[de[1],de[0]]:de}function Gp(de,Be,Je,Xe){return de||Xe&&Xe[Be]?!0:!!Je[(Be+1)%2]}function j0(de){var Be,Je,Xe,pt=de.prefixCls,lt=pt===void 0?"rc-picker":pt,mt=de.id,Ot=de.style,Gt=de.className,Kt=de.popupStyle,an=de.dropdownClassName,Zt=de.transitionName,gt=de.dropdownAlign,Xt=de.getPopupContainer,Pt=de.generateConfig,tn=de.locale,Vt=de.placeholder,xn=de.autoFocus,Dn=de.disabled,Jn=de.format,pr=de.picker,zn=pr===void 0?"date":pr,Xn=de.showTime,ar=de.use12Hours,ir=de.separator,Zi=ir===void 0?"~":ir,Ai=de.value,za=de.defaultValue,ki=de.defaultPickerValue,Sa=de.open,Mi=de.defaultOpen,as=de.disabledDate,os=de.disabledTime,ss=de.dateRender,yo=de.panelRender,ls=de.ranges,Ga=de.allowEmpty,us=de.allowClear,Bo=de.suffixIcon,Fo=de.clearIcon,Lr=de.pickerRef,Kr=de.inputReadOnly,vi=de.mode,Ka=de.renderExtraFooter,Pa=de.onChange,$i=de.onOpenChange,ro=de.onPanelChange,qi=de.onCalendarChange,Va=de.onFocus,Fs=de.onBlur,So=de.onOk,bo=de.components,yi=de.order,Co=de.direction,Yl=de.activePickerIndex,da=de.autoComplete,io=da===void 0?"off":da,Xl=zn==="date"&&!!Xn||zn==="time",Ya=Object(V.useRef)({}),jo=Object(V.useRef)(null),Ni=Object(V.useRef)(null),ea=Object(V.useRef)(null),Ca=Object(V.useRef)(null),cs=Object(V.useRef)(null),ta=Object(V.useRef)(null),Uo=Object(V.useRef)(null),na=Ce(E(Jn,zn,Xn,ar)),cl=Object(C.a)(0,{value:Yl}),Ao=Object(oe.a)(cl,2),or=Ao[0],Au=Ao[1],Eo=Object(V.useRef)(null),Vr=V.useMemo(function(){return Array.isArray(Dn)?Dn:[Dn||!1,Dn||!1]},[Dn]),ha=Object(C.a)(null,{value:Ai,defaultValue:za,postState:function(Sn){return zn==="time"&&!yi?Sn:Ph(Sn,Pt)}}),ds=Object(oe.a)(ha,2),bi=ds[0],fa=ds[1],Xa=F0({values:bi,picker:zn,defaultDates:ki,generateConfig:Pt}),dl=Object(oe.a)(Xa,2),hl=dl[0],hs=dl[1],fl=Object(C.a)(bi,{postState:function(Sn){var Yn=Sn;if(Vr[0]&&Vr[1])return Yn;for(var yr=0;yr<2;yr+=1)Vr[yr]&&!Ie(Yn,yr)&&!Ie(Ga,yr)&&(Yn=je(Yn,Pt.getNow(),yr));return Yn}}),pl=Object(oe.a)(fl,2),Bi=pl[0],_o=pl[1],Ei=Object(C.a)([zn,zn],{value:vi}),Bn=Object(oe.a)(Ei,2),Pr=Bn[0],ao=Bn[1];Object(V.useEffect)(function(){ao([zn,zn])},[zn]);var Ou=function(Sn,Yn){ao(Sn),ro&&ro(Yn,Sn)},fs=zp({picker:zn,selectedValue:Bi,locale:tn,disabled:Vr,disabledDate:as,generateConfig:Pt},Ya.current[1],Ya.current[0]),Jl=Object(oe.a)(fs,2),Mh=Jl[0],js=Jl[1],Zn=Object(C.a)(!1,{value:Sa,defaultValue:Mi,postState:function(Sn){return Vr[or]?!1:Sn},onChange:function(Sn){$i&&$i(Sn),!Sn&&Eo.current&&Eo.current.onClose&&Eo.current.onClose()}}),Fi=Object(oe.a)(Zn,2),fi=Fi[0],_i=Fi[1],Qn=fi&&or===0,Us=fi&&or===1,H0=Object(V.useState)(0),W0=Object(oe.a)(H0,2),ix=W0[0],ml=W0[1];Object(V.useEffect)(function(){!fi&&jo.current&&ml(jo.current.offsetWidth)},[fi]);var Kp=V.useRef();function gl(vr,Sn){if(vr)clearTimeout(Kp.current),Ya.current[Sn]=!0,Au(Sn),_i(vr),fi||hs(null,Sn);else if(or===Sn){_i(vr);var Yn=Ya.current;Kp.current=setTimeout(function(){Yn===Ya.current&&(Ya.current={})})}}function ad(vr){gl(!0,vr),setTimeout(function(){var Sn=[ta,Uo][vr];Sn.current&&Sn.current.focus()},0)}function od(vr,Sn){var Yn=vr,yr=Ie(Yn,0),xi=Ie(Yn,1);yr&&xi&&Pt.isAfter(yr,xi)&&(zn==="week"&&!Jt(Pt,tn.locale,yr,xi)||zn==="quarter"&&!Fe(Pt,yr,xi)||zn!=="week"&&zn!=="quarter"&&zn!=="time"&&!dt(Pt,yr,xi)?(Sn===0?(Yn=[yr,null],xi=null):(yr=null,Yn=[null,xi]),Ya.current=Object(j.a)({},Sn,!0)):(zn!=="time"||yi!==!1)&&(Yn=Ph(Yn,Pt))),_o(Yn);var ql=Yn&&Yn[0]?Pt.locale.format(tn.locale,Yn[0],na[0]):"",Qa=Yn&&Yn[1]?Pt.locale.format(tn.locale,Yn[1],na[0]):"";if(qi){var Wo={range:Sn===0?"start":"end"};qi(Yn,[ql,Qa],Wo)}var zo=Gp(yr,0,Vr,Ga),Ws=Gp(xi,1,Vr,Ga),ps=Yn===null||zo&&Ws;ps&&(fa(Yn),Pa&&(!Bt(Pt,Ie(bi,0),yr)||!Bt(Pt,Ie(bi,1),xi))&&Pa(Yn,[ql,Qa]));var ra=null;Sn===0&&!Vr[1]?ra=1:Sn===1&&!Vr[0]&&(ra=0),ra!==null&&ra!==or&&(!Ya.current[ra]||!Ie(Yn,ra))&&Ie(Yn,Sn)?ad(ra):gl(!1,Sn)}var Qr=function(Sn){return fi&&Eo.current&&Eo.current.onKeyDown?Eo.current.onKeyDown(Sn):(Object(O.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},z0={formatList:na,generateConfig:Pt,locale:tn},ax=id(Ie(Bi,0),z0),vl=Object(oe.a)(ax,2),Du=vl[0],ox=vl[1],G0=id(Ie(Bi,1),z0),K0=Object(oe.a)(G0,2),Ql=K0[0],Ru=K0[1],ji=function(Sn,Yn){var yr=Pt.locale.parse(tn.locale,Sn,na),xi=Yn===0?Mh:js;yr&&!xi(yr)&&(_o(je(Bi,yr,Yn)),hs(yr,Yn))},Ho=no({valueTexts:Du,onTextChange:function(Sn){return ji(Sn,0)}}),Vp=Object(oe.a)(Ho,3),yl=Vp[0],sd=Vp[1],Nh=Vp[2],V0=no({valueTexts:Ql,onTextChange:function(Sn){return ji(Sn,1)}}),Bh=Object(oe.a)(V0,3),ld=Bh[0],Yp=Bh[1],Xp=Bh[2],Jp=Object(V.useState)(null),Fh=Object(oe.a)(Jp,2),sx=Fh[0],jh=Fh[1],lx=Object(V.useState)(null),Uh=Object(oe.a)(lx,2),Iu=Uh[0],Hh=Uh[1],ud=Wa(yl,{formatList:na,generateConfig:Pt,locale:tn}),Qp=Object(oe.a)(ud,3),Y0=Qp[0],Zp=Qp[1],Hs=Qp[2],$p=Wa(ld,{formatList:na,generateConfig:Pt,locale:tn}),qp=Object(oe.a)($p,3),Wh=qp[0],ux=qp[1],Ja=qp[2],cx=function(Sn){Hh(je(Bi,Sn,or)),or===0?Zp(Sn):ux(Sn)},dx=function(){Hh(je(Bi,null,or)),or===0?Hs():Ja()},X0=function(Sn,Yn){return{blurToCancel:Xl,forwardKeyDown:Qr,onBlur:Fs,isClickOutside:function(xi){return!Y([Ni.current,ea.current,Ca.current],xi)},onFocus:function(xi){Au(Sn),Va&&Va(xi)},triggerOpen:function(xi){gl(xi,Sn)},onSubmit:function(){od(Bi,Sn),Yn()},onCancel:function(){gl(!1,Sn),_o(bi),Yn()}}},J0=Ar(Object(G.a)(Object(G.a)({},X0(0,Nh)),{},{open:Qn,value:yl})),Lu=Object(oe.a)(J0,2),Zl=Lu[0],em=Lu[1],Q0=em.focused,ka=em.typing,hx=Ar(Object(G.a)(Object(G.a)({},X0(1,Xp)),{},{open:Us,value:ld})),Z0=Object(oe.a)(hx,2),fx=Z0[0],zh=Z0[1],Gh=zh.focused,$0=zh.typing,tm=function(Sn){!fi&&!ta.current.contains(Sn.target)&&!Uo.current.contains(Sn.target)&&(Vr[0]?Vr[1]||ad(1):ad(0))},q0=function(Sn){fi&&(Q0||Gh)&&!ta.current.contains(Sn.target)&&!Uo.current.contains(Sn.target)&&Sn.preventDefault()},ey=bi&&bi[0]?Pt.locale.format(tn.locale,bi[0],"YYYYMMDDHHmmss"):"",px=bi&&bi[1]?Pt.locale.format(tn.locale,bi[1],"YYYYMMDDHHmmss"):"";Object(V.useEffect)(function(){fi||(_o(bi),!Du.length||Du[0]===""?sd(""):ox!==yl&&Nh(),!Ql.length||Ql[0]===""?Yp(""):Ru!==ld&&Xp())},[fi,Du,Ql]),Object(V.useEffect)(function(){_o(bi)},[ey,px]),Lr&&(Lr.current={focus:function(){ta.current&&ta.current.focus()},blur:function(){ta.current&&ta.current.blur(),Uo.current&&Uo.current.blur()}});var nm=Object.keys(ls||{}),mx=nm.map(function(vr){var Sn=ls[vr],Yn=typeof Sn=="function"?Sn():Sn;return{label:vr,onClick:function(){od(Yn,null),gl(!1,or)},onMouseEnter:function(){jh(Yn)},onMouseLeave:function(){jh(null)}}});function rm(){var vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yn=null;fi&&Iu&&Iu[0]&&Iu[1]&&Pt.isAfter(Iu[1],Iu[0])&&(Yn=Iu);var yr=Xn;if(Xn&&Object(b.a)(Xn)==="object"&&Xn.defaultValue){var xi=Xn.defaultValue;yr=Object(G.a)(Object(G.a)({},Xn),{},{defaultValue:Ie(xi,or)||void 0})}var ql=null;return ss&&(ql=function(Wo,zo){return ss(Wo,zo,{range:or?"end":"start"})}),V.createElement(dn.Provider,{value:{inRange:!0,panelPosition:vr,rangedValue:sx||Bi,hoverRangedValue:Yn}},V.createElement(rn,Object.assign({},de,Sn,{dateRender:ql,showTime:yr,mode:Pr[or],generateConfig:Pt,style:void 0,direction:Co,disabledDate:or===0?Mh:js,disabledTime:function(Wo){return os?os(Wo,or===0?"start":"end"):!1},className:F()(Object(j.a)({},"".concat(lt,"-panel-focused"),or===0?!ka:!$0)),value:Ie(Bi,or),locale:tn,tabIndex:-1,onPanelChange:function(Wo,zo){Ou(je(Pr,zo,or),je(Bi,Wo,or));var Ws=Wo;vr==="right"&&Pr[or]===zo&&(Ws=sn(Ws,zo,Pt,-1)),hs(Ws,or)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var pa=0,ty=0;or&&ea.current&&cs.current&&Ni.current&&(pa=ea.current.offsetWidth+cs.current.offsetWidth,Ni.current.offsetWidth&&pa>Ni.current.offsetWidth&&(ty=pa));var ny=Co==="rtl"?{right:pa}:{left:pa};function gx(){var vr,Sn=qr(lt,Pr[or],Ka),Yn=Pi({prefixCls:lt,components:bo,needConfirmButton:Xl,okDisabled:!Ie(Bi,or)||as&&as(Bi[or]),locale:tn,rangeList:mx,onOk:function(){Ie(Bi,or)&&(od(Bi,or),So&&So(Bi))}});if(zn!=="time"&&!Xn){var yr=hl(or),xi=sn(yr,zn,Pt),ql=Pr[or],Qa=ql===zn,Wo=rm(Qa?"left":!1,{pickerValue:yr,onPickerValueChange:function(ra){hs(ra,or)}}),zo=rm("right",{pickerValue:xi,onPickerValueChange:function(ra){hs(sn(ra,zn,Pt,-1),or)}});Co==="rtl"?vr=V.createElement(V.Fragment,null,zo,Qa&&Wo):vr=V.createElement(V.Fragment,null,Wo,Qa&&zo)}else vr=rm();var Ws=V.createElement(V.Fragment,null,V.createElement("div",{className:"".concat(lt,"-panels")},vr),(Sn||Yn)&&V.createElement("div",{className:"".concat(lt,"-footer")},Sn,Yn));return yo&&(Ws=yo(Ws)),V.createElement("div",{className:"".concat(lt,"-panel-container"),style:{marginLeft:ty},ref:Ni,onMouseDown:function(ra){ra.preventDefault()}},Ws)}var Pu=V.createElement("div",{className:F()("".concat(lt,"-range-wrapper"),"".concat(lt,"-").concat(zn,"-range-wrapper")),style:{minWidth:ix}},V.createElement("div",{className:"".concat(lt,"-range-arrow"),style:ny}),gx()),Ma;Bo&&(Ma=V.createElement("span",{className:"".concat(lt,"-suffix")},Bo));var ry;us&&(Ie(bi,0)&&!Vr[0]||Ie(bi,1)&&!Vr[1])&&(ry=V.createElement("span",{onMouseDown:function(Sn){Sn.preventDefault(),Sn.stopPropagation()},onMouseUp:function(Sn){Sn.preventDefault(),Sn.stopPropagation();var Yn=bi;Vr[0]||(Yn=je(Yn,null,0)),Vr[1]||(Yn=je(Yn,null,1)),od(Yn,null),gl(!1,or)},className:"".concat(lt,"-clear")},Fo||V.createElement("span",{className:"".concat(lt,"-clear-btn")})));var cd={size:v(zn,na[0])},$l=0,ku=0;ea.current&&Ca.current&&cs.current&&(or===0?ku=ea.current.offsetWidth:($l=pa,ku=Ca.current.offsetWidth));var im=Co==="rtl"?{right:$l}:{left:$l},iy=function(Sn,Yn){var yr=je(Bi,Sn,or);Yn==="submit"||Yn!=="key"&&!Xl?(od(yr,or),or===0?Hs():Ja()):_o(yr)};return V.createElement(x.Provider,{value:{operationRef:Eo,hideHeader:zn==="time",onDateMouseEnter:cx,onDateMouseLeave:dx,hideRanges:!0,onSelect:iy,open:fi}},V.createElement(Ki,{visible:fi,popupElement:Pu,popupStyle:Kt,prefixCls:lt,dropdownClassName:an,dropdownAlign:gt,getPopupContainer:Xt,transitionName:Zt,range:!0,direction:Co},V.createElement("div",Object.assign({ref:jo,className:F()(lt,"".concat(lt,"-range"),Gt,(Be={},Object(j.a)(Be,"".concat(lt,"-disabled"),Vr[0]&&Vr[1]),Object(j.a)(Be,"".concat(lt,"-focused"),or===0?Q0:Gh),Object(j.a)(Be,"".concat(lt,"-rtl"),Co==="rtl"),Be)),style:Ot,onClick:tm,onMouseDown:q0},Ke(de)),V.createElement("div",{className:F()("".concat(lt,"-input"),(Je={},Object(j.a)(Je,"".concat(lt,"-input-active"),or===0),Object(j.a)(Je,"".concat(lt,"-input-placeholder"),!!Y0),Je)),ref:ea},V.createElement("input",Object.assign({id:mt,disabled:Vr[0],readOnly:Kr||!ka,value:Y0||yl,onChange:function(Sn){sd(Sn.target.value)},autoFocus:xn,placeholder:Ie(Vt,0)||"",ref:ta},Zl,cd,{autoComplete:io}))),V.createElement("div",{className:"".concat(lt,"-range-separator"),ref:cs},Zi),V.createElement("div",{className:F()("".concat(lt,"-input"),(Xe={},Object(j.a)(Xe,"".concat(lt,"-input-active"),or===1),Object(j.a)(Xe,"".concat(lt,"-input-placeholder"),!!Wh),Xe)),ref:Ca},V.createElement("input",Object.assign({disabled:Vr[1],readOnly:Kr||!$0,value:Wh||ld,onChange:function(Sn){Yp(Sn.target.value)},placeholder:Ie(Vt,1)||"",ref:Uo},fx,cd,{autoComplete:io}))),V.createElement("div",{className:"".concat(lt,"-active-bar"),style:Object(G.a)(Object(G.a)({},im),{},{width:ku,position:"absolute"})}),Ma,ry)))}var kh=function(de){Object(X.a)(Je,de);var Be=Object(le.a)(Je);function Je(){var Xe;return Object(Te.a)(this,Je),Xe=Be.apply(this,arguments),Xe.pickerRef=V.createRef(),Xe.focus=function(){Xe.pickerRef.current&&Xe.pickerRef.current.focus()},Xe.blur=function(){Xe.pickerRef.current&&Xe.pickerRef.current.blur()},Xe}return Object(ae.a)(Je,[{key:"render",value:function(){return V.createElement(j0,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Je}(V.Component),Bs=kh,U0=Ne.b=tx},p5ED:function(Dt,Ne,ie){"use strict";var Te=ie("+L6B"),ae=ie("2/Rp"),X=ie("5Dmo"),le=ie("3S7+"),j=ie("k1fw"),G=ie("9og8"),oe=ie("tJVT"),V=ie("WmNS"),l=ie.n(V),F=ie("q1tI"),O=ie.n(F),C=ie("vHTk"),b=ie.n(C),p=ie("yEEn"),y=ie("ZW9T"),x=ie("1vsH"),g=ie("V0Rq"),h=ie("m3rI");Ne.a=function(c){var d,I,A,R,N,P,D,E=c.editOffice,v=E===void 0?"view":E,_=c.data,T=c.theme,w=c.type,M=c.filename,Z=c.monacoEditor,z=c.className,L=c.style,W=c.close,Y=c.onClose,H=c.hasMask,ne=c.disabledDownload,ce=Object(F.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),we=Object(oe.a)(ce,2),Ce=we[0],Ke=we[1],Ie=Object(F.useState)(""),je=Object(oe.a)(Ie,2),Ve=je[0],$e=je[1],Pe=Object(F.useState)(),se=Object(oe.a)(Pe,2),S=se[0],B=se[1],J=window.ENV==="build"?"/react/build":"",ue=h.a.PROXY_SERVER||location.origin,q,xe=1024*1024,We=10*xe,it=Object(F.useRef)();(d=_)!==null&&d!==void 0&&d.startsWith("/api")&&w!=="txt"&&(_=(h.a.API_SERVER||location.origin)+_),w==="office"&&(q=Object(x.T)(_).filesize,q>We&&(w="other")),M&&Z&&(Z.filename=M),Object(F.useEffect)(function(){var ze,dt,It=(ze=document.cookie)===null||ze===void 0||((dt=ze.replace(/\s/g,""))===null||dt===void 0)?void 0:dt.split(";");It==null||It.map(function(Jt){var Bt=Jt.split("=");Bt[0]==="_educoder_session"&&$e(Bt[1])})},[]),Object(F.useEffect)(function(){w==="office"&&be()},[w,_]);var be=function(){var ze=Object(G.a)(l.a.mark(function dt(){var It,Jt,Bt;return l.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return console.log("data:",_),It=_,_.startsWith("http")||(It=location.origin+It),Jt=new URL(It).pathname.split("/").pop(),cn.next=6,Object(g.V)({attachment_id:Jt});case 6:Bt=cn.sent,B(Bt);case 8:case"end":return cn.stop()}},dt)}));return function(){return ze.apply(this,arguments)}}(),Le=function(){if(_.startsWith("http")||_.startsWith("blob:")){Fe();return}Object(x.z)(M||"educoder",_,M)},Fe=function(){Object(x.x)(M||"educoder",decodeURIComponent(_))};return O.a.createElement("div",{style:Object(j.a)({},L||{}),className:"".concat(H&&b.a.bgBlack," ").concat(w?b.a.wrp:"hide")},W&&O.a.createElement("div",{className:b.a.close,ref:it},!ne&&O.a.createElement(le.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return it.current}},O.a.createElement("span",{onClick:Fe},O.a.createElement("i",{className:"icon-quxiaozhiding"}))),O.a.createElement(le.a,{title:"\u5173\u95ED",getPopupContainer:function(){return it.current}},O.a.createElement("span",{className:"",onClick:Y},O.a.createElement("i",{className:"icon-guanbi1"})))),O.a.createElement("div",{className:"".concat(b.a[z]," ").concat(z," ").concat(b.a.monaco," ").concat(w==="txt"?"show":"hide")},w==="txt"&&O.a.createElement(y.b,Z)),w==="audio"&&O.a.createElement("audio",{src:"".concat(((I=_)===null||I===void 0?void 0:I.indexOf("http://"))>-1||((A=_)===null||A===void 0?void 0:A.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(_),autoPlay:!0}),w==="video"&&O.a.createElement(O.a.Fragment,null,((R=_)===null||R===void 0?void 0:R.indexOf("http"))>-1?O.a.createElement("video",{controls:!0,src:"".concat(_),autoPlay:!0}):O.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(_),autoPlay:!0})),w==="office"&&S&&O.a.createElement("iframe",{src:"".concat(J,"/office.html?key=").concat(S.key,"&url=").concat(ue+S.url,"&callbackUrl=").concat(ue+S.callbackUrl,"&fileType=").concat(S.fileType,"&title=").concat(S.title,"&model=").concat(v,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!ne)}),w==="html"&&O.a.createElement("iframe",{src:_+"&disposition=inline"}),w==="pdf"&&O.a.createElement("iframe",{src:"".concat(J,"/js/pdfview/index.html?url=").concat(_,"&disabledDownload=").concat(!!ne)}),w==="image"&&O.a.createElement("img",{src:"".concat(((N=_)===null||N===void 0?void 0:N.indexOf("http://"))>-1||((P=_)===null||P===void 0?void 0:P.indexOf("https://"))>-1||(D=_)!==null&&D!==void 0&&D.startsWith("/api")?"":"data:image/png;base64,").concat(_)}),w==="other"&&O.a.createElement("div",null,O.a.createElement(ae.a,{type:"primary",size:"large",onClick:Le},O.a.createElement(p.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),w==="download"&&O.a.createElement(ae.a,{type:"primary",size:"large",onClick:Le},O.a.createElement(p.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},phzI:function(Dt,Ne,ie){"use strict";var Te=ie("k1fw"),ae=ie("9og8"),X=ie("tJVT"),le=ie("WmNS"),j=ie.n(le),G=ie("q1tI"),oe=ie.n(G),V=ie("yyNy");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var l=function(){return l=Object.assign||function(h){for(var c,d=1,I=arguments.length;d<I;d++)for(var A in c=arguments[d])Object.prototype.hasOwnProperty.call(c,A)&&(h[A]=c[A]);return h},l.apply(this,arguments)};function F(h,c){var d=typeof Symbol=="function"&&h[Symbol.iterator];if(!d)return h;var I,A,R=d.call(h),N=[];try{for(;(c===void 0||c-- >0)&&!(I=R.next()).done;)N.push(I.value)}catch(P){A={error:P}}finally{try{I&&!I.done&&(d=R.return)&&d.call(R)}finally{if(A)throw A.error}}return N}function O(h){var c=h.defaultContent,d=c===void 0?[]:c,I=h.onCreated,A=h.defaultHtml,R=A===void 0?"":A,N=h.value,P=N===void 0?"":N,D=h.onChange,E=h.defaultConfig,v=E===void 0?{}:E,_=h.mode,T=_===void 0?"default":_,w=h.style,M=w===void 0?{}:w,Z=h.className,z=Object(G.useRef)(null),L=F(Object(G.useState)(null),2),W=L[0],Y=L[1],H=F(Object(G.useState)(""),2),ne=H[0],ce=H[1],we=function(Ie){I&&I(Ie);var je=v.onCreated;je&&je(Ie)},Ce=function(Ie){ce(Ie.getHtml()),D&&D(Ie);var je=v.onChange;je&&je(Ie)},Ke=function(Ie){var je=v.onDestroyed;Y(null),je&&je(Ie)};return Object(G.useEffect)(function(){if(W!=null&&P!==ne)try{W.setHtml(P)}catch(Ie){console.error(Ie)}},[P]),Object(G.useEffect)(function(){var Ie;if(z.current!=null&&W==null&&!((Ie=z.current)===null||Ie===void 0?void 0:Ie.getAttribute("data-w-e-textarea"))){var je=Object(V.a)({selector:z.current,config:l(l({},v),{onCreated:we,onChange:Ce,onDestroyed:Ke}),content:d,html:R||P,mode:T});Y(je)}},[W]),oe.a.createElement("div",{style:M,ref:z,className:Z})}function C(h){var c=h.editor,d=h.defaultConfig,I=d===void 0?{}:d,A=h.mode,R=A===void 0?"default":A,N=h.style,P=N===void 0?{}:N,D=h.className,E=Object(G.useRef)(null);return Object(G.useEffect)(function(){E.current!=null&&c!=null&&V.b({editor:c,selector:E.current,config:I,mode:R})},[c]),oe.a.createElement("div",{style:P,ref:E,className:D})}var b=ie("ErOA"),p=ie("9kvl"),y=ie("Vg4E"),x=function(c){var d=c.defaultvalue,I=c.onChange,A=c.style,R=c.user,N=c.placeholder,P=1024*1024*2,D=Object(G.useRef)(null),E=4,v=Object(G.useState)(null),_=Object(X.a)(v,2),T=_[0],w=_[1],M=Object(G.useState)(""),Z=Object(X.a)(M,2),z=Z[0],L=Z[1];Object(G.useEffect)(function(){L(d)},[d]),Object(G.useEffect)(function(){I(z)},[z]);var W={},Y={placeholder:N||"\u8BF7\u8F93\u5165\u5185\u5BB9...",MENU_CONF:{}};return Y.MENU_CONF.uploadImage={customUpload:function(ne,ce){return Object(ae.a)(j.a.mark(function we(){var Ce,Ke;return j.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ce=new FormData,Ce.append("file",ne),je.next=4,Object(b.a)("/api/attachments.json",{method:"post",body:Ce},!0);case 4:Ke=je.sent,ce(Ke==null?void 0:Ke.url,"","");case 6:case"end":return je.stop()}},we)}))()}},Y.MENU_CONF.uploadVideo={customUpload:function(ne,ce){return Object(ae.a)(j.a.mark(function we(){var Ce,Ke,Ie,je,Ve,$e,Pe,se,S,B,J,ue,q,xe,We,it;return j.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ce=ne.size,Ke=Math.ceil(Ce/P),Le.prev=2,Le.next=5,Object(b.a)("/api/attachments/multipart_upload_start",{method:"POST",body:{fileName:ne.name,chunkCount:Ke,user_id:R==null||((Ie=R.userInfo)===null||Ie===void 0)?void 0:Ie.user_id}});case 5:if(Ve=Le.sent,!((Ve==null?void 0:Ve.status)!==0)){Le.next=8;break}throw new Error;case 8:for($e=Ve.upload_id,D.current=new AbortController,Pe=[],se=0,S=function(ze){var dt=ze*P,It=Math.min(dt+P,Ce),Jt=ne.slice(dt,It),Bt=new FormData;Bt.append("chunk",Jt),Bt.append("fileName",ne.name),Bt.append("chunkIndex",(ze+1).toString()),Bt.append("uploadId",$e),Pe.push(function(){return Object(b.a)("/api/attachments/multipart_upload",{method:"POST",body:Bt,signal:D.current.signal},!0).then(function(Nt){})})},B=0;B<Ke;B++)S(B);J=0,ue=E,console.log(Pe,"promises");case 17:if(!(J<Pe.length)){Le.next=26;break}if(xe=(q=Pe.slice(J,J+ue))===null||q===void 0?void 0:q.map(function(Fe){return Fe()}),!(xe.length>0)){Le.next=24;break}return Le.next=22,Promise.all(xe);case 22:We=Le.sent,J+=ue;case 24:Le.next=17;break;case 26:return Le.next=28,Object(b.a)("/api/attachments/multipart_upload_end",{method:"POST",body:{fileName:ne.name,chunkCount:Ke,uploadId:$e,user_id:R==null||((je=R.userInfo)===null||je===void 0)?void 0:je.user_id}});case 28:it=Le.sent,ce(it==null?void 0:it.object,""),Le.next=34;break;case 32:Le.prev=32,Le.t0=Le.catch(2);case 34:case"end":return Le.stop()}},we,null,[[2,32]])}))()}},Object(G.useEffect)(function(){return function(){if(T==null)return;T.destroy(),w(null),I(null)}},[T]),oe.a.createElement(oe.a.Fragment,null,oe.a.createElement("div",{style:{border:"1px solid #ccc",zIndex:100}},oe.a.createElement(C,{editor:T,defaultConfig:W,mode:"default",style:{borderBottom:"1px solid #ccc"}}),oe.a.createElement(O,{defaultConfig:Y,value:z,onCreated:w,onChange:function(ne){return L(ne.getHtml())},mode:"default",style:Object(Te.a)({height:"500px",overflowY:"hidden"},A)})))},g=Ne.a=Object(p.a)(function(h){var c=h.user;return{user:c}})(x)},pmY6:function(Dt,Ne,ie){"use strict";ie.d(Ne,"h",function(){return F}),ie.d(Ne,"g",function(){return C}),ie.d(Ne,"f",function(){return b}),ie.d(Ne,"e",function(){return p}),ie.d(Ne,"i",function(){return y}),ie.d(Ne,"b",function(){return x}),ie.d(Ne,"a",function(){return g}),ie.d(Ne,"d",function(){return h}),ie.d(Ne,"c",function(){return c});var Te=ie("C/vA"),ae=ie("JYp7");const X=!1;let le=null;function j(d){le=d}if(X){const d="__is_disposable_tracked__";j(new class{trackDisposable(I){const A=new Error("Potentially leaked disposable").stack;setTimeout(()=>{I[d]||console.log(A)},3e3)}setParent(I,A){if(I&&I!==g.None)try{I[d]=!0}catch(R){}}markAsDisposed(I){if(I&&I!==g.None)try{I[d]=!0}catch(A){}}markAsSingleton(I){}})}function G(d){return le==null||le.trackDisposable(d),d}function oe(d){le==null||le.markAsDisposed(d)}function V(d,I){le==null||le.setParent(d,I)}function l(d,I){if(!le)return;for(const A of d)le.setParent(A,I)}function F(d){return le==null||le.markAsSingleton(d),d}class O extends Error{constructor(d){super(`Encountered errors while disposing of store. Errors: [${d.join(", ")}]`);this.errors=d}}function C(d){return typeof d.dispose=="function"&&d.dispose.length===0}function b(d){if(ae.a.is(d)){let I=[];for(const A of d)if(A)try{A.dispose()}catch(R){I.push(R)}if(I.length===1)throw I[0];if(I.length>1)throw new O(I);return Array.isArray(d)?[]:d}else if(d)return d.dispose(),d}function p(...d){const I=y(()=>b(d));return l(d,I),I}function y(d){const I=G({dispose:Object(Te.a)(()=>{oe(I),d()})});return I}class x{constructor(){this._toDispose=new Set,this._isDisposed=!1,G(this)}dispose(){if(this._isDisposed)return;oe(this),this._isDisposed=!0,this.clear()}clear(){try{b(this._toDispose.values())}finally{this._toDispose.clear()}}add(d){if(!d)return d;if(d===this)throw new Error("Cannot register a disposable on itself!");return V(d,this),this._isDisposed?x.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(d),d}}x.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new x,G(this),V(this._store,this)}dispose(){oe(this),this._store.dispose()}_register(d){if(d===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(d)}}g.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,G(this)}get value(){return this._isDisposed?void 0:this._value}set value(d){var I;if(this._isDisposed||d===this._value)return;(I=this._value)===null||I===void 0||I.dispose(),d&&V(d,this),this._value=d}clear(){this.value=void 0}dispose(){var d;this._isDisposed=!0,oe(this),(d=this._value)===null||d===void 0||d.dispose(),this._value=void 0}clearAndLeak(){const d=this._value;return this._value=void 0,d&&V(d,null),d}}class c{constructor(d){this.object=d}dispose(){}}},psGv:function(Dt,Ne,ie){var Te,ae;(function(){var X;(function(){"use strict";var oe=[,,function(O){function C(y){this.__parent=y,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}C.prototype.clone_empty=function(){var y=new C(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},C.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},C.prototype.has_match=function(y){for(var x=this.__items.length-1;x>=0;x--)if(this.__items[x].match(y))return!0;return!1},C.prototype.set_indent=function(y,x){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=x||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},C.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},C.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},C.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var y=this.__parent.current_line;return y.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),y.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),y.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,y.__items[0]===" "&&(y.__items.splice(0,1),y.__character_count-=1),!0}return!1},C.prototype.is_empty=function(){return this.__items.length===0},C.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},C.prototype.push=function(y){this.__items.push(y);var x=y.lastIndexOf(`
`);x!==-1?this.__character_count=y.length-x:this.__character_count+=y.length},C.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},C.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},C.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},C.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},C.prototype.toString=function(){var y="";return this.is_empty()?this.__parent.indent_empty_lines&&(y=this.__parent.get_indent_string(this.__indent_count)):(y=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),y+=this.__items.join("")),y};function b(y,x){this.__cache=[""],this.__indent_size=y.indent_size,this.__indent_string=y.indent_char,y.indent_with_tabs||(this.__indent_string=new Array(y.indent_size+1).join(y.indent_char)),x=x||"",y.indent_level>0&&(x=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=x,this.__base_string_length=x.length}b.prototype.get_indent_size=function(y,x){var g=this.__base_string_length;return x=x||0,y<0&&(g=0),g+=y*this.__indent_size,g+=x,g},b.prototype.get_indent_string=function(y,x){var g=this.__base_string;return x=x||0,y<0&&(y=0,g=""),x+=y*this.__indent_size,this.__ensure_cache(x),g+=this.__cache[x],g},b.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},b.prototype.__add_column=function(){var y=this.__cache.length,x=0,g="";this.__indent_size&&y>=this.__indent_size&&(x=Math.floor(y/this.__indent_size),y-=x*this.__indent_size,g=new Array(x+1).join(this.__indent_string)),y&&(g+=new Array(y+1).join(" ")),this.__cache.push(g)};function p(y,x){this.__indent_cache=new b(y,x),this.raw=!1,this._end_with_newline=y.end_with_newline,this.indent_size=y.indent_size,this.wrap_line_length=y.wrap_line_length,this.indent_empty_lines=y.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new C(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(y,x){return this.__indent_cache.get_indent_string(y,x)},p.prototype.get_indent_size=function(y,x){return this.__indent_cache.get_indent_size(y,x)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(y){this.trim(!0);var x=this.current_line.pop();x&&(x[x.length-1]===`
`&&(x=x.replace(/\n+$/g,"")),this.current_line.push(x)),this._end_with_newline&&this.__add_outputline();var g=this.__lines.join(`
`);return y!==`
`&&(g=g.replace(/[\n]/g,y)),g},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(y,x){return y=y||0,x=x||0,this.next_line.set_indent(y,x),this.__lines.length>1?(this.current_line.set_indent(y,x),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(y){for(var x=0;x<y.newlines;x++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(y.whitespace_before),this.current_line.push(y.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},p.prototype.add_token=function(y){this.__add_space_before_token(),this.current_line.push(y),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},p.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},p.prototype.remove_indent=function(y){for(var x=this.__lines.length;y<x;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},p.prototype.trim=function(y){for(y=y===void 0?!1:y,this.current_line.trim();y&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(y,x){for(var g=this.__lines.length-2;g>=0;){var h=this.__lines[g];if(h.is_empty())break;if(h.item(0).indexOf(y)!==0&&h.item(-1)!==x){this.__lines.splice(g+1,0,new C(this)),this.previous_line=this.__lines[this.__lines.length-2];break}g--}},O.exports.Output=p},function(O){function C(b,p,y,x){this.type=b,this.text=p,this.comments_before=null,this.newlines=y||0,this.whitespace_before=x||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}O.exports.Token=C},,,function(O){function C(y,x){this.raw_options=b(y,x),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}C.prototype._get_array=function(y,x){var g=this.raw_options[y],h=x||[];return typeof g=="object"?g!==null&&typeof g.concat=="function"&&(h=g.concat()):typeof g=="string"&&(h=g.split(/[^a-zA-Z0-9_\/\-]+/)),h},C.prototype._get_boolean=function(y,x){var g=this.raw_options[y],h=g===void 0?!!x:!!g;return h},C.prototype._get_characters=function(y,x){var g=this.raw_options[y],h=x||"";return typeof g=="string"&&(h=g.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),h},C.prototype._get_number=function(y,x){var g=this.raw_options[y];x=parseInt(x,10),isNaN(x)&&(x=0);var h=parseInt(g,10);return isNaN(h)&&(h=x),h},C.prototype._get_selection=function(y,x,g){var h=this._get_selection_list(y,x,g);if(h.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
`+x+`
You passed in: '`+this.raw_options[y]+"'");return h[0]},C.prototype._get_selection_list=function(y,x,g){if(!x||x.length===0)throw new Error("Selection list cannot be empty.");if(g=g||[x[0]],!this._is_valid_selection(g,x))throw new Error("Invalid Default Value!");var h=this._get_array(y,g);if(!this._is_valid_selection(h,x))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
`+x+`
You passed in: '`+this.raw_options[y]+"'");return h},C.prototype._is_valid_selection=function(y,x){return y.length&&x.length&&!y.some(function(g){return x.indexOf(g)===-1})};function b(y,x){var g={};y=p(y);var h;for(h in y)h!==x&&(g[h]=y[h]);if(x&&y[x])for(h in y[x])g[h]=y[x][h];return g}function p(y){var x={},g;for(g in y){var h=g.replace(/-/g,"_");x[h]=y[g]}return x}O.exports.Options=C,O.exports.normalizeOpts=p,O.exports.mergeOpts=b},,function(O){var C=RegExp.prototype.hasOwnProperty("sticky");function b(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}b.prototype.restart=function(){this.__position=0},b.prototype.back=function(){this.__position>0&&(this.__position-=1)},b.prototype.hasNext=function(){return this.__position<this.__input_length},b.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__input.charAt(this.__position),this.__position+=1),p},b.prototype.peek=function(p){var y=null;return p=p||0,p+=this.__position,p>=0&&p<this.__input_length&&(y=this.__input.charAt(p)),y},b.prototype.__match=function(p,y){p.lastIndex=y;var x=p.exec(this.__input);return x&&!(C&&p.sticky)&&(x.index!==y&&(x=null)),x},b.prototype.test=function(p,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(p,y):!1},b.prototype.testChar=function(p,y){var x=this.peek(y);return p.lastIndex=0,x!==null&&p.test(x)},b.prototype.match=function(p){var y=this.__match(p,this.__position);return y?this.__position+=y[0].length:y=null,y},b.prototype.read=function(p,y,x){var g="",h;return p&&(h=this.match(p),h&&(g+=h[0])),y&&(h||!p)&&(g+=this.readUntil(y,x)),g},b.prototype.readUntil=function(p,y){var x="",g=this.__position;p.lastIndex=this.__position;var h=p.exec(this.__input);return h?(g=h.index,y&&(g+=h[0].length)):g=this.__input_length,x=this.__input.substring(this.__position,g),this.__position=g,x},b.prototype.readUntilAfter=function(p){return this.readUntil(p,!0)},b.prototype.get_regexp=function(p,y){var x=null,g="g";return y&&C&&(g="y"),typeof p=="string"&&p!==""?x=new RegExp(p,g):p&&(x=new RegExp(p.source,g)),x},b.prototype.get_literal_regexp=function(p){return RegExp(p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},b.prototype.peekUntilAfter=function(p){var y=this.__position,x=this.readUntilAfter(p);return this.__position=y,x},b.prototype.lookBack=function(p){var y=this.__position-1;return y>=p.length&&this.__input.substring(y-p.length,y).toLowerCase()===p},O.exports.InputScanner=b},function(O,C,b){var p=b(8).InputScanner,y=b(3).Token,x=b(10).TokenStream,g=b(11).WhitespacePattern,h={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},c=function(d,I){this._input=new p(d),this._options=I||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new g(this._input)};c.prototype.tokenize=function(){this._input.restart(),this.__tokens=new x,this._reset();for(var d,I=new y(h.START,""),A=null,R=[],N=new x;I.type!==h.EOF;){for(d=this._get_next_token(I,A);this._is_comment(d);)N.add(d),d=this._get_next_token(I,A);N.isEmpty()||(d.comments_before=N,N=new x),d.parent=A,this._is_opening(d)?(R.push(A),A=d):A&&this._is_closing(d,A)&&(d.opened=A,A.closed=d,A=R.pop(),d.parent=A),d.previous=I,I.next=d,this.__tokens.add(d),I=d}return this.__tokens},c.prototype._is_first_token=function(){return this.__tokens.isEmpty()},c.prototype._reset=function(){},c.prototype._get_next_token=function(d,I){this._readWhitespace();var A=this._input.read(/.+/g);return A?this._create_token(h.RAW,A):this._create_token(h.EOF,"")},c.prototype._is_comment=function(d){return!1},c.prototype._is_opening=function(d){return!1},c.prototype._is_closing=function(d,I){return!1},c.prototype._create_token=function(d,I){var A=new y(d,I,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return A},c.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},O.exports.Tokenizer=c,O.exports.TOKEN=h},function(O){function C(b){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=b}C.prototype.restart=function(){this.__position=0},C.prototype.isEmpty=function(){return this.__tokens_length===0},C.prototype.hasNext=function(){return this.__position<this.__tokens_length},C.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__tokens[this.__position],this.__position+=1),b},C.prototype.peek=function(b){var p=null;return b=b||0,b+=this.__position,b>=0&&b<this.__tokens_length&&(p=this.__tokens[b]),p},C.prototype.add=function(b){this.__parent_token&&(b.parent=this.__parent_token),this.__tokens.push(b),this.__tokens_length+=1},O.exports.TokenStream=C},function(O,C,b){var p=b(12).Pattern;function y(x,g){p.call(this,x,g),g?this._line_regexp=this._input.get_regexp(g._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new p,y.prototype.__set_whitespace_patterns=function(x,g){x+="\\t ",g+="\\n\\r",this._match_pattern=this._input.get_regexp("["+x+g+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+g+"]")},y.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var x=this._input.read(this._match_pattern);if(x===" ")this.whitespace_before_token=" ";else if(x){var g=this.__split(this._newline_regexp,x);this.newline_count=g.length-1,this.whitespace_before_token=g[this.newline_count]}return x},y.prototype.matching=function(x,g){var h=this._create();return h.__set_whitespace_patterns(x,g),h._update(),h},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(x,g){x.lastIndex=0;for(var h=0,c=[],d=x.exec(g);d;)c.push(g.substring(h,d.index)),h=d.index+d[0].length,d=x.exec(g);return h<g.length?c.push(g.substring(h,g.length)):c.push(""),c},O.exports.WhitespacePattern=y},function(O){function C(b,p){this._input=b,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,p&&(this._starting_pattern=this._input.get_regexp(p._starting_pattern,!0),this._match_pattern=this._input.get_regexp(p._match_pattern,!0),this._until_pattern=this._input.get_regexp(p._until_pattern),this._until_after=p._until_after)}C.prototype.read=function(){var b=this._input.read(this._starting_pattern);return(!this._starting_pattern||b)&&(b+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),b},C.prototype.read_match=function(){return this._input.match(this._match_pattern)},C.prototype.until_after=function(b){var p=this._create();return p._until_after=!0,p._until_pattern=this._input.get_regexp(b),p._update(),p},C.prototype.until=function(b){var p=this._create();return p._until_after=!1,p._until_pattern=this._input.get_regexp(b),p._update(),p},C.prototype.starting_with=function(b){var p=this._create();return p._starting_pattern=this._input.get_regexp(b,!0),p._update(),p},C.prototype.matching=function(b){var p=this._create();return p._match_pattern=this._input.get_regexp(b,!0),p._update(),p},C.prototype._create=function(){return new C(this._input,this)},C.prototype._update=function(){},O.exports.Pattern=C},function(O){function C(b,p){b=typeof b=="string"?b:b.source,p=typeof p=="string"?p:p.source,this.__directives_block_pattern=new RegExp(b+/ beautify( \w+[:]\w+)+ /.source+p,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(b+/\sbeautify\signore:end\s/.source+p,"g")}C.prototype.get_directives=function(b){if(!b.match(this.__directives_block_pattern))return null;var p={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(b);y;)p[y[1]]=y[2],y=this.__directive_pattern.exec(b);return p},C.prototype.readIgnored=function(b){return b.readUntilAfter(this.__directives_end_ignore_pattern)},O.exports.Directives=C},function(O,C,b){var p=b(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function x(g,h){p.call(this,g,h),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),h&&(this.__template_pattern=this._input.get_regexp(h.__template_pattern),this._excluded=Object.assign(this._excluded,h._excluded),this._disabled=Object.assign(this._disabled,h._disabled));var c=new p(g);this.__patterns={handlebars_comment:c.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:c.starting_with(/{{{/).until_after(/}}}/),handlebars:c.starting_with(/{{/).until_after(/}}/),php:c.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:c.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:c.starting_with(/{%/).until_after(/%}/),django_value:c.starting_with(/{{/).until_after(/}}/),django_comment:c.starting_with(/{#/).until_after(/#}/),smarty:c.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:c.starting_with(/{\*/).until_after(/\*}/),smarty_literal:c.starting_with(/{literal}/).until_after(/{\/literal}/)}}x.prototype=new p,x.prototype._create=function(){return new x(this._input,this)},x.prototype._update=function(){this.__set_templated_pattern()},x.prototype.disable=function(g){var h=this._create();return h._disabled[g]=!0,h._update(),h},x.prototype.read_options=function(g){var h=this._create();for(var c in y)h._disabled[c]=g.templating.indexOf(c)===-1;return h._update(),h},x.prototype.exclude=function(g){var h=this._create();return h._excluded[g]=!0,h._update(),h},x.prototype.read=function(){var g="";this._match_pattern?g=this._input.read(this._starting_pattern):g=this._input.read(this._starting_pattern,this.__template_pattern);for(var h=this._read_template();h;)this._match_pattern?h+=this._input.read(this._match_pattern):h+=this._input.readUntil(this.__template_pattern),g+=h,h=this._read_template();return this._until_after&&(g+=this._input.readUntilAfter(this._until_pattern)),g},x.prototype.__set_templated_pattern=function(){var g=[];this._disabled.php||g.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||g.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||g.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(g.push(this.__patterns.django._starting_pattern.source),g.push(this.__patterns.django_value._starting_pattern.source),g.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||g.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&g.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+g.join("|")+")")},x.prototype._read_template=function(){var g="",h=this._input.peek();if(h==="<"){var c=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&c==="?"&&(g=g||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&c==="%"&&(g=g||this.__patterns.erb.read())}else h==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(g=g||this.__patterns.handlebars_comment.read(),g=g||this.__patterns.handlebars_unescaped.read(),g=g||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(g=g||this.__patterns.django_value.read()),this._excluded.django||(g=g||this.__patterns.django_comment.read(),g=g||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(g=g||this.__patterns.smarty_comment.read(),g=g||this.__patterns.smarty_literal.read(),g=g||this.__patterns.smarty.read()));return g},O.exports.TemplatablePattern=x},,,,function(O,C,b){var p=b(19).Beautifier,y=b(20).Options;function x(g,h,c,d){var I=new p(g,h,c,d);return I.beautify()}O.exports=x,O.exports.defaultOptions=function(){return new y}},function(O,C,b){var p=b(20).Options,y=b(2).Output,x=b(21).Tokenizer,g=b(21).TOKEN,h=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,d=function(T,w){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=T.max_preserve_newlines,this.preserve_newlines=T.preserve_newlines,this._output=new y(T,w)};d.prototype.current_line_has_match=function(T){return this._output.current_line.has_match(T)},d.prototype.set_space_before_token=function(T,w){this._output.space_before_token=T,this._output.non_breaking_space=w},d.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},d.prototype.add_raw_token=function(T){this._output.add_raw_token(T)},d.prototype.print_preserved_newlines=function(T){var w=0;T.type!==g.TEXT&&T.previous.type!==g.TEXT&&(w=T.newlines?1:0),this.preserve_newlines&&(w=T.newlines<this.max_preserve_newlines+1?T.newlines:this.max_preserve_newlines+1);for(var M=0;M<w;M++)this.print_newline(M>0);return w!==0},d.prototype.traverse_whitespace=function(T){return T.whitespace_before||T.newlines?(this.print_preserved_newlines(T)||(this._output.space_before_token=!0),!0):!1},d.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},d.prototype.print_newline=function(T){this._output.add_new_line(T)},d.prototype.print_token=function(T){T.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(T.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.get_full_indent=function(T){return T=this.indent_level+(T||0),T<1?"":this._output.get_indent_string(T)};var I=function(T){for(var w=null,M=T.next;M.type!==g.EOF&&T.closed!==M;){if(M.type===g.ATTRIBUTE&&M.text==="type"){M.next&&M.next.type===g.EQUALS&&M.next.next&&M.next.next.type===g.VALUE&&(w=M.next.next.text);break}M=M.next}return w},A=function(T,w){var M=null,Z=null;return w.closed?(T==="script"?M="text/javascript":T==="style"&&(M="text/css"),M=I(w)||M,M.search("text/css")>-1?Z="css":M.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?Z="javascript":M.search(/(text|application|dojo)\/(x-)?(html)/)>-1?Z="html":M.search(/test\/null/)>-1&&(Z="null"),Z):null};function R(T,w){return w.indexOf(T)!==-1}function N(T,w,M){this.parent=T||null,this.tag=w?w.tag_name:"",this.indent_level=M||0,this.parser_token=w||null}function P(T){this._printer=T,this._current_frame=null}P.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},P.prototype.record_tag=function(T){var w=new N(this._current_frame,T,this._printer.indent_level);this._current_frame=w},P.prototype._try_pop_frame=function(T){var w=null;return T&&(w=T.parser_token,this._printer.indent_level=T.indent_level,this._current_frame=T.parent),w},P.prototype._get_frame=function(T,w){for(var M=this._current_frame;M&&!(T.indexOf(M.tag)!==-1);){if(w&&w.indexOf(M.tag)!==-1){M=null;break}M=M.parent}return M},P.prototype.try_pop=function(T,w){var M=this._get_frame([T],w);return this._try_pop_frame(M)},P.prototype.indent_to_tag=function(T){var w=this._get_frame(T);w&&(this._printer.indent_level=w.indent_level)};function D(T,w,M,Z){this._source_text=T||"",w=w||{},this._js_beautify=M,this._css_beautify=Z,this._tag_stack=null;var z=new p(w,"html");this._options=z,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}D.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T=this._source_text,w=this._options.eol;this._options.eol==="auto"&&(w=`
`,T&&h.test(T)&&(w=T.match(h)[0])),T=T.replace(c,`
`);var M=T.match(/^[\t ]*/)[0],Z={text:"",type:""},z=new E,L=new d(this._options,M),W=new x(T,this._options).tokenize();this._tag_stack=new P(L);for(var Y=null,H=W.next();H.type!==g.EOF;)H.type===g.TAG_OPEN||H.type===g.COMMENT?(Y=this._handle_tag_open(L,H,z,Z),z=Y):H.type===g.ATTRIBUTE||H.type===g.EQUALS||H.type===g.VALUE||H.type===g.TEXT&&!z.tag_complete?Y=this._handle_inside_tag(L,H,z,W):H.type===g.TAG_CLOSE?Y=this._handle_tag_close(L,H,z):H.type===g.TEXT?Y=this._handle_text(L,H,z):L.add_raw_token(H),Z=Y,H=W.next();var ne=L._output.get_code(w);return ne},D.prototype._handle_tag_close=function(T,w,M){var Z={text:w.text,type:w.type};return T.alignment_size=0,M.tag_complete=!0,T.set_space_before_token(w.newlines||w.whitespace_before!=="",!0),M.is_unformatted?T.add_raw_token(w):(M.tag_start_char==="<"&&(T.set_space_before_token(w.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&M.has_wrapped_attrs&&T.print_newline(!1)),T.print_token(w)),M.indent_content&&!(M.is_unformatted||M.is_content_unformatted)&&(T.indent(),M.indent_content=!1),!M.is_inline_element&&!(M.is_unformatted||M.is_content_unformatted)&&T.set_wrap_point(),Z},D.prototype._handle_inside_tag=function(T,w,M,Z){var z=M.has_wrapped_attrs,L={text:w.text,type:w.type};if(T.set_space_before_token(w.newlines||w.whitespace_before!=="",!0),M.is_unformatted)T.add_raw_token(w);else if(M.tag_start_char==="{"&&w.type===g.TEXT)T.print_preserved_newlines(w)?(w.newlines=0,T.add_raw_token(w)):T.print_token(w);else{if(w.type===g.ATTRIBUTE?(T.set_space_before_token(!0),M.attr_count+=1):(w.type===g.EQUALS||w.type===g.VALUE&&w.previous.type===g.EQUALS)&&T.set_space_before_token(!1),w.type===g.ATTRIBUTE&&M.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(T.traverse_whitespace(w),z=z||w.newlines!==0),this._is_wrap_attributes_force)){var W=M.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&M.attr_count===1){var Y=!0,H=0,ne;do{if(ne=Z.peek(H),ne.type===g.ATTRIBUTE){Y=!1;break}H+=1}while(H<4&&ne.type!==g.EOF&&ne.type!==g.TAG_CLOSE);W=!Y}W&&(T.print_newline(!1),z=!0)}T.print_token(w),z=z||T.previous_token_wrapped(),M.has_wrapped_attrs=z}return L},D.prototype._handle_text=function(T,w,M){var Z={text:w.text,type:"TK_CONTENT"};return M.custom_beautifier_name?this._print_custom_beatifier_text(T,w,M):M.is_unformatted||M.is_content_unformatted?T.add_raw_token(w):(T.traverse_whitespace(w),T.print_token(w)),Z},D.prototype._print_custom_beatifier_text=function(T,w,M){var Z=this;if(w.text!==""){var z=w.text,L,W=1,Y="",H="";M.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?L=this._js_beautify:M.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?L=this._css_beautify:M.custom_beautifier_name==="html"&&(L=function(Ie,je){var Ve=new D(Ie,je,Z._js_beautify,Z._css_beautify);return Ve.beautify()}),this._options.indent_scripts==="keep"?W=0:this._options.indent_scripts==="separate"&&(W=-T.indent_level);var ne=T.get_full_indent(W);if(z=z.replace(/\n[ \t]*$/,""),M.custom_beautifier_name!=="html"&&z[0]==="<"&&z.match(/^(<!--|<!\[CDATA\[)/)){var ce=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(z);if(!ce){T.add_raw_token(w);return}Y=ne+ce[1]+`
`,z=ce[4],ce[5]&&(H=ne+ce[5]),z=z.replace(/\n[ \t]*$/,""),(ce[2]||ce[3].indexOf(`
`)!==-1)&&(ce=ce[3].match(/[ \t]+$/),ce&&(w.whitespace_before=ce[0]))}if(z)if(L){var we=function(){this.eol=`
`};we.prototype=this._options.raw_options;var Ce=new we;z=L(ne+z,Ce)}else{var Ke=w.whitespace_before;Ke&&(z=z.replace(new RegExp(`
(`+Ke+")?","g"),`
`)),z=ne+z.replace(/\n/g,`
`+ne)}Y&&(z?z=Y+z+`
`+H:z=Y+H),T.print_newline(!1),z&&(w.text=z,w.whitespace_before="",w.newlines=0,T.add_raw_token(w),T.print_newline(!0))}},D.prototype._handle_tag_open=function(T,w,M,Z){var z=this._get_tag_open_token(w);return(M.is_unformatted||M.is_content_unformatted)&&!M.is_empty_element&&w.type===g.TAG_OPEN&&w.text.indexOf("</")===0?(T.add_raw_token(w),z.start_tag_token=this._tag_stack.try_pop(z.tag_name)):(T.traverse_whitespace(w),this._set_tag_position(T,w,z,M,Z),z.is_inline_element||T.set_wrap_point(),T.print_token(w)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(z.alignment_size=w.text.length+1),!z.tag_complete&&!z.is_unformatted&&(T.alignment_size=z.alignment_size),z};var E=function(T,w){if(this.parent=T||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!w)this.tag_complete=!0;else{var M;this.tag_start_char=w.text[0],this.text=w.text,this.tag_start_char==="<"?(M=w.text.match(/^<([^\s>]*)/),this.tag_check=M?M[1]:""):(M=w.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=M?M[1]:"",(w.text.startsWith("{{#>")||w.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&w.next!==null?this.tag_check=w.next.text.split(" ")[0]:this.tag_check=w.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),w.type===g.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||w.closed&&w.closed.text==="/>";var Z=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(Z=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(Z)))}};D.prototype._get_tag_open_token=function(T){var w=new E(this._tag_stack.get_parser_token(),T);return w.alignment_size=this._options.wrap_attributes_indent_size,w.is_end_tag=w.is_end_tag||R(w.tag_check,this._options.void_elements),w.is_empty_element=w.tag_complete||w.is_start_tag&&w.is_end_tag,w.is_unformatted=!w.tag_complete&&R(w.tag_check,this._options.unformatted),w.is_content_unformatted=!w.is_empty_element&&R(w.tag_check,this._options.content_unformatted),w.is_inline_element=R(w.tag_name,this._options.inline)||w.tag_name.includes("-")||w.tag_start_char==="{",w},D.prototype._set_tag_position=function(T,w,M,Z,z){if(M.is_empty_element||(M.is_end_tag?M.start_tag_token=this._tag_stack.try_pop(M.tag_name):(this._do_optional_end_element(M)&&(M.is_inline_element||T.print_newline(!1)),this._tag_stack.record_tag(M),(M.tag_name==="script"||M.tag_name==="style")&&!(M.is_unformatted||M.is_content_unformatted)&&(M.custom_beautifier_name=A(M.tag_check,w)))),R(M.tag_check,this._options.extra_liners)&&(T.print_newline(!1),T._output.just_added_blankline()||T.print_newline(!0)),M.is_empty_element){if(M.tag_start_char==="{"&&M.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),M.indent_content=!0;var L=T.current_line_has_match(/{{#if/);L||T.print_newline(!1)}M.tag_name==="!--"&&z.type===g.TAG_CLOSE&&Z.is_end_tag&&M.text.indexOf(`
`)===-1||(M.is_inline_element||M.is_unformatted||T.print_newline(!1),this._calcluate_parent_multiline(T,M))}else if(M.is_end_tag){var W=!1;W=M.start_tag_token&&M.start_tag_token.multiline_content,W=W||!M.is_inline_element&&!(Z.is_inline_element||Z.is_unformatted)&&!(z.type===g.TAG_CLOSE&&M.start_tag_token===Z)&&z.type!=="TK_CONTENT",(M.is_content_unformatted||M.is_unformatted)&&(W=!1),W&&T.print_newline(!1)}else M.indent_content=!M.custom_beautifier_name,M.tag_start_char==="<"&&(M.tag_name==="html"?M.indent_content=this._options.indent_inner_html:M.tag_name==="head"?M.indent_content=this._options.indent_head_inner_html:M.tag_name==="body"&&(M.indent_content=this._options.indent_body_inner_html)),!(M.is_inline_element||M.is_unformatted)&&(z.type!=="TK_CONTENT"||M.is_content_unformatted)&&T.print_newline(!1),this._calcluate_parent_multiline(T,M)},D.prototype._calcluate_parent_multiline=function(T,w){w.parent&&T._output.just_added_newline()&&!((w.is_inline_element||w.is_unformatted)&&w.parent.is_inline_element)&&(w.parent.multiline_content=!0)};var v=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];D.prototype._do_optional_end_element=function(T){var w=null;if(T.is_empty_element||!T.is_start_tag||!T.parent)return;if(T.tag_name==="body")w=w||this._tag_stack.try_pop("head");else if(T.tag_name==="li")w=w||this._tag_stack.try_pop("li",["ol","ul"]);else if(T.tag_name==="dd"||T.tag_name==="dt")w=w||this._tag_stack.try_pop("dt",["dl"]),w=w||this._tag_stack.try_pop("dd",["dl"]);else if(T.parent.tag_name==="p"&&v.indexOf(T.tag_name)!==-1){var M=T.parent.parent;(!M||_.indexOf(M.tag_name)===-1)&&(w=w||this._tag_stack.try_pop("p"))}else T.tag_name==="rp"||T.tag_name==="rt"?(w=w||this._tag_stack.try_pop("rt",["ruby","rtc"]),w=w||this._tag_stack.try_pop("rp",["ruby","rtc"])):T.tag_name==="optgroup"?w=w||this._tag_stack.try_pop("optgroup",["select"]):T.tag_name==="option"?w=w||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):T.tag_name==="colgroup"?w=w||this._tag_stack.try_pop("caption",["table"]):T.tag_name==="thead"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"])):T.tag_name==="tbody"||T.tag_name==="tfoot"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"]),w=w||this._tag_stack.try_pop("thead",["table"]),w=w||this._tag_stack.try_pop("tbody",["table"])):T.tag_name==="tr"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"]),w=w||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(T.tag_name==="th"||T.tag_name==="td")&&(w=w||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),w=w||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return T.parent=this._tag_stack.get_parser_token(),w},O.exports.Beautifier=D},function(O,C,b){var p=b(6).Options;function y(x){p.call(this,x,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}y.prototype=new p,O.exports.Options=y},function(O,C,b){var p=b(9).Tokenizer,y=b(9).TOKEN,x=b(13).Directives,g=b(14).TemplatablePattern,h=b(12).Pattern,c={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:y.START,RAW:y.RAW,EOF:y.EOF},d=new x(/<\!--/,/-->/),I=function(A,R){p.call(this,A,R),this._current_tag_name="";var N=new g(this._input).read_options(this._options),P=new h(this._input);if(this.__patterns={word:N.until(/[\n\r\t <]/),single_quote:N.until_after(/'/),double_quote:N.until_after(/"/),attribute:N.until(/[\n\r\t =>]|\/>/),element_name:N.until(/[\n\r\t >\/]/),handlebars_comment:P.starting_with(/{{!--/).until_after(/--}}/),handlebars:P.starting_with(/{{/).until_after(/}}/),handlebars_open:P.until(/[\n\r\t }]/),handlebars_raw_close:P.until(/}}/),comment:P.starting_with(/<!--/).until_after(/-->/),cdata:P.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:P.starting_with(/<!\[/).until_after(/]>/),processing:P.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var D=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=P.matching(D).until_after(D)}};I.prototype=new p,I.prototype._is_comment=function(A){return!1},I.prototype._is_opening=function(A){return A.type===c.TAG_OPEN},I.prototype._is_closing=function(A,R){return A.type===c.TAG_CLOSE&&R&&((A.text===">"||A.text==="/>")&&R.text[0]==="<"||A.text==="}}"&&R.text[0]==="{"&&R.text[1]==="{")},I.prototype._reset=function(){this._current_tag_name=""},I.prototype._get_next_token=function(A,R){var N=null;this._readWhitespace();var P=this._input.peek();return P===null?this._create_token(c.EOF,""):(N=N||this._read_open_handlebars(P,R),N=N||this._read_attribute(P,A,R),N=N||this._read_close(P,R),N=N||this._read_raw_content(P,A,R),N=N||this._read_content_word(P),N=N||this._read_comment_or_cdata(P),N=N||this._read_processing(P),N=N||this._read_open(P,R),N=N||this._create_token(c.UNKNOWN,this._input.next()),N)},I.prototype._read_comment_or_cdata=function(A){var R=null,N=null,P=null;if(A==="<"){var D=this._input.peek(1);D==="!"&&(N=this.__patterns.comment.read(),N?(P=d.get_directives(N),P&&P.ignore==="start"&&(N+=d.readIgnored(this._input))):N=this.__patterns.cdata.read()),N&&(R=this._create_token(c.COMMENT,N),R.directives=P)}return R},I.prototype._read_processing=function(A){var R=null,N=null,P=null;if(A==="<"){var D=this._input.peek(1);(D==="!"||D==="?")&&(N=this.__patterns.conditional_comment.read(),N=N||this.__patterns.processing.read()),N&&(R=this._create_token(c.COMMENT,N),R.directives=P)}return R},I.prototype._read_open=function(A,R){var N=null,P=null;return R||A==="<"&&(N=this._input.next(),this._input.peek()==="/"&&(N+=this._input.next()),N+=this.__patterns.element_name.read(),P=this._create_token(c.TAG_OPEN,N)),P},I.prototype._read_open_handlebars=function(A,R){var N=null,P=null;return R||this._options.indent_handlebars&&A==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(N=this.__patterns.handlebars_comment.read(),N=N||this.__patterns.handlebars.read(),P=this._create_token(c.COMMENT,N)):(N=this.__patterns.handlebars_open.read(),P=this._create_token(c.TAG_OPEN,N))),P},I.prototype._read_close=function(A,R){var N=null,P=null;return R&&(R.text[0]==="<"&&(A===">"||A==="/"&&this._input.peek(1)===">")?(N=this._input.next(),A==="/"&&(N+=this._input.next()),P=this._create_token(c.TAG_CLOSE,N)):R.text[0]==="{"&&A==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),P=this._create_token(c.TAG_CLOSE,"}}"))),P},I.prototype._read_attribute=function(A,R,N){var P=null,D="";if(N&&N.text[0]==="<")if(A==="=")P=this._create_token(c.EQUALS,this._input.next());else if(A==='"'||A==="'"){var E=this._input.next();A==='"'?E+=this.__patterns.double_quote.read():E+=this.__patterns.single_quote.read(),P=this._create_token(c.VALUE,E)}else D=this.__patterns.attribute.read(),D&&(R.type===c.EQUALS?P=this._create_token(c.VALUE,D):P=this._create_token(c.ATTRIBUTE,D));return P},I.prototype._is_content_unformatted=function(A){return this._options.void_elements.indexOf(A)===-1&&(this._options.content_unformatted.indexOf(A)!==-1||this._options.unformatted.indexOf(A)!==-1)},I.prototype._read_raw_content=function(A,R,N){var P="";if(N&&N.text[0]==="{")P=this.__patterns.handlebars_raw_close.read();else if(R.type===c.TAG_CLOSE&&R.opened.text[0]==="<"&&R.text[0]!=="/"){var D=R.opened.text.substr(1).toLowerCase();if(D==="script"||D==="style"){var E=this._read_comment_or_cdata(A);if(E)return E.type=c.TEXT,E;P=this._input.readUntil(new RegExp("</"+D+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(D)&&(P=this._input.readUntil(new RegExp("</"+D+"[\\n\\r\\t ]*?>","ig")))}return P?this._create_token(c.TEXT,P):null},I.prototype._read_content_word=function(A){var R="";if(this._options.unformatted_content_delimiter&&(A===this._options.unformatted_content_delimiter[0]&&(R=this.__patterns.unformatted_content_delimiter.read())),R||(R=this.__patterns.word.read()),R)return this._create_token(c.TEXT,R)},O.exports.Tokenizer=I,O.exports.TOKEN=c}],V={};function l(O){var C=V[O];if(C!==void 0)return C.exports;var b=V[O]={exports:{}};return oe[O](b,b.exports,l),b.exports}var F=l(18);X=F})();var le=X;if(!0)!(Te=[ie,ie("6UM0"),ie("TXwP")],ae=function(oe){var V=ie("6UM0"),l=ie("TXwP");return{html_beautify:function(F,O){return le(F,O,V.js_beautify,l.css_beautify)}}}.apply(Ne,Te),ae!==void 0&&(Dt.exports=ae));else var j,G})()},"rAM+":function(Dt,Ne,ie){"use strict";ie.d(Ne,"a",function(){return ae});var Te=ie("Qw5x");function ae(X,le){var j;if(typeof Symbol=="undefined"||X[Symbol.iterator]==null){if(Array.isArray(X)||(j=Object(Te.a)(X))||le&&X&&typeof X.length=="number"){j&&(X=j);var G=0,oe=function(){};return{s:oe,n:function(){return G>=X.length?{done:!0}:{done:!1,value:X[G++]}},e:function(C){throw C},f:oe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V=!0,l=!1,F;return{s:function(){j=X[Symbol.iterator]()},n:function(){var C=j.next();return V=C.done,C},e:function(C){l=!0,F=C},f:function(){try{!V&&j.return!=null&&j.return()}finally{if(l)throw F}}}}},rUJ1:function(Dt,Ne){const ie=/[&<>"']/,Te=/[&<>"']/g,ae=/[<>"']|&(?!#?\w+;)/,X=/[<>"']|&(?!#?\w+;)/g,le={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},j=P=>le[P];function G(P,D){if(D){if(ie.test(P))return P.replace(Te,j)}else if(ae.test(P))return P.replace(X,j);return P}const oe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function V(P){return P.replace(oe,(D,E)=>(E=E.toLowerCase(),E==="colon"?":":E.charAt(0)==="#"?E.charAt(1)==="x"?String.fromCharCode(parseInt(E.substring(2),16)):String.fromCharCode(+E.substring(1)):""))}const l=/(^|[^\[])\^/g;function F(P,D){P=P.source||P,D=D||"";const E={replace:(v,_)=>(_=_.source||_,_=_.replace(l,"$1"),P=P.replace(v,_),E),getRegex:()=>new RegExp(P,D)};return E}const O=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(P,D,E){if(P){let v;try{v=decodeURIComponent(V(E)).replace(O,"").toLowerCase()}catch(_){return null}if(v.indexOf("javascript:")===0||v.indexOf("vbscript:")===0||v.indexOf("data:")===0)return null}D&&!C.test(E)&&(E=h(D,E));try{E=encodeURI(E).replace(/%25/g,"%")}catch(v){return null}return E}const p={},y=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(P,D){p[" "+P]||(y.test(P)?p[" "+P]=P+"/":p[" "+P]=A(P,"/",!0)),P=p[" "+P];const E=P.indexOf(":")===-1;return D.substring(0,2)==="//"?E?D:P.replace(x,"$1")+D:D.charAt(0)==="/"?E?D:P.replace(g,"$1")+D:P+D}const c={exec:function(){}};function d(P){let D=1,E,v;for(;D<arguments.length;D++){E=arguments[D];for(v in E)Object.prototype.hasOwnProperty.call(E,v)&&(P[v]=E[v])}return P}function I(P,D){const E=P.replace(/\|/g,(T,w,M)=>{let Z=!1,z=w;for(;--z>=0&&M[z]==="\\";)Z=!Z;return Z?"|":" |"}),v=E.split(/ \|/);let _=0;if(v.length>D)v.splice(D);else for(;v.length<D;)v.push("");for(;_<v.length;_++)v[_]=v[_].trim().replace(/\\\|/g,"|");return v}function A(P,D,E){const v=P.length;if(v===0)return"";let _=0;for(;_<v;){const T=P.charAt(v-_-1);if(T===D&&!E)_++;else if(T!==D&&E)_++;else break}return P.substr(0,v-_)}function R(P,D){if(P.indexOf(D[1])===-1)return-1;const E=P.length;let v=0,_=0;for(;_<E;_++)if(P[_]==="\\")_++;else if(P[_]===D[0])v++;else if(P[_]===D[1]&&(v--,v<0))return _;return-1}function N(P){P&&P.sanitize&&!P.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}Dt.exports={escape:G,unescape:V,edit:F,cleanUrl:b,resolveUrl:h,noopTest:c,merge:d,splitCells:I,rtrim:A,findClosingBracket:R,checkSanitizeDeprecation:N}},siWv:function(Dt,Ne,ie){Dt.exports={flex_box_center:"flex_box_center___3IH6S",flex_space_between:"flex_space_between___3AU-S",flex_box_vertical_center:"flex_box_vertical_center___1ykIO",flex_box_center_end:"flex_box_center_end___1aIQB",flex_box_column:"flex_box_column___2A_ra",btn:"btn___23gjd","mediacy-round":"mediacy-round___3vc8E","mediacy-default":"mediacy-default___2zIGi",default:"default___20Yio"}},t9D7:function(Dt,Ne,ie){"use strict";ie.d(Ne,"b",function(){return oe}),ie.d(Ne,"g",function(){return l}),ie.d(Ne,"d",function(){return F}),ie.d(Ne,"e",function(){return O}),ie.d(Ne,"a",function(){return C}),ie.d(Ne,"f",function(){return y}),ie.d(Ne,"c",function(){return x});var Te=ie("Vhoy"),ae=ie("MI8n"),X=ie("pmY6"),le=ie("Cg/j"),j=ie("ic2d"),G=ie("nEHx");const oe=Object(le.c)("themeService");var V;(function(g){function h(c){return c&&typeof c=="object"&&typeof c.id=="string"}g.isThemeColor=h})(V||(V={}));function l(g){return{id:g}}var F;(function(g){function h(N){return N&&typeof N=="object"&&typeof N.id=="string"&&(typeof N.color=="undefined"||V.isThemeColor(N.color))}g.isThemeIcon=h;const c=new RegExp(`^\\$\\((${Te.a.iconNameExpression}(?:${Te.a.iconModifierExpression})?)\\)$`);function d(N){const P=c.exec(N);if(!P)return;let[,D]=P;return{id:D}}g.fromString=d;function I(N,P){let D=N.id;const E=D.lastIndexOf("~");return E!==-1&&(D=D.substring(0,E)),P&&(D=`${D}~${P}`),{id:D}}g.modify=I;function A(N,P){var D,E;return N.id===P.id&&((D=N.color)===null||D===void 0?void 0:D.id)===((E=P.color)===null||E===void 0?void 0:E.id)}g.isEqual=A;function R(N,P){return{id:N.id,color:P?l(P):void 0}}g.asThemeIcon=R,g.asClassNameArray=Te.a.asClassNameArray,g.asClassName=Te.a.asClassName,g.asCSSSelector=Te.a.asCSSSelector})(F||(F={}));function O(g){switch(g){case G.a.DARK:return"vs-dark";case G.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const C={ThemingContribution:"base.contributions.theming"};class b{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ae.b}onColorThemeChange(g){return this.themingParticipants.push(g),this.onThemingParticipantAddedEmitter.fire(g),Object(X.i)(()=>{const h=this.themingParticipants.indexOf(g);this.themingParticipants.splice(h,1)})}getThemingParticipants(){return this.themingParticipants}}let p=new b;j.a.add(C.ThemingContribution,p);function y(g){return p.onColorThemeChange(g)}class x extends X.a{constructor(g){super();this.themeService=g,this.theme=g.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(h=>this.onThemeChange(h)))}onThemeChange(g){this.theme=g,this.updateStyles()}updateStyles(){}}},ulZh:function(Dt,Ne,ie){typeof window!="undefined"&&function(ae,X){Dt.exports=X()}(this,function(){return function(Te){var ae={};function X(le){if(ae[le])return ae[le].exports;var j=ae[le]={i:le,l:!1,exports:{}};return Te[le].call(j.exports,j,j.exports,X),j.l=!0,j.exports}return X.m=Te,X.c=ae,X.d=function(le,j,G){X.o(le,j)||Object.defineProperty(le,j,{enumerable:!0,get:G})},X.r=function(le){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(le,"__esModule",{value:!0})},X.t=function(le,j){if(j&1&&(le=X(le)),j&8)return le;if(j&4&&typeof le=="object"&&le&&le.__esModule)return le;var G=Object.create(null);if(X.r(G),Object.defineProperty(G,"default",{enumerable:!0,value:le}),j&2&&typeof le!="string")for(var oe in le)X.d(G,oe,function(V){return le[V]}.bind(null,oe));return G},X.n=function(le){var j=le&&le.__esModule?function(){return le.default}:function(){return le};return X.d(j,"a",j),j},X.o=function(le,j){return Object.prototype.hasOwnProperty.call(le,j)},X.p="/dist/",X(X.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Te,ae,X){"use strict";var le=Object.prototype.hasOwnProperty,j="~";function G(){}Object.create&&(G.prototype=Object.create(null),new G().__proto__||(j=!1));function oe(O,C,b){this.fn=O,this.context=C,this.once=b||!1}function V(O,C,b,p,y){if(typeof b!="function")throw new TypeError("The listener must be a function");var x=new oe(b,p||O,y),g=j?j+C:C;return O._events[g]?O._events[g].fn?O._events[g]=[O._events[g],x]:O._events[g].push(x):(O._events[g]=x,O._eventsCount++),O}function l(O,C){--O._eventsCount===0?O._events=new G:delete O._events[C]}function F(){this._events=new G,this._eventsCount=0}F.prototype.eventNames=function(){var C=[],b,p;if(this._eventsCount===0)return C;for(p in b=this._events)le.call(b,p)&&C.push(j?p.slice(1):p);return Object.getOwnPropertySymbols?C.concat(Object.getOwnPropertySymbols(b)):C},F.prototype.listeners=function(C){var b=j?j+C:C,p=this._events[b];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,x=p.length,g=new Array(x);y<x;y++)g[y]=p[y].fn;return g},F.prototype.listenerCount=function(C){var b=j?j+C:C,p=this._events[b];return p?p.fn?1:p.length:0},F.prototype.emit=function(C,b,p,y,x,g){var h=j?j+C:C;if(!this._events[h])return!1;var c=this._events[h],d=arguments.length,I,A;if(c.fn){c.once&&this.removeListener(C,c.fn,void 0,!0);switch(d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,b),!0;case 3:return c.fn.call(c.context,b,p),!0;case 4:return c.fn.call(c.context,b,p,y),!0;case 5:return c.fn.call(c.context,b,p,y,x),!0;case 6:return c.fn.call(c.context,b,p,y,x,g),!0}for(A=1,I=new Array(d-1);A<d;A++)I[A-1]=arguments[A];c.fn.apply(c.context,I)}else{var R=c.length,N;for(A=0;A<R;A++){c[A].once&&this.removeListener(C,c[A].fn,void 0,!0);switch(d){case 1:c[A].fn.call(c[A].context);break;case 2:c[A].fn.call(c[A].context,b);break;case 3:c[A].fn.call(c[A].context,b,p);break;case 4:c[A].fn.call(c[A].context,b,p,y);break;default:if(!I)for(N=1,I=new Array(d-1);N<d;N++)I[N-1]=arguments[N];c[A].fn.apply(c[A].context,I)}}}return!0},F.prototype.on=function(C,b,p){return V(this,C,b,p,!1)},F.prototype.once=function(C,b,p){return V(this,C,b,p,!0)},F.prototype.removeListener=function(C,b,p,y){var x=j?j+C:C;if(!this._events[x])return this;if(!b)return l(this,x),this;var g=this._events[x];if(g.fn)g.fn===b&&(!y||g.once)&&(!p||g.context===p)&&l(this,x);else{for(var h=0,c=[],d=g.length;h<d;h++)(g[h].fn!==b||y&&!g[h].once||p&&g[h].context!==p)&&c.push(g[h]);c.length?this._events[x]=c.length===1?c[0]:c:l(this,x)}return this},F.prototype.removeAllListeners=function(C){var b;return C?(b=j?j+C:C,this._events[b]&&l(this,b)):(this._events=new G,this._eventsCount=0),this},F.prototype.off=F.prototype.removeListener,F.prototype.addListener=F.prototype.on,F.prefixed=j,F.EventEmitter=F,Te.exports=F},"./node_modules/url-toolkit/src/url-toolkit.js":function(Te,ae,X){(function(le){var j=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,G=/^([^\/?#]*)([^]*)$/,oe=/(?:\/|^)\.(?=\/)/g,V=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(F,O,C){if(C=C||{},F=F.trim(),O=O.trim(),!O){if(!C.alwaysNormalize)return F;var b=l.parseURL(F);if(!b)throw new Error("Error trying to parse base URL.");return b.path=l.normalizePath(b.path),l.buildURLFromParts(b)}var p=l.parseURL(O);if(!p)throw new Error("Error trying to parse relative URL.");if(p.scheme)return C.alwaysNormalize?(p.path=l.normalizePath(p.path),l.buildURLFromParts(p)):O;var y=l.parseURL(F);if(!y)throw new Error("Error trying to parse base URL.");if(!y.netLoc&&y.path&&y.path[0]!=="/"){var x=G.exec(y.path);y.netLoc=x[1],y.path=x[2]}y.netLoc&&!y.path&&(y.path="/");var g={scheme:y.scheme,netLoc:p.netLoc,path:null,params:p.params,query:p.query,fragment:p.fragment};if(!p.netLoc&&(g.netLoc=y.netLoc,p.path[0]!=="/"))if(!p.path)g.path=y.path,p.params||(g.params=y.params,p.query||(g.query=y.query));else{var h=y.path,c=h.substring(0,h.lastIndexOf("/")+1)+p.path;g.path=l.normalizePath(c)}return g.path===null&&(g.path=C.alwaysNormalize?l.normalizePath(p.path):p.path),l.buildURLFromParts(g)},parseURL:function(F){var O=j.exec(F);return O?{scheme:O[1]||"",netLoc:O[2]||"",path:O[3]||"",params:O[4]||"",query:O[5]||"",fragment:O[6]||""}:null},normalizePath:function(F){for(F=F.split("").reverse().join("").replace(oe,"");F.length!==(F=F.replace(V,"")).length;);return F.split("").reverse().join("")},buildURLFromParts:function(F){return F.scheme+F.netLoc+F.path+F.params+F.query+F.fragment}};Te.exports=l})(this)},"./node_modules/webworkify-webpack/index.js":function(Te,ae,X){function le(C){var b={};function p(x){if(b[x])return b[x].exports;var g=b[x]={i:x,l:!1,exports:{}};return C[x].call(g.exports,g,g.exports,p),g.l=!0,g.exports}p.m=C,p.c=b,p.i=function(x){return x},p.d=function(x,g,h){p.o(x,g)||Object.defineProperty(x,g,{configurable:!1,enumerable:!0,get:h})},p.r=function(x){Object.defineProperty(x,"__esModule",{value:!0})},p.n=function(x){var g=x&&x.__esModule?function(){return x.default}:function(){return x};return p.d(g,"a",g),g},p.o=function(x,g){return Object.prototype.hasOwnProperty.call(x,g)},p.p="/",p.oe=function(x){throw console.error(x),x};var y=p(p.s=ENTRY_MODULE);return y.default||y}var j="[\\.|\\-|\\+|\\w|/|@]+",G="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+j+").*?\\)";function oe(C){return(C+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function V(C){return!isNaN(1*C)}function l(C,b,p){var y={};y[p]=[];var x=b.toString(),g=x.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!g)return y;for(var h=g[1],c=new RegExp("(\\\\n|\\W)"+oe(h)+G,"g"),d;d=c.exec(x);){if(d[3]==="dll-reference")continue;y[p].push(d[3])}for(c=new RegExp("\\("+oe(h)+'\\("(dll-reference\\s('+j+'))"\\)\\)'+G,"g");d=c.exec(x);)C[d[2]]||(y[p].push(d[1]),C[d[2]]=X(d[1]).m),y[d[2]]=y[d[2]]||[],y[d[2]].push(d[4]);for(var I=Object.keys(y),A=0;A<I.length;A++)for(var R=0;R<y[I[A]].length;R++)V(y[I[A]][R])&&(y[I[A]][R]=1*y[I[A]][R]);return y}function F(C){var b=Object.keys(C);return b.reduce(function(p,y){return p||C[y].length>0},!1)}function O(C,b){for(var p={main:[b]},y={main:[]},x={main:{}};F(p);)for(var g=Object.keys(p),h=0;h<g.length;h++){var c=g[h],d=p[c],I=d.pop();if(x[c]=x[c]||{},x[c][I]||!C[c][I])continue;x[c][I]=!0,y[c]=y[c]||[],y[c].push(I);for(var A=l(C,C[c][I],c),R=Object.keys(A),N=0;N<R.length;N++)p[R[N]]=p[R[N]]||[],p[R[N]]=p[R[N]].concat(A[R[N]])}return y}Te.exports=function(C,b){b=b||{};var p={main:X.m},y=b.all?{main:Object.keys(p.main)}:O(p,C),x="";Object.keys(y).filter(function(I){return I!=="main"}).forEach(function(I){for(var A=0;y[I][A];)A++;y[I].push(A),p[I][A]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",x=x+"var "+I+" = ("+le.toString().replace("ENTRY_MODULE",JSON.stringify(A))+")({"+y[I].map(function(R){return""+JSON.stringify(R)+": "+p[I][R].toString()}).join(",")+`});
`}),x=x+"new (("+le.toString().replace("ENTRY_MODULE",JSON.stringify(C))+")({"+y.main.map(function(I){return""+JSON.stringify(I)+": "+p.main[I].toString()}).join(",")+"}))(self);";var g=new window.Blob([x],{type:"text/javascript"});if(b.bare)return g;var h=window.URL||window.webkitURL||window.mozURL||window.msURL,c=h.createObjectURL(g),d=new window.Worker(c);return d.objectURL=c,d}},"./src/config.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"hlsDefaultConfig",function(){return N}),X.d(ae,"mergeConfig",function(){return D}),X.d(ae,"enableStreamingMode",function(){return E});var le=X("./src/controller/abr-controller.ts"),j=X("./src/controller/audio-stream-controller.ts"),G=X("./src/controller/audio-track-controller.ts"),oe=X("./src/controller/subtitle-stream-controller.ts"),V=X("./src/controller/subtitle-track-controller.ts"),l=X("./src/controller/buffer-controller.ts"),F=X("./src/controller/timeline-controller.ts"),O=X("./src/controller/cap-level-controller.ts"),C=X("./src/controller/fps-controller.ts"),b=X("./src/controller/eme-controller.ts"),p=X("./src/controller/cmcd-controller.ts"),y=X("./src/utils/xhr-loader.ts"),x=X("./src/utils/fetch-loader.ts"),g=X("./src/utils/cues.ts"),h=X("./src/utils/mediakeys-helper.ts"),c=X("./src/utils/logger.ts");function d(){return d=Object.assign||function(v){for(var _=1;_<arguments.length;_++){var T=arguments[_];for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&(v[w]=T[w])}return v},d.apply(this,arguments)}function I(v,_){var T=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);_&&(w=w.filter(function(M){return Object.getOwnPropertyDescriptor(v,M).enumerable})),T.push.apply(T,w)}return T}function A(v){for(var _=1;_<arguments.length;_++){var T=arguments[_]!=null?arguments[_]:{};_%2?I(Object(T),!0).forEach(function(w){R(v,w,T[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(T)):I(Object(T)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(T,w))})}return v}function R(v,_,T){return _ in v?Object.defineProperty(v,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[_]=T,v}var N=A(A({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:y.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:le.default,bufferController:l.default,capLevelController:O.default,fpsController:C.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:h.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},P()),{},{subtitleStreamController:oe.SubtitleStreamController,subtitleTrackController:V.default,timelineController:F.TimelineController,audioStreamController:j.default,audioTrackController:G.default,emeController:b.default,cmcdController:p.default});function P(){return{cueHandler:g.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function D(v,_){if((_.liveSyncDurationCount||_.liveMaxLatencyDurationCount)&&(_.liveSyncDuration||_.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(_.liveMaxLatencyDurationCount!==void 0&&(_.liveSyncDurationCount===void 0||_.liveMaxLatencyDurationCount<=_.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(_.liveMaxLatencyDuration!==void 0&&(_.liveSyncDuration===void 0||_.liveMaxLatencyDuration<=_.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return d({},v,_)}function E(v){var _=v.loader;if(_!==x.default&&_!==y.default)c.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),v.progressive=!1;else{var T=Object(x.fetchSupported)();T&&(v.loader=x.default,v.progressive=!0,v.enableSoftwareAES=!0,c.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/utils/ewma-bandwidth-estimator.ts"),G=X("./src/events.ts"),oe=X("./src/utils/buffer-helper.ts"),V=X("./src/errors.ts"),l=X("./src/types/loader.ts"),F=X("./src/utils/logger.ts");function O(p,y){for(var x=0;x<y.length;x++){var g=y[x];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function C(p,y,x){return y&&O(p.prototype,y),x&&O(p,x),p}var b=function(){function p(x){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=x;var g=x.config;this.bwEstimator=new j.default(g.abrEwmaSlowVoD,g.abrEwmaFastVoD,g.abrEwmaDefaultEstimate),this.registerListeners()}var y=p.prototype;return y.registerListeners=function(){var g=this.hls;g.on(G.Events.FRAG_LOADING,this.onFragLoading,this),g.on(G.Events.FRAG_LOADED,this.onFragLoaded,this),g.on(G.Events.FRAG_BUFFERED,this.onFragBuffered,this),g.on(G.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.on(G.Events.ERROR,this.onError,this)},y.unregisterListeners=function(){var g=this.hls;g.off(G.Events.FRAG_LOADING,this.onFragLoading,this),g.off(G.Events.FRAG_LOADED,this.onFragLoaded,this),g.off(G.Events.FRAG_BUFFERED,this.onFragBuffered,this),g.off(G.Events.LEVEL_LOADED,this.onLevelLoaded,this),g.off(G.Events.ERROR,this.onError,this)},y.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},y.onFragLoading=function(g,h){var c=h.frag;if(c.type===l.PlaylistLevelType.MAIN&&!this.timer){var d;this.fragCurrent=c,this.partCurrent=(d=h.part)!=null?d:null,this.timer=self.setInterval(this.onCheck,100)}},y.onLevelLoaded=function(g,h){var c=this.hls.config;h.details.live?this.bwEstimator.update(c.abrEwmaSlowLive,c.abrEwmaFastLive):this.bwEstimator.update(c.abrEwmaSlowVoD,c.abrEwmaFastVoD)},y._abandonRulesCheck=function(){var g=this.fragCurrent,h=this.partCurrent,c=this.hls,d=c.autoLevelEnabled,I=c.config,A=c.media;if(!g||!A)return;var R=h?h.stats:g.stats,N=h?h.duration:g.duration;if(R.aborted){F.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!d||A.paused||!A.playbackRate||!A.readyState)return;var P=performance.now()-R.loading.start,D=Math.abs(A.playbackRate);if(P<=500*N/D)return;var E=c.levels,v=c.minAutoLevel,_=E[g.level],T=R.total||Math.max(R.loaded,Math.round(N*_.maxBitrate/8)),w=Math.max(1,R.bwEstimate?R.bwEstimate/8:R.loaded*1e3/P),M=(T-R.loaded)/w,Z=A.currentTime,z=(oe.BufferHelper.bufferInfo(A,Z,I.maxBufferHole).end-Z)/D;if(z>=2*N/D||M<=z)return;var L=Number.POSITIVE_INFINITY,W;for(W=g.level-1;W>v;W--){var Y=E[W].maxBitrate;if(L=N*Y/(8*.8*w),L<z)break}if(L>=M)return;var H=this.bwEstimator.getEstimate();F.logger.warn("Fragment "+g.sn+(h?" part "+h.index:"")+" of level "+g.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+W+`
Current BW estimate: `+(Object(le.isFiniteNumber)(H)?(H/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+M.toFixed(3)+` s
Estimated load time for the next fragment: `+L.toFixed(3)+` s
Time to underbuffer: `+z.toFixed(3)+" s"),c.nextLoadLevel=W,this.bwEstimator.sample(P,R.loaded),this.clearTimer(),g.loader&&(this.fragCurrent=this.partCurrent=null,g.loader.abort()),c.trigger(G.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:g,part:h,stats:R})},y.onFragLoaded=function(g,h){var c=h.frag,d=h.part;if(c.type===l.PlaylistLevelType.MAIN&&Object(le.isFiniteNumber)(c.sn)){var I=d?d.stats:c.stats,A=d?d.duration:c.duration;if(this.clearTimer(),this.lastLoadedFragLevel=c.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var R=this.hls.levels[c.level],N=(R.loaded?R.loaded.bytes:0)+I.loaded,P=(R.loaded?R.loaded.duration:0)+A;R.loaded={bytes:N,duration:P},R.realBitrate=Math.round(8*N/P)}if(c.bitrateTest){var D={stats:I,frag:c,part:d,id:c.type};this.onFragBuffered(G.Events.FRAG_BUFFERED,D),c.bitrateTest=!1}}},y.onFragBuffered=function(g,h){var c=h.frag,d=h.part,I=d?d.stats:c.stats;if(I.aborted)return;if(c.type!==l.PlaylistLevelType.MAIN||c.sn==="initSegment")return;var A=I.parsing.end-I.loading.start;this.bwEstimator.sample(A,I.loaded),I.bwEstimate=this.bwEstimator.getEstimate(),c.bitrateTest?this.bitrateTestDelay=A/1e3:this.bitrateTestDelay=0},y.onError=function(g,h){switch(h.details){case V.ErrorDetails.FRAG_LOAD_ERROR:case V.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},y.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},y.getNextABRAutoLevel=function(){var g=this.fragCurrent,h=this.partCurrent,c=this.hls,d=c.maxAutoLevel,I=c.config,A=c.minAutoLevel,R=c.media,N=h?h.duration:g?g.duration:0,P=R?R.currentTime:0,D=R&&R.playbackRate!==0?Math.abs(R.playbackRate):1,E=this.bwEstimator?this.bwEstimator.getEstimate():I.abrEwmaDefaultEstimate,v=(oe.BufferHelper.bufferInfo(R,P,I.maxBufferHole).end-P)/D,_=this.findBestLevel(E,A,d,v,I.abrBandWidthFactor,I.abrBandWidthUpFactor);if(_>=0)return _;F.logger.trace((v?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var T=N?Math.min(N,I.maxStarvationDelay):I.maxStarvationDelay,w=I.abrBandWidthFactor,M=I.abrBandWidthUpFactor;if(!v){var Z=this.bitrateTestDelay;if(Z){var z=N?Math.min(N,I.maxLoadingDelay):I.maxLoadingDelay;T=z-Z,F.logger.trace("bitrate test took "+Math.round(1e3*Z)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*T)+" ms"),w=M=1}}return _=this.findBestLevel(E,A,d,v+T,w,M),Math.max(_,0)},y.findBestLevel=function(g,h,c,d,I,A){for(var R,N=this.fragCurrent,P=this.partCurrent,D=this.lastLoadedFragLevel,E=this.hls.levels,v=E[D],_=!!(v!=null&&(R=v.details)!==null&&R!==void 0&&R.live),T=v==null?void 0:v.codecSet,w=P?P.duration:N?N.duration:0,M=c;M>=h;M--){var Z=E[M];if(!Z||T&&Z.codecSet!==T)continue;var z=Z.details,L=(P?z==null?void 0:z.partTarget:z==null?void 0:z.averagetargetduration)||w,W=void 0;M<=D?W=I*g:W=A*g;var Y=E[M].maxBitrate,H=Y*L/W;if(F.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+M+"/"+Math.round(W)+"/"+Y+"/"+L+"/"+d+"/"+H),W>Y&&(!H||_&&!this.bitrateTestDelay||H<d))return M}return-1},C(p,[{key:"nextAutoLevel",get:function(){var g=this._nextAutoLevel,h=this.bwEstimator;if(g!==-1&&(!h||!h.canEstimate()))return g;var c=this.getNextABRAutoLevel();return g!==-1&&(c=Math.min(g,c)),c},set:function(g){this._nextAutoLevel=g}}]),p}();ae.default=b},"./src/controller/audio-stream-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/controller/base-stream-controller.ts"),G=X("./src/events.ts"),oe=X("./src/utils/buffer-helper.ts"),V=X("./src/controller/fragment-tracker.ts"),l=X("./src/types/level.ts"),F=X("./src/types/loader.ts"),O=X("./src/loader/fragment.ts"),C=X("./src/demux/chunk-cache.ts"),b=X("./src/demux/transmuxer-interface.ts"),p=X("./src/types/transmuxer.ts"),y=X("./src/controller/fragment-finders.ts"),x=X("./src/utils/discontinuities.ts"),g=X("./src/errors.ts"),h=X("./src/utils/logger.ts");function c(){return c=Object.assign||function(N){for(var P=1;P<arguments.length;P++){var D=arguments[P];for(var E in D)Object.prototype.hasOwnProperty.call(D,E)&&(N[E]=D[E])}return N},c.apply(this,arguments)}function d(N,P){N.prototype=Object.create(P.prototype),N.prototype.constructor=N,I(N,P)}function I(N,P){return I=Object.setPrototypeOf||function(E,v){return E.__proto__=v,E},I(N,P)}var A=100,R=function(N){d(P,N);function P(E,v){var _;return _=N.call(this,E,v,"[audio-stream-controller]")||this,_.videoBuffer=null,_.videoTrackCC=-1,_.waitingVideoCC=-1,_.audioSwitch=!1,_.trackId=-1,_.waitingData=null,_.mainDetails=null,_.bufferFlushed=!1,_._registerListeners(),_}var D=P.prototype;return D.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},D._registerListeners=function(){var v=this.hls;v.on(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),v.on(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.on(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.on(G.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.on(G.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),v.on(G.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),v.on(G.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),v.on(G.Events.ERROR,this.onError,this),v.on(G.Events.BUFFER_RESET,this.onBufferReset,this),v.on(G.Events.BUFFER_CREATED,this.onBufferCreated,this),v.on(G.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),v.on(G.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.on(G.Events.FRAG_BUFFERED,this.onFragBuffered,this)},D._unregisterListeners=function(){var v=this.hls;v.off(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),v.off(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.off(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.off(G.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.off(G.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),v.off(G.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),v.off(G.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),v.off(G.Events.ERROR,this.onError,this),v.off(G.Events.BUFFER_RESET,this.onBufferReset,this),v.off(G.Events.BUFFER_CREATED,this.onBufferCreated,this),v.off(G.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),v.off(G.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.off(G.Events.FRAG_BUFFERED,this.onFragBuffered,this)},D.onInitPtsFound=function(v,_){var T=_.frag,w=_.id,M=_.initPTS;if(w==="main"){var Z=T.cc;this.initPTS[T.cc]=M,this.log("InitPTS for cc: "+Z+" found from main: "+M),this.videoTrackCC=Z,this.state===j.State.WAITING_INIT_PTS&&this.tick()}},D.startLoad=function(v){if(!this.levels){this.startPosition=v,this.state=j.State.STOPPED;return}var _=this.lastCurrentTime;this.stopLoad(),this.setInterval(A),this.fragLoadError=0,_>0&&v===-1?(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),this.state=j.State.IDLE):(this.loadedmetadata=!1,this.state=j.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=v,this.tick()},D.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_TRACK:{var v,_=this.levels,T=this.trackId,w=_==null||((v=_[T])===null||v===void 0)?void 0:v.details;if(w){if(this.waitForCdnTuneIn(w))break;this.state=j.State.WAITING_INIT_PTS}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var M,Z=performance.now(),z=this.retryDate;(!z||Z>=z||(M=this.media)!==null&&M!==void 0&&M.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=j.State.IDLE);break}case j.State.WAITING_INIT_PTS:{var L=this.waitingData;if(L){var W=L.frag,Y=L.part,H=L.cache,ne=L.complete;if(this.initPTS[W.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.FRAG_LOADING;var ce=H.flush(),we={frag:W,part:Y,payload:ce,networkDetails:null};this._handleFragmentLoadProgress(we),ne&&N.prototype._handleFragmentLoadComplete.call(this,we)}else if(this.videoTrackCC!==this.waitingVideoCC)h.logger.log("Waiting fragment cc ("+W.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Ce=this.getLoadPosition(),Ke=oe.BufferHelper.bufferInfo(this.mediaBuffer,Ce,this.config.maxBufferHole),Ie=Object(y.fragmentWithinToleranceTest)(Ke.end,this.config.maxFragLookUpTolerance,W);Ie<0&&(h.logger.log("Waiting fragment cc ("+W.cc+") @ "+W.start+" cancelled because another fragment at "+Ke.end+" is needed"),this.clearWaitingFragment())}}else this.state=j.State.IDLE}}this.onTickEnd()},D.clearWaitingFragment=function(){var v=this.waitingData;v&&(this.fragmentTracker.removeFragment(v.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.IDLE)},D.onTickEnd=function(){var v=this.media;if(!v||!v.readyState)return;var _=this.mediaBuffer?this.mediaBuffer:v,T=_.buffered;!this.loadedmetadata&&T.length&&(this.loadedmetadata=!0),this.lastCurrentTime=v.currentTime},D.doTickIdle=function(){var v,_,T=this.hls,w=this.levels,M=this.media,Z=this.trackId,z=T.config;if(!w||!w[Z])return;if(!M&&(this.startFragRequested||!z.startFragPrefetch))return;var L=w[Z],W=L.details;if(!W||W.live&&this.levelLastLoaded!==Z||this.waitForCdnTuneIn(W)){this.state=j.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,O.ElementaryStreamTypes.AUDIO,F.PlaylistLevelType.AUDIO));var Y=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,F.PlaylistLevelType.AUDIO);if(Y===null)return;var H=Y.len,ne=this.getMaxBufferLength(),ce=this.audioSwitch;if(H>=ne&&!ce)return;if(!ce&&this._streamEnded(Y,W)){T.trigger(G.Events.BUFFER_EOS,{type:"audio"}),this.state=j.State.ENDED;return}var we=W.fragments,Ce=we[0].start,Ke=Y.end;if(ce){var Ie=this.getLoadPosition();Ke=Ie,W.PTSKnown&&Ie<Ce&&((Y.end>Ce||Y.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),M.currentTime=Ce+.05))}var je=this.getNextFragment(Ke,W);if(!je){this.bufferFlushed=!0;return}((v=je.decryptdata)===null||v===void 0?void 0:v.keyFormat)==="identity"&&!((_=je.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(je,W):this.loadFragment(je,W,Ke)},D.getMaxBufferLength=function(){var v=N.prototype.getMaxBufferLength.call(this),_=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,F.PlaylistLevelType.MAIN);return _===null?v:Math.max(v,_.len)},D.onMediaDetaching=function(){this.videoBuffer=null,N.prototype.onMediaDetaching.call(this)},D.onAudioTracksUpdated=function(v,_){var T=_.audioTracks;this.resetTransmuxer(),this.levels=T.map(function(w){return new l.Level(w)})},D.onAudioTrackSwitching=function(v,_){var T=!!_.url;this.trackId=_.id;var w=this.fragCurrent;w!=null&&w.loader&&w.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),T?this.setInterval(A):this.resetTransmuxer(),T?(this.audioSwitch=!0,this.state=j.State.IDLE):this.state=j.State.STOPPED,this.tick()},D.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},D.onLevelLoaded=function(v,_){this.mainDetails=_.details},D.onAudioTrackLoaded=function(v,_){var T,w=this.levels,M=_.details,Z=_.id;if(!w){this.warn("Audio tracks were reset while loading level "+Z);return}this.log("Track "+Z+" loaded ["+M.startSN+","+M.endSN+"],duration:"+M.totalduration);var z=w[Z],L=0;if(M.live||(T=z.details)!==null&&T!==void 0&&T.live){var W=this.mainDetails;if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed||!W)return;!z.details&&M.hasProgramDateTime&&W.hasProgramDateTime?(Object(x.alignMediaPlaylistByPDT)(M,W),L=M.fragments[0].start):L=this.alignPlaylists(M,z.details)}z.details=M,this.levelLastLoaded=Z,!this.startFragRequested&&(this.mainDetails||!M.live)&&this.setStartPosition(z.details,L),this.state===j.State.WAITING_TRACK&&!this.waitForCdnTuneIn(M)&&(this.state=j.State.IDLE),this.tick()},D._handleFragmentLoadProgress=function(v){var _,T=v.frag,w=v.part,M=v.payload,Z=this.config,z=this.trackId,L=this.levels;if(!L){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+T.sn+" of level "+T.level+" will not be buffered");return}var W=L[z];console.assert(W,"Audio track is defined on fragment load progress");var Y=W.details;console.assert(Y,"Audio track details are defined on fragment load progress");var H=Z.defaultAudioCodec||W.audioCodec||"mp4a.40.2",ne=this.transmuxer;ne||(ne=this.transmuxer=new b.default(this.hls,F.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var ce=this.initPTS[T.cc],we=(_=T.initSegment)===null||_===void 0?void 0:_.data;if(ce!==void 0){var Ce=!1,Ke=w?w.index:-1,Ie=Ke!==-1,je=new p.ChunkMetadata(T.level,T.sn,T.stats.chunkCount,M.byteLength,Ke,Ie);ne.push(M,we,H,"",T,w,Y.totalduration,Ce,je,ce)}else{h.logger.log("Unknown video PTS for cc "+T.cc+", waiting for video PTS before demuxing audio frag "+T.sn+" of ["+Y.startSN+" ,"+Y.endSN+"],track "+z);var Ve=this.waitingData=this.waitingData||{frag:T,part:w,cache:new C.default,complete:!1},$e=Ve.cache;$e.push(new Uint8Array(M)),this.waitingVideoCC=this.videoTrackCC,this.state=j.State.WAITING_INIT_PTS}},D._handleFragmentLoadComplete=function(v){if(this.waitingData){this.waitingData.complete=!0;return}N.prototype._handleFragmentLoadComplete.call(this,v)},D.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},D.onBufferCreated=function(v,_){var T=_.tracks.audio;T&&(this.mediaBuffer=T.buffer),_.tracks.video&&(this.videoBuffer=_.tracks.video.buffer)},D.onFragBuffered=function(v,_){var T=_.frag,w=_.part;if(T.type!==F.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(T)){this.warn("Fragment "+T.sn+(w?" p: "+w.index:"")+" of level "+T.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}T.sn!=="initSegment"&&(this.fragPrevious=T,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(G.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(T,w)},D.onError=function(v,_){switch(_.details){case g.ErrorDetails.FRAG_LOAD_ERROR:case g.ErrorDetails.FRAG_LOAD_TIMEOUT:case g.ErrorDetails.KEY_LOAD_ERROR:case g.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(F.PlaylistLevelType.AUDIO,_);break;case g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case g.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==j.State.ERROR&&this.state!==j.State.STOPPED&&(this.state=_.fatal?j.State.ERROR:j.State.IDLE,this.warn(_.details+" while loading frag, switching to "+this.state+" state"));break;case g.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="audio"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var T=!0,w=this.getFwdBufferInfo(this.mediaBuffer,F.PlaylistLevelType.AUDIO);w&&w.len>.5&&(T=!this.reduceMaxBufferLength(w.len)),T&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,N.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},D.onBufferFlushed=function(v,_){var T=_.type;T===O.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},D._handleTransmuxComplete=function(v){var _,T="audio",w=this.hls,M=v.remuxResult,Z=v.chunkMeta,z=this.getCurrentContext(Z);if(!z){this.warn("The loading context changed while buffering fragment "+Z.sn+" of level "+Z.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(Z.level);return}var L=z.frag,W=z.part,Y=M.audio,H=M.text,ne=M.id3,ce=M.initSegment;if(this.fragContextChanged(L))return;if(this.state=j.State.PARSING,this.audioSwitch&&Y&&this.completeAudioSwitch(),ce!=null&&ce.tracks&&(this._bufferInitSegment(ce.tracks,L,Z),w.trigger(G.Events.FRAG_PARSING_INIT_SEGMENT,{frag:L,id:T,tracks:ce.tracks})),Y){var we=Y.startPTS,Ce=Y.endPTS,Ke=Y.startDTS,Ie=Y.endDTS;W&&(W.elementaryStreams[O.ElementaryStreamTypes.AUDIO]={startPTS:we,endPTS:Ce,startDTS:Ke,endDTS:Ie}),L.setElementaryStreamInfo(O.ElementaryStreamTypes.AUDIO,we,Ce,Ke,Ie),this.bufferFragmentData(Y,L,W,Z)}if(ne!=null&&(_=ne.samples)!==null&&_!==void 0&&_.length){var je=c({frag:L,id:T},ne);w.trigger(G.Events.FRAG_PARSING_METADATA,je)}if(H){var Ve=c({frag:L,id:T},H);w.trigger(G.Events.FRAG_PARSING_USERDATA,Ve)}},D._bufferInitSegment=function(v,_,T){if(this.state!==j.State.PARSING)return;v.video&&delete v.video;var w=v.audio;if(!w)return;w.levelCodec=w.codec,w.id="audio",this.log("Init audio buffer, container:"+w.container+", codecs[parsed]=["+w.codec+"]"),this.hls.trigger(G.Events.BUFFER_CODECS,v);var M=w.initSegment;if(M!=null&&M.byteLength){var Z={type:"audio",frag:_,part:null,chunkMeta:T,parent:_.type,data:M};this.hls.trigger(G.Events.BUFFER_APPENDING,Z)}this.tick()},D.loadFragment=function(v,_,T){var w=this.fragmentTracker.getState(v);this.fragCurrent=v,(this.audioSwitch||w===V.FragmentState.NOT_LOADED||w===V.FragmentState.PARTIAL)&&(v.sn==="initSegment"?this._loadInitSegment(v):_.live&&!Object(le.isFiniteNumber)(this.initPTS[v.cc])?(this.log("Waiting for video PTS in continuity counter "+v.cc+" of live stream before loading audio fragment "+v.sn+" of level "+this.trackId),this.state=j.State.WAITING_INIT_PTS):(this.startFragRequested=!0,N.prototype.loadFragment.call(this,v,_,T)))},D.completeAudioSwitch=function(){var v=this.hls,_=this.media,T=this.trackId;_&&(this.log("Switching audio track : flushing all audio"),N.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,v.trigger(G.Events.AUDIO_TRACK_SWITCHED,{id:T})},P}(j.default);ae.default=R},"./src/controller/audio-track-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/errors.ts"),G=X("./src/controller/base-playlist-controller.ts"),oe=X("./src/types/loader.ts");function V(b,p){for(var y=0;y<p.length;y++){var x=p[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(b,x.key,x)}}function l(b,p,y){return p&&V(b.prototype,p),y&&V(b,y),b}function F(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,O(b,p)}function O(b,p){return O=Object.setPrototypeOf||function(x,g){return x.__proto__=g,x},O(b,p)}var C=function(b){F(p,b);function p(x){var g;return g=b.call(this,x,"[audio-track-controller]")||this,g.tracks=[],g.groupId=null,g.tracksInGroup=[],g.trackId=-1,g.trackName="",g.selectDefaultTrack=!0,g.registerListeners(),g}var y=p.prototype;return y.registerListeners=function(){var g=this.hls;g.on(le.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.on(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),g.on(le.Events.LEVEL_LOADING,this.onLevelLoading,this),g.on(le.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),g.on(le.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),g.on(le.Events.ERROR,this.onError,this)},y.unregisterListeners=function(){var g=this.hls;g.off(le.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.off(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),g.off(le.Events.LEVEL_LOADING,this.onLevelLoading,this),g.off(le.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),g.off(le.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),g.off(le.Events.ERROR,this.onError,this)},y.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,b.prototype.destroy.call(this)},y.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},y.onManifestParsed=function(g,h){this.tracks=h.audioTracks||[]},y.onAudioTrackLoaded=function(g,h){var c=h.id,d=h.details,I=this.tracksInGroup[c];if(!I){this.warn("Invalid audio track id "+c);return}var A=I.details;I.details=h.details,this.log("audioTrack "+c+" loaded ["+d.startSN+"-"+d.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,h,A))},y.onLevelLoading=function(g,h){this.switchLevel(h.level)},y.onLevelSwitching=function(g,h){this.switchLevel(h.level)},y.switchLevel=function(g){var h=this.hls.levels[g];if(!(h!=null&&h.audioGroupIds))return;var c=h.audioGroupIds[h.urlId];if(this.groupId!==c){this.groupId=c;var d=this.tracks.filter(function(A){return!c||A.groupId===c});this.selectDefaultTrack&&!d.some(function(A){return A.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=d;var I={audioTracks:d};this.log("Updating audio tracks, "+d.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(le.Events.AUDIO_TRACKS_UPDATED,I),this.selectInitialTrack()}},y.onError=function(g,h){if(b.prototype.onError.call(this,g,h),h.fatal||!h.context)return;h.context.type===oe.PlaylistContextType.AUDIO_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},y.setAudioTrack=function(g){var h=this.tracksInGroup;if(g<0||g>=h.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var c=h[this.trackId];this.log("Now switching to audio-track index "+g);var d=h[g],I=d.id,A=d.groupId,R=A===void 0?"":A,N=d.name,P=d.type,D=d.url;if(this.trackId=g,this.trackName=N,this.selectDefaultTrack=!1,this.hls.trigger(le.Events.AUDIO_TRACK_SWITCHING,{id:I,groupId:R,name:N,type:P,url:D}),d.details&&!d.details.live)return;var E=this.switchParams(d.url,c==null?void 0:c.details);this.loadPlaylist(E)},y.selectInitialTrack=function(){var g=this.tracksInGroup;console.assert(g.length,"Initial audio track should be selected when tracks are known");var h=this.trackName,c=this.findTrackId(h)||this.findTrackId();c!==-1?this.setAudioTrack(c):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},y.findTrackId=function(g){for(var h=this.tracksInGroup,c=0;c<h.length;c++){var d=h[c];if((!this.selectDefaultTrack||d.default)&&(!g||g===d.name))return d.id}return-1},y.loadPlaylist=function(g){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var c=h.id,d=h.groupId,I=h.url;if(g)try{I=g.addDirectives(I)}catch(A){this.warn("Could not construct new URL with HLS Delivery Directives: "+A)}this.log("loading audio-track playlist for id: "+c),this.clearTimer(),this.hls.trigger(le.Events.AUDIO_TRACK_LOADING,{url:I,id:c,groupId:d,deliveryDirectives:g||null})}},l(p,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(g){this.selectDefaultTrack=!1,this.setAudioTrack(g)}}]),p}(G.default);ae.default=C},"./src/controller/base-playlist-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return l});var le=X("./src/polyfills/number.ts"),j=X("./src/types/level.ts"),G=X("./src/controller/level-helper.ts"),oe=X("./src/utils/logger.ts"),V=X("./src/errors.ts"),l=function(){function F(C,b){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=oe.logger.log.bind(oe.logger,b+":"),this.warn=oe.logger.warn.bind(oe.logger,b+":"),this.hls=C}var O=F.prototype;return O.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},O.onError=function(b,p){p.fatal&&p.type===V.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},O.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},O.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},O.stopLoad=function(){this.canLoad=!1,this.clearTimer()},O.switchParams=function(b,p){var y=p==null?void 0:p.renditionReports;if(y)for(var x=0;x<y.length;x++){var g=y[x],h=""+g.URI;if(h===b.substr(-h.length)){var c=parseInt(g["LAST-MSN"]),d=parseInt(g["LAST-PART"]);if(p&&this.hls.config.lowLatencyMode){var I=Math.min(p.age-p.partTarget,p.targetduration);d!==void 0&&I>p.partTarget&&(d+=1)}if(Object(le.isFiniteNumber)(c))return new j.HlsUrlParameters(c,Object(le.isFiniteNumber)(d)?d:void 0,j.HlsSkip.No)}}},O.loadPlaylist=function(b){},O.shouldLoadTrack=function(b){return this.canLoad&&b&&!!b.url&&(!b.details||b.details.live)},O.playlistLoaded=function(b,p,y){var x=this,g=p.details,h=p.stats,c=h.loading.end?Math.max(0,self.performance.now()-h.loading.end):0;if(g.advancedDateTime=Date.now()-c,g.live||y!=null&&y.live){if(g.reloaded(y),y&&this.log("live playlist "+b+" "+(g.advanced?"REFRESHED "+g.lastPartSn+"-"+g.lastPartIndex:"MISSED")),y&&g.fragments.length>0&&Object(G.mergeDetails)(y,g),!this.canLoad||!g.live)return;var d,I=void 0,A=void 0;if(g.canBlockReload&&g.endSN&&g.advanced){var R=this.hls.config.lowLatencyMode,N=g.lastPartSn,P=g.endSN,D=g.lastPartIndex,E=D!==-1,v=N===P,_=R?0:D;E?(I=v?P+1:N,A=v?_:D+1):I=P+1;var T=g.age,w=T+g.ageHeader,M=Math.min(w-g.partTarget,g.targetduration*1.5);if(M>0){if(y&&M>y.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+y.tuneInGoal+" to: "+M+" with playlist age: "+g.age),M=0;else{var Z=Math.floor(M/g.targetduration);if(I+=Z,A!==void 0){var z=Math.round(M%g.targetduration/g.partTarget);A+=z}this.log("CDN Tune-in age: "+g.ageHeader+"s last advanced "+T.toFixed(2)+"s goal: "+M+" skip sn "+Z+" to part "+A)}g.tuneInGoal=M}if(d=this.getDeliveryDirectives(g,p.deliveryDirectives,I,A),R||!v){this.loadPlaylist(d);return}}else d=this.getDeliveryDirectives(g,p.deliveryDirectives,I,A);var L=Object(G.computeReloadInterval)(g,h);I!==void 0&&g.canBlockReload&&(L-=g.partTarget||1),this.log("reload live playlist "+b+" in "+Math.round(L)+" ms"),this.timer=self.setTimeout(function(){return x.loadPlaylist(d)},L)}else this.clearTimer()},O.getDeliveryDirectives=function(b,p,y,x){var g=Object(j.getSkipValue)(b,y);return p!=null&&p.skip&&b.deltaUpdateFailed&&(y=p.msn,x=p.part,g=j.HlsSkip.No),new j.HlsUrlParameters(y,x,g)},O.retryLoadingOrFail=function(b){var p=this,y=this.hls.config,x=this.retryCount<y.levelLoadingMaxRetry;if(x){var g;if(this.retryCount++,b.details.indexOf("LoadTimeOut")>-1&&(g=b.context)!==null&&g!==void 0&&g.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+b.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*y.levelLoadingRetryDelay,y.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return p.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+b.details+'"')}}else this.warn('cannot recover from error "'+b.details+'"'),this.clearTimer(),b.fatal=!0;return x},F}()},"./src/controller/base-stream-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"State",function(){return P}),X.d(ae,"default",function(){return D});var le=X("./src/polyfills/number.ts"),j=X("./src/task-loop.ts"),G=X("./src/controller/fragment-tracker.ts"),oe=X("./src/utils/buffer-helper.ts"),V=X("./src/utils/logger.ts"),l=X("./src/events.ts"),F=X("./src/errors.ts"),O=X("./src/types/transmuxer.ts"),C=X("./src/utils/mp4-tools.ts"),b=X("./src/utils/discontinuities.ts"),p=X("./src/controller/fragment-finders.ts"),y=X("./src/controller/level-helper.ts"),x=X("./src/loader/fragment-loader.ts"),g=X("./src/crypt/decrypter.ts"),h=X("./src/utils/time-ranges.ts"),c=X("./src/types/loader.ts");function d(E,v){for(var _=0;_<v.length;_++){var T=v[_];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}function I(E,v,_){return v&&d(E.prototype,v),_&&d(E,_),E}function A(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function R(E,v){E.prototype=Object.create(v.prototype),E.prototype.constructor=E,N(E,v)}function N(E,v){return N=Object.setPrototypeOf||function(T,w){return T.__proto__=w,T},N(E,v)}var P={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},D=function(E){R(v,E);function v(T,w,M){var Z;return Z=E.call(this)||this,Z.hls=void 0,Z.fragPrevious=null,Z.fragCurrent=null,Z.fragmentTracker=void 0,Z.transmuxer=null,Z._state=P.STOPPED,Z.media=void 0,Z.mediaBuffer=void 0,Z.config=void 0,Z.bitrateTest=!1,Z.lastCurrentTime=0,Z.nextLoadPosition=0,Z.startPosition=0,Z.loadedmetadata=!1,Z.fragLoadError=0,Z.retryDate=0,Z.levels=null,Z.fragmentLoader=void 0,Z.levelLastLoaded=null,Z.startFragRequested=!1,Z.decrypter=void 0,Z.initPTS=[],Z.onvseeking=null,Z.onvended=null,Z.logPrefix="",Z.log=void 0,Z.warn=void 0,Z.logPrefix=M,Z.log=V.logger.log.bind(V.logger,M+":"),Z.warn=V.logger.warn.bind(V.logger,M+":"),Z.hls=T,Z.fragmentLoader=new x.default(T.config),Z.fragmentTracker=w,Z.config=T.config,Z.decrypter=new g.default(T,T.config),T.on(l.Events.KEY_LOADED,Z.onKeyLoaded,A(Z)),Z}var _=v.prototype;return _.doTick=function(){this.onTickEnd()},_.onTickEnd=function(){},_.startLoad=function(w){},_.stopLoad=function(){this.fragmentLoader.abort();var w=this.fragCurrent;w&&this.fragmentTracker.removeFragment(w),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=P.STOPPED},_._streamEnded=function(w,M){var Z=this.fragCurrent,z=this.fragmentTracker;if(!M.live&&Z&&Z.sn===M.endSN&&!w.nextStart){var L=z.getState(Z);return L===G.FragmentState.PARTIAL||L===G.FragmentState.OK}return!1},_.onMediaAttached=function(w,M){var Z=this.media=this.mediaBuffer=M.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),Z.addEventListener("seeking",this.onvseeking),Z.addEventListener("ended",this.onvended);var z=this.config;this.levels&&z.autoStartLoad&&this.state===P.STOPPED&&this.startLoad(z.startPosition)},_.onMediaDetaching=function(){var w=this.media;w!=null&&w.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),w&&(w.removeEventListener("seeking",this.onvseeking),w.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},_.onMediaSeeking=function(){var w=this.config,M=this.fragCurrent,Z=this.media,z=this.mediaBuffer,L=this.state,W=Z?Z.currentTime:0,Y=oe.BufferHelper.bufferInfo(z||Z,W,w.maxBufferHole);if(this.log("media seeking to "+(Object(le.isFiniteNumber)(W)?W.toFixed(3):W)+", state: "+L),L===P.ENDED)this.resetLoadingState();else if(M&&!Y.len){var H=w.maxFragLookUpTolerance,ne=M.start-H,ce=M.start+M.duration+H,we=W>ce;(W<ne||we)&&(we&&M.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),M.loader.abort()),this.resetLoadingState())}Z&&(this.lastCurrentTime=W),!this.loadedmetadata&&!Y.len&&(this.nextLoadPosition=this.startPosition=W),this.tickImmediate()},_.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},_.onKeyLoaded=function(w,M){if(this.state!==P.KEY_LOADING||M.frag!==this.fragCurrent||!this.levels)return;this.state=P.IDLE;var Z=this.levels[M.frag.level].details;Z&&this.loadFragment(M.frag,Z,M.frag.start)},_.onHandlerDestroying=function(){this.stopLoad(),E.prototype.onHandlerDestroying.call(this)},_.onHandlerDestroyed=function(){this.state=P.STOPPED,this.hls.off(l.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,E.prototype.onHandlerDestroyed.call(this)},_.loadKey=function(w,M){this.log("Loading key for "+w.sn+" of ["+M.startSN+"-"+M.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+w.level),this.state=P.KEY_LOADING,this.fragCurrent=w,this.hls.trigger(l.Events.KEY_LOADING,{frag:w})},_.loadFragment=function(w,M,Z){this._loadFragForPlayback(w,M,Z)},_._loadFragForPlayback=function(w,M,Z){var z=this,L=function(Y){if(z.fragContextChanged(w)){z.warn("Fragment "+w.sn+(Y.part?" p: "+Y.part.index:"")+" of level "+w.level+" was dropped during download."),z.fragmentTracker.removeFragment(w);return}w.stats.chunkCount++,z._handleFragmentLoadProgress(Y)};this._doFragLoad(w,M,Z,L).then(function(W){if(!W)return;z.fragLoadError=0;var Y=z.state;if(z.fragContextChanged(w)){(Y===P.FRAG_LOADING||Y===P.BACKTRACKING||!z.fragCurrent&&Y===P.PARSING)&&(z.fragmentTracker.removeFragment(w),z.state=P.IDLE);return}if("payload"in W&&(z.log("Loaded fragment "+w.sn+" of level "+w.level),z.hls.trigger(l.Events.FRAG_LOADED,W),z.state===P.BACKTRACKING)){z.fragmentTracker.backtrack(w,W),z.resetFragmentLoading(w);return}z._handleFragmentLoadComplete(W)}).catch(function(W){z.warn(W),z.resetFragmentLoading(w)})},_.flushMainBuffer=function(w,M,Z){if(Z===void 0&&(Z=null),!(w-M))return;var z={startOffset:w,endOffset:M,type:Z};this.fragLoadError=0,this.hls.trigger(l.Events.BUFFER_FLUSHING,z)},_._loadInitSegment=function(w){var M=this;this._doFragLoad(w).then(function(Z){if(!Z||M.fragContextChanged(w)||!M.levels)throw new Error("init load aborted");return Z}).then(function(Z){var z=M.hls,L=Z.payload,W=w.decryptdata;if(L&&L.byteLength>0&&W&&W.key&&W.iv&&W.method==="AES-128"){var Y=self.performance.now();return M.decrypter.webCryptoDecrypt(new Uint8Array(L),W.key.buffer,W.iv.buffer).then(function(H){var ne=self.performance.now();return z.trigger(l.Events.FRAG_DECRYPTED,{frag:w,payload:H,stats:{tstart:Y,tdecrypt:ne}}),Z.payload=H,Z})}return Z}).then(function(Z){var z=M.fragCurrent,L=M.hls,W=M.levels;if(!W)throw new Error("init load aborted, missing levels");var Y=W[w.level].details;console.assert(Y,"Level details are defined when init segment is loaded");var H=w.stats;M.state=P.IDLE,M.fragLoadError=0,w.data=new Uint8Array(Z.payload),H.parsing.start=H.buffering.start=self.performance.now(),H.parsing.end=H.buffering.end=self.performance.now(),Z.frag===z&&L.trigger(l.Events.FRAG_BUFFERED,{stats:H,frag:z,part:null,id:w.type}),M.tick()}).catch(function(Z){M.warn(Z),M.resetFragmentLoading(w)})},_.fragContextChanged=function(w){var M=this.fragCurrent;return!w||!M||w.level!==M.level||w.sn!==M.sn||w.urlId!==M.urlId},_.fragBufferedComplete=function(w,M){var Z=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+w.type+" sn: "+w.sn+(M?" part: "+M.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+w.level+" "+h.default.toString(oe.BufferHelper.getBuffered(Z))),this.state=P.IDLE,this.tick()},_._handleFragmentLoadComplete=function(w){var M=this.transmuxer;if(!M)return;var Z=w.frag,z=w.part,L=w.partsLoaded,W=!L||L.length===0||L.some(function(H){return!H}),Y=new O.ChunkMetadata(Z.level,Z.sn,Z.stats.chunkCount+1,0,z?z.index:-1,!W);M.flush(Y)},_._handleFragmentLoadProgress=function(w){},_._doFragLoad=function(w,M,Z,z){var L=this;if(Z===void 0&&(Z=null),!this.levels)throw new Error("frag load aborted, missing levels");if(Z=Math.max(w.start,Z||0),this.config.lowLatencyMode&&M){var W=M.partList;if(W&&z){Z>w.end&&M.fragmentHint&&(w=M.fragmentHint);var Y=this.getNextPart(W,w,Z);if(Y>-1){var H=W[Y];return this.log("Loading part sn: "+w.sn+" p: "+H.index+" cc: "+w.cc+" of playlist ["+M.startSN+"-"+M.endSN+"] parts [0-"+Y+"-"+(W.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+w.level+", target: "+parseFloat(Z.toFixed(3))),this.nextLoadPosition=H.start+H.duration,this.state=P.FRAG_LOADING,this.hls.trigger(l.Events.FRAG_LOADING,{frag:w,part:W[Y],targetBufferTime:Z}),this.doFragPartsLoad(w,W,Y,z).catch(function(ne){return L.handleFragLoadError(ne)})}else if(!w.url||this.loadedEndOfParts(W,Z))return Promise.resolve(null)}}return this.log("Loading fragment "+w.sn+" cc: "+w.cc+" "+(M?"of ["+M.startSN+"-"+M.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+w.level+", target: "+parseFloat(Z.toFixed(3))),Object(le.isFiniteNumber)(w.sn)&&!this.bitrateTest&&(this.nextLoadPosition=w.start+w.duration),this.state=P.FRAG_LOADING,this.hls.trigger(l.Events.FRAG_LOADING,{frag:w,targetBufferTime:Z}),this.fragmentLoader.load(w,z).catch(function(ne){return L.handleFragLoadError(ne)})},_.doFragPartsLoad=function(w,M,Z,z){var L=this;return new Promise(function(W,Y){var H=[],ne=function ce(we){var Ce=M[we];L.fragmentLoader.loadPart(w,Ce,z).then(function(Ke){H[Ce.index]=Ke;var Ie=Ke.part;L.hls.trigger(l.Events.FRAG_LOADED,Ke);var je=M[we+1];if(je&&je.fragment===w)ce(we+1);else return W({frag:w,part:Ie,partsLoaded:H})}).catch(Y)};ne(Z)})},_.handleFragLoadError=function(w){var M=w.data;return M&&M.details===F.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(M.frag,M.part):this.hls.trigger(l.Events.ERROR,M),null},_._handleTransmuxerFlush=function(w){var M=this.getCurrentContext(w);if(!M||this.state!==P.PARSING){this.fragCurrent||(this.state=P.IDLE);return}var Z=M.frag,z=M.part,L=M.level,W=self.performance.now();Z.stats.parsing.end=W,z&&(z.stats.parsing.end=W),this.updateLevelTiming(Z,z,L,w.partial)},_.getCurrentContext=function(w){var M=this.levels,Z=w.level,z=w.sn,L=w.part;if(!M||!M[Z])return this.warn("Levels object was unset while buffering fragment "+z+" of level "+Z+". The current chunk will not be buffered."),null;var W=M[Z],Y=L>-1?Object(y.getPartWith)(W,z,L):null,H=Y?Y.fragment:Object(y.getFragmentWithSN)(W,z,this.fragCurrent);return H?{frag:H,part:Y,level:W}:null},_.bufferFragmentData=function(w,M,Z,z){if(!w||this.state!==P.PARSING)return;var L=w.data1,W=w.data2,Y=L;if(L&&W&&(Y=Object(C.appendUint8Array)(L,W)),!Y||!Y.length)return;var H={type:w.type,frag:M,part:Z,chunkMeta:z,parent:M.type,data:Y};this.hls.trigger(l.Events.BUFFER_APPENDING,H),w.dropped&&w.independent&&!Z&&this.flushBufferGap(M)},_.flushBufferGap=function(w){var M=this.media;if(!M)return;if(!oe.BufferHelper.isBuffered(M,M.currentTime)){this.flushMainBuffer(0,w.start);return}var Z=M.currentTime,z=oe.BufferHelper.bufferInfo(M,Z,0),L=w.duration,W=Math.min(this.config.maxFragLookUpTolerance*2,L*.25),Y=Math.max(Math.min(w.start-W,z.end-W),Z+W);w.start-Y>W&&this.flushMainBuffer(Y,w.start)},_.getFwdBufferInfo=function(w,M){var Z=this.config,z=this.getLoadPosition();if(!Object(le.isFiniteNumber)(z))return null;var L=oe.BufferHelper.bufferInfo(w,z,Z.maxBufferHole);if(L.len===0&&L.nextStart!==void 0){var W=this.fragmentTracker.getBufferedFrag(z,M);if(W&&L.nextStart<W.end)return oe.BufferHelper.bufferInfo(w,z,Math.max(L.nextStart,Z.maxBufferHole))}return L},_.getMaxBufferLength=function(w){var M=this.config,Z;return w?Z=Math.max(8*M.maxBufferSize/w,M.maxBufferLength):Z=M.maxBufferLength,Math.min(Z,M.maxMaxBufferLength)},_.reduceMaxBufferLength=function(w){var M=this.config,Z=w||M.maxBufferLength;return M.maxMaxBufferLength>=Z?(M.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+M.maxMaxBufferLength+"s"),!0):!1},_.getNextFragment=function(w,M){var Z,z,L=M.fragments,W=L.length;if(!W)return null;var Y=this.config,H=L[0].start,ne;if(M.live){var ce=Y.initialLiveManifestSize;if(W<ce)return this.warn("Not enough fragments to start playback (have: "+W+", need: "+ce+")"),null;!M.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(ne=this.getInitialLiveFragment(M,L),this.startPosition=ne?this.hls.liveSyncPosition||ne.start:w)}else w<=H&&(ne=L[0]);if(!ne){var we=Y.lowLatencyMode?M.partEnd:M.fragmentEnd;ne=this.getFragmentAtPosition(w,we,M)}return(Z=ne)!==null&&Z!==void 0&&Z.initSegment&&!((z=ne)!==null&&z!==void 0&&z.initSegment.data)&&!this.bitrateTest&&(ne=ne.initSegment),ne},_.getNextPart=function(w,M,Z){for(var z=-1,L=!1,W=!0,Y=0,H=w.length;Y<H;Y++){var ne=w[Y];if(W=W&&!ne.independent,z>-1&&Z<ne.start)break;var ce=ne.loaded;!ce&&(L||ne.independent||W)&&ne.fragment===M&&(z=Y),L=ce}return z},_.loadedEndOfParts=function(w,M){var Z=w[w.length-1];return Z&&M>Z.start&&Z.loaded},_.getInitialLiveFragment=function(w,M){var Z=this.fragPrevious,z=null;if(Z){if(w.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+Z.programDateTime),z=Object(p.findFragmentByPDT)(M,Z.endProgramDateTime,this.config.maxFragLookUpTolerance)),!z){var L=Z.sn+1;if(L>=w.startSN&&L<=w.endSN){var W=M[L-w.startSN];Z.cc===W.cc&&(z=W,this.log("Live playlist, switching playlist, load frag with next SN: "+z.sn))}z||(z=Object(p.findFragWithCC)(M,Z.cc),z&&this.log("Live playlist, switching playlist, load frag with same CC: "+z.sn))}}else{var Y=this.hls.liveSyncPosition;Y!==null&&(z=this.getFragmentAtPosition(Y,this.bitrateTest?w.fragmentEnd:w.edge,w))}return z},_.getFragmentAtPosition=function(w,M,Z){var z=this.config,L=this.fragPrevious,W=Z.fragments,Y=Z.endSN,H=Z.fragmentHint,ne=z.maxFragLookUpTolerance,ce=!!(z.lowLatencyMode&&Z.partList&&H);ce&&H&&!this.bitrateTest&&(W=W.concat(H),Y=H.sn);var we;if(w<M){var Ce=w>M-ne?0:ne;we=Object(p.findFragmentByPTS)(L,W,w,Ce)}else we=W[W.length-1];if(we){var Ke=we.sn-Z.startSN,Ie=L&&we.level===L.level,je=W[Ke+1],Ve=this.fragmentTracker.getState(we);if(Ve===G.FragmentState.BACKTRACKED){we=null;for(var $e=Ke;W[$e]&&this.fragmentTracker.getState(W[$e])===G.FragmentState.BACKTRACKED;)L?we=W[$e--]:we=W[--$e];we||(we=je)}else L&&we.sn===L.sn&&!ce&&(Ie&&(we.sn<Y&&this.fragmentTracker.getState(je)!==G.FragmentState.OK?(this.log("SN "+we.sn+" just loaded, load next one: "+je.sn),we=je):we=null))}return we},_.synchronizeToLiveEdge=function(w){var M=this.config,Z=this.media;if(!Z)return;var z=this.hls.liveSyncPosition,L=Z.currentTime,W=w.fragments[0].start,Y=w.edge,H=L>=W-M.maxFragLookUpTolerance&&L<=Y;if(z!==null&&Z.duration>z&&(L<z||!H)){var ne=M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:M.liveMaxLatencyDurationCount*w.targetduration;(!H&&Z.readyState<4||L<Y-ne)&&(this.loadedmetadata||(this.nextLoadPosition=z),Z.readyState&&(this.warn("Playback: "+L.toFixed(3)+" is located too far from the end of live sliding playlist: "+Y+", reset currentTime to : "+z.toFixed(3)),Z.currentTime=z))}},_.alignPlaylists=function(w,M){var Z=this.levels,z=this.levelLastLoaded,L=this.fragPrevious,W=z!==null?Z[z]:null,Y=w.fragments.length;if(!Y)return this.warn("No fragments in live playlist"),0;var H=w.fragments[0].start,ne=!M,ce=w.alignedSliding&&Object(le.isFiniteNumber)(H);if(ne||!ce&&!H){Object(b.alignStream)(L,W,w);var we=w.fragments[0].start;return this.log("Live playlist sliding: "+we.toFixed(2)+" start-sn: "+(M?M.startSN:"na")+"->"+w.startSN+" prev-sn: "+(L?L.sn:"na")+" fragments: "+Y),we}return H},_.waitForCdnTuneIn=function(w){var M=3;return w.live&&w.canBlockReload&&w.tuneInGoal>Math.max(w.partHoldBack,w.partTarget*M)},_.setStartPosition=function(w,M){var Z=this.startPosition;if(Z<M&&(Z=-1),Z===-1||this.lastCurrentTime===-1){var z=w.startTimeOffset;Object(le.isFiniteNumber)(z)?(Z=M+z,z<0&&(Z+=w.totalduration),Z=Math.min(Math.max(M,Z),M+w.totalduration),this.log("Start time offset "+z+" found in playlist, adjust startPosition to "+Z),this.startPosition=Z):w.live?Z=this.hls.liveSyncPosition||M:this.startPosition=Z=0,this.lastCurrentTime=Z}this.nextLoadPosition=Z},_.getLoadPosition=function(){var w=this.media,M=0;return this.loadedmetadata&&w?M=w.currentTime:this.nextLoadPosition&&(M=this.nextLoadPosition),M},_.handleFragLoadAborted=function(w,M){this.transmuxer&&w.sn!=="initSegment"&&w.stats.aborted&&(this.warn("Fragment "+w.sn+(M?" part"+M.index:"")+" of level "+w.level+" was aborted"),this.resetFragmentLoading(w))},_.resetFragmentLoading=function(w){(!this.fragCurrent||!this.fragContextChanged(w))&&(this.state=P.IDLE)},_.onFragmentOrKeyLoadError=function(w,M){if(M.fatal)return;var Z=M.frag;if(!Z||Z.type!==w)return;var z=this.fragCurrent;console.assert(z&&Z.sn===z.sn&&Z.level===z.level&&Z.urlId===z.urlId,"Frag load error must match current frag to retry");var L=this.config;if(this.fragLoadError+1<=L.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(Z.level))return;var W=Math.min(Math.pow(2,this.fragLoadError)*L.fragLoadingRetryDelay,L.fragLoadingMaxRetryTimeout);this.warn("Fragment "+Z.sn+" of "+w+" "+Z.level+" failed to load, retrying in "+W+"ms"),this.retryDate=self.performance.now()+W,this.fragLoadError++,this.state=P.FRAG_LOADING_WAITING_RETRY}else M.levelRetry?(w===c.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=P.IDLE):(V.logger.error(M.details+" reaches max retry, redispatch as fatal ..."),M.fatal=!0,this.hls.stopLoad(),this.state=P.ERROR)},_.afterBufferFlushed=function(w,M,Z){if(!w)return;var z=oe.BufferHelper.getBuffered(w);this.fragmentTracker.detectEvictedFragments(M,z,Z),this.state===P.ENDED&&this.resetLoadingState()},_.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=P.IDLE},_.resetLiveStartWhenNotLoaded=function(w){if(!this.loadedmetadata){this.startFragRequested=!1;var M=this.levels?this.levels[w].details:null;if(M!=null&&M.live)return this.startPosition=-1,this.setStartPosition(M,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},_.updateLevelTiming=function(w,M,Z,z){var L=this,W=Z.details;console.assert(!!W,"level.details must be defined");var Y=Object.keys(w.elementaryStreams).reduce(function(H,ne){var ce=w.elementaryStreams[ne];if(ce){var we=ce.endPTS-ce.startPTS;if(we<=0)return L.warn("Could not parse fragment "+w.sn+" "+ne+" duration reliably ("+we+") resetting transmuxer to fallback to playlist timing"),L.resetTransmuxer(),H||!1;var Ce=z?0:Object(y.updateFragPTSDTS)(W,w,ce.startPTS,ce.endPTS,ce.startDTS,ce.endDTS);return L.hls.trigger(l.Events.LEVEL_PTS_UPDATED,{details:W,level:Z,drift:Ce,type:ne,frag:w,start:ce.startPTS,end:ce.endPTS}),!0}return H},!1);Y?(this.state=P.PARSED,this.hls.trigger(l.Events.FRAG_PARSED,{frag:w,part:M})):this.resetLoadingState()},_.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},I(v,[{key:"state",get:function(){return this._state},set:function(w){var M=this._state;M!==w&&(this._state=w,this.log(M+"->"+w))}}]),v}(j.default)},"./src/controller/buffer-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return p});var le=X("./src/polyfills/number.ts"),j=X("./src/events.ts"),G=X("./src/utils/logger.ts"),oe=X("./src/errors.ts"),V=X("./src/utils/buffer-helper.ts"),l=X("./src/utils/mediasource-helper.ts"),F=X("./src/loader/fragment.ts"),O=X("./src/controller/buffer-operation-queue.ts"),C=Object(l.getMediaSource)(),b=/([ha]vc.)(?:\.[^.,]+)+/,p=function(){function y(g){var h=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var c=h.hls,d=h.media,I=h.mediaSource;G.logger.log("[buffer-controller]: Media source opened"),d&&(h.updateMediaElementDuration(),c.trigger(j.Events.MEDIA_ATTACHED,{media:d})),I&&I.removeEventListener("sourceopen",h._onMediaSourceOpen),h.checkPendingTracks()},this._onMediaSourceClose=function(){G.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){G.logger.log("[buffer-controller]: Media source ended")},this.hls=g,this._initSourceBuffer(),this.registerListeners()}var x=y.prototype;return x.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},x.destroy=function(){this.unregisterListeners(),this.details=null},x.registerListeners=function(){var h=this.hls;h.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(j.Events.BUFFER_RESET,this.onBufferReset,this),h.on(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.on(j.Events.BUFFER_EOS,this.onBufferEos,this),h.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.on(j.Events.FRAG_PARSED,this.onFragParsed,this),h.on(j.Events.FRAG_CHANGED,this.onFragChanged,this)},x.unregisterListeners=function(){var h=this.hls;h.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(j.Events.BUFFER_RESET,this.onBufferReset,this),h.off(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.off(j.Events.BUFFER_EOS,this.onBufferEos,this),h.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.off(j.Events.FRAG_PARSED,this.onFragParsed,this),h.off(j.Events.FRAG_CHANGED,this.onFragChanged,this)},x._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new O.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},x.onManifestParsed=function(h,c){var d=2;(c.audio&&!c.video||!c.altAudio)&&(d=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=d,this.details=null,G.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},x.onMediaAttaching=function(h,c){var d=this.media=c.media;if(d&&C){var I=this.mediaSource=new C;I.addEventListener("sourceopen",this._onMediaSourceOpen),I.addEventListener("sourceended",this._onMediaSourceEnded),I.addEventListener("sourceclose",this._onMediaSourceClose),d.src=self.URL.createObjectURL(I),this._objectUrl=d.src}},x.onMediaDetaching=function(){var h=this.media,c=this.mediaSource,d=this._objectUrl;if(c){if(G.logger.log("[buffer-controller]: media source detaching"),c.readyState==="open")try{c.endOfStream()}catch(I){G.logger.warn("[buffer-controller]: onMediaDetaching: "+I.message+" while calling endOfStream")}this.onBufferReset(),c.removeEventListener("sourceopen",this._onMediaSourceOpen),c.removeEventListener("sourceended",this._onMediaSourceEnded),c.removeEventListener("sourceclose",this._onMediaSourceClose),h&&(d&&self.URL.revokeObjectURL(d),h.src===d?(h.removeAttribute("src"),h.load()):G.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(j.Events.MEDIA_DETACHED,void 0)},x.onBufferReset=function(){var h=this;this.getSourceBufferTypes().forEach(function(c){var d=h.sourceBuffer[c];try{d&&(h.removeBufferListeners(c),h.mediaSource&&h.mediaSource.removeSourceBuffer(d),h.sourceBuffer[c]=void 0)}catch(I){G.logger.warn("[buffer-controller]: Failed to reset the "+c+" buffer",I)}}),this._initSourceBuffer()},x.onBufferCodecs=function(h,c){var d=this,I=this.getSourceBufferTypes().length;if(Object.keys(c).forEach(function(A){if(I){var R=d.tracks[A];if(R&&typeof R.buffer.changeType=="function"){var N=c[A],P=N.codec,D=N.levelCodec,E=N.container,v=(R.levelCodec||R.codec).replace(b,"$1"),_=(D||P).replace(b,"$1");if(v!==_){var T=E+";codecs="+(D||P);d.appendChangeType(A,T)}}}else d.pendingTracks[A]=c[A]}),I)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},x.appendChangeType=function(h,c){var d=this,I=this.operationQueue,A={execute:function(){var N=d.sourceBuffer[h];N&&(G.logger.log("[buffer-controller]: changing "+h+" sourceBuffer type to "+c),N.changeType(c)),I.shiftAndExecuteNext(h)},onStart:function(){},onComplete:function(){},onError:function(N){G.logger.warn("[buffer-controller]: Failed to change "+h+" SourceBuffer type",N)}};I.append(A,h)},x.onBufferAppending=function(h,c){var d=this,I=this.hls,A=this.operationQueue,R=this.tracks,N=c.data,P=c.type,D=c.frag,E=c.part,v=c.chunkMeta,_=v.buffering[P],T=self.performance.now();_.start=T;var w=D.stats.buffering,M=E?E.stats.buffering:null;w.start===0&&(w.start=T),M&&M.start===0&&(M.start=T);var Z=R.audio,z=P==="audio"&&v.id===1&&(Z==null?void 0:Z.container)==="audio/mpeg",L={execute:function(){if(_.executeStart=self.performance.now(),z){var Y=d.sourceBuffer[P];if(Y){var H=D.start-Y.timestampOffset;Math.abs(H)>=.1&&(G.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+D.start+" (delta: "+H+") sn: "+D.sn+")"),Y.timestampOffset=D.start)}}d.appendExecutor(N,P)},onStart:function(){},onComplete:function(){var Y=self.performance.now();_.executeEnd=_.end=Y,w.first===0&&(w.first=Y),M&&M.first===0&&(M.first=Y);var H=d.sourceBuffer,ne={};for(var ce in H)ne[ce]=V.BufferHelper.getBuffered(H[ce]);d.appendError=0,d.hls.trigger(j.Events.BUFFER_APPENDED,{type:P,frag:D,part:E,chunkMeta:v,parent:D.type,timeRanges:ne})},onError:function(Y){G.logger.error("[buffer-controller]: Error encountered while trying to append to the "+P+" SourceBuffer",Y);var H={type:oe.ErrorTypes.MEDIA_ERROR,parent:D.type,details:oe.ErrorDetails.BUFFER_APPEND_ERROR,err:Y,fatal:!1};Y.code===DOMException.QUOTA_EXCEEDED_ERR?H.details=oe.ErrorDetails.BUFFER_FULL_ERROR:(d.appendError++,H.details=oe.ErrorDetails.BUFFER_APPEND_ERROR,d.appendError>I.config.appendErrorMaxRetry&&(G.logger.error("[buffer-controller]: Failed "+I.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),H.fatal=!0)),I.trigger(j.Events.ERROR,H)}};A.append(L,P)},x.onBufferFlushing=function(h,c){var d=this,I=this.operationQueue,A=function(N){return{execute:d.removeExecutor.bind(d,N,c.startOffset,c.endOffset),onStart:function(){},onComplete:function(){d.hls.trigger(j.Events.BUFFER_FLUSHED,{type:N})},onError:function(D){G.logger.warn("[buffer-controller]: Failed to remove from "+N+" SourceBuffer",D)}}};c.type?I.append(A(c.type),c.type):this.getSourceBufferTypes().forEach(function(R){I.append(A(R),R)})},x.onFragParsed=function(h,c){var d=this,I=c.frag,A=c.part,R=[],N=A?A.elementaryStreams:I.elementaryStreams;N[F.ElementaryStreamTypes.AUDIOVIDEO]?R.push("audiovideo"):(N[F.ElementaryStreamTypes.AUDIO]&&R.push("audio"),N[F.ElementaryStreamTypes.VIDEO]&&R.push("video"));var P=function(){var E=self.performance.now();I.stats.buffering.end=E,A&&(A.stats.buffering.end=E);var v=A?A.stats:I.stats;d.hls.trigger(j.Events.FRAG_BUFFERED,{frag:I,part:A,stats:v,id:I.type})};R.length===0&&G.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+I.type+" level: "+I.level+" sn: "+I.sn),this.blockBuffers(P,R)},x.onFragChanged=function(h,c){this.flushBackBuffer()},x.onBufferEos=function(h,c){var d=this,I=this.getSourceBufferTypes().reduce(function(A,R){var N=d.sourceBuffer[R];return(!c.type||c.type===R)&&(N&&!N.ended&&(N.ended=!0,G.logger.log("[buffer-controller]: "+R+" sourceBuffer now EOS"))),A&&!!(!N||N.ended)},!0);I&&this.blockBuffers(function(){var A=d.mediaSource;if(!A||A.readyState!=="open")return;A.endOfStream()})},x.onLevelUpdated=function(h,c){var d=c.details;if(!d.fragments.length)return;this.details=d,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},x.flushBackBuffer=function(){var h=this.hls,c=this.details,d=this.media,I=this.sourceBuffer;if(!d||c===null)return;var A=this.getSourceBufferTypes();if(!A.length)return;var R=c.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(le.isFiniteNumber)(R)||R<0)return;var N=d.currentTime,P=c.levelTargetDuration,D=Math.max(R,P),E=Math.floor(N/P)*P-D;A.forEach(function(v){var _=I[v];if(_){var T=V.BufferHelper.getBuffered(_);T.length>0&&E>T.start(0)&&(h.trigger(j.Events.BACK_BUFFER_REACHED,{bufferEnd:E}),c.live&&h.trigger(j.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:E}),h.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:E,type:v}))}})},x.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,c=this.hls,d=this.media,I=this.mediaSource,A=h.fragments[0].start+h.totalduration,R=d.duration,N=Object(le.isFiniteNumber)(I.duration)?I.duration:0;h.live&&c.config.liveDurationInfinity?(G.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),I.duration=Infinity,this.updateSeekableRange(h)):(A>N&&A>R||!Object(le.isFiniteNumber)(R))&&(G.logger.log("[buffer-controller]: Updating Media Source duration to "+A.toFixed(3)),I.duration=A)},x.updateSeekableRange=function(h){var c=this.mediaSource,d=h.fragments,I=d.length;if(I&&h.live&&c!==null&&c!==void 0&&c.setLiveSeekableRange){var A=Math.max(0,d[0].start),R=Math.max(A,A+h.totalduration);c.setLiveSeekableRange(A,R)}},x.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,c=this.operationQueue,d=this.pendingTracks,I=Object.keys(d).length;if(I&&!h||I===2){this.createSourceBuffers(d),this.pendingTracks={};var A=this.getSourceBufferTypes();if(A.length===0){this.hls.trigger(j.Events.ERROR,{type:oe.ErrorTypes.MEDIA_ERROR,details:oe.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}A.forEach(function(R){c.executeNext(R)})}},x.createSourceBuffers=function(h){var c=this.sourceBuffer,d=this.mediaSource;if(!d)throw Error("createSourceBuffers called when mediaSource was null");var I=0;for(var A in h)if(!c[A]){var R=h[A];if(!R)throw Error("source buffer exists for track "+A+", however track does not");var N=R.levelCodec||R.codec,P=R.container+";codecs="+N;G.logger.log("[buffer-controller]: creating sourceBuffer("+P+")");try{var D=c[A]=d.addSourceBuffer(P),E=A;this.addBufferListener(E,"updatestart",this._onSBUpdateStart),this.addBufferListener(E,"updateend",this._onSBUpdateEnd),this.addBufferListener(E,"error",this._onSBUpdateError),this.tracks[A]={buffer:D,codec:N,container:R.container,levelCodec:R.levelCodec,id:R.id},I++}catch(v){G.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+v.message),this.hls.trigger(j.Events.ERROR,{type:oe.ErrorTypes.MEDIA_ERROR,details:oe.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,mimeType:P})}}I&&this.hls.trigger(j.Events.BUFFER_CREATED,{tracks:this.tracks})},x._onSBUpdateStart=function(h){var c=this.operationQueue,d=c.current(h);d.onStart()},x._onSBUpdateEnd=function(h){var c=this.operationQueue,d=c.current(h);d.onComplete(),c.shiftAndExecuteNext(h)},x._onSBUpdateError=function(h,c){G.logger.error("[buffer-controller]: "+h+" SourceBuffer error",c),this.hls.trigger(j.Events.ERROR,{type:oe.ErrorTypes.MEDIA_ERROR,details:oe.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var d=this.operationQueue.current(h);d&&d.onError(c)},x.removeExecutor=function(h,c,d){var I=this.media,A=this.mediaSource,R=this.operationQueue,N=this.sourceBuffer,P=N[h];if(!I||!A||!P){G.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),R.shiftAndExecuteNext(h);return}var D=Object(le.isFiniteNumber)(I.duration)?I.duration:Infinity,E=Object(le.isFiniteNumber)(A.duration)?A.duration:Infinity,v=Math.max(0,c),_=Math.min(d,D,E);_>v?(G.logger.log("[buffer-controller]: Removing ["+v+","+_+"] from the "+h+" SourceBuffer"),console.assert(!P.updating,h+" sourceBuffer must not be updating"),P.remove(v,_)):R.shiftAndExecuteNext(h)},x.appendExecutor=function(h,c){var d=this.operationQueue,I=this.sourceBuffer,A=I[c];if(!A){G.logger.warn("[buffer-controller]: Attempting to append to the "+c+" SourceBuffer, but it does not exist"),d.shiftAndExecuteNext(c);return}A.ended=!1,console.assert(!A.updating,c+" sourceBuffer must not be updating"),A.appendBuffer(h)},x.blockBuffers=function(h,c){var d=this;if(c===void 0&&(c=this.getSourceBufferTypes()),!c.length){G.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(h);return}var I=this.operationQueue,A=c.map(function(R){return I.appendBlocker(R)});Promise.all(A).then(function(){h(),c.forEach(function(R){var N=d.sourceBuffer[R];(!N||!N.updating)&&I.shiftAndExecuteNext(R)})})},x.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},x.addBufferListener=function(h,c,d){var I=this.sourceBuffer[h];if(!I)return;var A=d.bind(this,h);this.listeners[h].push({event:c,listener:A}),I.addEventListener(c,A)},x.removeBufferListeners=function(h){var c=this.sourceBuffer[h];if(!c)return;this.listeners[h].forEach(function(d){c.removeEventListener(d.event,d.listener)})},y}()},"./src/controller/buffer-operation-queue.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return j});var le=X("./src/utils/logger.ts"),j=function(){function G(V){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=V}var oe=G.prototype;return oe.append=function(l,F){var O=this.queues[F];O.push(l),O.length===1&&this.buffers[F]&&this.executeNext(F)},oe.insertAbort=function(l,F){var O=this.queues[F];O.unshift(l),this.executeNext(F)},oe.appendBlocker=function(l){var F,O=new Promise(function(b){F=b}),C={execute:F,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(C,l),O},oe.executeNext=function(l){var F=this.buffers,O=this.queues,C=F[l],b=O[l];if(b.length){var p=b[0];try{p.execute()}catch(y){le.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),p.onError(y),(!C||!C.updating)&&(b.shift(),this.executeNext(l))}}},oe.shiftAndExecuteNext=function(l){this.queues[l].shift(),this.executeNext(l)},oe.current=function(l){return this.queues[l][0]},G}()},"./src/controller/cap-level-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts");function j(V,l){for(var F=0;F<l.length;F++){var O=l[F];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(V,O.key,O)}}function G(V,l,F){return l&&j(V.prototype,l),F&&j(V,F),V}var oe=function(){function V(F){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=F,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var l=V.prototype;return l.setStreamController=function(O){this.streamController=O},l.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},l.registerListeners=function(){var O=this.hls;O.on(le.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),O.on(le.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),O.on(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),O.on(le.Events.BUFFER_CODECS,this.onBufferCodecs,this),O.on(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},l.unregisterListener=function(){var O=this.hls;O.off(le.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),O.off(le.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),O.off(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),O.off(le.Events.BUFFER_CODECS,this.onBufferCodecs,this),O.off(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},l.onFpsDropLevelCapping=function(O,C){V.isLevelAllowed(C.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(C.droppedLevel)},l.onMediaAttaching=function(O,C){this.media=C.media instanceof HTMLVideoElement?C.media:null},l.onManifestParsed=function(O,C){var b=this.hls;this.restrictedLevels=[],this.firstLevel=C.firstLevel,b.config.capLevelToPlayerSize&&C.video&&this.startCapping()},l.onBufferCodecs=function(O,C){var b=this.hls;b.config.capLevelToPlayerSize&&C.video&&this.startCapping()},l.onMediaDetaching=function(){this.stopCapping()},l.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var O=this.hls.levels;if(O.length){var C=this.hls;C.autoLevelCapping=this.getMaxLevel(O.length-1),C.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=C.autoLevelCapping}}},l.getMaxLevel=function(O){var C=this,b=this.hls.levels;if(!b.length)return-1;var p=b.filter(function(y,x){return V.isLevelAllowed(x,C.restrictedLevels)&&x<=O});return this.clientRect=null,V.getMaxLevelByMediaSize(p,this.mediaWidth,this.mediaHeight)},l.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},l.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},l.getDimensions=function(){if(this.clientRect)return this.clientRect;var O=this.media,C={width:0,height:0};if(O){var b=O.getBoundingClientRect();C.width=b.width,C.height=b.height,!C.width&&!C.height&&(C.width=b.right-b.left||O.width||0,C.height=b.bottom-b.top||O.height||0)}return this.clientRect=C,C},V.isLevelAllowed=function(O,C){return C===void 0&&(C=[]),C.indexOf(O)===-1},V.getMaxLevelByMediaSize=function(O,C,b){if(!O||!O.length)return-1;for(var p=function(c,d){return d?c.width!==d.width||c.height!==d.height:!0},y=O.length-1,x=0;x<O.length;x+=1){var g=O[x];if((g.width>=C||g.height>=b)&&p(g,O[x+1])){y=x;break}}return y},G(V,[{key:"mediaWidth",get:function(){return this.getDimensions().width*V.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*V.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var O=1;try{O=self.devicePixelRatio}catch(C){}return O}}]),V}();ae.default=oe},"./src/controller/cmcd-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return p});var le=X("./src/events.ts"),j=X("./src/types/cmcd.ts"),G=X("./src/utils/buffer-helper.ts"),oe=X("./src/utils/logger.ts");function V(y,x){for(var g=0;g<x.length;g++){var h=x[g];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(y,h.key,h)}}function l(y,x,g){return x&&V(y.prototype,x),g&&V(y,g),y}function F(y,x){var g=typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(g)return(g=g.call(y)).next.bind(g);if(Array.isArray(y)||(g=O(y))||x&&y&&typeof y.length=="number"){g&&(y=g);var h=0;return function(){return h>=y.length?{done:!0}:{done:!1,value:y[h++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(y,x){if(!y)return;if(typeof y=="string")return C(y,x);var g=Object.prototype.toString.call(y).slice(8,-1);if(g==="Object"&&y.constructor&&(g=y.constructor.name),g==="Map"||g==="Set")return Array.from(y);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return C(y,x)}function C(y,x){(x==null||x>y.length)&&(x=y.length);for(var g=0,h=new Array(x);g<x;g++)h[g]=y[g];return h}function b(){return b=Object.assign||function(y){for(var x=1;x<arguments.length;x++){var g=arguments[x];for(var h in g)Object.prototype.hasOwnProperty.call(g,h)&&(y[h]=g[h])}return y},b.apply(this,arguments)}var p=function(){function y(g){var h=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){h.initialized&&(h.starved=!0),h.buffering=!0},this.onPlaying=function(){h.initialized||(h.initialized=!0),h.buffering=!1},this.applyPlaylistData=function(I){try{h.apply(I,{ot:j.CMCDObjectType.MANIFEST,su:!h.initialized})}catch(A){oe.logger.warn("Could not generate manifest CMCD data.",A)}},this.applyFragmentData=function(I){try{var A=I.frag,R=h.hls.levels[A.level],N=h.getObjectType(A),P={d:A.duration*1e3,ot:N};(N===j.CMCDObjectType.VIDEO||N===j.CMCDObjectType.AUDIO||N==j.CMCDObjectType.MUXED)&&(P.br=R.bitrate/1e3,P.tb=h.getTopBandwidth(N),P.bl=h.getBufferLength(N)),h.apply(I,P)}catch(D){oe.logger.warn("Could not generate segment CMCD data.",D)}},this.hls=g;var c=this.config=g.config,d=c.cmcd;d!=null&&(c.pLoader=this.createPlaylistLoader(),c.fLoader=this.createFragmentLoader(),this.sid=d.sessionId||y.uuid(),this.cid=d.contentId,this.useHeaders=d.useHeaders===!0,this.registerListeners())}var x=y.prototype;return x.registerListeners=function(){var h=this.hls;h.on(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(le.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.on(le.Events.BUFFER_CREATED,this.onBufferCreated,this)},x.unregisterListeners=function(){var h=this.hls;h.off(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(le.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.off(le.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},x.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},x.onMediaAttached=function(h,c){this.media=c.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},x.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},x.onBufferCreated=function(h,c){var d,I;this.audioBuffer=(d=c.tracks.audio)===null||d===void 0?void 0:d.buffer,this.videoBuffer=(I=c.tracks.video)===null||I===void 0?void 0:I.buffer},x.createData=function(){var h;return{v:j.CMCDVersion,sf:j.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(h=this.media)===null||h===void 0?void 0:h.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},x.apply=function(h,c){c===void 0&&(c={}),b(c,this.createData());var d=c.ot===j.CMCDObjectType.INIT||c.ot===j.CMCDObjectType.VIDEO||c.ot===j.CMCDObjectType.MUXED;if(this.starved&&d&&(c.bs=!0,c.su=!0,this.starved=!1),c.su==null&&(c.su=this.buffering),this.useHeaders){var I=y.toHeaders(c);if(!Object.keys(I).length)return;h.headers||(h.headers={}),b(h.headers,I)}else{var A=y.toQuery(c);if(!A)return;h.url=y.appendQueryToUri(h.url,A)}},x.getObjectType=function(h){var c=h.type;return c==="subtitle"?j.CMCDObjectType.TIMED_TEXT:h.sn==="initSegment"?j.CMCDObjectType.INIT:c==="audio"?j.CMCDObjectType.AUDIO:c==="main"?this.hls.audioTracks.length?j.CMCDObjectType.VIDEO:j.CMCDObjectType.MUXED:void 0},x.getTopBandwidth=function(h){for(var c=0,d=h===j.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,I=F(d),A;!(A=I()).done;){var R=A.value;R.bitrate>c&&(c=R.bitrate)}return c>0?c:NaN},x.getBufferLength=function(h){var c=this.hls.media,d=h===j.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!d||!c)return NaN;var I=G.BufferHelper.bufferInfo(d,c.currentTime,this.config.maxBufferHole);return I.len*1e3},x.createPlaylistLoader=function(){var h=this.config.pLoader,c=this.applyPlaylistData,d=h||this.config.loader;return function(){function I(R){this.loader=void 0,this.loader=new d(R)}var A=I.prototype;return A.destroy=function(){this.loader.destroy()},A.abort=function(){this.loader.abort()},A.load=function(N,P,D){c(N),this.loader.load(N,P,D)},l(I,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),I}()},x.createFragmentLoader=function(){var h=this.config.fLoader,c=this.applyFragmentData,d=h||this.config.loader;return function(){function I(R){this.loader=void 0,this.loader=new d(R)}var A=I.prototype;return A.destroy=function(){this.loader.destroy()},A.abort=function(){this.loader.abort()},A.load=function(N,P,D){c(N),this.loader.load(N,P,D)},l(I,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),I}()},y.uuid=function(){var h=URL.createObjectURL(new Blob),c=h.toString();return URL.revokeObjectURL(h),c.substr(c.lastIndexOf("/")+1)},y.serialize=function(h){for(var c=[],d=function(z){return!Number.isNaN(z)&&z!=null&&z!==""&&z!==!1},I=function(z){return Math.round(z)},A=function(z){return I(z/100)*100},R=function(z){return encodeURIComponent(z)},N={br:I,d:I,bl:A,dl:A,mtp:A,nor:R,rtp:A,tb:I},P=Object.keys(h||{}).sort(),D=F(P),E;!(E=D()).done;){var v=E.value,_=h[v];if(!d(_))continue;if(v==="v"&&_===1)continue;if(v=="pr"&&_===1)continue;var T=N[v];T&&(_=T(_));var w=typeof _,M=void 0;v==="ot"||v==="sf"||v==="st"?M=v+"="+_:w==="boolean"?M=v:w==="number"?M=v+"="+_:M=v+"="+JSON.stringify(_),c.push(M)}return c.join(",")},y.toHeaders=function(h){for(var c=Object.keys(h),d={},I=["Object","Request","Session","Status"],A=[{},{},{},{}],R={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},N=0,P=c;N<P.length;N++){var D=P[N],E=R[D]!=null?R[D]:1;A[E][D]=h[D]}for(var v=0;v<A.length;v++){var _=y.serialize(A[v]);_&&(d["CMCD-"+I[v]]=_)}return d},y.toQuery=function(h){return"CMCD="+encodeURIComponent(y.serialize(h))},y.appendQueryToUri=function(h,c){if(!c)return h;var d=h.includes("?")?"&":"?";return""+h+d+c},y}()},"./src/controller/eme-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/errors.ts"),G=X("./src/utils/logger.ts"),oe=X("./src/utils/mediakeys-helper.ts");function V(p,y){for(var x=0;x<y.length;x++){var g=y[x];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function l(p,y,x){return y&&V(p.prototype,y),x&&V(p,x),p}var F=3,O=function(y,x,g){var h={audioCapabilities:[],videoCapabilities:[]};return y.forEach(function(c){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+c+'"',robustness:g.audioRobustness||""})}),x.forEach(function(c){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+c+'"',robustness:g.videoRobustness||""})}),[h]},C=function(y,x,g,h){switch(y){case oe.KeySystems.WIDEVINE:return O(x,g,h);default:throw new Error("Unknown key-system: "+y)}},b=function(){function p(x){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=x,this._config=x.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var y=p.prototype;return y.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},y._registerListeners=function(){this.hls.on(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(le.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(le.Events.MANIFEST_PARSED,this.onManifestParsed,this)},y._unregisterListeners=function(){this.hls.off(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(le.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(le.Events.MANIFEST_PARSED,this.onManifestParsed,this)},y.getLicenseServerUrl=function(g){switch(g){case oe.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+g+'"')},y._attemptKeySystemAccess=function(g,h,c){var d=this,I=C(g,h,c,this._drmSystemOptions);G.logger.log("Requesting encrypted media key-system access");var A=this.requestMediaKeySystemAccess(g,I);this.mediaKeysPromise=A.then(function(R){return d._onMediaKeySystemAccessObtained(g,R)}),A.catch(function(R){G.logger.error('Failed to obtain key-system "'+g+'" access:',R)})},y._onMediaKeySystemAccessObtained=function(g,h){var c=this;G.logger.log('Access for key-system "'+g+'" obtained');var d={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:g};this._mediaKeysList.push(d);var I=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(A){return d.mediaKeys=A,G.logger.log('Media-keys created for key-system "'+g+'"'),c._onMediaKeysCreated(),A});return I.catch(function(A){G.logger.error("Failed to create media-keys:",A)}),I},y._onMediaKeysCreated=function(){var g=this;this._mediaKeysList.forEach(function(h){h.mediaKeysSession||(h.mediaKeysSession=h.mediaKeys.createSession(),g._onNewMediaKeySession(h.mediaKeysSession))})},y._onNewMediaKeySession=function(g){var h=this;G.logger.log("New key-system session "+g.sessionId),g.addEventListener("message",function(c){h._onKeySessionMessage(g,c.message)},!1)},y._onKeySessionMessage=function(g,h){G.logger.log("Got EME message event, creating license request"),this._requestLicense(h,function(c){G.logger.log("Received license data (length: "+(c&&c.byteLength)+"), updating key-session"),g.update(c)})},y.onMediaEncrypted=function(g){var h=this;if(G.logger.log('Media is encrypted using "'+g.initDataType+'" init data type'),!this.mediaKeysPromise){G.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var c=function(I){if(!h._media)return;h._attemptSetMediaKeys(I),h._generateRequestWithPreferredKeySession(g.initDataType,g.initData)};this.mediaKeysPromise.then(c).catch(c)},y._attemptSetMediaKeys=function(g){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var h=this._mediaKeysList[0];if(!h||!h.mediaKeys){G.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}G.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(h.mediaKeys),this._hasSetMediaKeys=!0}},y._generateRequestWithPreferredKeySession=function(g,h){var c=this,d=this._mediaKeysList[0];if(!d){G.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(d.mediaKeysSessionInitialized){G.logger.warn("Key-Session already initialized but requested again");return}var I=d.mediaKeysSession;if(!I){G.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!h){G.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}G.logger.log('Generating key-session request for "'+g+'" init data type'),d.mediaKeysSessionInitialized=!0,I.generateRequest(g,h).then(function(){G.logger.debug("Key-session generation succeeded")}).catch(function(A){G.logger.error("Error generating key-session request:",A),c.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},y._createLicenseXhr=function(g,h,c){var d=new XMLHttpRequest;d.responseType="arraybuffer",d.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,d,g,h,c);var I=this._licenseXhrSetup;if(I)try{I.call(this.hls,d,g),I=void 0}catch(A){G.logger.error(A)}try{d.readyState||d.open("POST",g,!0),I&&I.call(this.hls,d,g)}catch(A){throw new Error("issue setting up KeySystem license XHR "+A)}return d},y._onLicenseRequestReadyStageChange=function(g,h,c,d){switch(g.readyState){case 4:if(g.status===200){this._requestLicenseFailureCount=0,G.logger.log("License request succeeded");var I=g.response,A=this._licenseResponseCallback;if(A)try{I=A.call(this.hls,g,h)}catch(N){G.logger.error(N)}d(I)}else{if(G.logger.error("License Request XHR failed ("+h+"). Status: "+g.status+" ("+g.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>F){this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var R=F-this._requestLicenseFailureCount+1;G.logger.warn("Retrying license request, "+R+" attempts left"),this._requestLicense(c,d)}break}},y._generateLicenseRequestChallenge=function(g,h){switch(g.mediaKeySystemDomain){case oe.KeySystems.WIDEVINE:return h}throw new Error("unsupported key-system: "+g.mediaKeySystemDomain)},y._requestLicense=function(g,h){G.logger.log("Requesting content license for key-system");var c=this._mediaKeysList[0];if(!c){G.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var d=this.getLicenseServerUrl(c.mediaKeySystemDomain),I=this._createLicenseXhr(d,g,h);G.logger.log("Sending license request to URL: "+d);var A=this._generateLicenseRequestChallenge(c,g);I.send(A)}catch(R){G.logger.error("Failure requesting DRM license: "+R),this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},y.onMediaAttached=function(g,h){if(!this._emeEnabled)return;var c=h.media;this._media=c,c.addEventListener("encrypted",this._onMediaEncrypted)},y.onMediaDetached=function(){var g=this._media,h=this._mediaKeysList;if(!g)return;g.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(h.map(function(c){if(c.mediaKeysSession)return c.mediaKeysSession.close().catch(function(){})})).then(function(){return g.setMediaKeys(null)}).catch(function(){})},y.onManifestParsed=function(g,h){if(!this._emeEnabled)return;var c=h.levels.map(function(I){return I.audioCodec}).filter(function(I){return!!I}),d=h.levels.map(function(I){return I.videoCodec}).filter(function(I){return!!I});this._attemptKeySystemAccess(oe.KeySystems.WIDEVINE,c,d)},l(p,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),p}();ae.default=b},"./src/controller/fps-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/utils/logger.ts"),G=function(){function oe(l){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=l,this.registerListeners()}var V=oe.prototype;return V.setStreamController=function(F){this.streamController=F},V.registerListeners=function(){this.hls.on(le.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},V.unregisterListeners=function(){this.hls.off(le.Events.MEDIA_ATTACHING,this.onMediaAttaching)},V.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},V.onMediaAttaching=function(F,O){var C=this.hls.config;if(C.capLevelOnFPSDrop){var b=O.media instanceof self.HTMLVideoElement?O.media:null;this.media=b,b&&typeof b.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),C.fpsDroppedMonitoringPeriod)}},V.checkFPS=function(F,O,C){var b=performance.now();if(O){if(this.lastTime){var p=b-this.lastTime,y=C-this.lastDroppedFrames,x=O-this.lastDecodedFrames,g=1e3*y/p,h=this.hls;if(h.trigger(le.Events.FPS_DROP,{currentDropped:y,currentDecoded:x,totalDroppedFrames:C}),g>0&&y>h.config.fpsDroppedMonitoringThreshold*x){var c=h.currentLevel;j.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+c),c>0&&(h.autoLevelCapping===-1||h.autoLevelCapping>=c)&&(c=c-1,h.trigger(le.Events.FPS_DROP_LEVEL_CAPPING,{level:c,droppedLevel:h.currentLevel}),h.autoLevelCapping=c,this.streamController.nextLevelSwitch())}}this.lastTime=b,this.lastDroppedFrames=C,this.lastDecodedFrames=O}},V.checkFPSInterval=function(){var F=this.media;if(F)if(this.isVideoPlaybackQualityAvailable){var O=F.getVideoPlaybackQuality();this.checkFPS(F,O.totalVideoFrames,O.droppedVideoFrames)}else this.checkFPS(F,F.webkitDecodedFrameCount,F.webkitDroppedFrameCount)},oe}();ae.default=G},"./src/controller/fragment-finders.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"findFragmentByPDT",function(){return G}),X.d(ae,"findFragmentByPTS",function(){return oe}),X.d(ae,"fragmentWithinToleranceTest",function(){return V}),X.d(ae,"pdtWithinToleranceTest",function(){return l}),X.d(ae,"findFragWithCC",function(){return F});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/binary-search.ts");function G(O,C,b){if(C===null||!Array.isArray(O)||!O.length||!Object(le.isFiniteNumber)(C))return null;var p=O[0].programDateTime;if(C<(p||0))return null;var y=O[O.length-1].endProgramDateTime;if(C>=(y||0))return null;b=b||0;for(var x=0;x<O.length;++x){var g=O[x];if(l(C,b,g))return g}return null}function oe(O,C,b,p){b===void 0&&(b=0),p===void 0&&(p=0);var y=null;if(O?y=C[O.sn-C[0].sn+1]||null:b===0&&C[0].start===0&&(y=C[0]),y&&V(b,p,y)===0)return y;var x=j.default.search(C,V.bind(null,b,p));return x||y}function V(O,C,b){O===void 0&&(O=0),C===void 0&&(C=0);var p=Math.min(C,b.duration+(b.deltaPTS?b.deltaPTS:0));return b.start+b.duration-p<=O?1:b.start-p>O&&b.start?-1:0}function l(O,C,b){var p=Math.min(C,b.duration+(b.deltaPTS?b.deltaPTS:0))*1e3,y=b.endProgramDateTime||0;return y-p>O}function F(O,C){return j.default.search(O,function(b){return b.cc<C?1:b.cc>C?-1:0})}},"./src/controller/fragment-tracker.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"FragmentState",function(){return G}),X.d(ae,"FragmentTracker",function(){return oe});var le=X("./src/events.ts"),j=X("./src/types/loader.ts"),G;(function(F){F.NOT_LOADED="NOT_LOADED",F.BACKTRACKED="BACKTRACKED",F.APPENDING="APPENDING",F.PARTIAL="PARTIAL",F.OK="OK"})(G||(G={}));var oe=function(){function F(C){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=C,this._registerListeners()}var O=F.prototype;return O._registerListeners=function(){var b=this.hls;b.on(le.Events.BUFFER_APPENDED,this.onBufferAppended,this),b.on(le.Events.FRAG_BUFFERED,this.onFragBuffered,this),b.on(le.Events.FRAG_LOADED,this.onFragLoaded,this)},O._unregisterListeners=function(){var b=this.hls;b.off(le.Events.BUFFER_APPENDED,this.onBufferAppended,this),b.off(le.Events.FRAG_BUFFERED,this.onFragBuffered,this),b.off(le.Events.FRAG_LOADED,this.onFragLoaded,this)},O.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},O.getAppendedFrag=function(b,p){if(p===j.PlaylistLevelType.MAIN){var y=this.activeFragment,x=this.activeParts;if(!y)return null;if(x)for(var g=x.length;g--;){var h=x[g],c=h?h.end:y.appendedPTS;if(h.start<=b&&c!==void 0&&b<=c)return g>9&&(this.activeParts=x.slice(g-9)),h}else if(y.start<=b&&y.appendedPTS!==void 0&&b<=y.appendedPTS)return y}return this.getBufferedFrag(b,p)},O.getBufferedFrag=function(b,p){for(var y=this.fragments,x=Object.keys(y),g=x.length;g--;){var h=y[x[g]];if((h==null?void 0:h.body.type)===p&&h.buffered){var c=h.body;if(c.start<=b&&b<=c.end)return c}}return null},O.detectEvictedFragments=function(b,p,y){var x=this;Object.keys(this.fragments).forEach(function(g){var h=x.fragments[g];if(!h)return;if(!h.buffered){h.body.type===y&&x.removeFragment(h.body);return}var c=h.range[b];if(!c)return;c.time.some(function(d){var I=!x.isTimeBuffered(d.startPTS,d.endPTS,p);return I&&x.removeFragment(h.body),I})})},O.detectPartialFragments=function(b){var p=this,y=this.timeRanges,x=b.frag,g=b.part;if(!y||x.sn==="initSegment")return;var h=l(x),c=this.fragments[h];if(!c)return;Object.keys(y).forEach(function(d){var I=x.elementaryStreams[d];if(!I)return;var A=y[d],R=g!==null||I.partial===!0;c.range[d]=p.getBufferedTimes(x,g,R,A)}),c.backtrack=c.loaded=null,Object.keys(c.range).length?c.buffered=!0:this.removeFragment(c.body)},O.fragBuffered=function(b){var p=l(b),y=this.fragments[p];y&&(y.backtrack=y.loaded=null,y.buffered=!0)},O.getBufferedTimes=function(b,p,y,x){for(var g={time:[],partial:y},h=p?p.start:b.start,c=p?p.end:b.end,d=b.minEndPTS||c,I=b.maxStartPTS||h,A=0;A<x.length;A++){var R=x.start(A)-this.bufferPadding,N=x.end(A)+this.bufferPadding;if(I>=R&&d<=N){g.time.push({startPTS:Math.max(h,x.start(A)),endPTS:Math.min(c,x.end(A))});break}else if(h<N&&c>R)g.partial=!0,g.time.push({startPTS:Math.max(h,x.start(A)),endPTS:Math.min(c,x.end(A))});else if(c<=R)break}return g},O.getPartialFragment=function(b){var p=null,y,x,g,h=0,c=this.bufferPadding,d=this.fragments;return Object.keys(d).forEach(function(I){var A=d[I];if(!A)return;V(A)&&(x=A.body.start-c,g=A.body.end+c,b>=x&&b<=g&&(y=Math.min(b-x,g-b),h<=y&&(p=A.body,h=y)))}),p},O.getState=function(b){var p=l(b),y=this.fragments[p];return y?y.buffered?V(y)?G.PARTIAL:G.OK:y.backtrack?G.BACKTRACKED:G.APPENDING:G.NOT_LOADED},O.backtrack=function(b,p){var y=l(b),x=this.fragments[y];if(!x||x.backtrack)return null;var g=x.backtrack=p||x.loaded;return x.loaded=null,g},O.getBacktrackData=function(b){var p=l(b),y=this.fragments[p];if(y){var x,g=y.backtrack;if(g!=null&&(x=g.payload)!==null&&x!==void 0&&x.byteLength)return g;this.removeFragment(b)}return null},O.isTimeBuffered=function(b,p,y){for(var x,g,h=0;h<y.length;h++){if(x=y.start(h)-this.bufferPadding,g=y.end(h)+this.bufferPadding,b>=x&&p<=g)return!0;if(p<=x)return!1}return!1},O.onFragLoaded=function(b,p){var y=p.frag,x=p.part;if(y.sn==="initSegment"||y.bitrateTest||x)return;var g=l(y);this.fragments[g]={body:y,loaded:p,backtrack:null,buffered:!1,range:Object.create(null)}},O.onBufferAppended=function(b,p){var y=this,x=p.frag,g=p.part,h=p.timeRanges;if(x.type===j.PlaylistLevelType.MAIN)if(this.activeFragment=x,g){var c=this.activeParts;c||(this.activeParts=c=[]),c.push(g)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(d){var I=h[d];if(y.detectEvictedFragments(d,I),!g)for(var A=0;A<I.length;A++)x.appendedPTS=Math.max(I.end(A),x.appendedPTS||0)})},O.onFragBuffered=function(b,p){this.detectPartialFragments(p)},O.hasFragment=function(b){var p=l(b);return!!this.fragments[p]},O.removeFragmentsInRange=function(b,p,y){var x=this;Object.keys(this.fragments).forEach(function(g){var h=x.fragments[g];if(!h)return;if(h.buffered){var c=h.body;c.type===y&&c.start<p&&c.end>b&&x.removeFragment(c)}})},O.removeFragment=function(b){var p=l(b);b.stats.loaded=0,b.clearElementaryStreamInfo(),delete this.fragments[p]},O.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},F}();function V(F){var O,C;return F.buffered&&(((O=F.range.video)===null||O===void 0?void 0:O.partial)||((C=F.range.audio)===null||C===void 0?void 0:C.partial))}function l(F){return F.type+"_"+F.level+"_"+F.urlId+"_"+F.sn}},"./src/controller/gap-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"STALL_MINIMUM_DURATION_MS",function(){return V}),X.d(ae,"MAX_START_GAP_JUMP",function(){return l}),X.d(ae,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return F}),X.d(ae,"SKIP_BUFFER_RANGE_START",function(){return O}),X.d(ae,"default",function(){return C});var le=X("./src/utils/buffer-helper.ts"),j=X("./src/errors.ts"),G=X("./src/events.ts"),oe=X("./src/utils/logger.ts"),V=250,l=2,F=.1,O=.05,C=function(){function b(y,x,g,h){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=y,this.media=x,this.fragmentTracker=g,this.hls=h}var p=b.prototype;return p.destroy=function(){this.hls=this.fragmentTracker=this.media=null},p.poll=function(x){var g=this.config,h=this.media,c=this.stalled,d=h.currentTime,I=h.seeking,A=this.seeking&&!I,R=!this.seeking&&I;if(this.seeking=I,d!==x){if(this.moved=!0,c!==null){if(this.stallReported){var N=self.performance.now()-c;oe.logger.warn("playback not stuck anymore @"+d+", after "+Math.round(N)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((R||A)&&(this.stalled=null),h.paused||h.ended||h.playbackRate===0||!le.BufferHelper.getBuffered(h).length)return;var P=le.BufferHelper.bufferInfo(h,d,0),D=P.len>0,E=P.nextStart||0;if(!D&&!E)return;if(I){var v=P.len>l,_=!E||E-d>l&&!this.fragmentTracker.getPartialFragment(d);if(v||_)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var T,w=Math.max(E,P.start||0)-d,M=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Z=M==null||((T=M.details)===null||T===void 0)?void 0:T.live,z=Z?M.details.targetduration*2:l;if(w>0&&w<=z){this._trySkipBufferHole(null);return}}var L=self.performance.now();if(c===null){this.stalled=L;return}var W=L-c;!I&&W>=V&&this._reportStall(P.len);var Y=le.BufferHelper.bufferInfo(h,d,g.maxBufferHole);this._tryFixBufferStall(Y,W)},p._tryFixBufferStall=function(x,g){var h=this.config,c=this.fragmentTracker,d=this.media,I=d.currentTime,A=c.getPartialFragment(I);if(A){var R=this._trySkipBufferHole(A);if(R)return}x.len>h.maxBufferHole&&g>h.highBufferWatchdogPeriod*1e3&&(oe.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},p._reportStall=function(x){var g=this.hls,h=this.media,c=this.stallReported;c||(this.stallReported=!0,oe.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer (buffer="+x+")"),g.trigger(G.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:x}))},p._trySkipBufferHole=function(x){for(var g=this.config,h=this.hls,c=this.media,d=c.currentTime,I=0,A=le.BufferHelper.getBuffered(c),R=0;R<A.length;R++){var N=A.start(R);if(d+g.maxBufferHole>=I&&d<N){var P=Math.max(N+O,c.currentTime+F);return oe.logger.warn("skipping hole, adjusting currentTime from "+d+" to "+P),this.moved=!0,this.stalled=null,c.currentTime=P,x&&h.trigger(G.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+d+" to "+P,frag:x}),P}I=A.end(R)}return 0},p._tryNudgeBuffer=function(){var x=this.config,g=this.hls,h=this.media,c=h.currentTime,d=(this.nudgeRetry||0)+1;if(this.nudgeRetry=d,d<x.nudgeMaxRetry){var I=c+d*x.nudgeOffset;oe.logger.warn("Nudging 'currentTime' from "+c+" to "+I),h.currentTime=I,g.trigger(G.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else oe.logger.error("Playhead still not moving while enough data buffered @"+c+" after "+x.nudgeMaxRetry+" nudges"),g.trigger(G.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},b}()},"./src/controller/id3-track-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/utils/texttrack-utils.ts"),G=X("./src/demux/id3.ts"),oe=.25,V=function(){function l(O){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=O,this._registerListeners()}var F=l.prototype;return F.destroy=function(){this._unregisterListeners()},F._registerListeners=function(){var C=this.hls;C.on(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.on(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.on(le.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),C.on(le.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},F._unregisterListeners=function(){var C=this.hls;C.off(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.off(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.off(le.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),C.off(le.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},F.onMediaAttached=function(C,b){this.media=b.media},F.onMediaDetaching=function(){if(!this.id3Track)return;Object(j.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},F.getID3Track=function(C){if(!this.media)return;for(var b=0;b<C.length;b++){var p=C[b];if(p.kind==="metadata"&&p.label==="id3")return Object(j.sendAddTrackEvent)(p,this.media),p}return this.media.addTextTrack("metadata","id3")},F.onFragParsingMetadata=function(C,b){if(!this.media)return;var p=b.frag,y=b.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var x=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,g=0;g<y.length;g++){var h=G.getID3Frames(y[g].data);if(h){var c=y[g].pts,d=g<y.length-1?y[g+1].pts:p.end,I=d-c;I<=0&&(d=c+oe);for(var A=0;A<h.length;A++){var R=h[A];if(!G.isTimeStampFrame(R)){var N=new x(c,d,"");N.value=R,this.id3Track.addCue(N)}}}}},F.onBufferFlushing=function(C,b){var p=b.startOffset,y=b.endOffset,x=b.type;if(!x||x==="audio"){var g=this.id3Track;g&&Object(j.removeCuesInRange)(g,p,y)}},l}();ae.default=V},"./src/controller/latency-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return l});var le=X("./src/errors.ts"),j=X("./src/events.ts"),G=X("./src/utils/logger.ts");function oe(F,O){for(var C=0;C<O.length;C++){var b=O[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(F,b.key,b)}}function V(F,O,C){return O&&oe(F.prototype,O),C&&oe(F,C),F}var l=function(){function F(C){var b=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return b.timeupdate()},this.hls=C,this.config=C.config,this.registerListeners()}var O=F.prototype;return O.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},O.registerListeners=function(){this.hls.on(j.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(j.Events.ERROR,this.onError,this)},O.unregisterListeners=function(){this.hls.off(j.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(j.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(j.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(j.Events.ERROR,this.onError)},O.onMediaAttached=function(b,p){this.media=p.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},O.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},O.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},O.onLevelUpdated=function(b,p){var y=p.details;this.levelDetails=y,y.advanced&&this.timeupdate(),!y.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},O.onError=function(b,p){if(p.details!==le.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,G.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},O.timeupdate=function(){var b=this.media,p=this.levelDetails;if(!b||!p)return;this.currentTime=b.currentTime;var y=this.computeLatency();if(y===null)return;this._latency=y;var x=this.config,g=x.lowLatencyMode,h=x.maxLiveSyncPlaybackRate;if(!g||h===1)return;var c=this.targetLatency;if(c===null)return;var d=y-c,I=Math.min(this.maxLatency,c+p.targetduration),A=d<I;if(p.live&&A&&d>.05&&this.forwardBufferLength>1){var R=Math.min(2,Math.max(1,h)),N=Math.round(2/(1+Math.exp(-.75*d-this.edgeStalled))*20)/20;b.playbackRate=Math.min(R,Math.max(1,N))}else b.playbackRate!==1&&b.playbackRate!==0&&(b.playbackRate=1)},O.estimateLiveEdge=function(){var b=this.levelDetails;return b===null?null:b.edge+b.age},O.computeLatency=function(){var b=this.estimateLiveEdge();return b===null?null:b-this.currentTime},V(F,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var b=this.config,p=this.levelDetails;return b.liveMaxLatencyDuration!==void 0?b.liveMaxLatencyDuration:p?b.liveMaxLatencyDurationCount*p.targetduration:0}},{key:"targetLatency",get:function(){var b=this.levelDetails;if(b===null)return null;var p=b.holdBack,y=b.partHoldBack,x=b.targetduration,g=this.config,h=g.liveSyncDuration,c=g.liveSyncDurationCount,d=g.lowLatencyMode,I=this.hls.userConfig,A=d&&y||p;(I.liveSyncDuration||I.liveSyncDurationCount||A===0)&&(A=h!==void 0?h:c*x);var R=x,N=1;return A+Math.min(this.stallCount*N,R)}},{key:"liveSyncPosition",get:function(){var b=this.estimateLiveEdge(),p=this.targetLatency,y=this.levelDetails;if(b===null||p===null||y===null)return null;var x=y.edge,g=b-p-this.edgeStalled,h=x-y.totalduration,c=x-(this.config.lowLatencyMode&&y.partTarget||y.targetduration);return Math.min(Math.max(h,g),c)}},{key:"drift",get:function(){var b=this.levelDetails;return b===null?1:b.drift}},{key:"edgeStalled",get:function(){var b=this.levelDetails;if(b===null)return 0;var p=(this.config.lowLatencyMode&&b.partTarget||b.targetduration)*3;return Math.max(b.age-p,0)}},{key:"forwardBufferLength",get:function(){var b=this.media,p=this.levelDetails;if(!b||!p)return 0;var y=b.buffered.length;return y?b.buffered.end(y-1):p.edge-this.currentTime}}]),F}()},"./src/controller/level-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return g});var le=X("./src/types/level.ts"),j=X("./src/events.ts"),G=X("./src/errors.ts"),oe=X("./src/utils/codecs.ts"),V=X("./src/controller/level-helper.ts"),l=X("./src/controller/base-playlist-controller.ts"),F=X("./src/types/loader.ts");function O(){return O=Object.assign||function(h){for(var c=1;c<arguments.length;c++){var d=arguments[c];for(var I in d)Object.prototype.hasOwnProperty.call(d,I)&&(h[I]=d[I])}return h},O.apply(this,arguments)}function C(h,c){for(var d=0;d<c.length;d++){var I=c[d];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(h,I.key,I)}}function b(h,c,d){return c&&C(h.prototype,c),d&&C(h,d),h}function p(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,y(h,c)}function y(h,c){return y=Object.setPrototypeOf||function(I,A){return I.__proto__=A,I},y(h,c)}var x=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),g=function(h){p(c,h);function c(I){var A;return A=h.call(this,I,"[level-controller]")||this,A._levels=[],A._firstLevel=-1,A._startLevel=void 0,A.currentLevelIndex=-1,A.manualLevelIndex=-1,A.onParsedComplete=void 0,A._registerListeners(),A}var d=c.prototype;return d._registerListeners=function(){var A=this.hls;A.on(j.Events.MANIFEST_LOADED,this.onManifestLoaded,this),A.on(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),A.on(j.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),A.on(j.Events.FRAG_LOADED,this.onFragLoaded,this),A.on(j.Events.ERROR,this.onError,this)},d._unregisterListeners=function(){var A=this.hls;A.off(j.Events.MANIFEST_LOADED,this.onManifestLoaded,this),A.off(j.Events.LEVEL_LOADED,this.onLevelLoaded,this),A.off(j.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),A.off(j.Events.FRAG_LOADED,this.onFragLoaded,this),A.off(j.Events.ERROR,this.onError,this)},d.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,h.prototype.destroy.call(this)},d.startLoad=function(){var A=this._levels;A.forEach(function(R){R.loadError=0}),h.prototype.startLoad.call(this)},d.onManifestLoaded=function(A,R){var N=[],P=[],D=[],E,v={},_,T=!1,w=!1,M=!1;if(R.levels.forEach(function(W){var Y=W.attrs;T=T||!!(W.width&&W.height),w=w||!!W.videoCodec,M=M||!!W.audioCodec,x&&W.audioCodec&&W.audioCodec.indexOf("mp4a.40.34")!==-1&&(W.audioCodec=void 0);var H=W.bitrate+"-"+W.attrs.RESOLUTION+"-"+W.attrs.CODECS;_=v[H],_?_.url.push(W.url):(_=new le.Level(W),v[H]=_,N.push(_)),Y&&(Y.AUDIO&&Object(V.addGroupId)(_,"audio",Y.AUDIO),Y.SUBTITLES&&Object(V.addGroupId)(_,"text",Y.SUBTITLES))}),(T||w)&&M&&(N=N.filter(function(W){var Y=W.videoCodec,H=W.width,ne=W.height;return!!Y||!!(H&&ne)})),N=N.filter(function(W){var Y=W.audioCodec,H=W.videoCodec;return(!Y||Object(oe.isCodecSupportedInMp4)(Y,"audio"))&&(!H||Object(oe.isCodecSupportedInMp4)(H,"video"))}),R.audioTracks&&(P=R.audioTracks.filter(function(W){return!W.audioCodec||Object(oe.isCodecSupportedInMp4)(W.audioCodec,"audio")}),Object(V.assignTrackIdsByGroup)(P)),R.subtitles&&(D=R.subtitles,Object(V.assignTrackIdsByGroup)(D)),N.length>0){E=N[0].bitrate,N.sort(function(W,Y){return W.bitrate-Y.bitrate}),this._levels=N;for(var Z=0;Z<N.length;Z++)if(N[Z].bitrate===E){this._firstLevel=Z,this.log("manifest loaded, "+N.length+" level(s) found, first bitrate: "+E);break}var z=M&&!w,L={levels:N,audioTracks:P,subtitleTracks:D,firstLevel:this._firstLevel,stats:R.stats,audio:M,video:w,altAudio:!z&&P.some(function(W){return!!W.url})};this.hls.trigger(j.Events.MANIFEST_PARSED,L),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(j.Events.ERROR,{type:G.ErrorTypes.MEDIA_ERROR,details:G.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:R.url,reason:"no level with compatible codecs found in manifest"})},d.onError=function(A,R){if(h.prototype.onError.call(this,A,R),R.fatal)return;var N=R.context,P=this._levels[this.currentLevelIndex];if(N&&(N.type===F.PlaylistContextType.AUDIO_TRACK&&P.audioGroupIds&&N.groupId===P.audioGroupIds[P.urlId]||N.type===F.PlaylistContextType.SUBTITLE_TRACK&&P.textGroupIds&&N.groupId===P.textGroupIds[P.urlId])){this.redundantFailover(this.currentLevelIndex);return}var D=!1,E=!0,v;switch(R.details){case G.ErrorDetails.FRAG_LOAD_ERROR:case G.ErrorDetails.FRAG_LOAD_TIMEOUT:case G.ErrorDetails.KEY_LOAD_ERROR:case G.ErrorDetails.KEY_LOAD_TIMEOUT:if(R.frag){var _=this._levels[R.frag.level];_?(_.fragmentError++,_.fragmentError>this.hls.config.fragLoadingMaxRetry&&(v=R.frag.level)):v=R.frag.level}break;case G.ErrorDetails.LEVEL_LOAD_ERROR:case G.ErrorDetails.LEVEL_LOAD_TIMEOUT:N&&(N.deliveryDirectives&&(E=!1),v=N.level),D=!0;break;case G.ErrorDetails.REMUX_ALLOC_ERROR:v=R.level,D=!0;break}v!==void 0&&this.recoverLevel(R,v,D,E)},d.recoverLevel=function(A,R,N,P){var D=A.details,E=this._levels[R];if(E.loadError++,N){var v=this.retryLoadingOrFail(A);if(v)A.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(P){var _=E.url.length;if(_>1&&E.loadError<_)A.levelRetry=!0,this.redundantFailover(R);else if(this.manualLevelIndex===-1){var T=R===0?this._levels.length-1:R-1;this.currentLevelIndex!==T&&this._levels[T].loadError===0&&(this.warn(D+": switch to "+T),A.levelRetry=!0,this.hls.nextAutoLevel=T)}}},d.redundantFailover=function(A){var R=this._levels[A],N=R.url.length;if(N>1){var P=(R.urlId+1)%N;this.warn("Switching to redundant URL-id "+P),this._levels.forEach(function(D){D.urlId=P}),this.level=A}},d.onFragLoaded=function(A,R){var N=R.frag;if(N!==void 0&&N.type===F.PlaylistLevelType.MAIN){var P=this._levels[N.level];P!==void 0&&(P.fragmentError=0,P.loadError=0)}},d.onLevelLoaded=function(A,R){var N,P=R.level,D=R.details,E=this._levels[P];if(!E){var v;this.warn("Invalid level index "+P),(v=R.deliveryDirectives)!==null&&v!==void 0&&v.skip&&(D.deltaUpdateFailed=!0);return}P===this.currentLevelIndex?(E.fragmentError===0&&(E.loadError=0,this.retryCount=0),this.playlistLoaded(P,R,E.details)):(N=R.deliveryDirectives)!==null&&N!==void 0&&N.skip&&(D.deltaUpdateFailed=!0)},d.onAudioTrackSwitched=function(A,R){var N=this.hls.levels[this.currentLevelIndex];if(!N)return;if(N.audioGroupIds){for(var P=-1,D=this.hls.audioTracks[R.id].groupId,E=0;E<N.audioGroupIds.length;E++)if(N.audioGroupIds[E]===D){P=E;break}P!==N.urlId&&(N.urlId=P,this.startLoad())}},d.loadPlaylist=function(A){var R=this.currentLevelIndex,N=this._levels[R];if(this.canLoad&&N&&N.url.length>0){var P=N.urlId,D=N.url[P];if(A)try{D=A.addDirectives(D)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("Attempt loading level index "+R+(A?" at sn "+A.msn+" part "+A.part:"")+" with URL-id "+P+" "+D),this.clearTimer(),this.hls.trigger(j.Events.LEVEL_LOADING,{url:D,level:R,id:P,deliveryDirectives:A||null})}},d.removeLevel=function(A,R){var N=function(E,v){return v!==R},P=this._levels.filter(function(D,E){return E!==A?!0:D.url.length>1&&R!==void 0?(D.url=D.url.filter(N),D.audioGroupIds&&(D.audioGroupIds=D.audioGroupIds.filter(N)),D.textGroupIds&&(D.textGroupIds=D.textGroupIds.filter(N)),D.urlId=0,!0):!1}).map(function(D,E){var v=D.details;return v!=null&&v.fragments&&v.fragments.forEach(function(_){_.level=E}),D});this._levels=P,this.hls.trigger(j.Events.LEVELS_UPDATED,{levels:P})},b(c,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(A){var R,N=this._levels;if(N.length===0)return;if(this.currentLevelIndex===A&&(R=N[A])!==null&&R!==void 0&&R.details)return;if(A<0||A>=N.length){var P=A<0;if(this.hls.trigger(j.Events.ERROR,{type:G.ErrorTypes.OTHER_ERROR,details:G.ErrorDetails.LEVEL_SWITCH_ERROR,level:A,fatal:P,reason:"invalid level idx"}),P)return;A=Math.min(A,N.length-1)}this.clearTimer();var D=this.currentLevelIndex,E=N[D],v=N[A];this.log("switching to level "+A+" from "+D),this.currentLevelIndex=A;var _=O({},v,{level:A,maxBitrate:v.maxBitrate,uri:v.uri,urlId:v.urlId});delete _._urlId,this.hls.trigger(j.Events.LEVEL_SWITCHING,_);var T=v.details;if(!T||T.live){var w=this.switchParams(v.uri,E==null?void 0:E.details);this.loadPlaylist(w)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(A){this.manualLevelIndex=A,this._startLevel===void 0&&(this._startLevel=A),A!==-1&&(this.level=A)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(A){this._firstLevel=A}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var A=this.hls.config.startLevel;return A!==void 0?A:this._firstLevel}else return this._startLevel},set:function(A){this._startLevel=A}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(A){this.level=A,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=A)}}]),c}(l.default)},"./src/controller/level-helper.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"addGroupId",function(){return G}),X.d(ae,"assignTrackIdsByGroup",function(){return oe}),X.d(ae,"updatePTS",function(){return V}),X.d(ae,"updateFragPTSDTS",function(){return F}),X.d(ae,"mergeDetails",function(){return O}),X.d(ae,"mapPartIntersection",function(){return C}),X.d(ae,"mapFragmentIntersection",function(){return b}),X.d(ae,"adjustSliding",function(){return p}),X.d(ae,"addSliding",function(){return y}),X.d(ae,"computeReloadInterval",function(){return x}),X.d(ae,"getFragmentWithSN",function(){return g}),X.d(ae,"getPartWith",function(){return h});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/logger.ts");function G(c,d,I){switch(d){case"audio":c.audioGroupIds||(c.audioGroupIds=[]),c.audioGroupIds.push(I);break;case"text":c.textGroupIds||(c.textGroupIds=[]),c.textGroupIds.push(I);break}}function oe(c){var d={};c.forEach(function(I){var A=I.groupId||"";I.id=d[A]=d[A]||0,d[A]++})}function V(c,d,I){var A=c[d],R=c[I];l(A,R)}function l(c,d){var I=d.startPTS;if(Object(le.isFiniteNumber)(I)){var A=0,R;d.sn>c.sn?(A=I-c.start,R=c):(A=c.start-I,R=d),R.duration!==A&&(R.duration=A)}else if(d.sn>c.sn){var N=c.cc===d.cc;N&&c.minEndPTS?d.start=c.start+(c.minEndPTS-c.start):d.start=c.start+c.duration}else d.start=Math.max(c.start-d.duration,0)}function F(c,d,I,A,R,N){var P=A-I;P<=0&&(j.logger.warn("Fragment should have a positive duration",d),A=I+d.duration,N=R+d.duration);var D=I,E=A,v=d.startPTS,_=d.endPTS;if(Object(le.isFiniteNumber)(v)){var T=Math.abs(v-I);Object(le.isFiniteNumber)(d.deltaPTS)?d.deltaPTS=Math.max(T,d.deltaPTS):d.deltaPTS=T,D=Math.max(I,v),I=Math.min(I,v),R=Math.min(R,d.startDTS),E=Math.min(A,_),A=Math.max(A,_),N=Math.max(N,d.endDTS)}d.duration=A-I;var w=I-d.start;d.appendedPTS=A,d.start=d.startPTS=I,d.maxStartPTS=D,d.startDTS=R,d.endPTS=A,d.minEndPTS=E,d.endDTS=N;var M=d.sn;if(!c||M<c.startSN||M>c.endSN)return 0;var Z,z=M-c.startSN,L=c.fragments;for(L[z]=d,Z=z;Z>0;Z--)l(L[Z],L[Z-1]);for(Z=z;Z<L.length-1;Z++)l(L[Z],L[Z+1]);return c.fragmentHint&&l(L[L.length-1],c.fragmentHint),c.PTSKnown=c.alignedSliding=!0,w}function O(c,d){for(var I=null,A=c.fragments,R=A.length-1;R>=0;R--){var N=A[R].initSegment;if(N){I=N;break}}c.fragmentHint&&delete c.fragmentHint.endPTS;var P=0,D;if(b(c,d,function(Z,z){Z.relurl&&(P=Z.cc-z.cc),Object(le.isFiniteNumber)(Z.startPTS)&&Object(le.isFiniteNumber)(Z.endPTS)&&(z.start=z.startPTS=Z.startPTS,z.startDTS=Z.startDTS,z.appendedPTS=Z.appendedPTS,z.maxStartPTS=Z.maxStartPTS,z.endPTS=Z.endPTS,z.endDTS=Z.endDTS,z.minEndPTS=Z.minEndPTS,z.duration=Z.endPTS-Z.startPTS,z.duration&&(D=z),d.PTSKnown=d.alignedSliding=!0),z.elementaryStreams=Z.elementaryStreams,z.loader=Z.loader,z.stats=Z.stats,z.urlId=Z.urlId,Z.initSegment&&(z.initSegment=Z.initSegment,I=Z.initSegment)}),I){var E=d.fragmentHint?d.fragments.concat(d.fragmentHint):d.fragments;E.forEach(function(Z){var z;(!Z.initSegment||Z.initSegment.relurl===((z=I)===null||z===void 0?void 0:z.relurl))&&(Z.initSegment=I)})}if(d.skippedSegments&&(d.deltaUpdateFailed=d.fragments.some(function(Z){return!Z}),d.deltaUpdateFailed)){j.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var v=d.skippedSegments;v--;)d.fragments.shift();d.startSN=d.fragments[0].sn,d.startCC=d.fragments[0].cc}var _=d.fragments;if(P){j.logger.warn("discontinuity sliding from playlist, take drift into account");for(var T=0;T<_.length;T++)_[T].cc+=P}d.skippedSegments&&(d.startCC=d.fragments[0].cc),C(c.partList,d.partList,function(Z,z){z.elementaryStreams=Z.elementaryStreams,z.stats=Z.stats}),D?F(d,D,D.startPTS,D.endPTS,D.startDTS,D.endDTS):p(c,d),_.length&&(d.totalduration=d.edge-_[0].start),d.driftStartTime=c.driftStartTime,d.driftStart=c.driftStart;var w=d.advancedDateTime;if(d.advanced&&w){var M=d.edge;d.driftStart||(d.driftStartTime=w,d.driftStart=M),d.driftEndTime=w,d.driftEnd=M}else d.driftEndTime=c.driftEndTime,d.driftEnd=c.driftEnd,d.advancedDateTime=c.advancedDateTime}function C(c,d,I){if(c&&d)for(var A=0,R=0,N=c.length;R<=N;R++){var P=c[R],D=d[R+A];P&&D&&P.index===D.index&&P.fragment.sn===D.fragment.sn?I(P,D):A--}}function b(c,d,I){for(var A=d.skippedSegments,R=Math.max(c.startSN,d.startSN)-d.startSN,N=(c.fragmentHint?1:0)+(A?d.endSN:Math.min(c.endSN,d.endSN))-d.startSN,P=d.startSN-c.startSN,D=d.fragmentHint?d.fragments.concat(d.fragmentHint):d.fragments,E=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments,v=R;v<=N;v++){var _=E[P+v],T=D[v];A&&!T&&v<A&&(T=d.fragments[v]=_),_&&T&&I(_,T)}}function p(c,d){var I=d.startSN+d.skippedSegments-c.startSN,A=c.fragments;if(I<0||I>=A.length)return;y(d,A[I].start)}function y(c,d){if(d){for(var I=c.fragments,A=c.skippedSegments;A<I.length;A++)I[A].start+=d;c.fragmentHint&&(c.fragmentHint.start+=d)}}function x(c,d){var I=1e3*c.levelTargetDuration,A=I/2,R=c.age,N=R>0&&R<I*3,P=d.loading.end-d.loading.start,D,E=c.availabilityDelay;if(c.updated===!1)if(N){var v=333*c.misses;D=Math.max(Math.min(A,P*2),v),c.availabilityDelay=(c.availabilityDelay||0)+D}else D=A;else N?(E=Math.min(E||I/2,R),c.availabilityDelay=E,D=E+I-R):D=I-P;return Math.round(D)}function g(c,d,I){if(!c||!c.details)return null;var A=c.details,R=A.fragments[d-A.startSN];return R||(R=A.fragmentHint,R&&R.sn===d?R:d<A.startSN&&I&&I.sn===d?I:null)}function h(c,d,I){if(!c||!c.details)return null;var A=c.details.partList;if(A)for(var R=A.length;R--;){var N=A[R];if(N.index===I&&N.fragment.sn===d)return N}return null}},"./src/controller/stream-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return A});var le=X("./src/polyfills/number.ts"),j=X("./src/controller/base-stream-controller.ts"),G=X("./src/is-supported.ts"),oe=X("./src/events.ts"),V=X("./src/utils/buffer-helper.ts"),l=X("./src/controller/fragment-tracker.ts"),F=X("./src/types/loader.ts"),O=X("./src/loader/fragment.ts"),C=X("./src/demux/transmuxer-interface.ts"),b=X("./src/types/transmuxer.ts"),p=X("./src/controller/gap-controller.ts"),y=X("./src/errors.ts"),x=X("./src/utils/logger.ts");function g(R,N){for(var P=0;P<N.length;P++){var D=N[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,D.key,D)}}function h(R,N,P){return N&&g(R.prototype,N),P&&g(R,P),R}function c(R,N){R.prototype=Object.create(N.prototype),R.prototype.constructor=R,d(R,N)}function d(R,N){return d=Object.setPrototypeOf||function(D,E){return D.__proto__=E,D},d(R,N)}var I=100,A=function(R){c(N,R);function N(D,E){var v;return v=R.call(this,D,E,"[stream-controller]")||this,v.audioCodecSwap=!1,v.gapController=null,v.level=-1,v._forceStartLoad=!1,v.altAudio=!1,v.audioOnly=!1,v.fragPlaying=null,v.onvplaying=null,v.onvseeked=null,v.fragLastKbps=0,v.stalled=!1,v.couldBacktrack=!1,v.audioCodecSwitch=!1,v.videoBuffer=null,v._registerListeners(),v}var P=N.prototype;return P._registerListeners=function(){var E=this.hls;E.on(oe.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.on(oe.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.on(oe.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.on(oe.Events.MANIFEST_PARSED,this.onManifestParsed,this),E.on(oe.Events.LEVEL_LOADING,this.onLevelLoading,this),E.on(oe.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(oe.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),E.on(oe.Events.ERROR,this.onError,this),E.on(oe.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),E.on(oe.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.on(oe.Events.BUFFER_CREATED,this.onBufferCreated,this),E.on(oe.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),E.on(oe.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),E.on(oe.Events.FRAG_BUFFERED,this.onFragBuffered,this)},P._unregisterListeners=function(){var E=this.hls;E.off(oe.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.off(oe.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.off(oe.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.off(oe.Events.MANIFEST_PARSED,this.onManifestParsed,this),E.off(oe.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(oe.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),E.off(oe.Events.ERROR,this.onError,this),E.off(oe.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),E.off(oe.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),E.off(oe.Events.BUFFER_CREATED,this.onBufferCreated,this),E.off(oe.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),E.off(oe.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),E.off(oe.Events.FRAG_BUFFERED,this.onFragBuffered,this)},P.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},P.startLoad=function(E){if(this.levels){var v=this.lastCurrentTime,_=this.hls;if(this.stopLoad(),this.setInterval(I),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var T=_.startLevel;T===-1&&(_.config.testBandwidth?(T=0,this.bitrateTest=!0):T=_.nextAutoLevel),this.level=_.nextLoadLevel=T,this.loadedmetadata=!1}v>0&&E===-1&&(this.log("Override startPosition with lastCurrentTime @"+v.toFixed(3)),E=v),this.state=j.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=E,this.tick()}else this._forceStartLoad=!0,this.state=j.State.STOPPED},P.stopLoad=function(){this._forceStartLoad=!1,R.prototype.stopLoad.call(this)},P.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_LEVEL:{var E,v=this.levels,_=this.level,T=v==null||((E=v[_])===null||E===void 0)?void 0:E.details;if(T&&(!T.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(T))break;this.state=j.State.IDLE;break}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var w,M=self.performance.now(),Z=this.retryDate;(!Z||M>=Z||(w=this.media)!==null&&w!==void 0&&w.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=j.State.IDLE)}break;default:break}this.onTickEnd()},P.onTickEnd=function(){R.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},P.doTickIdle=function(){var E,v,_=this.hls,T=this.levelLastLoaded,w=this.levels,M=this.media,Z=_.config,z=_.nextLoadLevel;if(T===null||!M&&(this.startFragRequested||!Z.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!w||!w[z])return;var L=w[z];this.level=_.nextLoadLevel=z;var W=L.details;if(!W||this.state===j.State.WAITING_LEVEL||W.live&&this.levelLastLoaded!==z){this.state=j.State.WAITING_LEVEL;return}var Y=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:M,F.PlaylistLevelType.MAIN);if(Y===null)return;var H=Y.len,ne=this.getMaxBufferLength(L.maxBitrate);if(H>=ne)return;if(this._streamEnded(Y,W)){var ce={};this.altAudio&&(ce.type="video"),this.hls.trigger(oe.Events.BUFFER_EOS,ce),this.state=j.State.ENDED;return}var we=Y.end,Ce=this.getNextFragment(we,W);if(this.couldBacktrack&&!this.fragPrevious&&Ce&&Ce.sn!=="initSegment"){var Ke=Ce.sn-W.startSN;Ke>1&&(Ce=W.fragments[Ke-1],this.fragmentTracker.removeFragment(Ce))}if(Ce&&this.fragmentTracker.getState(Ce)===l.FragmentState.OK&&this.nextLoadPosition>we){var Ie=this.audioOnly&&!this.altAudio?O.ElementaryStreamTypes.AUDIO:O.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(M,Ie,F.PlaylistLevelType.MAIN),Ce=this.getNextFragment(this.nextLoadPosition,W)}if(!Ce)return;Ce.initSegment&&!Ce.initSegment.data&&!this.bitrateTest&&(Ce=Ce.initSegment),((E=Ce.decryptdata)===null||E===void 0?void 0:E.keyFormat)==="identity"&&!((v=Ce.decryptdata)!==null&&v!==void 0&&v.key)?this.loadKey(Ce,W):this.loadFragment(Ce,W,we)},P.loadFragment=function(E,v,_){var T,w=this.fragmentTracker.getState(E);if(this.fragCurrent=E,w===l.FragmentState.BACKTRACKED){var M=this.fragmentTracker.getBacktrackData(E);if(M){this._handleFragmentLoadProgress(M),this._handleFragmentLoadComplete(M);return}else w=l.FragmentState.NOT_LOADED}w===l.FragmentState.NOT_LOADED||w===l.FragmentState.PARTIAL?E.sn==="initSegment"?this._loadInitSegment(E):this.bitrateTest?(E.bitrateTest=!0,this.log("Fragment "+E.sn+" of level "+E.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(E)):(this.startFragRequested=!0,R.prototype.loadFragment.call(this,E,v,_)):w===l.FragmentState.APPENDING?this.reduceMaxBufferLength(E.duration)&&this.fragmentTracker.removeFragment(E):((T=this.media)===null||T===void 0?void 0:T.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},P.getAppendedFrag=function(E){var v=this.fragmentTracker.getAppendedFrag(E,F.PlaylistLevelType.MAIN);return v&&"fragment"in v?v.fragment:v},P.getBufferedFrag=function(E){return this.fragmentTracker.getBufferedFrag(E,F.PlaylistLevelType.MAIN)},P.followingBufferedFrag=function(E){return E?this.getBufferedFrag(E.end+.5):null},P.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},P.nextLevelSwitch=function(){var E=this.levels,v=this.media;if(v!=null&&v.readyState){var _,T=this.getAppendedFrag(v.currentTime);if(T&&T.start>1&&this.flushMainBuffer(0,T.start-1),!v.paused&&E){var w=this.hls.nextLoadLevel,M=E[w],Z=this.fragLastKbps;Z&&this.fragCurrent?_=this.fragCurrent.duration*M.maxBitrate/(1e3*Z)+1:_=0}else _=0;var z=this.getBufferedFrag(v.currentTime+_);if(z){var L=this.followingBufferedFrag(z);if(L){this.abortCurrentFrag();var W=L.maxStartPTS?L.maxStartPTS:L.start,Y=L.duration,H=Math.max(z.end,W+Math.min(Math.max(Y-this.config.maxFragLookUpTolerance,Y*.5),Y*.75));this.flushMainBuffer(H,Number.POSITIVE_INFINITY)}}}},P.abortCurrentFrag=function(){var E=this.fragCurrent;this.fragCurrent=null,E!=null&&E.loader&&E.loader.abort(),this.state===j.State.KEY_LOADING&&(this.state=j.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},P.flushMainBuffer=function(E,v){R.prototype.flushMainBuffer.call(this,E,v,this.altAudio?"video":null)},P.onMediaAttached=function(E,v){R.prototype.onMediaAttached.call(this,E,v);var _=v.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),_.addEventListener("playing",this.onvplaying),_.addEventListener("seeked",this.onvseeked),this.gapController=new p.default(this.config,_,this.fragmentTracker,this.hls)},P.onMediaDetaching=function(){var E=this.media;E&&(E.removeEventListener("playing",this.onvplaying),E.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),R.prototype.onMediaDetaching.call(this)},P.onMediaPlaying=function(){this.tick()},P.onMediaSeeked=function(){var E=this.media,v=E?E.currentTime:null;Object(le.isFiniteNumber)(v)&&this.log("Media seeked to "+v.toFixed(3)),this.tick()},P.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(oe.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},P.onManifestParsed=function(E,v){var _=!1,T=!1,w;v.levels.forEach(function(M){w=M.audioCodec,w&&(w.indexOf("mp4a.40.2")!==-1&&(_=!0),w.indexOf("mp4a.40.5")!==-1&&(T=!0))}),this.audioCodecSwitch=_&&T&&!Object(G.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=v.levels,this.startFragRequested=!1},P.onLevelLoading=function(E,v){var _=this.levels;if(!_||this.state!==j.State.IDLE)return;var T=_[v.level];(!T.details||T.details.live&&this.levelLastLoaded!==v.level||this.waitForCdnTuneIn(T.details))&&(this.state=j.State.WAITING_LEVEL)},P.onLevelLoaded=function(E,v){var _,T=this.levels,w=v.level,M=v.details,Z=M.totalduration;if(!T){this.warn("Levels were reset while loading level "+w);return}this.log("Level "+w+" loaded ["+M.startSN+","+M.endSN+"], cc ["+M.startCC+", "+M.endCC+"] duration:"+Z);var z=this.fragCurrent;z&&(this.state===j.State.FRAG_LOADING||this.state===j.State.FRAG_LOADING_WAITING_RETRY)&&(z.level!==v.level&&z.loader&&(this.state=j.State.IDLE,z.loader.abort()));var L=T[w],W=0;if(M.live||(_=L.details)!==null&&_!==void 0&&_.live){if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed)return;W=this.alignPlaylists(M,L.details)}if(L.details=M,this.levelLastLoaded=w,this.hls.trigger(oe.Events.LEVEL_UPDATED,{details:M,level:w}),this.state===j.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(M))return;this.state=j.State.IDLE}this.startFragRequested?M.live&&this.synchronizeToLiveEdge(M):this.setStartPosition(M,W),this.tick()},P._handleFragmentLoadProgress=function(E){var v,_=E.frag,T=E.part,w=E.payload,M=this.levels;if(!M){this.warn("Levels were reset while fragment load was in progress. Fragment "+_.sn+" of level "+_.level+" will not be buffered");return}var Z=M[_.level],z=Z.details;if(!z){this.warn("Dropping fragment "+_.sn+" of level "+_.level+" after level details were reset");return}var L=Z.videoCodec,W=z.PTSKnown||!z.live,Y=(v=_.initSegment)===null||v===void 0?void 0:v.data,H=this._getAudioCodec(Z),ne=this.transmuxer=this.transmuxer||new C.default(this.hls,F.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ce=T?T.index:-1,we=ce!==-1,Ce=new b.ChunkMetadata(_.level,_.sn,_.stats.chunkCount,w.byteLength,ce,we),Ke=this.initPTS[_.cc];ne.push(w,Y,H,L,_,T,z.totalduration,W,Ce,Ke)},P.onAudioTrackSwitching=function(E,v){var _=this.altAudio,T=!!v.url,w=v.id;if(!T){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var M=this.fragCurrent;M!=null&&M.loader&&(this.log("Switching to main audio track, cancel main fragment load"),M.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var Z=this.hls;_&&Z.trigger(oe.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),Z.trigger(oe.Events.AUDIO_TRACK_SWITCHED,{id:w})}},P.onAudioTrackSwitched=function(E,v){var _=v.id,T=!!this.hls.audioTracks[_].url;if(T){var w=this.videoBuffer;w&&this.mediaBuffer!==w&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=w)}this.altAudio=T,this.tick()},P.onBufferCreated=function(E,v){var _=v.tracks,T,w,M=!1;for(var Z in _){var z=_[Z];if(z.id==="main"){if(w=Z,T=z,Z==="video"){var L=_[Z];L&&(this.videoBuffer=L.buffer)}}else M=!0}M&&T?(this.log("Alternate track found, use "+w+".buffered to schedule main fragment loading"),this.mediaBuffer=T.buffer):this.mediaBuffer=this.media},P.onFragBuffered=function(E,v){var _=v.frag,T=v.part;if(_&&_.type!==F.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(_)){this.warn("Fragment "+_.sn+(T?" p: "+T.index:"")+" of level "+_.level+" finished buffering, but was aborted. state: "+this.state),this.state===j.State.PARSED&&(this.state=j.State.IDLE);return}var w=T?T.stats:_.stats;this.fragLastKbps=Math.round(8*w.total/(w.buffering.end-w.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,T)},P.onError=function(E,v){switch(v.details){case y.ErrorDetails.FRAG_LOAD_ERROR:case y.ErrorDetails.FRAG_LOAD_TIMEOUT:case y.ErrorDetails.KEY_LOAD_ERROR:case y.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(F.PlaylistLevelType.MAIN,v);break;case y.ErrorDetails.LEVEL_LOAD_ERROR:case y.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==j.State.ERROR&&(v.fatal?(this.warn(""+v.details),this.state=j.State.ERROR):!v.levelRetry&&this.state===j.State.WAITING_LEVEL&&(this.state=j.State.IDLE));break;case y.ErrorDetails.BUFFER_FULL_ERROR:if(v.parent==="main"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var _=!0,T=this.getFwdBufferInfo(this.media,F.PlaylistLevelType.MAIN);T&&T.len>.5&&(_=!this.reduceMaxBufferLength(T.len)),_&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},P.checkBuffer=function(){var E=this.media,v=this.gapController;if(!E||!v||!E.readyState)return;var _=V.BufferHelper.getBuffered(E);!this.loadedmetadata&&_.length?(this.loadedmetadata=!0,this.seekToStartPos()):v.poll(this.lastCurrentTime),this.lastCurrentTime=E.currentTime},P.onFragLoadEmergencyAborted=function(){this.state=j.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},P.onBufferFlushed=function(E,v){var _=v.type;if(_!==O.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var T=(_===O.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(T,_,F.PlaylistLevelType.MAIN)}},P.onLevelsUpdated=function(E,v){this.levels=v.levels},P.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},P.seekToStartPos=function(){var E=this.media,v=E.currentTime,_=this.startPosition;if(_>=0&&v<_){if(E.seeking){x.logger.log("could not seek to "+_+", already seeking at "+v);return}var T=V.BufferHelper.getBuffered(E),w=T.length?T.start(0):0,M=w-_;M>0&&(M<this.config.maxBufferHole||M<this.config.maxFragLookUpTolerance)&&(x.logger.log("adjusting start position by "+M+" to match buffer start"),_+=M,this.startPosition=_),this.log("seek to target start position "+_+" from current time "+v),E.currentTime=_}},P._getAudioCodec=function(E){var v=this.config.defaultAudioCodec||E.audioCodec;return this.audioCodecSwap&&v&&(this.log("Swapping audio codec"),v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5"),v},P._loadBitrateTestFrag=function(E){var v=this;this._doFragLoad(E).then(function(_){var T=v.hls;if(!_||T.nextLoadLevel||v.fragContextChanged(E))return;v.fragLoadError=0,v.state=j.State.IDLE,v.startFragRequested=!1,v.bitrateTest=!1;var w=E.stats;w.parsing.start=w.parsing.end=w.buffering.start=w.buffering.end=self.performance.now(),T.trigger(oe.Events.FRAG_LOADED,_)})},P._handleTransmuxComplete=function(E){var v,_="main",T=this.hls,w=E.remuxResult,M=E.chunkMeta,Z=this.getCurrentContext(M);if(!Z){this.warn("The loading context changed while buffering fragment "+M.sn+" of level "+M.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(M.level);return}var z=Z.frag,L=Z.part,W=Z.level,Y=w.video,H=w.text,ne=w.id3,ce=w.initSegment,we=this.altAudio?void 0:w.audio;if(this.fragContextChanged(z))return;if(this.state=j.State.PARSING,ce){ce.tracks&&(this._bufferInitSegment(W,ce.tracks,z,M),T.trigger(oe.Events.FRAG_PARSING_INIT_SEGMENT,{frag:z,id:_,tracks:ce.tracks}));var Ce=ce.initPTS,Ke=ce.timescale;Object(le.isFiniteNumber)(Ce)&&(this.initPTS[z.cc]=Ce,T.trigger(oe.Events.INIT_PTS_FOUND,{frag:z,id:_,initPTS:Ce,timescale:Ke}))}if(Y&&w.independent!==!1){if(W.details){var Ie=Y.startPTS,je=Y.endPTS,Ve=Y.startDTS,$e=Y.endDTS;if(L)L.elementaryStreams[Y.type]={startPTS:Ie,endPTS:je,startDTS:Ve,endDTS:$e};else if(Y.firstKeyFrame&&Y.independent&&(this.couldBacktrack=!0),Y.dropped&&Y.independent){var Pe=this.getLoadPosition()+this.config.maxBufferHole;if(Pe<Ie){this.backtrack(z);return}z.setElementaryStreamInfo(Y.type,z.start,je,z.start,$e,!0)}z.setElementaryStreamInfo(Y.type,Ie,je,Ve,$e),this.bufferFragmentData(Y,z,L,M)}}else if(w.independent===!1){this.backtrack(z);return}if(we){var se=we.startPTS,S=we.endPTS,B=we.startDTS,J=we.endDTS;L&&(L.elementaryStreams[O.ElementaryStreamTypes.AUDIO]={startPTS:se,endPTS:S,startDTS:B,endDTS:J}),z.setElementaryStreamInfo(O.ElementaryStreamTypes.AUDIO,se,S,B,J),this.bufferFragmentData(we,z,L,M)}if(ne!=null&&(v=ne.samples)!==null&&v!==void 0&&v.length){var ue={frag:z,id:_,samples:ne.samples};T.trigger(oe.Events.FRAG_PARSING_METADATA,ue)}if(H){var q={frag:z,id:_,samples:H.samples};T.trigger(oe.Events.FRAG_PARSING_USERDATA,q)}},P._bufferInitSegment=function(E,v,_,T){var w=this;if(this.state!==j.State.PARSING)return;this.audioOnly=!!v.audio&&!v.video,this.altAudio&&!this.audioOnly&&delete v.audio;var M=v.audio,Z=v.video,z=v.audiovideo;if(M){var L=E.audioCodec,W=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(L&&(L.indexOf("mp4a.40.5")!==-1?L="mp4a.40.2":L="mp4a.40.5"),M.metadata.channelCount!==1&&W.indexOf("firefox")===-1&&(L="mp4a.40.5")),W.indexOf("android")!==-1&&M.container!=="audio/mpeg"&&(L="mp4a.40.2",this.log("Android: force audio codec to "+L)),E.audioCodec&&E.audioCodec!==L&&this.log('Swapping manifest audio codec "'+E.audioCodec+'" for "'+L+'"'),M.levelCodec=L,M.id="main",this.log("Init audio buffer, container:"+M.container+", codecs[selected/level/parsed]=["+(L||"")+"/"+(E.audioCodec||"")+"/"+M.codec+"]")}Z&&(Z.levelCodec=E.videoCodec,Z.id="main",this.log("Init video buffer, container:"+Z.container+", codecs[level/parsed]=["+(E.videoCodec||"")+"/"+Z.codec+"]")),z&&this.log("Init audiovideo buffer, container:"+z.container+", codecs[level/parsed]=["+(E.attrs.CODECS||"")+"/"+z.codec+"]"),this.hls.trigger(oe.Events.BUFFER_CODECS,v),Object.keys(v).forEach(function(Y){var H=v[Y],ne=H.initSegment;ne!=null&&ne.byteLength&&w.hls.trigger(oe.Events.BUFFER_APPENDING,{type:Y,data:ne,frag:_,part:null,chunkMeta:T,parent:_.type})}),this.tick()},P.backtrack=function(E){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(E);var v=this.fragmentTracker.backtrack(E);this.fragPrevious=null,this.nextLoadPosition=E.start,v?this.resetFragmentLoading(E):this.state=j.State.BACKTRACKING},P.checkFragmentChanged=function(){var E=this.media,v=null;if(E&&E.readyState>1&&E.seeking===!1){var _=E.currentTime;if(V.BufferHelper.isBuffered(E,_)?v=this.getAppendedFrag(_):V.BufferHelper.isBuffered(E,_+.1)&&(v=this.getAppendedFrag(_+.1)),v){var T=this.fragPlaying,w=v.level;(!T||v.sn!==T.sn||T.level!==w||v.urlId!==T.urlId)&&(this.hls.trigger(oe.Events.FRAG_CHANGED,{frag:v}),(!T||T.level!==w)&&this.hls.trigger(oe.Events.LEVEL_SWITCHED,{level:w}),this.fragPlaying=v)}}},h(N,[{key:"nextLevel",get:function(){var E=this.nextBufferedFrag;return E?E.level:-1}},{key:"currentLevel",get:function(){var E=this.media;if(E){var v=this.getAppendedFrag(E.currentTime);if(v)return v.level}return-1}},{key:"nextBufferedFrag",get:function(){var E=this.media;if(E){var v=this.getAppendedFrag(E.currentTime);return this.followingBufferedFrag(v)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),N}(j.default)},"./src/controller/subtitle-stream-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"SubtitleStreamController",function(){return c});var le=X("./src/events.ts"),j=X("./src/utils/logger.ts"),G=X("./src/utils/buffer-helper.ts"),oe=X("./src/controller/fragment-finders.ts"),V=X("./src/utils/discontinuities.ts"),l=X("./src/controller/level-helper.ts"),F=X("./src/controller/fragment-tracker.ts"),O=X("./src/controller/base-stream-controller.ts"),C=X("./src/types/loader.ts"),b=X("./src/types/level.ts");function p(d,I){for(var A=0;A<I.length;A++){var R=I[A];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(d,R.key,R)}}function y(d,I,A){return I&&p(d.prototype,I),A&&p(d,A),d}function x(d,I){d.prototype=Object.create(I.prototype),d.prototype.constructor=d,g(d,I)}function g(d,I){return g=Object.setPrototypeOf||function(R,N){return R.__proto__=N,R},g(d,I)}var h=500,c=function(d){x(I,d);function I(R,N){var P;return P=d.call(this,R,N,"[subtitle-stream-controller]")||this,P.levels=[],P.currentTrackId=-1,P.tracksBuffered=[],P.mainDetails=null,P._registerListeners(),P}var A=I.prototype;return A.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},A._registerListeners=function(){var N=this.hls;N.on(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),N.on(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),N.on(le.Events.MANIFEST_LOADING,this.onManifestLoading,this),N.on(le.Events.LEVEL_LOADED,this.onLevelLoaded,this),N.on(le.Events.ERROR,this.onError,this),N.on(le.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),N.on(le.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),N.on(le.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),N.on(le.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),N.on(le.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},A._unregisterListeners=function(){var N=this.hls;N.off(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),N.off(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),N.off(le.Events.MANIFEST_LOADING,this.onManifestLoading,this),N.off(le.Events.LEVEL_LOADED,this.onLevelLoaded,this),N.off(le.Events.ERROR,this.onError,this),N.off(le.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),N.off(le.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),N.off(le.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),N.off(le.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),N.off(le.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},A.startLoad=function(){this.stopLoad(),this.state=O.State.IDLE,this.setInterval(h),this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},A.onLevelLoaded=function(N,P){this.mainDetails=P.details},A.onSubtitleFragProcessed=function(N,P){var D=P.frag,E=P.success;if(this.fragPrevious=D,this.state=O.State.IDLE,!E)return;var v=this.tracksBuffered[this.currentTrackId];if(!v)return;for(var _,T=D.start,w=0;w<v.length;w++)if(T>=v[w].start&&T<=v[w].end){_=v[w];break}var M=D.start+D.duration;_?_.end=M:(_={start:T,end:M},v.push(_)),this.fragmentTracker.fragBuffered(D)},A.onBufferFlushing=function(N,P){var D=P.startOffset,E=P.endOffset;if(D===0&&E!==Number.POSITIVE_INFINITY){var v=this.currentTrackId,_=this.levels;if(!_.length||!_[v]||!_[v].details)return;var T=_[v].details,w=T.targetduration,M=E-w;if(M<=0)return;P.endOffsetSubtitles=Math.max(0,M),this.tracksBuffered.forEach(function(Z){for(var z=0;z<Z.length;){if(Z[z].end<=M){Z.shift();continue}else if(Z[z].start<M)Z[z].start=M;else break;z++}}),this.fragmentTracker.removeFragmentsInRange(D,M,C.PlaylistLevelType.SUBTITLE)}},A.onError=function(N,P){var D,E=P.frag;if(!E||E.type!==C.PlaylistLevelType.SUBTITLE)return;(D=this.fragCurrent)!==null&&D!==void 0&&D.loader&&this.fragCurrent.loader.abort(),this.state=O.State.IDLE},A.onSubtitleTracksUpdated=function(N,P){var D=this,E=P.subtitleTracks;this.tracksBuffered=[],this.levels=E.map(function(v){return new b.Level(v)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(v){D.tracksBuffered[v.id]=[]}),this.mediaBuffer=null},A.onSubtitleTrackSwitch=function(N,P){if(this.currentTrackId=P.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var D=this.levels[this.currentTrackId];D!=null&&D.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,D&&this.setInterval(h)},A.onSubtitleTrackLoaded=function(N,P){var D,E=P.details,v=P.id,_=this.currentTrackId,T=this.levels;if(!T.length)return;var w=T[_];if(v>=T.length||v!==_||!w)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,E.live||(D=w.details)!==null&&D!==void 0&&D.live){var M=this.mainDetails;if(E.deltaUpdateFailed||!M)return;var Z=M.fragments[0];if(!w.details)E.hasProgramDateTime&&M.hasProgramDateTime?Object(V.alignMediaPlaylistByPDT)(E,M):Z&&Object(l.addSliding)(E,Z.start);else{var z=this.alignPlaylists(E,w.details);z===0&&Z&&Object(l.addSliding)(E,Z.start)}}if(w.details=E,this.levelLastLoaded=v,this.tick(),E.live&&!this.fragCurrent&&this.media&&this.state===O.State.IDLE){var L=Object(oe.findFragmentByPTS)(null,E.fragments,this.media.currentTime,0);L||(this.warn("Subtitle playlist not aligned with playback"),w.details=void 0)}},A._handleFragmentLoadComplete=function(N){var P=N.frag,D=N.payload,E=P.decryptdata,v=this.hls;if(this.fragContextChanged(P))return;if(D&&D.byteLength>0&&E&&E.key&&E.iv&&E.method==="AES-128"){var _=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(D),E.key.buffer,E.iv.buffer).then(function(T){var w=performance.now();v.trigger(le.Events.FRAG_DECRYPTED,{frag:P,payload:T,stats:{tstart:_,tdecrypt:w}})})}},A.doTick=function(){if(!this.media){this.state=O.State.IDLE;return}if(this.state===O.State.IDLE){var N,P=this.currentTrackId,D=this.levels;if(!D.length||!D[P]||!D[P].details)return;var E=D[P].details,v=E.targetduration,_=this.config,T=this.media,w=G.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,T.currentTime-v,_.maxBufferHole),M=w.end,Z=w.len,z=this.getMaxBufferLength()+v;if(Z>z)return;console.assert(E,"Subtitle track details are defined on idle subtitle stream controller tick");var L=E.fragments,W=L.length,Y=E.edge,H,ne=this.fragPrevious;if(M<Y){var ce=_.maxFragLookUpTolerance;ne&&E.hasProgramDateTime&&(H=Object(oe.findFragmentByPDT)(L,ne.endProgramDateTime,ce)),H||(H=Object(oe.findFragmentByPTS)(ne,L,M,ce),!H&&ne&&ne.start<L[0].start&&(H=L[0]))}else H=L[W-1];(N=H)!==null&&N!==void 0&&N.encrypted?(j.logger.log("Loading key for "+H.sn),this.state=O.State.KEY_LOADING,this.hls.trigger(le.Events.KEY_LOADING,{frag:H})):H&&this.fragmentTracker.getState(H)===F.FragmentState.NOT_LOADED&&this.loadFragment(H,E,M)}},A.loadFragment=function(N,P,D){this.fragCurrent=N,d.prototype.loadFragment.call(this,N,P,D)},y(I,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),I}(O.default)},"./src/controller/subtitle-track-controller.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/events.ts"),j=X("./src/utils/texttrack-utils.ts"),G=X("./src/controller/base-playlist-controller.ts"),oe=X("./src/types/loader.ts");function V(p,y){for(var x=0;x<y.length;x++){var g=y[x];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function l(p,y,x){return y&&V(p.prototype,y),x&&V(p,x),p}function F(p,y){p.prototype=Object.create(y.prototype),p.prototype.constructor=p,O(p,y)}function O(p,y){return O=Object.setPrototypeOf||function(g,h){return g.__proto__=h,g},O(p,y)}var C=function(p){F(y,p);function y(g){var h;return h=p.call(this,g,"[subtitle-track-controller]")||this,h.media=null,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.selectDefaultTrack=!0,h.queuedDefaultTrack=-1,h.trackChangeListener=function(){return h.onTextTracksChanged()},h.asyncPollTrackChange=function(){return h.pollTrackChange(0)},h.useTextTrackPolling=!1,h.subtitlePollingInterval=-1,h.subtitleDisplay=!0,h.registerListeners(),h}var x=y.prototype;return x.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,p.prototype.destroy.call(this)},x.registerListeners=function(){var h=this.hls;h.on(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(le.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(le.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(le.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(le.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.on(le.Events.ERROR,this.onError,this)},x.unregisterListeners=function(){var h=this.hls;h.off(le.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(le.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(le.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(le.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(le.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(le.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(le.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.off(le.Events.ERROR,this.onError,this)},x.onMediaAttached=function(h,c){if(this.media=c.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},x.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},x.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var h=b(this.media.textTracks);h.forEach(function(c){Object(j.clearCurrentCues)(c)}),this.subtitleTrack=-1,this.media=null},x.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},x.onManifestParsed=function(h,c){this.tracks=c.subtitleTracks},x.onSubtitleTrackLoaded=function(h,c){var d=c.id,I=c.details,A=this.trackId,R=this.tracksInGroup[A];if(!R){this.warn("Invalid subtitle track id "+d);return}var N=R.details;R.details=c.details,this.log("subtitle track "+d+" loaded ["+I.startSN+"-"+I.endSN+"]"),d===this.trackId&&(this.retryCount=0,this.playlistLoaded(d,c,N))},x.onLevelLoading=function(h,c){this.switchLevel(c.level)},x.onLevelSwitching=function(h,c){this.switchLevel(c.level)},x.switchLevel=function(h){var c=this.hls.levels[h];if(!(c!=null&&c.textGroupIds))return;var d=c.textGroupIds[c.urlId];if(this.groupId!==d){var I=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,A=this.tracks.filter(function(P){return!d||P.groupId===d});this.tracksInGroup=A;var R=this.findTrackId(I==null?void 0:I.name)||this.findTrackId();this.groupId=d;var N={subtitleTracks:A};this.log("Updating subtitle tracks, "+A.length+' track(s) found in "'+d+'" group-id'),this.hls.trigger(le.Events.SUBTITLE_TRACKS_UPDATED,N),R!==-1&&this.setSubtitleTrack(R,I)}},x.findTrackId=function(h){for(var c=this.tracksInGroup,d=0;d<c.length;d++){var I=c[d];if((!this.selectDefaultTrack||I.default)&&(!h||h===I.name))return I.id}return-1},x.onError=function(h,c){if(p.prototype.onError.call(this,h,c),c.fatal||!c.context)return;c.context.type===oe.PlaylistContextType.SUBTITLE_TRACK&&c.context.id===this.trackId&&c.context.groupId===this.groupId&&this.retryLoadingOrFail(c)},x.loadPlaylist=function(h){var c=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(c)){var d=c.id,I=c.groupId,A=c.url;if(h)try{A=h.addDirectives(A)}catch(R){this.warn("Could not construct new URL with HLS Delivery Directives: "+R)}this.log("Loading subtitle playlist for id "+d),this.hls.trigger(le.Events.SUBTITLE_TRACK_LOADING,{url:A,id:d,groupId:I,deliveryDirectives:h||null})}},x.toggleTrackModes=function(h){var c=this,d=this.media,I=this.subtitleDisplay,A=this.trackId;if(!d)return;var R=b(d.textTracks),N=R.filter(function(E){return E.groupId===c.groupId});if(h===-1)[].slice.call(R).forEach(function(E){E.mode="disabled"});else{var P=N[A];P&&(P.mode="disabled")}var D=N[h];D&&(D.mode=I?"showing":"hidden")},x.setSubtitleTrack=function(h,c){var d,I=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(d=I[h])!==null&&d!==void 0&&d.details)||h<-1||h>=I.length)return;this.clearTimer();var A=I[h];if(this.log("Switching to subtitle track "+h),this.trackId=h,A){var R=A.id,N=A.groupId,P=N===void 0?"":N,D=A.name,E=A.type,v=A.url;this.hls.trigger(le.Events.SUBTITLE_TRACK_SWITCH,{id:R,groupId:P,name:D,type:E,url:v});var _=this.switchParams(A.url,c==null?void 0:c.details);this.loadPlaylist(_)}else this.hls.trigger(le.Events.SUBTITLE_TRACK_SWITCH,{id:h})},x.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,c=b(this.media.textTracks),d=0;d<c.length;d++)if(c[d].mode==="hidden")h=d;else if(c[d].mode==="showing"){h=d;break}this.subtitleTrack!==h&&(this.subtitleTrack=h)},l(y,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1;var c=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(h,c)}}]),y}(G.default);function b(p){for(var y=[],x=0;x<p.length;x++){var g=p[x];g.kind==="subtitles"&&g.label&&y.push(p[x])}return y}ae.default=C},"./src/controller/timeline-controller.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"TimelineController",function(){return b});var le=X("./src/polyfills/number.ts"),j=X("./src/events.ts"),G=X("./src/utils/cea-608-parser.ts"),oe=X("./src/utils/output-filter.ts"),V=X("./src/utils/webvtt-parser.ts"),l=X("./src/utils/texttrack-utils.ts"),F=X("./src/utils/imsc1-ttml-parser.ts"),O=X("./src/types/loader.ts"),C=X("./src/utils/logger.ts"),b=function(){function g(c){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=x(),this.captionsProperties=void 0,this.hls=c,this.config=c.config,this.Cues=c.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var d=new oe.default(this,"textTrack1"),I=new oe.default(this,"textTrack2"),A=new oe.default(this,"textTrack3"),R=new oe.default(this,"textTrack4");this.cea608Parser1=new G.default(1,d,I),this.cea608Parser2=new G.default(3,A,R)}c.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),c.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.on(j.Events.MANIFEST_LOADED,this.onManifestLoaded,this),c.on(j.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),c.on(j.Events.FRAG_LOADING,this.onFragLoading,this),c.on(j.Events.FRAG_LOADED,this.onFragLoaded,this),c.on(j.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),c.on(j.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),c.on(j.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),c.on(j.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),c.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var h=g.prototype;return h.destroy=function(){var d=this.hls;d.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(j.Events.MANIFEST_LOADED,this.onManifestLoaded,this),d.off(j.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),d.off(j.Events.FRAG_LOADING,this.onFragLoading,this),d.off(j.Events.FRAG_LOADED,this.onFragLoaded,this),d.off(j.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),d.off(j.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),d.off(j.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),d.off(j.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),d.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},h.addCues=function(d,I,A,R,N){for(var P=!1,D=N.length;D--;){var E=N[D],v=y(E[0],E[1],I,A);if(v>=0&&(E[0]=Math.min(E[0],I),E[1]=Math.max(E[1],A),P=!0,v/(A-I)>.5))return}if(P||N.push([I,A]),this.config.renderTextTracksNatively){var _=this.captionsTracks[d];this.Cues.newCue(_,I,A,R)}else{var T=this.Cues.newCue(null,I,A,R);this.hls.trigger(j.Events.CUES_PARSED,{type:"captions",cues:T,track:d})}},h.onInitPtsFound=function(d,I){var A=this,R=I.frag,N=I.id,P=I.initPTS,D=I.timescale,E=this.unparsedVttFrags;N==="main"&&(this.initPTS[R.cc]=P,this.timescale[R.cc]=D),E.length&&(this.unparsedVttFrags=[],E.forEach(function(v){A.onFragLoaded(j.Events.FRAG_LOADED,v)}))},h.getExistingTrack=function(d){var I=this.media;if(I)for(var A=0;A<I.textTracks.length;A++){var R=I.textTracks[A];if(R[d])return R}return null},h.createCaptionsTrack=function(d){this.config.renderTextTracksNatively?this.createNativeTrack(d):this.createNonNativeTrack(d)},h.createNativeTrack=function(d){if(this.captionsTracks[d])return;var I=this.captionsProperties,A=this.captionsTracks,R=this.media,N=I[d],P=N.label,D=N.languageCode,E=this.getExistingTrack(d);if(E)A[d]=E,Object(l.clearCurrentCues)(A[d]),Object(l.sendAddTrackEvent)(A[d],R);else{var v=this.createTextTrack("captions",P,D);v&&(v[d]=!0,A[d]=v)}},h.createNonNativeTrack=function(d){if(this.nonNativeCaptionsTracks[d])return;var I=this.captionsProperties[d];if(!I)return;var A=I.label,R={_id:d,label:A,kind:"captions",default:I.media?!!I.media.default:!1,closedCaptions:I.media};this.nonNativeCaptionsTracks[d]=R,this.hls.trigger(j.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[R]})},h.createTextTrack=function(d,I,A){var R=this.media;return R?R.addTextTrack(d,I,A):void 0},h.onMediaAttaching=function(d,I){this.media=I.media,this._cleanTracks()},h.onMediaDetaching=function(){var d=this.captionsTracks;Object.keys(d).forEach(function(I){Object(l.clearCurrentCues)(d[I]),delete d[I]}),this.nonNativeCaptionsTracks={}},h.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=x(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},h._cleanTracks=function(){var d=this.media;if(!d)return;var I=d.textTracks;if(I)for(var A=0;A<I.length;A++)Object(l.clearCurrentCues)(I[A])},h.onSubtitleTracksUpdated=function(d,I){var A=this;this.textTracks=[];var R=I.subtitleTracks||[],N=R.some(function(v){return v.textCodec===F.IMSC1_CODEC});if(this.config.enableWebVTT||N&&this.config.enableIMSC1){var P=this.tracks&&R&&this.tracks.length===R.length;if(this.tracks=R||[],this.config.renderTextTracksNatively){var D=this.media?this.media.textTracks:[];this.tracks.forEach(function(v,_){var T;if(_<D.length){for(var w=null,M=0;M<D.length;M++)if(p(D[M],v)){w=D[M];break}w&&(T=w)}T?Object(l.clearCurrentCues)(T):(T=A.createTextTrack("subtitles",v.name,v.lang),T&&(T.mode="disabled")),T&&(T.groupId=v.groupId,A.textTracks.push(T))})}else if(!P&&this.tracks&&this.tracks.length){var E=this.tracks.map(function(v){return{label:v.name,kind:v.type.toLowerCase(),default:v.default,subtitleTrack:v}});this.hls.trigger(j.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:E})}}},h.onManifestLoaded=function(d,I){var A=this;this.config.enableCEA708Captions&&I.captions&&I.captions.forEach(function(R){var N=/(?:CC|SERVICE)([1-4])/.exec(R.instreamId);if(!N)return;var P="textTrack"+N[1],D=A.captionsProperties[P];if(!D)return;D.label=R.name,R.lang&&(D.languageCode=R.lang),D.media=R})},h.onFragLoading=function(d,I){var A=this.cea608Parser1,R=this.cea608Parser2,N=this.lastSn,P=this.lastPartIndex;if(!this.enabled||!(A&&R))return;if(I.frag.type===O.PlaylistLevelType.MAIN){var D,E,v=I.frag.sn,_=(D=I==null||((E=I.part)===null||E===void 0)?void 0:E.index)!=null?D:-1;v===N+1||v===N&&_===P+1||(A.reset(),R.reset()),this.lastSn=v,this.lastPartIndex=_}},h.onFragLoaded=function(d,I){var A=I.frag,R=I.payload,N=this.initPTS,P=this.unparsedVttFrags;if(A.type===O.PlaylistLevelType.SUBTITLE)if(R.byteLength){if(!Object(le.isFiniteNumber)(N[A.cc])){P.push(I),N.length&&this.hls.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:A,error:new Error("Missing initial subtitle PTS")});return}var D=A.decryptdata;if(D==null||D.key==null||D.method!=="AES-128"){var E=this.tracks[A.level],v=this.vttCCs;v[A.cc]||(v[A.cc]={start:A.start,prevCC:this.prevCC,new:!0},this.prevCC=A.cc),E&&E.textCodec===F.IMSC1_CODEC?this._parseIMSC1(A,R):this._parseVTTs(A,R,v)}}else this.hls.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:A,error:new Error("Empty subtitle payload")})},h._parseIMSC1=function(d,I){var A=this,R=this.hls;Object(F.parseIMSC1)(I,this.initPTS[d.cc],this.timescale[d.cc],function(N){A._appendCues(N,d.level),R.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:d})},function(N){C.logger.log("Failed to parse IMSC1: "+N),R.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:d,error:N})})},h._parseVTTs=function(d,I,A){var R=this,N=this.hls;Object(V.parseWebVTT)(I,this.initPTS[d.cc],this.timescale[d.cc],A,d.cc,d.start,function(P){R._appendCues(P,d.level),N.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:d})},function(P){R._fallbackToIMSC1(d,I),C.logger.log("Failed to parse VTT cue: "+P),N.trigger(j.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:d,error:P})})},h._fallbackToIMSC1=function(d,I){var A=this,R=this.tracks[d.level];R.textCodec||Object(F.parseIMSC1)(I,this.initPTS[d.cc],this.timescale[d.cc],function(){R.textCodec=F.IMSC1_CODEC,A._parseIMSC1(d,I)},function(){R.textCodec="wvtt"})},h._appendCues=function(d,I){var A=this.hls;if(this.config.renderTextTracksNatively){var R=this.textTracks[I];if(R.mode==="disabled")return;d.forEach(function(D){return Object(l.addCueToTrack)(R,D)})}else{var N=this.tracks[I],P=N.default?"default":"subtitles"+I;A.trigger(j.Events.CUES_PARSED,{type:"subtitles",cues:d,track:P})}},h.onFragDecrypted=function(d,I){var A=I.frag;if(A.type===O.PlaylistLevelType.SUBTITLE){if(!Object(le.isFiniteNumber)(this.initPTS[A.cc])){this.unparsedVttFrags.push(I);return}this.onFragLoaded(j.Events.FRAG_LOADED,I)}},h.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},h.onFragParsingUserdata=function(d,I){var A=this.cea608Parser1,R=this.cea608Parser2;if(!this.enabled||!(A&&R))return;for(var N=0;N<I.samples.length;N++){var P=I.samples[N].bytes;if(P){var D=this.extractCea608Data(P);A.addData(I.samples[N].pts,D[0]),R.addData(I.samples[N].pts,D[1])}}},h.onBufferFlushing=function(d,I){var A=I.startOffset,R=I.endOffset,N=I.endOffsetSubtitles,P=I.type,D=this.media;if(!D||D.currentTime<R)return;if(!P||P==="video"){var E=this.captionsTracks;Object.keys(E).forEach(function(_){return Object(l.removeCuesInRange)(E[_],A,R)})}if(this.config.renderTextTracksNatively&&(A===0&&N!==void 0)){var v=this.textTracks;Object.keys(v).forEach(function(_){return Object(l.removeCuesInRange)(v[_],A,N)})}},h.extractCea608Data=function(d){for(var I=d[0]&31,A=2,R=[[],[]],N=0;N<I;N++){var P=d[A++],D=127&d[A++],E=127&d[A++],v=(4&P)!==0,_=3&P;if(D===0&&E===0)continue;v&&((_===0||_===1)&&(R[_].push(D),R[_].push(E)))}return R},g}();function p(g,h){return g&&g.label===h.name&&!(g.textTrack1||g.textTrack2)}function y(g,h,c,d){return Math.min(h,d)-Math.max(g,c)}function x(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return le});var le=function(){function j(oe,V){this.subtle=void 0,this.aesIV=void 0,this.subtle=oe,this.aesIV=V}var G=j.prototype;return G.decrypt=function(V,l){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},l,V)},j}()},"./src/crypt/aes-decryptor.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"removePadding",function(){return j}),X.d(ae,"default",function(){return G});var le=X("./src/utils/typed-array.ts");function j(oe){var V=oe.byteLength,l=V&&new DataView(oe.buffer).getUint8(V-1);return l?Object(le.sliceUint8)(oe,0,V-l):oe}var G=function(){function oe(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var V=oe.prototype;return V.uint8ArrayToUint32Array_=function(F){for(var O=new DataView(F),C=new Uint32Array(4),b=0;b<4;b++)C[b]=O.getUint32(b*4);return C},V.initTable=function(){var F=this.sBox,O=this.invSBox,C=this.subMix,b=C[0],p=C[1],y=C[2],x=C[3],g=this.invSubMix,h=g[0],c=g[1],d=g[2],I=g[3],A=new Uint32Array(256),R=0,N=0,P=0;for(P=0;P<256;P++)P<128?A[P]=P<<1:A[P]=P<<1^283;for(P=0;P<256;P++){var D=N^N<<1^N<<2^N<<3^N<<4;D=D>>>8^D&255^99,F[R]=D,O[D]=R;var E=A[R],v=A[E],_=A[v],T=A[D]*257^D*16843008;b[R]=T<<24|T>>>8,p[R]=T<<16|T>>>16,y[R]=T<<8|T>>>24,x[R]=T,T=_*16843009^v*65537^E*257^R*16843008,h[D]=T<<24|T>>>8,c[D]=T<<16|T>>>16,d[D]=T<<8|T>>>24,I[D]=T,R?(R=E^A[A[A[_^E]]],N^=A[A[N]]):R=N=1}},V.expandKey=function(F){for(var O=this.uint8ArrayToUint32Array_(F),C=!0,b=0;b<O.length&&C;)C=O[b]===this.key[b],b++;if(C)return;this.key=O;var p=this.keySize=O.length;if(p!==4&&p!==6&&p!==8)throw new Error("Invalid aes key size="+p);var y=this.ksRows=(p+6+1)*4,x,g,h=this.keySchedule=new Uint32Array(y),c=this.invKeySchedule=new Uint32Array(y),d=this.sBox,I=this.rcon,A=this.invSubMix,R=A[0],N=A[1],P=A[2],D=A[3],E,v;for(x=0;x<y;x++){if(x<p){E=h[x]=O[x];continue}v=E,x%p===0?(v=v<<8|v>>>24,v=d[v>>>24]<<24|d[v>>>16&255]<<16|d[v>>>8&255]<<8|d[v&255],v^=I[x/p|0]<<24):p>6&&x%p===4&&(v=d[v>>>24]<<24|d[v>>>16&255]<<16|d[v>>>8&255]<<8|d[v&255]),h[x]=E=(h[x-p]^v)>>>0}for(g=0;g<y;g++)x=y-g,g&3?v=h[x]:v=h[x-4],g<4||x<=4?c[g]=v:c[g]=R[d[v>>>24]]^N[d[v>>>16&255]]^P[d[v>>>8&255]]^D[d[v&255]],c[g]=c[g]>>>0},V.networkToHostOrderSwap=function(F){return F<<24|(F&65280)<<8|(F&16711680)>>8|F>>>24},V.decrypt=function(F,O,C){for(var b=this.keySize+6,p=this.invKeySchedule,y=this.invSBox,x=this.invSubMix,g=x[0],h=x[1],c=x[2],d=x[3],I=this.uint8ArrayToUint32Array_(C),A=I[0],R=I[1],N=I[2],P=I[3],D=new Int32Array(F),E=new Int32Array(D.length),v,_,T,w,M,Z,z,L,W,Y,H,ne,ce,we,Ce=this.networkToHostOrderSwap;O<D.length;){for(W=Ce(D[O]),Y=Ce(D[O+1]),H=Ce(D[O+2]),ne=Ce(D[O+3]),M=W^p[0],Z=ne^p[1],z=H^p[2],L=Y^p[3],ce=4,we=1;we<b;we++)v=g[M>>>24]^h[Z>>16&255]^c[z>>8&255]^d[L&255]^p[ce],_=g[Z>>>24]^h[z>>16&255]^c[L>>8&255]^d[M&255]^p[ce+1],T=g[z>>>24]^h[L>>16&255]^c[M>>8&255]^d[Z&255]^p[ce+2],w=g[L>>>24]^h[M>>16&255]^c[Z>>8&255]^d[z&255]^p[ce+3],M=v,Z=_,z=T,L=w,ce=ce+4;v=y[M>>>24]<<24^y[Z>>16&255]<<16^y[z>>8&255]<<8^y[L&255]^p[ce],_=y[Z>>>24]<<24^y[z>>16&255]<<16^y[L>>8&255]<<8^y[M&255]^p[ce+1],T=y[z>>>24]<<24^y[L>>16&255]<<16^y[M>>8&255]<<8^y[Z&255]^p[ce+2],w=y[L>>>24]<<24^y[M>>16&255]<<16^y[Z>>8&255]<<8^y[z&255]^p[ce+3],E[O]=Ce(v^A),E[O+1]=Ce(w^R),E[O+2]=Ce(T^N),E[O+3]=Ce(_^P),A=W,R=Y,N=H,P=ne,O=O+4}return E.buffer},oe}()},"./src/crypt/decrypter.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return O});var le=X("./src/crypt/aes-crypto.ts"),j=X("./src/crypt/fast-aes-key.ts"),G=X("./src/crypt/aes-decryptor.ts"),oe=X("./src/utils/logger.ts"),V=X("./src/utils/mp4-tools.ts"),l=X("./src/utils/typed-array.ts"),F=16,O=function(){function C(p,y,x){var g=x===void 0?{}:x,h=g.removePKCS7Padding,c=h===void 0?!0:h;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=p,this.config=y,this.removePKCS7Padding=c,c)try{var d=self.crypto;d&&(this.subtle=d.subtle||d.webkitSubtle)}catch(I){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var b=C.prototype;return b.destroy=function(){this.observer=null},b.isSync=function(){return this.config.enableSoftwareAES},b.flush=function(){var y=this.currentResult;if(!y){this.reset();return}var x=new Uint8Array(y);return this.reset(),this.removePKCS7Padding?Object(G.removePadding)(x):x},b.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},b.decrypt=function(y,x,g,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(y),x,g);var c=this.flush();c&&h(c.buffer)}else this.webCryptoDecrypt(new Uint8Array(y),x,g).then(h)},b.softwareDecrypt=function(y,x,g){var h=this.currentIV,c=this.currentResult,d=this.remainderData;this.logOnce("JS AES decrypt"),d&&(y=Object(V.appendUint8Array)(d,y),this.remainderData=null);var I=this.getValidChunk(y);if(!I.length)return null;h&&(g=h);var A=this.softwareDecrypter;A||(A=this.softwareDecrypter=new G.default),A.expandKey(x);var R=c;return this.currentResult=A.decrypt(I.buffer,0,g),this.currentIV=Object(l.sliceUint8)(I,-16).buffer,R||null},b.webCryptoDecrypt=function(y,x,g){var h=this,c=this.subtle;return(this.key!==x||!this.fastAesKey)&&(this.key=x,this.fastAesKey=new j.default(c,x)),this.fastAesKey.expandKey().then(function(d){if(!c)return Promise.reject(new Error("web crypto not initialized"));var I=new le.default(c,g);return I.decrypt(y.buffer,d)}).catch(function(d){return h.onWebCryptoError(d,y,x,g)})},b.onWebCryptoError=function(y,x,g,h){return oe.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",y),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(x,g,h)},b.getValidChunk=function(y){var x=y,g=y.length-y.length%F;return g!==y.length&&(x=Object(l.sliceUint8)(y,0,g),this.remainderData=Object(l.sliceUint8)(y,g)),x},b.logOnce=function(y){if(!this.logEnabled)return;oe.logger.log("[decrypter.ts]: "+y),this.logEnabled=!1},C}()},"./src/crypt/fast-aes-key.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return le});var le=function(){function j(oe,V){this.subtle=void 0,this.key=void 0,this.subtle=oe,this.key=V}var G=j.prototype;return G.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},j}()},"./src/demux/aacdemuxer.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/demux/base-audio-demuxer.ts"),j=X("./src/demux/adts.ts"),G=X("./src/utils/logger.ts"),oe=X("./src/demux/id3.ts");function V(O,C){O.prototype=Object.create(C.prototype),O.prototype.constructor=O,l(O,C)}function l(O,C){return l=Object.setPrototypeOf||function(p,y){return p.__proto__=y,p},l(O,C)}var F=function(O){V(C,O);function C(p,y){var x;return x=O.call(this)||this,x.observer=void 0,x.config=void 0,x.observer=p,x.config=y,x}var b=C.prototype;return b.resetInitSegment=function(y,x,g){O.prototype.resetInitSegment.call(this,y,x,g),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:y,duration:g,inputTimeScale:9e4,dropped:0}},C.probe=function(y){if(!y)return!1;for(var x=oe.getID3Data(y,0)||[],g=x.length,h=y.length;g<h;g++)if(j.probe(y,g))return G.logger.log("ADTS sync word found !"),!0;return!1},b.canParse=function(y,x){return j.canParse(y,x)},b.appendFrame=function(y,x,g){j.initTrackConfig(y,this.observer,x,g,y.manifestCodec);var h=j.appendFrame(y,x,g,this.initPTS,this.frameIndex);if(h&&h.missing===0)return h},C}(le.default);F.minProbeByteLength=9,ae.default=F},"./src/demux/adts.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"getAudioConfig",function(){return oe}),X.d(ae,"isHeaderPattern",function(){return V}),X.d(ae,"getHeaderLength",function(){return l}),X.d(ae,"getFullFrameLength",function(){return F}),X.d(ae,"canGetFrameLength",function(){return O}),X.d(ae,"isHeader",function(){return C}),X.d(ae,"canParse",function(){return b}),X.d(ae,"probe",function(){return p}),X.d(ae,"initTrackConfig",function(){return y}),X.d(ae,"getFrameDuration",function(){return x}),X.d(ae,"parseFrameHeader",function(){return g}),X.d(ae,"appendFrame",function(){return h});var le=X("./src/utils/logger.ts"),j=X("./src/errors.ts"),G=X("./src/events.ts");function oe(c,d,I,A){var R,N,P,D,E=navigator.userAgent.toLowerCase(),v=A,_=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];R=((d[I+2]&192)>>>6)+1;var T=(d[I+2]&60)>>>2;if(T>_.length-1){c.trigger(G.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+T});return}return P=(d[I+2]&1)<<2,P|=(d[I+3]&192)>>>6,le.logger.log("manifest codec:"+A+", ADTS type:"+R+", samplingIndex:"+T),/firefox/i.test(E)?T>=6?(R=5,D=new Array(4),N=T-3):(R=2,D=new Array(2),N=T):E.indexOf("android")!==-1?(R=2,D=new Array(2),N=T):(R=5,D=new Array(4),A&&(A.indexOf("mp4a.40.29")!==-1||A.indexOf("mp4a.40.5")!==-1)||!A&&T>=6?N=T-3:((A&&A.indexOf("mp4a.40.2")!==-1&&(T>=6&&P===1||/vivaldi/i.test(E))||!A&&P===1)&&(R=2,D=new Array(2)),N=T)),D[0]=R<<3,D[0]|=(T&14)>>1,D[1]|=(T&1)<<7,D[1]|=P<<3,R===5&&(D[1]|=(N&14)>>1,D[2]=(N&1)<<7,D[2]|=2<<2,D[3]=0),{config:D,samplerate:_[T],channelCount:P,codec:"mp4a.40."+R,manifestCodec:v}}function V(c,d){return c[d]===255&&(c[d+1]&246)===240}function l(c,d){return c[d+1]&1?7:9}function F(c,d){return(c[d+3]&3)<<11|c[d+4]<<3|(c[d+5]&224)>>>5}function O(c,d){return d+5<c.length}function C(c,d){return d+1<c.length&&V(c,d)}function b(c,d){return O(c,d)&&V(c,d)&&F(c,d)<=c.length-d}function p(c,d){if(C(c,d)){var I=l(c,d);if(d+I>=c.length)return!1;var A=F(c,d);if(A<=I)return!1;var R=d+A;return R===c.length||C(c,R)}return!1}function y(c,d,I,A,R){if(!c.samplerate){var N=oe(d,I,A,R);if(!N)return;c.config=N.config,c.samplerate=N.samplerate,c.channelCount=N.channelCount,c.codec=N.codec,c.manifestCodec=N.manifestCodec,le.logger.log("parsed codec:"+c.codec+", rate:"+N.samplerate+", channels:"+N.channelCount)}}function x(c){return 1024*9e4/c}function g(c,d,I,A,R){var N=l(c,d),P=F(c,d);if(P-=N,P>0){var D=I+A*R;return{headerLength:N,frameLength:P,stamp:D}}}function h(c,d,I,A,R){var N=x(c.samplerate),P=g(d,I,A,R,N);if(P){var D=P.frameLength,E=P.headerLength,v=P.stamp,_=E+D,T=Math.max(0,I+_-d.length),w;T?(w=new Uint8Array(_-E),w.set(d.subarray(I+E,d.length),0)):w=d.subarray(I+E,I+_);var M={unit:w,pts:v};return T||c.samples.push(M),{sample:M,length:_,missing:T}}}},"./src/demux/base-audio-demuxer.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"initPTSFn",function(){return F});var le=X("./src/polyfills/number.ts"),j=X("./src/demux/id3.ts"),G=X("./src/demux/dummy-demuxed-track.ts"),oe=X("./src/utils/mp4-tools.ts"),V=X("./src/utils/typed-array.ts"),l=function(){function O(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var C=O.prototype;return C.resetInitSegment=function(p,y,x){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},C.resetTimeStamp=function(){},C.resetContiguity=function(){},C.canParse=function(p,y){return!1},C.appendFrame=function(p,y,x){},C.demux=function(p,y){this.cachedData&&(p=Object(oe.appendUint8Array)(this.cachedData,p),this.cachedData=null);var x=j.getID3Data(p,0),g=x?x.length:0,h,c,d=this._audioTrack,I=this._id3Track,A=x?j.getTimeStamp(x):void 0,R=p.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=F(A,y)),x&&x.length>0&&I.samples.push({pts:this.initPTS,dts:this.initPTS,data:x}),c=this.initPTS;g<R;){if(this.canParse(p,g)){var N=this.appendFrame(d,p,g);N?(this.frameIndex++,c=N.sample.pts,g+=N.length,h=g):g=R}else j.canParse(p,g)?(x=j.getID3Data(p,g),I.samples.push({pts:c,dts:c,data:x}),g+=x.length,h=g):g++;if(g===R&&h!==R){var P=Object(V.sliceUint8)(p,h);this.cachedData?this.cachedData=Object(oe.appendUint8Array)(this.cachedData,P):this.cachedData=P}}return{audioTrack:d,avcTrack:Object(G.dummyTrack)(),id3Track:I,textTrack:Object(G.dummyTrack)()}},C.demuxSampleAes=function(p,y,x){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},C.flush=function(p){var y=this.cachedData;return y&&(this.cachedData=null,this.demux(y,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(G.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(G.dummyTrack)()}},C.destroy=function(){},O}(),F=function(C,b){return Object(le.isFiniteNumber)(C)?C*90:b*9e4};ae.default=l},"./src/demux/chunk-cache.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return le});var le=function(){function G(){this.chunks=[],this.dataLength=0}var oe=G.prototype;return oe.push=function(l){this.chunks.push(l),this.dataLength+=l.length},oe.flush=function(){var l=this.chunks,F=this.dataLength,O;if(l.length)l.length===1?O=l[0]:O=j(l,F);else return new Uint8Array(0);return this.reset(),O},oe.reset=function(){this.chunks.length=0,this.dataLength=0},G}();function j(G,oe){for(var V=new Uint8Array(oe),l=0,F=0;F<G.length;F++){var O=G[F];V.set(O,l),l+=O.length}return V}},"./src/demux/dummy-demuxed-track.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"dummyTrack",function(){return le});function le(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/utils/logger.ts"),j=function(){function G(V){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=V,this.bytesAvailable=V.byteLength,this.word=0,this.bitsAvailable=0}var oe=G.prototype;return oe.loadWord=function(){var l=this.data,F=this.bytesAvailable,O=l.byteLength-F,C=new Uint8Array(4),b=Math.min(4,F);if(b===0)throw new Error("no bytes available");C.set(l.subarray(O,O+b)),this.word=new DataView(C.buffer).getUint32(0),this.bitsAvailable=b*8,this.bytesAvailable-=b},oe.skipBits=function(l){var F;this.bitsAvailable>l?(this.word<<=l,this.bitsAvailable-=l):(l-=this.bitsAvailable,F=l>>3,l-=F>>3,this.bytesAvailable-=F,this.loadWord(),this.word<<=l,this.bitsAvailable-=l)},oe.readBits=function(l){var F=Math.min(this.bitsAvailable,l),O=this.word>>>32-F;return l>32&&le.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=F,this.bitsAvailable>0?this.word<<=F:this.bytesAvailable>0&&this.loadWord(),F=l-F,F>0&&this.bitsAvailable?O<<F|this.readBits(F):O},oe.skipLZ=function(){var l;for(l=0;l<this.bitsAvailable;++l)if((this.word&2147483648>>>l)!==0)return this.word<<=l,this.bitsAvailable-=l,l;return this.loadWord(),l+this.skipLZ()},oe.skipUEG=function(){this.skipBits(1+this.skipLZ())},oe.skipEG=function(){this.skipBits(1+this.skipLZ())},oe.readUEG=function(){var l=this.skipLZ();return this.readBits(l+1)-1},oe.readEG=function(){var l=this.readUEG();return 1&l?1+l>>>1:-1*(l>>>1)},oe.readBoolean=function(){return this.readBits(1)===1},oe.readUByte=function(){return this.readBits(8)},oe.readUShort=function(){return this.readBits(16)},oe.readUInt=function(){return this.readBits(32)},oe.skipScalingList=function(l){for(var F=8,O=8,C,b=0;b<l;b++)O!==0&&(C=this.readEG(),O=(F+C+256)%256),F=O===0?F:O},oe.readSPS=function(){var l=0,F=0,O=0,C=0,b,p,y,x=this.readUByte.bind(this),g=this.readBits.bind(this),h=this.readUEG.bind(this),c=this.readBoolean.bind(this),d=this.skipBits.bind(this),I=this.skipEG.bind(this),A=this.skipUEG.bind(this),R=this.skipScalingList.bind(this);x();var N=x();if(g(5),d(3),x(),A(),N===100||N===110||N===122||N===244||N===44||N===83||N===86||N===118||N===128){var P=h();if(P===3&&d(1),A(),A(),d(1),c())for(p=P!==3?8:12,y=0;y<p;y++)c()&&(y<6?R(16):R(64))}A();var D=h();if(D===0)h();else if(D===1)for(d(1),I(),I(),b=h(),y=0;y<b;y++)I();A(),d(1);var E=h(),v=h(),_=g(1);_===0&&d(1),d(1),c()&&(l=h(),F=h(),O=h(),C=h());var T=[1,1];if(c()&&c()){var w=x();switch(w){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:{T=[x()<<8|x(),x()<<8|x()];break}}}return{width:Math.ceil((E+1)*16-l*2-F*2),height:(2-_)*(v+1)*16-(_?2:4)*(O+C),pixelRatio:T}},oe.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},G}();ae.default=j},"./src/demux/id3.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"isHeader",function(){return le}),X.d(ae,"isFooter",function(){return j}),X.d(ae,"getID3Data",function(){return G}),X.d(ae,"canParse",function(){return V}),X.d(ae,"getTimeStamp",function(){return l}),X.d(ae,"isTimeStampFrame",function(){return F}),X.d(ae,"getID3Frames",function(){return C}),X.d(ae,"decodeFrame",function(){return b}),X.d(ae,"utf8ArrayToStr",function(){return h}),X.d(ae,"testables",function(){return c});var le=function(R,N){return N+10<=R.length&&(R[N]===73&&R[N+1]===68&&R[N+2]===51&&(R[N+3]<255&&R[N+4]<255&&(R[N+6]<128&&R[N+7]<128&&R[N+8]<128&&R[N+9]<128)))},j=function(R,N){return N+10<=R.length&&(R[N]===51&&R[N+1]===68&&R[N+2]===73&&(R[N+3]<255&&R[N+4]<255&&(R[N+6]<128&&R[N+7]<128&&R[N+8]<128&&R[N+9]<128)))},G=function(R,N){for(var P=N,D=0;le(R,N);){D+=10;var E=oe(R,N+6);D+=E,j(R,N+10)&&(D+=10),N+=D}return D>0?R.subarray(P,P+D):void 0},oe=function(R,N){var P=0;return P=(R[N]&127)<<21,P|=(R[N+1]&127)<<14,P|=(R[N+2]&127)<<7,P|=R[N+3]&127,P},V=function(R,N){return le(R,N)&&oe(R,N+6)+10<=R.length-N},l=function(R){for(var N=C(R),P=0;P<N.length;P++){var D=N[P];if(F(D))return g(D)}return},F=function(R){return R&&R.key==="PRIV"&&R.info==="com.apple.streaming.transportStreamTimestamp"},O=function(R){var N=String.fromCharCode(R[0],R[1],R[2],R[3]),P=oe(R,4),D=10;return{type:N,size:P,data:R.subarray(D,D+P)}},C=function(R){for(var N=0,P=[];le(R,N);){var D=oe(R,N+6);N+=10;for(var E=N+D;N+8<E;){var v=O(R.subarray(N)),_=b(v);_&&P.push(_),N+=v.size+10}j(R,N)&&(N+=10)}return P},b=function(R){return R.type==="PRIV"?p(R):R.type[0]==="W"?x(R):y(R)},p=function(R){if(R.size<2)return;var N=h(R.data,!0),P=new Uint8Array(R.data.subarray(N.length+1));return{key:R.type,info:N,data:P.buffer}},y=function(R){if(R.size<2)return;if(R.type==="TXXX"){var N=1,P=h(R.data.subarray(N),!0);N+=P.length+1;var D=h(R.data.subarray(N));return{key:R.type,info:P,data:D}}var E=h(R.data.subarray(1));return{key:R.type,data:E}},x=function(R){if(R.type==="WXXX"){if(R.size<2)return;var N=1,P=h(R.data.subarray(N),!0);N+=P.length+1;var D=h(R.data.subarray(N));return{key:R.type,info:P,data:D}}var E=h(R.data);return{key:R.type,data:E}},g=function(R){if(R.data.byteLength===8){var N=new Uint8Array(R.data),P=N[3]&1,D=(N[4]<<23)+(N[5]<<15)+(N[6]<<7)+N[7];return D/=45,P&&(D+=4772185884e-2),Math.round(D)}return},h=function(R,N){N===void 0&&(N=!1);var P=I();if(P){var D=P.decode(R);if(N){var E=D.indexOf("\0");return E!==-1?D.substring(0,E):D}return D.replace(/\0/g,"")}for(var v=R.length,_,T,w,M="",Z=0;Z<v;){if(_=R[Z++],_===0&&N)return M;if(_===0||_===3)continue;switch(_>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:M+=String.fromCharCode(_);break;case 12:case 13:T=R[Z++],M+=String.fromCharCode((_&31)<<6|T&63);break;case 14:T=R[Z++],w=R[Z++],M+=String.fromCharCode((_&15)<<12|(T&63)<<6|(w&63)<<0);break;default:}}return M},c={decodeTextFrame:y},d;function I(){return!d&&typeof self.TextDecoder!="undefined"&&(d=new self.TextDecoder("utf-8")),d}},"./src/demux/mp3demuxer.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/demux/base-audio-demuxer.ts"),j=X("./src/demux/id3.ts"),G=X("./src/utils/logger.ts"),oe=X("./src/demux/mpegaudio.ts");function V(O,C){O.prototype=Object.create(C.prototype),O.prototype.constructor=O,l(O,C)}function l(O,C){return l=Object.setPrototypeOf||function(p,y){return p.__proto__=y,p},l(O,C)}var F=function(O){V(C,O);function C(){return O.apply(this,arguments)||this}var b=C.prototype;return b.resetInitSegment=function(y,x,g){O.prototype.resetInitSegment.call(this,y,x,g),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:y,duration:g,inputTimeScale:9e4,dropped:0}},C.probe=function(y){if(!y)return!1;for(var x=j.getID3Data(y,0)||[],g=x.length,h=y.length;g<h;g++)if(oe.probe(y,g))return G.logger.log("MPEG Audio sync word found !"),!0;return!1},b.canParse=function(y,x){return oe.canParse(y,x)},b.appendFrame=function(y,x,g){return this.initPTS===null?void 0:oe.appendFrame(y,x,g,this.initPTS,this.frameIndex)},C}(le.default);F.minProbeByteLength=4,ae.default=F},"./src/demux/mp4demuxer.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/utils/mp4-tools.ts"),j=X("./src/demux/dummy-demuxed-track.ts"),G=function(){function oe(l,F){this.remainderData=null,this.config=void 0,this.config=F}var V=oe.prototype;return V.resetTimeStamp=function(){},V.resetInitSegment=function(){},V.resetContiguity=function(){},oe.probe=function(F){return Object(le.findBox)({data:F,start:0,end:Math.min(F.length,16384)},["moof"]).length>0},V.demux=function(F){var O=F,C=Object(j.dummyTrack)();if(this.config.progressive){this.remainderData&&(O=Object(le.appendUint8Array)(this.remainderData,F));var b=Object(le.segmentValidRange)(O);this.remainderData=b.remainder,C.samples=b.valid||new Uint8Array}else C.samples=O;return{audioTrack:Object(j.dummyTrack)(),avcTrack:C,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},V.flush=function(){var F=Object(j.dummyTrack)();return F.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(j.dummyTrack)(),avcTrack:F,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},V.demuxSampleAes=function(F,O,C){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},V.destroy=function(){},oe}();G.minProbeByteLength=1024,ae.default=G},"./src/demux/mpegaudio.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"appendFrame",function(){return l}),X.d(ae,"parseHeader",function(){return F}),X.d(ae,"isHeaderPattern",function(){return O}),X.d(ae,"isHeader",function(){return C}),X.d(ae,"canParse",function(){return b}),X.d(ae,"probe",function(){return p});var le=null,j=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],G=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],oe=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],V=[0,1,1,4];function l(y,x,g,h,c){if(g+24>x.length)return;var d=F(x,g);if(d&&g+d.frameLength<=x.length){var I=d.samplesPerFrame*9e4/d.sampleRate,A=h+c*I,R={unit:x.subarray(g,g+d.frameLength),pts:A,dts:A};return y.config=[],y.channelCount=d.channelCount,y.samplerate=d.sampleRate,y.samples.push(R),{sample:R,length:d.frameLength,missing:0}}}function F(y,x){var g=y[x+1]>>3&3,h=y[x+1]>>1&3,c=y[x+2]>>4&15,d=y[x+2]>>2&3;if(g!==1&&c!==0&&c!==15&&d!==3){var I=y[x+2]>>1&1,A=y[x+3]>>6,R=g===3?3-h:h===3?3:4,N=j[R*14+c-1]*1e3,P=g===3?0:g===2?1:2,D=G[P*3+d],E=A===3?1:2,v=oe[g][h],_=V[h],T=v*8*_,w=Math.floor(v*N/D+I)*_;if(le===null){var M=navigator.userAgent||"",Z=M.match(/Chrome\/(\d+)/i);le=Z?parseInt(Z[1]):0}var z=!!le&&le<=87;return z&&h===2&&N>=224e3&&A===0&&(y[x+3]=y[x+3]|128),{sampleRate:D,channelCount:E,frameLength:w,samplesPerFrame:T}}}function O(y,x){return y[x]===255&&(y[x+1]&224)===224&&(y[x+1]&6)!==0}function C(y,x){return x+1<y.length&&O(y,x)}function b(y,x){var g=4;return O(y,x)&&g<=y.length-x}function p(y,x){if(x+1<y.length&&O(y,x)){var g=4,h=F(y,x),c=g;h!=null&&h.frameLength&&(c=h.frameLength);var d=x+c;return d===y.length||C(y,d)}return!1}},"./src/demux/sample-aes.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/crypt/decrypter.ts"),j=X("./src/demux/tsdemuxer.ts"),G=function(){function oe(l,F,O){this.keyData=void 0,this.decrypter=void 0,this.keyData=O,this.decrypter=new le.default(l,F,{removePKCS7Padding:!1})}var V=oe.prototype;return V.decryptBuffer=function(F,O){this.decrypter.decrypt(F,this.keyData.key.buffer,this.keyData.iv.buffer,O)},V.decryptAacSample=function(F,O,C,b){var p=F[O].unit,y=p.subarray(16,p.length-p.length%16),x=y.buffer.slice(y.byteOffset,y.byteOffset+y.length),g=this;this.decryptBuffer(x,function(h){var c=new Uint8Array(h);p.set(c,16),b||g.decryptAacSamples(F,O+1,C)})},V.decryptAacSamples=function(F,O,C){for(;;O++){if(O>=F.length){C();return}if(F[O].unit.length<32)continue;var b=this.decrypter.isSync();if(this.decryptAacSample(F,O,C,b),!b)return}},V.getAvcEncryptedData=function(F){for(var O=Math.floor((F.length-48)/160)*16+16,C=new Int8Array(O),b=0,p=32;p<=F.length-16;p+=160,b+=16)C.set(F.subarray(p,p+16),b);return C},V.getAvcDecryptedUnit=function(F,O){for(var C=new Uint8Array(O),b=0,p=32;p<=F.length-16;p+=160,b+=16)F.set(C.subarray(b,b+16),p);return F},V.decryptAvcSample=function(F,O,C,b,p,y){var x=Object(j.discardEPB)(p.data),g=this.getAvcEncryptedData(x),h=this;this.decryptBuffer(g.buffer,function(c){p.data=h.getAvcDecryptedUnit(x,c),y||h.decryptAvcSamples(F,O,C+1,b)})},V.decryptAvcSamples=function(F,O,C,b){if(F instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;O++,C=0){if(O>=F.length){b();return}for(var p=F[O].units;!(C>=p.length);C++){var y=p[C];if(y.data.length<=48||y.type!==1&&y.type!==5)continue;var x=this.decrypter.isSync();if(this.decryptAvcSample(F,O,C,b,y,x),!x)return}}},oe}();ae.default=G},"./src/demux/transmuxer-interface.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return p});var le=X("./node_modules/webworkify-webpack/index.js"),j=X.n(le),G=X("./src/events.ts"),oe=X("./src/demux/transmuxer.ts"),V=X("./src/utils/logger.ts"),l=X("./src/errors.ts"),F=X("./src/utils/mediasource-helper.ts"),O=X("./node_modules/eventemitter3/index.js"),C=X.n(O),b=Object(F.getMediaSource)()||{isTypeSupported:function(){return!1}},p=function(){function y(g,h,c,d){var I=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=g,this.id=h,this.onTransmuxComplete=c,this.onFlush=d;var A=g.config,R=function(v,_){_=_||{},_.frag=I.frag,_.id=I.id,g.trigger(v,_)};this.observer=new O.EventEmitter,this.observer.on(G.Events.FRAG_DECRYPTED,R),this.observer.on(G.Events.ERROR,R);var N={mp4:b.isTypeSupported("video/mp4"),mpeg:b.isTypeSupported("audio/mpeg"),mp3:b.isTypeSupported('audio/mp4; codecs="mp3"')},P=navigator.vendor;if(A.enableWorker&&typeof Worker!="undefined"){V.logger.log("demuxing in webworker");var D;try{D=this.worker=le("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),D.addEventListener("message",this.onwmsg),D.onerror=function(E){g.trigger(G.Events.ERROR,{type:l.ErrorTypes.OTHER_ERROR,details:l.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(E.message+" ("+E.filename+":"+E.lineno+")")})},D.postMessage({cmd:"init",typeSupported:N,vendor:P,id:h,config:JSON.stringify(A)})}catch(E){V.logger.warn("Error in worker:",E),V.logger.error("Error while initializing DemuxerWorker, fallback to inline"),D&&self.URL.revokeObjectURL(D.objectURL),this.transmuxer=new oe.default(this.observer,N,A,P,h),this.worker=null}}else this.transmuxer=new oe.default(this.observer,N,A,P,h)}var x=y.prototype;return x.destroy=function(){var h=this.worker;if(h)h.removeEventListener("message",this.onwmsg),h.terminate(),this.worker=null;else{var c=this.transmuxer;c&&(c.destroy(),this.transmuxer=null)}var d=this.observer;d&&d.removeAllListeners(),this.observer=null},x.push=function(h,c,d,I,A,R,N,P,D,E){var v=this;D.transmuxing.start=self.performance.now();var _=this.transmuxer,T=this.worker,w=R?R.start:A.start,M=A.decryptdata,Z=this.frag,z=!(Z&&A.cc===Z.cc),L=!(Z&&D.level===Z.level),W=Z?D.sn-Z.sn:-1,Y=this.part?D.part-this.part.index:1,H=!L&&(W===1||W===0&&Y===1),ne=self.performance.now();(L||W||A.stats.parsing.start===0)&&(A.stats.parsing.start=ne),R&&(Y||!H)&&(R.stats.parsing.start=ne);var ce=new oe.TransmuxState(z,H,P,L,w);if(!H||z){V.logger.log("[transmuxer-interface, "+A.type+"]: Starting new transmux session for sn: "+D.sn+" p: "+D.part+" level: "+D.level+" id: "+D.id+`
discontinuity: `+z+`
trackSwitch: `+L+`
contiguous: `+H+`
accurateTimeOffset: `+P+`
timeOffset: `+w);var we=new oe.TransmuxConfig(d,I,c,N,E);this.configureTransmuxer(we)}if(this.frag=A,this.part=R,T)T.postMessage({cmd:"demux",data:h,decryptdata:M,chunkMeta:D,state:ce},h instanceof ArrayBuffer?[h]:[]);else if(_){var Ce=_.push(h,M,D,ce);Object(oe.isPromise)(Ce)?Ce.then(function(Ke){v.handleTransmuxComplete(Ke)}):this.handleTransmuxComplete(Ce)}},x.flush=function(h){var c=this;h.transmuxing.start=self.performance.now();var d=this.transmuxer,I=this.worker;if(I)I.postMessage({cmd:"flush",chunkMeta:h});else if(d){var A=d.flush(h);Object(oe.isPromise)(A)?A.then(function(R){c.handleFlushResult(R,h)}):this.handleFlushResult(A,h)}},x.handleFlushResult=function(h,c){var d=this;h.forEach(function(I){d.handleTransmuxComplete(I)}),this.onFlush(c)},x.onWorkerMessage=function(h){var c=h.data,d=this.hls;switch(c.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.id=this.id,d.trigger(c.event,c.data);break}}},x.configureTransmuxer=function(h){var c=this.worker,d=this.transmuxer;c?c.postMessage({cmd:"configure",config:h}):d&&d.configure(h)},x.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},y}()},"./src/demux/transmuxer-worker.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return l});var le=X("./src/demux/transmuxer.ts"),j=X("./src/events.ts"),G=X("./src/utils/logger.ts"),oe=X("./node_modules/eventemitter3/index.js"),V=X.n(oe);function l(p){var y=new oe.EventEmitter,x=function(h,c){p.postMessage({event:h,data:c})};y.on(j.Events.FRAG_DECRYPTED,x),y.on(j.Events.ERROR,x),p.addEventListener("message",function(g){var h=g.data;switch(h.cmd){case"init":{var c=JSON.parse(h.config);p.transmuxer=new le.default(y,h.typeSupported,c,h.vendor,h.id),Object(G.enableLogs)(c.debug),x("init",null);break}case"configure":{p.transmuxer.configure(h.config);break}case"demux":{var d=p.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(le.isPromise)(d)?d.then(function(R){F(p,R)}):F(p,d);break}case"flush":{var I=h.chunkMeta,A=p.transmuxer.flush(I);Object(le.isPromise)(A)?A.then(function(R){C(p,R,I)}):C(p,A,I);break}default:break}})}function F(p,y){if(b(y.remuxResult))return;var x=[],g=y.remuxResult,h=g.audio,c=g.video;h&&O(x,h),c&&O(x,c),p.postMessage({event:"transmuxComplete",data:y},x)}function O(p,y){y.data1&&p.push(y.data1.buffer),y.data2&&p.push(y.data2.buffer)}function C(p,y,x){y.forEach(function(g){F(p,g)}),p.postMessage({event:"flush",data:x})}function b(p){return!p.audio&&!p.video&&!p.text&&!p.id3&&!p.initSegment}},"./src/demux/transmuxer.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return c}),X.d(ae,"isPromise",function(){return A}),X.d(ae,"TransmuxConfig",function(){return R}),X.d(ae,"TransmuxState",function(){return N});var le=X("./src/events.ts"),j=X("./src/errors.ts"),G=X("./src/crypt/decrypter.ts"),oe=X("./src/demux/aacdemuxer.ts"),V=X("./src/demux/mp4demuxer.ts"),l=X("./src/demux/tsdemuxer.ts"),F=X("./src/demux/mp3demuxer.ts"),O=X("./src/remux/mp4-remuxer.ts"),C=X("./src/remux/passthrough-remuxer.ts"),b=X("./src/demux/chunk-cache.ts"),p=X("./src/utils/mp4-tools.ts"),y=X("./src/utils/logger.ts"),x;try{x=self.performance.now.bind(self.performance)}catch(P){y.logger.debug("Unable to use Performance API on this environment"),x=self.Date.now}var g=[{demux:l.default,remux:O.default},{demux:V.default,remux:C.default},{demux:oe.default,remux:O.default},{demux:F.default,remux:O.default}],h=1024;g.forEach(function(P){var D=P.demux;h=Math.max(h,D.minProbeByteLength)});var c=function(){function P(E,v,_,T,w){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new b.default,this.observer=E,this.typeSupported=v,this.config=_,this.vendor=T,this.id=w}var D=P.prototype;return D.configure=function(v){this.transmuxConfig=v,this.decrypter&&this.decrypter.reset()},D.push=function(v,_,T,w){var M=this,Z=T.transmuxing;Z.executeStart=x();var z=new Uint8Array(v),L=this.cache,W=this.config,Y=this.currentTransmuxState,H=this.transmuxConfig;w&&(this.currentTransmuxState=w);var ne=d(z,_);if(ne&&ne.method==="AES-128"){var ce=this.getDecrypter();if(W.enableSoftwareAES){var we=ce.softwareDecrypt(z,ne.key.buffer,ne.iv.buffer);if(!we)return Z.executeEnd=x(),I(T);z=new Uint8Array(we)}else return this.decryptionPromise=ce.webCryptoDecrypt(z,ne.key.buffer,ne.iv.buffer).then(function(We){var it=M.push(We,null,T);return M.decryptionPromise=null,it}),this.decryptionPromise}var Ce=w||Y,Ke=Ce.contiguous,Ie=Ce.discontinuity,je=Ce.trackSwitch,Ve=Ce.accurateTimeOffset,$e=Ce.timeOffset,Pe=H.audioCodec,se=H.videoCodec,S=H.defaultInitPts,B=H.duration,J=H.initSegmentData;if((Ie||je)&&this.resetInitSegment(J,Pe,se,B),Ie&&this.resetInitialTimestamp(S),Ke||this.resetContiguity(),this.needsProbing(z,Ie,je)){if(L.dataLength){var ue=L.flush();z=Object(p.appendUint8Array)(ue,z)}this.configureTransmuxer(z,H)}var q=this.transmux(z,ne,$e,Ve,T),xe=this.currentTransmuxState;return xe.contiguous=!0,xe.discontinuity=!1,xe.trackSwitch=!1,Z.executeEnd=x(),q},D.flush=function(v){var _=this,T=v.transmuxing;T.executeStart=x();var w=this.decrypter,M=this.cache,Z=this.currentTransmuxState,z=this.decryptionPromise;if(z)return z.then(function(){return _.flush(v)});var L=[],W=Z.timeOffset;if(w){var Y=w.flush();Y&&L.push(this.push(Y,null,v))}var H=M.dataLength;M.reset();var ne=this.demuxer,ce=this.remuxer;if(!ne||!ce)return H>=h&&this.observer.emit(le.Events.ERROR,le.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=x(),[I(v)];var we=ne.flush(W);return A(we)?we.then(function(Ce){return _.flushRemux(L,Ce,v),L}):(this.flushRemux(L,we,v),L)},D.flushRemux=function(v,_,T){var w=_.audioTrack,M=_.avcTrack,Z=_.id3Track,z=_.textTrack,L=this.currentTransmuxState,W=L.accurateTimeOffset,Y=L.timeOffset;y.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var H=this.remuxer.remux(w,M,Z,z,Y,W,!0,this.id);v.push({remuxResult:H,chunkMeta:T}),T.transmuxing.executeEnd=x()},D.resetInitialTimestamp=function(v){var _=this.demuxer,T=this.remuxer;if(!_||!T)return;_.resetTimeStamp(v),T.resetTimeStamp(v)},D.resetContiguity=function(){var v=this.demuxer,_=this.remuxer;if(!v||!_)return;v.resetContiguity(),_.resetNextTimestamp()},D.resetInitSegment=function(v,_,T,w){var M=this.demuxer,Z=this.remuxer;if(!M||!Z)return;M.resetInitSegment(_,T,w),Z.resetInitSegment(v,_,T)},D.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},D.transmux=function(v,_,T,w,M){var Z;return _&&_.method==="SAMPLE-AES"?Z=this.transmuxSampleAes(v,_,T,w,M):Z=this.transmuxUnencrypted(v,T,w,M),Z},D.transmuxUnencrypted=function(v,_,T,w){var M=this.demuxer.demux(v,_,!1,!this.config.progressive),Z=M.audioTrack,z=M.avcTrack,L=M.id3Track,W=M.textTrack,Y=this.remuxer.remux(Z,z,L,W,_,T,!1,this.id);return{remuxResult:Y,chunkMeta:w}},D.transmuxSampleAes=function(v,_,T,w,M){var Z=this;return this.demuxer.demuxSampleAes(v,_,T).then(function(z){var L=Z.remuxer.remux(z.audioTrack,z.avcTrack,z.id3Track,z.textTrack,T,w,!1,Z.id);return{remuxResult:L,chunkMeta:M}})},D.configureTransmuxer=function(v,_){for(var T=this.config,w=this.observer,M=this.typeSupported,Z=this.vendor,z=_.audioCodec,L=_.defaultInitPts,W=_.duration,Y=_.initSegmentData,H=_.videoCodec,ne,ce=0,we=g.length;ce<we;ce++)if(g[ce].demux.probe(v)){ne=g[ce];break}ne||(y.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),ne={demux:V.default,remux:C.default});var Ce=this.demuxer,Ke=this.remuxer,Ie=ne.remux,je=ne.demux;(!Ke||!(Ke instanceof Ie))&&(this.remuxer=new Ie(w,T,M,Z)),(!Ce||!(Ce instanceof je))&&(this.demuxer=new je(w,T,M),this.probe=je.probe),this.resetInitSegment(Y,z,H,W),this.resetInitialTimestamp(L)},D.needsProbing=function(v,_,T){return!this.demuxer||!this.remuxer||_||T},D.getDecrypter=function(){var v=this.decrypter;return v||(v=this.decrypter=new G.default(this.observer,this.config)),v},P}();function d(P,D){var E=null;return P.byteLength>0&&D!=null&&D.key!=null&&D.iv!==null&&D.method!=null&&(E=D),E}var I=function(D){return{remuxResult:{},chunkMeta:D}};function A(P){return"then"in P&&P.then instanceof Function}var R=function(D,E,v,_,T){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=D,this.videoCodec=E,this.initSegmentData=v,this.duration=_,this.defaultInitPts=T},N=function(D,E,v,_,T){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=D,this.contiguous=E,this.accurateTimeOffset=v,this.trackSwitch=_,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"discardEPB",function(){return I});var le=X("./src/demux/adts.ts"),j=X("./src/demux/mpegaudio.ts"),G=X("./src/demux/exp-golomb.ts"),oe=X("./src/demux/id3.ts"),V=X("./src/demux/sample-aes.ts"),l=X("./src/events.ts"),F=X("./src/utils/mp4-tools.ts"),O=X("./src/utils/logger.ts"),C=X("./src/errors.ts"),b={video:1,audio:2,id3:3,text:4},p=function(){function A(N,P,D){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=N,this.config=P,this.typeSupported=D}A.probe=function(P){var D=A.syncOffset(P);return D<0?!1:(D&&O.logger.warn("MPEG2-TS detected but first sync word found @ offset "+D+", junk ahead ?"),!0)},A.syncOffset=function(P){for(var D=Math.min(1e3,P.length-3*188),E=0;E<D;){if(P[E]===71&&P[E+188]===71&&P[E+2*188]===71)return E;E++}return-1},A.createTrack=function(P,D){return{container:P==="video"||P==="audio"?"video/mp2t":void 0,type:P,id:b[P],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:P==="audio"?D:void 0}};var R=A.prototype;return R.resetInitSegment=function(P,D,E){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=A.createTrack("video",E),this._audioTrack=A.createTrack("audio",E),this._id3Track=A.createTrack("id3",E),this._txtTrack=A.createTrack("text",E),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=P,this.videoCodec=D,this._duration=E},R.resetTimeStamp=function(){},R.resetContiguity=function(){var P=this._audioTrack,D=this._avcTrack,E=this._id3Track;P&&(P.pesData=null),D&&(D.pesData=null),E&&(E.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},R.demux=function(P,D,E,v){E===void 0&&(E=!1),v===void 0&&(v=!1),E||(this.sampleAes=null);var _,T=this._avcTrack,w=this._audioTrack,M=this._id3Track,Z=T.pid,z=T.pesData,L=w.pid,W=M.pid,Y=w.pesData,H=M.pesData,ne=!1,ce=this.pmtParsed,we=this._pmtId,Ce=P.length;if(this.remainderData&&(P=Object(F.appendUint8Array)(this.remainderData,P),Ce=P.length,this.remainderData=null),Ce<188&&!v)return this.remainderData=P,{audioTrack:w,avcTrack:T,id3Track:M,textTrack:this._txtTrack};var Ke=Math.max(0,A.syncOffset(P));Ce-=(Ce+Ke)%188,Ce<P.byteLength&&!v&&(this.remainderData=new Uint8Array(P.buffer,Ce,P.buffer.byteLength-Ce));for(var Ie=Ke;Ie<Ce;Ie+=188)if(P[Ie]===71){var je=!!(P[Ie+1]&64),Ve=((P[Ie+1]&31)<<8)+P[Ie+2],$e=(P[Ie+3]&48)>>4,Pe=void 0;if($e>1){if(Pe=Ie+5+P[Ie+4],Pe===Ie+188)continue}else Pe=Ie+4;switch(Ve){case Z:je&&(z&&(_=h(z))&&this.parseAVCPES(_,!1),z={data:[],size:0}),z&&(z.data.push(P.subarray(Pe,Ie+188)),z.size+=Ie+188-Pe);break;case L:je&&(Y&&(_=h(Y))&&(w.isAAC?this.parseAACPES(_):this.parseMPEGPES(_)),Y={data:[],size:0}),Y&&(Y.data.push(P.subarray(Pe,Ie+188)),Y.size+=Ie+188-Pe);break;case W:je&&(H&&(_=h(H))&&this.parseID3PES(_),H={data:[],size:0}),H&&(H.data.push(P.subarray(Pe,Ie+188)),H.size+=Ie+188-Pe);break;case 0:je&&(Pe+=P[Pe]+1),we=this._pmtId=x(P,Pe);break;case we:{je&&(Pe+=P[Pe]+1);var se=g(P,Pe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,E);Z=se.avc,Z>0&&(T.pid=Z),L=se.audio,L>0&&(w.pid=L,w.isAAC=se.isAAC),W=se.id3,W>0&&(M.pid=W),ne&&!ce&&(O.logger.log("reparse from beginning"),ne=!1,Ie=Ke-188),ce=this.pmtParsed=!0;break}case 17:case 8191:break;default:ne=!0;break}}else this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=z,w.pesData=Y,M.pesData=H;var S={audioTrack:w,avcTrack:T,id3Track:M,textTrack:this._txtTrack};return v&&this.extractRemainingSamples(S),S},R.flush=function(){var P=this.remainderData;this.remainderData=null;var D;return P?D=this.demux(P,-1,!1,!0):D={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(D),this.sampleAes?this.decrypt(D,this.sampleAes):D},R.extractRemainingSamples=function(P){var D=P.audioTrack,E=P.avcTrack,v=P.id3Track,_=E.pesData,T=D.pesData,w=v.pesData,M;_&&(M=h(_))?(this.parseAVCPES(M,!0),E.pesData=null):E.pesData=_,T&&(M=h(T))?(D.isAAC?this.parseAACPES(M):this.parseMPEGPES(M),D.pesData=null):(T!=null&&T.size&&O.logger.log("last AAC PES packet truncated,might overlap between fragments"),D.pesData=T),w&&(M=h(w))?(this.parseID3PES(M),v.pesData=null):v.pesData=w},R.demuxSampleAes=function(P,D,E){var v=this.demux(P,E,!0,!this.config.progressive),_=this.sampleAes=new V.default(this.observer,this.config,D);return this.decrypt(v,_)},R.decrypt=function(P,D){return new Promise(function(E){var v=P.audioTrack,_=P.avcTrack;v.samples&&v.isAAC?D.decryptAacSamples(v.samples,0,function(){_.samples?D.decryptAvcSamples(_.samples,0,0,function(){E(P)}):E(P)}):_.samples&&D.decryptAvcSamples(_.samples,0,0,function(){E(P)})})},R.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},R.parseAVCPES=function(P,D){var E=this,v=this._avcTrack,_=this.parseAVCNALu(P.data),T=!1,w=this.avcSample,M,Z=!1;P.data=null,w&&_.length&&!v.audFound&&(c(w,v),w=this.avcSample=y(!1,P.pts,P.dts,"")),_.forEach(function(z){switch(z.type){case 1:{M=!0,w||(w=E.avcSample=y(!0,P.pts,P.dts,"")),T&&(w.debug+="NDR "),w.frame=!0;var L=z.data;if(Z&&L.length>4){var W=new G.default(L).readSliceType();(W===2||W===4||W===7||W===9)&&(w.key=!0)}break}case 5:M=!0,w||(w=E.avcSample=y(!0,P.pts,P.dts,"")),T&&(w.debug+="IDR "),w.key=!0,w.frame=!0;break;case 6:{M=!0,T&&w&&(w.debug+="SEI ");var Y=new G.default(I(z.data));Y.readUByte();for(var H=0,ne=0,ce=!1,we=0;!ce&&Y.bytesAvailable>1;){H=0;do we=Y.readUByte(),H+=we;while(we===255);ne=0;do we=Y.readUByte(),ne+=we;while(we===255);if(H===4&&Y.bytesAvailable!==0){ce=!0;var Ce=Y.readUByte();if(Ce===181){var Ke=Y.readUShort();if(Ke===49){var Ie=Y.readUInt();if(Ie===1195456820){var je=Y.readUByte();if(je===3){for(var Ve=Y.readUByte(),$e=Y.readUByte(),Pe=31&Ve,se=[Ve,$e],S=0;S<Pe;S++)se.push(Y.readUByte()),se.push(Y.readUByte()),se.push(Y.readUByte());d(E._txtTrack.samples,{type:3,pts:P.pts,bytes:se})}}}}}else if(H===5&&Y.bytesAvailable!==0){if(ce=!0,ne>16){for(var B=[],J=0;J<16;J++)B.push(Y.readUByte().toString(16)),(J===3||J===5||J===7||J===9)&&B.push("-");for(var ue=ne-16,q=new Uint8Array(ue),xe=0;xe<ue;xe++)q[xe]=Y.readUByte();d(E._txtTrack.samples,{pts:P.pts,payloadType:H,uuid:B.join(""),userData:Object(oe.utf8ArrayToStr)(q),userDataBytes:q})}}else if(ne<Y.bytesAvailable)for(var We=0;We<ne;We++)Y.readUByte()}break}case 7:if(M=!0,Z=!0,T&&w&&(w.debug+="SPS "),!v.sps){var it=new G.default(z.data),be=it.readSPS();v.width=be.width,v.height=be.height,v.pixelRatio=be.pixelRatio,v.sps=[z.data],v.duration=E._duration;for(var Le=z.data.subarray(1,4),Fe="avc1.",ze=0;ze<3;ze++){var dt=Le[ze].toString(16);dt.length<2&&(dt="0"+dt),Fe+=dt}v.codec=Fe}break;case 8:M=!0,T&&w&&(w.debug+="PPS "),v.pps||(v.pps=[z.data]);break;case 9:M=!1,v.audFound=!0,w&&c(w,v),w=E.avcSample=y(!1,P.pts,P.dts,T?"AUD ":"");break;case 12:M=!1;break;default:M=!1,w&&(w.debug+="unknown NAL "+z.type+" ");break}if(w&&M){var It=w.units;It.push(z)}}),D&&w&&(c(w,v),this.avcSample=null)},R.getLastNalUnit=function(){var P,D=this.avcSample,E;if(!D||D.units.length===0){var v=this._avcTrack.samples;D=v[v.length-1]}if((P=D)!==null&&P!==void 0&&P.units){var _=D.units;E=_[_.length-1]}return E},R.parseAVCNALu=function(P){var D=P.byteLength,E=this._avcTrack,v=E.naluState||0,_=v,T=[],w=0,M,Z,z,L=-1,W=0;for(v===-1&&(L=0,W=P[0]&31,v=0,w=1);w<D;){if(M=P[w++],!v){v=M?0:1;continue}if(v===1){v=M?0:2;continue}if(!M)v=3;else if(M===1){if(L>=0){var Y={data:P.subarray(L,w-v-1),type:W};T.push(Y)}else{var H=this.getLastNalUnit();if(H&&(_&&w<=4-_&&(H.state&&(H.data=H.data.subarray(0,H.data.byteLength-_))),Z=w-v-1,Z>0)){var ne=new Uint8Array(H.data.byteLength+Z);ne.set(H.data,0),ne.set(P.subarray(0,Z),H.data.byteLength),H.data=ne,H.state=0}}w<D?(z=P[w]&31,L=w,W=z,v=0):v=-1}else v=0}if(L>=0&&v>=0){var ce={data:P.subarray(L,D),type:W,state:v};T.push(ce)}if(T.length===0){var we=this.getLastNalUnit();if(we){var Ce=new Uint8Array(we.data.byteLength+P.byteLength);Ce.set(we.data,0),Ce.set(P,we.data.byteLength),we.data=Ce}}return E.naluState=v,T},R.parseAACPES=function(P){var D=0,E=this._audioTrack,v=this.aacOverFlow,_=P.data;if(v){this.aacOverFlow=null;var T=v.sample.unit.byteLength,w=Math.min(v.missing,T),M=T-w;v.sample.unit.set(_.subarray(0,w),M),E.samples.push(v.sample),D=v.missing}var Z,z;for(Z=D,z=_.length;Z<z-1&&!le.isHeader(_,Z);Z++);if(Z!==D){var L,W;if(Z<z-1?(L="AAC PES did not start with ADTS header,offset:"+Z,W=!1):(L="no ADTS header found in AAC PES",W=!0),O.logger.warn("parsing error:"+L),this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.FRAG_PARSING_ERROR,fatal:W,reason:L}),W)return}le.initTrackConfig(E,this.observer,_,Z,this.audioCodec);var Y;if(P.pts!==void 0)Y=P.pts;else if(v){var H=le.getFrameDuration(E.samplerate);Y=v.sample.pts+H}else{O.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var ne=0;Z<z;)if(le.isHeader(_,Z)){if(Z+5<z){var ce=le.appendFrame(E,_,Z,Y,ne);if(ce)if(ce.missing)this.aacOverFlow=ce;else{Z+=ce.length,ne++;continue}}break}else Z++},R.parseMPEGPES=function(P){var D=P.data,E=D.length,v=0,_=0,T=P.pts;if(T===void 0){O.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;_<E;)if(j.isHeader(D,_)){var w=j.appendFrame(this._audioTrack,D,_,T,v);if(w)_+=w.length,v++;else break}else _++},R.parseID3PES=function(P){if(P.pts===void 0){O.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(P)},A}();p.minProbeByteLength=188;function y(A,R,N,P){return{key:A,frame:!1,pts:R,dts:N,units:[],debug:P,length:0}}function x(A,R){return(A[R+10]&31)<<8|A[R+11]}function g(A,R,N,P){var D={audio:-1,avc:-1,id3:-1,isAAC:!0},E=(A[R+1]&15)<<8|A[R+2],v=R+3+E-4,_=(A[R+10]&15)<<8|A[R+11];for(R+=12+_;R<v;){var T=(A[R+1]&31)<<8|A[R+2];switch(A[R]){case 207:if(!P){O.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:D.audio===-1&&(D.audio=T);break;case 21:D.id3===-1&&(D.id3=T);break;case 219:if(!P){O.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:D.avc===-1&&(D.avc=T);break;case 3:case 4:N?D.audio===-1&&(D.audio=T,D.isAAC=!1):O.logger.log("MPEG audio found, not supported in this browser");break;case 36:O.logger.warn("Unsupported HEVC stream type found");break;default:break}R+=((A[R+3]&15)<<8|A[R+4])+5}return D}function h(A){var R=0,N,P,D,E,v,_=A.data;if(!A||A.size===0)return null;for(;_[0].length<19&&_.length>1;){var T=new Uint8Array(_[0].length+_[1].length);T.set(_[0]),T.set(_[1],_[0].length),_[0]=T,_.splice(1,1)}N=_[0];var w=(N[0]<<16)+(N[1]<<8)+N[2];if(w===1){if(P=(N[4]<<8)+N[5],P&&P>A.size-6)return null;var M=N[7];M&192&&(E=(N[9]&14)*536870912+(N[10]&255)*4194304+(N[11]&254)*16384+(N[12]&255)*128+(N[13]&254)/2,M&64?(v=(N[14]&14)*536870912+(N[15]&255)*4194304+(N[16]&254)*16384+(N[17]&255)*128+(N[18]&254)/2,E-v>60*9e4&&(O.logger.warn(Math.round((E-v)/9e4)+"s delta between PTS and DTS, align them"),E=v)):v=E),D=N[8];var Z=D+9;if(A.size<=Z)return null;A.size-=Z;for(var z=new Uint8Array(A.size),L=0,W=_.length;L<W;L++){N=_[L];var Y=N.byteLength;if(Z)if(Z>Y){Z-=Y;continue}else N=N.subarray(Z),Y-=Z,Z=0;z.set(N,R),R+=Y}return P&&(P-=D+3),{data:z,pts:E,dts:v,len:P}}return null}function c(A,R){if(A.units.length&&A.frame){if(A.pts===void 0){var N=R.samples,P=N.length;if(P){var D=N[P-1];A.pts=D.pts,A.dts=D.dts}else{R.dropped++;return}}R.samples.push(A)}A.debug.length&&O.logger.log(A.pts+"/"+A.dts+":"+A.debug)}function d(A,R){var N=A.length;if(N>0){if(R.pts>=A[N-1].pts)A.push(R);else for(var P=N-1;P>=0;P--)if(R.pts<A[P].pts){A.splice(P,0,R);break}}else A.push(R)}function I(A){for(var R=A.byteLength,N=[],P=1;P<R-2;)A[P]===0&&A[P+1]===0&&A[P+2]===3?(N.push(P+2),P+=2):P++;if(N.length===0)return A;var D=R-N.length,E=new Uint8Array(D),v=0;for(P=0;P<D;v++,P++)v===N[0]&&(v++,N.shift()),E[P]=A[v];return E}ae.default=p},"./src/errors.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"ErrorTypes",function(){return le}),X.d(ae,"ErrorDetails",function(){return j});var le;(function(G){G.NETWORK_ERROR="networkError",G.MEDIA_ERROR="mediaError",G.KEY_SYSTEM_ERROR="keySystemError",G.MUX_ERROR="muxError",G.OTHER_ERROR="otherError"})(le||(le={}));var j;(function(G){G.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",G.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",G.KEY_SYSTEM_NO_SESSION="keySystemNoSession",G.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",G.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",G.MANIFEST_LOAD_ERROR="manifestLoadError",G.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",G.MANIFEST_PARSING_ERROR="manifestParsingError",G.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",G.LEVEL_EMPTY_ERROR="levelEmptyError",G.LEVEL_LOAD_ERROR="levelLoadError",G.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",G.LEVEL_SWITCH_ERROR="levelSwitchError",G.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",G.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",G.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",G.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",G.FRAG_LOAD_ERROR="fragLoadError",G.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",G.FRAG_DECRYPT_ERROR="fragDecryptError",G.FRAG_PARSING_ERROR="fragParsingError",G.REMUX_ALLOC_ERROR="remuxAllocError",G.KEY_LOAD_ERROR="keyLoadError",G.KEY_LOAD_TIMEOUT="keyLoadTimeOut",G.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",G.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",G.BUFFER_APPEND_ERROR="bufferAppendError",G.BUFFER_APPENDING_ERROR="bufferAppendingError",G.BUFFER_STALLED_ERROR="bufferStalledError",G.BUFFER_FULL_ERROR="bufferFullError",G.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",G.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",G.INTERNAL_EXCEPTION="internalException",G.INTERNAL_ABORTED="aborted",G.UNKNOWN="unknown"})(j||(j={}))},"./src/events.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"Events",function(){return le});var le;(function(j){j.MEDIA_ATTACHING="hlsMediaAttaching",j.MEDIA_ATTACHED="hlsMediaAttached",j.MEDIA_DETACHING="hlsMediaDetaching",j.MEDIA_DETACHED="hlsMediaDetached",j.BUFFER_RESET="hlsBufferReset",j.BUFFER_CODECS="hlsBufferCodecs",j.BUFFER_CREATED="hlsBufferCreated",j.BUFFER_APPENDING="hlsBufferAppending",j.BUFFER_APPENDED="hlsBufferAppended",j.BUFFER_EOS="hlsBufferEos",j.BUFFER_FLUSHING="hlsBufferFlushing",j.BUFFER_FLUSHED="hlsBufferFlushed",j.MANIFEST_LOADING="hlsManifestLoading",j.MANIFEST_LOADED="hlsManifestLoaded",j.MANIFEST_PARSED="hlsManifestParsed",j.LEVEL_SWITCHING="hlsLevelSwitching",j.LEVEL_SWITCHED="hlsLevelSwitched",j.LEVEL_LOADING="hlsLevelLoading",j.LEVEL_LOADED="hlsLevelLoaded",j.LEVEL_UPDATED="hlsLevelUpdated",j.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",j.LEVELS_UPDATED="hlsLevelsUpdated",j.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",j.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",j.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",j.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",j.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",j.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",j.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",j.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",j.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",j.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",j.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",j.CUES_PARSED="hlsCuesParsed",j.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",j.INIT_PTS_FOUND="hlsInitPtsFound",j.FRAG_LOADING="hlsFragLoading",j.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",j.FRAG_LOADED="hlsFragLoaded",j.FRAG_DECRYPTED="hlsFragDecrypted",j.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",j.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",j.FRAG_PARSING_METADATA="hlsFragParsingMetadata",j.FRAG_PARSED="hlsFragParsed",j.FRAG_BUFFERED="hlsFragBuffered",j.FRAG_CHANGED="hlsFragChanged",j.FPS_DROP="hlsFpsDrop",j.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",j.ERROR="hlsError",j.DESTROYING="hlsDestroying",j.KEY_LOADING="hlsKeyLoading",j.KEY_LOADED="hlsKeyLoaded",j.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",j.BACK_BUFFER_REACHED="hlsBackBufferReached"})(le||(le={}))},"./src/hls.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return A});var le=X("./node_modules/url-toolkit/src/url-toolkit.js"),j=X.n(le),G=X("./src/loader/playlist-loader.ts"),oe=X("./src/loader/key-loader.ts"),V=X("./src/controller/id3-track-controller.ts"),l=X("./src/controller/latency-controller.ts"),F=X("./src/controller/level-controller.ts"),O=X("./src/controller/fragment-tracker.ts"),C=X("./src/controller/stream-controller.ts"),b=X("./src/is-supported.ts"),p=X("./src/utils/logger.ts"),y=X("./src/config.ts"),x=X("./node_modules/eventemitter3/index.js"),g=X.n(x),h=X("./src/events.ts"),c=X("./src/errors.ts");function d(R,N){for(var P=0;P<N.length;P++){var D=N[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,D.key,D)}}function I(R,N,P){return N&&d(R.prototype,N),P&&d(R,P),R}var A=function(){R.isSupported=function(){return Object(b.isSupported)()};function R(P){P===void 0&&(P={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new x.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var D=this.config=Object(y.mergeConfig)(R.DefaultConfig,P);this.userConfig=P,Object(p.enableLogs)(D.debug),this._autoLevelCapping=-1,D.progressive&&Object(y.enableStreamingMode)(D);var E=D.abrController,v=D.bufferController,_=D.capLevelController,T=D.fpsController,w=this.abrController=new E(this),M=this.bufferController=new v(this),Z=this.capLevelController=new _(this),z=new T(this),L=new G.default(this),W=new oe.default(this),Y=new V.default(this),H=this.levelController=new F.default(this),ne=new O.FragmentTracker(this),ce=this.streamController=new C.default(this,ne);Z.setStreamController(ce),z.setStreamController(ce);var we=[H,ce];this.networkControllers=we;var Ce=[L,W,w,M,Z,z,Y,ne];this.audioTrackController=this.createController(D.audioTrackController,null,we),this.createController(D.audioStreamController,ne,we),this.subtitleTrackController=this.createController(D.subtitleTrackController,null,we),this.createController(D.subtitleStreamController,ne,we),this.createController(D.timelineController,null,Ce),this.emeController=this.createController(D.emeController,null,Ce),this.cmcdController=this.createController(D.cmcdController,null,Ce),this.latencyController=this.createController(l.default,null,Ce),this.coreComponents=Ce}var N=R.prototype;return N.createController=function(D,E,v){if(D){var _=E?new D(this,E):new D(this);return v&&v.push(_),_}return null},N.on=function(D,E,v){v===void 0&&(v=this),this._emitter.on(D,E,v)},N.once=function(D,E,v){v===void 0&&(v=this),this._emitter.once(D,E,v)},N.removeAllListeners=function(D){this._emitter.removeAllListeners(D)},N.off=function(D,E,v,_){v===void 0&&(v=this),this._emitter.off(D,E,v,_)},N.listeners=function(D){return this._emitter.listeners(D)},N.emit=function(D,E,v){return this._emitter.emit(D,E,v)},N.trigger=function(D,E){if(this.config.debug)return this.emit(D,D,E);try{return this.emit(D,D,E)}catch(v){p.logger.error("An internal error happened while handling event "+D+'. Error message: "'+v.message+'". Here is a stacktrace:',v),this.trigger(h.Events.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:D,error:v})}return!1},N.listenerCount=function(D){return this._emitter.listenerCount(D)},N.destroy=function(){p.logger.log("destroy"),this.trigger(h.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(D){return D.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(D){return D.destroy()}),this.coreComponents.length=0},N.attachMedia=function(D){p.logger.log("attachMedia"),this._media=D,this.trigger(h.Events.MEDIA_ATTACHING,{media:D})},N.detachMedia=function(){p.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},N.loadSource=function(D){this.stopLoad();var E=this.media,v=this.url,_=this.url=le.buildAbsoluteURL(self.location.href,D,{alwaysNormalize:!0});p.logger.log("loadSource:"+_),E&&v&&v!==_&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(E)),this.trigger(h.Events.MANIFEST_LOADING,{url:D})},N.startLoad=function(D){D===void 0&&(D=-1),p.logger.log("startLoad("+D+")"),this.networkControllers.forEach(function(E){E.startLoad(D)})},N.stopLoad=function(){p.logger.log("stopLoad"),this.networkControllers.forEach(function(D){D.stopLoad()})},N.swapAudioCodec=function(){p.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},N.recoverMediaError=function(){p.logger.log("recoverMediaError");var D=this._media;this.detachMedia(),D&&this.attachMedia(D)},N.removeLevel=function(D,E){E===void 0&&(E=0),this.levelController.removeLevel(D,E)},I(R,[{key:"levels",get:function(){var D=this.levelController.levels;return D||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(D){p.logger.log("set currentLevel:"+D),this.loadLevel=D,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(D){p.logger.log("set nextLevel:"+D),this.levelController.manualLevel=D,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(D){p.logger.log("set loadLevel:"+D),this.levelController.manualLevel=D}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(D){this.levelController.nextLoadLevel=D}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(D){p.logger.log("set firstLevel:"+D),this.levelController.firstLevel=D}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(D){p.logger.log("set startLevel:"+D),D!==-1&&(D=Math.max(D,this.minAutoLevel)),this.levelController.startLevel=D}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(D){var E=!!D;E!==this.config.capLevelToPlayerSize&&(E?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=E)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(D){this._autoLevelCapping!==D&&(p.logger.log("set autoLevelCapping:"+D),this._autoLevelCapping=D)}},{key:"bandwidthEstimate",get:function(){var D=this.abrController.bwEstimator;return D?D.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var D=this.levels,E=this.config.minAutoBitrate;if(!D)return 0;for(var v=D.length,_=0;_<v;_++)if(D[_].maxBitrate>E)return _;return 0}},{key:"maxAutoLevel",get:function(){var D=this.levels,E=this.autoLevelCapping,v;return E===-1&&D&&D.length?v=D.length-1:v=E,v}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(D){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,D)}},{key:"audioTracks",get:function(){var D=this.audioTrackController;return D?D.audioTracks:[]}},{key:"audioTrack",get:function(){var D=this.audioTrackController;return D?D.audioTrack:-1},set:function(D){var E=this.audioTrackController;E&&(E.audioTrack=D)}},{key:"subtitleTracks",get:function(){var D=this.subtitleTrackController;return D?D.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var D=this.subtitleTrackController;return D?D.subtitleTrack:-1},set:function(D){var E=this.subtitleTrackController;E&&(E.subtitleTrack=D)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var D=this.subtitleTrackController;return D?D.subtitleDisplay:!1},set:function(D){var E=this.subtitleTrackController;E&&(E.subtitleDisplay=D)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(D){this.config.lowLatencyMode=D}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return h.Events}},{key:"ErrorTypes",get:function(){return c.ErrorTypes}},{key:"ErrorDetails",get:function(){return c.ErrorDetails}},{key:"DefaultConfig",get:function(){return R.defaultConfig?R.defaultConfig:y.hlsDefaultConfig},set:function(D){R.defaultConfig=D}}]),R}();A.defaultConfig=void 0},"./src/is-supported.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"isSupported",function(){return G}),X.d(ae,"changeTypeSupported",function(){return oe});var le=X("./src/utils/mediasource-helper.ts");function j(){return self.SourceBuffer||self.WebKitSourceBuffer}function G(){var V=Object(le.getMediaSource)();if(!V)return!1;var l=j(),F=V&&typeof V.isTypeSupported=="function"&&V.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),O=!l||l.prototype&&typeof l.prototype.appendBuffer=="function"&&typeof l.prototype.remove=="function";return!!F&&!!O}function oe(){var V,l=j();return typeof(l==null||((V=l.prototype)===null||V===void 0)?void 0:V.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return p}),X.d(ae,"LoadError",function(){return x});var le=X("./src/polyfills/number.ts"),j=X("./src/errors.ts");function G(g,h){g.prototype=Object.create(h.prototype),g.prototype.constructor=g,O(g,h)}function oe(g){var h=typeof Map=="function"?new Map:void 0;return oe=function(d){if(d===null||!F(d))return d;if(typeof d!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(d))return h.get(d);h.set(d,I)}function I(){return V(d,arguments,C(this).constructor)}return I.prototype=Object.create(d.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),O(I,d)},oe(g)}function V(g,h,c){return l()?V=Reflect.construct:V=function(I,A,R){var N=[null];N.push.apply(N,A);var P=Function.bind.apply(I,N),D=new P;return R&&O(D,R.prototype),D},V.apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(g){return!1}}function F(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function O(g,h){return O=Object.setPrototypeOf||function(d,I){return d.__proto__=I,d},O(g,h)}function C(g){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},C(g)}var b=Math.pow(2,17),p=function(){function g(c){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=c}var h=g.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(d,I){var A=this,R=d.url;if(!R)return Promise.reject(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:d,networkDetails:null},"Fragment does not have a "+(R?"part list":"url")));this.abort();var N=this.config,P=N.fLoader,D=N.loader;return new Promise(function(E,v){A.loader&&A.loader.destroy();var _=A.loader=d.loader=P?new P(N):new D(N),T=y(d),w={timeout:N.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:N.fragLoadingMaxRetryTimeout,highWaterMark:b};d.stats=_.stats,_.load(T,w,{onSuccess:function(Z,z,L,W){A.resetLoader(d,_),E({frag:d,part:null,payload:Z.data,networkDetails:W})},onError:function(Z,z,L){A.resetLoader(d,_),v(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:d,response:Z,networkDetails:L}))},onAbort:function(Z,z,L){A.resetLoader(d,_),v(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:d,networkDetails:L}))},onTimeout:function(Z,z,L){A.resetLoader(d,_),v(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:d,networkDetails:L}))},onProgress:function(Z,z,L,W){I&&I({frag:d,part:null,payload:L,networkDetails:W})}})})},h.loadPart=function(d,I,A){var R=this;this.abort();var N=this.config,P=N.fLoader,D=N.loader;return new Promise(function(E,v){R.loader&&R.loader.destroy();var _=R.loader=d.loader=P?new P(N):new D(N),T=y(d,I),w={timeout:N.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:N.fragLoadingMaxRetryTimeout,highWaterMark:b};I.stats=_.stats,_.load(T,w,{onSuccess:function(Z,z,L,W){R.resetLoader(d,_),R.updateStatsFromPart(d,I);var Y={frag:d,part:I,payload:Z.data,networkDetails:W};A(Y),E(Y)},onError:function(Z,z,L){R.resetLoader(d,_),v(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:d,part:I,response:Z,networkDetails:L}))},onAbort:function(Z,z,L){d.stats.aborted=I.stats.aborted,R.resetLoader(d,_),v(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:d,part:I,networkDetails:L}))},onTimeout:function(Z,z,L){R.resetLoader(d,_),v(new x({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:d,part:I,networkDetails:L}))}})})},h.updateStatsFromPart=function(d,I){var A=d.stats,R=I.stats,N=R.total;if(A.loaded+=R.loaded,N){var P=Math.round(d.duration/I.duration),D=Math.min(Math.round(A.loaded/N),P),E=P-D,v=E*Math.round(A.loaded/D);A.total=A.loaded+v}else A.total=Math.max(A.loaded,A.total);var _=A.loading,T=R.loading;_.start?_.first+=T.first-T.start:(_.start=T.start,_.first=T.first),_.end=T.end},h.resetLoader=function(d,I){d.loader=null,this.loader===I&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),I.destroy()},g}();function y(g,h){h===void 0&&(h=null);var c=h||g,d={frag:g,part:h,responseType:"arraybuffer",url:c.url,headers:{},rangeStart:0,rangeEnd:0},I=c.byteRangeStartOffset,A=c.byteRangeEndOffset;return Object(le.isFiniteNumber)(I)&&Object(le.isFiniteNumber)(A)&&(d.rangeStart=I,d.rangeEnd=A),d}var x=function(g){G(h,g);function h(c){for(var d,I=arguments.length,A=new Array(I>1?I-1:0),R=1;R<I;R++)A[R-1]=arguments[R];return d=g.call.apply(g,[this].concat(A))||this,d.data=void 0,d.data=c,d}return h}(oe(Error))},"./src/loader/fragment.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"ElementaryStreamTypes",function(){return p}),X.d(ae,"BaseSegment",function(){return y}),X.d(ae,"Fragment",function(){return x}),X.d(ae,"Part",function(){return g});var le=X("./src/polyfills/number.ts"),j=X("./node_modules/url-toolkit/src/url-toolkit.js"),G=X.n(j),oe=X("./src/utils/logger.ts"),V=X("./src/loader/level-key.ts"),l=X("./src/loader/load-stats.ts");function F(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,O(h,c)}function O(h,c){return O=Object.setPrototypeOf||function(I,A){return I.__proto__=A,I},O(h,c)}function C(h,c){for(var d=0;d<c.length;d++){var I=c[d];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(h,I.key,I)}}function b(h,c,d){return c&&C(h.prototype,c),d&&C(h,d),h}var p;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(p||(p={}));var y=function(){function h(d){var I;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(I={},I[p.AUDIO]=null,I[p.VIDEO]=null,I[p.AUDIOVIDEO]=null,I),this.baseurl=d}var c=h.prototype;return c.setByteRange=function(I,A){var R=I.split("@",2),N=[];R.length===1?N[0]=A?A.byteRangeEndOffset:0:N[0]=parseInt(R[1]),N[1]=parseInt(R[0])+N[0],this._byteRange=N},b(h,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(j.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(I){this._url=I}}]),h}(),x=function(h){F(c,h);function c(I,A){var R;return R=h.call(this,A)||this,R._decryptdata=null,R.rawProgramDateTime=null,R.programDateTime=null,R.tagList=[],R.duration=0,R.sn=0,R.levelkey=void 0,R.type=void 0,R.loader=null,R.level=-1,R.cc=0,R.startPTS=void 0,R.endPTS=void 0,R.appendedPTS=void 0,R.startDTS=void 0,R.endDTS=void 0,R.start=0,R.deltaPTS=void 0,R.maxStartPTS=void 0,R.minEndPTS=void 0,R.stats=new l.LoadStats,R.urlId=0,R.data=void 0,R.bitrateTest=!1,R.title=null,R.initSegment=null,R.type=I,R}var d=c.prototype;return d.createInitializationVector=function(A){for(var R=new Uint8Array(16),N=12;N<16;N++)R[N]=A>>8*(15-N)&255;return R},d.setDecryptDataFromLevelKey=function(A,R){var N=A;return(A==null?void 0:A.method)==="AES-128"&&A.uri&&!A.iv&&(N=V.LevelKey.fromURI(A.uri),N.method=A.method,N.iv=this.createInitializationVector(R),N.keyFormat="identity"),N},d.setElementaryStreamInfo=function(A,R,N,P,D,E){E===void 0&&(E=!1);var v=this.elementaryStreams,_=v[A];if(!_){v[A]={startPTS:R,endPTS:N,startDTS:P,endDTS:D,partial:E};return}_.startPTS=Math.min(_.startPTS,R),_.endPTS=Math.max(_.endPTS,N),_.startDTS=Math.min(_.startDTS,P),_.endDTS=Math.max(_.endDTS,D)},d.clearElementaryStreamInfo=function(){var A=this.elementaryStreams;A[p.AUDIO]=null,A[p.VIDEO]=null,A[p.AUDIOVIDEO]=null},b(c,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var A=this.sn;typeof A!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&oe.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),A=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,A)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(le.isFiniteNumber)(this.programDateTime))return null;var A=Object(le.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+A*1e3}},{key:"encrypted",get:function(){var A;return!!((A=this.decryptdata)!==null&&A!==void 0&&A.keyFormat&&this.decryptdata.uri)}}]),c}(y),g=function(h){F(c,h);function c(d,I,A,R,N){var P;P=h.call(this,A)||this,P.fragOffset=0,P.duration=0,P.gap=!1,P.independent=!1,P.relurl=void 0,P.fragment=void 0,P.index=void 0,P.stats=new l.LoadStats,P.duration=d.decimalFloatingPoint("DURATION"),P.gap=d.bool("GAP"),P.independent=d.bool("INDEPENDENT"),P.relurl=d.enumeratedString("URI"),P.fragment=I,P.index=R;var D=d.enumeratedString("BYTERANGE");return D&&P.setByteRange(D,N),N&&(P.fragOffset=N.fragOffset+N.duration),P}return b(c,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var I=this.elementaryStreams;return!!(I.audio||I.video||I.audiovideo)}}]),c}(y)},"./src/loader/key-loader.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return oe});var le=X("./src/events.ts"),j=X("./src/errors.ts"),G=X("./src/utils/logger.ts"),oe=function(){function V(F){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=F,this._registerListeners()}var l=V.prototype;return l._registerListeners=function(){this.hls.on(le.Events.KEY_LOADING,this.onKeyLoading,this)},l._unregisterListeners=function(){this.hls.off(le.Events.KEY_LOADING,this.onKeyLoading)},l.destroy=function(){this._unregisterListeners();for(var O in this.loaders){var C=this.loaders[O];C&&C.destroy()}this.loaders={}},l.onKeyLoading=function(O,C){var b=C.frag,p=b.type,y=this.loaders[p];if(!b.decryptdata){G.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var x=b.decryptdata.uri;if(x!==this.decrypturl||this.decryptkey===null){var g=this.hls.config;if(y&&(G.logger.warn("abort previous key loader for type:"+p),y.abort()),!x){G.logger.warn("key uri is falsy");return}var h=g.loader,c=b.loader=this.loaders[p]=new h(g);this.decrypturl=x,this.decryptkey=null;var d={url:x,frag:b,responseType:"arraybuffer"},I={timeout:g.fragLoadingTimeOut,maxRetry:0,retryDelay:g.fragLoadingRetryDelay,maxRetryDelay:g.fragLoadingMaxRetryTimeout,highWaterMark:0},A={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.load(d,I,A)}else this.decryptkey&&(b.decryptdata.key=this.decryptkey,this.hls.trigger(le.Events.KEY_LOADED,{frag:b}))},l.loadsuccess=function(O,C,b){var p=b.frag;if(!p.decryptdata){G.logger.error("after key load, decryptdata unset");return}this.decryptkey=p.decryptdata.key=new Uint8Array(O.data),p.loader=null,delete this.loaders[p.type],this.hls.trigger(le.Events.KEY_LOADED,{frag:p})},l.loaderror=function(O,C){var b=C.frag,p=b.loader;p&&p.abort(),delete this.loaders[b.type],this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:b,response:O})},l.loadtimeout=function(O,C){var b=C.frag,p=b.loader;p&&p.abort(),delete this.loaders[b.type],this.hls.trigger(le.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:b})},V}()},"./src/loader/level-details.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"LevelDetails",function(){return V});var le=X("./src/polyfills/number.ts");function j(l,F){for(var O=0;O<F.length;O++){var C=F[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(l,C.key,C)}}function G(l,F,O){return F&&j(l.prototype,F),O&&j(l,O),l}var oe=10,V=function(){function l(O){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=O}var F=l.prototype;return F.reloaded=function(C){if(!C){this.advanced=!0,this.updated=!0;return}var b=this.lastPartSn-C.lastPartSn,p=this.lastPartIndex-C.lastPartIndex;this.updated=this.endSN!==C.endSN||!!p||!!b,this.advanced=this.endSN>C.endSN||b>0||b===0&&p>0,this.updated||this.advanced?this.misses=Math.floor(C.misses*.6):this.misses=C.misses+1,this.availabilityDelay=C.availabilityDelay},G(l,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(le.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||oe}},{key:"drift",get:function(){var C=this.driftEndTime-this.driftStartTime;if(C>0){var b=this.driftEnd-this.driftStart;return b*1e3/C}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var C;return(C=this.partList)!==null&&C!==void 0&&C.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var C;return(C=this.fragments)!==null&&C!==void 0&&C.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var C;return(C=this.partList)!==null&&C!==void 0&&C.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var C;return(C=this.partList)!==null&&C!==void 0&&C.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),l}()},"./src/loader/level-key.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"LevelKey",function(){return V});var le=X("./node_modules/url-toolkit/src/url-toolkit.js"),j=X.n(le);function G(l,F){for(var O=0;O<F.length;O++){var C=F[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(l,C.key,C)}}function oe(l,F,O){return F&&G(l.prototype,F),O&&G(l,O),l}var V=function(){l.fromURL=function(O,C){return new l(O,C)},l.fromURI=function(O){return new l(O)};function l(F,O){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,O?this._uri=Object(le.buildAbsoluteURL)(F,O,{alwaysNormalize:!0}):this._uri=F}return oe(l,[{key:"uri",get:function(){return this._uri}}]),l}()},"./src/loader/load-stats.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"LoadStats",function(){return le});var le=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return c});var le=X("./src/polyfills/number.ts"),j=X("./node_modules/url-toolkit/src/url-toolkit.js"),G=X.n(j),oe=X("./src/loader/fragment.ts"),V=X("./src/loader/level-details.ts"),l=X("./src/loader/level-key.ts"),F=X("./src/utils/attr-list.ts"),O=X("./src/utils/logger.ts"),C=X("./src/utils/codecs.ts"),b=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,p=/#EXT-X-MEDIA:(.*)/g,y=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),x=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),g=/\.(mp4|m4s|m4v|m4a)$/i;function h(N){var P,D;return g.test((P=(D=j.parseURL(N))===null||D===void 0?void 0:D.path)!=null?P:"")}var c=function(){function N(){}return N.findGroup=function(D,E){for(var v=0;v<D.length;v++){var _=D[v];if(_.id===E)return _}},N.convertAVC1ToAVCOTI=function(D){var E=D.split(".");if(E.length>2){var v=E.shift()+".";return v+=parseInt(E.shift()).toString(16),v+=("000"+parseInt(E.shift()).toString(16)).substr(-4),v}return D},N.resolve=function(D,E){return j.buildAbsoluteURL(E,D,{alwaysNormalize:!0})},N.parseMasterPlaylist=function(D,E){var v=[],_={},T=!1;b.lastIndex=0;for(var w;(w=b.exec(D))!=null;)if(w[1]){var M=new F.AttrList(w[1]),Z={attrs:M,bitrate:M.decimalInteger("AVERAGE-BANDWIDTH")||M.decimalInteger("BANDWIDTH"),name:M.NAME,url:N.resolve(w[2],E)},z=M.decimalResolution("RESOLUTION");z&&(Z.width=z.width,Z.height=z.height),d((M.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),Z),Z.videoCodec&&Z.videoCodec.indexOf("avc1")!==-1&&(Z.videoCodec=N.convertAVC1ToAVCOTI(Z.videoCodec)),v.push(Z)}else if(w[3]){var L=new F.AttrList(w[3]);L["DATA-ID"]&&(T=!0,_[L["DATA-ID"]]=L)}return{levels:v,sessionData:T?_:null}},N.parseMasterPlaylistMedia=function(D,E,v,_){_===void 0&&(_=[]);var T,w=[],M=0;for(p.lastIndex=0;(T=p.exec(D))!==null;){var Z=new F.AttrList(T[1]);if(Z.TYPE===v){var z={attrs:Z,bitrate:0,id:M++,groupId:Z["GROUP-ID"],instreamId:Z["INSTREAM-ID"],name:Z.NAME||Z.LANGUAGE||"",type:v,default:Z.bool("DEFAULT"),autoselect:Z.bool("AUTOSELECT"),forced:Z.bool("FORCED"),lang:Z.LANGUAGE,url:Z.URI?N.resolve(Z.URI,E):""};if(_.length){var L=N.findGroup(_,z.groupId)||_[0];I(z,L,"audioCodec"),I(z,L,"textCodec")}w.push(z)}}return w},N.parseLevelPlaylist=function(D,E,v,_,T){var w=new V.LevelDetails(E),M=w.fragments,Z=null,z=0,L=0,W=0,Y=0,H=null,ne=new oe.Fragment(_,E),ce,we,Ce,Ke=-1,Ie=!1;for(y.lastIndex=0,w.m3u8=D;(ce=y.exec(D))!==null;){Ie&&(Ie=!1,ne=new oe.Fragment(_,E),ne.start=W,ne.sn=z,ne.cc=Y,ne.level=v,Z&&(ne.initSegment=Z,ne.rawProgramDateTime=Z.rawProgramDateTime));var je=ce[1];if(je){ne.duration=parseFloat(je);var Ve=(" "+ce[2]).slice(1);ne.title=Ve||null,ne.tagList.push(Ve?["INF",je,Ve]:["INF",je])}else if(ce[3])Object(le.isFiniteNumber)(ne.duration)&&(ne.start=W,Ce&&(ne.levelkey=Ce),ne.sn=z,ne.level=v,ne.cc=Y,ne.urlId=T,M.push(ne),ne.relurl=(" "+ce[3]).slice(1),R(ne,H),H=ne,W+=ne.duration,z++,L=0,Ie=!0);else if(ce[4]){var $e=(" "+ce[4]).slice(1);H?ne.setByteRange($e,H):ne.setByteRange($e)}else if(ce[5])ne.rawProgramDateTime=(" "+ce[5]).slice(1),ne.tagList.push(["PROGRAM-DATE-TIME",ne.rawProgramDateTime]),Ke===-1&&(Ke=M.length);else{if(ce=ce[0].match(x),!ce){O.logger.warn("No matches on slow regex match for level playlist!");continue}for(we=1;we<ce.length&&!(typeof ce[we]!="undefined");we++);var Pe=(" "+ce[we]).slice(1),se=(" "+ce[we+1]).slice(1),S=ce[we+2]?(" "+ce[we+2]).slice(1):"";switch(Pe){case"PLAYLIST-TYPE":w.type=se.toUpperCase();break;case"MEDIA-SEQUENCE":z=w.startSN=parseInt(se);break;case"SKIP":{var B=new F.AttrList(se),J=B.decimalInteger("SKIPPED-SEGMENTS");if(Object(le.isFiniteNumber)(J)){w.skippedSegments=J;for(var ue=J;ue--;)M.unshift(null);z+=J}var q=B.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(w.recentlyRemovedDateranges=q.split(" "));break}case"TARGETDURATION":w.targetduration=parseFloat(se);break;case"VERSION":w.version=parseInt(se);break;case"EXTM3U":break;case"ENDLIST":w.live=!1;break;case"#":(se||S)&&ne.tagList.push(S?[se,S]:[se]);break;case"DIS":Y++;case"GAP":ne.tagList.push([Pe]);break;case"BITRATE":ne.tagList.push([Pe,se]);break;case"DISCONTINUITY-SEQ":Y=parseInt(se);break;case"KEY":{var xe,We=new F.AttrList(se),it=We.enumeratedString("METHOD"),be=We.URI,Le=We.hexadecimalInteger("IV"),Fe=We.enumeratedString("KEYFORMATVERSIONS"),ze=We.enumeratedString("KEYID"),dt=(xe=We.enumeratedString("KEYFORMAT"))!=null?xe:"identity",It=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(It.indexOf(dt)>-1){O.logger.warn("Keyformat "+dt+" is not supported from the manifest");continue}else if(dt!=="identity")continue;it&&(Ce=l.LevelKey.fromURL(E,be),be&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(it)>=0&&(Ce.method=it,Ce.keyFormat=dt,ze&&(Ce.keyID=ze),Fe&&(Ce.keyFormatVersions=Fe),Ce.iv=Le));break}case"START":{var Jt=new F.AttrList(se),Bt=Jt.decimalFloatingPoint("TIME-OFFSET");Object(le.isFiniteNumber)(Bt)&&(w.startTimeOffset=Bt);break}case"MAP":{var Nt=new F.AttrList(se);ne.relurl=Nt.URI,Nt.BYTERANGE&&ne.setByteRange(Nt.BYTERANGE),ne.level=v,ne.sn="initSegment",Ce&&(ne.levelkey=Ce),ne.initSegment=null,Z=ne,Ie=!0;break}case"SERVER-CONTROL":{var cn=new F.AttrList(se);w.canBlockReload=cn.bool("CAN-BLOCK-RELOAD"),w.canSkipUntil=cn.optionalFloat("CAN-SKIP-UNTIL",0),w.canSkipDateRanges=w.canSkipUntil>0&&cn.bool("CAN-SKIP-DATERANGES"),w.partHoldBack=cn.optionalFloat("PART-HOLD-BACK",0),w.holdBack=cn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var sn=new F.AttrList(se);w.partTarget=sn.decimalFloatingPoint("PART-TARGET");break}case"PART":{var zt=w.partList;zt||(zt=w.partList=[]);var dn=L>0?zt[zt.length-1]:void 0,Tn=L++,Se=new oe.Part(new F.AttrList(se),ne,E,Tn,dn);zt.push(Se),ne.duration+=Se.duration;break}case"PRELOAD-HINT":{var fe=new F.AttrList(se);w.preloadHint=fe;break}case"RENDITION-REPORT":{var pe=new F.AttrList(se);w.renditionReports=w.renditionReports||[],w.renditionReports.push(pe);break}default:O.logger.warn("line parsed but not handled: "+ce);break}}}H&&!H.relurl?(M.pop(),W-=H.duration,w.partList&&(w.fragmentHint=H)):w.partList&&(R(ne,H),ne.cc=Y,w.fragmentHint=ne);var ve=M.length,Oe=M[0],ge=M[ve-1];if(W+=w.skippedSegments*w.targetduration,W>0&&ve&&ge){w.averagetargetduration=W/ve;var ye=ge.sn;w.endSN=ye!=="initSegment"?ye:0,Oe&&(w.startCC=Oe.cc,Oe.initSegment||w.fragments.every(function(Re){return Re.relurl&&h(Re.relurl)})&&(O.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),ne=new oe.Fragment(_,E),ne.relurl=ge.relurl,ne.level=v,ne.sn="initSegment",Oe.initSegment=ne,w.needSidxRanges=!0))}else w.endSN=0,w.startCC=0;return w.fragmentHint&&(W+=w.fragmentHint.duration),w.totalduration=W,w.endCC=Y,Ke>0&&A(M,Ke),w},N}();function d(N,P){["video","audio","text"].forEach(function(D){var E=N.filter(function(_){return Object(C.isCodecType)(_,D)});if(E.length){var v=E.filter(function(_){return _.lastIndexOf("avc1",0)===0||_.lastIndexOf("mp4a",0)===0});P[D+"Codec"]=v.length>0?v[0]:E[0],N=N.filter(function(_){return E.indexOf(_)===-1})}}),P.unknownCodecs=N}function I(N,P,D){var E=P[D];E&&(N[D]=E)}function A(N,P){for(var D=N[P],E=P;E--;){var v=N[E];if(!v)return;v.programDateTime=D.programDateTime-v.duration*1e3,D=v}}function R(N,P){N.rawProgramDateTime?N.programDateTime=Date.parse(N.rawProgramDateTime):P!=null&&P.programDateTime&&(N.programDateTime=P.endProgramDateTime),Object(le.isFiniteNumber)(N.programDateTime)||(N.programDateTime=null,N.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/events.ts"),G=X("./src/errors.ts"),oe=X("./src/utils/logger.ts"),V=X("./src/utils/mp4-tools.ts"),l=X("./src/loader/m3u8-parser.ts"),F=X("./src/types/loader.ts"),O=X("./src/utils/attr-list.ts");function C(y){var x=y.type;switch(x){case F.PlaylistContextType.AUDIO_TRACK:return F.PlaylistLevelType.AUDIO;case F.PlaylistContextType.SUBTITLE_TRACK:return F.PlaylistLevelType.SUBTITLE;default:return F.PlaylistLevelType.MAIN}}function b(y,x){var g=y.url;return(g===void 0||g.indexOf("data:")===0)&&(g=x.url),g}var p=function(){function y(g){this.hls=void 0,this.loaders=Object.create(null),this.hls=g,this.registerListeners()}var x=y.prototype;return x.registerListeners=function(){var h=this.hls;h.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},x.unregisterListeners=function(){var h=this.hls;h.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},x.createInternalLoader=function(h){var c=this.hls.config,d=c.pLoader,I=c.loader,A=d||I,R=new A(c);return h.loader=R,this.loaders[h.type]=R,R},x.getInternalLoader=function(h){return this.loaders[h.type]},x.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},x.destroyInternalLoaders=function(){for(var h in this.loaders){var c=this.loaders[h];c&&c.destroy(),this.resetInternalLoader(h)}},x.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},x.onManifestLoading=function(h,c){var d=c.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:F.PlaylistContextType.MANIFEST,url:d,deliveryDirectives:null})},x.onLevelLoading=function(h,c){var d=c.id,I=c.level,A=c.url,R=c.deliveryDirectives;this.load({id:d,groupId:null,level:I,responseType:"text",type:F.PlaylistContextType.LEVEL,url:A,deliveryDirectives:R})},x.onAudioTrackLoading=function(h,c){var d=c.id,I=c.groupId,A=c.url,R=c.deliveryDirectives;this.load({id:d,groupId:I,level:null,responseType:"text",type:F.PlaylistContextType.AUDIO_TRACK,url:A,deliveryDirectives:R})},x.onSubtitleTrackLoading=function(h,c){var d=c.id,I=c.groupId,A=c.url,R=c.deliveryDirectives;this.load({id:d,groupId:I,level:null,responseType:"text",type:F.PlaylistContextType.SUBTITLE_TRACK,url:A,deliveryDirectives:R})},x.load=function(h){var c,d=this.hls.config,I=this.getInternalLoader(h);if(I){var A=I.context;if(A&&A.url===h.url){oe.logger.trace("[playlist-loader]: playlist request ongoing");return}oe.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),I.abort()}var R,N,P,D;switch(h.type){case F.PlaylistContextType.MANIFEST:R=d.manifestLoadingMaxRetry,N=d.manifestLoadingTimeOut,P=d.manifestLoadingRetryDelay,D=d.manifestLoadingMaxRetryTimeout;break;case F.PlaylistContextType.LEVEL:case F.PlaylistContextType.AUDIO_TRACK:case F.PlaylistContextType.SUBTITLE_TRACK:R=0,N=d.levelLoadingTimeOut;break;default:R=d.levelLoadingMaxRetry,N=d.levelLoadingTimeOut,P=d.levelLoadingRetryDelay,D=d.levelLoadingMaxRetryTimeout;break}if(I=this.createInternalLoader(h),(c=h.deliveryDirectives)!==null&&c!==void 0&&c.part){var E;if(h.type===F.PlaylistContextType.LEVEL&&h.level!==null?E=this.hls.levels[h.level].details:h.type===F.PlaylistContextType.AUDIO_TRACK&&h.id!==null?E=this.hls.audioTracks[h.id].details:h.type===F.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(E=this.hls.subtitleTracks[h.id].details),E){var v=E.partTarget,_=E.targetduration;v&&_&&(N=Math.min(Math.max(v*3,_*.8)*1e3,N))}}var T={timeout:N,maxRetry:R,retryDelay:P,maxRetryDelay:D,highWaterMark:0},w={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};I.load(h,T,w)},x.loadsuccess=function(h,c,d,I){if(I===void 0&&(I=null),d.isSidxRequest){this.handleSidxRequest(h,d),this.handlePlaylistLoaded(h,c,d,I);return}this.resetInternalLoader(d.type);var A=h.data;if(A.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,d,"no EXTM3U delimiter",I);return}c.parsing.start=performance.now(),A.indexOf("#EXTINF:")>0||A.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,c,d,I):this.handleMasterPlaylist(h,c,d,I)},x.loaderror=function(h,c,d){d===void 0&&(d=null),this.handleNetworkError(c,d,!1,h)},x.loadtimeout=function(h,c,d){d===void 0&&(d=null),this.handleNetworkError(c,d,!0)},x.handleMasterPlaylist=function(h,c,d,I){var A=this.hls,R=h.data,N=b(h,d),P=l.default.parseMasterPlaylist(R,N),D=P.levels,E=P.sessionData;if(!D.length){this.handleManifestParsingError(h,d,"no level found in manifest",I);return}var v=D.map(function(z){return{id:z.attrs.AUDIO,audioCodec:z.audioCodec}}),_=D.map(function(z){return{id:z.attrs.SUBTITLES,textCodec:z.textCodec}}),T=l.default.parseMasterPlaylistMedia(R,N,"AUDIO",v),w=l.default.parseMasterPlaylistMedia(R,N,"SUBTITLES",_),M=l.default.parseMasterPlaylistMedia(R,N,"CLOSED-CAPTIONS");if(T.length){var Z=T.some(function(z){return!z.url});!Z&&D[0].audioCodec&&!D[0].attrs.AUDIO&&(oe.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),T.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new O.AttrList({}),bitrate:0,url:""}))}A.trigger(j.Events.MANIFEST_LOADED,{levels:D,audioTracks:T,subtitles:w,captions:M,url:N,stats:c,networkDetails:I,sessionData:E})},x.handleTrackOrLevelPlaylist=function(h,c,d,I){var A=this.hls,R=d.id,N=d.level,P=d.type,D=b(h,d),E=Object(le.isFiniteNumber)(R)?R:0,v=Object(le.isFiniteNumber)(N)?N:E,_=C(d),T=l.default.parseLevelPlaylist(h.data,D,v,_,E);if(!T.fragments.length){A.trigger(j.Events.ERROR,{type:G.ErrorTypes.NETWORK_ERROR,details:G.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:D,reason:"no fragments found in level",level:typeof d.level=="number"?d.level:void 0});return}if(P===F.PlaylistContextType.MANIFEST){var w={attrs:new O.AttrList({}),bitrate:0,details:T,name:"",url:D};A.trigger(j.Events.MANIFEST_LOADED,{levels:[w],audioTracks:[],url:D,stats:c,networkDetails:I,sessionData:null})}if(c.parsing.end=performance.now(),T.needSidxRanges){var M,Z=(M=T.fragments[0].initSegment)===null||M===void 0?void 0:M.url;this.load({url:Z,isSidxRequest:!0,type:P,level:N,levelDetails:T,id:R,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}d.levelDetails=T,this.handlePlaylistLoaded(h,c,d,I)},x.handleSidxRequest=function(h,c){var d=Object(V.parseSegmentIndex)(new Uint8Array(h.data));if(!d)return;var I=d.references,A=c.levelDetails;I.forEach(function(R,N){var P=R.info,D=A.fragments[N];D.byteRange.length===0&&D.setByteRange(String(1+P.end-P.start)+"@"+String(P.start)),D.initSegment&&D.initSegment.setByteRange(String(d.moovEndOffset)+"@0")})},x.handleManifestParsingError=function(h,c,d,I){this.hls.trigger(j.Events.ERROR,{type:G.ErrorTypes.NETWORK_ERROR,details:G.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:c.type===F.PlaylistContextType.MANIFEST,url:h.url,reason:d,response:h,context:c,networkDetails:I})},x.handleNetworkError=function(h,c,d,I){d===void 0&&(d=!1),oe.logger.warn("[playlist-loader]: A network "+(d?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var A=G.ErrorDetails.UNKNOWN,R=!1,N=this.getInternalLoader(h);switch(h.type){case F.PlaylistContextType.MANIFEST:A=d?G.ErrorDetails.MANIFEST_LOAD_TIMEOUT:G.ErrorDetails.MANIFEST_LOAD_ERROR,R=!0;break;case F.PlaylistContextType.LEVEL:A=d?G.ErrorDetails.LEVEL_LOAD_TIMEOUT:G.ErrorDetails.LEVEL_LOAD_ERROR,R=!1;break;case F.PlaylistContextType.AUDIO_TRACK:A=d?G.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:G.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,R=!1;break;case F.PlaylistContextType.SUBTITLE_TRACK:A=d?G.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:G.ErrorDetails.SUBTITLE_LOAD_ERROR,R=!1;break}N&&this.resetInternalLoader(h.type);var P={type:G.ErrorTypes.NETWORK_ERROR,details:A,fatal:R,url:h.url,loader:N,context:h,networkDetails:c};I&&(P.response=I),this.hls.trigger(j.Events.ERROR,P)},x.handlePlaylistLoaded=function(h,c,d,I){var A=d.type,R=d.level,N=d.id,P=d.groupId,D=d.loader,E=d.levelDetails,v=d.deliveryDirectives;if(!(E!=null&&E.targetduration)){this.handleManifestParsingError(h,d,"invalid target duration",I);return}if(!D)return;E.live&&(D.getCacheAge&&(E.ageHeader=D.getCacheAge()||0),(!D.getCacheAge||isNaN(E.ageHeader))&&(E.ageHeader=0));switch(A){case F.PlaylistContextType.MANIFEST:case F.PlaylistContextType.LEVEL:this.hls.trigger(j.Events.LEVEL_LOADED,{details:E,level:R||0,id:N||0,stats:c,networkDetails:I,deliveryDirectives:v});break;case F.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(j.Events.AUDIO_TRACK_LOADED,{details:E,id:N||0,groupId:P||"",stats:c,networkDetails:I,deliveryDirectives:v});break;case F.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADED,{details:E,id:N||0,groupId:P||"",stats:c,networkDetails:I,deliveryDirectives:v});break}},y}();ae.default=p},"./src/polyfills/number.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"isFiniteNumber",function(){return le}),X.d(ae,"MAX_SAFE_INTEGER",function(){return j});var le=Number.isFinite||function(G){return typeof G=="number"&&isFinite(G)},j=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Te,ae,X){"use strict";X.r(ae);var le=function(){function j(){}return j.getSilentFrame=function(oe,V){switch(oe){case"mp4a.40.2":if(V===1)return new Uint8Array([0,200,0,128,35,128]);if(V===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(V===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(V===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(V===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(V===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(V===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(V===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(V===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},j}();ae.default=le},"./src/remux/mp4-generator.ts":function(Te,ae,X){"use strict";X.r(ae);var le=Math.pow(2,32)-1,j=function(){function G(){}return G.init=function(){G.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var V;for(V in G.types)G.types.hasOwnProperty(V)&&(G.types[V]=[V.charCodeAt(0),V.charCodeAt(1),V.charCodeAt(2),V.charCodeAt(3)]);var l=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),F=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);G.HDLR_TYPES={video:l,audio:F};var O=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),C=new Uint8Array([0,0,0,0,0,0,0,0]);G.STTS=G.STSC=G.STCO=C,G.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),G.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),G.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),G.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var b=new Uint8Array([105,115,111,109]),p=new Uint8Array([97,118,99,49]),y=new Uint8Array([0,0,0,1]);G.FTYP=G.box(G.types.ftyp,b,y,b,p),G.DINF=G.box(G.types.dinf,G.box(G.types.dref,O))},G.box=function(V){for(var l=8,F=arguments.length,O=new Array(F>1?F-1:0),C=1;C<F;C++)O[C-1]=arguments[C];for(var b=O.length,p=b;b--;)l+=O[b].byteLength;var y=new Uint8Array(l);for(y[0]=l>>24&255,y[1]=l>>16&255,y[2]=l>>8&255,y[3]=l&255,y.set(V,4),b=0,l=8;b<p;b++)y.set(O[b],l),l+=O[b].byteLength;return y},G.hdlr=function(V){return G.box(G.types.hdlr,G.HDLR_TYPES[V])},G.mdat=function(V){return G.box(G.types.mdat,V)},G.mdhd=function(V,l){l*=V;var F=Math.floor(l/(le+1)),O=Math.floor(l%(le+1));return G.box(G.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,V>>24&255,V>>16&255,V>>8&255,V&255,F>>24,F>>16&255,F>>8&255,F&255,O>>24,O>>16&255,O>>8&255,O&255,85,196,0,0]))},G.mdia=function(V){return G.box(G.types.mdia,G.mdhd(V.timescale,V.duration),G.hdlr(V.type),G.minf(V))},G.mfhd=function(V){return G.box(G.types.mfhd,new Uint8Array([0,0,0,0,V>>24,V>>16&255,V>>8&255,V&255]))},G.minf=function(V){return V.type==="audio"?G.box(G.types.minf,G.box(G.types.smhd,G.SMHD),G.DINF,G.stbl(V)):G.box(G.types.minf,G.box(G.types.vmhd,G.VMHD),G.DINF,G.stbl(V))},G.moof=function(V,l,F){return G.box(G.types.moof,G.mfhd(V),G.traf(F,l))},G.moov=function(V){for(var l=V.length,F=[];l--;)F[l]=G.trak(V[l]);return G.box.apply(null,[G.types.moov,G.mvhd(V[0].timescale,V[0].duration)].concat(F).concat(G.mvex(V)))},G.mvex=function(V){for(var l=V.length,F=[];l--;)F[l]=G.trex(V[l]);return G.box.apply(null,[G.types.mvex].concat(F))},G.mvhd=function(V,l){l*=V;var F=Math.floor(l/(le+1)),O=Math.floor(l%(le+1)),C=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,V>>24&255,V>>16&255,V>>8&255,V&255,F>>24,F>>16&255,F>>8&255,F&255,O>>24,O>>16&255,O>>8&255,O&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return G.box(G.types.mvhd,C)},G.sdtp=function(V){var l=V.samples||[],F=new Uint8Array(4+l.length),O,C;for(O=0;O<l.length;O++)C=l[O].flags,F[O+4]=C.dependsOn<<4|C.isDependedOn<<2|C.hasRedundancy;return G.box(G.types.sdtp,F)},G.stbl=function(V){return G.box(G.types.stbl,G.stsd(V),G.box(G.types.stts,G.STTS),G.box(G.types.stsc,G.STSC),G.box(G.types.stsz,G.STSZ),G.box(G.types.stco,G.STCO))},G.avc1=function(V){var l=[],F=[],O,C,b;for(O=0;O<V.sps.length;O++)C=V.sps[O],b=C.byteLength,l.push(b>>>8&255),l.push(b&255),l=l.concat(Array.prototype.slice.call(C));for(O=0;O<V.pps.length;O++)C=V.pps[O],b=C.byteLength,F.push(b>>>8&255),F.push(b&255),F=F.concat(Array.prototype.slice.call(C));var p=G.box(G.types.avcC,new Uint8Array([1,l[3],l[4],l[5],252|3,224|V.sps.length].concat(l).concat([V.pps.length]).concat(F))),y=V.width,x=V.height,g=V.pixelRatio[0],h=V.pixelRatio[1];return G.box(G.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,y>>8&255,y&255,x>>8&255,x&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),p,G.box(G.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),G.box(G.types.pasp,new Uint8Array([g>>24,g>>16&255,g>>8&255,g&255,h>>24,h>>16&255,h>>8&255,h&255])))},G.esds=function(V){var l=V.config.length;return new Uint8Array([0,0,0,0,3,23+l,0,1,0,4,15+l,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([l]).concat(V.config).concat([6,1,2]))},G.mp4a=function(V){var l=V.samplerate;return G.box(G.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,V.channelCount,0,16,0,0,0,0,l>>8&255,l&255,0,0]),G.box(G.types.esds,G.esds(V)))},G.mp3=function(V){var l=V.samplerate;return G.box(G.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,V.channelCount,0,16,0,0,0,0,l>>8&255,l&255,0,0]))},G.stsd=function(V){return V.type==="audio"?!V.isAAC&&V.codec==="mp3"?G.box(G.types.stsd,G.STSD,G.mp3(V)):G.box(G.types.stsd,G.STSD,G.mp4a(V)):G.box(G.types.stsd,G.STSD,G.avc1(V))},G.tkhd=function(V){var l=V.id,F=V.duration*V.timescale,O=V.width,C=V.height,b=Math.floor(F/(le+1)),p=Math.floor(F%(le+1));return G.box(G.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,l>>24&255,l>>16&255,l>>8&255,l&255,0,0,0,0,b>>24,b>>16&255,b>>8&255,b&255,p>>24,p>>16&255,p>>8&255,p&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,O>>8&255,O&255,0,0,C>>8&255,C&255,0,0]))},G.traf=function(V,l){var F=G.sdtp(V),O=V.id,C=Math.floor(l/(le+1)),b=Math.floor(l%(le+1));return G.box(G.types.traf,G.box(G.types.tfhd,new Uint8Array([0,0,0,0,O>>24,O>>16&255,O>>8&255,O&255])),G.box(G.types.tfdt,new Uint8Array([1,0,0,0,C>>24,C>>16&255,C>>8&255,C&255,b>>24,b>>16&255,b>>8&255,b&255])),G.trun(V,F.length+16+20+8+16+8+8),F)},G.trak=function(V){return V.duration=V.duration||4294967295,G.box(G.types.trak,G.tkhd(V),G.mdia(V))},G.trex=function(V){var l=V.id;return G.box(G.types.trex,new Uint8Array([0,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},G.trun=function(V,l){var F=V.samples||[],O=F.length,C=12+16*O,b=new Uint8Array(C),p,y,x,g,h,c;for(l+=8+C,b.set([0,0,15,1,O>>>24&255,O>>>16&255,O>>>8&255,O&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255],0),p=0;p<O;p++)y=F[p],x=y.duration,g=y.size,h=y.flags,c=y.cts,b.set([x>>>24&255,x>>>16&255,x>>>8&255,x&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,c>>>24&255,c>>>16&255,c>>>8&255,c&255],12+16*p);return G.box(G.types.trun,b)},G.initSegment=function(V){G.types||G.init();var l=G.moov(V),F=new Uint8Array(G.FTYP.byteLength+l.byteLength);return F.set(G.FTYP),F.set(l,G.FTYP.byteLength),F},G}();j.types=void 0,j.HDLR_TYPES=void 0,j.STTS=void 0,j.STSC=void 0,j.STCO=void 0,j.STSZ=void 0,j.VMHD=void 0,j.SMHD=void 0,j.STSD=void 0,j.FTYP=void 0,j.DINF=void 0,ae.default=j},"./src/remux/mp4-remuxer.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return c}),X.d(ae,"normalizePts",function(){return d});var le=X("./src/polyfills/number.ts"),j=X("./src/remux/aac-helper.ts"),G=X("./src/remux/mp4-generator.ts"),oe=X("./src/events.ts"),V=X("./src/errors.ts"),l=X("./src/utils/logger.ts"),F=X("./src/types/loader.ts"),O=X("./src/utils/timescale-conversion.ts");function C(){return C=Object.assign||function(N){for(var P=1;P<arguments.length;P++){var D=arguments[P];for(var E in D)Object.prototype.hasOwnProperty.call(D,E)&&(N[E]=D[E])}return N},C.apply(this,arguments)}var b=10*1e3,p=1024,y=1152,x=null,g=null,h=!1,c=function(){function N(D,E,v,_){if(_===void 0&&(_=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=D,this.config=E,this.typeSupported=v,this.ISGenerated=!1,x===null){var T=navigator.userAgent||"",w=T.match(/Chrome\/(\d+)/i);x=w?parseInt(w[1]):0}if(g===null){var M=navigator.userAgent.match(/Safari\/(\d+)/i);g=M?parseInt(M[1]):0}h=!!x&&x<75||!!g&&g<600}var P=N.prototype;return P.destroy=function(){},P.resetTimeStamp=function(E){l.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=E},P.resetNextTimestamp=function(){l.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},P.resetInitSegment=function(){l.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},P.getVideoStartPts=function(E){var v=!1,_=E.reduce(function(T,w){var M=w.pts-T;return M<-4294967296?(v=!0,d(T,w.pts)):M>0?T:w.pts},E[0].pts);return v&&l.logger.debug("PTS rollover detected"),_},P.remux=function(E,v,_,T,w,M,Z,z){var L,W,Y,H,ne,ce,we=w,Ce=w,Ke=E.pid>-1,Ie=v.pid>-1,je=v.samples.length,Ve=E.samples.length>0,$e=je>1,Pe=(!Ke||Ve)&&(!Ie||$e)||this.ISGenerated||Z;if(Pe){this.ISGenerated||(Y=this.generateIS(E,v,w));var se=this.isVideoContiguous,S=-1;if($e&&(S=I(v.samples),!se&&this.config.forceKeyFrameOnDiscontinuity))if(ce=!0,S>0){l.logger.warn("[mp4-remuxer]: Dropped "+S+" out of "+je+" video samples due to a missing keyframe");var B=this.getVideoStartPts(v.samples);v.samples=v.samples.slice(S),v.dropped+=S,Ce+=(v.samples[0].pts-B)/(v.timescale||9e4)}else S===-1&&(l.logger.warn("[mp4-remuxer]: No keyframe found out of "+je+" video samples"),ce=!1);if(this.ISGenerated){if(Ve&&$e){var J=this.getVideoStartPts(v.samples),ue=d(E.samples[0].pts,J)-J,q=ue/v.inputTimeScale;we+=Math.max(0,q),Ce+=Math.max(0,-q)}if(Ve){if(E.samplerate||(l.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Y=this.generateIS(E,v,w)),W=this.remuxAudio(E,we,this.isAudioContiguous,M,Ie||$e||z===F.PlaylistLevelType.AUDIO?Ce:void 0),$e){var xe=W?W.endPTS-W.startPTS:0;v.inputTimeScale||(l.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Y=this.generateIS(E,v,w)),L=this.remuxVideo(v,Ce,se,xe)}}else $e&&(L=this.remuxVideo(v,Ce,se,0));L&&(L.firstKeyFrame=S,L.independent=S!==-1)}}return this.ISGenerated&&(_.samples.length&&(ne=this.remuxID3(_,w)),T.samples.length&&(H=this.remuxText(T,w))),{audio:W,video:L,initSegment:Y,independent:ce,text:H,id3:ne}},P.generateIS=function(E,v,_){var T=E.samples,w=v.samples,M=this.typeSupported,Z={},z=!Object(le.isFiniteNumber)(this._initPTS),L="audio/mp4",W,Y,H;if(z&&(W=Y=Infinity),E.config&&T.length&&(E.timescale=E.samplerate,E.isAAC||(M.mpeg?(L="audio/mpeg",E.codec=""):M.mp3&&(E.codec="mp3")),Z.audio={id:"audio",container:L,codec:E.codec,initSegment:!E.isAAC&&M.mpeg?new Uint8Array(0):G.default.initSegment([E]),metadata:{channelCount:E.channelCount}},z&&(H=E.inputTimeScale,W=Y=T[0].pts-Math.round(H*_))),v.sps&&v.pps&&w.length&&(v.timescale=v.inputTimeScale,Z.video={id:"main",container:"video/mp4",codec:v.codec,initSegment:G.default.initSegment([v]),metadata:{width:v.width,height:v.height}},z)){H=v.inputTimeScale;var ne=this.getVideoStartPts(w),ce=Math.round(H*_);Y=Math.min(Y,d(w[0].dts,ne)-ce),W=Math.min(W,ne-ce)}if(Object.keys(Z).length)return this.ISGenerated=!0,z&&(this._initPTS=W,this._initDTS=Y),{tracks:Z,initPTS:W,timescale:H}},P.remuxVideo=function(E,v,_,T){var w=E.inputTimeScale,M=E.samples,Z=[],z=M.length,L=this._initPTS,W=this.nextAvcDts,Y=8,H,ne,ce,we=Number.POSITIVE_INFINITY,Ce=Number.NEGATIVE_INFINITY,Ke=0,Ie=!1;if(!_||W===null){var je=v*w,Ve=M[0].pts-d(M[0].dts,M[0].pts);W=je-Ve}for(var $e=0;$e<z;$e++){var Pe=M[$e];if(Pe.pts=d(Pe.pts-L,W),Pe.dts=d(Pe.dts-L,W),Pe.dts>Pe.pts){var se=9e4*.2;Ke=Math.max(Math.min(Ke,Pe.pts-Pe.dts),-1*se)}Pe.dts<M[$e>0?$e-1:$e].dts&&(Ie=!0)}Ie&&M.sort(function($t,ft){var yt=$t.dts-ft.dts,ut=$t.pts-ft.pts;return yt||ut}),ne=M[0].dts,ce=M[M.length-1].dts;var S=Math.round((ce-ne)/(z-1));if(Ke<0){if(Ke<S*-2){l.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(O.toMsFromMpegTsClock)(-S,!0)+" ms");for(var B=Ke,J=0;J<z;J++)M[J].dts=B=Math.max(B,M[J].pts-S),M[J].pts=Math.max(B,M[J].pts)}else{l.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(O.toMsFromMpegTsClock)(Ke,!0)+" ms to overcome this issue");for(var ue=0;ue<z;ue++)M[ue].dts=M[ue].dts+Ke}ne=M[0].dts}if(_){var q=ne-W,xe=q>S,We=q<-1;if(xe||We){xe?l.logger.warn("AVC: "+Object(O.toMsFromMpegTsClock)(q,!0)+" ms ("+q+"dts) hole between fragments detected, filling it"):l.logger.warn("AVC: "+Object(O.toMsFromMpegTsClock)(-q,!0)+" ms ("+q+"dts) overlapping between fragments detected"),ne=W;var it=M[0].pts-q;M[0].dts=ne,M[0].pts=it,l.logger.log("Video: First PTS/DTS adjusted: "+Object(O.toMsFromMpegTsClock)(it,!0)+"/"+Object(O.toMsFromMpegTsClock)(ne,!0)+", delta: "+Object(O.toMsFromMpegTsClock)(q,!0)+" ms")}}h&&(ne=Math.max(0,ne));for(var be=0,Le=0,Fe=0;Fe<z;Fe++){for(var ze=M[Fe],dt=ze.units,It=dt.length,Jt=0,Bt=0;Bt<It;Bt++)Jt+=dt[Bt].data.length;Le+=Jt,be+=It,ze.length=Jt,ze.dts=Math.max(ze.dts,ne),ze.pts=Math.max(ze.pts,ze.dts,0),we=Math.min(ze.pts,we),Ce=Math.max(ze.pts,Ce)}ce=M[z-1].dts;var Nt=Le+4*be+8,cn;try{cn=new Uint8Array(Nt)}catch($t){this.observer.emit(oe.Events.ERROR,oe.Events.ERROR,{type:V.ErrorTypes.MUX_ERROR,details:V.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Nt,reason:"fail allocating video mdat "+Nt});return}var sn=new DataView(cn.buffer);sn.setUint32(0,Nt),cn.set(G.default.types.mdat,4);for(var zt=0;zt<z;zt++){for(var dn=M[zt],Tn=dn.units,Se=0,fe=0,pe=Tn.length;fe<pe;fe++){var ve=Tn[fe],Oe=ve.data,ge=ve.data.byteLength;sn.setUint32(Y,ge),Y+=4,cn.set(Oe,Y),Y+=ge,Se+=4+ge}if(zt<z-1)H=M[zt+1].dts-dn.dts;else{var ye=this.config,Re=dn.dts-M[zt>0?zt-1:zt].dts;if(ye.stretchShortVideoTrack&&this.nextAudioPts!==null){var Me=Math.floor(ye.maxBufferHole*w),nt=(T?we+T*w:this.nextAudioPts)-dn.pts;nt>Me?(H=nt-Re,H<0&&(H=Re),l.logger.log("[mp4-remuxer]: It is approximately "+nt/90+" ms to the next segment; using duration "+H/90+" ms for the last video frame.")):H=Re}else H=Re}var qe=Math.round(dn.pts-dn.dts);Z.push(new A(dn.key,H,Se,qe))}if(Z.length&&x&&x<70){var xt=Z[0].flags;xt.dependsOn=2,xt.isNonSync=0}console.assert(H!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ce+H,this.isVideoContiguous=!0;var yn=G.default.moof(E.sequenceNumber++,ne,C({},E,{samples:Z})),Pn="video",An={data1:yn,data2:cn,startPTS:we/w,endPTS:(Ce+H)/w,startDTS:ne/w,endDTS:W/w,type:Pn,hasAudio:!1,hasVideo:!0,nb:Z.length,dropped:E.dropped};return E.samples=[],E.dropped=0,console.assert(cn.length,"MDAT length must not be zero"),An},P.remuxAudio=function(E,v,_,T,w){var M=E.inputTimeScale,Z=E.samplerate?E.samplerate:M,z=M/Z,L=E.isAAC?p:y,W=L*z,Y=this._initPTS,H=!E.isAAC&&this.typeSupported.mpeg,ne=[],ce=E.samples,we=H?0:8,Ce=this.nextAudioPts||-1,Ke=v*M;if(this.isAudioContiguous=_=_||ce.length&&Ce>0&&(T&&Math.abs(Ke-Ce)<9e3||Math.abs(d(ce[0].pts-Y,Ke)-Ce)<20*W),ce.forEach(function(Oe){Oe.pts=d(Oe.pts-Y,Ke)}),!_||Ce<0){if(ce=ce.filter(function(Oe){return Oe.pts>=0}),!ce.length)return;w===0?Ce=0:T?Ce=Math.max(0,Ke):Ce=ce[0].pts}if(E.isAAC)for(var Ie=w!==void 0,je=this.config.maxAudioFramesDrift,Ve=0,$e=Ce;Ve<ce.length;Ve++){var Pe=ce[Ve],se=Pe.pts,S=se-$e,B=Math.abs(1e3*S/M);if(S<=-je*W&&Ie)Ve===0&&(l.logger.warn("Audio frame @ "+(se/M).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*S/M)+" ms."),this.nextAudioPts=Ce=$e=se);else if(S>=je*W&&B<b&&Ie){var J=Math.round(S/W);$e=se-J*W,$e<0&&(J--,$e+=W),Ve===0&&(this.nextAudioPts=Ce=$e),l.logger.warn("[mp4-remuxer]: Injecting "+J+" audio frame @ "+($e/M).toFixed(3)+"s due to "+Math.round(1e3*S/M)+" ms gap.");for(var ue=0;ue<J;ue++){var q=Math.max($e,0),xe=j.default.getSilentFrame(E.manifestCodec||E.codec,E.channelCount);xe||(l.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),xe=Pe.unit.subarray()),ce.splice(Ve,0,{unit:xe,pts:q}),$e+=W,Ve++}}Pe.pts=$e,$e+=W}for(var We=null,it=null,be,Le=0,Fe=ce.length;Fe--;)Le+=ce[Fe].unit.byteLength;for(var ze=0,dt=ce.length;ze<dt;ze++){var It=ce[ze],Jt=It.unit,Bt=It.pts;if(it!==null){var Nt=ne[ze-1];Nt.duration=Math.round((Bt-it)/z)}else if(_&&E.isAAC&&(Bt=Ce),We=Bt,Le>0){Le+=we;try{be=new Uint8Array(Le)}catch(Oe){this.observer.emit(oe.Events.ERROR,oe.Events.ERROR,{type:V.ErrorTypes.MUX_ERROR,details:V.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Le,reason:"fail allocating audio mdat "+Le});return}if(!H){var cn=new DataView(be.buffer);cn.setUint32(0,Le),be.set(G.default.types.mdat,4)}}else return;be.set(Jt,we);var sn=Jt.byteLength;we+=sn,ne.push(new A(!0,L,sn,0)),it=Bt}var zt=ne.length;if(!zt)return;var dn=ne[ne.length-1];this.nextAudioPts=Ce=it+z*dn.duration;var Tn=H?new Uint8Array(0):G.default.moof(E.sequenceNumber++,We/z,C({},E,{samples:ne}));E.samples=[];var Se=We/M,fe=Ce/M,pe="audio",ve={data1:Tn,data2:be,startPTS:Se,endPTS:fe,startDTS:Se,endDTS:fe,type:pe,hasAudio:!0,hasVideo:!1,nb:zt};return this.isAudioContiguous=!0,console.assert(be.length,"MDAT length must not be zero"),ve},P.remuxEmptyAudio=function(E,v,_,T){var w=E.inputTimeScale,M=E.samplerate?E.samplerate:w,Z=w/M,z=this.nextAudioPts,L=(z!==null?z:T.startDTS*w)+this._initDTS,W=T.endDTS*w+this._initDTS,Y=Z*p,H=Math.ceil((W-L)/Y),ne=j.default.getSilentFrame(E.manifestCodec||E.codec,E.channelCount);if(l.logger.warn("[mp4-remuxer]: remux empty Audio"),!ne){l.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ce=[],we=0;we<H;we++){var Ce=L+we*Y;ce.push({unit:ne,pts:Ce,dts:Ce})}return E.samples=ce,this.remuxAudio(E,v,_,!1)},P.remuxID3=function(E,v){var _=E.samples.length;if(!_)return;for(var T=E.inputTimeScale,w=this._initPTS,M=this._initDTS,Z=0;Z<_;Z++){var z=E.samples[Z];z.pts=d(z.pts-w,v*T)/T,z.dts=d(z.dts-M,v*T)/T}var L=E.samples;return E.samples=[],{samples:L}},P.remuxText=function(E,v){var _=E.samples.length;if(!_)return;for(var T=E.inputTimeScale,w=this._initPTS,M=0;M<_;M++){var Z=E.samples[M];Z.pts=d(Z.pts-w,v*T)/T}E.samples.sort(function(L,W){return L.pts-W.pts});var z=E.samples;return E.samples=[],{samples:z}},N}();function d(N,P){var D;if(P===null)return N;for(P<N?D=-8589934592:D=8589934592;Math.abs(N-P)>4294967296;)N+=D;return N}function I(N){for(var P=0;P<N.length;P++)if(N[P].key)return P;return-1}var A=function(P,D,E,v){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=D,this.size=E,this.cts=v,this.flags=new R(P)},R=function(P){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=P?2:1,this.isNonSync=P?0:1}},"./src/remux/passthrough-remuxer.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/polyfills/number.ts"),j=X("./src/utils/mp4-tools.ts"),G=X("./src/loader/fragment.ts"),oe=X("./src/utils/logger.ts"),V=function(){function O(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var C=O.prototype;return C.destroy=function(){},C.resetTimeStamp=function(p){this.initPTS=p,this.lastEndDTS=null},C.resetNextTimestamp=function(){this.lastEndDTS=null},C.resetInitSegment=function(p,y,x){this.audioCodec=y,this.videoCodec=x,this.generateInitSegment(p),this.emitInitSegment=!0},C.generateInitSegment=function(p){var y=this.audioCodec,x=this.videoCodec;if(!p||!p.byteLength){this.initTracks=void 0,this.initData=void 0;return}var g=this.initData=Object(j.parseInitSegment)(p);y||(y=F(g.audio,G.ElementaryStreamTypes.AUDIO)),x||(x=F(g.video,G.ElementaryStreamTypes.VIDEO));var h={};g.audio&&g.video?h.audiovideo={container:"video/mp4",codec:y+","+x,initSegment:p,id:"main"}:g.audio?h.audio={container:"audio/mp4",codec:y,initSegment:p,id:"audio"}:g.video?h.video={container:"video/mp4",codec:x,initSegment:p,id:"main"}:oe.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},C.remux=function(p,y,x,g,h){var c=this.initPTS,d=this.lastEndDTS,I={audio:void 0,video:void 0,text:g,id3:x,initSegment:void 0};Object(le.isFiniteNumber)(d)||(d=this.lastEndDTS=h||0);var A=y.samples;if(!A||!A.length)return I;var R={initPTS:void 0,timescale:1},N=this.initData;if((!N||!N.length)&&(this.generateInitSegment(A),N=this.initData),!N||!N.length)return oe.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),I;this.emitInitSegment&&(R.tracks=this.initTracks,this.emitInitSegment=!1),Object(le.isFiniteNumber)(c)||(this.initPTS=R.initPTS=c=l(N,A,d));var P=Object(j.getDuration)(A,N),D=d,E=P+D;Object(j.offsetStartDTS)(N,A,c),P>0?this.lastEndDTS=E:(oe.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var v=!!N.audio,_=!!N.video,T="";v&&(T+="audio"),_&&(T+="video");var w={data1:A,startPTS:D,startDTS:D,endPTS:E,endDTS:E,type:T,hasAudio:v,hasVideo:_,nb:1,dropped:0};return I.audio=w.type==="audio"?w:void 0,I.video=w.type!=="audio"?w:void 0,I.text=g,I.id3=x,I.initSegment=R,I},O}(),l=function(C,b,p){return Object(j.getStartDTS)(C,b)-p};function F(O,C){var b=O==null?void 0:O.codec;return b&&b.length>4?b:b==="hvc1"?"hvc1.1.c.L120.90":b==="av01"?"av01.0.04M.08":b==="avc1"||C===G.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}ae.default=V},"./src/task-loop.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return le});var le=function(){function j(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var G=j.prototype;return G.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},G.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},G.onHandlerDestroyed=function(){},G.hasInterval=function(){return!!this._tickInterval},G.hasNextTick=function(){return!!this._tickTimer},G.setInterval=function(V){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,V),!0)},G.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},G.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},G.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},G.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},G.doTick=function(){},j}()},"./src/types/cmcd.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"CMCDVersion",function(){return le}),X.d(ae,"CMCDObjectType",function(){return j}),X.d(ae,"CMCDStreamingFormat",function(){return G}),X.d(ae,"CMCDStreamType",function(){return oe});var le=1,j;(function(V){V.MANIFEST="m",V.AUDIO="a",V.VIDEO="v",V.MUXED="av",V.INIT="i",V.CAPTION="c",V.TIMED_TEXT="tt",V.KEY="k",V.OTHER="o"})(j||(j={}));var G;(function(V){V.DASH="d",V.HLS="h",V.SMOOTH="s",V.OTHER="o"})(G||(G={}));var oe;(function(V){V.VOD="v",V.LIVE="l"})(oe||(oe={}))},"./src/types/level.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"HlsSkip",function(){return G}),X.d(ae,"getSkipValue",function(){return oe}),X.d(ae,"HlsUrlParameters",function(){return V}),X.d(ae,"Level",function(){return l});function le(F,O){for(var C=0;C<O.length;C++){var b=O[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(F,b.key,b)}}function j(F,O,C){return O&&le(F.prototype,O),C&&le(F,C),F}var G;(function(F){F.No="",F.Yes="YES",F.v2="v2"})(G||(G={}));function oe(F,O){var C=F.canSkipUntil,b=F.canSkipDateRanges,p=F.endSN,y=O!==void 0?O-p:0;return C&&y<C?b?G.v2:G.Yes:G.No}var V=function(){function F(C,b,p){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=C,this.part=b,this.skip=p}var O=F.prototype;return O.addDirectives=function(b){var p=new self.URL(b);return this.msn!==void 0&&p.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&p.searchParams.set("_HLS_part",this.part.toString()),this.skip&&p.searchParams.set("_HLS_skip",this.skip),p.toString()},F}(),l=function(){function F(O){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[O.url],this.attrs=O.attrs,this.bitrate=O.bitrate,O.details&&(this.details=O.details),this.id=O.id||0,this.name=O.name,this.width=O.width||0,this.height=O.height||0,this.audioCodec=O.audioCodec,this.videoCodec=O.videoCodec,this.unknownCodecs=O.unknownCodecs,this.codecSet=[O.videoCodec,O.audioCodec].filter(function(C){return C}).join(",").replace(/\.[^.,]+/g,"")}return j(F,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(C){var b=C%this.url.length;this._urlId!==b&&(this.details=void 0,this._urlId=b)}}]),F}()},"./src/types/loader.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"PlaylistContextType",function(){return le}),X.d(ae,"PlaylistLevelType",function(){return j});var le;(function(G){G.MANIFEST="manifest",G.LEVEL="level",G.AUDIO_TRACK="audioTrack",G.SUBTITLE_TRACK="subtitleTrack"})(le||(le={}));var j;(function(G){G.MAIN="main",G.AUDIO="audio",G.SUBTITLE="subtitle"})(j||(j={}))},"./src/types/transmuxer.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"ChunkMetadata",function(){return le});var le=function(oe,V,l,F,O,C){F===void 0&&(F=0),O===void 0&&(O=-1),C===void 0&&(C=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=j(),this.buffering={audio:j(),video:j(),audiovideo:j()},this.level=oe,this.sn=V,this.id=l,this.size=F,this.part=O,this.partial=C};function j(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"AttrList",function(){return G});var le=/^(\d+)x(\d+)$/,j=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,G=function(){function oe(l){typeof l=="string"&&(l=oe.parseAttrList(l));for(var F in l)l.hasOwnProperty(F)&&(this[F]=l[F])}var V=oe.prototype;return V.decimalInteger=function(F){var O=parseInt(this[F],10);return O>Number.MAX_SAFE_INTEGER?Infinity:O},V.hexadecimalInteger=function(F){if(this[F]){var O=(this[F]||"0x").slice(2);O=(O.length&1?"0":"")+O;for(var C=new Uint8Array(O.length/2),b=0;b<O.length/2;b++)C[b]=parseInt(O.slice(b*2,b*2+2),16);return C}else return null},V.hexadecimalIntegerAsNumber=function(F){var O=parseInt(this[F],16);return O>Number.MAX_SAFE_INTEGER?Infinity:O},V.decimalFloatingPoint=function(F){return parseFloat(this[F])},V.optionalFloat=function(F,O){var C=this[F];return C?parseFloat(C):O},V.enumeratedString=function(F){return this[F]},V.bool=function(F){return this[F]==="YES"},V.decimalResolution=function(F){var O=le.exec(this[F]);return O===null?void 0:{width:parseInt(O[1],10),height:parseInt(O[2],10)}},oe.parseAttrList=function(F){var O,C={},b='"';for(j.lastIndex=0;(O=j.exec(F))!==null;){var p=O[2];p.indexOf(b)===0&&p.lastIndexOf(b)===p.length-1&&(p=p.slice(1,-1)),C[O[1]]=p}return C},oe}()},"./src/utils/binary-search.ts":function(Te,ae,X){"use strict";X.r(ae);var le={search:function(G,oe){for(var V=0,l=G.length-1,F=null,O=null;V<=l;){F=(V+l)/2|0,O=G[F];var C=oe(O);if(C>0)V=F+1;else if(C<0)l=F-1;else return O}return null}};ae.default=le},"./src/utils/buffer-helper.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"BufferHelper",function(){return G});var le=X("./src/utils/logger.ts"),j={length:0,start:function(){return 0},end:function(){return 0}},G=function(){function oe(){}return oe.isBuffered=function(l,F){try{if(l){for(var O=oe.getBuffered(l),C=0;C<O.length;C++)if(F>=O.start(C)&&F<=O.end(C))return!0}}catch(b){}return!1},oe.bufferInfo=function(l,F,O){try{if(l){var C=oe.getBuffered(l),b=[],p;for(p=0;p<C.length;p++)b.push({start:C.start(p),end:C.end(p)});return this.bufferedInfo(b,F,O)}}catch(y){}return{len:0,start:F,end:F,nextStart:void 0}},oe.bufferedInfo=function(l,F,O){F=Math.max(0,F),l.sort(function(R,N){var P=R.start-N.start;return P||N.end-R.end});var C=[];if(O)for(var b=0;b<l.length;b++){var p=C.length;if(p){var y=C[p-1].end;l[b].start-y<O?l[b].end>y&&(C[p-1].end=l[b].end):C.push(l[b])}else C.push(l[b])}else C=l;for(var x=0,g,h=F,c=F,d=0;d<C.length;d++){var I=C[d].start,A=C[d].end;if(F+O>=I&&F<A)h=I,c=A,x=c-F;else if(F+O<I){g=I;break}}return{len:x,start:h||0,end:c||0,nextStart:g}},oe.getBuffered=function(l){try{return l.buffered}catch(F){return le.logger.log("failed to get media.buffered",F),j}},oe}()},"./src/utils/cea-608-parser.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"Row",function(){return c}),X.d(ae,"CaptionScreen",function(){return d});var le=X("./src/utils/logger.ts"),j={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},G=function(E){var v=E;return j.hasOwnProperty(E)&&(v=j[E]),String.fromCharCode(v)},oe=15,V=100,l={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},F={17:2,18:4,21:6,22:8,23:10,19:13,20:15},O={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},C={25:2,26:4,29:6,30:8,31:10,27:13,28:15},b=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],p;(function(D){D[D.ERROR=0]="ERROR",D[D.TEXT=1]="TEXT",D[D.WARNING=2]="WARNING",D[D.INFO=2]="INFO",D[D.DEBUG=3]="DEBUG",D[D.DATA=3]="DATA"})(p||(p={}));var y=function(){function D(){this.time=null,this.verboseLevel=p.ERROR}var E=D.prototype;return E.log=function(_,T){this.verboseLevel>=_&&le.logger.log(this.time+" ["+_+"] "+T)},D}(),x=function(E){for(var v=[],_=0;_<E.length;_++)v.push(E[_].toString(16));return v},g=function(){function D(v,_,T,w,M){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=v||"white",this.underline=_||!1,this.italics=T||!1,this.background=w||"black",this.flash=M||!1}var E=D.prototype;return E.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},E.setStyles=function(_){for(var T=["foreground","underline","italics","background","flash"],w=0;w<T.length;w++){var M=T[w];_.hasOwnProperty(M)&&(this[M]=_[M])}},E.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},E.equals=function(_){return this.foreground===_.foreground&&this.underline===_.underline&&this.italics===_.italics&&this.background===_.background&&this.flash===_.flash},E.copy=function(_){this.foreground=_.foreground,this.underline=_.underline,this.italics=_.italics,this.background=_.background,this.flash=_.flash},E.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},D}(),h=function(){function D(v,_,T,w,M,Z){this.uchar=void 0,this.penState=void 0,this.uchar=v||" ",this.penState=new g(_,T,w,M,Z)}var E=D.prototype;return E.reset=function(){this.uchar=" ",this.penState.reset()},E.setChar=function(_,T){this.uchar=_,this.penState.copy(T)},E.setPenState=function(_){this.penState.copy(_)},E.equals=function(_){return this.uchar===_.uchar&&this.penState.equals(_.penState)},E.copy=function(_){this.uchar=_.uchar,this.penState.copy(_.penState)},E.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},D}(),c=function(){function D(v){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var _=0;_<V;_++)this.chars.push(new h);this.logger=v,this.pos=0,this.currPenState=new g}var E=D.prototype;return E.equals=function(_){for(var T=!0,w=0;w<V;w++)if(!this.chars[w].equals(_.chars[w])){T=!1;break}return T},E.copy=function(_){for(var T=0;T<V;T++)this.chars[T].copy(_.chars[T])},E.isEmpty=function(){for(var _=!0,T=0;T<V;T++)if(!this.chars[T].isEmpty()){_=!1;break}return _},E.setCursor=function(_){this.pos!==_&&(this.pos=_),this.pos<0?(this.logger.log(p.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>V&&(this.logger.log(p.DEBUG,"Too large cursor position "+this.pos),this.pos=V)},E.moveCursor=function(_){var T=this.pos+_;if(_>1)for(var w=this.pos+1;w<T+1;w++)this.chars[w].setPenState(this.currPenState);this.setCursor(T)},E.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},E.insertChar=function(_){_>=144&&this.backSpace();var T=G(_);if(this.pos>=V){this.logger.log(p.ERROR,"Cannot insert "+_.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},E.clearFromPos=function(_){var T;for(T=_;T<V;T++)this.chars[T].reset()},E.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},E.clearToEndOfRow=function(){this.clearFromPos(this.pos)},E.getTextString=function(){for(var _=[],T=!0,w=0;w<V;w++){var M=this.chars[w].uchar;M!==" "&&(T=!1),_.push(M)}return T?"":_.join("")},E.setPenStyles=function(_){this.currPenState.setStyles(_);var T=this.chars[this.pos];T.setPenState(this.currPenState)},D}(),d=function(){function D(v){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var _=0;_<oe;_++)this.rows.push(new c(v));this.logger=v,this.currRow=oe-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var E=D.prototype;return E.reset=function(){for(var _=0;_<oe;_++)this.rows[_].clear();this.currRow=oe-1},E.equals=function(_){for(var T=!0,w=0;w<oe;w++)if(!this.rows[w].equals(_.rows[w])){T=!1;break}return T},E.copy=function(_){for(var T=0;T<oe;T++)this.rows[T].copy(_.rows[T])},E.isEmpty=function(){for(var _=!0,T=0;T<oe;T++)if(!this.rows[T].isEmpty()){_=!1;break}return _},E.backSpace=function(){var _=this.rows[this.currRow];_.backSpace()},E.clearToEndOfRow=function(){var _=this.rows[this.currRow];_.clearToEndOfRow()},E.insertChar=function(_){var T=this.rows[this.currRow];T.insertChar(_)},E.setPen=function(_){var T=this.rows[this.currRow];T.setPenStyles(_)},E.moveCursor=function(_){var T=this.rows[this.currRow];T.moveCursor(_)},E.setCursor=function(_){this.logger.log(p.INFO,"setCursor: "+_);var T=this.rows[this.currRow];T.setCursor(_)},E.setPAC=function(_){this.logger.log(p.INFO,"pacData = "+JSON.stringify(_));var T=_.row-1;if(this.nrRollUpRows&&T<this.nrRollUpRows-1&&(T=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==T){for(var w=0;w<oe;w++)this.rows[w].clear();var M=this.currRow+1-this.nrRollUpRows,Z=this.lastOutputScreen;if(Z){var z=Z.rows[M].cueStartTime,L=this.logger.time;if(z&&L!==null&&z<L)for(var W=0;W<this.nrRollUpRows;W++)this.rows[T-this.nrRollUpRows+W+1].copy(Z.rows[M+W])}}this.currRow=T;var Y=this.rows[this.currRow];if(_.indent!==null){var H=_.indent,ne=Math.max(H-1,0);Y.setCursor(_.indent),_.color=Y.chars[ne].penState.foreground}var ce={foreground:_.color,underline:_.underline,italics:_.italics,background:"black",flash:!1};this.setPen(ce)},E.setBkgData=function(_){this.logger.log(p.INFO,"bkgData = "+JSON.stringify(_)),this.backSpace(),this.setPen(_),this.insertChar(32)},E.setRollUpRows=function(_){this.nrRollUpRows=_},E.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(p.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(p.TEXT,this.getDisplayText());var _=this.currRow+1-this.nrRollUpRows,T=this.rows.splice(_,1)[0];T.clear(),this.rows.splice(this.currRow,0,T),this.logger.log(p.INFO,"Rolling up")},E.getDisplayText=function(_){_=_||!1;for(var T=[],w="",M=-1,Z=0;Z<oe;Z++){var z=this.rows[Z].getTextString();z&&(M=Z+1,_?T.push("Row "+M+": '"+z+"'"):T.push(z.trim()))}return T.length>0&&(_?w="["+T.join(" | ")+"]":w=T.join(`
`)),w},E.getTextAndFormat=function(){return this.rows},D}(),I=function(){function D(v,_,T){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=v,this.outputFilter=_,this.mode=null,this.verbose=0,this.displayedMemory=new d(T),this.nonDisplayedMemory=new d(T),this.lastOutputScreen=new d(T),this.currRollUpRow=this.displayedMemory.rows[oe-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=T}var E=D.prototype;return E.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[oe-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},E.getHandler=function(){return this.outputFilter},E.setHandler=function(_){this.outputFilter=_},E.setPAC=function(_){this.writeScreen.setPAC(_)},E.setBkgData=function(_){this.writeScreen.setBkgData(_)},E.setMode=function(_){if(_===this.mode)return;this.mode=_,this.logger.log(p.INFO,"MODE="+_),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=_},E.insertChars=function(_){for(var T=0;T<_.length;T++)this.writeScreen.insertChar(_[T]);var w=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(p.INFO,w+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(p.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},E.ccRCL=function(){this.logger.log(p.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},E.ccBS=function(){if(this.logger.log(p.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},E.ccAOF=function(){},E.ccAON=function(){},E.ccDER=function(){this.logger.log(p.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},E.ccRU=function(_){this.logger.log(p.INFO,"RU("+_+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(_)},E.ccFON=function(){this.logger.log(p.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},E.ccRDC=function(){this.logger.log(p.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},E.ccTR=function(){this.logger.log(p.INFO,"TR"),this.setMode("MODE_TEXT")},E.ccRTD=function(){this.logger.log(p.INFO,"RTD"),this.setMode("MODE_TEXT")},E.ccEDM=function(){this.logger.log(p.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},E.ccCR=function(){this.logger.log(p.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},E.ccENM=function(){this.logger.log(p.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},E.ccEOC=function(){if(this.logger.log(p.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var _=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=_,this.writeScreen=this.nonDisplayedMemory,this.logger.log(p.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},E.ccTO=function(_){this.logger.log(p.INFO,"TO("+_+") - Tab Offset"),this.writeScreen.moveCursor(_)},E.ccMIDROW=function(_){var T={flash:!1};if(T.underline=_%2===1,T.italics=_>=46,T.italics)T.foreground="white";else{var w=Math.floor(_/2)-16,M=["white","green","blue","cyan","red","yellow","magenta"];T.foreground=M[w]}this.logger.log(p.INFO,"MIDROW: "+JSON.stringify(T)),this.writeScreen.setPen(T)},E.outputDataUpdate=function(_){_===void 0&&(_=!1);var T=this.logger.time;if(T===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=T:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,T,this.lastOutputScreen),_&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:T),this.lastOutputScreen.copy(this.displayedMemory))},E.cueSplitAtTime=function(_){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,_,this.displayedMemory),this.cueStartTime=_))},D}(),A=function(){function D(v,_,T){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var w=new y;this.channels=[null,new I(v,_,w),new I(v+1,T,w)],this.cmdHistory=P(),this.logger=w}var E=D.prototype;return E.getHandler=function(_){return this.channels[_].getHandler()},E.setHandler=function(_,T){this.channels[_].setHandler(T)},E.addData=function(_,T){var w,M,Z,z=!1;this.logger.time=_;for(var L=0;L<T.length;L+=2){if(M=T[L]&127,Z=T[L+1]&127,M===0&&Z===0)continue;if(this.logger.log(p.DATA,"["+x([T[L],T[L+1]])+"] -> ("+x([M,Z])+")"),w=this.parseCmd(M,Z),w||(w=this.parseMidrow(M,Z)),w||(w=this.parsePAC(M,Z)),w||(w=this.parseBackgroundAttributes(M,Z)),!w&&(z=this.parseChars(M,Z),z)){var W=this.currentChannel;if(W&&W>0){var Y=this.channels[W];Y.insertChars(z)}else this.logger.log(p.WARNING,"No channel found yet. TEXT-MODE?")}!w&&!z&&this.logger.log(p.WARNING,"Couldn't parse cleaned data "+x([M,Z])+" orig: "+x([T[L],T[L+1]]))}},E.parseCmd=function(_,T){var w=this.cmdHistory,M=(_===20||_===28||_===21||_===29)&&T>=32&&T<=47,Z=(_===23||_===31)&&T>=33&&T<=35;if(!(M||Z))return!1;if(N(_,T,w))return R(null,null,w),this.logger.log(p.DEBUG,"Repeated command ("+x([_,T])+") is dropped"),!0;var z=_===20||_===21||_===23?1:2,L=this.channels[z];return _===20||_===21||_===28||_===29?T===32?L.ccRCL():T===33?L.ccBS():T===34?L.ccAOF():T===35?L.ccAON():T===36?L.ccDER():T===37?L.ccRU(2):T===38?L.ccRU(3):T===39?L.ccRU(4):T===40?L.ccFON():T===41?L.ccRDC():T===42?L.ccTR():T===43?L.ccRTD():T===44?L.ccEDM():T===45?L.ccCR():T===46?L.ccENM():T===47&&L.ccEOC():L.ccTO(T-32),R(_,T,w),this.currentChannel=z,!0},E.parseMidrow=function(_,T){var w=0;if((_===17||_===25)&&T>=32&&T<=47){if(_===17?w=1:w=2,w!==this.currentChannel)return this.logger.log(p.ERROR,"Mismatch channel in midrow parsing"),!1;var M=this.channels[w];return M?(M.ccMIDROW(T),this.logger.log(p.DEBUG,"MIDROW ("+x([_,T])+")"),!0):!1}return!1},E.parsePAC=function(_,T){var w,M=this.cmdHistory,Z=(_>=17&&_<=23||_>=25&&_<=31)&&T>=64&&T<=127,z=(_===16||_===24)&&T>=64&&T<=95;if(!(Z||z))return!1;if(N(_,T,M))return R(null,null,M),!0;var L=_<=23?1:2;T>=64&&T<=95?w=L===1?l[_]:O[_]:w=L===1?F[_]:C[_];var W=this.channels[L];return W?(W.setPAC(this.interpretPAC(w,T)),R(_,T,M),this.currentChannel=L,!0):!1},E.interpretPAC=function(_,T){var w,M={color:null,italics:!1,indent:null,underline:!1,row:_};return T>95?w=T-96:w=T-64,M.underline=(w&1)===1,w<=13?M.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(w/2)]:w<=15?(M.italics=!0,M.color="white"):M.indent=Math.floor((w-16)/2)*4,M},E.parseChars=function(_,T){var w,M=null,Z=null;if(_>=25?(w=2,Z=_-8):(w=1,Z=_),Z>=17&&Z<=19){var z;Z===17?z=T+80:Z===18?z=T+112:z=T+144,this.logger.log(p.INFO,"Special char '"+G(z)+"' in channel "+w),M=[z]}else _>=32&&_<=127&&(M=T===0?[_]:[_,T]);if(M){var L=x(M);this.logger.log(p.DEBUG,"Char codes = "+L.join(",")),R(_,T,this.cmdHistory)}return M},E.parseBackgroundAttributes=function(_,T){var w=(_===16||_===24)&&T>=32&&T<=47,M=(_===23||_===31)&&T>=45&&T<=47;if(!(w||M))return!1;var Z,z={};_===16||_===24?(Z=Math.floor((T-32)/2),z.background=b[Z],T%2===1&&(z.background=z.background+"_semi")):T===45?z.background="transparent":(z.foreground="black",T===47&&(z.underline=!0));var L=_<=23?1:2,W=this.channels[L];return W.setBkgData(z),R(_,T,this.cmdHistory),!0},E.reset=function(){for(var _=0;_<Object.keys(this.channels).length;_++){var T=this.channels[_];T&&T.reset()}this.cmdHistory=P()},E.cueSplitAtTime=function(_){for(var T=0;T<this.channels.length;T++){var w=this.channels[T];w&&w.cueSplitAtTime(_)}},D}();function R(D,E,v){v.a=D,v.b=E}function N(D,E,v){return v.a===D&&v.b===E}function P(){return{a:null,b:null}}ae.default=A},"./src/utils/codecs.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"isCodecType",function(){return j}),X.d(ae,"isCodecSupportedInMp4",function(){return G});var le={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function j(oe,V){var l=le[V];return!!l&&l[oe.slice(0,4)]===!0}function G(oe,V){return MediaSource.isTypeSupported((V||"video")+'/mp4;codecs="'+oe+'"')}},"./src/utils/cues.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/utils/vttparser.ts"),j=X("./src/utils/webvtt-parser.ts"),G=X("./src/utils/texttrack-utils.ts"),oe=/\s/,V={newCue:function(F,O,C,b){for(var p=[],y,x,g,h,c,d=self.VTTCue||self.TextTrackCue,I=0;I<b.rows.length;I++)if(y=b.rows[I],g=!0,h=0,c="",!y.isEmpty()){for(var A=0;A<y.chars.length;A++)oe.test(y.chars[A].uchar)&&g?h++:(c+=y.chars[A].uchar,g=!1);y.cueStartTime=O,O===C&&(C+=1e-4),h>=16?h--:h++;var R=Object(le.fixLineBreaks)(c.trim()),N=Object(j.generateCueId)(O,C,R);(!F||!F.cues||!F.cues.getCueById(N))&&(x=new d(O,C,R),x.id=N,x.line=I+1,x.align="left",x.position=10+Math.min(80,Math.floor(h*8/32)*10),p.push(x))}return F&&p.length&&(p.sort(function(P,D){return P.line==="auto"||D.line==="auto"?0:P.line>8&&D.line>8?D.line-P.line:P.line-D.line}),p.forEach(function(P){return Object(G.addCueToTrack)(F,P)})),p}};ae.default=V},"./src/utils/discontinuities.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"findFirstFragWithCC",function(){return oe}),X.d(ae,"shouldAlignOnDiscontinuities",function(){return V}),X.d(ae,"findDiscontinuousReferenceFrag",function(){return l}),X.d(ae,"adjustSlidingStart",function(){return O}),X.d(ae,"alignStream",function(){return C}),X.d(ae,"alignPDT",function(){return p}),X.d(ae,"alignFragmentByPDTDelta",function(){return y}),X.d(ae,"alignMediaPlaylistByPDT",function(){return x});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/logger.ts"),G=X("./src/controller/level-helper.ts");function oe(g,h){for(var c=null,d=0,I=g.length;d<I;d++){var A=g[d];if(A&&A.cc===h){c=A;break}}return c}function V(g,h,c){return!!(h.details&&(c.endCC>c.startCC||g&&g.cc<c.startCC))}function l(g,h){var c=g.fragments,d=h.fragments;if(!d.length||!c.length){j.logger.log("No fragments to align");return}var I=oe(c,d[0].cc);if(!I||I&&!I.startPTS){j.logger.log("No frag in previous level to align on");return}return I}function F(g,h){if(g){var c=g.start+h;g.start=g.startPTS=c,g.endPTS=c+g.duration}}function O(g,h){for(var c=h.fragments,d=0,I=c.length;d<I;d++)F(c[d],g);h.fragmentHint&&F(h.fragmentHint,g),h.alignedSliding=!0}function C(g,h,c){if(!h)return;b(g,c,h),!c.alignedSliding&&h.details&&p(c,h.details),!c.alignedSliding&&h.details&&!c.skippedSegments&&Object(G.adjustSliding)(h.details,c)}function b(g,h,c){if(V(g,c,h)){var d=l(c.details,h);d&&Object(le.isFiniteNumber)(d.start)&&(j.logger.log("Adjusting PTS using last level due to CC increase within current level "+h.url),O(d.start,h))}}function p(g,h){if(!h.fragments.length||!g.hasProgramDateTime||!h.hasProgramDateTime)return;var c=h.fragments[0].programDateTime,d=g.fragments[0].programDateTime,I=(d-c)/1e3+h.fragments[0].start;I&&Object(le.isFiniteNumber)(I)&&(j.logger.log("Adjusting PTS using programDateTime delta "+(d-c)+"ms, sliding:"+I.toFixed(3)+" "+g.url+" "),O(I,g))}function y(g,h){var c=g.programDateTime;if(!c)return;var d=(c-h)/1e3;g.start=g.startPTS=d,g.endPTS=d+g.duration}function x(g,h){if(!h.fragments.length||!g.hasProgramDateTime||!h.hasProgramDateTime)return;var c=h.fragments[0].programDateTime,d=h.fragments[0].start,I=c-d*1e3;g.fragments.forEach(function(A){y(A,I)}),g.fragmentHint&&y(g.fragmentHint,I),g.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/utils/ewma.ts"),j=function(){function G(V,l,F){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=F,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new le.default(V),this.fast_=new le.default(l)}var oe=G.prototype;return oe.update=function(l,F){var O=this.slow_,C=this.fast_;this.slow_.halfLife!==l&&(this.slow_=new le.default(l,O.getEstimate(),O.getTotalWeight())),this.fast_.halfLife!==F&&(this.fast_=new le.default(F,C.getEstimate(),C.getTotalWeight()))},oe.sample=function(l,F){l=Math.max(l,this.minDelayMs_);var O=8*F,C=l/1e3,b=O/C;this.fast_.sample(C,b),this.slow_.sample(C,b)},oe.canEstimate=function(){var l=this.fast_;return l&&l.getTotalWeight()>=this.minWeight_},oe.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},oe.destroy=function(){},G}();ae.default=j},"./src/utils/ewma.ts":function(Te,ae,X){"use strict";X.r(ae);var le=function(){function j(oe,V,l){V===void 0&&(V=0),l===void 0&&(l=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=oe,this.alpha_=oe?Math.exp(Math.log(.5)/oe):0,this.estimate_=V,this.totalWeight_=l}var G=j.prototype;return G.sample=function(V,l){var F=Math.pow(this.alpha_,V);this.estimate_=l*(1-F)+F*this.estimate_,this.totalWeight_+=V},G.getTotalWeight=function(){return this.totalWeight_},G.getEstimate=function(){if(this.alpha_){var V=1-Math.pow(this.alpha_,this.totalWeight_);if(V)return this.estimate_/V}return this.estimate_},j}();ae.default=le},"./src/utils/fetch-loader.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"fetchSupported",function(){return y});var le=X("./src/polyfills/number.ts"),j=X("./src/loader/load-stats.ts"),G=X("./src/demux/chunk-cache.ts");function oe(d,I){d.prototype=Object.create(I.prototype),d.prototype.constructor=d,C(d,I)}function V(d){var I=typeof Map=="function"?new Map:void 0;return V=function(R){if(R===null||!O(R))return R;if(typeof R!="function")throw new TypeError("Super expression must either be null or a function");if(typeof I!="undefined"){if(I.has(R))return I.get(R);I.set(R,N)}function N(){return l(R,arguments,b(this).constructor)}return N.prototype=Object.create(R.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),C(N,R)},V(d)}function l(d,I,A){return F()?l=Reflect.construct:l=function(N,P,D){var E=[null];E.push.apply(E,P);var v=Function.bind.apply(N,E),_=new v;return D&&C(_,D.prototype),_},l.apply(null,arguments)}function F(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}function O(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function C(d,I){return C=Object.setPrototypeOf||function(R,N){return R.__proto__=N,R},C(d,I)}function b(d){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},b(d)}function p(){return p=Object.assign||function(d){for(var I=1;I<arguments.length;I++){var A=arguments[I];for(var R in A)Object.prototype.hasOwnProperty.call(A,R)&&(d[R]=A[R])}return d},p.apply(this,arguments)}function y(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(d){}return!1}var x=function(){function d(A){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=A.fetchSetup||h,this.controller=new self.AbortController,this.stats=new j.LoadStats}var I=d.prototype;return I.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},I.abortInternal=function(){var R=this.response;(!R||!R.ok)&&(this.stats.aborted=!0,this.controller.abort())},I.abort=function(){var R;this.abortInternal(),(R=this.callbacks)!==null&&R!==void 0&&R.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},I.load=function(R,N,P){var D=this,E=this.stats;if(E.loading.start)throw new Error("Loader can only be used once.");E.loading.start=self.performance.now();var v=g(R,this.controller.signal),_=P.onProgress,T=R.responseType==="arraybuffer",w=T?"byteLength":"length";this.context=R,this.config=N,this.callbacks=P,this.request=this.fetchSetup(R,v),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){D.abortInternal(),P.onTimeout(E,R,D.response)},N.timeout),self.fetch(this.request).then(function(M){if(D.response=D.loader=M,!M.ok){var Z=M.status,z=M.statusText;throw new c(z||"fetch, bad network response",Z,M)}return E.loading.first=Math.max(self.performance.now(),E.loading.start),E.total=parseInt(M.headers.get("Content-Length")||"0"),_&&Object(le.isFiniteNumber)(N.highWaterMark)?D.loadProgressively(M,E,R,N.highWaterMark,_):T?M.arrayBuffer():M.text()}).then(function(M){var Z=D.response;self.clearTimeout(D.requestTimeout),E.loading.end=Math.max(self.performance.now(),E.loading.first),E.loaded=E.total=M[w];var z={url:Z.url,data:M};_&&!Object(le.isFiniteNumber)(N.highWaterMark)&&_(E,R,M,Z),P.onSuccess(z,E,R,Z)}).catch(function(M){if(self.clearTimeout(D.requestTimeout),E.aborted)return;var Z=M.code||0;P.onError({code:Z,text:M.message},R,M.details)})},I.getCacheAge=function(){var R=null;if(this.response){var N=this.response.headers.get("age");R=N?parseFloat(N):null}return R},I.loadProgressively=function(R,N,P,D,E){D===void 0&&(D=0);var v=new G.default,_=R.body.getReader(),T=function w(){return _.read().then(function(M){if(M.done)return v.dataLength&&E(N,P,v.flush(),R),Promise.resolve(new ArrayBuffer(0));var Z=M.value,z=Z.length;return N.loaded+=z,z<D||v.dataLength?(v.push(Z),v.dataLength>=D&&E(N,P,v.flush(),R)):E(N,P,Z,R),w()}).catch(function(){return Promise.reject()})};return T()},d}();function g(d,I){var A={method:"GET",mode:"cors",credentials:"same-origin",signal:I,headers:new self.Headers(p({},d.headers))};return d.rangeEnd&&A.headers.set("Range","bytes="+d.rangeStart+"-"+String(d.rangeEnd-1)),A}function h(d,I){return new self.Request(d.url,I)}var c=function(d){oe(I,d);function I(A,R,N){var P;return P=d.call(this,A)||this,P.code=void 0,P.details=void 0,P.code=R,P.details=N,P}return I}(V(Error));ae.default=x},"./src/utils/imsc1-ttml-parser.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"IMSC1_CODEC",function(){return O}),X.d(ae,"parseIMSC1",function(){return y});var le=X("./src/utils/mp4-tools.ts"),j=X("./src/utils/vttparser.ts"),G=X("./src/utils/vttcue.ts"),oe=X("./src/demux/id3.ts"),V=X("./src/utils/timescale-conversion.ts"),l=X("./src/utils/webvtt-parser.ts");function F(){return F=Object.assign||function(D){for(var E=1;E<arguments.length;E++){var v=arguments[E];for(var _ in v)Object.prototype.hasOwnProperty.call(v,_)&&(D[_]=v[_])}return D},F.apply(this,arguments)}var O="stpp.ttml.im1t",C=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,b=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,p={left:"start",center:"center",right:"end",start:"start",end:"end"};function y(D,E,v,_,T){var w=Object(le.findBox)(new Uint8Array(D),["mdat"]);if(w.length===0){T(new Error("Could not parse IMSC1 mdat"));return}var M=w[0],Z=Object(oe.utf8ArrayToStr)(new Uint8Array(D,M.start,M.end-M.start)),z=Object(V.toTimescaleFromScale)(E,1,v);try{_(x(Z,z))}catch(L){T(L)}}function x(D,E){var v=new DOMParser,_=v.parseFromString(D,"text/xml"),T=_.getElementsByTagName("tt")[0];if(!T)throw new Error("Invalid ttml");var w={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},M=Object.keys(w).reduce(function(Y,H){return Y[H]=T.getAttribute("ttp:"+H)||w[H],Y},{}),Z=T.getAttribute("xml:space")!=="preserve",z=h(g(T,"styling","style")),L=h(g(T,"layout","region")),W=g(T,"body","[begin]");return[].map.call(W,function(Y){var H=c(Y,Z);if(!H||!Y.hasAttribute("begin"))return null;var ne=R(Y.getAttribute("begin"),M),ce=R(Y.getAttribute("dur"),M),we=R(Y.getAttribute("end"),M);if(ne===null)throw A(Y);if(we===null){if(ce===null)throw A(Y);we=ne+ce}var Ce=new G.default(ne-E,we-E,H);Ce.id=Object(l.generateCueId)(Ce.startTime,Ce.endTime,Ce.text);var Ke=L[Y.getAttribute("region")],Ie=z[Y.getAttribute("style")];Ce.position=10,Ce.size=80;var je=d(Ke,Ie),Ve=je.textAlign;if(Ve){var $e=p[Ve];$e&&(Ce.lineAlign=$e),Ce.align=Ve}return F(Ce,je),Ce}).filter(function(Y){return Y!==null})}function g(D,E,v){var _=D.getElementsByTagName(E)[0];return _?[].slice.call(_.querySelectorAll(v)):[]}function h(D){return D.reduce(function(E,v){var _=v.getAttribute("xml:id");return _&&(E[_]=v),E},{})}function c(D,E){return[].slice.call(D.childNodes).reduce(function(v,_,T){var w;return _.nodeName==="br"&&T?v+`
`:(w=_.childNodes)!==null&&w!==void 0&&w.length?c(_,E):E?v+_.textContent.trim().replace(/\s+/g," "):v+_.textContent},"")}function d(D,E){var v="http://www.w3.org/ns/ttml#styling",_=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return _.reduce(function(T,w){var M=I(E,v,w)||I(D,v,w);return M&&(T[w]=M),T},{})}function I(D,E,v){return D.hasAttributeNS(E,v)?D.getAttributeNS(E,v):null}function A(D){return new Error("Could not parse ttml timestamp "+D)}function R(D,E){if(!D)return null;var v=Object(j.parseTimeStamp)(D);return v===null&&(C.test(D)?v=N(D,E):b.test(D)&&(v=P(D,E))),v}function N(D,E){var v=C.exec(D),_=(v[4]|0)+(v[5]|0)/E.subFrameRate;return(v[1]|0)*3600+(v[2]|0)*60+(v[3]|0)+_/E.frameRate}function P(D,E){var v=b.exec(D),_=Number(v[1]),T=v[2];switch(T){case"h":return _*3600;case"m":return _*60;case"ms":return _*1e3;case"f":return _/E.frameRate;case"t":return _/E.tickRate}return _}},"./src/utils/logger.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"enableLogs",function(){return l}),X.d(ae,"logger",function(){return F});var le=function(){},j={trace:le,debug:le,log:le,warn:le,info:le,error:le},G=j;function oe(O){var C=self.console[O];return C?C.bind(self.console,"["+O+"] >"):le}function V(O){for(var C=arguments.length,b=new Array(C>1?C-1:0),p=1;p<C;p++)b[p-1]=arguments[p];b.forEach(function(y){G[y]=O[y]?O[y].bind(O):oe(y)})}function l(O){if(self.console&&O===!0||typeof O=="object"){V(O,"debug","log","info","warn","error");try{G.log()}catch(C){G=j}}else G=j}var F=G},"./src/utils/mediakeys-helper.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"KeySystems",function(){return le}),X.d(ae,"requestMediaKeySystemAccess",function(){return j});var le;(function(G){G.WIDEVINE="com.widevine.alpha",G.PLAYREADY="com.microsoft.playready"})(le||(le={}));var j=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"getMediaSource",function(){return le});function le(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"bin2str",function(){return V}),X.d(ae,"readUint16",function(){return l}),X.d(ae,"readUint32",function(){return F}),X.d(ae,"writeUint32",function(){return O}),X.d(ae,"findBox",function(){return C}),X.d(ae,"parseSegmentIndex",function(){return b}),X.d(ae,"parseInitSegment",function(){return p}),X.d(ae,"getStartDTS",function(){return y}),X.d(ae,"getDuration",function(){return x}),X.d(ae,"computeRawDurationFromSamples",function(){return g}),X.d(ae,"offsetStartDTS",function(){return h}),X.d(ae,"segmentValidRange",function(){return c}),X.d(ae,"appendUint8Array",function(){return d});var le=X("./src/utils/typed-array.ts"),j=X("./src/loader/fragment.ts"),G=Math.pow(2,32)-1,oe=[].push;function V(I){return String.fromCharCode.apply(null,I)}function l(I,A){"data"in I&&(A+=I.start,I=I.data);var R=I[A]<<8|I[A+1];return R<0?65536+R:R}function F(I,A){"data"in I&&(A+=I.start,I=I.data);var R=I[A]<<24|I[A+1]<<16|I[A+2]<<8|I[A+3];return R<0?4294967296+R:R}function O(I,A,R){"data"in I&&(A+=I.start,I=I.data),I[A]=R>>24,I[A+1]=R>>16&255,I[A+2]=R>>8&255,I[A+3]=R&255}function C(I,A){var R=[];if(!A.length)return R;var N,P,D;"data"in I?(N=I.data,P=I.start,D=I.end):(N=I,P=0,D=N.byteLength);for(var E=P;E<D;){var v=F(N,E),_=V(N.subarray(E+4,E+8)),T=v>1?E+v:D;if(_===A[0])if(A.length===1)R.push({data:N,start:E+8,end:T});else{var w=C({data:N,start:E+8,end:T},A.slice(1));w.length&&oe.apply(R,w)}E=T}return R}function b(I){var A=C(I,["moov"]),R=A[0],N=R?R.end:null,P=C(I,["sidx"]);if(!P||!P[0])return null;var D=[],E=P[0],v=E.data[0],_=v===0?8:16,T=F(E,_);_+=4;var w=0,M=0;v===0?_+=8:_+=16,_+=2;var Z=E.end+M,z=l(E,_);_+=2;for(var L=0;L<z;L++){var W=_,Y=F(E,W);W+=4;var H=Y&2147483647,ne=(Y&2147483648)>>>31;if(ne===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ce=F(E,W);W+=4,D.push({referenceSize:H,subsegmentDuration:ce,info:{duration:ce/T,start:Z,end:Z+H-1}}),Z+=H,W+=4,_=W}return{earliestPresentationTime:w,timescale:T,version:v,referencesCount:z,references:D,moovEndOffset:N}}function p(I){for(var A=[],R=C(I,["moov","trak"]),N=0;N<R.length;N++){var P=R[N],D=C(P,["tkhd"])[0];if(D){var E=D.data[D.start],v=E===0?12:20,_=F(D,v),T=C(P,["mdia","mdhd"])[0];if(T){E=T.data[T.start],v=E===0?12:20;var w=F(T,v),M=C(P,["mdia","hdlr"])[0];if(M){var Z=V(M.data.subarray(M.start+8,M.start+12)),z={soun:j.ElementaryStreamTypes.AUDIO,vide:j.ElementaryStreamTypes.VIDEO}[Z];if(z){var L=C(P,["mdia","minf","stbl","stsd"])[0],W=void 0;L&&(W=V(L.data.subarray(L.start+12,L.start+16))),A[_]={timescale:w,type:z},A[z]={timescale:w,id:_,codec:W}}}}}}var Y=C(I,["moov","mvex","trex"]);return Y.forEach(function(H){var ne=F(H,4),ce=A[ne];ce&&(ce.default={duration:F(H,12),flags:F(H,20)})}),A}function y(I,A){return C(A,["moof","traf"]).reduce(function(R,N){var P=C(N,["tfdt"])[0],D=P.data[P.start],E=C(N,["tfhd"]).reduce(function(v,_){var T=F(_,4),w=I[T];if(w){var M=F(P,4);D===1&&(M*=Math.pow(2,32),M+=F(P,8));var Z=w.timescale||9e4,z=M/Z;if(isFinite(z)&&(v===null||z<v))return z}return v},null);return E!==null&&isFinite(E)&&(R===null||E<R)?E:R},null)||0}function x(I,A){for(var R=0,N=0,P=0,D=C(I,["moof","traf"]),E=0;E<D.length;E++){var v=D[E],_=C(v,["tfhd"])[0],T=F(_,4),w=A[T];if(!w)continue;var M=w.default,Z=F(_,0)|(M==null?void 0:M.flags),z=M==null?void 0:M.duration;Z&8&&(Z&2?z=F(_,12):z=F(_,8));for(var L=w.timescale||9e4,W=C(v,["trun"]),Y=0;Y<W.length;Y++){if(z){var H=F(W[Y],4);R=z*H}else R=g(W[Y]);w.type===j.ElementaryStreamTypes.VIDEO?N+=R/L:w.type===j.ElementaryStreamTypes.AUDIO&&(P+=R/L)}}if(N===0&&P===0){var ne=b(I);if(ne!=null&&ne.references)return ne.references.reduce(function(ce,we){return ce+we.info.duration||0},0)}return N||P}function g(I){var A=F(I,0),R=8;A&1&&(R+=4),A&4&&(R+=4);for(var N=0,P=F(I,4),D=0;D<P;D++){if(A&256){var E=F(I,R);N+=E,R+=4}A&512&&(R+=4),A&1024&&(R+=4),A&2048&&(R+=4)}return N}function h(I,A,R){C(A,["moof","traf"]).forEach(function(N){C(N,["tfhd"]).forEach(function(P){var D=F(P,4),E=I[D];if(!E)return;var v=E.timescale||9e4;C(N,["tfdt"]).forEach(function(_){var T=_.data[_.start],w=F(_,4);if(T===0)O(_,4,w-R*v);else{w*=Math.pow(2,32),w+=F(_,8),w-=R*v,w=Math.max(w,0);var M=Math.floor(w/(G+1)),Z=Math.floor(w%(G+1));O(_,4,M),O(_,8,Z)}})})})}function c(I){var A={valid:null,remainder:null},R=C(I,["moof"]);if(R){if(R.length<2)return A.remainder=I,A}else return A;var N=R[R.length-1];return A.valid=Object(le.sliceUint8)(I,0,N.start-8),A.remainder=Object(le.sliceUint8)(I,N.start-8),A}function d(I,A){var R=new Uint8Array(I.length+A.length);return R.set(I),R.set(A,I.length),R}},"./src/utils/output-filter.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"default",function(){return le});var le=function(){function j(oe,V){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=oe,this.trackName=V}var G=j.prototype;return G.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},G.newCue=function(V,l,F){(this.startTime===null||this.startTime>V)&&(this.startTime=V),this.endTime=l,this.screen=F,this.timelineController.createCaptionsTrack(this.trackName)},G.reset=function(){this.cueRanges=[]},j}()},"./src/utils/texttrack-utils.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"sendAddTrackEvent",function(){return j}),X.d(ae,"addCueToTrack",function(){return G}),X.d(ae,"clearCurrentCues",function(){return oe}),X.d(ae,"removeCuesInRange",function(){return V}),X.d(ae,"getCuesInRange",function(){return F});var le=X("./src/utils/logger.ts");function j(O,C){var b;try{b=new Event("addtrack")}catch(p){b=document.createEvent("Event"),b.initEvent("addtrack",!1,!1)}b.track=O,C.dispatchEvent(b)}function G(O,C){var b=O.mode;if(b==="disabled"&&(O.mode="hidden"),O.cues&&!O.cues.getCueById(C.id))try{if(O.addCue(C),!O.cues.getCueById(C.id))throw new Error("addCue is failed for: "+C)}catch(y){le.logger.debug("[texttrack-utils]: "+y);var p=new self.TextTrackCue(C.startTime,C.endTime,C.text);p.id=C.id,O.addCue(p)}b==="disabled"&&(O.mode=b)}function oe(O){var C=O.mode;if(C==="disabled"&&(O.mode="hidden"),O.cues)for(var b=O.cues.length;b--;)O.removeCue(O.cues[b]);C==="disabled"&&(O.mode=C)}function V(O,C,b){var p=O.mode;if(p==="disabled"&&(O.mode="hidden"),O.cues&&O.cues.length>0)for(var y=F(O.cues,C,b),x=0;x<y.length;x++)O.removeCue(y[x]);p==="disabled"&&(O.mode=p)}function l(O,C){if(C<O[0].startTime)return 0;var b=O.length-1;if(C>O[b].endTime)return-1;for(var p=0,y=b;p<=y;){var x=Math.floor((y+p)/2);if(C<O[x].startTime)y=x-1;else if(C>O[x].startTime&&p<b)p=x+1;else return x}return O[p].startTime-C<C-O[y].startTime?p:y}function F(O,C,b){var p=[],y=l(O,C);if(y>-1)for(var x=y,g=O.length;x<g;x++){var h=O[x];if(h.startTime>=C&&h.endTime<=b)p.push(h);else if(h.startTime>b)return p}return p}},"./src/utils/time-ranges.ts":function(Te,ae,X){"use strict";X.r(ae);var le={toString:function(G){for(var oe="",V=G.length,l=0;l<V;l++)oe+="["+G.start(l).toFixed(3)+","+G.end(l).toFixed(3)+"]";return oe}};ae.default=le},"./src/utils/timescale-conversion.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"toTimescaleFromBase",function(){return j}),X.d(ae,"toTimescaleFromScale",function(){return G}),X.d(ae,"toMsFromMpegTsClock",function(){return oe}),X.d(ae,"toMpegTsClockFromTimescale",function(){return V});var le=9e4;function j(l,F,O,C){O===void 0&&(O=1),C===void 0&&(C=!1);var b=l*F*O;return C?Math.round(b):b}function G(l,F,O,C){return O===void 0&&(O=1),C===void 0&&(C=!1),j(l,F,1/O,C)}function oe(l,F){return F===void 0&&(F=!1),j(l,1e3,1/le,F)}function V(l,F){return F===void 0&&(F=1),j(l,le,1/F)}},"./src/utils/typed-array.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"sliceUint8",function(){return le});function le(j,G,oe){return Uint8Array.prototype.slice?j.slice(G,oe):new Uint8Array(Array.prototype.slice.call(j,G,oe))}},"./src/utils/vttcue.ts":function(Te,ae,X){"use strict";X.r(ae),ae.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var le=["","lr","rl"],j=["start","middle","end","left","right"];function G(O,C){if(typeof C!="string")return!1;if(!Array.isArray(O))return!1;var b=C.toLowerCase();return~O.indexOf(b)?b:!1}function oe(O){return G(le,O)}function V(O){return G(j,O)}function l(O){for(var C=arguments.length,b=new Array(C>1?C-1:0),p=1;p<C;p++)b[p-1]=arguments[p];for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var g in x)O[g]=x[g]}return O}function F(O,C,b){var p=this,y={enumerable:!0};p.hasBeenReset=!1;var x="",g=!1,h=O,c=C,d=b,I=null,A="",R=!0,N="auto",P="start",D=50,E="middle",v=50,_="middle";Object.defineProperty(p,"id",l({},y,{get:function(){return x},set:function(w){x=""+w}})),Object.defineProperty(p,"pauseOnExit",l({},y,{get:function(){return g},set:function(w){g=!!w}})),Object.defineProperty(p,"startTime",l({},y,{get:function(){return h},set:function(w){if(typeof w!="number")throw new TypeError("Start time must be set to a number.");h=w,this.hasBeenReset=!0}})),Object.defineProperty(p,"endTime",l({},y,{get:function(){return c},set:function(w){if(typeof w!="number")throw new TypeError("End time must be set to a number.");c=w,this.hasBeenReset=!0}})),Object.defineProperty(p,"text",l({},y,{get:function(){return d},set:function(w){d=""+w,this.hasBeenReset=!0}})),Object.defineProperty(p,"region",l({},y,{get:function(){return I},set:function(w){I=w,this.hasBeenReset=!0}})),Object.defineProperty(p,"vertical",l({},y,{get:function(){return A},set:function(w){var M=oe(w);if(M===!1)throw new SyntaxError("An invalid or illegal string was specified.");A=M,this.hasBeenReset=!0}})),Object.defineProperty(p,"snapToLines",l({},y,{get:function(){return R},set:function(w){R=!!w,this.hasBeenReset=!0}})),Object.defineProperty(p,"line",l({},y,{get:function(){return N},set:function(w){if(typeof w!="number"&&w!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");N=w,this.hasBeenReset=!0}})),Object.defineProperty(p,"lineAlign",l({},y,{get:function(){return P},set:function(w){var M=V(w);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");P=M,this.hasBeenReset=!0}})),Object.defineProperty(p,"position",l({},y,{get:function(){return D},set:function(w){if(w<0||w>100)throw new Error("Position must be between 0 and 100.");D=w,this.hasBeenReset=!0}})),Object.defineProperty(p,"positionAlign",l({},y,{get:function(){return E},set:function(w){var M=V(w);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");E=M,this.hasBeenReset=!0}})),Object.defineProperty(p,"size",l({},y,{get:function(){return v},set:function(w){if(w<0||w>100)throw new Error("Size must be between 0 and 100.");v=w,this.hasBeenReset=!0}})),Object.defineProperty(p,"align",l({},y,{get:function(){return _},set:function(w){var M=V(w);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");_=M,this.hasBeenReset=!0}})),p.displayState=void 0}return F.prototype.getCueAsHTML=function(){var O=self.WebVTT;return O.convertCueToDOMTree(self,this.text)},F}()},"./src/utils/vttparser.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"parseTimeStamp",function(){return G}),X.d(ae,"fixLineBreaks",function(){return C}),X.d(ae,"VTTParser",function(){return b});var le=X("./src/utils/vttcue.ts"),j=function(){function p(){}var y=p.prototype;return y.decode=function(g,h){if(!g)return"";if(typeof g!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(g))},p}();function G(p){function y(g,h,c,d){return(g|0)*3600+(h|0)*60+(c|0)+parseFloat(d||0)}var x=p.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return x?parseFloat(x[2])>59?y(x[2],x[3],0,x[4]):y(x[1],x[2],x[3],x[4]):null}var oe=function(){function p(){this.values=Object.create(null)}var y=p.prototype;return y.set=function(g,h){!this.get(g)&&h!==""&&(this.values[g]=h)},y.get=function(g,h,c){return c?this.has(g)?this.values[g]:h[c]:this.has(g)?this.values[g]:h},y.has=function(g){return g in this.values},y.alt=function(g,h,c){for(var d=0;d<c.length;++d)if(h===c[d]){this.set(g,h);break}},y.integer=function(g,h){/^-?\d+$/.test(h)&&this.set(g,parseInt(h,10))},y.percent=function(g,h){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(h)){var c=parseFloat(h);if(c>=0&&c<=100)return this.set(g,c),!0}return!1},p}();function V(p,y,x,g){var h=g?p.split(g):[p];for(var c in h){if(typeof h[c]!="string")continue;var d=h[c].split(x);if(d.length!==2)continue;var I=d[0],A=d[1];y(I,A)}}var l=new le.default(0,0,""),F=l.align==="middle"?"middle":"center";function O(p,y,x){var g=p;function h(){var I=G(p);if(I===null)throw new Error("Malformed timestamp: "+g);return p=p.replace(/^[^\sa-zA-Z-]+/,""),I}function c(I,A){var R=new oe;V(I,function(D,E){var v;switch(D){case"region":for(var _=x.length-1;_>=0;_--)if(x[_].id===E){R.set(D,x[_].region);break}break;case"vertical":R.alt(D,E,["rl","lr"]);break;case"line":v=E.split(","),R.integer(D,v[0]),R.percent(D,v[0])&&R.set("snapToLines",!1),R.alt(D,v[0],["auto"]),v.length===2&&R.alt("lineAlign",v[1],["start",F,"end"]);break;case"position":v=E.split(","),R.percent(D,v[0]),v.length===2&&R.alt("positionAlign",v[1],["start",F,"end","line-left","line-right","auto"]);break;case"size":R.percent(D,E);break;case"align":R.alt(D,E,["start",F,"end","left","right"]);break}},/:/,/\s/),A.region=R.get("region",null),A.vertical=R.get("vertical","");var N=R.get("line","auto");N==="auto"&&l.line===-1&&(N=-1),A.line=N,A.lineAlign=R.get("lineAlign","start"),A.snapToLines=R.get("snapToLines",!0),A.size=R.get("size",100),A.align=R.get("align",F);var P=R.get("position","auto");P==="auto"&&l.position===50&&(P=A.align==="start"||A.align==="left"?0:A.align==="end"||A.align==="right"?100:50),A.position=P}function d(){p=p.replace(/^\s+/,"")}if(d(),y.startTime=h(),d(),p.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+g);p=p.substr(3),d(),y.endTime=h(),d(),c(p,y)}function C(p){return p.replace(/<br(?: \/)?>/gi,`
`)}var b=function(){function p(){this.state="INITIAL",this.buffer="",this.decoder=new j,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var y=p.prototype;return y.parse=function(g){var h=this;g&&(h.buffer+=h.decoder.decode(g,{stream:!0}));function c(){var P=h.buffer,D=0;for(P=C(P);D<P.length&&P[D]!=="\r"&&P[D]!==`
`;)++D;var E=P.substr(0,D);return P[D]==="\r"&&++D,P[D]===`
`&&++D,h.buffer=P.substr(D),E}function d(P){V(P,function(D,E){},/:/)}try{var I="";if(h.state==="INITIAL"){if(!/\r\n|\n/.test(h.buffer))return this;I=c();var A=I.match(/^()?WEBVTT([ \t].*)?$/);if(!A||!A[0])throw new Error("Malformed WebVTT signature.");h.state="HEADER"}for(var R=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;R?R=!1:I=c();switch(h.state){case"HEADER":/:/.test(I)?d(I):I||(h.state="ID");continue;case"NOTE":I||(h.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(I)){h.state="NOTE";break}if(!I)continue;if(h.cue=new le.default(0,0,""),h.state="CUE",I.indexOf("-->")===-1){h.cue.id=I;continue}case"CUE":if(!h.cue){h.state="BADCUE";continue}try{O(I,h.cue,h.regionList)}catch(P){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var N=I.indexOf("-->")!==-1;if(!I||N&&(R=!0)){h.oncue&&h.cue&&h.oncue(h.cue),h.cue=null,h.state="ID";continue}if(h.cue===null)continue;h.cue.text&&(h.cue.text+=`
`),h.cue.text+=I}continue;case"BADCUE":I||(h.state="ID")}}}catch(P){h.state==="CUETEXT"&&h.cue&&h.oncue&&h.oncue(h.cue),h.cue=null,h.state=h.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},y.flush=function(){var g=this;try{if((g.cue||g.state==="HEADER")&&(g.buffer+=`
`,g.parse()),g.state==="INITIAL"||g.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(h){g.onparsingerror&&g.onparsingerror(h)}return g.onflush&&g.onflush(),this},p}()},"./src/utils/webvtt-parser.ts":function(Te,ae,X){"use strict";X.r(ae),X.d(ae,"generateCueId",function(){return b}),X.d(ae,"parseWebVTT",function(){return y});var le=X("./src/polyfills/number.ts"),j=X("./src/utils/vttparser.ts"),G=X("./src/demux/id3.ts"),oe=X("./src/utils/timescale-conversion.ts"),V=X("./src/remux/mp4-remuxer.ts"),l=/\r\n|\n\r|\n|\r/g,F=function(g,h,c){return c===void 0&&(c=0),g.substr(c,h.length)===h},O=function(g){var h=parseInt(g.substr(-3)),c=parseInt(g.substr(-6,2)),d=parseInt(g.substr(-9,2)),I=g.length>9?parseInt(g.substr(0,g.indexOf(":"))):0;if(!Object(le.isFiniteNumber)(h)||!Object(le.isFiniteNumber)(c)||!Object(le.isFiniteNumber)(d)||!Object(le.isFiniteNumber)(I))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+g);return h+=1e3*c,h+=60*1e3*d,h+=60*60*1e3*I,h},C=function(g){for(var h=5381,c=g.length;c;)h=h*33^g.charCodeAt(--c);return(h>>>0).toString()};function b(x,g,h){return C(x.toString())+C(g.toString())+C(h)}var p=function(g,h,c){var d=g[h],I=g[d.prevCC];if(!I||!I.new&&d.new){g.ccOffset=g.presentationOffset=d.start,d.new=!1;return}for(;(A=I)!==null&&A!==void 0&&A.new;){var A;g.ccOffset+=d.start-I.start,d.new=!1,d=I,I=g[d.prevCC]}g.presentationOffset=c};function y(x,g,h,c,d,I,A,R){var N=new j.VTTParser,P=Object(G.utf8ArrayToStr)(new Uint8Array(x)).trim().replace(l,`
`).split(`
`),D=[],E=Object(oe.toMpegTsClockFromTimescale)(g,h),v="00:00.000",_=0,T=0,w,M=!0,Z=!1;N.oncue=function(z){var L=c[d],W=c.ccOffset,Y=(_-E)/9e4;if(L!=null&&L.new&&(T!==void 0?W=c.ccOffset=L.start:p(c,d,Y)),Y&&(W=Y-c.presentationOffset),Z){var H=z.endTime-z.startTime,ne=Object(V.normalizePts)((z.startTime+W-T)*9e4,I*9e4)/9e4;z.startTime=ne,z.endTime=ne+H}var ce=z.text.trim();z.text=decodeURIComponent(encodeURIComponent(ce)),z.id||(z.id=b(z.startTime,z.endTime,ce)),z.endTime>0&&D.push(z)},N.onparsingerror=function(z){w=z},N.onflush=function(){if(w){R(w);return}A(D)},P.forEach(function(z){if(M)if(F(z,"X-TIMESTAMP-MAP=")){M=!1,Z=!0,z.substr(16).split(",").forEach(function(L){F(L,"LOCAL:")?v=L.substr(6):F(L,"MPEGTS:")&&(_=parseInt(L.substr(7)))});try{T=O(v)/1e3}catch(L){Z=!1,w=L}return}else z===""&&(M=!1);N.parse(z+`
`)}),N.flush()}},"./src/utils/xhr-loader.ts":function(Te,ae,X){"use strict";X.r(ae);var le=X("./src/utils/logger.ts"),j=X("./src/loader/load-stats.ts"),G=/^age:\s*[\d.]+\s*$/m,oe=function(){function V(F){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=F?F.xhrSetup:null,this.stats=new j.LoadStats,this.retryDelay=0}var l=V.prototype;return l.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},l.abortInternal=function(){var O=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),O&&(O.onreadystatechange=null,O.onprogress=null,O.readyState!==4&&(this.stats.aborted=!0,O.abort()))},l.abort=function(){var O;this.abortInternal(),(O=this.callbacks)!==null&&O!==void 0&&O.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},l.load=function(O,C,b){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=O,this.config=C,this.callbacks=b,this.retryDelay=C.retryDelay,this.loadInternal()},l.loadInternal=function(){var O=this.config,C=this.context;if(!O)return;var b=this.loader=new self.XMLHttpRequest,p=this.stats;p.loading.first=0,p.loaded=0;var y=this.xhrSetup;try{if(y)try{y(b,C.url)}catch(h){b.open("GET",C.url,!0),y(b,C.url)}b.readyState||b.open("GET",C.url,!0);var x=this.context.headers;if(x)for(var g in x)b.setRequestHeader(g,x[g])}catch(h){this.callbacks.onError({code:b.status,text:h.message},C,b);return}C.rangeEnd&&b.setRequestHeader("Range","bytes="+C.rangeStart+"-"+(C.rangeEnd-1)),b.onreadystatechange=this.readystatechange.bind(this),b.onprogress=this.loadprogress.bind(this),b.responseType=C.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),O.timeout),b.send()},l.readystatechange=function(){var O=this.context,C=this.loader,b=this.stats;if(!O||!C)return;var p=C.readyState,y=this.config;if(b.aborted)return;if(p>=2)if(self.clearTimeout(this.requestTimeout),b.loading.first===0&&(b.loading.first=Math.max(self.performance.now(),b.loading.start)),p===4){C.onreadystatechange=null,C.onprogress=null;var x=C.status;if(x>=200&&x<300){b.loading.end=Math.max(self.performance.now(),b.loading.first);var g,h;if(O.responseType==="arraybuffer"?(g=C.response,h=g.byteLength):(g=C.responseText,h=g.length),b.loaded=b.total=h,!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(b,O,g,C),!this.callbacks)return;var d={url:C.responseURL,data:g};this.callbacks.onSuccess(d,b,O,C)}else b.retry>=y.maxRetry||x>=400&&x<499?(le.logger.error(x+" while loading "+O.url),this.callbacks.onError({code:x,text:C.statusText},O,C)):(le.logger.warn(x+" while loading "+O.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,y.maxRetryDelay),b.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),y.timeout)},l.loadtimeout=function(){le.logger.warn("timeout while loading "+this.context.url);var O=this.callbacks;O&&(this.abortInternal(),O.onTimeout(this.stats,this.context,this.loader))},l.loadprogress=function(O){var C=this.stats;C.loaded=O.loaded,O.lengthComputable&&(C.total=O.total)},l.getCacheAge=function(){var O=null;if(this.loader&&G.test(this.loader.getAllResponseHeaders())){var C=this.loader.getResponseHeader("age");O=C?parseFloat(C):null}return O},V}();ae.default=oe}}).default})},vHTk:function(Dt,Ne,ie){Dt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},xiVL:function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC"},yyNy:function(Dt,Ne,ie){"use strict";(function(Te){ie.d(Ne,"a",function(){return Fye}),ie.d(Ne,"b",function(){return jye});var ae=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function X(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function le(e){var t={exports:{}};return e(t,t.exports),t.exports}var j,G,oe=function(e){return e&&e.Math==Math&&e},V=oe(typeof globalThis=="object"&&globalThis)||oe(typeof window=="object"&&window)||oe(typeof self=="object"&&self)||oe(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),l=Function.prototype,F=l.apply,O=l.bind,C=l.call,b=typeof Reflect=="object"&&Reflect.apply||(O?C.bind(F):function(){return C.apply(F,arguments)}),p=Function.prototype,y=p.bind,x=p.call,g=y&&y.bind(x),h=y?function(e){return e&&g(x,e)}:function(e){return e&&function(){return x.apply(e,arguments)}},c=function(e){return typeof e=="function"},d=function(e){try{return!!e()}catch(t){return!0}},I=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),A=Function.prototype.call,R=A.bind?A.bind(A):function(){return A.apply(A,arguments)},N={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,D=P&&!N.call({1:2},1)?function(e){var t=P(this,e);return!!t&&t.enumerable}:N,E={f:D},v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=h({}.toString),T=h("".slice),w=function(e){return T(_(e),8,-1)},M=V.Object,Z=h("".split),z=d(function(){return!M("z").propertyIsEnumerable(0)})?function(e){return w(e)=="String"?Z(e,""):M(e)}:M,L=V.TypeError,W=function(e){if(e==null)throw L("Can't call method on "+e);return e},Y=function(e){return z(W(e))},H=function(e){return typeof e=="object"?e!==null:c(e)},ne={},ce=function(e){return c(e)?e:void 0},we=function(e,t){return arguments.length<2?ce(ne[e])||ce(V[e]):ne[e]&&ne[e][t]||V[e]&&V[e][t]},Ce=h({}.isPrototypeOf),Ke=we("navigator","userAgent")||"",Ie=V.process,je=V.Deno,Ve=Ie&&Ie.versions||je&&je.version,$e=Ve&&Ve.v8;$e&&(G=(j=$e.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!G&&Ke&&(!(j=Ke.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=Ke.match(/Chrome\/(\d+)/))&&(G=+j[1]);var Pe,se=G,S=!!Object.getOwnPropertySymbols&&!d(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&se&&se<41}),B=S&&!Symbol.sham&&typeof Symbol.iterator=="symbol",J=V.Object,ue=B?function(e){return typeof e=="symbol"}:function(e){var t=we("Symbol");return c(t)&&Ce(t.prototype,J(e))},q=V.String,xe=function(e){try{return q(e)}catch(t){return"Object"}},We=V.TypeError,it=function(e){if(c(e))return e;throw We(xe(e)+" is not a function")},be=function(e,t){var n=e[t];return n==null?void 0:it(n)},Le=V.TypeError,Fe=Object.defineProperty,ze=V["__core-js_shared__"]||function(e,t){try{Fe(V,e,{value:t,configurable:!0,writable:!0})}catch(n){V[e]=t}return t}("__core-js_shared__",{}),dt=le(function(e){(e.exports=function(t,n){return ze[t]||(ze[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),It=V.Object,Jt=function(e){return It(W(e))},Bt=h({}.hasOwnProperty),Nt=Object.hasOwn||function(e,t){return Bt(Jt(e),t)},cn=0,sn=Math.random(),zt=h(1 .toString),dn=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zt(++cn+sn,36)},Tn=dt("wks"),Se=V.Symbol,fe=Se&&Se.for,pe=B?Se:Se&&Se.withoutSetter||dn,ve=function(e){if(!Nt(Tn,e)||!S&&typeof Tn[e]!="string"){var t="Symbol."+e;S&&Nt(Se,e)?Tn[e]=Se[e]:Tn[e]=B&&fe?fe(t):pe(t)}return Tn[e]},Oe=V.TypeError,ge=ve("toPrimitive"),ye=function(e,t){if(!H(e)||ue(e))return e;var n,r=be(e,ge);if(r){if(t===void 0&&(t="default"),n=R(r,e,t),!H(n)||ue(n))return n;throw Oe("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,a){var o,s;if(a==="string"&&c(o=i.toString)&&!H(s=R(o,i)))return s;if(c(o=i.valueOf)&&!H(s=R(o,i)))return s;if(a!=="string"&&c(o=i.toString)&&!H(s=R(o,i)))return s;throw Le("Can't convert object to primitive value")}(e,t)},Re=function(e){var t=ye(e,"string");return ue(t)?t:t+""},Me=V.document,nt=H(Me)&&H(Me.createElement),qe=function(e){return nt?Me.createElement(e):{}},xt=!I&&!d(function(){return Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a!=7}),yn=Object.getOwnPropertyDescriptor,Pn=I?yn:function(e,t){if(e=Y(e),t=Re(t),xt)try{return yn(e,t)}catch(n){}if(Nt(e,t))return v(!R(E.f,e,t),e[t])},An={f:Pn},$t=/#|\.prototype\./,ft=function(e,t){var n=ut[yt(e)];return n==Ue||n!=Ae&&(c(t)?d(t):!!t)},yt=ft.normalize=function(e){return String(e).replace($t,".").toLowerCase()},ut=ft.data={},Ae=ft.NATIVE="N",Ue=ft.POLYFILL="P",vt=ft,ht=h(h.bind),Qt=function(e,t){return it(e),t===void 0?e:ht?ht(e,t):function(){return e.apply(t,arguments)}},nn=V.String,Et=V.TypeError,Rt=function(e){if(H(e))return e;throw Et(nn(e)+" is not an object")},Ct=V.TypeError,et=Object.defineProperty,Ut=I?et:function(e,t,n){if(Rt(e),t=Re(t),Rt(n),xt)try{return et(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Ct("Accessors not supported");return"value"in n&&(e[t]=n.value),e},en={f:Ut},ln=I?function(e,t,n){return en.f(e,t,v(1,n))}:function(e,t,n){return e[t]=n,e},Gn=An.f,Mn=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return b(e,this,arguments)};return t.prototype=e.prototype,t},hn=function(e,t){var n,r,i,a,o,s,u,f,m=e.target,k=e.global,K=e.stat,U=e.proto,re=k?V:K?V[m]:(V[m]||{}).prototype,$=k?ne:ne[m]||ln(ne,m,{})[m],ee=$.prototype;for(i in t)n=!vt(k?i:m+(K?".":"#")+i,e.forced)&&re&&Nt(re,i),o=$[i],n&&(s=e.noTargetGet?(f=Gn(re,i))&&f.value:re[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(u=e.bind&&n?Qt(a,V):e.wrap&&n?Mn(a):U&&c(a)?h(a):a,(e.sham||a&&a.sham||o&&o.sham)&&ln(u,"sham",!0),ln($,i,u),U&&(Nt(ne,r=m+"Prototype")||ln(ne,r,{}),ln(ne[r],i,a),e.real&&ee&&!ee[i]&&ln(ee,i,a)))},On=dt("keys"),gn=function(e){return On[e]||(On[e]=dn(e))},Wn=!d(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jn=gn("IE_PROTO"),rr=V.Object,ur=rr.prototype,Sr=Wn?rr.getPrototypeOf:function(e){var t=Jt(e);if(Nt(t,jn))return t[jn];var n=t.constructor;return c(n)&&t instanceof n?n.prototype:t instanceof rr?ur:null},ui=V.String,Ci=V.TypeError,_n=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=h(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Rt(r),function(a){if(typeof a=="object"||c(a))return a;throw Ci("Can't set "+ui(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Ir=Math.ceil,Mr=Math.floor,Gi=function(e){var t=+e;return t!=t||t===0?0:(t>0?Mr:Ir)(t)},ai=Math.max,qr=Math.min,Pi=function(e,t){var n=Gi(e);return n<0?ai(n+t,0):qr(n,t)},Qi=Math.min,rn=function(e){return(t=e.length)>0?Qi(Gi(t),9007199254740991):0;var t},Cr=function(e){return function(t,n,r){var i,a=Y(t),o=rn(a),s=Pi(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},gr={includes:Cr(!0),indexOf:Cr(!1)},Jr={},Ki=gr.indexOf,Ar=h([].push),no=function(e,t){var n,r=Y(e),i=0,a=[];for(n in r)!Nt(Jr,n)&&Nt(r,n)&&Ar(a,n);for(;t.length>i;)Nt(r,n=t[i++])&&(~Ki(a,n)||Ar(a,n));return a},ul=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rd=ul.concat("length","prototype"),id=Object.getOwnPropertyNames||function(e){return no(e,rd)},Wa={f:id},Lh={f:Object.getOwnPropertySymbols},ex=h([].concat),tx=we("Reflect","ownKeys")||function(e){var t=Wa.f(Rt(e)),n=Lh.f;return n?ex(t,n(e)):t},zp=Object.keys||function(e){return no(e,ul)},nx=I?Object.defineProperties:function(e,t){Rt(e);for(var n,r=Y(t),i=zp(t),a=i.length,o=0;a>o;)en.f(e,n=i[o++],r[n]);return e},rx=we("document","documentElement"),F0=gn("IE_PROTO"),Ph=function(){},Gp=function(e){return"<script>"+e+"</script>"},j0=function(e){e.write(Gp("")),e.close();var t=e.parentWindow.Object;return e=null,t},kh=function(){try{Pe=new ActiveXObject("htmlfile")}catch(r){}var e,t;kh=typeof document!="undefined"?document.domain&&Pe?j0(Pe):((t=qe("iframe")).style.display="none",rx.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Gp("document.F=Object")),e.close(),e.F):j0(Pe);for(var n=ul.length;n--;)delete kh.prototype[ul[n]];return kh()};Jr[F0]=!0;var Bs=Object.create||function(e,t){var n;return e!==null?(Ph.prototype=Rt(e),n=new Ph,Ph.prototype=null,n[F0]=e):n=kh(),t===void 0?n:nx(n,t)},U0=function(e,t,n){var r=Re(t);r in e?en.f(e,r,v(0,n)):e[r]=n},de=V.Array,Be=Math.max,Je=function(e,t,n){for(var r=rn(e),i=Pi(t,r),a=Pi(n===void 0?r:n,r),o=de(Be(a-i,0)),s=0;i<a;i++,s++)U0(o,s,e[i]);return o.length=s,o},Xe=h("".replace),pt=h("".split),lt=h([].join),mt=String(Error("zxcasd").stack),Ot=/\n\s*at [^:]*:[^\n]*/,Gt=Ot.test(mt),Kt=/@[^\n]*\n/.test(mt)&&!/zxcasd/.test(mt),an=function(e,t){if(typeof e!="string")return e;if(Gt)for(;t--;)e=Xe(e,Ot,"");else if(Kt)return lt(Je(pt(e,`
`),t),`
`);return e},Zt=function(e,t){H(t)&&"cause"in t&&ln(e,"cause",t.cause)},gt={},Xt=ve("iterator"),Pt=Array.prototype,tn={};tn[ve("toStringTag")]="z";var Vt=String(tn)==="[object z]",xn=ve("toStringTag"),Dn=V.Object,Jn=w(function(){return arguments}())=="Arguments",pr=Vt?w:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=Dn(e),xn))=="string"?n:Jn?w(t):(r=w(t))=="Object"&&c(t.callee)?"Arguments":r},zn=ve("iterator"),Xn=function(e){if(e!=null)return be(e,zn)||be(e,"@@iterator")||gt[pr(e)]},ar=V.TypeError,ir=function(e,t,n){var r,i;Rt(e);try{if(!(r=be(e,"return"))){if(t==="throw")throw n;return n}r=R(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Rt(r),n},Zi=V.TypeError,Ai=function(e,t){this.stopped=e,this.result=t},za=Ai.prototype,ki=function(e,t,n){var r,i,a,o,s,u,f,m=n&&n.that,k=!(!n||!n.AS_ENTRIES),K=!(!n||!n.IS_ITERATOR),U=!(!n||!n.INTERRUPTED),re=Qt(t,m),$=function(te){return r&&ir(r,"normal",te),new Ai(!0,te)},ee=function(te){return k?(Rt(te),U?re(te[0],te[1],$):re(te[0],te[1])):U?re(te,$):re(te)};if(K)r=e;else{if(!(i=Xn(e)))throw Zi(xe(e)+" is not iterable");if(function(te){return te!==void 0&&(gt.Array===te||Pt[Xt]===te)}(i)){for(a=0,o=rn(e);o>a;a++)if((s=ee(e[a]))&&Ce(za,s))return s;return new Ai(!1)}r=function(te,Q){var he=arguments.length<2?Xn(te):Q;if(it(he))return Rt(R(he,te));throw ar(xe(te)+" is not iterable")}(e,i)}for(u=r.next;!(f=R(u,r)).done;){try{s=ee(f.value)}catch(te){ir(r,"throw",te)}if(typeof s=="object"&&s&&Ce(za,s))return s}return new Ai(!1)},Sa=V.String,Mi=function(e){if(pr(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Sa(e)},as=function(e,t){return e===void 0?arguments.length<2?"":t:Mi(e)},os=!d(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",v(1,7)),e.stack!==7)}),ss=ve("toStringTag"),yo=V.Error,ls=[].push,Ga=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Ce(us,this);_n?n=_n(new yo(void 0),i?Sr(this):us):(n=i?this:Bs(us),ln(n,ss,"Error")),ln(n,"message",as(t,"")),os&&ln(n,"stack",an(n.stack,1)),Zt(n,r);var a=[];return ki(e,ls,{that:a}),ln(n,"errors",a),n};_n?_n(Ga,yo):function(e,t){for(var n=tx(t),r=en.f,i=An.f,a=0;a<n.length;a++){var o=n[a];Nt(e,o)||r(e,o,i(t,o))}}(Ga,yo);var us=Ga.prototype=Bs(yo.prototype,{constructor:v(1,Ga),message:v(1,""),name:v(1,"AggregateError")});hn({global:!0},{AggregateError:Ga});var Bo=h(Function.toString);c(ze.inspectSource)||(ze.inspectSource=function(e){return Bo(e)});var Fo,Lr,Kr,vi=ze.inspectSource,Ka=V.WeakMap,Pa=c(Ka)&&/native code/.test(vi(Ka)),$i=V.TypeError,ro=V.WeakMap;if(Pa||ze.state){var qi=ze.state||(ze.state=new ro),Va=h(qi.get),Fs=h(qi.has),So=h(qi.set);Fo=function(e,t){if(Fs(qi,e))throw new $i("Object already initialized");return t.facade=e,So(qi,e,t),t},Lr=function(e){return Va(qi,e)||{}},Kr=function(e){return Fs(qi,e)}}else{var bo=gn("state");Jr[bo]=!0,Fo=function(e,t){if(Nt(e,bo))throw new $i("Object already initialized");return t.facade=e,ln(e,bo,t),t},Lr=function(e){return Nt(e,bo)?e[bo]:{}},Kr=function(e){return Nt(e,bo)}}var yi,Co,Yl,da={set:Fo,get:Lr,has:Kr,enforce:function(e){return Kr(e)?Lr(e):Fo(e,{})},getterFor:function(e){return function(t){var n;if(!H(t)||(n=Lr(t)).type!==e)throw $i("Incompatible receiver, "+e+" required");return n}}},io=Function.prototype,Xl=I&&Object.getOwnPropertyDescriptor,Ya=Nt(io,"name"),jo={EXISTS:Ya,PROPER:Ya&&function(){}.name==="something",CONFIGURABLE:Ya&&(!I||I&&Xl(io,"name").configurable)},Ni=function(e,t,n,r){r&&r.enumerable?e[t]=n:ln(e,t,n)},ea=ve("iterator"),Ca=!1;[].keys&&("next"in(Yl=[].keys())?(Co=Sr(Sr(Yl)))!==Object.prototype&&(yi=Co):Ca=!0);var cs=yi==null||d(function(){var e={};return yi[ea].call(e)!==e});yi=cs?{}:Bs(yi),c(yi[ea])||Ni(yi,ea,function(){return this});var ta={IteratorPrototype:yi,BUGGY_SAFARI_ITERATORS:Ca},Uo=Vt?{}.toString:function(){return"[object "+pr(this)+"]"},na=en.f,cl=ve("toStringTag"),Ao=function(e,t,n,r){if(e){var i=n?e:e.prototype;Nt(i,cl)||na(i,cl,{configurable:!0,value:t}),r&&!Vt&&ln(i,"toString",Uo)}},or=ta.IteratorPrototype,Au=function(){return this},Eo=jo.PROPER,Vr=ta.BUGGY_SAFARI_ITERATORS,ha=ve("iterator"),ds=function(){return this},bi=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=Bs(or,{next:v(+!me,he)}),Ao(te,_e,!1,!0),gt[_e]=Au}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!Vr&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[ha]||U["@@iterator"]||i&&U[i],$=!Vr&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=Sr(ee.call(new e)))!==Object.prototype&&s.next&&(Ao(s,k,!0,!0),gt[k]=ds),Eo&&i=="values"&&re&&re.name!=="values"&&(K=!0,$=function(){return R(re,this)}),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(Vr||K||!(f in U))&&Ni(U,f,u[f]);else hn({target:t,proto:!0,forced:Vr||K},u);return o&&U[ha]!==$&&Ni(U,ha,$,{name:i}),gt[t]=$,u},fa=da.set,Xa=da.getterFor("Array Iterator");bi(Array,"Array",function(e,t){fa(this,{type:"Array Iterator",target:Y(e),index:0,kind:t})},function(){var e=Xa(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),gt.Arguments=gt.Array;var dl=h("".charAt),hl=h("".charCodeAt),hs=h("".slice),fl=function(e){return function(t,n){var r,i,a=Mi(W(t)),o=Gi(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=hl(a,o))<55296||r>56319||o+1===s||(i=hl(a,o+1))<56320||i>57343?e?dl(a,o):r:e?hs(a,o,o+2):i-56320+(r-55296<<10)+65536}},pl={codeAt:fl(!1),charAt:fl(!0)}.charAt,Bi=da.set,_o=da.getterFor("String Iterator");bi(String,"String",function(e){Bi(this,{type:"String Iterator",string:Mi(e),index:0})},function(){var e,t=_o(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pl(n,r),t.index+=e.length,{value:e,done:!1})});var Ei=ne.AggregateError,Bn=ve("toStringTag");for(var Pr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ao=V[Pr],Ou=ao&&ao.prototype;Ou&&pr(Ou)!==Bn&&ln(Ou,Bn,Pr),gt[Pr]=gt.Array}var fs,Jl,Mh=Ei,js=function(e){return e&&e.Math==Math&&e},Zn=js(typeof globalThis=="object"&&globalThis)||js(typeof window=="object"&&window)||js(typeof self=="object"&&self)||js(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),Fi=function(e){try{return!!e()}catch(t){return!0}},fi=!Fi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_i=Function.prototype.call,Qn=_i.bind?_i.bind(_i):function(){return _i.apply(_i,arguments)},Us={}.propertyIsEnumerable,H0=Object.getOwnPropertyDescriptor,W0=H0&&!Us.call({1:2},1)?function(e){var t=H0(this,e);return!!t&&t.enumerable}:Us,ix={f:W0},ml=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Kp=Function.prototype,gl=Kp.bind,ad=Kp.call,od=gl&&gl.bind(ad),Qr=gl?function(e){return e&&od(ad,e)}:function(e){return e&&function(){return ad.apply(e,arguments)}},z0=Qr({}.toString),ax=Qr("".slice),vl=function(e){return ax(z0(e),8,-1)},Du=Zn.Object,ox=Qr("".split),G0=Fi(function(){return!Du("z").propertyIsEnumerable(0)})?function(e){return vl(e)=="String"?ox(e,""):Du(e)}:Du,K0=Zn.TypeError,Ql=function(e){if(e==null)throw K0("Can't call method on "+e);return e},Ru=function(e){return G0(Ql(e))},ji=function(e){return typeof e=="function"},Ho=function(e){return typeof e=="object"?e!==null:ji(e)},Vp=function(e){return ji(e)?e:void 0},yl=function(e,t){return arguments.length<2?Vp(Zn[e]):Zn[e]&&Zn[e][t]},sd=Qr({}.isPrototypeOf),Nh=yl("navigator","userAgent")||"",V0=Zn.process,Bh=Zn.Deno,ld=V0&&V0.versions||Bh&&Bh.version,Yp=ld&&ld.v8;Yp&&(Jl=(fs=Yp.split("."))[0]>0&&fs[0]<4?1:+(fs[0]+fs[1])),!Jl&&Nh&&(!(fs=Nh.match(/Edge\/(\d+)/))||fs[1]>=74)&&(fs=Nh.match(/Chrome\/(\d+)/))&&(Jl=+fs[1]);var Xp=Jl,Jp=!!Object.getOwnPropertySymbols&&!Fi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xp&&Xp<41}),Fh=Jp&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sx=Zn.Object,jh=Fh?function(e){return typeof e=="symbol"}:function(e){var t=yl("Symbol");return ji(t)&&sd(t.prototype,sx(e))},lx=Zn.String,Uh=function(e){try{return lx(e)}catch(t){return"Object"}},Iu=Zn.TypeError,Hh=function(e){if(ji(e))return e;throw Iu(Uh(e)+" is not a function")},ud=function(e,t){var n=e[t];return n==null?void 0:Hh(n)},Qp=Zn.TypeError,Y0=Object.defineProperty,Zp=function(e,t){try{Y0(Zn,e,{value:t,configurable:!0,writable:!0})}catch(n){Zn[e]=t}return t},Hs=Zn["__core-js_shared__"]||Zp("__core-js_shared__",{}),$p=le(function(e){(e.exports=function(t,n){return Hs[t]||(Hs[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),qp=Zn.Object,Wh=function(e){return qp(Ql(e))},ux=Qr({}.hasOwnProperty),Ja=Object.hasOwn||function(e,t){return ux(Wh(e),t)},cx=0,dx=Math.random(),X0=Qr(1 .toString),J0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+X0(++cx+dx,36)},Lu=$p("wks"),Zl=Zn.Symbol,em=Zl&&Zl.for,Q0=Fh?Zl:Zl&&Zl.withoutSetter||J0,ka=function(e){if(!Ja(Lu,e)||!Jp&&typeof Lu[e]!="string"){var t="Symbol."+e;Jp&&Ja(Zl,e)?Lu[e]=Zl[e]:Lu[e]=Fh&&em?em(t):Q0(t)}return Lu[e]},hx=Zn.TypeError,Z0=ka("toPrimitive"),fx=function(e,t){if(!Ho(e)||jh(e))return e;var n,r=ud(e,Z0);if(r){if(t===void 0&&(t="default"),n=Qn(r,e,t),!Ho(n)||jh(n))return n;throw hx("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,a){var o,s;if(a==="string"&&ji(o=i.toString)&&!Ho(s=Qn(o,i)))return s;if(ji(o=i.valueOf)&&!Ho(s=Qn(o,i)))return s;if(a!=="string"&&ji(o=i.toString)&&!Ho(s=Qn(o,i)))return s;throw Qp("Can't convert object to primitive value")}(e,t)},zh=function(e){var t=fx(e,"string");return jh(t)?t:t+""},Gh=Zn.document,$0=Ho(Gh)&&Ho(Gh.createElement),tm=function(e){return $0?Gh.createElement(e):{}},q0=!fi&&!Fi(function(){return Object.defineProperty(tm("div"),"a",{get:function(){return 7}}).a!=7}),ey=Object.getOwnPropertyDescriptor,px=fi?ey:function(e,t){if(e=Ru(e),t=zh(t),q0)try{return ey(e,t)}catch(n){}if(Ja(e,t))return ml(!Qn(ix.f,e,t),e[t])},nm={f:px},mx=Zn.String,rm=Zn.TypeError,pa=function(e){if(Ho(e))return e;throw rm(mx(e)+" is not an object")},ty=Zn.TypeError,ny=Object.defineProperty,gx=fi?ny:function(e,t,n){if(pa(e),t=zh(t),pa(n),q0)try{return ny(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ty("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Pu={f:gx},Ma=fi?function(e,t,n){return Pu.f(e,t,ml(1,n))}:function(e,t,n){return e[t]=n,e},ry=Qr(Function.toString);ji(Hs.inspectSource)||(Hs.inspectSource=function(e){return ry(e)});var cd,$l,ku,im=Hs.inspectSource,iy=Zn.WeakMap,vr=ji(iy)&&/native code/.test(im(iy)),Sn=$p("keys"),Yn=function(e){return Sn[e]||(Sn[e]=J0(e))},yr={},xi=Zn.TypeError,ql=Zn.WeakMap;if(vr||Hs.state){var Qa=Hs.state||(Hs.state=new ql),Wo=Qr(Qa.get),zo=Qr(Qa.has),Ws=Qr(Qa.set);cd=function(e,t){if(zo(Qa,e))throw new xi("Object already initialized");return t.facade=e,Ws(Qa,e,t),t},$l=function(e){return Wo(Qa,e)||{}},ku=function(e){return zo(Qa,e)}}else{var ps=Yn("state");yr[ps]=!0,cd=function(e,t){if(Ja(e,ps))throw new xi("Object already initialized");return t.facade=e,Ma(e,ps,t),t},$l=function(e){return Ja(e,ps)?e[ps]:{}},ku=function(e){return Ja(e,ps)}}var ra={set:cd,get:$l,has:ku,enforce:function(e){return ku(e)?$l(e):cd(e,{})},getterFor:function(e){return function(t){var n;if(!Ho(t)||(n=$l(t)).type!==e)throw xi("Incompatible receiver, "+e+" required");return n}}},YI=Function.prototype,Rz=fi&&Object.getOwnPropertyDescriptor,vx=Ja(YI,"name"),yx={EXISTS:vx,PROPER:vx&&function(){}.name==="something",CONFIGURABLE:vx&&(!fi||fi&&Rz(YI,"name").configurable)},Mu=le(function(e){var t=yx.CONFIGURABLE,n=ra.get,r=ra.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;ji(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ja(s,"name")||t&&s.name!==U)&&Ma(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==Zn?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:Ma(a,o,s)):k?a[o]=s:Zp(o,s)})(Function.prototype,"toString",function(){return ji(this)&&n(this).source||im(this)})}),Iz=Math.ceil,Lz=Math.floor,bx=function(e){var t=+e;return t!=t||t===0?0:(t>0?Lz:Iz)(t)},Pz=Math.max,kz=Math.min,Ex=function(e,t){var n=bx(e);return n<0?Pz(n+t,0):kz(n,t)},Mz=Math.min,XI=function(e){return e>0?Mz(bx(e),9007199254740991):0},ay=function(e){return XI(e.length)},JI=function(e){return function(t,n,r){var i,a=Ru(t),o=ay(a),s=Ex(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Nz={includes:JI(!0),indexOf:JI(!1)}.indexOf,QI=Qr([].push),ZI=function(e,t){var n,r=Ru(e),i=0,a=[];for(n in r)!Ja(yr,n)&&Ja(r,n)&&QI(a,n);for(;t.length>i;)Ja(r,n=t[i++])&&(~Nz(a,n)||QI(a,n));return a},oy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bz=oy.concat("length","prototype"),Fz=Object.getOwnPropertyNames||function(e){return ZI(e,Bz)},jz={f:Fz},Uz={f:Object.getOwnPropertySymbols},Hz=Qr([].concat),Wz=yl("Reflect","ownKeys")||function(e){var t=jz.f(pa(e)),n=Uz.f;return n?Hz(t,n(e)):t},$I=function(e,t){for(var n=Wz(t),r=Pu.f,i=nm.f,a=0;a<n.length;a++){var o=n[a];Ja(e,o)||r(e,o,i(t,o))}},zz=/#|\.prototype\./,am=function(e,t){var n=Kz[Gz(e)];return n==Yz||n!=Vz&&(ji(t)?Fi(t):!!t)},Gz=am.normalize=function(e){return String(e).replace(zz,".").toLowerCase()},Kz=am.data={},Vz=am.NATIVE="N",Yz=am.POLYFILL="P",Xz=am,Jz=nm.f,om=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?Zn:f?Zn[s]||Zp(s,{}):(Zn[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Jz(n,r))&&o.value:n[r],!Xz(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;$I(a,i)}(e.sham||i&&i.sham)&&Ma(a,"sham",!0),Mu(n,r,a,e)}},qI={};qI[ka("toStringTag")]="z";var sy,_x=String(qI)==="[object z]",Qz=ka("toStringTag"),Zz=Zn.Object,$z=vl(function(){return arguments}())=="Arguments",ly=_x?vl:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=Zz(e),Qz))=="string"?n:$z?vl(t):(r=vl(t))=="Object"&&ji(t.callee)?"Arguments":r},qz=Zn.String,dd=function(e){if(ly(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qz(e)},eG=function(){var e=pa(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},xx=Zn.RegExp,wx=Fi(function(){var e=xx("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),tG=wx||Fi(function(){return!xx("a","y").sticky}),nG=wx||Fi(function(){var e=xx("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),rG={BROKEN_CARET:nG,MISSED_STICKY:tG,UNSUPPORTED_Y:wx},iG=Object.keys||function(e){return ZI(e,oy)},aG=fi?Object.defineProperties:function(e,t){pa(e);for(var n,r=Ru(t),i=iG(t),a=i.length,o=0;a>o;)Pu.f(e,n=i[o++],r[n]);return e},oG=yl("document","documentElement"),eL=Yn("IE_PROTO"),Tx=function(){},tL=function(e){return"<script>"+e+"</script>"},nL=function(e){e.write(tL("")),e.close();var t=e.parentWindow.Object;return e=null,t},uy=function(){try{sy=new ActiveXObject("htmlfile")}catch(r){}var e,t;uy=typeof document!="undefined"?document.domain&&sy?nL(sy):((t=tm("iframe")).style.display="none",oG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(tL("document.F=Object")),e.close(),e.F):nL(sy);for(var n=oy.length;n--;)delete uy.prototype[oy[n]];return uy()};yr[eL]=!0;var rL,Sx,sm=Object.create||function(e,t){var n;return e!==null?(Tx.prototype=pa(e),n=new Tx,Tx.prototype=null,n[eL]=e):n=uy(),t===void 0?n:aG(n,t)},sG=Zn.RegExp,lG=Fi(function(){var e=sG(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),uG=Zn.RegExp,cG=Fi(function(){var e=uG("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dG=ra.get,hG=$p("native-string-replace",String.prototype.replace),cy=RegExp.prototype.exec,Cx=cy,fG=Qr("".charAt),pG=Qr("".indexOf),mG=Qr("".replace),Ax=Qr("".slice),Ox=(Sx=/b*/g,Qn(cy,rL=/a/,"a"),Qn(cy,Sx,"a"),rL.lastIndex!==0||Sx.lastIndex!==0),iL=rG.BROKEN_CARET,Dx=/()??/.exec("")[1]!==void 0;(Ox||Dx||iL||lG||cG)&&(Cx=function(e){var t,n,r,i,a,o,s,u=this,f=dG(u),m=dd(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=Qn(Cx,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=iL&&u.sticky,re=Qn(eG,u),$=u.source,ee=0,te=m;if(U&&(re=mG(re,"y",""),pG(re,"g")===-1&&(re+="g"),te=Ax(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&fG(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),Dx&&(n=new RegExp("^"+$+"$(?!\\s)",re)),Ox&&(r=u.lastIndex),i=Qn(cy,U?n:u,te),U?i?(i.input=Ax(i.input,ee),i[0]=Ax(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Ox&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),Dx&&i&&i.length>1&&Qn(hG,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=sm(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var dy=Cx;om({target:"RegExp",proto:!0,forced:/./.exec!==dy},{exec:dy});var gG=ka("species"),Rx=RegExp.prototype,vG=Qr("".charAt),aL=Qr("".charCodeAt),yG=Qr("".slice),oL=function(e){return function(t,n){var r,i,a=dd(Ql(t)),o=bx(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=aL(a,o))<55296||r>56319||o+1===s||(i=aL(a,o+1))<56320||i>57343?e?vG(a,o):r:e?yG(a,o,o+2):i-56320+(r-55296<<10)+65536}},sL={codeAt:oL(!1),charAt:oL(!0)},bG=sL.charAt,EG=function(e,t,n){return t+(n?bG(e,t).length:1)},_G=Zn.TypeError,lL=function(e,t){var n=e.exec;if(ji(n)){var r=Qn(n,e,t);return r!==null&&pa(r),r}if(vl(e)==="RegExp")return Qn(dy,e,t);throw _G("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var i=ka(e),a=!Fi(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!Fi(function(){var f=!1,m=/a/;return e==="split"&&((m={}).constructor={},m.constructor[gG]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=Qr(/./[i]),u=t(i,""[e],function(f,m,k,K,U){var re=Qr(f),$=m.exec;return $===dy||$===Rx.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});Mu(String.prototype,e,u[0]),Mu(Rx,i,u[1])}r&&Ma(Rx[i],"sham",!0)}("match",function(e,t,n){return[function(r){var i=Ql(this),a=r==null?void 0:ud(r,e);return a?Qn(a,r,i):new RegExp(r)[e](dd(i))},function(r){var i=pa(this),a=dd(r),o=n(t,i,a);if(o.done)return o.value;if(!i.global)return lL(i,a);var s=i.unicode;i.lastIndex=0;for(var u,f=[],m=0;(u=lL(i,a))!==null;){var k=dd(u[0]);f[m]=k,k===""&&(i.lastIndex=EG(a,XI(i.lastIndex),s)),m++}return m===0?null:f}]}),om({global:!0},{globalThis:Zn});var xG=!Fi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),uL=Yn("IE_PROTO"),Ix=Zn.Object,wG=Ix.prototype,lm=xG?Ix.getPrototypeOf:function(e){var t=Wh(e);if(Ja(t,uL))return t[uL];var n=t.constructor;return ji(n)&&t instanceof n?n.prototype:t instanceof Ix?wG:null},TG=Zn.String,SG=Zn.TypeError,Kh=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Qr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return pa(r),function(a){if(typeof a=="object"||ji(a))return a;throw SG("Can't set "+TG(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),CG=Zn.Array,AG=Math.max,OG=Qr("".replace),DG=Qr("".split),RG=Qr([].join),Lx=String(Error("zxcasd").stack),cL=/\n\s*at [^:]*:[^\n]*/,IG=cL.test(Lx),LG=/@[^\n]*\n/.test(Lx)&&!/zxcasd/.test(Lx),PG=function(e,t){if(typeof e!="string")return e;if(IG)for(;t--;)e=OG(e,cL,"");else if(LG)return RG(function(n,r,i){for(var a,o,s,u,f=ay(n),m=Ex(r,f),k=Ex(i===void 0?f:i,f),K=CG(AG(k-m,0)),U=0;m<k;m++,U++)a=K,o=U,s=n[m],u=void 0,(u=zh(o))in a?Pu.f(a,u,ml(0,s)):a[u]=s;return K.length=U,K}(DG(e,`
`),t),`
`);return e},kG=function(e,t){Ho(t)&&"cause"in t&&Ma(e,"cause",t.cause)},dL=Qr(Qr.bind),hL=function(e,t){return Hh(e),t===void 0?e:dL?dL(e,t):function(){return e.apply(t,arguments)}},Vh={},MG=ka("iterator"),NG=Array.prototype,BG=ka("iterator"),fL=function(e){if(e!=null)return ud(e,BG)||ud(e,"@@iterator")||Vh[ly(e)]},FG=Zn.TypeError,pL=function(e,t,n){var r,i;pa(e);try{if(!(r=ud(e,"return"))){if(t==="throw")throw n;return n}r=Qn(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return pa(r),n},jG=Zn.TypeError,hy=function(e,t){this.stopped=e,this.result=t},mL=hy.prototype,UG=function(e,t,n){var r,i,a,o,s,u,f,m=n&&n.that,k=!(!n||!n.AS_ENTRIES),K=!(!n||!n.IS_ITERATOR),U=!(!n||!n.INTERRUPTED),re=hL(t,m),$=function(te){return r&&pL(r,"normal",te),new hy(!0,te)},ee=function(te){return k?(pa(te),U?re(te[0],te[1],$):re(te[0],te[1])):U?re(te,$):re(te)};if(K)r=e;else{if(!(i=fL(e)))throw jG(Uh(e)+" is not iterable");if(function(te){return te!==void 0&&(Vh.Array===te||NG[MG]===te)}(i)){for(a=0,o=ay(e);o>a;a++)if((s=ee(e[a]))&&sd(mL,s))return s;return new hy(!1)}r=function(te,Q){var he=arguments.length<2?fL(te):Q;if(Hh(he))return pa(Qn(he,te));throw FG(Uh(te)+" is not iterable")}(e,i)}for(u=r.next;!(f=Qn(u,r)).done;){try{s=ee(f.value)}catch(te){pL(r,"throw",te)}if(typeof s=="object"&&s&&sd(mL,s))return s}return new hy(!1)},HG=function(e,t){return e===void 0?arguments.length<2?"":t:dd(e)},WG=!Fi(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ml(1,7)),e.stack!==7)}),zG=ka("toStringTag"),fy=Zn.Error,GG=[].push,um=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=sd(Px,this);Kh?n=Kh(new fy(void 0),i?lm(this):Px):(n=i?this:sm(Px),Ma(n,zG,"Error")),Ma(n,"message",HG(t,"")),WG&&Ma(n,"stack",PG(n.stack,1)),kG(n,r);var a=[];return UG(e,GG,{that:a}),Ma(n,"errors",a),n};Kh?Kh(um,fy):$I(um,fy);var Px=um.prototype=sm(fy.prototype,{constructor:ml(1,um),message:ml(1,""),name:ml(1,"AggregateError")});om({global:!0},{AggregateError:um});var kx=ka("unscopables"),Mx=Array.prototype;Mx[kx]==null&&Pu.f(Mx,kx,{configurable:!0,value:sm(null)});var hd,gL,vL,Nx=function(e){Mx[kx][e]=!0},Bx=ka("iterator"),yL=!1;[].keys&&("next"in(vL=[].keys())?(gL=lm(lm(vL)))!==Object.prototype&&(hd=gL):yL=!0);var KG=hd==null||Fi(function(){var e={};return hd[Bx].call(e)!==e});KG&&(hd={}),ji(hd[Bx])||Mu(hd,Bx,function(){return this});var Fx={IteratorPrototype:hd,BUGGY_SAFARI_ITERATORS:yL},VG=Pu.f,bL=ka("toStringTag"),EL=function(e,t,n){e&&!Ja(e=n?e:e.prototype,bL)&&VG(e,bL,{configurable:!0,value:t})},YG=Fx.IteratorPrototype,XG=function(){return this},JG=yx.PROPER,QG=yx.CONFIGURABLE,_L=Fx.IteratorPrototype,py=Fx.BUGGY_SAFARI_ITERATORS,cm=ka("iterator"),ZG=function(){return this},xL=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=sm(YG,{next:ml(+!me,he)}),EL(te,_e,!1),Vh[_e]=XG}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!py&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[cm]||U["@@iterator"]||i&&U[i],$=!py&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=lm(ee.call(new e)))!==Object.prototype&&s.next&&(lm(s)!==_L&&(Kh?Kh(s,_L):ji(s[cm])||Mu(s,cm,ZG)),EL(s,k,!0)),JG&&i=="values"&&re&&re.name!=="values"&&(QG?Ma(U,"name","values"):(K=!0,$=function(){return Qn(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(py||K||!(f in U))&&Mu(U,f,u[f]);else om({target:t,proto:!0,forced:py||K},u);return U[cm]!==$&&Mu(U,cm,$,{name:i}),Vh[t]=$,u},$G=ra.set,qG=ra.getterFor("Array Iterator"),dm=xL(Array,"Array",function(e,t){$G(this,{type:"Array Iterator",target:Ru(e),index:0,kind:t})},function(){var e=qG(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Vh.Arguments=Vh.Array,Nx("keys"),Nx("values"),Nx("entries");var eK=sL.charAt,tK=ra.set,nK=ra.getterFor("String Iterator");xL(String,"String",function(e){tK(this,{type:"String Iterator",string:dd(e),index:0})},function(){var e,t=nK(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=eK(n,r),t.index+=e.length,{value:e,done:!1})});var jx,my={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ux=tm("span").classList,wL=Ux&&Ux.constructor&&Ux.constructor.prototype,TL=wL===Object.prototype?void 0:wL,Hx=ka("iterator"),SL=ka("toStringTag"),Wx=dm.values,CL=function(e,t){if(e){if(e[Hx]!==Wx)try{Ma(e,Hx,Wx)}catch(r){e[Hx]=Wx}if(e[SL]||Ma(e,SL,t),my[t]){for(var n in dm)if(e[n]!==dm[n])try{Ma(e,n,dm[n])}catch(r){e[n]=dm[n]}}}};for(var zx in my)CL(Zn[zx]&&Zn[zx].prototype,zx);(CL(TL,"DOMTokenList"),typeof Te=="undefined")?("ActiveXObject"in window&&console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668
Sorry, wangEditor V5+ versions do not support IE browser.`),AL(),OL()):Te&&((jx=Te.navigator)===null||jx===void 0?void 0:jx.userAgent.match("QQBrowser"))&&(AL(),OL());function AL(){typeof globalThis=="undefined"&&(window.globalThis=window)}function OL(){Mh===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var DL,gy=Array.isArray||function(e){return w(e)=="Array"},RL=function(){},rK=[],IL=we("Reflect","construct"),Gx=/^\s*(?:class|function)\b/,iK=h(Gx.exec),aK=!Gx.exec(RL),hm=function(e){if(!c(e))return!1;try{return IL(RL,rK,e),!0}catch(t){return!1}},oK=!IL||d(function(){var e;return hm(hm.call)||!hm(Object)||!hm(function(){e=!0})||e})?function(e){if(!c(e))return!1;switch(pr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aK||!!iK(Gx,vi(e))}:hm,sK=ve("species"),LL=V.Array,PL=function(e,t){return new(function(n){var r;return gy(n)&&(r=n.constructor,(oK(r)&&(r===LL||gy(r.prototype))||H(r)&&(r=r[sK])===null)&&(r=void 0)),r===void 0?LL:r}(e))(t===0?0:t)},lK=ve("species"),kL=ve("isConcatSpreadable"),ML=V.TypeError,uK=se>=51||!d(function(){var e=[];return e[kL]=!1,e.concat()[0]!==e}),cK=(DL="concat",se>=51||!d(function(){var e=[];return(e.constructor={})[lK]=function(){return{foo:1}},e[DL](Boolean).foo!==1})),dK=function(e){if(!H(e))return!1;var t=e[kL];return t!==void 0?!!t:gy(e)};hn({target:"Array",proto:!0,forced:!uK||!cK},{concat:function(e){var t,n,r,i,a,o=Jt(this),s=PL(o,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(dK(a=t===-1?o:arguments[t])){if(u+(i=rn(a))>9007199254740991)throw ML("Maximum allowed index exceeded");for(n=0;n<i;n++,u++)n in a&&U0(s,u,a[n])}else{if(u>=9007199254740991)throw ML("Maximum allowed index exceeded");U0(s,u++,a)}return s.length=u,s}});var NL=Wa.f,BL=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],FL={f:function(e){return BL&&w(e)=="Window"?function(t){try{return NL(t)}catch(n){return Je(BL)}}(e):NL(Y(e))}},hK=h([].slice),Kx={f:ve},fK=en.f,ia=function(e){var t=ne.Symbol||(ne.Symbol={});Nt(t,e)||fK(t,e,{value:Kx.f(e)})},jL=h([].push),Nu=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=Jt(u),$=z(re),ee=Qt(f,m),te=rn($),Q=0,he=k||PL,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:jL(me,K)}else switch(e){case 4:return!1;case 7:jL(me,K)}return a?-1:r||i?i:me}},vy={forEach:Nu(0),map:Nu(1),filter:Nu(2),some:Nu(3),every:Nu(4),find:Nu(5),findIndex:Nu(6),filterReject:Nu(7)}.forEach,Oo=gn("hidden"),UL=ve("toPrimitive"),pK=da.set,HL=da.getterFor("Symbol"),zs=Object.prototype,Bu=V.Symbol,Fu=Bu&&Bu.prototype,WL=V.TypeError,Vx=V.QObject,fm=we("JSON","stringify"),zL=An.f,ju=en.f,GL=FL.f,mK=E.f,KL=h([].push),eu=dt("symbols"),pm=dt("op-symbols"),Yx=dt("string-to-symbol-registry"),Xx=dt("symbol-to-string-registry"),gK=dt("wks"),Jx=!Vx||!Vx.prototype||!Vx.prototype.findChild,Qx=I&&d(function(){return Bs(ju({},"a",{get:function(){return ju(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=zL(zs,t);r&&delete zs[t],ju(e,t,n),r&&e!==zs&&ju(zs,t,r)}:ju,Zx=function(e,t){var n=eu[e]=Bs(Fu);return pK(n,{type:"Symbol",tag:e,description:t}),I||(n.description=t),n},yy=function(e,t,n){e===zs&&yy(pm,t,n),Rt(e);var r=Re(t);return Rt(n),Nt(eu,r)?(n.enumerable?(Nt(e,Oo)&&e[Oo][r]&&(e[Oo][r]=!1),n=Bs(n,{enumerable:v(0,!1)})):(Nt(e,Oo)||ju(e,Oo,v(1,{})),e[Oo][r]=!0),Qx(e,r,n)):ju(e,r,n)},VL=function(e,t){Rt(e);var n=Y(t),r=zp(n).concat($x(n));return vy(r,function(i){I&&!R(YL,n,i)||yy(e,i,n[i])}),e},YL=function(e){var t=Re(e),n=R(mK,this,t);return!(this===zs&&Nt(eu,t)&&!Nt(pm,t))&&(!(n||!Nt(this,t)||!Nt(eu,t)||Nt(this,Oo)&&this[Oo][t])||n)},XL=function(e,t){var n=Y(e),r=Re(t);if(n!==zs||!Nt(eu,r)||Nt(pm,r)){var i=zL(n,r);return!i||!Nt(eu,r)||Nt(n,Oo)&&n[Oo][r]||(i.enumerable=!0),i}},JL=function(e){var t=GL(Y(e)),n=[];return vy(t,function(r){Nt(eu,r)||Nt(Jr,r)||KL(n,r)}),n},$x=function(e){var t=e===zs,n=GL(t?pm:Y(e)),r=[];return vy(n,function(i){!Nt(eu,i)||t&&!Nt(zs,i)||KL(r,eu[i])}),r};if(S||(Fu=(Bu=function(){if(Ce(Fu,this))throw WL("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Mi(arguments[0]):void 0,t=dn(e),n=function(r){this===zs&&R(n,pm,r),Nt(this,Oo)&&Nt(this[Oo],t)&&(this[Oo][t]=!1),Qx(this,t,v(1,r))};return I&&Jx&&Qx(zs,t,{configurable:!0,set:n}),Zx(t,e)}).prototype,Ni(Fu,"toString",function(){return HL(this).tag}),Ni(Bu,"withoutSetter",function(e){return Zx(dn(e),e)}),E.f=YL,en.f=yy,An.f=XL,Wa.f=FL.f=JL,Lh.f=$x,Kx.f=function(e){return Zx(ve(e),e)},I&&ju(Fu,"description",{configurable:!0,get:function(){return HL(this).description}})),hn({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:Bu}),vy(zp(gK),function(e){ia(e)}),hn({target:"Symbol",stat:!0,forced:!S},{for:function(e){var t=Mi(e);if(Nt(Yx,t))return Yx[t];var n=Bu(t);return Yx[t]=n,Xx[n]=t,n},keyFor:function(e){if(!ue(e))throw WL(e+" is not a symbol");if(Nt(Xx,e))return Xx[e]},useSetter:function(){Jx=!0},useSimple:function(){Jx=!1}}),hn({target:"Object",stat:!0,forced:!S,sham:!I},{create:function(e,t){return t===void 0?Bs(e):VL(Bs(e),t)},defineProperty:yy,defineProperties:VL,getOwnPropertyDescriptor:XL}),hn({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:JL,getOwnPropertySymbols:$x}),hn({target:"Object",stat:!0,forced:d(function(){Lh.f(1)})},{getOwnPropertySymbols:function(e){return Lh.f(Jt(e))}}),fm){var vK=!S||d(function(){var e=Bu();return fm([e])!="[null]"||fm({a:e})!="{}"||fm(Object(e))!="{}"});hn({target:"JSON",stat:!0,forced:vK},{stringify:function(e,t,n){var r=hK(arguments),i=t;if((H(t)||e!==void 0)&&!ue(e))return gy(t)||(t=function(a,o){if(c(i)&&(o=R(i,this,a,o)),!ue(o))return o}),r[1]=t,b(fm,null,r)}})}if(!Fu[UL]){var yK=Fu.valueOf;Ni(Fu,UL,function(e){return R(yK,this)})}Ao(Bu,"Symbol"),Jr[Oo]=!0,ia("asyncIterator"),ia("hasInstance"),ia("isConcatSpreadable"),ia("iterator"),ia("match"),ia("matchAll"),ia("replace"),ia("search"),ia("species"),ia("split"),ia("toPrimitive"),ia("toStringTag"),ia("unscopables"),Ao(V.JSON,"JSON",!0);var bK=ne.Symbol;ia("asyncDispose"),ia("dispose"),ia("matcher"),ia("metadata"),ia("observable"),ia("patternMatch"),ia("replaceAll");var by=bK,EK=Kx.f("iterator"),_K=le(function(e){function t(n){return typeof by=="function"&&typeof EK=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof by=="function"&&r.constructor===by&&r!==by.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),xK=X(_K),QL=nm.f,wK=Fi(function(){QL(1)});if(om({target:"Object",stat:!0,forced:!fi||wK,sham:!fi},{getOwnPropertyDescriptor:function(e,t){return QL(Ru(e),t)}}),(typeof Te=="undefined"?"undefined":xK(Te))==="object"){var TK=Object.getOwnPropertyDescriptor(Te,"window");Te.window&&!TK.set||(Te.window=Te,Te.requestAnimationFrame=function(){},Te.navigator={userAgent:""},Te.location={hostname:"0.0.0.0",port:0,protocol:"http:"},Te.btoa=function(){},Te.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),Te.document!=null&&Te.document.getElementsByTagName==null&&(Te.document.getElementsByTagName=function(){return[]})}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function ZL(e){return Object.prototype.toString.call(e)==="[object Object]"}function oo(e){var t,n;return ZL(e)!==!1&&((t=e.constructor)===void 0||ZL(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Gs(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fd(e){return!!e&&!!e[Go]}function pd(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===RK}(e)||Array.isArray(e)||!!e[sP]||!!e.constructor[sP]||ew(e)||tw(e))}function mm(e,t,n){n===void 0&&(n=!1),Yh(e)===0?(n?Object.keys:fw)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Yh(e){var t=e[Go];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ew(e)?2:tw(e)?3:0}function qx(e,t){return Yh(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $L(e,t,n){var r=Yh(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function ew(e){return OK&&e instanceof Map}function tw(e){return DK&&e instanceof Set}function md(e){return e.o||e.t}function nw(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=IK(e);delete t[Go];for(var n=fw(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function rw(e,t){return t===void 0&&(t=!1),iw(e)||fd(e)||!pd(e)||(Yh(e)>1&&(e.set=e.add=e.clear=e.delete=SK),Object.freeze(e),t&&mm(e,function(n,r){return rw(r,!0)},!0)),e}function SK(){Gs(2)}function iw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function tu(e){var t=LK[e];return t||Gs(18,e),t}function qL(){return gm}function aw(e,t){t&&(tu("Patches"),e.u=[],e.s=[],e.v=t)}function Ey(e){ow(e),e.p.forEach(CK),e.p=null}function ow(e){e===gm&&(gm=e.l)}function eP(e){return gm={p:[],l:gm,h:e,m:!0,_:0}}function CK(e){var t=e[Go];t.i===0||t.i===1?t.j():t.O=!0}function sw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||tu("ES5").S(t,e,r),r?(n[Go].P&&(Ey(t),Gs(4)),pd(e)&&(e=_y(t,e),t.l||xy(t,e)),t.u&&tu("Patches").M(n[Go],e,t.u,t.s)):e=_y(t,n,[]),Ey(t),t.u&&t.v(t.u,t.s),e!==oP?e:void 0}function _y(e,t,n){if(iw(t))return t;var r=t[Go];if(!r)return mm(t,function(a,o){return tP(e,r,t,a,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return xy(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=nw(r.k):r.o;mm(r.i===3?new Set(i):i,function(a,o){return tP(e,r,i,a,o,n)}),xy(e,i,!1),n&&e.u&&tu("Patches").R(r,n,e.u,e.s)}return r.o}function tP(e,t,n,r,i,a){if(fd(i)){var o=_y(e,i,a&&t&&t.i!==3&&!qx(t.D,r)?a.concat(r):void 0);if($L(n,r,o),!fd(o))return;e.m=!1}if(pd(i)&&!iw(i)){if(!e.h.F&&e._<1)return;_y(e,i),t&&t.A.l||xy(e,i)}}function xy(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&rw(t,n)}function lw(e,t){var n=e[Go];return(n?md(n):e)[t]}function nP(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function uw(e){e.P||(e.P=!0,e.l&&uw(e.l))}function cw(e){e.o||(e.o=nw(e.t))}function dw(e,t,n){var r=ew(t)?tu("MapSet").N(t,n):tw(t)?tu("MapSet").T(t,n):e.g?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:qL(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,f=wy;o&&(u=[s],f=Ty);var m=Proxy.revocable(u,f),k=m.revoke,K=m.proxy;return s.k=K,s.j=k,K}(t,n):tu("ES5").J(t,n);return(n?n.A:qL()).p.push(r),r}function AK(e){return fd(e)||Gs(22,e),function t(n){if(!pd(n))return n;var r,i=n[Go],a=Yh(n);if(i){if(!i.P&&(i.i<4||!tu("ES5").K(i)))return i.t;i.I=!0,r=rP(n,a),i.I=!1}else r=rP(n,a);return mm(r,function(o,s){i&&function(u,f){return Yh(u)===2?u.get(f):u[f]}(i.t,o)===s||$L(r,o,t(s))}),a===3?new Set(r):r}(e)}function rP(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nw(e)}var iP,gm,hw=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",OK=typeof Map!="undefined",DK=typeof Set!="undefined",aP=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",oP=hw?Symbol.for("immer-nothing"):((iP={})["immer-nothing"]=!0,iP),sP=hw?Symbol.for("immer-draftable"):"__$immer_draftable",Go=hw?Symbol.for("immer-state"):"__$immer_state",RK=""+Object.prototype.constructor,fw=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,IK=Object.getOwnPropertyDescriptors||function(e){var t={};return fw(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},LK={},wy={get:function(e,t){if(t===Go)return e;var n=md(e);if(!qx(n,t))return function(i,a,o){var s,u=nP(a,o);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!pd(r)?r:r===lw(e.t,t)?(cw(e),e.o[t]=dw(e.A.h,r,e)):r},has:function(e,t){return t in md(e)},ownKeys:function(e){return Reflect.ownKeys(md(e))},set:function(e,t,n){var r=nP(md(e),t);if(r==null?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=lw(md(e),t),a=i==null?void 0:i[Go];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(o,s){return o===s?o!==0||1/o==1/s:o!=o&&s!=s}(n,i)&&(n!==void 0||qx(e.t,t)))return!0;cw(e),uw(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return lw(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,cw(e),uw(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=md(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Gs(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gs(12)}},Ty={};mm(wy,function(e,t){Ty[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ty.deleteProperty=function(e,t){return wy.deleteProperty.call(this,e[0],t)},Ty.set=function(e,t,n){return wy.set.call(this,e[0],t,n,e[0])};var PK=function(){function e(n){var r=this;this.g=aP,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var u=r;return function(U){var re=this;U===void 0&&(U=s);for(var $=arguments.length,ee=Array($>1?$-1:0),te=1;te<$;te++)ee[te-1]=arguments[te];return u.produce(U,function(Q){var he;return(he=a).call.apply(he,[re,Q].concat(ee))})}}var f;if(typeof a!="function"&&Gs(6),o!==void 0&&typeof o!="function"&&Gs(7),pd(i)){var m=eP(r),k=dw(r,i,void 0),K=!0;try{f=a(k),K=!1}finally{K?Ey(m):ow(m)}return typeof Promise!="undefined"&&f instanceof Promise?f.then(function(U){return aw(m,o),sw(U,m)},function(U){throw Ey(m),U}):(aw(m,o),sw(f,m))}if(!i||typeof i!="object")return(f=a(i))===oP?void 0:(f===void 0&&(f=i),r.F&&rw(f,!0),f);Gs(21,i)},this.produceWithPatches=function(i,a){return typeof i=="function"?function(u){for(var f=arguments.length,m=Array(f>1?f-1:0),k=1;k<f;k++)m[k-1]=arguments[k];return r.produceWithPatches(u,function(K){return i.apply(void 0,[K].concat(m))})}:[r.produce(i,a,function(u,f){o=u,s=f}),o,s];var o,s},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){pd(n)||Gs(8),fd(n)&&(n=AK(n));var r=eP(this),i=dw(this,n,void 0);return i[Go].C=!0,ow(r),i},t.finishDraft=function(n,r){var i=(n&&n[Go]).A;return aw(i,r),sw(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!aP&&Gs(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=tu("Patches").$;return fd(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),Ko=new PK,Sy=Ko.produce;Ko.produceWithPatches.bind(Ko),Ko.setAutoFreeze.bind(Ko),Ko.setUseProxies.bind(Ko),Ko.applyPatches.bind(Ko);var lP=Ko.createDraft.bind(Ko),uP=Ko.finishDraft.bind(Ko);function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cy=new WeakMap,vm=new WeakMap,cP=new WeakMap,dP=new WeakMap,hP=new WeakMap,fP=new WeakMap;function pP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kK=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Ee.pathRefs(e))cV.transform(n,t);for(var r of Ee.pointRefs(e))dV.transform(r,t);for(var i of Ee.rangeRefs(e))fV.transform(i,t);var a=new Set,o=[],s=K=>{if(K){var U=K.join(",");a.has(U)||(a.add(U),o.push(K))}},u=Cy.get(e)||[],f=MK(t);for(var m of u)s(st.transform(m,t));for(var k of f)s(k);Cy.set(e,o),ct.transform(e,t),e.operations.push(t),Ee.normalize(e),t.type==="set_selection"&&(e.marks=null),vm.get(e)||(vm.set(e,!0),Promise.resolve().then(()=>{vm.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(_t.isExpanded(r))ct.setNodes(e,{[t]:n},{match:wn.isText,split:!0});else{var i=Ay(Ay({},Ee.marks(e)||{}),{},{[t]:n});e.marks=i,vm.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&_t.isCollapsed(n)&&ct.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&_t.isCollapsed(n)&&ct.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&_t.isExpanded(n)&&ct.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?fn.fragment(e,t):[]},insertBreak:()=>{ct.splitNodes(e,{always:!0})},insertFragment:t=>{ct.insertFragment(e,t)},insertNode:t=>{ct.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Ay({text:t},r);ct.insertNodes(e,i)}else ct.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!wn.isText(n))if(Nn.isElement(n)&&n.children.length===0)ct.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var i=!Ee.isEditor(n)&&Nn.isElement(n)&&(e.isInline(n)||n.children.length===0||wn.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=fn.get(e,r);if(!wn.isText(s)){var u=n.children[o],f=s.children[a-1],m=o===n.children.length-1;(wn.isText(u)||Nn.isElement(u)&&e.isInline(u))!==i?(ct.removeNodes(e,{at:r.concat(a),voids:!0}),a--):Nn.isElement(u)?e.isInline(u)&&(f!=null&&wn.isText(f)?m&&(ct.insertNodes(e,{text:""},{at:r.concat(a+1),voids:!0}),a++):(ct.insertNodes(e,{text:""},{at:r.concat(a),voids:!0}),a++)):f!=null&&wn.isText(f)&&(wn.equals(u,f,{loose:!0})?(ct.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):f.text===""?(ct.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):u.text===""&&(ct.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(_t.isExpanded(n))ct.unsetNodes(e,t,{match:wn.isText,split:!0});else{var r=Ay({},Ee.marks(e)||{});delete r[t],e.marks=r,vm.get(e)||e.onChange()}}};return e},MK=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return st.levels(t);case"insert_node":var{node:n,path:r}=e,i=st.levels(r),a=wn.isText(n)?[]:Array.from(fn.nodes(n),me=>{var[,_e]=me;return r.concat(_e)});return[...i,...a];case"merge_node":var{path:o}=e;return[...st.ancestors(o),st.previous(o)];case"move_node":var{path:s,newPath:u}=e;if(st.equals(s,u))return[];var f=[],m=[];for(var k of st.ancestors(s)){var K=st.transform(k,e);f.push(K)}for(var U of st.ancestors(u)){var re=st.transform(U,e);m.push(re)}var $=m[m.length-1],ee=u[u.length-1],te=$.concat(ee);return[...f,...m,te];case"remove_node":var{path:Q}=e;return[...st.ancestors(Q)];case"split_node":var{path:he}=e;return[...st.levels(he),st.next(he)];default:return[]}};function nu(e,t){if(e==null)return{};var n,r,i=function(o,s){if(o==null)return{};var u,f,m={},k=Object.keys(o);for(f=0;f<k.length;f++)u=k[f],s.indexOf(u)>=0||(m[u]=o[u]);return m}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var cr,pw=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?UK(e):e,i=cr.None,a=cr.None,o=0,s=null;for(var u of r){var f=u.codePointAt(0);if(!f)break;var m=$K(u,f);if([i,a]=n?[a,m]:[m,i],Xh(i,cr.ZWJ)&&Xh(a,cr.ExtPict)&&!nV(n?e.substring(0,o):e.substring(0,e.length-o)))break;if(Xh(i,cr.RI)&&Xh(a,cr.RI)&&!(s=s!==null?!s:!!n||iV(e.substring(0,e.length-o))))break;if(i!==cr.None&&a!==cr.None&&eV(i,a))break;o+=u.length}return o||1},NK=/\s/,BK=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,FK=/['\u2018\u2019]/,mw=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},jK=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(NK.test(t))return!1;if(FK.test(t)){var i=pw(n,r),[a,o]=mw(n,i,r);if(e(a,o,r))return!0}return!BK.test(t)},UK=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(WK(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(HK(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},HK=e=>e>=55296&&e<=56319,WK=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(cr||(cr={}));var zK=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,GK=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,KK=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,VK=/^[\u1100-\u115F\uA960-\uA97C]$/,YK=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,XK=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,JK=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,QK=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ZK=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,$K=(e,t)=>{var n=cr.Any;return e.search(zK)!==-1&&(n|=cr.Extend),t===8205&&(n|=cr.ZWJ),t>=127462&&t<=127487&&(n|=cr.RI),e.search(GK)!==-1&&(n|=cr.Prepend),e.search(KK)!==-1&&(n|=cr.SpacingMark),e.search(VK)!==-1&&(n|=cr.L),e.search(YK)!==-1&&(n|=cr.V),e.search(XK)!==-1&&(n|=cr.T),e.search(JK)!==-1&&(n|=cr.LV),e.search(QK)!==-1&&(n|=cr.LVT),e.search(ZK)!==-1&&(n|=cr.ExtPict),n};function Xh(e,t){return(e&t)!=0}var qK=[[cr.L,cr.L|cr.V|cr.LV|cr.LVT],[cr.LV|cr.V,cr.V|cr.T],[cr.LVT|cr.T,cr.T],[cr.Any,cr.Extend|cr.ZWJ],[cr.Any,cr.SpacingMark],[cr.Prepend,cr.Any],[cr.ZWJ,cr.ExtPict],[cr.RI,cr.RI]];function eV(e,t){return qK.findIndex(n=>Xh(e,n[0])&&Xh(t,n[1]))===-1}var tV=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,nV=e=>e.search(tV)!==-1,rV=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,iV=e=>{var t=e.match(rV);return t!==null&&t[0].length/2%2==1},mP=e=>oo(e)&&fn.isNodeList(e.children)&&!Ee.isEditor(e),Nn={isAncestor:e=>oo(e)&&fn.isNodeList(e.children),isElement:mP,isElementList:e=>Array.isArray(e)&&e.every(t=>Nn.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return mP(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},aV=["text"],oV=["text"];function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vP=new WeakMap,Ee={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:a}=t;if(i){var o=Ee.path(e,i),s=r==="lowest";for(var[u,f]of Ee.levels(e,{at:o,voids:n,match:a,reverse:s}))if(!wn.isText(u)&&!st.equals(o,f))return[u,f]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:Ee.point(e,t,{edge:"end"}),focus:Ee.end(e,[])},{distance:a=1}=r,o=0;for(var s of Ee.positions(e,Jh(Jh({},r),{},{at:i}))){if(o>a)break;o!==0&&(n=s),o++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:Ee.start(e,[]),focus:Ee.point(e,t,{edge:"start"})},{distance:a=1}=r,o=0;for(var s of Ee.positions(e,Jh(Jh({},r),{},{at:i,reverse:!0}))){if(o>a)break;o!==0&&(n=s),o++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Ee.start(e,t),Ee.end(e,t)],end:(e,t)=>Ee.point(e,t,{edge:"end"}),first(e,t){var n=Ee.path(e,t,{edge:"start"});return Ee.node(e,n)},fragment(e,t){var n=Ee.range(e,t);return fn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>Ee.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>wn.isText(n)||Ee.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>wn.isText(n)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Nn.isElement(t)&&!e.isInline(t),isEditor(e){if(!oo(e))return!1;var t=vP.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||oo(e.marks))&&(e.selection===null||_t.isRange(e.selection))&&fn.isNodeList(e.children)&&Uu.isOperationList(e.operations);return vP.set(e,n),n},isEnd(e,t,n){var r=Ee.end(e,n);return mr.equals(t,r)},isEdge:(e,t,n)=>Ee.isStart(e,t,n)||Ee.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&wn.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>Nn.isElement(t)&&e.isInline(t),isNormalizing(e){var t=cP.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=Ee.start(e,n);return mr.equals(t,r)},isVoid:(e,t)=>Nn.isElement(t)&&e.isVoid(t),last(e,t){var n=Ee.path(e,t,{edge:"end"});return Ee.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ee.path(e,t,n);return[fn.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),n){var o=[],s=Ee.path(e,n);for(var[u,f]of fn.levels(e,s))if(a(u,f)&&(o.push([u,f]),!i&&Ee.isVoid(e,u)))break;r&&o.reverse(),yield*o}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(_t.isExpanded(n)){var[r]=Ee.nodes(e,{match:wn.isText});if(r){var[i]=r;return nu(i,aV)}return{}}var{anchor:a}=n,{path:o}=a,[s]=Ee.leaf(e,o);if(a.offset===0){var u=Ee.previous(e,{at:o,match:wn.isText}),f=Ee.above(e,{match:U=>Ee.isBlock(e,U)});if(u&&f){var[m,k]=u,[,K]=f;st.isAncestor(K,k)&&(s=m)}}return nu(s,oV)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=Ee.after(e,a,{voids:r});if(o){var[,s]=Ee.last(e,[]),u=[o.path,s];if(st.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(st.isPath(a)){var[f]=Ee.parent(e,a);i=k=>f.children.includes(k)}else i=()=>!0;var[m]=Ee.nodes(e,{at:u,match:i,mode:n,voids:r});return m}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ee.path(e,t,n);return[fn.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:a=!1,voids:o=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,f;if(sV.isSpan(n))u=n[0],f=n[1];else{var m=Ee.path(e,n,{edge:"start"}),k=Ee.path(e,n,{edge:"end"});u=a?k:m,f=a?m:k}var K,U=fn.nodes(e,{reverse:a,from:u,to:f,pass:he=>{var[me]=he;return!o&&Ee.isVoid(e,me)}}),re=[];for(var[$,ee]of U){var te=K&&st.compare(ee,K[1])===0;if(r!=="highest"||!te){if(s($,ee))if(r==="lowest"&&te)K=[$,ee];else{var Q=r==="lowest"?K:[$,ee];Q&&(i?re.push(Q):yield Q),K=[$,ee]}else if(i&&!te&&wn.isText($))return}}r==="lowest"&&K&&(i?re.push(K):yield K),i&&(yield*re)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=a=>Cy.get(a)||[];if(Ee.isNormalizing(e)){if(n){var i=Array.from(fn.nodes(e),a=>{var[,o]=a;return o});Cy.set(e,i)}r(e).length!==0&&Ee.withoutNormalizing(e,()=>{for(var a of r(e))if(fn.has(e,a)){var o=Ee.node(e,a),[s,u]=o;Nn.isElement(s)&&s.children.length===0&&e.normalizeNode(o)}for(var f=42*r(e).length,m=0;r(e).length!==0;){if(m>f)throw new Error(`
Could not completely normalize the editor after `.concat(f,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var k=r(e).pop();if(fn.has(e,k)){var K=Ee.node(e,k);e.normalizeNode(K)}m++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ee.path(e,t,n),i=st.parent(r);return Ee.node(e,i)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(st.isPath(t)){if(i==="start"){var[,a]=fn.first(e,t);t=a}else if(i==="end"){var[,o]=fn.last(e,t);t=o}}return _t.isRange(t)&&(t=i==="start"?_t.start(t):i==="end"?_t.end(t):st.common(t.anchor.path,t.focus.path)),mr.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>fn.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i;return Ee.pathRefs(e).delete(i),i.current=null,a}};return Ee.pathRefs(e).add(i),i},pathRefs(e){var t=dP.get(e);return t||(t=new Set,dP.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(st.isPath(t)){var i;if(r==="end"){var[,a]=fn.last(e,t);i=a}else{var[,o]=fn.first(e,t);i=o}var s=fn.get(e,i);if(!wn.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:r==="end"?s.text.length:0}}if(_t.isRange(t)){var[u,f]=_t.edges(t);return r==="start"?u:f}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i;return Ee.pointRefs(e).delete(i),i.current=null,a}};return Ee.pointRefs(e).add(i),i},pointRefs(e){var t=hP.get(e);return t||(t=new Set,hP.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:a=!1}=t;if(n){var o=Ee.range(e,n),[s,u]=_t.edges(o),f=i?u:s,m=!1,k="",K=0,U=0,re=0;for(var[$,ee]of Ee.nodes(e,{at:n,reverse:i,voids:a})){if(Nn.isElement($)){if(!a&&e.isVoid($)){yield Ee.start(e,ee);continue}if(e.isInline($))continue;if(Ee.hasInlines(e,$)){var te=st.isAncestor(ee,u.path)?u:Ee.end(e,ee),Q=st.isAncestor(ee,s.path)?s:Ee.start(e,ee);k=Ee.string(e,{anchor:Q,focus:te},{voids:a}),m=!0}}if(wn.isText($)){var he=st.equals(ee,f.path);for(he?(U=i?f.offset:$.text.length-f.offset,re=f.offset):(U=$.text.length,re=i?U:0),(he||m||r==="offset")&&(yield{path:ee,offset:re},m=!1);;){if(K===0){if(k==="")break;K=me(k,r,i),k=mw(k,K,i)[1]}if(re=i?re-K:re+K,(U-=K)<0){K=-U;break}K=0,yield{path:ee,offset:re}}}}}function me(_e,ke,De){return ke==="character"?pw(_e,De):ke==="word"?function(Ye){for(var rt=arguments.length>1&&arguments[1]!==void 0&&arguments[1],wt=0,Lt=!1;Ye.length>0;){var Tt=pw(Ye,rt),[Yt,Ft]=mw(Ye,Tt,rt);if(jK(Yt,Ft,rt))Lt=!0,wt+=Tt;else{if(Lt)break;wt+=Tt}Ye=Ft}return wt}(_e,De):ke==="line"||ke==="block"?_e.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=Ee.before(e,a,{voids:r});if(o){var[,s]=Ee.first(e,[]),u=[o.path,s];if(st.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(st.isPath(a)){var[f]=Ee.parent(e,a);i=k=>f.children.includes(k)}else i=()=>!0;var[m]=Ee.nodes(e,{reverse:!0,at:u,match:i,mode:n,voids:r});return m}}},range:(e,t,n)=>_t.isRange(t)&&!n?t:{anchor:Ee.start(e,t),focus:Ee.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i;return Ee.rangeRefs(e).delete(i),i.current=null,a}};return Ee.rangeRefs(e).add(i),i},rangeRefs(e){var t=fP.get(e);return t||(t=new Set,fP.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){cP.set(e,t)},start:(e,t)=>Ee.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=Ee.range(e,t),[a,o]=_t.edges(i),s="";for(var[u,f]of Ee.nodes(e,{at:i,match:wn.isText,voids:r})){var m=u.text;st.equals(f,o.path)&&(m=m.slice(0,o.offset)),st.equals(f,a.path)&&(m=m.slice(a.offset)),s+=m}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,a]=_t.edges(t);if(i.offset!==0||a.offset!==0||_t.isCollapsed(t))return t;var o=Ee.above(e,{at:a,match:K=>Ee.isBlock(e,K)}),s=o?o[1]:[],u={anchor:Ee.start(e,[]),focus:a},f=!0;for(var[m,k]of Ee.nodes(e,{at:u,match:wn.isText,reverse:!0,voids:r}))if(f)f=!1;else if(m.text!==""||st.isBefore(k,s)){a={path:k,offset:m.text.length};break}return{anchor:i,focus:a}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ee.above(e,Jh(Jh({},t),{},{match:n=>Ee.isVoid(e,n)}))},withoutNormalizing(e,t){var n=Ee.isNormalizing(e);Ee.setNormalizing(e,!1);try{t()}finally{Ee.setNormalizing(e,n)}Ee.normalize(e)}},Uye={isLocation:e=>st.isPath(e)||mr.isPoint(e)||_t.isRange(e)},sV={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(st.isPath)},lV=["children"],uV=["text"],yP=new WeakMap,fn={ancestor(e,t){var n=fn.get(e,t);if(wn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of st.ancestors(t,n)){var i=[fn.ancestor(e,r),r];yield i}},child(e,t){if(wn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,i=fn.ancestor(e,t),{children:a}=i,o=r?a.length-1:0;r?o>=0:o<a.length;){var s=fn.child(i,o),u=t.concat(o);yield[s,u],o=r?o-1:o+1}},common(e,t,n){var r=st.common(t,n);return[fn.get(e,r),r]},descendant(e,t){var n=fn.get(e,t);if(Ee.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of fn.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of fn.nodes(e,t))Nn.isElement(n)&&(yield[n,r])},extractProps:e=>Nn.isAncestor(e)?nu(e,lV):nu(e,uV),first(e,t){for(var n=t.slice(),r=fn.get(e,n);r&&!wn.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(wn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Sy({children:e.children},r=>{var[i,a]=_t.edges(t),o=fn.nodes(r,{reverse:!0,pass:K=>{var[,U]=K;return!_t.includes(t,U)}});for(var[,s]of o){if(!_t.includes(t,s)){var u=fn.parent(r,s),f=s[s.length-1];u.children.splice(f,1)}if(st.equals(s,a.path)){var m=fn.leaf(r,s);m.text=m.text.slice(0,a.offset)}if(st.equals(s,i.path)){var k=fn.leaf(r,s);k.text=k.text.slice(i.offset)}}Ee.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(wn.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(wn.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>wn.isText(e)||Nn.isElement(e)||Ee.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=yP.get(e);if(t!==void 0)return t;var n=e.every(r=>fn.isNode(r));return yP.set(e,n),n},last(e,t){for(var n=t.slice(),r=fn.get(e,n);r&&!wn.isText(r)&&r.children.length!==0;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=fn.get(e,t);if(!wn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of st.levels(t,n)){var i=fn.get(e,r);yield[i,r]}},matches:(e,t)=>Nn.isElement(e)&&Nn.isElementProps(t)&&Nn.matches(e,t)||wn.isText(e)&&wn.isTextProps(t)&&wn.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:a}=t,o=new Set,s=[],u=e;!a||!(r?st.isBefore(s,a):st.isAfter(s,a));)if(o.has(u)||(yield[u,s]),o.has(u)||wn.isText(u)||u.children.length===0||n!=null&&n([u,s])!==!1){if(s.length===0)break;if(!r){var f=st.next(s);if(fn.has(e,f)){s=f,u=fn.get(e,s);continue}}r&&s[s.length-1]!==0?(s=st.previous(s),u=fn.get(e,s)):(s=st.parent(s),u=fn.get(e,s),o.add(u))}else{o.add(u);var m=r?u.children.length-1:0;st.isAncestor(s,i)&&(m=i[s.length]),s=s.concat(m),u=fn.get(e,s)}},parent(e,t){var n=st.parent(t),r=fn.get(e,n);if(wn.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>wn.isText(e)?e.text:e.children.map(fn.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of fn.nodes(e,t))wn.isText(n)&&(yield[n,r])}};function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Uu={isNodeOperation:e=>Uu.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!oo(e))return!1;switch(e.type){case"insert_node":case"remove_node":return st.isPath(e.path)&&fn.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&st.isPath(e.path);case"merge_node":return typeof e.position=="number"&&st.isPath(e.path)&&oo(e.properties);case"move_node":return st.isPath(e.path)&&st.isPath(e.newPath);case"set_node":return st.isPath(e.path)&&oo(e.properties)&&oo(e.newProperties);case"set_selection":return e.properties===null&&_t.isRange(e.newProperties)||e.newProperties===null&&_t.isRange(e.properties)||oo(e.properties)&&oo(e.newProperties);case"split_node":return st.isPath(e.path)&&typeof e.position=="number"&&oo(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Uu.isOperation(t)),isSelectionOperation:e=>Uu.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Uu.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return ma(ma({},e),{},{type:"remove_node"});case"insert_text":return ma(ma({},e),{},{type:"remove_text"});case"merge_node":return ma(ma({},e),{},{type:"split_node",path:st.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(st.equals(t,n))return e;if(st.isSibling(n,t))return ma(ma({},e),{},{path:t,newPath:n});var r=st.transform(n,e),i=st.transform(st.next(n),e);return ma(ma({},e),{},{path:r,newPath:i});case"remove_node":return ma(ma({},e),{},{type:"insert_node"});case"remove_text":return ma(ma({},e),{},{type:"insert_text"});case"set_node":var{properties:a,newProperties:o}=e;return ma(ma({},e),{},{properties:o,newProperties:a});case"set_selection":var{properties:s,newProperties:u}=e;return ma(ma({},e),{},s==null?{properties:u,newProperties:null}:u==null?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return ma(ma({},e),{},{type:"merge_node",path:st.next(e.path)})}}},st={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=st.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return st.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return st.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return st.equals(r,i)&&a<o},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>st.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&st.compare(e,t)===0,isBefore:(e,t)=>st.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&st.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&st.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&st.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&st.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&st.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!st.isAncestor(t,e)&&!st.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Sy(e,r=>{var{affinity:i="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:a}=t;(st.equals(a,r)||st.endsBefore(a,r)||st.isAncestor(a,r))&&(r[a.length-1]+=1);break;case"remove_node":var{path:o}=t;if(st.equals(o,r)||st.isAncestor(o,r))return null;st.endsBefore(o,r)&&(r[o.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;st.equals(s,r)||st.endsBefore(s,r)?r[s.length-1]-=1:st.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:f,position:m}=t;if(st.equals(f,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else st.endsBefore(f,r)?r[f.length-1]+=1:st.isAncestor(f,r)&&e[f.length]>=m&&(r[f.length-1]+=1,r[f.length]-=m);break;case"move_node":var{path:k,newPath:K}=t;if(st.equals(k,K))return;if(st.isAncestor(k,r)||st.equals(k,r)){var U=K.slice();return st.endsBefore(k,K)&&k.length<K.length&&(U[k.length-1]-=1),U.concat(r.slice(k.length))}st.isSibling(k,K)&&(st.isAncestor(K,r)||st.equals(K,r))?st.endsBefore(k,r)?r[k.length-1]-=1:r[k.length-1]+=1:st.endsBefore(K,r)||st.equals(K,r)||st.isAncestor(K,r)?(st.endsBefore(k,r)&&(r[k.length-1]-=1),r[K.length-1]+=1):st.endsBefore(k,r)&&(st.equals(K,r)&&(r[K.length-1]+=1),r[k.length-1]-=1)}}})}},cV={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=st.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _P(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mr={compare(e,t){var n=st.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>mr.compare(e,t)===1,isBefore:(e,t)=>mr.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&st.equals(e.path,t.path),isPoint:e=>oo(e)&&typeof e.offset=="number"&&st.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Sy(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:a,offset:o}=r;switch(t.type){case"insert_node":case"move_node":r.path=st.transform(a,t,n);break;case"insert_text":st.equals(t.path,a)&&t.offset<=o&&(r.offset+=t.text.length);break;case"merge_node":st.equals(t.path,a)&&(r.offset+=t.position),r.path=st.transform(a,t,n);break;case"remove_text":st.equals(t.path,a)&&t.offset<=o&&(r.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(st.equals(t.path,a)||st.isAncestor(t.path,a))return null;r.path=st.transform(a,t,n);break;case"split_node":if(st.equals(t.path,a)){if(t.position===o&&i==null)return null;(t.position<o||t.position===o&&i==="forward")&&(r.offset-=t.position,r.path=st.transform(a,t,_P(_P({},n),{},{affinity:"forward"})))}else r.path=st.transform(a,t,n)}})}},dV={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=mr.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},hV=["anchor","focus"];function xP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}var _t={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return _t.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=_t.edges(e);return t},equals:(e,t)=>mr.equals(e.anchor,t.anchor)&&mr.equals(e.focus,t.focus),includes(e,t){if(_t.isRange(t)){if(_t.includes(e,t.anchor)||_t.includes(e,t.focus))return!0;var[n,r]=_t.edges(e),[i,a]=_t.edges(t);return mr.isBefore(n,i)&&mr.isAfter(r,a)}var[o,s]=_t.edges(e),u=!1,f=!1;return mr.isPoint(t)?(u=mr.compare(t,o)>=0,f=mr.compare(t,s)<=0):(u=st.compare(t,o.path)>=0,f=st.compare(t,s.path)<=0),u&&f},intersection(e,t){var n=nu(e,hV),[r,i]=_t.edges(e),[a,o]=_t.edges(t),s=mr.isBefore(r,a)?a:r,u=mr.isBefore(i,o)?i:o;return mr.isBefore(u,s)?null:function(f){for(var m=1;m<arguments.length;m++){var k=arguments[m]!=null?arguments[m]:{};m%2?xP(Object(k),!0).forEach(function(K){bl(f,K,k[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(k)):xP(Object(k)).forEach(function(K){Object.defineProperty(f,K,Object.getOwnPropertyDescriptor(k,K))})}return f}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return mr.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return mr.equals(t,n)},isExpanded:e=>!_t.isCollapsed(e),isForward:e=>!_t.isBackward(e),isRange:e=>oo(e)&&mr.isPoint(e.anchor)&&mr.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=_t.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Sy(e,r=>{if(r===null)return null;var i,a,{affinity:o="inward"}=n;if(o==="inward"){var s=_t.isCollapsed(r);_t.isForward(r)?(i="forward",a=s?i:"backward"):(i="backward",a=s?i:"forward")}else o==="outward"?_t.isForward(r)?(i="backward",a="forward"):(i="forward",a="backward"):(i=o,a=o);var u=mr.transform(r.anchor,t,{affinity:i}),f=mr.transform(r.focus,t,{affinity:a});if(!u||!f)return null;r.anchor=u,r.focus=f})}},fV={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=_t.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},wP=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(oo(r)&&oo(i)){if(!wP(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1}else if(r!==i)return!1}for(var o in t)if(e[o]===void 0&&t[o]!==void 0)return!1;return!0},pV=["text"],mV=["anchor","focus"];function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wn={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(a){return nu(a,pV)}return wP(r?i(e):e,r?i(t):t)},isText:e=>oo(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>wn.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[ru({},e)];for(var r of t){var i=nu(r,mV),[a,o]=_t.edges(r),s=[],u=0;for(var f of n){var{length:m}=f.text,k=u;if(u+=m,a.offset<=k&&o.offset>=u)Object.assign(f,i),s.push(f);else if(a.offset!==o.offset&&(a.offset===u||o.offset===k)||a.offset>u||o.offset<k||o.offset===k&&k!==0)s.push(f);else{var K=f,U=void 0,re=void 0;if(o.offset<u){var $=o.offset-k;re=ru(ru({},K),{},{text:K.text.slice($)}),K=ru(ru({},K),{},{text:K.text.slice(0,$)})}if(a.offset>k){var ee=a.offset-k;U=ru(ru({},K),{},{text:K.text.slice(0,ee)}),K=ru(ru({},K),{},{text:K.text.slice(ee)})}Object.assign(K,i),U&&s.push(U),s.push(K),re&&s.push(re)}}n=s}return n}};function SP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ym(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gV={transform(e,t){e.children=lP(e.children);var n=e.selection&&lP(e.selection);try{n=((r,i,a)=>{switch(a.type){case"insert_node":var{path:o,node:s}=a,u=fn.parent(r,o),f=o[o.length-1];if(f>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(o,"] because the destination is past the end of the node."));if(u.children.splice(f,0,s),i)for(var[m,k]of _t.points(i))i[k]=mr.transform(m,a);break;case"insert_text":var{path:K,offset:U,text:re}=a;if(re.length===0)break;var $=fn.leaf(r,K),ee=$.text.slice(0,U),te=$.text.slice(U);if($.text=ee+re+te,i)for(var[Q,he]of _t.points(i))i[he]=mr.transform(Q,a);break;case"merge_node":var{path:me}=a,_e=fn.get(r,me),ke=st.previous(me),De=fn.get(r,ke),Ye=fn.parent(r,me),rt=me[me.length-1];if(wn.isText(_e)&&wn.isText(De))De.text+=_e.text;else{if(wn.isText(_e)||wn.isText(De))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(me,"] to nodes of different interfaces: ").concat(_e," ").concat(De));De.children.push(..._e.children)}if(Ye.children.splice(rt,1),i)for(var[wt,Lt]of _t.points(i))i[Lt]=mr.transform(wt,a);break;case"move_node":var{path:Tt,newPath:Yt}=a;if(st.isAncestor(Tt,Yt))throw new Error("Cannot move a path [".concat(Tt,"] to new path [").concat(Yt,"] because the destination is inside itself."));var Ft=fn.get(r,Tt),jt=fn.parent(r,Tt),Wt=Tt[Tt.length-1];jt.children.splice(Wt,1);var En=st.transform(Tt,a),kn=fn.get(r,st.parent(En)),Ln=En[En.length-1];if(kn.children.splice(Ln,0,Ft),i)for(var[Rn,Ze]of _t.points(i))i[Ze]=mr.transform(Rn,a);break;case"remove_node":var{path:He}=a,ot=He[He.length-1];if(fn.parent(r,He).children.splice(ot,1),i)for(var[At,qt]of _t.points(i)){var Mt=mr.transform(At,a);if(i!=null&&Mt!=null)i[qt]=Mt;else{var Cn=void 0,Vn=void 0;for(var[qn,lr]of fn.texts(r)){if(st.compare(lr,He)!==-1){Vn=[qn,lr];break}Cn=[qn,lr]}var Ht=!1;Cn&&Vn&&(Ht=st.equals(Vn[1],He)?!st.hasPrevious(Vn[1]):st.common(Cn[1],He).length<st.common(Vn[1],He).length),Cn&&!Ht?(At.path=Cn[1],At.offset=Cn[0].text.length):Vn?(At.path=Vn[1],At.offset=0):i=null}}break;case"remove_text":var{path:Dr,offset:hr,text:Hn}=a;if(Hn.length===0)break;var fr=fn.leaf(r,Dr),Xi=fr.text.slice(0,hr),jr=fr.text.slice(hr+Hn.length);if(fr.text=Xi+jr,i)for(var[ni,Si]of _t.points(i))i[Si]=mr.transform(ni,a);break;case"set_node":var{path:fo,properties:Nr,newProperties:Mo}=a;if(fo.length===0)throw new Error("Cannot set properties on the root node!");var il=fn.get(r,fo);for(var Wl in Mo){if(Wl==="children"||Wl==="text")throw new Error('Cannot set the "'.concat(Wl,'" property of nodes!'));var Fp=Mo[Wl];Fp==null?delete il[Wl]:il[Wl]=Fp}for(var Oh in Nr)Mo.hasOwnProperty(Oh)||delete il[Oh];break;case"set_selection":var{newProperties:al}=a;if(al==null)i=al;else{if(i==null){if(!_t.isRange(al))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(al)," when there is no current selection."));i=ym({},al)}for(var zl in al){var _u=al[zl];if(_u==null){if(zl==="anchor"||zl==="focus")throw new Error('Cannot remove the "'.concat(zl,'" selection property'));delete i[zl]}else i[zl]=_u}}break;case"split_node":var{path:po,position:mo,properties:go}=a;if(po.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(po,"] because the root node cannot be split."));var wo,Ha=fn.get(r,po),Ms=fn.parent(r,po),k0=po[po.length-1];if(wn.isText(Ha)){var $c=Ha.text.slice(0,mo),xu=Ha.text.slice(mo);Ha.text=$c,wo=ym(ym({},go),{},{text:xu})}else{var jp=Ha.children.slice(0,mo),Dh=Ha.children.slice(mo);Ha.children=jp,wo=ym(ym({},go),{},{children:Dh})}if(Ms.children.splice(k0+1,0,wo),i)for(var[Up,ol]of _t.points(i))i[ol]=mr.transform(Up,a)}return i})(e,n,t)}finally{e.children=uP(e.children),e.selection=n?fd(n)?uP(n):n:null}}},vV=["text"],yV=["children"];function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bV={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ee.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:a="lowest"}=n,{at:o,match:s,select:u}=n;if(fn.isNode(t)&&(t=[t]),t.length!==0){var[f]=t;if(o||(o=e.selection?e.selection:e.children.length>0?Ee.end(e,[]):[0],u=!0),u==null&&(u=!1),_t.isRange(o))if(r||(o=Ee.unhangRange(e,o)),_t.isCollapsed(o))o=o.anchor;else{var[,m]=_t.edges(o),k=Ee.pointRef(e,m);ct.delete(e,{at:o}),o=k.unref()}if(mr.isPoint(o)){s==null&&(s=wn.isText(f)?ke=>wn.isText(ke):e.isInline(f)?ke=>wn.isText(ke)||Ee.isInline(e,ke):ke=>Ee.isBlock(e,ke));var[K]=Ee.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!K)return;var[,U]=K,re=Ee.pathRef(e,U),$=Ee.isEnd(e,o,U);ct.splitNodes(e,{at:o,match:s,mode:a,voids:i});var ee=re.unref();o=$?st.next(ee):ee}var te=st.parent(o),Q=o[o.length-1];if(i||!Ee.void(e,{at:te})){for(var he of t){var me=te.concat(Q);Q++,e.apply({type:"insert_node",path:me,node:he}),o=st.next(o)}if(o=st.previous(o),u){var _e=Ee.end(e,o);_e&&ct.select(e,_e)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:a}=t;if(a==null&&(a=st.isPath(n)?Qh(e,n):he=>Ee.isBlock(e,he)),n){var o=Ee.nodes(e,{at:n,match:a,mode:r,voids:i}),s=Array.from(o,he=>{var[,me]=he;return Ee.pathRef(e,me)});for(var u of s){var f=u.unref();if(f.length<2)throw new Error("Cannot lift node at a path [".concat(f,"] because it has a depth of less than `2`."));var m=Ee.node(e,st.parent(f)),[k,K]=m,U=f[f.length-1],{length:re}=k.children;if(re===1){var $=st.next(K);ct.moveNodes(e,{at:f,to:$,voids:i}),ct.removeNodes(e,{at:K,voids:i})}else if(U===0)ct.moveNodes(e,{at:f,to:K,voids:i});else if(U===re-1){var ee=st.next(K);ct.moveNodes(e,{at:f,to:ee,voids:i})}else{var te=st.next(f),Q=st.next(K);ct.splitNodes(e,{at:te,voids:i}),ct.moveNodes(e,{at:f,to:Q,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:a=!1,mode:o="lowest"}=t;if(r){if(n==null)if(st.isPath(r)){var[s]=Ee.parent(e,r);n=rt=>s.children.includes(rt)}else n=rt=>Ee.isBlock(e,rt);if(!i&&_t.isRange(r)&&(r=Ee.unhangRange(e,r)),_t.isRange(r))if(_t.isCollapsed(r))r=r.anchor;else{var[,u]=_t.edges(r),f=Ee.pointRef(e,u);ct.delete(e,{at:r}),r=f.unref(),t.at==null&&ct.select(e,r)}var[m]=Ee.nodes(e,{at:r,match:n,voids:a,mode:o}),k=Ee.previous(e,{at:r,match:n,voids:a,mode:o});if(m&&k){var[K,U]=m,[re,$]=k;if(U.length!==0&&$.length!==0){var ee,te,Q=st.next($),he=st.common(U,$),me=st.isSibling(U,$),_e=Array.from(Ee.levels(e,{at:U}),rt=>{var[wt]=rt;return wt}).slice(he.length).slice(0,-1),ke=Ee.above(e,{at:U,mode:"highest",match:rt=>_e.includes(rt)&&OP(e,rt)}),De=ke&&Ee.pathRef(e,ke[1]);if(wn.isText(K)&&wn.isText(re)){var Ye=nu(K,vV);te=re.text.length,ee=Ye}else{if(!Nn.isElement(K)||!Nn.isElement(re))throw new Error("Cannot merge the node at path [".concat(U,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(K)," ").concat(JSON.stringify(re)));Ye=nu(K,yV),te=re.children.length,ee=Ye}me||ct.moveNodes(e,{at:U,to:Q,voids:a}),De&&ct.removeNodes(e,{at:De.current,voids:a}),Nn.isElement(re)&&Ee.isEmpty(e,re)||wn.isText(re)&&re.text===""&&$[$.length-1]!==0?ct.removeNodes(e,{at:$,voids:a}):e.apply({type:"merge_node",path:Q,position:te,properties:ee}),De&&De.unref()}}}})},moveNodes(e,t){Ee.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:a=!1}=t,{match:o}=t;if(r){o==null&&(o=st.isPath(r)?Qh(e,r):U=>Ee.isBlock(e,U));var s=Ee.pathRef(e,n),u=Ee.nodes(e,{at:r,match:o,mode:i,voids:a}),f=Array.from(u,U=>{var[,re]=U;return Ee.pathRef(e,re)});for(var m of f){var k=m.unref(),K=s.current;k.length!==0&&e.apply({type:"move_node",path:k,newPath:K}),s.current&&st.isSibling(K,k)&&st.isAfter(K,k)&&(s.current=st.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:a=e.selection,match:o}=t;if(a){o==null&&(o=st.isPath(a)?Qh(e,a):K=>Ee.isBlock(e,K)),!n&&_t.isRange(a)&&(a=Ee.unhangRange(e,a));var s=Ee.nodes(e,{at:a,match:o,mode:i,voids:r}),u=Array.from(s,K=>{var[,U]=K;return Ee.pathRef(e,U)});for(var f of u){var m=f.unref();if(m){var[k]=Ee.node(e,m);e.apply({type:"remove_node",path:m,node:k})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ee.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:a=!1,mode:o="lowest",split:s=!1,voids:u=!1}=n;if(i){if(r==null&&(r=st.isPath(i)?Qh(e,i):_e=>Ee.isBlock(e,_e)),!a&&_t.isRange(i)&&(i=Ee.unhangRange(e,i)),s&&_t.isRange(i)){if(_t.isCollapsed(i)&&Ee.leaf(e,i.anchor)[0].text.length>0)return;var f=Ee.rangeRef(e,i,{affinity:"inward"}),[m,k]=_t.edges(i),K=o==="lowest"?"lowest":"highest",U=Ee.isEnd(e,k,k.path);ct.splitNodes(e,{at:k,match:r,mode:K,voids:u,always:!U});var re=Ee.isStart(e,m,m.path);ct.splitNodes(e,{at:m,match:r,mode:K,voids:u,always:!re}),i=f.unref(),n.at==null&&ct.select(e,i)}for(var[$,ee]of Ee.nodes(e,{at:i,match:r,mode:o,voids:u})){var te={},Q={};if(ee.length!==0){var he=!1;for(var me in t)me!=="children"&&me!=="text"&&t[me]!==$[me]&&(he=!0,$.hasOwnProperty(me)&&(te[me]=$[me]),t[me]!=null&&(Q[me]=t[me]));he&&e.apply({type:"set_node",path:ee,properties:te,newProperties:Q})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:a=e.selection,height:o=0,always:s=!1}=t;if(i==null&&(i=Ft=>Ee.isBlock(e,Ft)),_t.isRange(a)&&(a=EV(e,a)),st.isPath(a)){var u=a,f=Ee.point(e,u),[m]=Ee.parent(e,u);i=Ft=>Ft===m,o=f.path.length-u.length+1,a=f,s=!0}if(a){var k=Ee.pointRef(e,a,{affinity:"backward"}),[K]=Ee.nodes(e,{at:a,match:i,mode:n,voids:r});if(K){var U=Ee.void(e,{at:a,mode:"highest"});if(!r&&U){var[re,$]=U;if(Nn.isElement(re)&&e.isInline(re)){var ee=Ee.after(e,$);if(!ee){var te=st.next($);ct.insertNodes(e,{text:""},{at:te,voids:r}),ee=Ee.point(e,te)}a=ee,s=!0}o=a.path.length-$.length+1,s=!0}var Q=Ee.pointRef(e,a),he=a.path.length-o,[,me]=K,_e=a.path.slice(0,he),ke=o===0?a.offset:a.path[he]+0;for(var[De,Ye]of Ee.levels(e,{at:_e,reverse:!0,voids:r})){var rt=!1;if(Ye.length<me.length||Ye.length===0||!r&&Ee.isVoid(e,De))break;var wt=k.current,Lt=Ee.isEnd(e,wt,Ye);if(s||!k||!Ee.isEdge(e,wt,Ye)){rt=!0;var Tt=fn.extractProps(De);e.apply({type:"split_node",path:Ye,position:ke,properties:Tt})}ke=Ye[Ye.length-1]+(rt||Lt?1:0)}if(t.at==null){var Yt=Q.current||Ee.end(e,[]);ct.select(e,Yt)}k.unref(),Q.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;ct.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o==null&&(o=st.isPath(a)?Qh(e,a):K=>Ee.isBlock(e,K)),st.isPath(a)&&(a=Ee.range(e,a));var s=_t.isRange(a)?Ee.rangeRef(e,a):null,u=Ee.nodes(e,{at:a,match:o,mode:n,voids:i}),f=Array.from(u,K=>{var[,U]=K;return Ee.pathRef(e,U)}).reverse(),m=function(K){var U=K.unref(),[re]=Ee.node(e,U),$=Ee.range(e,U);r&&s&&($=_t.intersection(s.current,$)),ct.liftNodes(e,{at:$,match:ee=>Nn.isAncestor(re)&&re.children.includes(ee),voids:i})};for(var k of f)m(k);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ee.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o==null&&(o=st.isPath(s)?Qh(e,s):e.isInline(t)?ee=>Ee.isInline(e,ee)||wn.isText(ee):ee=>Ee.isBlock(e,ee)),i&&_t.isRange(s)){var[u,f]=_t.edges(s),m=Ee.rangeRef(e,s,{affinity:"inward"});ct.splitNodes(e,{at:f,match:o,voids:a}),ct.splitNodes(e,{at:u,match:o,voids:a}),s=m.unref(),n.at==null&&ct.select(e,s)}var k=Array.from(Ee.nodes(e,{at:s,match:e.isInline(t)?ee=>Ee.isBlock(e,ee):ee=>Ee.isEditor(ee),mode:"lowest",voids:a}));for(var[,K]of k){var U=_t.isRange(s)?_t.intersection(s,Ee.range(e,K)):s;if(U){var re=Array.from(Ee.nodes(e,{at:U,match:o,mode:r,voids:a}));if(re.length>0){var $=function(){var[ee]=re,te=re[re.length-1],[,Q]=ee,[,he]=te;if(Q.length===0&&he.length===0)return"continue";var me=st.equals(Q,he)?st.parent(Q):st.common(Q,he),_e=Ee.range(e,Q,he),ke=Ee.node(e,me),[De]=ke,Ye=me.length+1,rt=st.next(he.slice(0,Ye)),wt=AP(AP({},t),{},{children:[]});ct.insertNodes(e,wt,{at:rt,voids:a}),ct.moveNodes(e,{at:_e,match:Lt=>Nn.isAncestor(De)&&De.children.includes(Lt),to:rt.concat(0),voids:a})}();if($==="continue")continue}}}}})}},OP=(e,t)=>{if(Nn.isElement(t)){var n=t;return!!Ee.isVoid(e,t)||n.children.length===1&&OP(e,n.children[0])}return!Ee.isEditor(t)},EV=(e,t)=>{if(_t.isCollapsed(t))return t.anchor;var[,n]=_t.edges(t),r=Ee.pointRef(e,n);return ct.delete(e,{at:t}),r.unref()},Qh=(e,t)=>{var[n]=Ee.node(e,t);return r=>r===n};function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _V={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")ct.select(e,r.anchor);else if(n==="focus")ct.select(e,r.focus);else if(n==="start"){var[i]=_t.edges(r);ct.select(e,i)}else if(n==="end"){var[,a]=_t.edges(r);ct.select(e,a)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:a=!1}=t,{edge:o=null}=t;if(n){o==="start"&&(o=_t.isBackward(n)?"focus":"anchor"),o==="end"&&(o=_t.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,f={distance:r,unit:i},m={};if(o==null||o==="anchor"){var k=a?Ee.before(e,s,f):Ee.after(e,s,f);k&&(m.anchor=k)}if(o==null||o==="focus"){var K=a?Ee.before(e,u,f):Ee.after(e,u,f);K&&(m.focus=K)}ct.setSelection(e,m)}},select(e,t){var{selection:n}=e;if(t=Ee.range(e,t),n)ct.setSelection(e,t);else{if(!_t.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){i==="start"&&(i=_t.isBackward(r)?"focus":"anchor"),i==="end"&&(i=_t.isBackward(r)?"anchor":"focus");var{anchor:a,focus:o}=r,s=i==="anchor"?a:o;ct.setSelection(e,{[i==="anchor"?"anchor":"focus"]:RP(RP({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a==="anchor"&&t.anchor!=null&&!mr.equals(t.anchor,n.anchor)||a==="focus"&&t.focus!=null&&!mr.equals(t.focus,n.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==n[a])&&(r[a]=n[a],i[a]=t[a]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},xV={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:a=!1}=t,{at:o=e.selection,hanging:s=!1}=t;if(o){if(_t.isRange(o)&&_t.isCollapsed(o)&&(o=o.anchor),mr.isPoint(o)){var u=Ee.void(e,{at:o,mode:"highest"});if(!a&&u){var[,f]=u;o=f}else{var m={unit:r,distance:i};o={anchor:o,focus:n?Ee.before(e,o,m)||Ee.start(e,[]):Ee.after(e,o,m)||Ee.end(e,[])},s=!0}}if(st.isPath(o))ct.removeNodes(e,{at:o,voids:a});else if(!_t.isCollapsed(o)){if(!s){var[,k]=_t.edges(o),K=Ee.end(e,[]);mr.equals(k,K)||(o=Ee.unhangRange(e,o,{voids:a}))}var[U,re]=_t.edges(o),$=Ee.above(e,{match:Vn=>Ee.isBlock(e,Vn),at:U,voids:a}),ee=Ee.above(e,{match:Vn=>Ee.isBlock(e,Vn),at:re,voids:a}),te=$&&ee&&!st.equals($[1],ee[1]),Q=st.equals(U.path,re.path),he=a?null:Ee.void(e,{at:U,mode:"highest"}),me=a?null:Ee.void(e,{at:re,mode:"highest"});if(he){var _e=Ee.before(e,U);_e&&$&&st.isAncestor($[1],_e.path)&&(U=_e)}if(me){var ke=Ee.after(e,re);ke&&ee&&st.isAncestor(ee[1],ke.path)&&(re=ke)}var De,Ye=[];for(var rt of Ee.nodes(e,{at:o,voids:a})){var[wt,Lt]=rt;De&&st.compare(Lt,De)===0||(!a&&Ee.isVoid(e,wt)||!st.isCommon(Lt,U.path)&&!st.isCommon(Lt,re.path))&&(Ye.push(rt),De=Lt)}var Tt=Array.from(Ye,Vn=>{var[,qn]=Vn;return Ee.pathRef(e,qn)}),Yt=Ee.pointRef(e,U),Ft=Ee.pointRef(e,re);if(!Q&&!he){var jt=Yt.current,[Wt]=Ee.leaf(e,jt),{path:En}=jt,{offset:kn}=U,Ln=Wt.text.slice(kn);Ln.length>0&&e.apply({type:"remove_text",path:En,offset:kn,text:Ln})}for(var Rn of Tt){var Ze=Rn.unref();ct.removeNodes(e,{at:Ze,voids:a})}if(!me){var He=Ft.current,[ot]=Ee.leaf(e,He),{path:At}=He,qt=Q?U.offset:0,Mt=ot.text.slice(qt,re.offset);Mt.length>0&&e.apply({type:"remove_text",path:At,offset:qt,text:Mt})}!Q&&te&&Ft.current&&Yt.current&&ct.mergeNodes(e,{at:Ft.current,hanging:!0,voids:a});var Cn=n?Yt.unref()||Ft.unref():Ft.unref()||Yt.unref();t.at==null&&Cn&&ct.select(e,Cn)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ee.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(_t.isRange(a))if(r||(a=Ee.unhangRange(e,a)),_t.isCollapsed(a))a=a.anchor;else{var[,o]=_t.edges(a);if(!i&&Ee.void(e,{at:o}))return;var s=Ee.pointRef(e,o);ct.delete(e,{at:a}),a=s.unref()}else st.isPath(a)&&(a=Ee.start(e,a));if(i||!Ee.void(e,{at:a})){var u=Ee.above(e,{at:a,match:He=>Ee.isInline(e,He),mode:"highest",voids:i});if(u){var[,f]=u;Ee.isEnd(e,a,f)?a=Ee.after(e,f):Ee.isStart(e,a,f)&&(a=Ee.before(e,f))}var m=Ee.above(e,{match:He=>Ee.isBlock(e,He),at:a,voids:i}),[,k]=m,K=Ee.isStart(e,a,k),U=Ee.isEnd(e,a,k),re=K&&U,$=!K||K&&U,ee=!U,[,te]=fn.first({children:t},[]),[,Q]=fn.last({children:t},[]),he=[],me=He=>{var[ot,At]=He;return!(At.length===0)&&(!!re||!($&&st.isAncestor(At,te)&&Nn.isElement(ot)&&!e.isVoid(ot)&&!e.isInline(ot))&&!(ee&&st.isAncestor(At,Q)&&Nn.isElement(ot)&&!e.isVoid(ot)&&!e.isInline(ot)))};for(var _e of fn.nodes({children:t},{pass:me}))me(_e)&&he.push(_e);var ke=[],De=[],Ye=[],rt=!0,wt=!1;for(var[Lt]of he)Nn.isElement(Lt)&&!e.isInline(Lt)?(rt=!1,wt=!0,De.push(Lt)):rt?ke.push(Lt):Ye.push(Lt);var[Tt]=Ee.nodes(e,{at:a,match:He=>wn.isText(He)||Ee.isInline(e,He),mode:"highest",voids:i}),[,Yt]=Tt,Ft=Ee.isStart(e,a,Yt),jt=Ee.isEnd(e,a,Yt),Wt=Ee.pathRef(e,U?st.next(k):k),En=Ee.pathRef(e,jt?st.next(Yt):Yt),kn=Ee.pathRef(e,k);ct.splitNodes(e,{at:a,match:He=>wt?Ee.isBlock(e,He):wn.isText(He)||Ee.isInline(e,He),mode:wt?"lowest":"highest",voids:i});var Ln=Ee.pathRef(e,!Ft||Ft&&jt?st.next(Yt):Yt);if(ct.insertNodes(e,ke,{at:Ln.current,match:He=>wn.isText(He)||Ee.isInline(e,He),mode:"highest",voids:i}),re&&De.length&&ct.delete(e,{at:kn.unref(),voids:i}),ct.insertNodes(e,De,{at:Wt.current,match:He=>Ee.isBlock(e,He),mode:"lowest",voids:i}),ct.insertNodes(e,Ye,{at:En.current,match:He=>wn.isText(He)||Ee.isInline(e,He),mode:"highest",voids:i}),!n.at){var Rn;Rn=Ye.length>0?st.previous(En.current):De.length>0?st.previous(Wt.current):st.previous(Ln.current);var Ze=Ee.end(e,Rn);ct.select(e,Ze)}Ln.unref(),Wt.unref(),En.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ee.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(st.isPath(i)&&(i=Ee.range(e,i)),_t.isRange(i))if(_t.isCollapsed(i))i=i.anchor;else{var a=_t.end(i);if(!r&&Ee.void(e,{at:a}))return;var o=Ee.pointRef(e,a);ct.delete(e,{at:i,voids:r}),i=o.unref(),ct.setSelection(e,{anchor:i,focus:i})}if(r||!Ee.void(e,{at:i})){var{path:s,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}})}};function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ct=Oy(Oy(Oy(Oy({},gV),bV),_V),xV),gw="[object Map]",vw="[object Set]",wV=/^\[object .+?Constructor\]$/,TV=/^(?:0|[1-9]\d*)$/,SV="[\\ud800-\\udfff]",yw="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",bw="\\ud83c[\\udffb-\\udfff]",LP="[^\\ud800-\\udfff]",PP="(?:\\ud83c[\\udde6-\\uddff]){2}",kP="[\\ud800-\\udbff][\\udc00-\\udfff]",MP="(?:"+yw+"|"+bw+")?",CV="[\\ufe0e\\ufe0f]?"+MP+("(?:\\u200d(?:"+[LP,PP,kP].join("|")+")[\\ufe0e\\ufe0f]?"+MP+")*"),AV="(?:"+[LP+yw+"?",yw,PP,kP,SV].join("|")+")",OV=RegExp(bw+"(?="+bw+")|"+AV+CV,"g"),DV=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),RV=typeof ae=="object"&&ae&&ae.Object===Object&&ae,IV=typeof self=="object"&&self&&self.Object===Object&&self,gd=RV||IV||Function("return this")();function LV(e,t){return function(n,r){for(var i=-1,a=n?n.length:0,o=Array(a);++i<a;)o[i]=r(n[i],i,n);return o}(t,function(n){return e[n]})}function PV(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function kV(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function MV(e){return function(t){return DV.test(t)}(e)?function(t){return t.match(OV)||[]}(e):function(t){return t.split("")}(e)}var NP,BP,NV=Function.prototype,Dy=Object.prototype,Ew=gd["__core-js_shared__"],FP=function(){var e=/[^.]+$/.exec(Ew&&Ew.keys&&Ew.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),jP=NV.toString,Ry=Dy.hasOwnProperty,bm=Dy.toString,BV=RegExp("^"+jP.call(Ry).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),UP=gd.Symbol,_w=UP?UP.iterator:void 0,FV=Dy.propertyIsEnumerable,jV=(NP=Object.keys,BP=Object,function(e){return NP(BP(e))}),xw=Em(gd,"DataView"),ww=Em(gd,"Map"),Tw=Em(gd,"Promise"),Sw=Em(gd,"Set"),Cw=Em(gd,"WeakMap"),UV=yd(xw),HV=yd(ww),WV=yd(Tw),zV=yd(Sw),GV=yd(Cw);function KV(e,t){var n=HP(e)||function(o){return function(s){return GP(s)&&Aw(s)}(o)&&Ry.call(o,"callee")&&(!FV.call(o,"callee")||bm.call(o)=="[object Arguments]")}(e)?function(o,s){for(var u=-1,f=Array(o);++u<o;)f[u]=s(u);return f}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Ry.call(e,a)||i&&(a=="length"||XV(a,r))||n.push(a);return n}function VV(e){if(!zP(e)||function(n){return!!FP&&FP in n}(e))return!1;var t=WP(e)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch(i){}return r}(e)?BV:wV;return t.test(yd(e))}function YV(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||Dy,t!==r)return jV(e);var t,n,r,i=[];for(var a in Object(e))Ry.call(e,a)&&a!="constructor"&&i.push(a);return i}function Em(e,t){var n=function(r,i){return r==null?void 0:r[i]}(e,t);return VV(n)?n:void 0}var vd=function(e){return bm.call(e)};function XV(e,t){return!!(t=t==null?9007199254740991:t)&&(typeof e=="number"||TV.test(e))&&e>-1&&e%1==0&&e<t}function yd(e){if(e!=null){try{return jP.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(xw&&vd(new xw(new ArrayBuffer(1)))!="[object DataView]"||ww&&vd(new ww)!=gw||Tw&&vd(Tw.resolve())!="[object Promise]"||Sw&&vd(new Sw)!=vw||Cw&&vd(new Cw)!="[object WeakMap]")&&(vd=function(e){var t=bm.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?yd(n):void 0;if(r)switch(r){case UV:return"[object DataView]";case HV:return gw;case WV:return"[object Promise]";case zV:return vw;case GV:return"[object WeakMap]"}return t});var HP=Array.isArray;function Aw(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!WP(e)}function WP(e){var t=zP(e)?bm.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function zP(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function GP(e){return!!e&&typeof e=="object"}function JV(e){return e?LV(e,function(t){return Aw(t)?KV(t):YV(t)}(e)):[]}var KP=function(e){if(!e)return[];if(Aw(e))return function(n){return typeof n=="string"||!HP(n)&&GP(n)&&bm.call(n)=="[object String]"}(e)?MV(e):function(n,r){var i=-1,a=n.length;for(r||(r=Array(a));++i<a;)r[i]=n[i];return r}(e);if(_w&&e[_w])return function(n){for(var r,i=[];!(r=n.next()).done;)i.push(r.value);return i}(e[_w]());var t=vd(e);return(t==gw?PV:t==vw?kV:JV)(e)};function VP(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Ow(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:VP(t[n])&&VP(e[n])&&Object.keys(t[n]).length>0&&Ow(e[n],t[n])})}var YP={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function _m(){var e=typeof document!="undefined"?document:{};return Ow(e,YP),e}var QV={document:YP,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout!="undefined"&&clearTimeout(e)}};function bd(){var e=typeof window!="undefined"?window:{};return Ow(e,QV),e}function Dw(e){return Dw=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Dw(e)}function Iy(e,t){return Iy=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Iy(e,t)}function ZV(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Rw(e,t,n){return Rw=ZV()?Reflect.construct:function(r,i,a){var o=[null];o.push.apply(o,i);var s=new(Function.bind.apply(r,o));return a&&Iy(s,a.prototype),s},Rw.apply(null,arguments)}function Iw(e){var t=typeof Map=="function"?new Map:void 0;return Iw=function(n){if(n===null||!function(i){return Function.toString.call(i).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Rw(n,arguments,Dw(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Iy(r,n)},Iw(e)}var Hu=function(e){var t,n;function r(i){var a,o,s;return a=e.call.apply(e,[this].concat(i))||this,o=function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(a),s=o.__proto__,Object.defineProperty(o,"__proto__",{get:function(){return s},set:function(u){s.__proto__=u}}),a}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Iw(Array));function Ly(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Ly(n)):t.push(n)}),t}function XP(e,t){return Array.prototype.filter.call(e,t)}function Qe(e,t){var n=bd(),r=_m(),i=[];if(!t&&e instanceof Hu)return e;if(!e)return new Hu(i);if(typeof e=="string"){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var o="div";a.indexOf("<li")===0&&(o="ul"),a.indexOf("<tr")===0&&(o="tbody"),a.indexOf("<td")!==0&&a.indexOf("<th")!==0||(o="tr"),a.indexOf("<tbody")===0&&(o="table"),a.indexOf("<option")===0&&(o="select");var s=r.createElement(o);s.innerHTML=a;for(var u=0;u<s.childNodes.length;u+=1)i.push(s.childNodes[u])}else i=function(f,m){if(typeof f!="string")return[f];for(var k=[],K=m.querySelectorAll(f),U=0;U<K.length;U+=1)k.push(K[U]);return k}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Hu)return e;i=e}return new Hu(function(f){for(var m=[],k=0;k<f.length;k+=1)m.indexOf(f[k])===-1&&m.push(f[k]);return m}(i))}function Zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ly(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var a;(a=i.classList).add.apply(a,r)}),this}function $h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ly(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var a;(a=i.classList).remove.apply(a,r)}),this}function qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ly(t.map(function(i){return i.split(" ")}));return XP(this,function(i){return r.filter(function(a){return i.classList.contains(a)}).length>0}).length>0}function ms(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Py(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ef(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf("data-")>=0&&(n[t=a.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(s,u){return u.toUpperCase()})]=a.value)}for(var o in n)n[o]==="false"?n[o]=!1:n[o]==="true"?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}}function El(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var a=this[i];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()==="select")for(var o=0;o<a.options.length;o+=1)a.options[o].selected=e.indexOf(a.options[o].value)>=0;else a.value=e}return this}function _l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s($){var ee=$.target;if(ee){var te=$.target.dom7EventData||[];if(te.indexOf($)<0&&te.unshift($),Qe(ee).is(i))a.apply(ee,te);else for(var Q=Qe(ee).parents(),he=0;he<Q.length;he+=1)Qe(Q[he]).is(i)&&a.apply(Q[he],te)}}function u($){var ee=$&&$.target&&$.target.dom7EventData||[];ee.indexOf($)<0&&ee.unshift($),a.apply(this,ee)}typeof t[1]=="function"&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var f,m=r.split(" "),k=0;k<this.length;k+=1){var K=this[k];if(i)for(f=0;f<m.length;f+=1){var U=m[f];K.dom7LiveListeners||(K.dom7LiveListeners={}),K.dom7LiveListeners[U]||(K.dom7LiveListeners[U]=[]),K.dom7LiveListeners[U].push({listener:a,proxyListener:s}),K.addEventListener(U,s,o)}else for(f=0;f<m.length;f+=1){var re=m[f];K.dom7Listeners||(K.dom7Listeners={}),K.dom7Listeners[re]||(K.dom7Listeners[re]=[]),K.dom7Listeners[re].push({listener:a,proxyListener:u}),K.addEventListener(re,u,o)}}return this}function JP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];typeof t[1]=="function"&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var s=r.split(" "),u=0;u<s.length;u+=1)for(var f=s[u],m=0;m<this.length;m+=1){var k=this[m],K=void 0;if(!i&&k.dom7Listeners?K=k.dom7Listeners[f]:i&&k.dom7LiveListeners&&(K=k.dom7LiveListeners[f]),K&&K.length)for(var U=K.length-1;U>=0;U-=1){var re=K[U];a&&re.listener===a||a&&re.listener&&re.listener.dom7proxy&&re.listener.dom7proxy===a?(k.removeEventListener(f,re.proxyListener,o),K.splice(U,1)):a||(k.removeEventListener(f,re.proxyListener,o),K.splice(U,1))}}return this}function ky(){var e=bd();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function My(){var e=bd();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function QP(){if(this.length>0){var e=bd(),t=_m(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+u-o}}return null}function tf(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Ny(){for(var e=bd(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function By(e,t){var n,r=bd();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Fy(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function ZP(e){return Qe(XP(this,e))}function Wu(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function jy(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function $P(e){var t,n,r=bd(),i=_m(),a=this[0];if(!a||e===void 0)return!1;if(typeof e=="string"){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=Qe(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof Hu){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function gs(){for(var e,t=_m(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof Hu)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function qP(e){var t,n,r=_m();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var i=r.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Hu)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function nf(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?Qe(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Qe(t)}function Uy(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Qe(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Qe(t)}function rf(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return Qe(t)}function af(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!Qe(r[i]).is(e)||t.push(r[i]);return Qe(t)}function of(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function sf(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Qe.fn=Hu.prototype;var $V="resize scroll".split(" ");function e5(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var i=0;i<this.length;i+=1)$V.indexOf(e)<0&&(e in this[i]?this[i][e]():Qe(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var t5=e5("click"),zu=e5("focus"),qV="[object GeneratorFunction]",eY=/^(?:0|[1-9]\d*)$/;function tY(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var Hy=Object.prototype,Lw=Hy.hasOwnProperty,n5=Hy.toString,nY=Hy.propertyIsEnumerable,rY=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function iY(e,t){var n=a5(e)||function(o){return function(s){return function(u){return!!u&&typeof u=="object"}(s)&&Pw(s)}(o)&&Lw.call(o,"callee")&&(!nY.call(o,"callee")||n5.call(o)=="[object Arguments]")}(e)?function(o,s){for(var u=-1,f=Array(o);++u<o;)f[u]=s(u);return f}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Lw.call(e,a)||i&&(a=="length"||lY(a,r))||n.push(a);return n}var r5,i5,aY=(r5=function(e,t){return e&&oY(e,t,uY)},function(e,t){if(e==null)return e;if(!Pw(e))return r5(e,t);for(var n=e.length,r=i5?n:-1,i=Object(e);(i5?r--:++r<n)&&t(i[r],r,i)!==!1;);return e}),oY=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(n(a[u],u,a)===!1)break}return t}}();function sY(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||Hy,t!==r)return rY(e);var t,n,r,i=[];for(var a in Object(e))Lw.call(e,a)&&a!="constructor"&&i.push(a);return i}function lY(e,t){return!!(t=t==null?9007199254740991:t)&&(typeof e=="number"||eY.test(e))&&e>-1&&e%1==0&&e<t}var a5=Array.isArray;function Pw(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var n=function(r){var i=typeof r;return!!r&&(i=="object"||i=="function")}(t)?n5.call(t):"";return n=="[object Function]"||n==qV}(e)}function uY(e){return Pw(e)?iY(e):sY(e)}function cY(e){return e}var kw=function(e,t){return(a5(e)?tY:aY)(e,typeof t=="function"?t:cY)};let o5=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var dY=/^\s+|\s+$/g,hY=/^[-+]0x[0-9a-f]+$/i,fY=/^0b[01]+$/i,pY=/^0o[0-7]+$/i,mY=parseInt,gY=typeof ae=="object"&&ae&&ae.Object===Object&&ae,vY=typeof self=="object"&&self&&self.Object===Object&&self,yY=gY||vY||Function("return this")(),bY=Object.prototype.toString,EY=Math.max,_Y=Math.min,Mw=function(){return yY.Date.now()};function xY(e,t,n){var r,i,a,o,s,u,f=0,m=!1,k=!1,K=!0;if(typeof e!="function")throw new TypeError("Expected a function");function U(he){var me=r,_e=i;return r=i=void 0,f=he,o=e.apply(_e,me)}function re(he){return f=he,s=setTimeout(ee,t),m?U(he):o}function $(he){var me=he-u;return u===void 0||me>=t||me<0||k&&he-f>=a}function ee(){var he=Mw();if($(he))return te(he);s=setTimeout(ee,function(me){var _e=t-(me-u);return k?_Y(_e,a-(me-f)):_e}(he))}function te(he){return s=void 0,K&&r?U(he):(r=i=void 0,o)}function Q(){var he=Mw(),me=$(he);if(r=arguments,i=this,u=he,me){if(s===void 0)return re(u);if(k)return s=setTimeout(ee,t),U(u)}return s===void 0&&(s=setTimeout(ee,t)),o}return t=s5(t)||0,Wy(n)&&(m=!!n.leading,a=(k="maxWait"in n)?EY(s5(n.maxWait)||0,t):a,K="trailing"in n?!!n.trailing:K),Q.cancel=function(){s!==void 0&&clearTimeout(s),f=0,r=u=i=s=void 0},Q.flush=function(){return s===void 0?o:te(Mw())},Q}function Wy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function s5(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(i){return!!i&&typeof i=="object"}(r)&&bY.call(r)=="[object Symbol]"}(e))return NaN;if(Wy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(dY,"");var n=fY.test(e);return n||pY.test(e)?mY(e.slice(2),n?2:8):hY.test(e)?NaN:+e}var Ed=function(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError("Expected a function");return Wy(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xY(e,t,{leading:r,maxWait:t,trailing:i})};const wY={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function xm(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:t===void 0?void 0:t.key}}const Nw=Array.isArray;function zy(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Bw(e){return e===void 0}function Vo(e){return e!==void 0}const l5=xm("",{},[],void 0,void 0);function wm(e,t){var n,r;const i=e.key===t.key,a=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&i&&a}function TY(e,t,n){var r;const i={};for(let a=t;a<=n;++a){const o=(r=e[a])===null||r===void 0?void 0:r.key;o!==void 0&&(i[o]=a)}return i}const SY=["create","update","remove","destroy","pre","post"];function CY(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:wY;for(const k of SY)for(const K of e){const U=K[k];U!==void 0&&n[k].push(U)}function i(k){const K=k.id?"#"+k.id:"",U=k.getAttribute("class"),re=U?"."+U.split(" ").join("."):"";return xm(r.tagName(k).toLowerCase()+K+re,{},[],void 0,k)}function a(k,K){return function(){if(--K==0){const U=r.parentNode(k);r.removeChild(U,k)}}}function o(k,K){var U,re;let $,ee=k.data;if(ee!==void 0){const he=(U=ee.hook)===null||U===void 0?void 0:U.init;Vo(he)&&(he(k),ee=k.data)}const te=k.children,Q=k.sel;if(Q==="!")Bw(k.text)&&(k.text=""),k.elm=r.createComment(k.text);else if(Q!==void 0){const he=Q.indexOf("#"),me=Q.indexOf(".",he),_e=he>0?he:Q.length,ke=me>0?me:Q.length,De=he!==-1||me!==-1?Q.slice(0,Math.min(_e,ke)):Q,Ye=k.elm=Vo(ee)&&Vo($=ee.ns)?r.createElementNS($,De,ee):r.createElement(De,ee);for(_e<ke&&Ye.setAttribute("id",Q.slice(_e+1,ke)),me>0&&Ye.setAttribute("class",Q.slice(ke+1).replace(/\./g," ")),$=0;$<n.create.length;++$)n.create[$](l5,k);if(Nw(te))for($=0;$<te.length;++$){const wt=te[$];wt!=null&&r.appendChild(Ye,o(wt,K))}else zy(k.text)&&r.appendChild(Ye,r.createTextNode(k.text));const rt=k.data.hook;Vo(rt)&&((re=rt.create)===null||re===void 0||re.call(rt,l5,k),rt.insert&&K.push(k))}else k.elm=r.createTextNode(k.text);return k.elm}function s(k,K,U,re,$,ee){for(;re<=$;++re){const te=U[re];te!=null&&r.insertBefore(k,o(te,ee),K)}}function u(k){var K,U;const re=k.data;if(re!==void 0){(U=(K=re==null?void 0:re.hook)===null||K===void 0?void 0:K.destroy)===null||U===void 0||U.call(K,k);for(let $=0;$<n.destroy.length;++$)n.destroy[$](k);if(k.children!==void 0)for(let $=0;$<k.children.length;++$){const ee=k.children[$];ee!=null&&typeof ee!="string"&&u(ee)}}}function f(k,K,U,re){for(var $,ee;U<=re;++U){let te,Q;const he=K[U];if(he!=null)if(Vo(he.sel)){u(he),te=n.remove.length+1,Q=a(he.elm,te);for(let _e=0;_e<n.remove.length;++_e)n.remove[_e](he,Q);const me=(ee=($=he==null?void 0:he.data)===null||$===void 0?void 0:$.hook)===null||ee===void 0?void 0:ee.remove;Vo(me)?me(he,Q):Q()}else r.removeChild(k,he.elm)}}function m(k,K,U){var re,$,ee,te,Q;const he=(re=K.data)===null||re===void 0?void 0:re.hook;($=he==null?void 0:he.prepatch)===null||$===void 0||$.call(he,k,K);const me=K.elm=k.elm,_e=k.children,ke=K.children;if(k!==K){if(K.data!==void 0){for(let De=0;De<n.update.length;++De)n.update[De](k,K);(te=(ee=K.data.hook)===null||ee===void 0?void 0:ee.update)===null||te===void 0||te.call(ee,k,K)}Bw(K.text)?Vo(_e)&&Vo(ke)?_e!==ke&&function(De,Ye,rt,wt){let Lt,Tt,Yt,Ft,jt=0,Wt=0,En=Ye.length-1,kn=Ye[0],Ln=Ye[En],Rn=rt.length-1,Ze=rt[0],He=rt[Rn];for(;jt<=En&&Wt<=Rn;)kn==null?kn=Ye[++jt]:Ln==null?Ln=Ye[--En]:Ze==null?Ze=rt[++Wt]:He==null?He=rt[--Rn]:wm(kn,Ze)?(m(kn,Ze,wt),kn=Ye[++jt],Ze=rt[++Wt]):wm(Ln,He)?(m(Ln,He,wt),Ln=Ye[--En],He=rt[--Rn]):wm(kn,He)?(m(kn,He,wt),r.insertBefore(De,kn.elm,r.nextSibling(Ln.elm)),kn=Ye[++jt],He=rt[--Rn]):wm(Ln,Ze)?(m(Ln,Ze,wt),r.insertBefore(De,Ln.elm,kn.elm),Ln=Ye[--En],Ze=rt[++Wt]):(Lt===void 0&&(Lt=TY(Ye,jt,En)),Tt=Lt[Ze.key],Bw(Tt)?r.insertBefore(De,o(Ze,wt),kn.elm):(Yt=Ye[Tt],Yt.sel!==Ze.sel?r.insertBefore(De,o(Ze,wt),kn.elm):(m(Yt,Ze,wt),Ye[Tt]=void 0,r.insertBefore(De,Yt.elm,kn.elm))),Ze=rt[++Wt]);(jt<=En||Wt<=Rn)&&(jt>En?(Ft=rt[Rn+1]==null?null:rt[Rn+1].elm,s(De,Ft,rt,Wt,Rn,wt)):f(De,Ye,jt,En))}(me,_e,ke,U):Vo(ke)?(Vo(k.text)&&r.setTextContent(me,""),s(me,null,ke,0,ke.length-1,U)):Vo(_e)?f(me,_e,0,_e.length-1):Vo(k.text)&&r.setTextContent(me,""):k.text!==K.text&&(Vo(_e)&&f(me,_e,0,_e.length-1),r.setTextContent(me,K.text)),(Q=he==null?void 0:he.postpatch)===null||Q===void 0||Q.call(he,k,K)}}return function(k,K){let U,re,$;const ee=[];for(U=0;U<n.pre.length;++U)n.pre[U]();for(function(te){return te.sel!==void 0}(k)||(k=i(k)),wm(k,K)?m(k,K,ee):(re=k.elm,$=r.parentNode(re),o(K,ee),$!==null&&(r.insertBefore($,K.elm,r.nextSibling(re)),f($,[k],0,0))),U=0;U<ee.length;++U)ee[U].data.hook.insert(ee[U]);for(U=0;U<n.post.length;++U)n.post[U]();return K}}function u5(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const i=t[r].data;i!==void 0&&u5(i,t[r].children,t[r].sel)}}function lf(e,t,n){let r,i,a,o={};if(n!==void 0?(t!==null&&(o=t),Nw(n)?r=n:zy(n)?i=n.toString():n&&n.sel&&(r=[n])):t!=null&&(Nw(t)?r=t:zy(t)?i=t.toString():t&&t.sel?r=[t]:o=t),r!==void 0)for(a=0;a<r.length;++a)zy(r[a])&&(r[a]=xm(void 0,void 0,void 0,r[a],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||u5(o,r,e),xm(e,o,r,i,void 0)}function c5(e,t){let n;const r=t.elm;let i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},a){const o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,o):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,o):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}const AY={create:c5,update:c5};function d5(e,t){let n,r;const i=t.elm;let a=e.data.class,o=t.data.class;if((a||o)&&a!==o){for(r in a=a||{},o=o||{},a)a[r]&&!Object.prototype.hasOwnProperty.call(o,r)&&i.classList.remove(r);for(r in o)n=o[r],n!==a[r]&&i.classList[n?"add":"remove"](r)}}const OY={create:d5,update:d5},h5=/[A-Z]/g;function f5(e,t){const n=t.elm;let r,i=e.data.dataset,a=t.data.dataset;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const o=n.dataset;for(r in i)a[r]||(o?r in o&&delete o[r]:n.removeAttribute("data-"+r.replace(h5,"-$&").toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute("data-"+r.replace(h5,"-$&").toLowerCase(),a[r]))}const DY={create:f5,update:f5};function p5(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)p5(e[r],t,n)}function RY(e,t){const n=e.type,r=t.data.on;r&&r[n]&&p5(r[n],t,e)}function Fw(e,t){const n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm;let s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(a){const u=t.listener=e.listener||function f(m){RY(m,f.vnode)};if(u.vnode=t,n)for(s in a)n[s]||o.addEventListener(s,u,!1);else for(s in a)o.addEventListener(s,u,!1)}}}const IY={create:Fw,update:Fw,destroy:Fw};function m5(e,t){let n,r,i;const a=t.elm;let o=e.data.props,s=t.data.props;if((o||s)&&o!==s)for(n in o=o||{},s=s||{},s)r=s[n],i=o[n],i===r||n==="value"&&a[n]===r||(a[n]=r)}const LY={create:m5,update:m5},g5=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout;let jw=!1;function PY(e,t,n){!function(r){g5(function(){g5(r)})}(function(){e[t]=n})}function v5(e,t){let n,r;const i=t.elm;let a=e.data.style,o=t.data.style;if(!a&&!o)return;if(a===o)return;a=a||{},o=o||{};const s="delayed"in a;for(r in a)o[r]||(r[0]==="-"&&r[1]==="-"?i.style.removeProperty(r):i.style[r]="");for(r in o)if(n=o[r],r==="delayed"&&o.delayed)for(const u in o.delayed)n=o.delayed[u],s&&n===a.delayed[u]||PY(i.style,u,n);else r!=="remove"&&n!==a[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}const kY={pre:function(){jw=!1},create:v5,update:v5,destroy:function(e){let t,n;const r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;jw||(e.elm.offsetLeft,jw=!0);const i=e.elm;let a=0;const o=n.remove;let s=0;const u=[];for(r in o)u.push(r),i.style[r]=o[r];const f=getComputedStyle(i)["transition-property"].split(", ");for(;a<f.length;++a)u.indexOf(f[a])!==-1&&s++;i.addEventListener("transitionend",function(m){m.target===i&&--s,s===0&&t()})}};function y5(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?y5(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(xm(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function er(e,t,...n){const r=y5(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?lf(e,t,r[0].text):lf(e,t,r)}er||(er={});var MY=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,NY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b5="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",BY="[\\ud800-\\udfff]",E5="["+b5+"]",Gy="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",_5="\\d+",FY="[\\u2700-\\u27bf]",x5="[a-z\\xdf-\\xf6\\xf8-\\xff]",w5="[^\\ud800-\\udfff"+b5+_5+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Uw="\\ud83c[\\udffb-\\udfff]",T5="[^\\ud800-\\udfff]",Hw="(?:\\ud83c[\\udde6-\\uddff]){2}",Ww="[\\ud800-\\udbff][\\udc00-\\udfff]",uf="[A-Z\\xc0-\\xd6\\xd8-\\xde]",S5="(?:"+x5+"|"+w5+")",jY="(?:"+uf+"|"+w5+")",C5="(?:"+Gy+"|"+Uw+")?",A5="[\\ufe0e\\ufe0f]?"+C5+("(?:\\u200d(?:"+[T5,Hw,Ww].join("|")+")[\\ufe0e\\ufe0f]?"+C5+")*"),UY="(?:"+[FY,Hw,Ww].join("|")+")"+A5,HY="(?:"+[T5+Gy+"?",Gy,Hw,Ww,BY].join("|")+")",WY=RegExp("['\u2019]","g"),zY=RegExp(Gy,"g"),GY=RegExp(Uw+"(?="+Uw+")|"+HY+A5,"g"),KY=RegExp([uf+"?"+x5+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[E5,uf,"$"].join("|")+")",jY+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[E5,uf+S5,"$"].join("|")+")",uf+"?"+S5+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",uf+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",_5,UY].join("|"),"g"),VY=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),YY=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,XY=typeof ae=="object"&&ae&&ae.Object===Object&&ae,JY=typeof self=="object"&&self&&self.Object===Object&&self,QY=XY||JY||Function("return this")(),zw,ZY=(zw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},function(e){return zw==null?void 0:zw[e]});function O5(e){return VY.test(e)}function $Y(e){return O5(e)?function(t){return t.match(GY)||[]}(e):function(t){return t.split("")}(e)}var qY=Object.prototype.toString,D5=QY.Symbol,R5=D5?D5.prototype:void 0,I5=R5?R5.toString:void 0;function eX(e){if(typeof e=="string")return e;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&qY.call(n)=="[object Symbol]"}(e))return I5?I5.call(e):"";var t=e+"";return t=="0"&&1/e==-Infinity?"-0":t}function tX(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(i,a,o){var s=-1,u=i.length;a<0&&(a=-a>u?0:u+a),(o=o>u?u:o)<0&&(o+=u),u=a>o?0:o-a>>>0,a>>>=0;for(var f=Array(u);++s<u;)f[s]=i[s+a];return f}(e,t,n)}function Ky(e){return e==null?"":eX(e)}for(var L5,nX=(L5=function(e,t,n){return t=t.toLowerCase(),e+(n?rX(Ky(t).toLowerCase()):t)},function(e){return function(t,n,r,i){var a=-1,o=t?t.length:0;for(i&&o&&(r=t[++a]);++a<o;)r=n(r,t[a],a,t);return r}(function(t,n,r){return t=Ky(t),(n=r?void 0:n)===void 0?function(i){return YY.test(i)}(t)?function(i){return i.match(KY)||[]}(t):function(i){return i.match(MY)||[]}(t):t.match(n)||[]}(function(t){return(t=Ky(t))&&t.replace(NY,ZY).replace(zY,"")}(e).replace(WY,"")),L5,"")}),P5,rX=(P5="toUpperCase",function(e){var t=O5(e=Ky(e))?$Y(e):void 0,n=t?t[0]:e.charAt(0),r=t?tX(t,1).join(""):e.slice(1);return n[P5]()+r}),iX=nX,aX=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Gw={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},k5={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:aX?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Kw={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Vy=1;Vy<20;Vy++)Kw["f"+Vy]=111+Vy;function M5(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return function(o,s){var u=s&&s.byKey,f={},m=(o=o.replace("++","+add")).split("+"),k=m.length;for(var K in Gw)f[Gw[K]]=!1;var U=!0,re=!1,$=void 0;try{for(var ee,te=m[Symbol.iterator]();!(U=(ee=te.next()).done);U=!0){var Q=ee.value,he=Q.endsWith("?")&&Q.length>1;he&&(Q=Q.slice(0,-1));var me=N5(Q),_e=Gw[me];if(Q.length>1&&!_e&&!k5[Q]&&!Kw[me])throw new TypeError('Unknown modifier: "'+Q+'"');k!==1&&_e||(u?f.key=me:f.which=oX(Q)),_e&&(f[_e]=!he||null)}}catch(ke){re=!0,$=ke}finally{try{!U&&te.return&&te.return()}finally{if(re)throw $}}return f}(a,t)}),i=function(a){return r.some(function(o){return function(s,u){for(var f in s){var m=s[f],k=void 0;if(m!=null&&((k=f==="key"&&u.key!=null?u.key.toLowerCase():f==="which"?m===91&&u.which===93?91:u.which:u[f])!=null||m!==!1)&&k!==m)return!1}return!0}(o,a)})};return n==null?i:i(n)}function oX(e){return e=N5(e),Kw[e]||e.toUpperCase().charCodeAt(0)}function N5(e){return e=e.toLowerCase(),e=k5[e]||e}var sX=M5,Vw=function(e,t){return M5(e,{byKey:!0},t)},lX=/^\s+|\s+$/g,uX=/^[-+]0x[0-9a-f]+$/i,cX=/^0b[01]+$/i,dX=/^0o[0-7]+$/i,hX=parseInt,fX=typeof ae=="object"&&ae&&ae.Object===Object&&ae,pX=typeof self=="object"&&self&&self.Object===Object&&self,mX=fX||pX||Function("return this")(),gX=Object.prototype.toString,vX=Math.max,yX=Math.min,Yw=function(){return mX.Date.now()};function Xw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function B5(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(i){return!!i&&typeof i=="object"}(r)&&gX.call(r)=="[object Symbol]"}(e))return NaN;if(Xw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(lX,"");var n=cX.test(e);return n||dX.test(e)?hX(e.slice(2),n?2:8):uX.test(e)?NaN:+e}var cf,F5=function(e,t,n){var r,i,a,o,s,u,f=0,m=!1,k=!1,K=!0;if(typeof e!="function")throw new TypeError("Expected a function");function U(he){var me=r,_e=i;return r=i=void 0,f=he,o=e.apply(_e,me)}function re(he){return f=he,s=setTimeout(ee,t),m?U(he):o}function $(he){var me=he-u;return u===void 0||me>=t||me<0||k&&he-f>=a}function ee(){var he=Yw();if($(he))return te(he);s=setTimeout(ee,function(me){var _e=t-(me-u);return k?yX(_e,a-(me-f)):_e}(he))}function te(he){return s=void 0,K&&r?U(he):(r=i=void 0,o)}function Q(){var he=Yw(),me=$(he);if(r=arguments,i=this,u=he,me){if(s===void 0)return re(u);if(k)return s=setTimeout(ee,t),U(u)}return s===void 0&&(s=setTimeout(ee,t)),o}return t=B5(t)||0,Xw(n)&&(m=!!n.leading,a=(k="maxWait"in n)?vX(B5(n.maxWait)||0,t):a,K="trailing"in n?!!n.trailing:K),Q.cancel=function(){s!==void 0&&clearTimeout(s),f=0,r=u=i=s=void 0},Q.flush=function(){return s===void 0?o:te(Yw())},Q},j5=le(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",o="[object Date]",s="[object Function]",u="[object GeneratorFunction]",f="[object Map]",m="[object Number]",k="[object Object]",K="[object Promise]",U="[object RegExp]",re="[object Set]",$="[object String]",ee="[object Symbol]",te="[object WeakMap]",Q="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",_e="[object Float64Array]",ke="[object Int8Array]",De="[object Int16Array]",Ye="[object Int32Array]",rt="[object Uint8Array]",wt="[object Uint8ClampedArray]",Lt="[object Uint16Array]",Tt="[object Uint32Array]",Yt=/\w*$/,Ft=/^\[object .+?Constructor\]$/,jt=/^(?:0|[1-9]\d*)$/,Wt={};Wt[i]=Wt["[object Array]"]=Wt[Q]=Wt[he]=Wt[a]=Wt[o]=Wt[me]=Wt[_e]=Wt[ke]=Wt[De]=Wt[Ye]=Wt[f]=Wt[m]=Wt[k]=Wt[U]=Wt[re]=Wt[$]=Wt[ee]=Wt[rt]=Wt[wt]=Wt[Lt]=Wt[Tt]=!0,Wt["[object Error]"]=Wt[s]=Wt[te]=!1;var En=typeof ae=="object"&&ae&&ae.Object===Object&&ae,kn=typeof self=="object"&&self&&self.Object===Object&&self,Ln=En||kn||Function("return this")(),Rn=t&&!t.nodeType&&t,Ze=Rn&&e&&!e.nodeType&&e,He=Ze&&Ze.exports===Rn;function ot(tt,St){return tt.set(St[0],St[1]),tt}function At(tt,St){return tt.add(St),tt}function qt(tt,St,mn,In){var kr=-1,gi=tt?tt.length:0;for(In&&gi&&(mn=tt[++kr]);++kr<gi;)mn=St(mn,tt[kr],kr,tt);return mn}function Mt(tt){var St=!1;if(tt!=null&&typeof tt.toString!="function")try{St=!!(tt+"")}catch(mn){}return St}function Cn(tt){var St=-1,mn=Array(tt.size);return tt.forEach(function(In,kr){mn[++St]=[kr,In]}),mn}function Vn(tt,St){return function(mn){return tt(St(mn))}}function qn(tt){var St=-1,mn=Array(tt.size);return tt.forEach(function(In){mn[++St]=In}),mn}var lr=Array.prototype,Ht=Function.prototype,Dr=Object.prototype,hr=Ln["__core-js_shared__"],Hn=function(){var tt=/[^.]+$/.exec(hr&&hr.keys&&hr.keys.IE_PROTO||"");return tt?"Symbol(src)_1."+tt:""}(),fr=Ht.toString,Xi=Dr.hasOwnProperty,jr=Dr.toString,ni=RegExp("^"+fr.call(Xi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Si=He?Ln.Buffer:void 0,fo=Ln.Symbol,Nr=Ln.Uint8Array,Mo=Vn(Object.getPrototypeOf,Object),il=Object.create,Wl=Dr.propertyIsEnumerable,Fp=lr.splice,Oh=Object.getOwnPropertySymbols,al=Si?Si.isBuffer:void 0,zl=Vn(Object.keys,Object),_u=Gl(Ln,"DataView"),po=Gl(Ln,"Map"),mo=Gl(Ln,"Promise"),go=Gl(Ln,"Set"),wo=Gl(Ln,"WeakMap"),Ha=Gl(Object,"create"),Ms=Vl(_u),k0=Vl(po),$c=Vl(mo),xu=Vl(go),jp=Vl(wo),Dh=fo?fo.prototype:void 0,Up=Dh?Dh.valueOf:void 0;function ol(tt){var St=-1,mn=tt?tt.length:0;for(this.clear();++St<mn;){var In=tt[St];this.set(In[0],In[1])}}function Ns(tt){var St=-1,mn=tt?tt.length:0;for(this.clear();++St<mn;){var In=tt[St];this.set(In[0],In[1])}}function wu(tt){var St=-1,mn=tt?tt.length:0;for(this.clear();++St<mn;){var In=tt[St];this.set(In[0],In[1])}}function sl(tt){this.__data__=new Ns(tt)}function qc(tt,St){var mn=at(tt)||function(ii){return function(Wr){return function(La){return!!La&&typeof La=="object"}(Wr)&&bt(Wr)}(ii)&&Xi.call(ii,"callee")&&(!Wl.call(ii,"callee")||jr.call(ii)==i)}(tt)?function(ii,Wr){for(var La=-1,vo=Array(ii);++La<ii;)vo[La]=Wr(La);return vo}(tt.length,String):[],In=mn.length,kr=!!In;for(var gi in tt)!St&&!Xi.call(tt,gi)||kr&&(gi=="length"||V_(gi,In))||mn.push(gi);return mn}function G_(tt,St,mn){var In=tt[St];Xi.call(tt,St)&&Y_(In,mn)&&(mn!==void 0||St in tt)||(tt[St]=mn)}function is(tt,St){for(var mn=tt.length;mn--;)if(Y_(tt[mn][0],St))return mn;return-1}function M0(tt,St,mn,In,kr,gi,ii){var Wr;if(In&&(Wr=gi?In(tt,kr,gi,ii):In(tt)),Wr!==void 0)return Wr;if(!ri(tt))return tt;var La=at(tt);if(La){if(Wr=function(nr){var Xr=nr.length,ca=nr.constructor(Xr);return Xr&&typeof nr[0]=="string"&&Xi.call(nr,"index")&&(ca.index=nr.index,ca.input=nr.input),ca}(tt),!St)return function(nr,Xr){var ca=-1,Rr=nr.length;for(Xr||(Xr=Array(Rr));++ca<Rr;)Xr[ca]=nr[ca];return Xr}(tt,Wr)}else{var vo=Kl(tt),Rh=vo==s||vo==u;if(un(tt))return function(nr,Xr){if(Xr)return nr.slice();var ca=new nr.constructor(nr.length);return nr.copy(ca),ca}(tt,St);if(vo==k||vo==i||Rh&&!gi){if(Mt(tt))return gi?tt:{};if(Wr=function(nr){return typeof nr.constructor!="function"||ed(nr)?{}:(Xr=Mo(nr),ri(Xr)?il(Xr):{});var Xr}(Rh?{}:tt),!St)return function(nr,Xr){return K_(nr,N0(nr),Xr)}(tt,function(nr,Xr){return nr&&K_(Xr,Tr(Xr),nr)}(Wr,tt))}else{if(!Wt[vo])return gi?tt:{};Wr=function(nr,Xr,ca,Rr){var zr=nr.constructor;switch(Xr){case Q:return Hp(nr);case a:case o:return new zr(+nr);case he:return function(Gr,Ji){var To=Ji?Hp(Gr.buffer):Gr.buffer;return new Gr.constructor(To,Gr.byteOffset,Gr.byteLength)}(nr,Rr);case me:case _e:case ke:case De:case Ye:case rt:case wt:case Lt:case Tt:return function(Gr,Ji){var To=Ji?Hp(Gr.buffer):Gr.buffer;return new Gr.constructor(To,Gr.byteOffset,Gr.length)}(nr,Rr);case f:return function(Gr,Ji,To){return qt(Ji?To(Cn(Gr),!0):Cn(Gr),ot,new Gr.constructor)}(nr,Rr,ca);case m:case $:return new zr(nr);case U:return function(Gr){var Ji=new Gr.constructor(Gr.source,Yt.exec(Gr));return Ji.lastIndex=Gr.lastIndex,Ji}(nr);case re:return function(Gr,Ji,To){return qt(Ji?To(qn(Gr),!0):qn(Gr),At,new Gr.constructor)}(nr,Rr,ca);case ee:return function(Gr){return Up?Object(Up.call(Gr)):{}}(nr)}}(tt,vo,M0,St)}}ii||(ii=new sl);var Cu=ii.get(tt);if(Cu)return Cu;if(ii.set(tt,Wr),!La)var td=mn?function(nr){return function(Xr,ca,Rr){var zr=ca(Xr);return at(Xr)?zr:function(Gr,Ji){for(var To=-1,No=Ji.length,ll=Gr.length;++To<No;)Gr[ll+To]=Ji[To];return Gr}(zr,Rr(Xr))}(nr,Tr,N0)}(tt):Tr(tt);return function(nr,Xr){for(var ca=-1,Rr=nr?nr.length:0;++ca<Rr&&Xr(nr[ca],ca,nr)!==!1;);}(td||tt,function(nr,Xr){td&&(nr=tt[Xr=nr]),G_(Wr,Xr,M0(nr,St,mn,In,Xr,tt,ii))}),Wr}function Tu(tt){return!(!ri(tt)||function(St){return!!Hn&&Hn in St}(tt))&&(Kn(tt)||Mt(tt)?ni:Ft).test(Vl(tt))}function Hp(tt){var St=new tt.constructor(tt.byteLength);return new Nr(St).set(new Nr(tt)),St}function K_(tt,St,mn,In){mn||(mn={});for(var kr=-1,gi=St.length;++kr<gi;){var ii=St[kr],Wr=In?In(mn[ii],tt[ii],ii,mn,tt):void 0;G_(mn,ii,Wr===void 0?tt[ii]:Wr)}return mn}function Su(tt,St){var mn,In,kr=tt.__data__;return((In=typeof(mn=St))=="string"||In=="number"||In=="symbol"||In=="boolean"?mn!=="__proto__":mn===null)?kr[typeof St=="string"?"string":"hash"]:kr.map}function Gl(tt,St){var mn=function(In,kr){return In==null?void 0:In[kr]}(tt,St);return Tu(mn)?mn:void 0}ol.prototype.clear=function(){this.__data__=Ha?Ha(null):{}},ol.prototype.delete=function(tt){return this.has(tt)&&delete this.__data__[tt]},ol.prototype.get=function(tt){var St=this.__data__;if(Ha){var mn=St[tt];return mn===n?void 0:mn}return Xi.call(St,tt)?St[tt]:void 0},ol.prototype.has=function(tt){var St=this.__data__;return Ha?St[tt]!==void 0:Xi.call(St,tt)},ol.prototype.set=function(tt,St){return this.__data__[tt]=Ha&&St===void 0?n:St,this},Ns.prototype.clear=function(){this.__data__=[]},Ns.prototype.delete=function(tt){var St=this.__data__,mn=is(St,tt);return!(mn<0)&&(mn==St.length-1?St.pop():Fp.call(St,mn,1),!0)},Ns.prototype.get=function(tt){var St=this.__data__,mn=is(St,tt);return mn<0?void 0:St[mn][1]},Ns.prototype.has=function(tt){return is(this.__data__,tt)>-1},Ns.prototype.set=function(tt,St){var mn=this.__data__,In=is(mn,tt);return In<0?mn.push([tt,St]):mn[In][1]=St,this},wu.prototype.clear=function(){this.__data__={hash:new ol,map:new(po||Ns),string:new ol}},wu.prototype.delete=function(tt){return Su(this,tt).delete(tt)},wu.prototype.get=function(tt){return Su(this,tt).get(tt)},wu.prototype.has=function(tt){return Su(this,tt).has(tt)},wu.prototype.set=function(tt,St){return Su(this,tt).set(tt,St),this},sl.prototype.clear=function(){this.__data__=new Ns},sl.prototype.delete=function(tt){return this.__data__.delete(tt)},sl.prototype.get=function(tt){return this.__data__.get(tt)},sl.prototype.has=function(tt){return this.__data__.has(tt)},sl.prototype.set=function(tt,St){var mn=this.__data__;if(mn instanceof Ns){var In=mn.__data__;if(!po||In.length<199)return In.push([tt,St]),this;mn=this.__data__=new wu(In)}return mn.set(tt,St),this};var N0=Oh?Vn(Oh,Object):function(){return[]},Kl=function(tt){return jr.call(tt)};function V_(tt,St){return!!(St=St==null?r:St)&&(typeof tt=="number"||jt.test(tt))&&tt>-1&&tt%1==0&&tt<St}function ed(tt){var St=tt&&tt.constructor;return tt===(typeof St=="function"&&St.prototype||Dr)}function Vl(tt){if(tt!=null){try{return fr.call(tt)}catch(St){}try{return tt+""}catch(St){}}return""}function Y_(tt,St){return tt===St||tt!=tt&&St!=St}(_u&&Kl(new _u(new ArrayBuffer(1)))!=he||po&&Kl(new po)!=f||mo&&Kl(mo.resolve())!=K||go&&Kl(new go)!=re||wo&&Kl(new wo)!=te)&&(Kl=function(tt){var St=jr.call(tt),mn=St==k?tt.constructor:void 0,In=mn?Vl(mn):void 0;if(In)switch(In){case Ms:return he;case k0:return f;case $c:return K;case xu:return re;case jp:return te}return St});var at=Array.isArray;function bt(tt){return tt!=null&&function(St){return typeof St=="number"&&St>-1&&St%1==0&&St<=r}(tt.length)&&!Kn(tt)}var un=al||function(){return!1};function Kn(tt){var St=ri(tt)?jr.call(tt):"";return St==s||St==u}function ri(tt){var St=typeof tt;return!!tt&&(St=="object"||St=="function")}function Tr(tt){return bt(tt)?qc(tt):function(St){if(!ed(St))return zl(St);var mn=[];for(var In in Object(St))Xi.call(St,In)&&In!="constructor"&&mn.push(In);return mn}(tt)}e.exports=function(tt){return M0(tt,!0,!0)}});function U5(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bX=0;function EX(e){return"__private_"+bX+++"_"+e}function _X(e,t,n){const r=[];return e.forEach(i=>typeof i!="string"?r.push(i):t[Symbol.split](i).forEach((a,o,s)=>{a!==""&&r.push(a),o<s.length-1&&r.push(n)})),r}/**
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function H5(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const i of Object.keys(t))if(i!=="_"){let a=t[i];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=_X(r,new RegExp(`%\\{${i}\\}`,"g"),a)}return r}var W5=(cf=EX("apply"),class{constructor(e){Object.defineProperty(this,cf,{value:xX}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(U5(this,cf)[cf],this):U5(this,cf)[cf](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,i){return Object.prototype.hasOwnProperty.call(r,i)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return H5(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return H5(n,t)}});function xX(e){if(e==null||!e.strings)return;const t=this.locale;this.locale=kt(kt({},t),{strings:kt(kt({},t.strings),e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}var z5=function(){var e={},t=e._fns={};return e.emit=function(n,r,i,a,o,s,u){var f=function(m){for(var k=t[m]?t[m]:[],K=m.indexOf(":"),U=K===-1?[m]:[m.substring(0,K),m.substring(K+1)],re=Object.keys(t),$=0,ee=re.length;$<ee;$++){var te=re[$];if(te==="*"&&(k=k.concat(t[te])),U.length===2&&U[0]===te){k=k.concat(t[te]);break}}return k}(n);f.length&&function(m,k,K){for(var U=0,re=k.length;U<re&&k[U];U++)k[U].event=m,k[U].apply(k[U],K)}(n,f,[r,i,a,o,s,u])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function i(){r.apply(this,arguments),e.off(n,i)})},e.off=function(n,r){var i=[];if(n&&r)for(var a=this._fns[n],o=0,s=a?a.length:0;o<s;o++)a[o]!==r&&i.push(a[o]);i.length?this._fns[n]=i:delete this._fns[n]},e},wX={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:TX}=wX,G5=e=>crypto.getRandomValues(new Uint8Array(e)),K5=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let a="";for(;;){let o=n(i),s=i;for(;s--;)if(a+=e[o[s]&r]||"",a.length===t)return a}}};var SX={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>K5(e,t,G5),customRandom:K5,urlAlphabet:TX,random:G5},Jw=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i};function V5(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}V5.prototype.match=function(e){var t,n,r=!0,i=this.parts,a=i.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<a;t++)i[t]!=="*"&&(r=t<n.length&&i[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r};var CX=/[\/\+\.]/,AX=function(e,t){function n(r){var i=function(a,o,s){var u=new V5(a,s||/[\/\.]/);return o!==void 0?u.match(o):u}(r,e,CX);return i&&i.length>=2}return t?n(t.split(";")[0]):n},OX=0;function DX(e){return"__private_"+OX+++"_"+e}var Qw=DX("publish");class Y5{constructor(){Object.defineProperty(this,Qw,{value:RX}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t=kt({},this.state),n=kt(kt({},this.state),e);this.state=n,function(r,i){if(!Object.prototype.hasOwnProperty.call(r,i))throw new TypeError("attempted to use private field on non-instance");return r}(this,Qw)[Qw](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function RX(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}Y5.VERSION="2.0.3";var X5=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},J5={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Q5(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+t}var IX=function(e){if(e==null&&(e=typeof navigator!="undefined"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,i]=n.split(".");return r=parseInt(r,10),i=parseInt(i,10),r<15||r===15&&i<15063||r>18||r===18&&i>=18218};function Zw(e){return e<10?`0${e}`:e.toString()}var Yy=function(){const e=new Date;return`${Zw(e.getHours())}:${Zw(e.getMinutes())}:${Zw(e.getSeconds())}`},Z5={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Yy()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Yy()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Yy()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Yy()}]`,...t)}}},LX={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},$5=SX;let q5,ek;function Fn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var PX=0;function ga(e){return"__private_"+PX+++"_"+e}const{nanoid:kX}=$5,{justErrorsLogger:MX,debugLogger:NX}=Z5;class xl extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class BX extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Za=ga("plugins"),Tm=ga("storeUnsubscribe"),iu=ga("emitter"),_d=ga("preProcessors"),xd=ga("uploaders"),au=ga("postProcessors"),Sm=ga("checkRestrictions"),$w=ga("checkMinNumberOfFiles"),Cm=ga("checkRequiredMetaFieldsOnFile"),qw=ga("checkRequiredMetaFields"),Aa=ga("showOrLogErrorAndThrow"),Am=ga("assertNewUploadAllowed"),Om=ga("checkAndCreateFileStateObject"),Dm=ga("startIfAutoProceed"),eT=ga("addListeners"),Ks=ga("updateOnlineStatus"),ou=ga("createUpload"),tT=ga("getUpload"),wd=ga("removeUpload"),su=ga("runUpload");q5=Symbol.for("uppy test: getPlugins"),ek=Symbol.for("uppy test: createUpload");class tk{constructor(e){Object.defineProperty(this,su,{value:QX}),Object.defineProperty(this,wd,{value:JX}),Object.defineProperty(this,tT,{value:XX}),Object.defineProperty(this,ou,{value:YX}),Object.defineProperty(this,eT,{value:VX}),Object.defineProperty(this,Dm,{value:KX}),Object.defineProperty(this,Om,{value:GX}),Object.defineProperty(this,Am,{value:zX}),Object.defineProperty(this,Aa,{value:WX}),Object.defineProperty(this,qw,{value:HX}),Object.defineProperty(this,Cm,{value:UX}),Object.defineProperty(this,$w,{value:jX}),Object.defineProperty(this,Sm,{value:FX}),Object.defineProperty(this,Za,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Tm,{writable:!0,value:void 0}),Object.defineProperty(this,iu,{writable:!0,value:z5()}),Object.defineProperty(this,_d,{writable:!0,value:new Set}),Object.defineProperty(this,xd,{writable:!0,value:new Set}),Object.defineProperty(this,au,{writable:!0,value:new Set}),Object.defineProperty(this,Ks,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=LX;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new Y5,logger:MX,infoTimeout:5e3};if(this.opts=kt(kt(kt({},t),e),{restrictions:kt(kt({},t.restrictions),e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=NX),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ed(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:IX(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:kt({},this.opts.meta),info:[],recoveredState:null}),Fn(this,Tm)[Tm]=this.store.subscribe((n,r,i)=>{this.emit("state-update",n,r,i),this.updateAll(r)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),Fn(this,eT)[eT]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Fn(this,iu)[iu].emit(e,...n)}on(e,t){return Fn(this,iu)[iu].on(e,t),this}once(e,t){return Fn(this,iu)[iu].once(e,t),this}off(e,t){return Fn(this,iu)[iu].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can\u2019t set state for ${e} (the file could have been removed)`);this.setState({files:kt(kt({},this.getState().files),{[e]:kt(kt({},this.getState().files[e]),t)})})}i18nInit(){const e=new W5([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=kt(kt(kt({},this.opts),e),{restrictions:kt(kt({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(t=>{t.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=kt({},this.getState().files),n={};Object.keys(t).forEach(r=>{const i=kt({},t[r]);i.progress=kt(kt({},i.progress),e),n[r]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Fn(this,_d)[_d].add(e)}removePreProcessor(e){return Fn(this,_d)[_d].delete(e)}addPostProcessor(e){Fn(this,au)[au].add(e)}removePostProcessor(e){return Fn(this,au)[au].delete(e)}addUploader(e){Fn(this,xd)[xd].add(e)}removeUploader(e){return Fn(this,xd)[xd].delete(e)}setMeta(e){const t=kt(kt({},this.getState().meta),e),n=kt({},this.getState().files);Object.keys(n).forEach(r=>{n[r]=kt(kt({},n[r]),{meta:kt(kt({},n[r].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n=kt({},this.getState().files);if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r=kt(kt({},n[e].meta),t);n[e]=kt(kt({},n[e]),{meta:r}),this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter(U=>{let{progress:re}=U;return!re.uploadComplete&&re.uploadStarted}),a=r.filter(U=>!U.progress.uploadStarted),o=r.filter(U=>U.progress.uploadStarted||U.progress.preprocess||U.progress.postprocess),s=r.filter(U=>U.progress.uploadStarted),u=r.filter(U=>U.isPaused),f=r.filter(U=>U.progress.uploadComplete),m=r.filter(U=>U.error),k=i.filter(U=>!U.isPaused),K=r.filter(U=>U.progress.preprocess||U.progress.postprocess);return{newFiles:a,startedFiles:o,uploadStartedFiles:s,pausedFiles:u,completeFiles:f,erroredFiles:m,inProgressFiles:i,inProgressNotPausedFiles:k,processingFiles:K,isUploadStarted:s.length>0,isAllComplete:t===100&&f.length===r.length&&K.length===0,isAllErrored:!!n&&m.length===r.length,isAllPaused:i.length!==0&&u.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some(U=>U.isGhost)}}validateRestrictions(e,t){try{return Fn(this,Sm)[Sm](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Fn(this,Am)[Am](e);const{files:t}=this.getState();let n=Fn(this,Om)[Om](t,e);return t[n.id]&&t[n.id].isGhost&&(n=kt(kt({},t[n.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:kt(kt({},t),{[n.id]:n})}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Fn(this,Dm)[Dm](),n.id}addFiles(e){Fn(this,Am)[Am]();const t=kt({},this.getState().files),n=[],r=[];for(let i=0;i<e.length;i++)try{let a=Fn(this,Om)[Om](t,e[i]);t[a.id]&&t[a.id].isGhost&&(a=kt(kt({},t[a.id]),{data:e[i].data,isGhost:!1}),this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),t[a.id]=a,n.push(a)}catch(a){a.isRestriction||r.push(a)}if(this.setState({files:t}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
id: ${n[i].id}
type: ${n[i].type}`)}),n.length>0&&Fn(this,Dm)[Dm](),r.length>0){let i=`Multiple errors occurred while adding files:
`;if(r.forEach(a=>{i+=`
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(r,i);{const a=new Error(i);throw a.errors=r,a}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),i=kt({},n),a=kt({},r),o=Object.create(null);function s(m){return o[m]===void 0}e.forEach(m=>{n[m]&&(o[m]=n[m],delete i[m])}),Object.keys(a).forEach(m=>{const k=r[m].fileIDs.filter(s);k.length!==0?a[m]=kt(kt({},r[m]),{fileIDs:k}):delete a[m]});const u={currentUploads:a,files:i};Object.keys(i).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const f=Object.keys(o);f.forEach(m=>{this.emit("file-removed",o[m],t)}),f.length>5?this.log(`Removed ${f.length} files`):this.log(`Removed files: ${f.join(", ")}`)}removeFile(e,t){t===void 0&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e=kt({},this.getState().files);Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n=kt(kt({},e[t]),{isPaused:!0});e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=kt({},this.getState().files);Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n=kt(kt({},e[t]),{isPaused:!1,error:null});e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=kt({},this.getState().files),t=Object.keys(e).filter(r=>e[r].error);if(t.forEach(r=>{const i=kt(kt({},e[r]),{isPaused:!1,error:null});e[r]=i}),this.setState({files:e,error:null}),this.emit("retry-all",t),t.length===0)return Promise.resolve({successful:[],failed:[]});const n=Fn(this,ou)[ou](t,{forceAllowNewUpload:!0});return Fn(this,su)[su](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Fn(this,ou)[ou]([e],{forceAllowNewUpload:!0});return Fn(this,su)[su](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:kt(kt({},this.getFile(e.id).progress),{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(s=>s.progress.bytesTotal!=null),n=e.filter(s=>s.progress.bytesTotal==null);if(t.length===0){const s=100*e.length,u=n.reduce((m,k)=>m+k.progress.percentage,0),f=Math.round(u/s*100);return void this.setState({totalProgress:f})}let r=t.reduce((s,u)=>s+u.progress.bytesTotal,0);const i=r/t.length;r+=i*n.length;let a=0;t.forEach(s=>{a+=s.progress.bytesUploaded}),n.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let o=r===0?0:Math.round(a/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit("progress",o)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(r);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Fn(this,Za)[Za]?Fn(this,Za)[Za][n.type].push(n):Fn(this,Za)[Za][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Fn(this,Za)[Za])){const n=t.find(r=>r.id===e);if(n!=null)return n}}[q5](e){return Fn(this,Za)[Za][e]}iteratePlugins(e){Object.values(Fn(this,Za)[Za]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Fn(this,Za)[Za][e.type],n=t.findIndex(i=>i.id===e.id);n!==-1&&t.splice(n,1);const r={plugins:kt(kt({},this.getState().plugins),{[e.id]:void 0})};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Fn(this,Tm)[Tm](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",Fn(this,Ks)[Ks]),window.removeEventListener("offline",Fn(this,Ks)[Ks]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){t===void 0&&(t="info"),n===void 0&&(n=3e3);const r=typeof e=="object";this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Fn(this,su)[su](e):(Fn(this,wd)[wd](e),Promise.reject(new Error("Nonexistent upload")))}[ek](){return Fn(this,ou)[ou](...arguments)}addResultData(e,t){if(!Fn(this,tT)[tT](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r=kt(kt({},n[e]),{result:kt(kt({},n[e].result),t)});this.setState({currentUploads:kt(kt({},n),{[e]:r})})}upload(){var e;(e=Fn(this,Za)[Za].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{Fn(this,$w)[$w](t),Fn(this,qw)[qw](t)}).catch(r=>{Fn(this,Aa)[Aa](r)}).then(()=>{const{currentUploads:r}=this.getState(),i=Object.values(r).flatMap(s=>s.fileIDs),a=[];Object.keys(t).forEach(s=>{const u=this.getFile(s);u.progress.uploadStarted||i.indexOf(s)!==-1||a.push(u.id)});const o=Fn(this,ou)[ou](a);return Fn(this,su)[su](o)}).catch(r=>{Fn(this,Aa)[Aa](r,{showInformer:!1})}))}}function FX(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:o}=this.opts.restrictions;if(a&&t.length+1>a)throw new xl(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(o&&!o.some(s=>s.indexOf("/")>-1?!!e.type&&AX(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=o.join(", ");throw new xl(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(i&&e.size!=null){let s=0;if(s+=e.size,t.forEach(u=>{s+=u.size}),s>i)throw new xl(this.i18n("exceedsSize",{size:Jw(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new xl(this.i18n("exceedsSize",{size:Jw(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new xl(this.i18n("inferiorSize",{size:Jw(r)}))}function jX(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new xl(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function UX(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===""){const o=new xl(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(o),i.push(t[a]),Fn(this,Aa)[Aa](o,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function HX(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return Fn(this,Cm)[Cm](r)});if(t.length)throw new BX(t,`${this.i18n("missingRequiredMetaField")}`)}function WX(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t;const a=typeof e=="object"?e.message:e,o=typeof e=="object"&&e.details?e.details:"";let s=a;if(o&&(s+=` ${o}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:a,details:o},"error",this.opts.infoTimeout),i)throw typeof e=="object"?e:new Error(e)}function zX(e){const{allowNewUpload:t}=this.getState();t===!1&&Fn(this,Aa)[Aa](new xl(this.i18n("noMoreFilesAllowed")),{file:e})}function GX(e,t){const n=function(k){var K;if(k.type)return k.type;const U=k.name?(K=X5(k.name).extension)==null?void 0:K.toLowerCase():null;return U&&U in J5?J5[U]:"application/octet-stream"}(t),r=function(k,K){return K.name?K.name:k.split("/")[0]==="image"?`${k.split("/")[0]}.${k.split("/")[1]}`:"noname"}(n,t),i=X5(r).extension,a=Boolean(t.isRemote),o=function(k){let K="uppy";return typeof k.name=="string"&&(K+=`-${Q5(k.name.toLowerCase())}`),k.type!==void 0&&(K+=`-${k.type}`),k.meta&&typeof k.meta.relativePath=="string"&&(K+=`-${Q5(k.meta.relativePath.toLowerCase())}`),k.data.size!==void 0&&(K+=`-${k.data.size}`),k.data.lastModified!==void 0&&(K+=`-${k.data.lastModified}`),K}(kt(kt({},t),{type:n}));if(this.checkIfFileAlreadyExists(o)){const k=new xl(this.i18n("noDuplicates",{fileName:r}));Fn(this,Aa)[Aa](k,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:o,name:r,extension:i||"",meta:kt(kt({},this.getState().meta),s),type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:a,remote:t.remote||"",preview:t.preview};const m=this.opts.onBeforeFileAdded(f,e);m===!1?Fn(this,Aa)[Aa](new xl("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof m=="object"&&m!==null&&(f=m);try{const k=Object.keys(e).map(K=>e[K]);Fn(this,Sm)[Sm](f,k)}catch(k){Fn(this,Aa)[Aa](k,{file:f})}return f}function KX(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function VX(){const e=(t,n,r)=>{let i=t.message||"Unknown error";t.details&&(i+=` ${t.details}`),this.setState({error:i}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:i,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const i=new Error(n.message);i.details=n.message,n.details&&(i.details+=` ${n.details}`),i.message=this.i18n("failedToUpload",{file:t.name}),Fn(this,Aa)[Aa](i,{throwErr:!1})}else Fn(this,Aa)[Aa](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:kt(kt({},r),{postprocess:Fn(this,au)[au].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:kt(kt({},this.getFile(t.id).progress),{preprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=kt({},this.getState().files);n[t.id]=kt(kt({},n[t.id]),{progress:kt({},n[t.id].progress)}),delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:kt(kt({},this.getState().files[t.id].progress),{postprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=kt({},this.getState().files);n[t.id]=kt(kt({},n[t.id]),{progress:kt({},n[t.id].progress)}),delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&Fn(this,Cm)[Cm](t)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",Fn(this,Ks)[Ks]),window.addEventListener("offline",Fn(this,Ks)[Ks]),setTimeout(Fn(this,Ks)[Ks],3e3))}function YX(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const a=kX();return this.emit("upload",{id:a,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:kt(kt({},i),{[a]:{fileIDs:e,step:0,result:{}}})}),a}function XX(e){const{currentUploads:t}=this.getState();return t[e]}function JX(e){const t=kt({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})}function QX(e){return VI(this,null,function*(){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...Fn(this,_d)[_d],...Fn(this,xd)[xd],...Fn(this,au)[au]];try{for(let o=r;o<i.length&&n;o++){const s=i[o],u=kt(kt({},n),{step:o});this.setState({currentUploads:kt(kt({},t),{[e]:u})}),yield s(u.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(o){throw this.emit("error",o),Fn(this,wd)[wd](e),o}if(n){n.fileIDs.forEach(f=>{const m=this.getFile(f);m&&m.progress.postprocess&&this.emit("postprocess-complete",m)});const o=n.fileIDs.map(f=>this.getFile(f)),s=o.filter(f=>!f.error),u=o.filter(f=>f.error);yield this.addResultData(e,{successful:s,failed:u,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit("complete",a),Fn(this,wd)[wd](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a})}tk.VERSION="2.1.3";var nk=tk,ZX=le(function(e,t){var n,r,i,a,o,s,u,f,m={},k=[],K=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function U(Ze,He){for(var ot in He)Ze[ot]=He[ot];return Ze}function re(Ze){var He=Ze.parentNode;He&&He.removeChild(Ze)}function $(Ze,He,ot){var At,qt,Mt,Cn={};for(Mt in He)Mt=="key"?At=He[Mt]:Mt=="ref"?qt=He[Mt]:Cn[Mt]=He[Mt];if(arguments.length>2&&(Cn.children=arguments.length>3?n.call(arguments,2):ot),typeof Ze=="function"&&Ze.defaultProps!=null)for(Mt in Ze.defaultProps)Cn[Mt]===void 0&&(Cn[Mt]=Ze.defaultProps[Mt]);return ee(Ze,Cn,At,qt,null)}function ee(Ze,He,ot,At,qt){var Mt={type:Ze,props:He,key:ot,ref:At,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:qt==null?++i:qt};return qt==null&&r.vnode!=null&&r.vnode(Mt),Mt}function te(Ze){return Ze.children}function Q(Ze,He){this.props=Ze,this.context=He}function he(Ze,He){if(He==null)return Ze.__?he(Ze.__,Ze.__.__k.indexOf(Ze)+1):null;for(var ot;He<Ze.__k.length;He++)if((ot=Ze.__k[He])!=null&&ot.__e!=null)return ot.__e;return typeof Ze.type=="function"?he(Ze):null}function me(Ze){var He,ot;if((Ze=Ze.__)!=null&&Ze.__c!=null){for(Ze.__e=Ze.__c.base=null,He=0;He<Ze.__k.length;He++)if((ot=Ze.__k[He])!=null&&ot.__e!=null){Ze.__e=Ze.__c.base=ot.__e;break}return me(Ze)}}function _e(Ze){(!Ze.__d&&(Ze.__d=!0)&&o.push(Ze)&&!ke.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||s)(ke)}function ke(){for(var Ze;ke.__r=o.length;)Ze=o.sort(function(He,ot){return He.__v.__b-ot.__v.__b}),o=[],Ze.some(function(He){var ot,At,qt,Mt,Cn,Vn;He.__d&&(Cn=(Mt=(ot=He).__v).__e,(Vn=ot.__P)&&(At=[],(qt=U({},Mt)).__v=Mt.__v+1,Ft(Vn,Mt,qt,ot.__n,Vn.ownerSVGElement!==void 0,Mt.__h!=null?[Cn]:null,At,Cn==null?he(Mt):Cn,Mt.__h),jt(At,Mt),Mt.__e!=Cn&&me(Mt)))})}function De(Ze,He,ot,At,qt,Mt,Cn,Vn,qn,lr){var Ht,Dr,hr,Hn,fr,Xi,jr,ni=At&&At.__k||k,Si=ni.length;for(ot.__k=[],Ht=0;Ht<He.length;Ht++)if((Hn=ot.__k[Ht]=(Hn=He[Ht])==null||typeof Hn=="boolean"?null:typeof Hn=="string"||typeof Hn=="number"||typeof Hn=="bigint"?ee(null,Hn,null,null,Hn):Array.isArray(Hn)?ee(te,{children:Hn},null,null,null):Hn.__b>0?ee(Hn.type,Hn.props,Hn.key,null,Hn.__v):Hn)!=null){if(Hn.__=ot,Hn.__b=ot.__b+1,(hr=ni[Ht])===null||hr&&Hn.key==hr.key&&Hn.type===hr.type)ni[Ht]=void 0;else for(Dr=0;Dr<Si;Dr++){if((hr=ni[Dr])&&Hn.key==hr.key&&Hn.type===hr.type){ni[Dr]=void 0;break}hr=null}Ft(Ze,Hn,hr=hr||m,qt,Mt,Cn,Vn,qn,lr),fr=Hn.__e,(Dr=Hn.ref)&&hr.ref!=Dr&&(jr||(jr=[]),hr.ref&&jr.push(hr.ref,null,Hn),jr.push(Dr,Hn.__c||fr,Hn)),fr!=null?(Xi==null&&(Xi=fr),typeof Hn.type=="function"&&Hn.__k===hr.__k?Hn.__d=qn=Ye(Hn,qn,Ze):qn=rt(Ze,Hn,hr,ni,fr,qn),typeof ot.type=="function"&&(ot.__d=qn)):qn&&hr.__e==qn&&qn.parentNode!=Ze&&(qn=he(hr))}for(ot.__e=Xi,Ht=Si;Ht--;)ni[Ht]!=null&&(typeof ot.type=="function"&&ni[Ht].__e!=null&&ni[Ht].__e==ot.__d&&(ot.__d=he(At,Ht+1)),kn(ni[Ht],ni[Ht]));if(jr)for(Ht=0;Ht<jr.length;Ht++)En(jr[Ht],jr[++Ht],jr[++Ht])}function Ye(Ze,He,ot){for(var At,qt=Ze.__k,Mt=0;qt&&Mt<qt.length;Mt++)(At=qt[Mt])&&(At.__=Ze,He=typeof At.type=="function"?Ye(At,He,ot):rt(ot,At,At,qt,At.__e,He));return He}function rt(Ze,He,ot,At,qt,Mt){var Cn,Vn,qn;if(He.__d!==void 0)Cn=He.__d,He.__d=void 0;else if(ot==null||qt!=Mt||qt.parentNode==null)e:if(Mt==null||Mt.parentNode!==Ze)Ze.appendChild(qt),Cn=null;else{for(Vn=Mt,qn=0;(Vn=Vn.nextSibling)&&qn<At.length;qn+=2)if(Vn==qt)break e;Ze.insertBefore(qt,Mt),Cn=Mt}return Cn!==void 0?Cn:qt.nextSibling}function wt(Ze,He,ot){He[0]==="-"?Ze.setProperty(He,ot):Ze[He]=ot==null?"":typeof ot!="number"||K.test(He)?ot:ot+"px"}function Lt(Ze,He,ot,At,qt){var Mt;e:if(He==="style")if(typeof ot=="string")Ze.style.cssText=ot;else{if(typeof At=="string"&&(Ze.style.cssText=At=""),At)for(He in At)ot&&He in ot||wt(Ze.style,He,"");if(ot)for(He in ot)At&&ot[He]===At[He]||wt(Ze.style,He,ot[He])}else if(He[0]==="o"&&He[1]==="n")Mt=He!==(He=He.replace(/Capture$/,"")),He=He.toLowerCase()in Ze?He.toLowerCase().slice(2):He.slice(2),Ze.l||(Ze.l={}),Ze.l[He+Mt]=ot,ot?At||Ze.addEventListener(He,Mt?Yt:Tt,Mt):Ze.removeEventListener(He,Mt?Yt:Tt,Mt);else if(He!=="dangerouslySetInnerHTML"){if(qt)He=He.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(He!=="href"&&He!=="list"&&He!=="form"&&He!=="tabIndex"&&He!=="download"&&He in Ze)try{Ze[He]=ot==null?"":ot;break e}catch(Cn){}typeof ot=="function"||(ot!=null&&(ot!==!1||He[0]==="a"&&He[1]==="r")?Ze.setAttribute(He,ot):Ze.removeAttribute(He))}}function Tt(Ze){this.l[Ze.type+!1](r.event?r.event(Ze):Ze)}function Yt(Ze){this.l[Ze.type+!0](r.event?r.event(Ze):Ze)}function Ft(Ze,He,ot,At,qt,Mt,Cn,Vn,qn){var lr,Ht,Dr,hr,Hn,fr,Xi,jr,ni,Si,fo,Nr=He.type;if(He.constructor!==void 0)return null;ot.__h!=null&&(qn=ot.__h,Vn=He.__e=ot.__e,He.__h=null,Mt=[Vn]),(lr=r.__b)&&lr(He);try{e:if(typeof Nr=="function"){if(jr=He.props,ni=(lr=Nr.contextType)&&At[lr.__c],Si=lr?ni?ni.props.value:lr.__:At,ot.__c?Xi=(Ht=He.__c=ot.__c).__=Ht.__E:("prototype"in Nr&&Nr.prototype.render?He.__c=Ht=new Nr(jr,Si):(He.__c=Ht=new Q(jr,Si),Ht.constructor=Nr,Ht.render=Ln),ni&&ni.sub(Ht),Ht.props=jr,Ht.state||(Ht.state={}),Ht.context=Si,Ht.__n=At,Dr=Ht.__d=!0,Ht.__h=[]),Ht.__s==null&&(Ht.__s=Ht.state),Nr.getDerivedStateFromProps!=null&&(Ht.__s==Ht.state&&(Ht.__s=U({},Ht.__s)),U(Ht.__s,Nr.getDerivedStateFromProps(jr,Ht.__s))),hr=Ht.props,Hn=Ht.state,Dr)Nr.getDerivedStateFromProps==null&&Ht.componentWillMount!=null&&Ht.componentWillMount(),Ht.componentDidMount!=null&&Ht.__h.push(Ht.componentDidMount);else{if(Nr.getDerivedStateFromProps==null&&jr!==hr&&Ht.componentWillReceiveProps!=null&&Ht.componentWillReceiveProps(jr,Si),!Ht.__e&&Ht.shouldComponentUpdate!=null&&Ht.shouldComponentUpdate(jr,Ht.__s,Si)===!1||He.__v===ot.__v){Ht.props=jr,Ht.state=Ht.__s,He.__v!==ot.__v&&(Ht.__d=!1),Ht.__v=He,He.__e=ot.__e,He.__k=ot.__k,He.__k.forEach(function(Mo){Mo&&(Mo.__=He)}),Ht.__h.length&&Cn.push(Ht);break e}Ht.componentWillUpdate!=null&&Ht.componentWillUpdate(jr,Ht.__s,Si),Ht.componentDidUpdate!=null&&Ht.__h.push(function(){Ht.componentDidUpdate(hr,Hn,fr)})}Ht.context=Si,Ht.props=jr,Ht.state=Ht.__s,(lr=r.__r)&&lr(He),Ht.__d=!1,Ht.__v=He,Ht.__P=Ze,lr=Ht.render(Ht.props,Ht.state,Ht.context),Ht.state=Ht.__s,Ht.getChildContext!=null&&(At=U(U({},At),Ht.getChildContext())),Dr||Ht.getSnapshotBeforeUpdate==null||(fr=Ht.getSnapshotBeforeUpdate(hr,Hn)),fo=lr!=null&&lr.type===te&&lr.key==null?lr.props.children:lr,De(Ze,Array.isArray(fo)?fo:[fo],He,ot,At,qt,Mt,Cn,Vn,qn),Ht.base=He.__e,He.__h=null,Ht.__h.length&&Cn.push(Ht),Xi&&(Ht.__E=Ht.__=null),Ht.__e=!1}else Mt==null&&He.__v===ot.__v?(He.__k=ot.__k,He.__e=ot.__e):He.__e=Wt(ot.__e,He,ot,At,qt,Mt,Cn,qn);(lr=r.diffed)&&lr(He)}catch(Mo){He.__v=null,(qn||Mt!=null)&&(He.__e=Vn,He.__h=!!qn,Mt[Mt.indexOf(Vn)]=null),r.__e(Mo,He,ot)}}function jt(Ze,He){r.__c&&r.__c(He,Ze),Ze.some(function(ot){try{Ze=ot.__h,ot.__h=[],Ze.some(function(At){At.call(ot)})}catch(At){r.__e(At,ot.__v)}})}function Wt(Ze,He,ot,At,qt,Mt,Cn,Vn){var qn,lr,Ht,Dr=ot.props,hr=He.props,Hn=He.type,fr=0;if(Hn==="svg"&&(qt=!0),Mt!=null){for(;fr<Mt.length;fr++)if((qn=Mt[fr])&&"setAttribute"in qn==!!Hn&&(Hn?qn.localName===Hn:qn.nodeType===3)){Ze=qn,Mt[fr]=null;break}}if(Ze==null){if(Hn===null)return document.createTextNode(hr);Ze=qt?document.createElementNS("http://www.w3.org/2000/svg",Hn):document.createElement(Hn,hr.is&&hr),Mt=null,Vn=!1}if(Hn===null)Dr===hr||Vn&&Ze.data===hr||(Ze.data=hr);else{if(Mt=Mt&&n.call(Ze.childNodes),lr=(Dr=ot.props||m).dangerouslySetInnerHTML,Ht=hr.dangerouslySetInnerHTML,!Vn){if(Mt!=null)for(Dr={},fr=0;fr<Ze.attributes.length;fr++)Dr[Ze.attributes[fr].name]=Ze.attributes[fr].value;(Ht||lr)&&(Ht&&(lr&&Ht.__html==lr.__html||Ht.__html===Ze.innerHTML)||(Ze.innerHTML=Ht&&Ht.__html||""))}if(function(Xi,jr,ni,Si,fo){var Nr;for(Nr in ni)Nr==="children"||Nr==="key"||Nr in jr||Lt(Xi,Nr,null,ni[Nr],Si);for(Nr in jr)fo&&typeof jr[Nr]!="function"||Nr==="children"||Nr==="key"||Nr==="value"||Nr==="checked"||ni[Nr]===jr[Nr]||Lt(Xi,Nr,jr[Nr],ni[Nr],Si)}(Ze,hr,Dr,qt,Vn),Ht)He.__k=[];else if(fr=He.props.children,De(Ze,Array.isArray(fr)?fr:[fr],He,ot,At,qt&&Hn!=="foreignObject",Mt,Cn,Mt?Mt[0]:ot.__k&&he(ot,0),Vn),Mt!=null)for(fr=Mt.length;fr--;)Mt[fr]!=null&&re(Mt[fr]);Vn||("value"in hr&&(fr=hr.value)!==void 0&&(fr!==Dr.value||fr!==Ze.value||Hn==="progress"&&!fr)&&Lt(Ze,"value",fr,Dr.value,!1),"checked"in hr&&(fr=hr.checked)!==void 0&&fr!==Ze.checked&&Lt(Ze,"checked",fr,Dr.checked,!1))}return Ze}function En(Ze,He,ot){try{typeof Ze=="function"?Ze(He):Ze.current=He}catch(At){r.__e(At,ot)}}function kn(Ze,He,ot){var At,qt;if(r.unmount&&r.unmount(Ze),(At=Ze.ref)&&(At.current&&At.current!==Ze.__e||En(At,null,He)),(At=Ze.__c)!=null){if(At.componentWillUnmount)try{At.componentWillUnmount()}catch(Mt){r.__e(Mt,He)}At.base=At.__P=null}if(At=Ze.__k)for(qt=0;qt<At.length;qt++)At[qt]&&kn(At[qt],He,typeof Ze.type!="function");ot||Ze.__e==null||re(Ze.__e),Ze.__e=Ze.__d=void 0}function Ln(Ze,He,ot){return this.constructor(Ze,ot)}function Rn(Ze,He,ot){var At,qt,Mt;r.__&&r.__(Ze,He),qt=(At=typeof ot=="function")?null:ot&&ot.__k||He.__k,Mt=[],Ft(He,Ze=(!At&&ot||He).__k=$(te,null,[Ze]),qt||m,m,He.ownerSVGElement!==void 0,!At&&ot?[ot]:qt?null:He.firstChild?n.call(He.childNodes):null,Mt,!At&&ot?ot:qt?qt.__e:He.firstChild,At),jt(Mt,Ze)}n=k.slice,r={__e:function(Ze,He){for(var ot,At,qt;He=He.__;)if((ot=He.__c)&&!ot.__)try{if((At=ot.constructor)&&At.getDerivedStateFromError!=null&&(ot.setState(At.getDerivedStateFromError(Ze)),qt=ot.__d),ot.componentDidCatch!=null&&(ot.componentDidCatch(Ze),qt=ot.__d),qt)return ot.__E=ot}catch(Mt){Ze=Mt}throw Ze}},i=0,a=function(Ze){return Ze!=null&&Ze.constructor===void 0},Q.prototype.setState=function(Ze,He){var ot;ot=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=U({},this.state),typeof Ze=="function"&&(Ze=Ze(U({},ot),this.props)),Ze&&U(ot,Ze),Ze!=null&&this.__v&&(He&&this.__h.push(He),_e(this))},Q.prototype.forceUpdate=function(Ze){this.__v&&(this.__e=!0,Ze&&this.__h.push(Ze),_e(this))},Q.prototype.render=te,o=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ke.__r=0,f=0,t.Component=Q,t.Fragment=te,t.cloneElement=function(Ze,He,ot){var At,qt,Mt,Cn=U({},Ze.props);for(Mt in He)Mt=="key"?At=He[Mt]:Mt=="ref"?qt=He[Mt]:Cn[Mt]=He[Mt];return arguments.length>2&&(Cn.children=arguments.length>3?n.call(arguments,2):ot),ee(Ze.type,Cn,At||Ze.key,qt||Ze.ref,null)},t.createContext=function(Ze,He){var ot={__c:He="__cC"+f++,__:Ze,Consumer:function(At,qt){return At.children(qt)},Provider:function(At){var qt,Mt;return this.getChildContext||(qt=[],(Mt={})[He]=this,this.getChildContext=function(){return Mt},this.shouldComponentUpdate=function(Cn){this.props.value!==Cn.value&&qt.some(_e)},this.sub=function(Cn){qt.push(Cn);var Vn=Cn.componentWillUnmount;Cn.componentWillUnmount=function(){qt.splice(qt.indexOf(Cn),1),Vn&&Vn.call(Cn)}}),At.children}};return ot.Provider.__=ot.Consumer.contextType=ot},t.createElement=$,t.createRef=function(){return{current:null}},t.h=$,t.hydrate=function Ze(He,ot){Rn(He,ot,Ze)},t.isValidElement=a,t.options=r,t.render=Rn,t.toChildArray=function Ze(He,ot){return ot=ot||[],He==null||typeof He=="boolean"||(Array.isArray(He)?He.some(function(At){Ze(At,ot)}):ot.push(He)),ot}}),$X=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},nT=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:kt(kt({},t),{[this.id]:kt(kt({},t[this.id]),e)})})}setOptions(e){this.opts=kt(kt({},this.opts),e),this.setPluginState(),this.i18nInit()}i18nInit(){const e=new W5([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function rk(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qX=0;function eJ(e){return"__private_"+qX+++"_"+e}const{render:ik}=ZX;var Rm=eJ("updateUI");class ak extends nT{constructor(){super(...arguments),Object.defineProperty(this,Rm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=$X(e);if(r){this.isTargetDOMEl=!0;const o=document.createDocumentFragment();return rk(this,Rm)[Rm]=function(s){let u=null,f=null;return function(){for(var m=arguments.length,k=new Array(m),K=0;K<m;K++)k[K]=arguments[K];return f=k,u||(u=Promise.resolve().then(()=>(u=null,s(...f)))),u}}(s=>{this.uppy.getPlugin(this.id)&&(ik(this.render(s),o),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),ik(this.render(this.uppy.getState()),o),this.el=o.firstElementChild,r.appendChild(o),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof ak)i=e;else if(typeof e=="function"){const o=e;this.uppy.iteratePlugins(s=>{if(s instanceof o)return i=s,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var t,n;this.el!=null&&((t=(n=rk(this,Rm))[Rm])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var tJ=ak;const{debugLogger:nJ}=Z5;var Im=nk,rJ=nk,iJ=tJ,aJ=nT,oJ=nJ;Im.Uppy=rJ,Im.UIPlugin=iJ,Im.BasePlugin=aJ,Im.debugLogger=oJ;class sJ extends Error{constructor(e,t){t===void 0&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var rT=sJ,iT=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new rT(e)})};class lJ extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Xy,Gu,wl,Ku,ok,uJ=lJ;function Tl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cJ=0;function aT(e){return"__private_"+cJ+++"_"+e}function oT(e){return VI(this,null,function*(){if(e.status===401)throw new uJ;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=yield t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t})}var sT=(Gu=aT("getPostResponseFunc"),wl=aT("getUrl"),Ku=aT("errorHandler"),ok=Xy=class e{constructor(t,n){Object.defineProperty(this,Ku,{value:hJ}),Object.defineProperty(this,wl,{value:dJ}),Object.defineProperty(this,Gu,{writable:!0,value:r=>i=>r?i:this.onReceiveResponse(i)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve(kt(kt({},e.defaultHeaders),t))}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:i}=t;return i.has("i-am")&&i.get("i-am")!==n[r]&&this.uppy.setState({companion:kt(kt({},n),{[r]:i.get("i-am")})}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Tl(this,wl)[wl](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,i]=n;return Object.keys(i).forEach(a=>{r.includes(a.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${a}`),delete i[a])}),i})}get(t,n){return this.preflightAndHeaders(t).then(r=>iT(Tl(this,wl)[wl](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Tl(this,Gu)[Gu](n)).then(oT).catch(Tl(this,Ku)[Ku]("get",t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(a=>iT(Tl(this,wl)[wl](t),{method:i,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(Tl(this,Gu)[Gu](r)).then(oT).catch(Tl(this,Ku)[Ku](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(a=>iT(`${this.hostname}/${t}`,{method:i,headers:a,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(Tl(this,Gu)[Gu](r)).then(oT).catch(Tl(this,Ku)[Ku](i,t))}},Xy.VERSION="2.0.4",Xy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Xy.VERSION}`},ok);function dJ(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function hJ(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const i=new Error(`Could not ${e} ${Tl(this,wl)[wl](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var fJ={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},Sl,Vu,vs,so,Jy;let sk,lk;function va(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var pJ=0;function Lm(e){return"__private_"+pJ+++"_"+e}var mJ=(Sl=Lm("queued"),Vu=Lm("emitter"),vs=Lm("isOpen"),so=Lm("socket"),Jy=Lm("handleMessage"),sk=Symbol.for("uppy test: getSocket"),lk=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Sl,{writable:!0,value:[]}),Object.defineProperty(this,Vu,{writable:!0,value:z5()}),Object.defineProperty(this,vs,{writable:!0,value:!1}),Object.defineProperty(this,so,{writable:!0,value:void 0}),Object.defineProperty(this,Jy,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return va(this,vs)[vs]}[sk](){return va(this,so)[so]}[lk](){return va(this,Sl)[Sl]}open(){va(this,so)[so]=new WebSocket(this.opts.target),va(this,so)[so].onopen=()=>{for(va(this,vs)[vs]=!0;va(this,Sl)[Sl].length>0&&va(this,vs)[vs];){const e=va(this,Sl)[Sl].shift();this.send(e.action,e.payload)}},va(this,so)[so].onclose=()=>{va(this,vs)[vs]=!1},va(this,so)[so].onmessage=va(this,Jy)[Jy]}close(){var e;(e=va(this,so)[so])==null||e.close()}send(e,t){va(this,vs)[vs]?va(this,so)[so].send(JSON.stringify({action:e,payload:t})):va(this,Sl)[Sl].push({action:e,payload:t})}on(e,t){va(this,Vu)[Vu].on(e,t)}emit(e,t){va(this,Vu)[Vu].emit(e,t)}once(e,t){va(this,Vu)[Vu].once(e,t)}}),gJ={RequestClient:sT,Provider:class extends sT{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),kt(kt({},t),r)})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts=kt(kt({},n),t)),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||fJ}},SearchProvider:class extends sT{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:mJ},Yu,df,vJ=Ed(function(e,t,n){const{progress:r,bytesUploaded:i,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:i,bytesTotal:a}))},300,{leading:!0,trailing:!0});function Pm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yJ=0;function uk(e){return"__private_"+yJ+++"_"+e}var ck=(Yu=uk("emitter"),df=uk("events"),class{constructor(e){Object.defineProperty(this,Yu,{writable:!0,value:void 0}),Object.defineProperty(this,df,{writable:!0,value:[]}),Pm(this,Yu)[Yu]=e}on(e,t){return Pm(this,df)[df].push([e,t]),Pm(this,Yu)[Yu].on(e,t)}remove(){for(const[e,t]of Pm(this,df)[df].splice(0))Pm(this,Yu)[Yu].off(e,t)}});function ys(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bJ=0;function Qy(e){return"__private_"+bJ+++"_"+e}var lu=Qy("aliveTimer"),Td=Qy("isDone"),km=Qy("onTimedOut"),Sd=Qy("timeout"),dk=class{constructor(e,t){Object.defineProperty(this,lu,{writable:!0,value:void 0}),Object.defineProperty(this,Td,{writable:!0,value:!1}),Object.defineProperty(this,km,{writable:!0,value:void 0}),Object.defineProperty(this,Sd,{writable:!0,value:void 0}),ys(this,Sd)[Sd]=e,ys(this,km)[km]=t}progress(){ys(this,Td)[Td]||ys(this,Sd)[Sd]>0&&(clearTimeout(ys(this,lu)[lu]),ys(this,lu)[lu]=setTimeout(ys(this,km)[km],ys(this,Sd)[Sd]))}done(){ys(this,Td)[Td]||(clearTimeout(ys(this,lu)[lu]),ys(this,lu)[lu]=null,ys(this,Td)[Td]=!0)}};function ya(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EJ=0;function Cd(e){return"__private_"+EJ+++"_"+e}function _J(){return new Error("Cancelled")}var Yo=Cd("activeRequests"),xo=Cd("queuedHandlers"),Mm=Cd("call"),Nm=Cd("queueNext"),lT=Cd("next"),uT=Cd("queue"),cT=Cd("dequeue");function xJ(e){ya(this,Yo)[Yo]+=1;let t,n=!1;try{t=e()}catch(r){throw ya(this,Yo)[Yo]-=1,r}return{abort:()=>{n||(n=!0,ya(this,Yo)[Yo]-=1,t(),ya(this,Nm)[Nm]())},done:()=>{n||(n=!0,ya(this,Yo)[Yo]-=1,ya(this,Nm)[Nm]())}}}function wJ(){queueMicrotask(()=>ya(this,lT)[lT]())}function TJ(){if(ya(this,Yo)[Yo]>=this.limit)return;if(ya(this,xo)[xo].length===0)return;const e=ya(this,xo)[xo].shift(),t=ya(this,Mm)[Mm](e.fn);e.abort=t.abort,e.done=t.done}function SJ(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{ya(this,cT)[cT](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=ya(this,xo)[xo].findIndex(i=>n.priority>i.priority);return r===-1?ya(this,xo)[xo].push(n):ya(this,xo)[xo].splice(r,0,n),n}function CJ(e){const t=ya(this,xo)[xo].indexOf(e);t!==-1&&ya(this,xo)[xo].splice(t,1)}var AJ={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,cT,{value:CJ}),Object.defineProperty(this,uT,{value:SJ}),Object.defineProperty(this,lT,{value:TJ}),Object.defineProperty(this,Nm,{value:wJ}),Object.defineProperty(this,Mm,{value:xJ}),Object.defineProperty(this,Yo,{writable:!0,value:0}),Object.defineProperty(this,xo,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return ya(this,Yo)[Yo]<this.limit?ya(this,Mm)[Mm](e):ya(this,uT)[uT](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];let o;const s=new Promise((u,f)=>{o=n.run(()=>{let m,k;try{k=Promise.resolve(e(...i))}catch(K){k=Promise.reject(K)}return k.then(K=>{m?f(m):(o.done(),u(K))},K=>{m?f(m):(o.done(),f(K))}),()=>{m=_J()}},t)});return s.abort=()=>{o.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},hk,fk,pk=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},OJ={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:DJ}=$5,{Provider:RJ,RequestClient:IJ,Socket:LJ}=gJ,{RateLimitedQueue:PJ,internalRateLimitedQueue:dT}=AJ;function mk(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),pk(e)?(n=new rT(n,e),n):(n.request=e,n)}function gk(e){return e.data.slice(0,e.data.size,e.meta.type)}var kJ=(fk=hk=class extends nT{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=OJ;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let i={};try{i=JSON.parse(r)}catch(a){e.log(a)}return i},getResponseError(r,i){let a=new Error("Upload error");return pk(i)&&(a=new rT(a,i)),a},validateStatus:r=>r>=200&&r<300};if(this.opts=kt(kt({},n),t),this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),dT in this.opts?this.requests=this.opts[dT]:this.requests=new PJ(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r=kt(kt(kt(kt({},this.opts),t||{}),e.xhrUpload||{}),{headers:{}});return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=gk(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(i=>{const a=this.getOptions(i),o=gk(i);i.name?n.append(a.fieldName,o,i.name):n.append(a.fieldName,o)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((i,a)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new ck(this.uppy);const u=new dk(r.timeout,()=>{s.abort(),m.done();const k=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,k),a(k)}),f=DJ();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${f} started`)}),s.upload.addEventListener("progress",k=>{this.uppy.log(`[XHRUpload] ${f} progress: ${k.loaded} / ${k.total}`),u.progress(),k.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:k.loaded,bytesTotal:k.total})}),s.addEventListener("load",k=>{if(this.uppy.log(`[XHRUpload] ${f} finished`),u.done(),m.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(k.target.status,s.responseText,s)){const $=r.getResponseData(s.responseText,s),ee=$[r.responseUrlFieldName],te={status:k.target.status,body:$,uploadURL:ee};return this.uppy.emit("upload-success",e,te),ee&&this.uppy.log(`Download ${e.name} from ${ee}`),i(e)}const K=r.getResponseData(s.responseText,s),U=mk(s,r.getResponseError(s.responseText,s)),re={status:k.target.status,body:K};return this.uppy.emit("upload-error",e,U,re),a(U)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${f} errored`),u.done(),m.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const k=mk(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,k),a(k)}),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=r.withCredentials,r.responseType!==""&&(s.responseType=r.responseType);const m=this.requests.run(()=>{this.uppy.emit("upload-started",e);const k=this.getOptions(e);return Object.keys(k.headers).forEach(K=>{s.setRequestHeader(K,k.headers[K])}),s.send(o),()=>{u.done(),s.abort()}});this.onFileRemove(e.id,()=>{m.abort(),a(new Error("File removed"))}),this.onCancelAll(e.id,()=>{m.abort(),a(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(a=>{i[a]=e.meta[a]}),new(e.remote.providerOptions.provider?RJ:IJ)(this.uppy,e.remote.providerOptions).post(e.remote.url,kt(kt({},e.remote.body),{endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers})).then(a=>{const{token:o}=a,s=function(m){const k=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(m)[1];return`${/^http:\/\//i.test(m)?"ws":"wss"}://${k}`}(e.remote.companionUrl),u=new LJ({target:`${s}/api/${o}`,autoOpen:!1});this.uploaderEvents[e.id]=new ck(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),f.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),f.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",m=>vJ(this,m,e)),u.on("success",m=>{const k=t.getResponseData(m.response.responseText,m.response),K=k[t.responseUrlFieldName],U={status:m.response.status,body:k,uploadURL:K};return this.uppy.emit("upload-success",e,U),f.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",m=>{const k=m.response,K=k?t.getResponseError(k.responseText,k):Object.assign(new Error(m.error.message),{cause:m.error});this.uppy.emit("upload-error",e,K),f.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(K)});const f=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(a=>{this.uppy.emit("upload-error",e,a),r(a)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:i}=this.opts,a=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,kt(kt({},this.opts),a||{})),s=new XMLHttpRequest,u=new dk(this.opts.timeout,()=>{s.abort();const m=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));f(m),n(m)}),f=m=>{e.forEach(k=>{this.uppy.emit("upload-error",k,m)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),s.upload.addEventListener("progress",m=>{u.progress(),m.lengthComputable&&e.forEach(k=>{this.uppy.emit("upload-progress",k,{uploader:this,bytesUploaded:m.loaded/m.total*k.size,bytesTotal:k.size})})}),s.addEventListener("load",m=>{if(u.done(),this.opts.validateStatus(m.target.status,s.responseText,s)){const K=this.opts.getResponseData(s.responseText,s),U={status:m.target.status,body:K};return e.forEach(re=>{this.uppy.emit("upload-success",re,U)}),t()}const k=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return k.request=s,f(k),n(k)}),s.addEventListener("error",()=>{u.done();const m=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return f(m),n(m)}),this.uppy.on("cancel-all",()=>{u.done(),s.abort()}),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(m=>{s.setRequestHeader(m,this.opts.headers[m])}),s.send(o),e.forEach(m=>{this.uppy.emit("upload-started",m)})})}uploadFiles(e){const t=e.map((n,r)=>{const i=parseInt(r,10)+1,a=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,i,a):this.upload(n,i,a)});return function(n){const r=[],i=[];function a(s){r.push(s)}function o(s){i.push(s)}return Promise.all(n.map(s=>s.then(a,o))).then(()=>({successful:r,failed:i}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[dT]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(n=>n.isRemote))throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:kt(kt({},e),{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:kt(kt({},e),{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}},hk.VERSION="2.0.6",fk),vk=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function Bm(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xu,Zy,$y=function(e){return e&&e.Math==Math&&e},on=$y(typeof globalThis=="object"&&globalThis)||$y(typeof window=="object"&&window)||$y(typeof self=="object"&&self)||$y(typeof vk=="object"&&vk)||function(){return this}()||Function("return this")(),MJ=Object.defineProperty,hT=function(e,t){try{MJ(on,e,{value:t,configurable:!0,writable:!0})}catch(n){on[e]=t}return t},Ju=on["__core-js_shared__"]||hT("__core-js_shared__",{}),fT=Bm(function(e){(e.exports=function(t,n){return Ju[t]||(Ju[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),yk=Function.prototype,pT=yk.bind,mT=yk.call,NJ=pT&&pT.bind(mT),Un=pT?function(e){return e&&NJ(mT,e)}:function(e){return e&&function(){return mT.apply(e,arguments)}},BJ=on.TypeError,bs=function(e){if(e==null)throw BJ("Can't call method on "+e);return e},FJ=on.Object,Qu=function(e){return FJ(bs(e))},jJ=Un({}.hasOwnProperty),aa=Object.hasOwn||function(e,t){return jJ(Qu(e),t)},UJ=0,HJ=Math.random(),WJ=Un(1 .toString),gT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+WJ(++UJ+HJ,36)},ei=function(e){return typeof e=="function"},zJ=function(e){return ei(e)?e:void 0},Ad=function(e,t){return arguments.length<2?zJ(on[e]):on[e]&&on[e][t]},hf=Ad("navigator","userAgent")||"",bk=on.process,Ek=on.Deno,_k=bk&&bk.versions||Ek&&Ek.version,xk=_k&&_k.v8;xk&&(Zy=(Xu=xk.split("."))[0]>0&&Xu[0]<4?1:+(Xu[0]+Xu[1])),!Zy&&hf&&(!(Xu=hf.match(/Edge\/(\d+)/))||Xu[1]>=74)&&(Xu=hf.match(/Chrome\/(\d+)/))&&(Zy=+Xu[1]);var Fm=Zy,Yr=function(e){try{return!!e()}catch(t){return!0}},vT=!!Object.getOwnPropertySymbols&&!Yr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fm&&Fm<41}),yT=vT&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jm=fT("wks"),Od=on.Symbol,wk=Od&&Od.for,GJ=yT?Od:Od&&Od.withoutSetter||gT,Oi=function(e){if(!aa(jm,e)||!vT&&typeof jm[e]!="string"){var t="Symbol."+e;vT&&aa(Od,e)?jm[e]=Od[e]:jm[e]=yT&&wk?wk(t):GJ(t)}return jm[e]},Tk={};Tk[Oi("toStringTag")]="z";var bT=String(Tk)==="[object z]",Na=!Yr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ci=function(e){return typeof e=="object"?e!==null:ei(e)},ET=on.document,KJ=ci(ET)&&ci(ET.createElement),Um=function(e){return KJ?ET.createElement(e):{}},Sk=!Na&&!Yr(function(){return Object.defineProperty(Um("div"),"a",{get:function(){return 7}}).a!=7}),VJ=on.String,YJ=on.TypeError,oa=function(e){if(ci(e))return e;throw YJ(VJ(e)+" is not an object")},Hm=Function.prototype.call,Br=Hm.bind?Hm.bind(Hm):function(){return Hm.apply(Hm,arguments)},Dd=Un({}.isPrototypeOf),XJ=on.Object,_T=yT?function(e){return typeof e=="symbol"}:function(e){var t=Ad("Symbol");return ei(t)&&Dd(t.prototype,XJ(e))},JJ=on.String,qy=function(e){try{return JJ(e)}catch(t){return"Object"}},QJ=on.TypeError,Zu=function(e){if(ei(e))return e;throw QJ(qy(e)+" is not a function")},Rd=function(e,t){var n=e[t];return n==null?void 0:Zu(n)},ZJ=on.TypeError,$J=on.TypeError,qJ=Oi("toPrimitive"),xT=function(e){var t=function(n,r){if(!ci(n)||_T(n))return n;var i,a=Rd(n,qJ);if(a){if(r===void 0&&(r="default"),i=Br(a,n,r),!ci(i)||_T(i))return i;throw $J("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&ei(u=o.toString)&&!ci(f=Br(u,o)))return f;if(ei(u=o.valueOf)&&!ci(f=Br(u,o)))return f;if(s!=="string"&&ei(u=o.toString)&&!ci(f=Br(u,o)))return f;throw ZJ("Can't convert object to primitive value")}(n,r)}(e,"string");return _T(t)?t:t+""},eQ=on.TypeError,Ck=Object.defineProperty,Vs={f:Na?Ck:function(e,t,n){if(oa(e),t=xT(t),oa(n),Sk)try{return Ck(e,t,n)}catch(r){}if("get"in n||"set"in n)throw eQ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},eb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ys=Na?function(e,t,n){return Vs.f(e,t,eb(1,n))}:function(e,t,n){return e[t]=n,e},tQ=Un(Function.toString);ei(Ju.inspectSource)||(Ju.inspectSource=function(e){return tQ(e)});var tb,Wm,nb,rb=Ju.inspectSource,Ak=on.WeakMap,Ok=ei(Ak)&&/native code/.test(rb(Ak)),Dk=fT("keys"),wT=function(e){return Dk[e]||(Dk[e]=gT(e))},ib={},TT=on.TypeError,nQ=on.WeakMap;if(Ok||Ju.state){var Id=Ju.state||(Ju.state=new nQ),rQ=Un(Id.get),Rk=Un(Id.has),iQ=Un(Id.set);tb=function(e,t){if(Rk(Id,e))throw new TT("Object already initialized");return t.facade=e,iQ(Id,e,t),t},Wm=function(e){return rQ(Id,e)||{}},nb=function(e){return Rk(Id,e)}}else{var ff=wT("state");ib[ff]=!0,tb=function(e,t){if(aa(e,ff))throw new TT("Object already initialized");return t.facade=e,Ys(e,ff,t),t},Wm=function(e){return aa(e,ff)?e[ff]:{}},nb=function(e){return aa(e,ff)}}var lo={set:tb,get:Wm,has:nb,enforce:function(e){return nb(e)?Wm(e):tb(e,{})},getterFor:function(e){return function(t){var n;if(!ci(t)||(n=Wm(t)).type!==e)throw TT("Incompatible receiver, "+e+" required");return n}}},Ik=Function.prototype,aQ=Na&&Object.getOwnPropertyDescriptor,ST=aa(Ik,"name"),pf={EXISTS:ST,PROPER:ST&&function(){}.name==="something",CONFIGURABLE:ST&&(!Na||Na&&aQ(Ik,"name").configurable)},Do=Bm(function(e){var t=pf.CONFIGURABLE,n=lo.get,r=lo.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;ei(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!aa(s,"name")||t&&s.name!==U)&&Ys(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==on?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:Ys(a,o,s)):k?a[o]=s:hT(o,s)})(Function.prototype,"toString",function(){return ei(this)&&n(this).source||rb(this)})}),oQ=Un({}.toString),sQ=Un("".slice),Xs=function(e){return sQ(oQ(e),8,-1)},lQ=Oi("toStringTag"),uQ=on.Object,cQ=Xs(function(){return arguments}())=="Arguments",ab=bT?Xs:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=uQ(e),lQ))=="string"?n:cQ?Xs(t):(r=Xs(t))=="Object"&&ei(t.callee)?"Arguments":r},dQ=bT?{}.toString:function(){return"[object "+ab(this)+"]"};bT||Do(Object.prototype,"toString",dQ,{unsafe:!0});var ob={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},CT=Um("span").classList,Lk=CT&&CT.constructor&&CT.constructor.prototype,Pk=Lk===Object.prototype?void 0:Lk,kk=Un(Un.bind),Ld=function(e,t){return Zu(e),t===void 0?e:kk?kk(e,t):function(){return e.apply(t,arguments)}},AT=on.Object,hQ=Un("".split),sb=Yr(function(){return!AT("z").propertyIsEnumerable(0)})?function(e){return Xs(e)=="String"?hQ(e,""):AT(e)}:AT,fQ=Math.ceil,pQ=Math.floor,zm=function(e){var t=+e;return t!=t||t===0?0:(t>0?pQ:fQ)(t)},mQ=Math.min,mf=function(e){return e>0?mQ(zm(e),9007199254740991):0},Pd=function(e){return mf(e.length)},lb=Array.isArray||function(e){return Xs(e)=="Array"},Mk=function(){},gQ=[],Nk=Ad("Reflect","construct"),OT=/^\s*(?:class|function)\b/,vQ=Un(OT.exec),yQ=!OT.exec(Mk),Gm=function(e){if(!ei(e))return!1;try{return Nk(Mk,gQ,e),!0}catch(t){return!1}},ub=!Nk||Yr(function(){var e;return Gm(Gm.call)||!Gm(Object)||!Gm(function(){e=!0})||e})?function(e){if(!ei(e))return!1;switch(ab(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yQ||!!vQ(OT,rb(e))}:Gm,bQ=Oi("species"),Bk=on.Array,Fk=function(e,t){return new(function(n){var r;return lb(n)&&(r=n.constructor,(ub(r)&&(r===Bk||lb(r.prototype))||ci(r)&&(r=r[bQ])===null)&&(r=void 0)),r===void 0?Bk:r}(e))(t===0?0:t)},jk=Un([].push),$u=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=Qu(u),$=sb(re),ee=Ld(f,m),te=Pd($),Q=0,he=k||Fk,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:jk(me,K)}else switch(e){case 4:return!1;case 7:jk(me,K)}return a?-1:r||i?i:me}},gf={forEach:$u(0),map:$u(1),filter:$u(2),some:$u(3),every:$u(4),find:$u(5),findIndex:$u(6),filterReject:$u(7)},Uk=function(e,t){var n=[][e];return!!n&&Yr(function(){n.call(null,t||function(){throw 1},1)})},EQ=gf.forEach,DT=Uk("forEach")?[].forEach:function(e){return EQ(this,e,arguments.length>1?arguments[1]:void 0)},Hk=function(e){if(e&&e.forEach!==DT)try{Ys(e,"forEach",DT)}catch(t){e.forEach=DT}};for(var RT in ob)ob[RT]&&Hk(on[RT]&&on[RT].prototype);Hk(Pk);var Wk={}.propertyIsEnumerable,zk=Object.getOwnPropertyDescriptor,_Q=zk&&!Wk.call({1:2},1)?function(e){var t=zk(this,e);return!!t&&t.enumerable}:Wk,Gk={f:_Q},qu=function(e){return sb(bs(e))},Kk=Object.getOwnPropertyDescriptor,Km={f:Na?Kk:function(e,t){if(e=qu(e),t=xT(t),Sk)try{return Kk(e,t)}catch(n){}if(aa(e,t))return eb(!Br(Gk.f,e,t),e[t])}},xQ=Math.max,wQ=Math.min,vf=function(e,t){var n=zm(e);return n<0?xQ(n+t,0):wQ(n,t)},Vk=function(e){return function(t,n,r){var i,a=qu(t),o=Pd(a),s=vf(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Yk={includes:Vk(!0),indexOf:Vk(!1)},TQ=Yk.indexOf,Xk=Un([].push),Jk=function(e,t){var n,r=qu(e),i=0,a=[];for(n in r)!aa(ib,n)&&aa(r,n)&&Xk(a,n);for(;t.length>i;)aa(r,n=t[i++])&&(~TQ(a,n)||Xk(a,n));return a},cb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SQ=cb.concat("length","prototype"),Vm={f:Object.getOwnPropertyNames||function(e){return Jk(e,SQ)}},Qk={f:Object.getOwnPropertySymbols},CQ=Un([].concat),AQ=Ad("Reflect","ownKeys")||function(e){var t=Vm.f(oa(e)),n=Qk.f;return n?CQ(t,n(e)):t},OQ=function(e,t){for(var n=AQ(t),r=Vs.f,i=Km.f,a=0;a<n.length;a++){var o=n[a];aa(e,o)||r(e,o,i(t,o))}},DQ=/#|\.prototype\./,Ym=function(e,t){var n=IQ[RQ(e)];return n==PQ||n!=LQ&&(ei(t)?Yr(t):!!t)},RQ=Ym.normalize=function(e){return String(e).replace(DQ,".").toLowerCase()},IQ=Ym.data={},LQ=Ym.NATIVE="N",PQ=Ym.POLYFILL="P",Xm=Ym,kQ=Km.f,Di=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?on:f?on[s]||hT(s,{}):(on[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=kQ(n,r))&&o.value:n[r],!Xm(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;OQ(a,i)}(e.sham||i&&i.sham)&&Ys(a,"sham",!0),Do(n,r,a,e)}},yf=Object.keys||function(e){return Jk(e,cb)},MQ=Yr(function(){yf(1)});/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function Zk(e){return Object.prototype.toString.call(e)==="[object Object]"}Di({target:"Object",stat:!0,forced:MQ},{keys:function(e){return yf(Qu(e))}});var NQ={isHistory(e){return Zk(t=e)!==!1&&((n=t.constructor)===void 0||Zk(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Uu.isOperationList(e.redos[0]))&&(e.undos.length===0||Uu.isOperationList(e.undos[0]));var t,n,r}},IT=new WeakMap,LT=new WeakMap,bf={isHistoryEditor:e=>NQ.isHistory(e.history)&&Ee.isEditor(e),isMerging:e=>LT.get(e),isSaving:e=>IT.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=bf.isMerging(e);LT.set(e,!1),t(),LT.set(e,n)},withoutSaving(e,t){var n=bf.isSaving(e);IT.set(e,!1),t(),IT.set(e,n)}},BQ=on.String,si=function(e){if(ab(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return BQ(e)},PT=function(){var e=oa(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},FQ=pf.PROPER,kT=RegExp.prototype,$k=kT.toString,jQ=Un(PT),UQ=Yr(function(){return $k.call({source:"a",flags:"b"})!="/a/b"}),HQ=FQ&&$k.name!="toString";(UQ||HQ)&&Do(RegExp.prototype,"toString",function(){var e=oa(this),t=si(e.source),n=e.flags;return"/"+t+"/"+si(n===void 0&&Dd(kT,e)&&!("flags"in kT)?jQ(e):n)},{unsafe:!0});var db,WQ=Na?Object.defineProperties:function(e,t){oa(e);for(var n,r=qu(t),i=yf(t),a=i.length,o=0;a>o;)Vs.f(e,n=i[o++],r[n]);return e},MT=Ad("document","documentElement"),qk=wT("IE_PROTO"),NT=function(){},eM=function(e){return"<script>"+e+"</script>"},tM=function(e){e.write(eM("")),e.close();var t=e.parentWindow.Object;return e=null,t},hb=function(){try{db=new ActiveXObject("htmlfile")}catch(r){}var e,t;hb=typeof document!="undefined"?document.domain&&db?tM(db):((t=Um("iframe")).style.display="none",MT.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(eM("document.F=Object")),e.close(),e.F):tM(db);for(var n=cb.length;n--;)delete hb.prototype[cb[n]];return hb()};ib[qk]=!0;var fb=Object.create||function(e,t){var n;return e!==null?(NT.prototype=oa(e),n=new NT,NT.prototype=null,n[qk]=e):n=hb(),t===void 0?n:WQ(n,t)},BT=Oi("unscopables"),FT=Array.prototype;FT[BT]==null&&Vs.f(FT,BT,{configurable:!0,value:fb(null)});var Jm=function(e){FT[BT][e]=!0},zQ=Yk.includes;Di({target:"Array",proto:!0},{includes:function(e){return zQ(this,e,arguments.length>1?arguments[1]:void 0)}}),Jm("includes");var GQ=Oi("match"),jT=function(e){var t;return ci(e)&&((t=e[GQ])!==void 0?!!t:Xs(e)=="RegExp")},KQ=on.TypeError,UT=function(e){if(jT(e))throw KQ("The method doesn't accept regular expressions");return e},VQ=Oi("match"),HT=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[VQ]=!1,"/./"[e](t)}catch(r){}}return!1},YQ=Un("".indexOf);Di({target:"String",proto:!0,forced:!HT("includes")},{includes:function(e){return!!~YQ(si(bs(this)),si(UT(e)),arguments.length>1?arguments[1]:void 0)}});var XQ=/"/g,JQ=Un("".replace);Di({target:"String",proto:!0,forced:Yr(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=si(bs(this)),r="<a",(r+=' name="'+JQ(si(t),XQ,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var WT=function(e,t,n){var r,i;oa(e);try{if(!(r=Rd(e,"return"))){if(t==="throw")throw n;return n}r=Br(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return oa(r),n},QQ=function(e,t,n,r){try{return r?t(oa(n)[0],n[1]):t(n)}catch(i){WT(e,"throw",i)}},Ef={},ZQ=Oi("iterator"),$Q=Array.prototype,nM=function(e){return e!==void 0&&(Ef.Array===e||$Q[ZQ]===e)},Qm=function(e,t,n){var r=xT(t);r in e?Vs.f(e,r,eb(0,n)):e[r]=n},qQ=Oi("iterator"),zT=function(e){if(e!=null)return Rd(e,qQ)||Rd(e,"@@iterator")||Ef[ab(e)]},eZ=on.TypeError,rM=function(e,t){var n=arguments.length<2?zT(e):t;if(Zu(n))return oa(Br(n,e));throw eZ(qy(e)+" is not iterable")},iM=on.Array,aM=Oi("iterator"),oM=!1;try{var tZ=0,sM={next:function(){return{done:!!tZ++}},return:function(){oM=!0}};sM[aM]=function(){return this},Array.from(sM,function(){throw 2})}catch(e){}var GT=function(e,t){if(!t&&!oM)return!1;var n=!1;try{var r={};r[aM]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},nZ=!GT(function(e){Array.from(e)});Di({target:"Array",stat:!0,forced:nZ},{from:function(e){var t=Qu(e),n=ub(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=Ld(i,r>2?arguments[2]:void 0));var o,s,u,f,m,k,K=zT(t),U=0;if(!K||this==iM&&nM(K))for(o=Pd(t),s=n?new this(o):iM(o);o>U;U++)k=a?i(t[U],U):t[U],Qm(s,U,k);else for(m=(f=rM(t,K)).next,s=n?new this:[];!(u=Br(m,f)).done;U++)k=a?QQ(f,i,[u.value,U],!0):u.value,Qm(s,U,k);return s.length=U,s}});var kd,lM,uM,rZ=Un("".charAt),cM=Un("".charCodeAt),iZ=Un("".slice),dM=function(e){return function(t,n){var r,i,a=si(bs(t)),o=zm(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=cM(a,o))<55296||r>56319||o+1===s||(i=cM(a,o+1))<56320||i>57343?e?rZ(a,o):r:e?iZ(a,o,o+2):i-56320+(r-55296<<10)+65536}},hM={codeAt:dM(!1),charAt:dM(!0)},aZ=!Yr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fM=wT("IE_PROTO"),KT=on.Object,oZ=KT.prototype,pb=aZ?KT.getPrototypeOf:function(e){var t=Qu(e);if(aa(t,fM))return t[fM];var n=t.constructor;return ei(n)&&t instanceof n?n.prototype:t instanceof KT?oZ:null},VT=Oi("iterator"),pM=!1;[].keys&&("next"in(uM=[].keys())?(lM=pb(pb(uM)))!==Object.prototype&&(kd=lM):pM=!0);var sZ=kd==null||Yr(function(){var e={};return kd[VT].call(e)!==e});sZ&&(kd={}),ei(kd[VT])||Do(kd,VT,function(){return this});var YT={IteratorPrototype:kd,BUGGY_SAFARI_ITERATORS:pM},lZ=Vs.f,mM=Oi("toStringTag"),mb=function(e,t,n){e&&!aa(e=n?e:e.prototype,mM)&&lZ(e,mM,{configurable:!0,value:t})},uZ=YT.IteratorPrototype,cZ=function(){return this},dZ=on.String,hZ=on.TypeError,_f=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Un(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return oa(r),function(a){if(typeof a=="object"||ei(a))return a;throw hZ("Can't set "+dZ(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),fZ=pf.PROPER,pZ=pf.CONFIGURABLE,gM=YT.IteratorPrototype,gb=YT.BUGGY_SAFARI_ITERATORS,Zm=Oi("iterator"),mZ=function(){return this},XT=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=fb(uZ,{next:eb(1,he)}),mb(te,_e,!1),Ef[_e]=cZ}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!gb&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[Zm]||U["@@iterator"]||i&&U[i],$=!gb&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=pb(ee.call(new e)))!==Object.prototype&&s.next&&(pb(s)!==gM&&(_f?_f(s,gM):ei(s[Zm])||Do(s,Zm,mZ)),mb(s,k,!0)),fZ&&i=="values"&&re&&re.name!=="values"&&(pZ?Ys(U,"name","values"):(K=!0,$=function(){return Br(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(gb||K||!(f in U))&&Do(U,f,u[f]);else Di({target:t,proto:!0,forced:gb||K},u);return U[Zm]!==$&&Do(U,Zm,$,{name:i}),Ef[t]=$,u},gZ=hM.charAt,vZ=lo.set,yZ=lo.getterFor("String Iterator");XT(String,"String",function(e){vZ(this,{type:"String Iterator",string:si(e),index:0})},function(){var e,t=yZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gZ(n,r),t.index+=e.length,{value:e,done:!1})});var JT,bZ=Km.f,vM=Un("".endsWith),EZ=Un("".slice),_Z=Math.min,yM=HT("endsWith"),xZ=!(yM||(JT=bZ(String.prototype,"endsWith"),!JT||JT.writable));Di({target:"String",proto:!0,forced:!xZ&&!yM},{endsWith:function(e){var t=si(bs(this));UT(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:_Z(mf(n),r),a=si(e);return vM?vM(t,a,i):EZ(t,i-a.length,i)===a}});var wZ=Un([].join),TZ=sb!=Object,SZ=Uk("join",",");Di({target:"Array",proto:!0,forced:TZ||!SZ},{join:function(e){return wZ(qu(this),e===void 0?",":e)}});var CZ=Oi("species"),vb=function(e){return Fm>=51||!Yr(function(){var t=[];return(t.constructor={})[CZ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},AZ=gf.map,OZ=vb("map");Di({target:"Array",proto:!0,forced:!OZ},{map:function(e){return AZ(this,e,arguments.length>1?arguments[1]:void 0)}});var QT=on.RegExp,ZT=Yr(function(){var e=QT("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),DZ=ZT||Yr(function(){return!QT("a","y").sticky}),yb={BROKEN_CARET:ZT||Yr(function(){var e=QT("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:DZ,UNSUPPORTED_Y:ZT},RZ=on.RegExp,$T=Yr(function(){var e=RZ(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),IZ=on.RegExp,qT=Yr(function(){var e=IZ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),LZ=lo.get,PZ=fT("native-string-replace",String.prototype.replace),bb=RegExp.prototype.exec,eS=bb,kZ=Un("".charAt),MZ=Un("".indexOf),NZ=Un("".replace),tS=Un("".slice),nS=function(){var e=/a/,t=/b*/g;return Br(bb,e,"a"),Br(bb,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),bM=yb.BROKEN_CARET,rS=/()??/.exec("")[1]!==void 0;(nS||rS||bM||$T||qT)&&(eS=function(e){var t,n,r,i,a,o,s,u=this,f=LZ(u),m=si(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=Br(eS,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=bM&&u.sticky,re=Br(PT,u),$=u.source,ee=0,te=m;if(U&&(re=NZ(re,"y",""),MZ(re,"g")===-1&&(re+="g"),te=tS(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&kZ(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),rS&&(n=new RegExp("^"+$+"$(?!\\s)",re)),nS&&(r=u.lastIndex),i=Br(bb,U?n:u,te),U?i?(i.input=tS(i.input,ee),i[0]=tS(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:nS&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),rS&&i&&i.length>1&&Br(PZ,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=fb(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var $m=eS;Di({target:"RegExp",proto:!0,forced:/./.exec!==$m},{exec:$m});var iS=Function.prototype,EM=iS.apply,BZ=iS.bind,_M=iS.call,aS=typeof Reflect=="object"&&Reflect.apply||(BZ?_M.bind(EM):function(){return _M.apply(EM,arguments)}),FZ=Oi("species"),oS=RegExp.prototype,sS=function(e,t,n,r){var i=Oi(e),a=!Yr(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!Yr(function(){var f=!1,m=/a/;return e==="split"&&((m={}).constructor={},m.constructor[FZ]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=Un(/./[i]),u=t(i,""[e],function(f,m,k,K,U){var re=Un(f),$=m.exec;return $===$m||$===oS.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});Do(String.prototype,e,u[0]),Do(oS,i,u[1])}r&&Ys(oS[i],"sham",!0)},jZ=hM.charAt,lS=function(e,t,n){return t+(n?jZ(e,t).length:1)},UZ=Math.floor,uS=Un("".charAt),HZ=Un("".replace),cS=Un("".slice),WZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zZ=/\$([$&'`]|\d{1,2})/g,GZ=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=zZ;return i!==void 0&&(i=Qu(i),u=WZ),HZ(a,u,function(f,m){var k;switch(uS(m,0)){case"$":return"$";case"&":return e;case"`":return cS(t,0,n);case"'":return cS(t,o);case"<":k=i[cS(m,1,-1)];break;default:var K=+m;if(K===0)return f;if(K>s){var U=UZ(K/10);return U===0?f:U<=s?r[U-1]===void 0?uS(m,1):r[U-1]+uS(m,1):f}k=r[K-1]}return k===void 0?"":k})},KZ=on.TypeError,qm=function(e,t){var n=e.exec;if(ei(n)){var r=Br(n,e,t);return r!==null&&oa(r),r}if(Xs(e)==="RegExp")return Br($m,e,t);throw KZ("RegExp#exec called on incompatible receiver")},dS=Oi("replace"),VZ=Math.max,YZ=Math.min,XZ=Un([].concat),hS=Un([].push),xM=Un("".indexOf),wM=Un("".slice),JZ="a".replace(/./,"$0")==="$0",TM=!!/./[dS]&&/./[dS]("a","$0")==="";sS("replace",function(e,t,n){var r=TM?"$":"$0";return[function(i,a){var o=bs(this),s=i==null?void 0:Rd(i,dS);return s?Br(s,i,o,a):Br(t,si(o),i,a)},function(i,a){var o=oa(this),s=si(i);if(typeof a=="string"&&xM(a,r)===-1&&xM(a,"$<")===-1){var u=n(t,o,s,a);if(u.done)return u.value}var f=ei(a);f||(a=si(a));var m=o.global;if(m){var k=o.unicode;o.lastIndex=0}for(var K=[];;){var U=qm(o,s);if(U===null)break;if(hS(K,U),!m)break;si(U[0])===""&&(o.lastIndex=lS(s,mf(o.lastIndex),k))}for(var re,$="",ee=0,te=0;te<K.length;te++){for(var Q=si((U=K[te])[0]),he=VZ(YZ(zm(U.index),s.length),0),me=[],_e=1;_e<U.length;_e++)hS(me,(re=U[_e])===void 0?re:String(re));var ke=U.groups;if(f){var De=XZ([Q],me,he,s);ke!==void 0&&hS(De,ke);var Ye=si(aS(a,void 0,De))}else Ye=GZ(Q,s,he,me,ke,a);he>=ee&&($+=wM(s,ee,he)+Ye,ee=he+Q.length)}return $+wM(s,ee)}]},!!Yr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!JZ||TM);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var fS=function(e,t){return fS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},fS(e,t)};function xf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fS(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Es=function(){return Es=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Es.apply(this,arguments)};function _s(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function pS(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var QZ=0,SM=function(){this.id=""+QZ++},ZZ=lo.set,$Z=lo.getterFor("Array Iterator"),eg=XT(Array,"Array",function(e,t){ZZ(this,{type:"Array Iterator",target:qu(e),index:0,kind:t})},function(){var e=$Z(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ef.Arguments=Ef.Array,Jm("keys"),Jm("values"),Jm("entries");var wf=function(e,t,n){for(var r in t)Do(e,r,t[r],n);return e},qZ=on.Array,e$=Math.max,mS=function(e,t,n){for(var r=Pd(e),i=vf(t,r),a=vf(n===void 0?r:n,r),o=qZ(e$(a-i,0)),s=0;i<a;i++,s++)Qm(o,s,e[i]);return o.length=s,o},CM=Vm.f,AM=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t$={f:function(e){return AM&&Xs(e)=="Window"?function(t){try{return CM(t)}catch(n){return mS(AM)}}(e):CM(qu(e))}},OM=Yr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Eb=Object.isExtensible,Md=Yr(function(){Eb(1)})||OM?function(e){return!!ci(e)&&(!OM||Xs(e)!="ArrayBuffer")&&(!Eb||Eb(e))}:Eb,n$=!Yr(function(){return Object.isExtensible(Object.preventExtensions({}))}),_b=Bm(function(e){var t=Vs.f,n=!1,r=gT("meta"),i=0,a=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var s=Vm.f,u=Un([].splice),f={};f[r]=1,s(f).length&&(Vm.f=function(m){for(var k=s(m),K=0,U=k.length;K<U;K++)if(k[K]===r){u(k,K,1);break}return k},Di({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:t$.f}))},fastKey:function(s,u){if(!ci(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!aa(s,r)){if(!Md(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!aa(s,r)){if(!Md(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return n$&&n&&Md(s)&&!aa(s,r)&&a(s),s}};ib[r]=!0}),r$=on.TypeError,xb=function(e,t){this.stopped=e,this.result=t},DM=xb.prototype,tg=function(e,t,n){var r,i,a,o,s,u,f,m=n&&n.that,k=!(!n||!n.AS_ENTRIES),K=!(!n||!n.IS_ITERATOR),U=!(!n||!n.INTERRUPTED),re=Ld(t,m),$=function(te){return r&&WT(r,"normal",te),new xb(!0,te)},ee=function(te){return k?(oa(te),U?re(te[0],te[1],$):re(te[0],te[1])):U?re(te,$):re(te)};if(K)r=e;else{if(!(i=zT(e)))throw r$(qy(e)+" is not iterable");if(nM(i)){for(a=0,o=Pd(e);o>a;a++)if((s=ee(e[a]))&&Dd(DM,s))return s;return new xb(!1)}r=rM(e,i)}for(u=r.next;!(f=Br(u,r)).done;){try{s=ee(f.value)}catch(te){WT(r,"throw",te)}if(typeof s=="object"&&s&&Dd(DM,s))return s}return new xb(!1)},i$=on.TypeError,wb=function(e,t){if(Dd(t,e))return e;throw i$("Incorrect invocation")},RM=function(e,t,n){var r,i;return _f&&ei(r=t.constructor)&&r!==n&&ci(i=r.prototype)&&i!==n.prototype&&_f(e,i),e},IM=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=r?"set":"add",o=on[e],s=o&&o.prototype,u=o,f={},m=function(ee){var te=Un(s[ee]);Do(s,ee,ee=="add"?function(Q){return te(this,Q===0?0:Q),this}:ee=="delete"?function(Q){return!(i&&!ci(Q))&&te(this,Q===0?0:Q)}:ee=="get"?function(Q){return i&&!ci(Q)?void 0:te(this,Q===0?0:Q)}:ee=="has"?function(Q){return!(i&&!ci(Q))&&te(this,Q===0?0:Q)}:function(Q,he){return te(this,Q===0?0:Q,he),this})};if(Xm(e,!ei(o)||!(i||s.forEach&&!Yr(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),_b.enable();else if(Xm(e,!0)){var k=new u,K=k[a](i?{}:-0,1)!=k,U=Yr(function(){k.has(1)}),re=GT(function(ee){new o(ee)}),$=!i&&Yr(function(){for(var ee=new o,te=5;te--;)ee[a](te,te);return!ee.has(-0)});re||((u=t(function(ee,te){wb(ee,s);var Q=RM(new o,ee,u);return te!=null&&tg(te,Q[a],{that:Q,AS_ENTRIES:r}),Q})).prototype=s,s.constructor=u),(U||$)&&(m("delete"),m("has"),r&&m("get")),($||K)&&m(a),i&&s.clear&&delete s.clear}return f[e]=u,Di({global:!0,forced:u!=o},f),mb(u,e),i||n.setStrong(u,e,r),u},Tb=_b.getWeakData,a$=lo.set,o$=lo.getterFor,s$=gf.find,l$=gf.findIndex,u$=Un([].splice),c$=0,Sb=function(e){return e.frozen||(e.frozen=new LM)},LM=function(){this.entries=[]},gS=function(e,t){return s$(e.entries,function(n){return n[0]===t})};LM.prototype={get:function(e){var t=gS(this,e);if(t)return t[1]},has:function(e){return!!gS(this,e)},set:function(e,t){var n=gS(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=l$(this.entries,function(n){return n[0]===e});return~t&&u$(this.entries,t,1),!!~t}};var ng,PM={getConstructor:function(e,t,n,r){var i=e(function(u,f){wb(u,a),a$(u,{type:t,id:c$++,frozen:void 0}),f!=null&&tg(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=o$(t),s=function(u,f,m){var k=o(u),K=Tb(oa(f),!0);return K===!0?Sb(k).set(f,m):K[k.id]=m,u};return wf(a,{delete:function(u){var f=o(this);if(!ci(u))return!1;var m=Tb(u);return m===!0?Sb(f).delete(u):m&&aa(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!ci(u))return!1;var m=Tb(u);return m===!0?Sb(f).has(u):m&&aa(m,f.id)}}),wf(a,n?{get:function(u){var f=o(this);if(ci(u)){var m=Tb(u);return m===!0?Sb(f).get(u):m?m[f.id]:void 0}},set:function(u,f){return s(this,u,f)}}:{add:function(u){return s(this,u,!0)}}),i}},Cb=lo.enforce,d$=!on.ActiveXObject&&"ActiveXObject"in on,kM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h$=IM("WeakMap",kM,PM);if(Ok&&d$){ng=PM.getConstructor(kM,"WeakMap",!0),_b.enable();var rg=h$.prototype,MM=Un(rg.delete),Ab=Un(rg.has),NM=Un(rg.get),BM=Un(rg.set);wf(rg,{delete:function(e){if(ci(e)&&!Md(e)){var t=Cb(this);return t.frozen||(t.frozen=new ng),MM(this,e)||t.frozen.delete(e)}return MM(this,e)},has:function(e){if(ci(e)&&!Md(e)){var t=Cb(this);return t.frozen||(t.frozen=new ng),Ab(this,e)||t.frozen.has(e)}return Ab(this,e)},get:function(e){if(ci(e)&&!Md(e)){var t=Cb(this);return t.frozen||(t.frozen=new ng),Ab(this,e)?NM(this,e):t.frozen.get(e)}return NM(this,e)},set:function(e,t){if(ci(e)&&!Md(e)){var n=Cb(this);n.frozen||(n.frozen=new ng),Ab(this,e)?BM(this,e,t):n.frozen.set(e,t)}else BM(this,e,t);return this}})}var vS=Oi("iterator"),FM=Oi("toStringTag"),yS=eg.values,jM=function(e,t){if(e){if(e[vS]!==yS)try{Ys(e,vS,yS)}catch(r){e[vS]=yS}if(e[FM]||Ys(e,FM,t),ob[t]){for(var n in eg)if(e[n]!==eg[n])try{Ys(e,n,eg[n])}catch(r){e[n]=eg[n]}}}};for(var bS in ob)jM(on[bS]&&on[bS].prototype,bS);jM(Pk,"DOMTokenList");var ES=new WeakMap,_S=new WeakMap,xS=new WeakMap,Ob=new WeakMap,wS=new WeakMap,Db=new WeakMap,TS=new WeakMap,SS=new WeakMap,Rb=new WeakMap,UM=new WeakMap,HM=new WeakMap,WM=new WeakMap,zM=new WeakMap,ig=new WeakMap,Tf=new WeakMap,CS=new WeakMap,Ib=new WeakMap,AS=new WeakMap,Lb=new WeakMap,Pb=new WeakMap,GM=new WeakMap,Nd=new WeakMap,OS=new WeakMap,KM=new WeakMap,DS=new WeakMap,f$=gf.find,VM=!0;"find"in[]&&Array(1).find(function(){VM=!1}),Di({target:"Array",proto:!0,forced:VM},{find:function(e){return f$(this,e,arguments.length>1?arguments[1]:void 0)}}),Jm("find"),Di({global:!0},{globalThis:on});const p$=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];By&&(Qe.fn.css=By),gs&&(Qe.fn.append=gs),Zh&&(Qe.fn.addClass=Zh),$h&&(Qe.fn.removeClass=$h),qh&&(Qe.fn.hasClass=qh),_l&&(Qe.fn.on=_l),zu&&(Qe.fn.focus=zu),ms&&(Qe.fn.attr=ms),Py&&(Qe.fn.removeAttr=Py),tf&&(Qe.fn.hide=tf),Ny&&(Qe.fn.show=Ny),QP&&(Qe.fn.offset=QP),ky&&(Qe.fn.width=ky),My&&(Qe.fn.height=My),nf&&(Qe.fn.parent=nf),Uy&&(Qe.fn.parents=Uy),$P&&(Qe.fn.is=$P),ef&&(Qe.fn.dataset=ef),El&&(Qe.fn.val=El),jy&&(Qe.fn.text=jy),Wu&&(Qe.fn.html=Wu),af&&(Qe.fn.children=af),of&&(Qe.fn.remove=of),rf&&(Qe.fn.find=rf),Fy&&(Qe.fn.each=Fy),sf&&(Qe.fn.empty=sf);var Cl,uo,RS=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Js=function(e){return Bd(e)&&e.nodeType===1},Bd=function(e){var t=RS(e);return!!t&&e instanceof t.Node},YM=function(e){var t=e&&e.anchorNode&&RS(e.anchorNode);return!!t&&e instanceof t.Selection},XM=function(e){return Bd(e)&&e.nodeType===3},IS=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},JM=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,u=!1;(Bd(r=a)&&r.nodeType===8||Js(a)&&a.childNodes.length===0||Js(a)&&a.getAttribute("contenteditable")==="false")&&(!s||!u);)o>=i.length?(s=!0,o=t-1,n="backward"):o<0?(u=!0,o=t+1,n="forward"):(a=i[o],t=o,o+=n==="forward"?1:-1);return[a,t]},m$=function(e,t,n){return Fr(JM(e,t,n),1)[0]},g$=function e(t){var n,r,i="";if(XM(t)&&t.nodeValue)return t.nodeValue;if(Js(t)){try{for(var a=_s(Array.from(t.childNodes)),o=a.next();!o.done;o=a.next())i+=e(o.value)}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(i+=`
`)}return i};function QM(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],a=i.nodeType;a==3?t(i,e):a!=1&&a!=9&&a!=11||QM(i,t)}}function ZM(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Cl.ELEMENT_NODE?"":t.tagName.toLowerCase()}(uo=Cl||(Cl={}))[uo.ELEMENT_NODE=1]="ELEMENT_NODE",uo[uo.TEXT_NODE=3]="TEXT_NODE",uo[uo.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",uo[uo.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",uo[uo.COMMENT_NODE=8]="COMMENT_NODE",uo[uo.DOCUMENT_NODE=9]="DOCUMENT_NODE",uo[uo.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",uo[uo.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var LS=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),ag=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var og=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),v$=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),y$=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),PS=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var sg=!y$&&!v$&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Ge={getWindow:function(e){var t=GM.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Pb.get(t);return n||(n=new SM,Pb.set(t,n)),n},setNewKey:function(e){var t=new SM;Pb.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=Tf.get(r);if(i==null){if(Ee.isEditor(r))return n;break}var a=ig.get(r);if(a==null)break;n.unshift(a),r=i}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=Ge.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Tf.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=Ge.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[Ge.findPath(e,t)[0]];return fn.get(e,n)},toDOMNode:function(e,t){var n;if(Ee.isEditor(t))n=CS.get(e);else{var r=Ge.findKey(e,t);n=AS.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,a=i!==void 0&&i,o=Ge.toDOMNode(e,e);try{r=Js(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===o&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=_t.isBackward(t),a=Ge.toDOMPoint(e,n),o=_t.isCollapsed(t)?a:Ge.toDOMPoint(e,r),s=Ge.getWindow(e).document.createRange(),u=Fr(i?o:a,2),f=u[0],m=u[1],k=Fr(i?a:o,2),K=k[0],U=k[1],re=!!(Js(f)?f:f.parentElement).getAttribute("data-slate-zero-width"),$=!!(Js(K)?K:K.parentElement).getAttribute("data-slate-zero-width");return s.setStart(f,re?1:m),s.setEnd(K,$?1:U),s},toDOMPoint:function(e,t){var n,r,i,a=Fr(Ee.node(e,t.path),1)[0],o=Ge.toDOMNode(e,a);Ee.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var f=_s(s),m=f.next();!m.done;m=f.next()){var k=m.value,K=k.childNodes[0];if(K!=null&&K.textContent!=null){var U=K.textContent.length,re=k.getAttribute("data-slate-length"),$=u+(re==null?U:parseInt(re,10));if(t.offset<=$){i=[K,Math.min(U,Math.max(0,t.offset-u))];break}u=$}}}catch(ee){n={error:ee}}finally{try{m&&!m.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=Js(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Ib.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var a,o=Ge.toSlateNode(e,t.target),s=Ge.findPath(e,o);if(Ee.isVoid(e,o)){var u=i.getBoundingClientRect(),f=e.isInline(o)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,m=Ee.point(e,s,{edge:f?"start":"end"}),k=f?Ee.before(e,m):Ee.after(e,m);if(k)return Ee.range(e,k)}var K=this.getWindow(e).document;if(K.caretRangeFromPoint)a=K.caretRangeFromPoint(n,r);else{var U=K.caretPositionFromPoint(n,r);U&&((a=K.createRange()).setStart(U.offsetNode,U.offset),a.setEnd(U.offsetNode,U.offset))}if(!a)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return Ge.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,a,o,s,u=n.exactMatch,f=n.suppressThrow;if((YM(t)?t.anchorNode:t.startContainer)&&(YM(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=PS&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=t.collapsed)),r==null||a==null||i==null||o==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var m=Ge.toSlatePoint(e,[r,i],{exactMatch:u,suppressThrow:f});if(!m)return null;var k=s?m:Ge.toSlatePoint(e,[a,o],{exactMatch:u,suppressThrow:f});if(!k)return null;var K={anchor:m,focus:k};return _t.isExpanded(K)&&_t.isForward(K)&&Js(a)&&Ee.void(e,{at:K.focus,mode:"highest"})&&(K=Ee.unhangRange(e,K,{voids:!0})),K},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=Fr(i?t:function(Q){var he,me=Fr(Q,2),_e=me[0],ke=me[1];if(Js(_e)&&_e.childNodes.length){var De=ke===_e.childNodes.length,Ye=De?ke-1:ke;for(_e=(he=Fr(JM(_e,Ye,De?"backward":"forward"),2))[0],De=(Ye=he[1])<ke;Js(_e)&&_e.childNodes.length;){var rt=De?_e.childNodes.length-1:0;_e=m$(_e,rt,De?"backward":"forward")}ke=De&&_e.textContent!=null?_e.textContent.length:0}return[_e,ke]}(t),2),s=o[0],u=o[1],f=s.parentNode,m=null,k=0;if(f){var K=f.closest('[data-slate-void="true"]'),U=f.closest("[data-slate-leaf]"),re=null;if(U){m=U.closest('[data-slate-node="text"]');var $=Ge.getWindow(e).document.createRange();$.setStart(m,0),$.setEnd(s,u);var ee=$.cloneContents();pS(pS([],Fr(KP(ee.querySelectorAll("[data-slate-zero-width]")))),Fr(KP(ee.querySelectorAll("[contenteditable=false]")))).forEach(function(Q){Q.parentNode.removeChild(Q)}),k=ee.textContent.length,re=m}else K&&((U=K.querySelector("[data-slate-leaf]"))?(m=U.closest('[data-slate-node="text"]'),k=(re=U).textContent.length,re.querySelectorAll("[data-slate-zero-width]").forEach(function(Q){k-=Q.textContent.length})):k=1);re&&k===re.textContent.length&&(f.hasAttribute("data-slate-zero-width")||ag&&((r=re.textContent)===null||r===void 0?void 0:r.endsWith(`
`)))&&k--}if(!m){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var te=Ge.toSlateNode(e,m);return{path:Ge.findPath(e,te),offset:k}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Ee.hasPath(e,n.path)&&Ee.hasPath(e,r.path)},getNodeType:function(e){return Nn.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return fn.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=Ee.nodes(e,{universal:!0});try{for(var a=_s(i),o=a.next();!o.done;o=a.next()){var s=Fr(o.value,1)[0];Nn.isElement(s)&&r.push(s)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Fr(Ee.nodes(e,{match:function(a){return n.checkNodeType(a,t)},universal:!0}),1),i=r[0];return i==null?null:i[0]},getSelectedTextNode:function(e){var t=Fr(Ee.nodes(e,{match:function(r){return wn.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Fr(Ee.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&Fr(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Ee.isEnd(e,n.anchor,t)||Ee.isEnd(e,n.focus,t))},getTextarea:function(e){var t=ES.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Ob.get(e)||null},getHoverbar:function(e){return Db.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,a=Ge.getTextarea(e).$textArea,o=a==null?void 0:a[0].childNodes;if(o)try{for(var s=_s(Array.from(o)),u=s.next();!u.done;u=s.next()){var f=u.value;if(f.nodeType!==3)break;f.remove()}}catch($){t={error:$}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var m=Ee.nodes(e,{match:function($){return!(!Nn.isElement($)||e.isInline($))},universal:!0});try{for(var k=_s(m),K=k.next();!K.done;K=k.next()){var U=K.value;if(U!=null){var re=U[0];QM(Ge.toDOMNode(e,re),function($,ee){var te=Qe(ee);te.attr("data-slate-string")||te.attr("data-slate-zero-width")||te.attr("data-w-e-reserve")||ee.removeChild($)})}}}catch($){r={error:$}}finally{try{K&&!K.done&&(i=k.return)&&i.call(k)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Ee.nodes(e,{match:function(s){return e.isVoid(s)}}),i=0;try{for(var a=_s(r),o=a.next();!o.done;o=a.next())o.value,i++}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null)return!1;if(_t.isExpanded(t))return!1;var n=Ge.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=Ee.node(e,t);if(n==null)return!1;var r=Fr(n,1)[0].children;return r.length===1&&r[0].text===""}},b$=1,$M={},lg={},E$=gf.filter,_$=vb("filter");Di({target:"Array",proto:!0,forced:!_$},{filter:function(e){return E$(this,e,arguments.length>1?arguments[1]:void 0)}});var kS=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,qM=Un("".replace),kb="["+kS+"]",x$=RegExp("^"+kb+kb+"*"),w$=RegExp(kb+kb+"*$"),MS=function(e){return function(t){var n=si(bs(t));return 1&e&&(n=qM(n,x$,"")),2&e&&(n=qM(n,w$,"")),n}},T$={start:MS(1),end:MS(2),trim:MS(3)},S$=pf.PROPER,C$=T$.trim;Di({target:"String",proto:!0,forced:function(e){return Yr(function(){return!!kS[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||S$&&kS[e].name!==e})}("trim")},{trim:function(){return C$(this)}});var NS=[],eN={};function A$(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var ug,Sf,tN,BS,Mb=on.Promise,nN=Oi("species"),FS=function(e){var t=Ad(e),n=Vs.f;Na&&t&&!t[nN]&&n(t,nN,{configurable:!0,get:function(){return this}})},O$=on.TypeError,D$=Oi("species"),rN=function(e,t){var n,r=oa(e).constructor;return r===void 0||(n=oa(r)[D$])==null?t:function(i){if(ub(i))return i;throw O$(qy(i)+" is not a constructor")}(n)},iN=Un([].slice),aN=/(?:ipad|iphone|ipod).*applewebkit/i.test(hf),ec=Xs(on.process)=="process",jS=on.setImmediate,US=on.clearImmediate,R$=on.process,HS=on.Dispatch,I$=on.Function,oN=on.MessageChannel,L$=on.String,WS=0,cg={};try{ug=on.location}catch(e){}var zS=function(e){if(aa(cg,e)){var t=cg[e];delete cg[e],t()}},GS=function(e){return function(){zS(e)}},sN=function(e){zS(e.data)},lN=function(e){on.postMessage(L$(e),ug.protocol+"//"+ug.host)};jS&&US||(jS=function(e){var t=iN(arguments,1);return cg[++WS]=function(){aS(ei(e)?e:I$(e),void 0,t)},Sf(WS),WS},US=function(e){delete cg[e]},ec?Sf=function(e){R$.nextTick(GS(e))}:HS&&HS.now?Sf=function(e){HS.now(GS(e))}:oN&&!aN?(BS=(tN=new oN).port2,tN.port1.onmessage=sN,Sf=Ld(BS.postMessage,BS)):on.addEventListener&&ei(on.postMessage)&&!on.importScripts&&ug&&ug.protocol!=="file:"&&!Yr(lN)?(Sf=lN,on.addEventListener("message",sN,!1)):Sf="onreadystatechange"in Um("script")?function(e){MT.appendChild(Um("script")).onreadystatechange=function(){MT.removeChild(this),zS(e)}}:function(e){setTimeout(GS(e),0)});var dg,Fd,hg,Cf,KS,VS,YS,uN,cN={set:jS,clear:US},P$=/ipad|iphone|ipod/i.test(hf)&&on.Pebble!==void 0,k$=/web0s(?!.*chrome)/i.test(hf),M$=Km.f,XS=cN.set,dN=on.MutationObserver||on.WebKitMutationObserver,hN=on.document,fN=on.process,Nb=on.Promise,pN=M$(on,"queueMicrotask"),mN=pN&&pN.value;mN||(dg=function(){var e,t;for(ec&&(e=fN.domain)&&e.exit();Fd;){t=Fd.fn,Fd=Fd.next;try{t()}catch(n){throw Fd?Cf():hg=void 0,n}}hg=void 0,e&&e.enter()},aN||ec||k$||!dN||!hN?!P$&&Nb&&Nb.resolve?((YS=Nb.resolve(void 0)).constructor=Nb,uN=Ld(YS.then,YS),Cf=function(){uN(dg)}):ec?Cf=function(){fN.nextTick(dg)}:(XS=Ld(XS,on),Cf=function(){XS(dg)}):(KS=!0,VS=hN.createTextNode(""),new dN(dg).observe(VS,{characterData:!0}),Cf=function(){VS.data=KS=!KS}));var JS,gN,vN,yN,bN=mN||function(e){var t={fn:e,next:void 0};hg&&(hg.next=t),Fd||(Fd=t,Cf()),hg=t},N$=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=Zu(t),this.reject=Zu(n)},QS={f:function(e){return new N$(e)}},ZS=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},B$=typeof window=="object",EN=cN.set,F$=Oi("species"),Al="Promise",_N=lo.getterFor(Al),j$=lo.set,U$=lo.getterFor(Al),jd=Mb&&Mb.prototype,Ol=Mb,fg=jd,xN=on.TypeError,$S=on.document,qS=on.process,Af=QS.f,H$=Af,W$=!!($S&&$S.createEvent&&on.dispatchEvent),wN=ei(on.PromiseRejectionEvent),TN=!1,pg=Xm(Al,function(){var e=rb(Ol),t=e!==String(Ol);if(!t&&Fm===66)return!0;if(Fm>=51&&/native code/.test(e))return!1;var n=new Ol(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[F$]=r,!(TN=n.then(function(){})instanceof r)||!t&&B$&&!wN}),z$=pg||!GT(function(e){Ol.all(e).catch(function(){})}),SN=function(e){var t;return!(!ci(e)||!ei(t=e.then))&&t},eC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bN(function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,u,f=n[a++],m=i?f.ok:f.fail,k=f.resolve,K=f.reject,U=f.domain;try{m?(i||(e.rejection===2&&K$(e),e.rejection=1),m===!0?o=r:(U&&U.enter(),o=m(r),U&&(U.exit(),u=!0)),o===f.promise?K(xN("Promise-chain cycle")):(s=SN(o))?Br(s,o,k,K):k(o)):K(r)}catch(re){U&&!u&&U.exit(),K(re)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&G$(e)})}},CN=function(e,t,n){var r,i;W$?((r=$S.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),on.dispatchEvent(r)):r={promise:t,reason:n},!wN&&(i=on["on"+e])?i(r):e==="unhandledrejection"&&function(a,o){var s=on.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,o))}("Unhandled promise rejection",n)},G$=function(e){Br(EN,on,function(){var t,n=e.facade,r=e.value;if(AN(e)&&(t=ZS(function(){ec?qS.emit("unhandledRejection",r,n):CN("unhandledrejection",n,r)}),e.rejection=ec||AN(e)?2:1,t.error))throw t.value})},AN=function(e){return e.rejection!==1&&!e.parent},K$=function(e){Br(EN,on,function(){var t=e.facade;ec?qS.emit("rejectionHandled",t):CN("rejectionhandled",t,e.value)})},Of=function(e,t,n){return function(r){e(t,r,n)}},Df=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,eC(e,!0))},tC=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw xN("Promise can't be resolved itself");var r=SN(t);r?bN(function(){var i={done:!1};try{Br(r,t,Of(tC,i,e),Of(Df,i,e))}catch(a){Df(i,a,e)}}):(e.value=t,e.state=1,eC(e,!1))}catch(i){Df({done:!1},i,e)}}};if(pg&&(fg=(Ol=function(e){wb(this,fg),Zu(e),Br(JS,this);var t=_N(this);try{e(Of(tC,t),Of(Df,t))}catch(n){Df(t,n)}}).prototype,(JS=function(e){j$(this,{type:Al,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=wf(fg,{then:function(e,t){var n=U$(this),r=n.reactions,i=Af(rN(this,Ol));return i.ok=!ei(e)||e,i.fail=ei(t)&&t,i.domain=ec?qS.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&eC(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),gN=function(){var e=new JS,t=_N(e);this.promise=e,this.resolve=Of(tC,t),this.reject=Of(Df,t)},QS.f=Af=function(e){return e===Ol||e===vN?new gN(e):H$(e)},ei(Mb)&&jd!==Object.prototype)){yN=jd.then,TN||(Do(jd,"then",function(e,t){var n=this;return new Ol(function(r,i){Br(yN,n,r,i)}).then(e,t)},{unsafe:!0}),Do(jd,"catch",fg.catch,{unsafe:!0}));try{delete jd.constructor}catch(e){}_f&&_f(jd,fg)}Di({global:!0,wrap:!0,forced:pg},{Promise:Ol}),mb(Ol,Al,!1),FS(Al),vN=Ad(Al),Di({target:Al,stat:!0,forced:pg},{reject:function(e){var t=Af(this);return Br(t.reject,void 0,e),t.promise}}),Di({target:Al,stat:!0,forced:pg},{resolve:function(e){return function(t,n){if(oa(t),ci(n)&&n.constructor===t)return n;var r=QS.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Di({target:Al,stat:!0,forced:z$},{all:function(e){var t=this,n=Af(t),r=n.resolve,i=n.reject,a=ZS(function(){var o=Zu(t.resolve),s=[],u=0,f=1;tg(e,function(m){var k=u++,K=!1;f++,Br(o,t,m).then(function(U){K||(K=!0,s[k]=U,--f||r(s))},i)}),--f||r(s)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=Af(t),r=n.reject,i=ZS(function(){var a=Zu(t.resolve);tg(e,function(o){Br(a,t,o).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Rf=yb.UNSUPPORTED_Y,V$=Math.min,ON=[].push,Y$=Un(/./.exec),If=Un(ON),mg=Un("".slice);function xs(e){Promise.resolve().then(e)}function DN(e,t){return Nn.isElement(e)?function(n,r){var i=n.type,a=i===void 0?"":i,o=n.children,s=o===void 0?[]:o,u=Ee.isVoid(r,n),f="";u||(f=s.map(function(te){return DN(te,r)}).join(""));var m=function(te){return eN[te]||A$}(a),k=m(n,f,r),K="";if(K=typeof k=="string"?k:k.html||"",u||NS.forEach(function(te){return K=te(n,K)}),typeof k=="string")return K;var U=k.prefix,re=U===void 0?"":U,$=k.suffix,ee=$===void 0?"":$;return re&&(K=re+K),ee&&(K+=ee),K}(e,t):function(n,r){var i=n.text;if(i==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var a=i;a=function(u){return u.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(a);var o=Ge.getParentsNodes(r,n).some(function(u){return Ge.getNodeType(u)==="pre"});if(o||(a=a.replace(/\r\n|\r|\n/g,"<br>")),o&&(a=a.replace(/&nbsp;/g," ")),a===""){var s=Ge.getParentNode(null,n);if(!s||s.children.length!==0)return a;a="<br>"}return NS.forEach(function(u){return a=u(n,a)}),a}(e,t)}function RN(e){return"w-e-element-"+e}sS("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,a){var o=si(bs(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(i===void 0)return[o];if(!jT(i))return Br(t,o,i,s);for(var u,f,m,k=[],K=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),U=0,re=new RegExp(i.source,K+"g");(u=Br($m,re,o))&&!((f=re.lastIndex)>U&&(If(k,mg(o,U,u.index)),u.length>1&&u.index<o.length&&aS(ON,k,mS(u,1)),m=u[0].length,U=f,k.length>=s));)re.lastIndex===u.index&&re.lastIndex++;return U===o.length?!m&&Y$(re,"")||If(k,""):If(k,mg(o,U)),k.length>s?mS(k,0,s):k}:"0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:Br(t,this,i,a)}:t,[function(i,a){var o=bs(this),s=i==null?void 0:Rd(i,e);return s?Br(s,i,o,a):Br(r,si(o),i,a)},function(i,a){var o=oa(this),s=si(i),u=n(r,o,s,a,r!==t);if(u.done)return u.value;var f=rN(o,RegExp),m=o.unicode,k=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Rf?"g":"y"),K=new f(Rf?"^(?:"+o.source+")":o,k),U=a===void 0?4294967295:a>>>0;if(U===0)return[];if(s.length===0)return qm(K,s)===null?[s]:[];for(var re=0,$=0,ee=[];$<s.length;){K.lastIndex=Rf?0:$;var te,Q=qm(K,Rf?mg(s,$):s);if(Q===null||(te=V$(mf(K.lastIndex+(Rf?$:0)),s.length))===re)$=lS(s,$,m);else{if(If(ee,mg(s,re,$)),ee.length===U)return ee;for(var he=1;he<=Q.length-1;he++)if(If(ee,Q[he]),ee.length===U)return ee;$=re=te}}return If(ee,mg(s,re)),ee}]},!!Yr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Rf);var IN=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},LN=function(e,t,n){var r=Ge.toDOMRange(e,t).getBoundingClientRect(),i=Ge.toDOMRange(e,n).getBoundingClientRect();return IN(r,i)&&IN(i,r)},PN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],kN=[],nC=[],Bb={},X$=Vs.f,J$=Vm.f,Q$=lo.enforce,Z$=Oi("match"),uu=on.RegExp,Lf=uu.prototype,$$=on.SyntaxError,q$=Un(PT),eq=Un(Lf.exec),Fb=Un("".charAt),MN=Un("".replace),NN=Un("".indexOf),tq=Un("".slice),nq=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ud=/a/g,rC=/a/g,rq=new uu(Ud)!==Ud,BN=yb.MISSED_STICKY,iq=yb.UNSUPPORTED_Y,aq=Na&&(!rq||BN||$T||qT||Yr(function(){return rC[Z$]=!1,uu(Ud)!=Ud||uu(rC)==rC||uu(Ud,"i")!="/a/i"}));if(Xm("RegExp",aq)){for(var tc=function(e,t){var n,r,i,a,o,s,u=Dd(Lf,this),f=jT(e),m=t===void 0,k=[],K=e;if(!u&&f&&m&&e.constructor===tc)return e;if((f||Dd(Lf,e))&&(e=e.source,m&&(t="flags"in K?K.flags:q$(K))),e=e===void 0?"":si(e),t=t===void 0?"":si(t),K=e,$T&&"dotAll"in Ud&&(r=!!t&&NN(t,"s")>-1)&&(t=MN(t,/s/g,"")),n=t,BN&&"sticky"in Ud&&(i=!!t&&NN(t,"y")>-1)&&iq&&(t=MN(t,/y/g,"")),qT&&(a=function(U){for(var re,$=U.length,ee=0,te="",Q=[],he={},me=!1,_e=!1,ke=0,De="";ee<=$;ee++){if((re=Fb(U,ee))==="\\")re+=Fb(U,++ee);else if(re==="]")me=!1;else if(!me)switch(!0){case re==="[":me=!0;break;case re==="(":eq(nq,tq(U,ee+1))&&(ee+=2,_e=!0),te+=re,ke++;continue;case(re===">"&&_e):if(De===""||aa(he,De))throw new $$("Invalid capture group name");he[De]=!0,Q[Q.length]=[De,ke],_e=!1,De="";continue}_e?De+=re:te+=re}return[te,Q]}(e),e=a[0],k=a[1]),o=RM(uu(e,t),u?this:Lf,tc),(r||i||k.length)&&(s=Q$(o),r&&(s.dotAll=!0,s.raw=tc(function(U){for(var re,$=U.length,ee=0,te="",Q=!1;ee<=$;ee++)(re=Fb(U,ee))!=="\\"?Q||re!=="."?(re==="["?Q=!0:re==="]"&&(Q=!1),te+=re):te+="[\\s\\S]":te+=re+Fb(U,++ee);return te}(e),n)),i&&(s.sticky=!0),k.length&&(s.groups=k)),e!==K)try{Ys(o,"source",K===""?"(?:)":K)}catch(U){}return o},oq=function(e){e in tc||X$(tc,e,{configurable:!0,get:function(){return uu[e]},set:function(t){uu[e]=t}})},FN=J$(uu),jN=0;FN.length>jN;)oq(FN[jN++]);Lf.constructor=tc,tc.prototype=Lf,Do(on,"RegExp",tc)}FS("RegExp");var sq=new RegExp(String.fromCharCode(160),"g");function UN(e){return e.replace(sq," ")}function HN(e,t){var n=e.length;if(n){var r=e[n-1];if(wn.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]==="text")return r.text=r.text+t,!0}}return!1}function lq(e,t,n){return{type:"paragraph",children:[{text:Qe(e).text().replace(/\s+/gm," ")}]}}function iC(e,t){var n=function(a,o){var s=[];if(a.attr("data-w-e-is-void")!=null)return s;var u=a[0].childNodes;return u.length===1&&u[0].nodeName==="BR"?(s.push({text:""}),s):(u.forEach(function(f){if(f.nodeType!==Cl.ELEMENT_NODE){if(!(f.nodeType!==Cl.TEXT_NODE)){var m=f.textContent||"";if(m.trim()===""&&m.indexOf(`
`)>=0)return;m&&(m=UN(m),HN(s,m)||s.push({text:m}))}}else{if(f.nodeName==="BR")return void(HN(s,`
`)||s.push({text:`
`}));var k=oC(Qe(f),o);Array.isArray(k)?k.forEach(function(K){return s.push(K)}):s.push(k)}}),s)}(e,t),r=function(a){for(var o in Bb)if(a[0].matches(o))return Bb[o];return lq}(e),i=r(e[0],n,t);return Array.isArray(i)||(i=[i]),i.forEach(function(a){Ee.isVoid(t,a)||(n.length===0&&(a.children=[{text:e.text().replace(/\s+/gm," ")}]),nC.forEach(function(o){a=o(e[0],a,t)}))}),i}function aC(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=e[0].textContent||"";n=function(i){return i.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"\xAE").replace(/&copy;/g,"\xA9").replace(/&trade;/g,"\u2122").replace(/&quot;/g,'"')}(n);var r={text:n=UN(n)};return nC.forEach(function(i){r=i(e[0],r,t)}),r}function oC(e,t){kN.forEach(function(r){var i=r.selector,a=r.preParseHtml;e[0].matches(i)&&(e=Qe(a(e[0])))});var n=ZM(e);return n==="span"?e.attr("data-w-e-type")?iC(e,t):aC(e,t):n==="code"?ZM(e.parent())==="pre"?iC(e,t):aC(e,t):PN.includes(n)?aC(e,t):iC(e,t)}function WN(e,t,n){var r=Qe(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function zN(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(i){return"<p>"+i+"</p>"}).join(""));var r=Qe("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(i){var a=oC(Qe(i),e);Array.isArray(a)?a.forEach(function(o){return n.push(o)}):n.push(a)}),n}var uq=Vs.f,GN=_b.fastKey,KN=lo.set,sC=lo.getterFor,cq={getConstructor:function(e,t,n,r){var i=e(function(f,m){wb(f,a),KN(f,{type:t,index:fb(null),first:void 0,last:void 0,size:0}),Na||(f.size=0),m!=null&&tg(m,f[r],{that:f,AS_ENTRIES:n})}),a=i.prototype,o=sC(t),s=function(f,m,k){var K,U,re=o(f),$=u(f,m);return $?$.value=k:(re.last=$={index:U=GN(m,!0),key:m,value:k,previous:K=re.last,next:void 0,removed:!1},re.first||(re.first=$),K&&(K.next=$),Na?re.size++:f.size++,U!=="F"&&(re.index[U]=$)),f},u=function(f,m){var k,K=o(f),U=GN(m);if(U!=="F")return K.index[U];for(k=K.first;k;k=k.next)if(k.key==m)return k};return wf(a,{clear:function(){for(var f=o(this),m=f.index,k=f.first;k;)k.removed=!0,k.previous&&(k.previous=k.previous.next=void 0),delete m[k.index],k=k.next;f.first=f.last=void 0,Na?f.size=0:this.size=0},delete:function(f){var m=this,k=o(m),K=u(m,f);if(K){var U=K.next,re=K.previous;delete k.index[K.index],K.removed=!0,re&&(re.next=U),U&&(U.previous=re),k.first==K&&(k.first=U),k.last==K&&(k.last=re),Na?k.size--:m.size--}return!!K},forEach:function(f){for(var m,k=o(this),K=Ld(f,arguments.length>1?arguments[1]:void 0);m=m?m.next:k.first;)for(K(m.value,m.key,this);m&&m.removed;)m=m.previous},has:function(f){return!!u(this,f)}}),wf(a,n?{get:function(f){var m=u(this,f);return m&&m.value},set:function(f,m){return s(this,f===0?0:f,m)}}:{add:function(f){return s(this,f=f===0?0:f,f)}}),Na&&uq(a,"size",{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=sC(t),a=sC(r);XT(e,t,function(o,s){KN(this,{type:r,target:o,state:i(o),kind:s,last:void 0})},function(){for(var o=a(this),s=o.kind,u=o.last;u&&u.removed;)u=u.previous;return o.target&&(o.last=u=u?u.next:o.state.first)?s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}:(o.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),FS(t)}};IM("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},cq);var VN=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function YN(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):ct.insertNodes(e,t,{mode:"highest"})}var dq=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var a=Fr(_t.edges(i),2),o=a[0],s=a[1],u=Ee.void(t,{at:o.path}),f=Ee.void(t,{at:s.path});if(!_t.isCollapsed(i)||u){var m=Ge.toDOMRange(t,i),k=m.cloneContents(),K=k.childNodes[0];if(k.childNodes.forEach(function(_e){_e.textContent&&_e.textContent.trim()!==""&&(K=_e)}),f){var U=Fr(f,1)[0],re=m.cloneRange(),$=Ge.toDOMNode(t,U);re.setEndAfter($),k=re.cloneContents()}if(u&&(K=k.querySelector("[data-slate-spacer]")),Array.from(k.querySelectorAll("[data-slate-zero-width]")).forEach(function(_e){var ke=_e.getAttribute("data-slate-zero-width")==="n";_e.textContent=ke?`
`:""}),XM(K)){var ee=K.ownerDocument.createElement("span");ee.style.whiteSpace="pre",ee.appendChild(K),k.appendChild(ee),K=ee}var te=t.getFragment(),Q=JSON.stringify(te),he=window.btoa(encodeURIComponent(Q));K.setAttribute("data-slate-fragment",he),r.setData("application/x-slate-fragment",he);var me=k.ownerDocument.createElement("div");return me.appendChild(k),me.setAttribute("hidden","true"),k.ownerDocument.body.appendChild(me),r.setData("text/html",me.innerHTML),r.setData("text/plain",g$(me)),k.ownerDocument.body.removeChild(me),r}}},t.insertData=function(r){var i,a,o=r.getData("application/x-slate-fragment");if(o){var s=decodeURIComponent(window.atob(o)),u=JSON.parse(s);t.insertFragment(u)}else{var f=r.getData("text/plain"),m=r.getData("text/html");if(m)t.dangerouslyInsertHtml(m);else if(f){var k=f.split(/\r\n|\r|\n/),K=!1;try{for(var U=_s(k),re=U.next();!re.done;re=U.next()){var $=re.value;K&&ct.splitNodes(t,{always:!0}),n($),K=!0}}catch(ee){i={error:ee}}finally{try{re&&!re.done&&(a=U.return)&&a.call(U)}finally{if(i)throw i.error}}}}},t},gg=function(e){return e!=null},hq={object:!0,function:!0,undefined:!0},fq=/^\s*class[\s{/}]/,pq=Function.prototype.toString,XN=function(e){return!!function(t){if(typeof t!="function")return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number")return!1;if(typeof t.call!="function")return!1;if(typeof t.apply!="function")return!1}catch(n){return!1}return!function(n){if(!function(r){return!!gg(r)&&hasOwnProperty.call(hq,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}}(t)}(e)&&!fq.test(pq.call(e))},lC=function(e){return e!=null},mq=Object.keys,gq=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return mq(lC(e)?Object(e):e)},vq=function(e){if(!lC(e))throw new TypeError("Cannot use null or undefined");return e},yq=Math.max,JN=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,a=yq(arguments.length,2);for(e=Object(vq(e)),i=function(o){try{e[o]=t[o]}catch(s){n||(n=s)}},r=1;r<a;++r)gq(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},bq=Array.prototype.forEach,Eq=Object.create,_q=function(e,t){var n;for(n in e)t[n]=e[n]},QN=function(e){var t=Eq(null);return bq.call(arguments,function(n){lC(n)&&_q(Object(n),t)}),t},uC="razdwatrzy",xq=String.prototype.indexOf,vg=typeof uC.contains=="function"&&uC.contains("dwa")===!0&&uC.contains("foo")===!1?String.prototype.contains:function(e){return xq.call(this,e,arguments[1])>-1},jb=Bm(function(e){var t=e.exports=function(n,r){var i,a,o,s,u;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],gg(n)?(i=vg.call(n,"c"),a=vg.call(n,"e"),o=vg.call(n,"w")):(i=o=!0,a=!1),u={value:r,configurable:i,enumerable:a,writable:o},s?JN(QN(s),u):u};t.gs=function(n,r,i){var a,o,s,u;return typeof n!="string"?(s=i,i=r,r=n,n=null):s=arguments[3],gg(r)?XN(r)?gg(i)?XN(i)||(s=i,i=void 0):i=void 0:(s=r,r=i=void 0):r=void 0,gg(n)?(a=vg.call(n,"c"),o=vg.call(n,"e")):(a=!0,o=!1),u={get:r,set:i,configurable:a,enumerable:o},s?JN(QN(s),u):u}}),cC=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},wq=Bm(function(e,t){var n,r,i,a,o,s,u,f=Function.prototype.apply,m=Function.prototype.call,k=Object.create,K=Object.defineProperty,U=Object.defineProperties,re=Object.prototype.hasOwnProperty,$={configurable:!0,enumerable:!1,writable:!0};n=function(ee,te){var Q;return cC(te),re.call(this,"__ee__")?Q=this.__ee__:(Q=$.value=k(null),K(this,"__ee__",$),$.value=null),Q[ee]?typeof Q[ee]=="object"?Q[ee].push(te):Q[ee]=[Q[ee],te]:Q[ee]=te,this},r=function(ee,te){var Q,he;return cC(te),he=this,n.call(this,ee,Q=function(){i.call(he,ee,Q),f.call(te,this,arguments)}),Q.__eeOnceListener__=te,this},i=function(ee,te){var Q,he,me,_e;if(cC(te),!re.call(this,"__ee__"))return this;if(!(Q=this.__ee__)[ee])return this;if(typeof(he=Q[ee])=="object")for(_e=0;me=he[_e];++_e)me!==te&&me.__eeOnceListener__!==te||(he.length===2?Q[ee]=he[_e?0:1]:he.splice(_e,1));else he!==te&&he.__eeOnceListener__!==te||delete Q[ee];return this},a=function(ee){var te,Q,he,me,_e;if(re.call(this,"__ee__")&&(me=this.__ee__[ee]))if(typeof me=="object"){for(Q=arguments.length,_e=new Array(Q-1),te=1;te<Q;++te)_e[te-1]=arguments[te];for(me=me.slice(),te=0;he=me[te];++te)f.call(he,this,_e)}else switch(arguments.length){case 1:m.call(me,this);break;case 2:m.call(me,this,arguments[1]);break;case 3:m.call(me,this,arguments[1],arguments[2]);break;default:for(Q=arguments.length,_e=new Array(Q-1),te=1;te<Q;++te)_e[te-1]=arguments[te];f.call(me,this,_e)}},o={on:n,once:r,off:i,emit:a},s={on:jb(n),once:jb(r),off:jb(i),emit:jb(a)},u=U({},s),e.exports=t=function(ee){return ee==null?k(u):U(Object(ee),s)},t.methods=o});function Ub(e){var t=KM.get(e);return t==null&&(t=wq(),KM.set(e,t)),t}var Hb=new WeakMap;function ZN(e,t){var n=Hb.get(e);n==null&&(n=new Set,Hb.set(e,n)),n.add(t)}function Tq(e){return Hb.get(e)||new Set}function Sq(e){Hb.set(e,new Set)}function dC(e){var t=Ge.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function hC(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=dC(e);if(r==null)return t;var i=r.top,a=r.left,o=r.width,s=r.height,u=Ge.toDOMRange(e,n).getClientRects()[0];if(u==null)return t;u.width;var f=u.height,m={},k=u.top-i,K=u.left-a;if(K>o/2){var U=o-K;m.right=U+5+"px"}else m.left=K+5+"px";if(k>s/2){var re=s-k;m.bottom=re+5+"px"}else{var $=k+f;$<0&&($=0),m.top=$+5+"px"}return m}function fC(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var i=Nn.isElement(t)&&e.isVoid(t),a=Nn.isElement(t)&&e.isInline(t),o=Lb.get(t);if(o==null)return r;var s=o.getBoundingClientRect(),u=s.top,f=s.left,m=s.height,k=s.width;if(i){var K=function(De){var Ye=[];Ye.push(De);for(var rt=0;Ye.length>0;){var wt=Ye.pop();if(wt==null)break;if(++rt>1e4)break;var Lt=wt.nodeName;if(wt.nodeType===1){var Tt=Lt.toLowerCase();if(p$.includes(Tt)||Tt==="iframe"||Tt==="video")return wt;var Yt=wt.children||[],Ft=Yt.length;if(Ft)for(var jt=Ft-1;jt>=0;jt--)Ye.push(Yt[jt])}}return null}(o);if(K!=null){var U=K.getBoundingClientRect();u=U.top,m=U.height}}var re=dC(e);if(re==null)return r;var $,ee=re.top,te=re.left,Q=re.width,he=re.height,me={},_e=u-ee,ke=f-te;if(n==="bar")return me.left=ke+"px",_e>40?me.bottom=he-_e+5+"px":me.top=_e+m+5+"px",me;if(n==="modal")return i?a?ke>(Q-k)/2?me.right=Q-ke+5+"px":me.left=ke+k+5+"px":me.left="20px":me.left=ke+"px",i?(($=_e)<0&&($=0),me.top=$+"px"):_e>(he-m)/2?me.bottom=he-_e+5+"px":(($=_e+m)<0&&($=0),me.top=$+5+"px"),me;throw new Error("type '"+n+"' is invalid")}function pC(e,t){xs(function(){var n=dC(e);if(n!=null){var r,i=n.top,a=n.left,o=n.width,s=n.height,u=t.offset(),f=u.top,m=u.left,k=t.width(),K=t.height(),U=f-i,re=m-a,$=t.attr("style");if($.indexOf("top")>=0&&(r=U+K-s)>0){var ee=t.css("top"),te=parseInt(ee.toString())-r;te<0&&(te=0),t.css("top",te+"px")}if($.indexOf("bottom")>=0&&f<0){var Q=t.css("bottom"),he=parseInt(Q.toString())-Math.abs(f);t.css("bottom",he+"px")}if($.indexOf("left")>=0&&(r=re+k-o)>0){var me=t.css("left"),_e=parseInt(me.toString())-r;_e<0&&(_e=0),t.css("left",_e+"px")}if($.indexOf("right")>=0&&m<0){var ke=t.css("right"),De=parseInt(ke.toString())-Math.abs(m);t.css("right",De+"px")}}})}var Cq=vb("slice"),Aq=Oi("species"),mC=on.Array,Oq=Math.max;Di({target:"Array",proto:!0,forced:!Cq},{slice:function(e,t){var n,r,i,a=qu(this),o=Pd(a),s=vf(e,o),u=vf(t===void 0?o:t,o);if(lb(a)&&(n=a.constructor,(ub(n)&&(n===mC||lb(n.prototype))||ci(n)&&(n=n[Aq])===null)&&(n=void 0),n===mC||n===void 0))return iN(a,s,u);for(r=new(n===void 0?mC:n)(Oq(u-s,0)),i=0;s<u;s++,i++)s in a&&Qm(r,i,a[s]);return r.length=i,r}});var Dq=Km.f,$N=Un("".startsWith),Rq=Un("".slice),Iq=Math.min,qN=HT("startsWith"),Lq=!qN&&!!function(){var e=Dq(String.prototype,"startsWith");return e&&!e.writable}();Di({target:"String",proto:!0,forced:!Lq&&!qN},{startsWith:function(e){var t=si(bs(this));UT(e);var n=mf(Iq(arguments.length>1?arguments[1]:void 0,t.length)),r=si(e);return $N?$N(t,r,n):Rq(t,n,n+r.length)===r}});var Pf=Object.assign,e3=Object.defineProperty,Pq=Un([].concat),t3=!Pf||Yr(function(){if(Na&&Pf({b:1},Pf(e3({},"a",{enumerable:!0,get:function(){e3(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Pf({},e)[n]!=7||yf(Pf({},t)).join("")!=r})?function(e,t){for(var n=Qu(e),r=arguments.length,i=1,a=Qk.f,o=Gk.f;r>i;)for(var s,u=sb(arguments[i++]),f=a?Pq(yf(u),a(u)):yf(u),m=f.length,k=0;m>k;)s=f[k++],Na&&!Br(o,u,s)||(n[s]=u[s]);return n}:Pf;Di({target:"Object",stat:!0,forced:Object.assign!==t3},{assign:t3});var kq=["props","attrs","style","dataset","on","hook"];function n3(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach(function(a){var o,s,u=n[a];if(a!=="key"){if(!kq.includes(a)){if(a.startsWith("data-")){var f=a.slice(5);return f=iX(f),function(m,k){m.data==null&&(m.data={});var K=m.data;K.dataset==null&&(K.dataset={}),Object.assign(K.dataset,k)}(e,((o={})[f]=u,o)),void delete n[a]}!function(m,k){m.data==null&&(m.data={});var K=m.data;K.props==null&&(K.props={}),Object.assign(K.props,k)}(e,(s={},s[a]=u,s)),delete n[a]}}else e.key=u}),i.length>0&&i.forEach(function(a){typeof a!="string"&&n3(a)})}var gC=[],r3={};function Mq(e,t,n){return er(n.isInline(e)?"span":"div",null,t)}function i3(e,t){return t===void 0&&(t=!1),er("span",{"data-slate-string":!0},t?e+`
`:e)}function vC(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),er("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?er("br",null):null)}function yC(e,t,n,r){return ig.set(e,t),Tf.set(e,n),Nn.isElement(e)?function(i,a){var o,s=Ge.findKey(a,i),u=a.isInline(i),f=Ee.isVoid(a,i),m=RN(s.id),k={id:m,key:s.id,"data-slate-node":"element","data-slate-inline":u},K=i.type,U=i.children,re=U===void 0?[]:U,$=function(_e){return r3[_e]||Mq}(K);o=f?null:re.map(function(_e,ke){return yC(_e,ke,i,a)});var ee=$(i,o,a);if(f){k["data-slate-void"]=!0;var te=u?"span":"div",Q=Fr(fn.texts(i),1),he=Fr(Q[0],1)[0],me=er(te,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},yC(he,0,i,a));ee=er(te,{style:{position:"relative"}},ee,me),ig.set(he,0),Tf.set(he,i)}return ee.data==null&&(ee.data={}),Object.assign(ee.data,k),f||u||(ee=function(_e,ke){var De=ke;return gC.forEach(function(Ye){De=Ye(_e,ke)}),De}(i,ee)),xs(function(){var _e=IS(m);_e!=null&&(AS.set(s,_e),Lb.set(i,_e),Ib.set(_e,i))}),ee}(e,r):function(i,a,o){if(i.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(i));var s=Ge.findKey(o,i),u=o.getConfig().decorate;if(u==null)throw new Error("Can not get config.decorate");var f=Ge.findPath(o,i),m=u([i,f]),k=wn.decorations(i,m),K=k.map(function($,ee){var te=function(Q,he,me,_e,ke){he===void 0&&(he=!1);var De=Q.text,Ye=Ge.findPath(ke,me),rt=st.parent(Ye);if(Ee.isEditor(_e))throw new Error("Text node "+JSON.stringify(me)+" parent is Editor");return ke.isVoid(_e)?vC(fn.string(_e).length):De!==""||_e.children[_e.children.length-1]!==me||ke.isInline(_e)||Ee.string(ke,rt)!==""?De===""?vC():he&&De.slice(-1)===`
`?i3(De,!0):i3(De):vC(0,!0)}($,ee===k.length-1,i,a,o);return te=function(Q,he){var me=he;return gC.forEach(function(_e){me=_e(Q,me)}),me}($,te),er("span",{"data-slate-leaf":!0},te)}),U=function($){return"w-e-text-"+$}(s.id),re=er("span",{"data-slate-node":"text",id:U,key:s.id},K);return xs(function(){var $=IS(U);$!=null&&(AS.set(s,$),Lb.set(i,$),Ib.set($,i))}),re}(e,n,r)}function Nq(e,t){var n,r=e.$scroll,i=function($){return"w-e-textarea-"+$}(e.id),a=t.getConfig(),o=a.readOnly,s=a.autoFocus,u=function($,ee){return ee===void 0&&(ee=!1),lf("div#"+$,{props:{contentEditable:!ee}})}(i,o),f=t.children||[];u.children=f.map(function($,ee){var te=yC($,ee,t,t);return n3(te),te});var m=HM.get(e);if(m==null&&(m=!0),m){var k=function($,ee){return Qe(`<div
id="`+$+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(i);r.append(k),e.$textArea=k,n=k[0],(U=CY([OY,LY,kY,DY,IY,AY]))(n,u),HM.set(e,!1),WM.set(e,U)}else{var K=zM.get(e),U=WM.get(e);if(K==null||U==null)return;n=K.elm,U(K,u)}if(n!=null||(n=IS(i))!=null){if((m?s:t.isFocused())&&n.focus({preventScroll:!0}),m){var re=RS(n);re&&GM.set(t,re)}CS.set(t,n),Lb.set(t,n),Ib.set(n,t),zM.set(e,u)}}function a3(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function o3(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function bC(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o3(n.overflowY,t)||o3(n.overflowX,t)||function(r){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch(o){return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function Wb(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}function s3(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(lr){return lr!==o};if(!a3(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,m=[],k=e;a3(k)&&u(k);){if((k=k.parentElement)===f){m.push(k);break}k!=null&&k===document.body&&bC(k)&&!bC(document.documentElement)||k!=null&&bC(k,s)&&m.push(k)}for(var K=n.visualViewport?n.visualViewport.width:innerWidth,U=n.visualViewport?n.visualViewport.height:innerHeight,re=window.scrollX||pageXOffset,$=window.scrollY||pageYOffset,ee=e.getBoundingClientRect(),te=ee.height,Q=ee.width,he=ee.top,me=ee.right,_e=ee.bottom,ke=ee.left,De=i==="start"||i==="nearest"?he:i==="end"?_e:he+te/2,Ye=a==="center"?ke+Q/2:a==="end"?me:ke,rt=[],wt=0;wt<m.length;wt++){var Lt=m[wt],Tt=Lt.getBoundingClientRect(),Yt=Tt.height,Ft=Tt.width,jt=Tt.top,Wt=Tt.right,En=Tt.bottom,kn=Tt.left;if(r==="if-needed"&&he>=0&&ke>=0&&_e<=U&&me<=K&&he>=jt&&_e<=En&&ke>=kn&&me<=Wt)return rt;var Ln=getComputedStyle(Lt),Rn=parseInt(Ln.borderLeftWidth,10),Ze=parseInt(Ln.borderTopWidth,10),He=parseInt(Ln.borderRightWidth,10),ot=parseInt(Ln.borderBottomWidth,10),At=0,qt=0,Mt="offsetWidth"in Lt?Lt.offsetWidth-Lt.clientWidth-Rn-He:0,Cn="offsetHeight"in Lt?Lt.offsetHeight-Lt.clientHeight-Ze-ot:0;if(f===Lt)At=i==="start"?De:i==="end"?De-U:i==="nearest"?Wb($,$+U,U,Ze,ot,$+De,$+De+te,te):De-U/2,qt=a==="start"?Ye:a==="center"?Ye-K/2:a==="end"?Ye-K:Wb(re,re+K,K,Rn,He,re+Ye,re+Ye+Q,Q),At=Math.max(0,At+$),qt=Math.max(0,qt+re);else{At=i==="start"?De-jt-Ze:i==="end"?De-En+ot+Cn:i==="nearest"?Wb(jt,En,Yt,Ze,ot+Cn,De,De+te,te):De-(jt+Yt/2)+Cn/2,qt=a==="start"?Ye-kn-Rn:a==="center"?Ye-(kn+Ft/2)+Mt/2:a==="end"?Ye-Wt+He+Mt:Wb(kn,Wt,Ft,Rn,He+Mt,Ye,Ye+Q,Q);var Vn=Lt.scrollLeft,qn=Lt.scrollTop;De+=qn-(At=Math.max(0,Math.min(qn+At,Lt.scrollHeight-Yt+Cn))),Ye+=Vn-(qt=Math.max(0,Math.min(Vn+qt,Lt.scrollWidth-Ft+Mt)))}rt.push({el:Lt,top:At,left:qt})}return rt}function l3(e){return e===Object(e)&&Object.keys(e).length!==0}function ws(e,t){return Bd(t)&&Ge.hasDOMNode(e,t,{editable:!0})}function u3(e,t){if(e.getConfig().readOnly)return!1;var n=kf(e,t)&&Ge.toSlateNode(e,t);return Ee.isVoid(e,n)}function kf(e,t){return Bd(t)&&Ge.hasDOMNode(e,t)}function c3(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),a=Ge.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var o=a.type!=="None";if(r||o){var s=CS.get(t),u=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(u=!0),o&&u&&r){var f=Ge.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(f&&_t.equals(f,r)){var m=!0;if(_t.isCollapsed(r)){var k=a.anchorNode,K=a.anchorOffset;if(k===s){var U=s.childNodes,re=void 0;(re=U[K])&&re.matches("table")&&(m=!1),(re=U[K-1])&&re.matches("table")&&(m=!1)}}if(m)return}}if(!r||Ge.hasRange(t,r)){e.isUpdatingSelection=!0;var $=r&&Ge.toDOMRange(t,r);if($){_t.isBackward(r)?a.setBaseAndExtent($.endContainer,$.endOffset,$.startContainer,$.startOffset):a.setBaseAndExtent($.startContainer,$.startOffset,$.endContainer,$.endOffset);var ee=$.startContainer.parentElement;if(!ee.closest("[data-slate-spacer]")){ee.getBoundingClientRect=$.getBoundingClientRect.bind($);var te=document.body;(function(Q,he){var me=!Q.ownerDocument.documentElement.contains(Q);if(l3(he)&&typeof he.behavior=="function")return he.behavior(me?[]:s3(Q,he));if(!me){var _e=function(ke){return ke===!1?{block:"end",inline:"nearest"}:l3(ke)?ke:{block:"start",inline:"nearest"}}(he);(function(ke,De){De===void 0&&(De="auto");var Ye="scrollBehavior"in document.body.style;ke.forEach(function(rt){var wt=rt.el,Lt=rt.top,Tt=rt.left;wt.scroll&&Ye?wt.scroll({top:Lt,left:Tt,behavior:De}):(wt.scrollTop=Lt,wt.scrollLeft=Tt)})})(s3(Q,_e),_e.behavior)}})(ee,{scrollMode:"if-needed",boundary:i.scroll?s.parentElement:te,block:"end",behavior:"smooth"}),delete ee.getBoundingClientRect}}else a.removeAllRanges();setTimeout(function(){$&&ag&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=Ge.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var EC=new WeakMap,d3=new WeakMap,Bq={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},Fq={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},jq={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},wi=function(e){var t=Bq[e],n=Fq[e],r=jq[e],i=t&&Vw(t),a=n&&Vw(n),o=r&&Vw(r);return function(s){return!(!i||!i(s))||!!(LS&&a&&a(s))||!(LS||!o||!o(s))}},Ri={isBold:wi("bold"),isCompose:wi("compose"),isMoveBackward:wi("moveBackward"),isMoveForward:wi("moveForward"),isDeleteBackward:wi("deleteBackward"),isDeleteForward:wi("deleteForward"),isDeleteLineBackward:wi("deleteLineBackward"),isDeleteLineForward:wi("deleteLineForward"),isDeleteWordBackward:wi("deleteWordBackward"),isDeleteWordForward:wi("deleteWordForward"),isExtendBackward:wi("extendBackward"),isExtendForward:wi("extendForward"),isExtendLineBackward:wi("extendLineBackward"),isExtendLineForward:wi("extendLineForward"),isItalic:wi("italic"),isMoveLineBackward:wi("moveLineBackward"),isMoveLineForward:wi("moveLineForward"),isMoveWordBackward:wi("moveWordBackward"),isMoveWordForward:wi("moveWordForward"),isRedo:wi("redo"),isSplitBlock:wi("splitBlock"),isTransposeCharacter:wi("transposeCharacter"),isUndo:wi("undo"),isTab:wi("tab"),isSelectAll:wi("selectAll")};function ba(e){e.preventDefault()}var Uq={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(sg&&!i&&ws(n,r.target)){var a=n.selection,o=r.inputType,s=r.dataTransfer||r.data||void 0;if(o!=="insertCompositionText"&&o!=="deleteCompositionText"){if(r.preventDefault(),!o.startsWith("delete")||o.startsWith("deleteBy")){var u=Fr(r.getTargetRanges(),1)[0];if(u){var f=Ge.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});a&&_t.equals(a,f)||ct.select(n,f)}}if(a&&_t.isExpanded(a)&&o.startsWith("delete")){var m=o.endsWith("Backward")?"backward":"forward";Ee.deleteFragment(n,{direction:m})}else switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Ee.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Ee.deleteForward(n);break;case"deleteContentBackward":Ee.deleteBackward(n);break;case"deleteEntireSoftLine":Ee.deleteBackward(n,{unit:"line"}),Ee.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Ee.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Ee.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Ee.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Ee.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Ee.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Ee.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Ee.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(o==="insertFromPaste"&&!DS.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&Ee.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&ws(n,r.target)){var o=Ge.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===Ge.toDOMNode(n,n)||Js(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Bd(s)&&Ge.hasDOMNode(n,s)){var u=Ge.toSlateNode(n,s);if(Nn.isElement(u)&&!n.isVoid(u))return}if(og){var f=o.getSelection();f==null||f.removeAllRanges()}Nd.delete(n)}}}},focus:function(e,t,n){var r=Ge.toDOMNode(n,n),i=Ge.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,ag&&e.target!==r?r.focus():Nd.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&kf(n,e.target)&&Bd(e.target)){var r=Ge.toSlateNode(n,e.target),i=Ge.findPath(n,r);if(Ee.hasPath(n,i)&&fn.get(n,i)===r){var a=Ee.start(n,i),o=Ee.end(n,i),s=Ee.void(n,{at:a}),u=Ee.void(n,{at:o});if(s&&u&&st.equals(s[1],u[1])){var f=Ee.range(n,a);ct.select(n,f)}}}},compositionstart:function(e,t,n){if(ws(n,e.target)){var r=n.selection;if(r&&_t.isExpanded(r)&&(Ee.deleteFragment(n),Promise.resolve().then(function(){c3(t,n,!0)})),r&&_t.isCollapsed(r)){var i=Ge.toDOMRange(n,r).startContainer,a=i.textContent||"";EC.set(n,a),d3.set(n,i)}t.isComposing=!0,function(o,s){var u;s.getConfig().placeholder&&s.isEmpty()&&o.showPlaceholder&&((u=o.$placeholder)===null||u===void 0||u.hide(),o.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(ws(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(PS||ag)&&Ge.cleanExposedTexNodeInSelectionBlock(n);for(var a=_t.isBackward(i)?i.focus:i.anchor,o=Fr(Ee.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var u=Fr(Ee.node(n,a.path.slice(0,s+1)),1)[0];if(Nn.isElement(u)&&((og||ag)&&u.type==="link"||u.type==="code")){Ge.setNewKey(o);break}}var f=r.data;if(f){if(n.getConfig().maxLength){var m=Ge.getLeftLengthOfMaxLength(n);m<f.length?(Ge.toDOMRange(n,i).startContainer.textContent=EC.get(n)||"",m>0&&Ee.insertText(n,f.slice(0,m)),t.changeViewState()):Ee.insertText(n,f)}else Ee.insertText(n,f);og||setTimeout(function(){var k=n.selection;if(k!=null){var K=d3.get(n);K!=null&&Ge.toDOMRange(n,k).startContainer!==K&&(K.textContent=EC.get(n)||"")}})}}}},compositionupdate:function(e,t,n){ws(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&ws(n,r.target)){if(function(o,s){var u=Ob.get(o),f=u&&u.getMenus(),m=Db.get(o),k=m&&m.getMenus(),K=Es(Es({},f),k);for(var U in K){var re=K[U],$=re.hotkey;if($&&sX($,s)&&!re.isDisabled(o)){var ee=re.getValue(o);re.exec(o,ee)}}}(n,r),Ri.isTab(r))return ba(r),void n.handleTab();if(Ri.isRedo(r))return ba(r),void(typeof n.redo=="function"&&n.redo());if(Ri.isUndo(r))return ba(r),void(typeof n.undo=="function"&&n.undo());if(Ri.isMoveLineBackward(r))return ba(r),void ct.move(n,{unit:"line",reverse:!0});if(Ri.isMoveLineForward(r))return ba(r),void ct.move(n,{unit:"line"});if(Ri.isExtendLineBackward(r))return ba(r),void ct.move(n,{unit:"line",edge:"focus",reverse:!0});if(Ri.isExtendLineForward(r))return ba(r),void ct.move(n,{unit:"line",edge:"focus"});if(Ri.isMoveBackward(r))return ba(r),void(i&&_t.isCollapsed(i)?ct.move(n,{reverse:!0}):ct.collapse(n,{edge:"start"}));if(Ri.isMoveForward(r))return ba(r),void(i&&_t.isCollapsed(i)?ct.move(n):ct.collapse(n,{edge:"end"}));if(Ri.isMoveWordBackward(r))return ba(r),i&&_t.isExpanded(i)&&ct.collapse(n,{edge:"focus"}),void ct.move(n,{unit:"word",reverse:!0});if(Ri.isMoveWordForward(r))return ba(r),i&&_t.isExpanded(i)&&ct.collapse(n,{edge:"focus"}),void ct.move(n,{unit:"word"});if(Ri.isSelectAll(r))return ba(r),void n.selectAll();if(sg){if((PS||og)&&i&&(Ri.isDeleteBackward(r)||Ri.isDeleteForward(r))&&_t.isCollapsed(i)){var a=fn.parent(n,i.anchor.path);if(Nn.isElement(a)&&Ee.isVoid(n,a)&&Ee.isInline(n,a))return r.preventDefault(),void ct.delete(n,{unit:"block"})}}else{if(Ri.isBold(r)||Ri.isItalic(r)||Ri.isTransposeCharacter(r))return void ba(r);if(Ri.isSplitBlock(r))return ba(r),void Ee.insertBreak(n);if(Ri.isDeleteBackward(r))return ba(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"backward"}):Ee.deleteBackward(n));if(Ri.isDeleteForward(r))return ba(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"forward"}):Ee.deleteForward(n));if(Ri.isDeleteLineBackward(r))return ba(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"backward"}):Ee.deleteBackward(n,{unit:"line"}));if(Ri.isDeleteLineForward(r))return ba(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"forward"}):Ee.deleteForward(n,{unit:"line"}));if(Ri.isDeleteWordBackward(r))return ba(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"backward"}):Ee.deleteBackward(n,{unit:"word"}));if(Ri.isDeleteWordForward(r))return ba(r),void(i&&_t.isExpanded(i)?Ee.deleteFragment(n,{direction:"forward"}):Ee.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!sg&&!n.getConfig().readOnly&&ws(n,e.target)){e.preventDefault();var r=e.key;Ee.insertText(n,r)}},copy:function(e,t,n){var r=e;if(ws(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&ws(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(_t.isExpanded(i))Ee.deleteFragment(n);else{var o=fn.parent(n,i.anchor.path);Ee.isVoid(n,o)&&ct.delete(n)}}},paste:function(e,t,n){DS.set(n,!0);var r=e;if(!n.getConfig().readOnly&&ws(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void DS.set(n,!1);if(!sg||function(o){return o.clipboardData&&o.clipboardData.getData("text/plain")!==""&&o.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(kf(n,e.target)){var r=Ge.toSlateNode(n,e.target);Ee.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(kf(n,r.target)&&!n.getConfig().readOnly){var i=Ge.toSlateNode(n,r.target),a=Ge.findPath(n,i);if(Ee.isVoid(n,i)||Ee.void(n,{at:a,voids:!0})){var o=Ee.range(n,a);ct.select(n,o)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&kf(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&kf(n,r.target)&&i!=null&&!(sg&&og&&i.files.length>0)){r.preventDefault();var a=n.selection,o=Ge.findEventRange(n,r);ct.select(n,o),t.isDraggingInternally&&(a&&ct.delete(n,{at:a}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},Hq=1,Wq=function(){function e(t){var n=this;this.id=Hq++,this.$textArea=null,this.$progressBar=Qe('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Qe('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ed(function(){var o=n.editorInstance;!function(s,u){var f=s.isComposing,m=s.isUpdatingSelection,k=s.isDraggingInternally;if(!(u.getConfig().readOnly||f||m||k)){var K=Ge.findDocumentOrShadowRoot(u),U=K.activeElement,re=Ge.toDOMNode(u,u),$=K.getSelection();if(U===re?(s.latestElement=U,Nd.set(u,!0)):Nd.delete(u),!$)return ct.deselect(u);var ee=$.anchorNode,te=$.focusNode,Q=ws(u,ee)||u3(u,ee),he=ws(u,te)||u3(u,te);if(Q&&he){var me=Ge.toSlateRange(u,$,{exactMatch:!1,suppressThrow:!1});ct.select(u,me)}else ct.deselect(u)}}(n,o)},100);var r=Qe(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var i=Qe('<div class="w-e-text-container"></div>');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var a=Qe('<div class="w-e-scroll"></div>');i.append(a),this.$scroll=a,this.$textAreaContainer=i,xs(function(){var o=n.editorInstance,s=Ge.getWindow(o);s.document.addEventListener("selectionchange",n.onDOMSelectionChange),o.on("destroyed",function(){s.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),i.on("click",function(){return o.hidePanelOrModal()}),o.on("change",n.changeViewState.bind(n));var u=o.getConfig().onChange;u&&o.on("change",function(){return u(o)}),n.onFocusAndOnBlur(),o.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=_S.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,i=this.editorInstance;n!=null&&(kw(Uq,function(a,o){n.on(o,function(s){a(s,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ed(function(){i.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),i=r.onBlur,a=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return a&&a(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return i&&i(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-Ge.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;Nq(this,n),function(r,i){var a,o=i.getConfig().placeholder;if(o){var s=i.isEmpty();if(s&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var u=Qe('<div class="w-e-text-placeholder">'+o+"</div>");r.$textAreaContainer.append(u),r.$placeholder=u}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!s&&r.showPlaceholder&&((a=r.$placeholder)===null||a===void 0||a.hide(),r.showPlaceholder=!1)}}(this,n),xs(function(){c3(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function _C(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&_C(t)}function xC(){return Qe('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function h3(){return Qe('<div class="w-e-bar-divider"></div>')}function f3(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=LS?"cmd":"ctrl";r=r.replace("mod",a)}if(i)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var o=r?n+`
`+r:n;e.attr("data-tooltip",o),e.addClass("w-e-menu-tooltip-v5")}}}sS("match",function(e,t,n){return[function(r){var i=bs(this),a=r==null?void 0:Rd(r,e);return a?Br(a,r,i):new RegExp(r)[e](si(i))},function(r){var i=oa(this),a=si(r),o=n(t,i,a);if(o.done)return o.value;if(!i.global)return qm(i,a);var s=i.unicode;i.lastIndex=0;for(var u,f=[],m=0;(u=qm(i,a))!==null;){var k=si(u[0]);f[m]=k,k===""&&(i.lastIndex=lS(a,mf(i.lastIndex),s)),m++}return m===0?null:f}]});var wC=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=Qe('<div class="w-e-bar-item"></div>'),this.$button=Qe('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,o=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var s=n.title,u=n.hotkey,f=u===void 0?"":u,m=n.iconSvg,k=m===void 0?"":m,K=this.$button;if(k){var U=Qe(k);_C(U),K.append(U)}else K.text(s);f3(K,k,s,f,r),r&&k&&K.append(Qe('<span class="title">'+s+"</span>")),o&&K.css("width",o+"px"),K.attr("data-menu-key",t),this.$elem.append(K),xs(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Jo(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Jo(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Jo(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Jo(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var i="disabled";r?n.addClass(i):n.removeClass(i),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),zq=function(e){function t(n,r,i){return i===void 0&&(i=!1),e.call(this,n,r,i)||this}return xf(t,e),t.prototype.onButtonClick=function(){},t}(wC),TC=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=SS.get(t);n==null&&(n=new Set,SS.set(t,n)),n.add(this),Rb.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Rb.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Rb.get(this);t&&t.emit("modalOrPanelHide")}},e}(),Gq=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=Qe('<div class="w-e-drop-panel"></div>'),r}return xf(t,e),t.prototype.genSelfElem=function(){return null},t}(TC),Kq=function(e){function t(n,r,i){i===void 0&&(i=!1);var a=e.call(this,n,r,i)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var o=xC();a.$button.append(o)}return a}return xf(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Jo(this);if(this.dropPanel==null){var i=new Gq(r),a=n.getPanelContentElem(r);i.renderContent(a),i.appendTo(this.$elem),i.show(),this.dropPanel=i}else{var o=this.dropPanel;o.isShow?o.hide():(a=n.getPanelContentElem(r),o.renderContent(a),o.show())}var s=this.dropPanel;if(s.isShow){var u=this.$elem,f=u.offset().left,m=u.parents(".w-e-bar");f-m.offset().left>=m.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(wC),Vq=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=Qe('<div class="w-e-modal"></div>'),i.width=0,r&&(i.width=r);var a=i.$elem;return a.on("click",function(o){return o.stopPropagation()}),a.on("keyup",function(o){o.code==="Escape"&&(i.hide(),n.restoreSelection())}),i}return xf(t,e),t.prototype.genSelfElem=function(){var n=this,r=Qe('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),i=Rb.get(this);return r.on("click",function(){n.hide(),i==null||i.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,i=this.$elem;i.attr("style",""),r&&i.css("width",r+"px"),i.css(n)},t}(TC);function Xo(e,t,n){var r=Qe('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=Qe('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function Hye(e,t,n){var r=Qe('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=Qe('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(i),[r[0],i[0]]}function Mf(e,t){var n=Qe('<div class="button-container"></div>'),r=Qe('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Yq=function(e){function t(n,r,i){i===void 0&&(i=!1);var a=e.call(this,n,r,i)||this;return a.$body=Qe("body"),a.modal=null,a.menu=r,a}return xf(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Jo(this),r=this.menu.getModalPositionNode(n);return Nn.isElement(r)?fC(n,r,"modal"):hC(n)},t.prototype.handleModal=function(){var n=Jo(this),r=this.menu;if(this.modal==null){var i=new Vq(n,r.modalWidth);this.renderAndShowModal(i,!0),this.modal=i}else(i=this.modal).isShow?i.hide():this.renderAndShowModal(i,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var i=Jo(this),a=this.menu;if(a.getModalContentElem!=null){var o=Ge.getTextarea(i),s=Ge.getToolbar(i),u=((s==null?void 0:s.getConfig())||{}).modalAppendToBody,f=a.getModalContentElem(i);if(n.renderContent(f),u)n.setStyle({left:"0",right:"0"});else{var m=this.getPosition();n.setStyle(m)}r&&(u?n.appendTo(this.$body):n.appendTo(o.$textAreaContainer)),n.show(),u||pC(i,n.$elem),setTimeout(function(){i.blur()})}},t}(wC),Xq=function(e){function t(n,r){var i=e.call(this,n)||this;return i.type="selectList",i.$elem=Qe('<div class="w-e-select-list"></div>'),r&&i.$elem.css("width",r+"px"),i.$elem.on("click",function(a){a.stopPropagation()}),i}return xf(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var i=Qe("<ul></ul>");n.forEach(function(a){var o=a.value,s=a.text,u=a.selected,f=a.styleForRenderMenuList,m=Qe('<li data-value="'+o+'"></li>');if(f&&m.css(f),u){var k=Qe('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');m.append(k),m.addClass("selected")}m.append(Qe('<span data-value="'+o+'">'+s+"</span>")),m.attr("title",s),i.append(m)}),r.append(i)},t.prototype.genSelfElem=function(){return null},t}(TC),Jq=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=Qe('<div class="w-e-bar-item"></div>'),this.$button=Qe('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var a=n.tag,o=n.title,s=n.width,u=n.iconSvg,f=u===void 0?"":u,m=n.hotkey,k=m===void 0?"":m;if(a!=="select")throw new Error("Invalid tag '"+a+"', expected 'select'");var K=this.$button;s&&K.css("width",s+"px"),K.attr("data-menu-key",t),f3(K,f,o,k,r),this.$elem.append(K),this.menu=n,xs(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Jo(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Jo(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Xq(n,r.selectPanelWidth);var i=this.selectList,a=r.getOptions(n);i.renderList(a),i.appendTo(this.$elem),i.show(),i.$elem.on("click","li",function(o){var s=o.target;if(s!=null){o.preventDefault();var u=Qe(s).attr("data-value");t.onChange(u)}})}else(i=this.selectList).isShow?i.hide():(a=r.getOptions(n),i.renderList(a),i.show())}},e.prototype.onChange=function(t){var n=Jo(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Jo(this),n=this.menu,r=n.getValue(t),i=function(s,u){for(var f=s.length,m="",k=0;k<f;k++){var K=s[k];if(K.value===u){m=K.text;break}}return m}(n.getOptions(t),r.toString()),a=this.$button,o=xC();a.empty(),a.text(i),a.append(o)},e.prototype.setDisabled=function(){var t=Jo(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var i="disabled";n?r.addClass(i):r.removeClass(i),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),p3=function(){function e(t){this.$elem=Qe('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Qe('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Qe('<button type="button"></button>');var n=t.key,r=t.iconSvg,i=t.title,a=this.$elem,o=this.$button;if(r){var s=Qe(r);_C(s),o.append(s)}else o.text(i);o.attr("data-menu-key",n);var u=xC();o.append(u),a.append(o);var f=this.$container;a.append(f);var m=this.createObserver();this.observe(m)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,i=new MutationObserver(function(){var a=n.find("button"),o=a.length;if(o!==0){var s=0;a.each(function(u){Qe(u).hasClass("disabled")&&s++}),i.disconnect(),s===o?r.addClass("disabled"):r.removeClass("disabled"),t.observe(i)}});return i},e}(),m3=new WeakMap;function Jo(e){var t=TS.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function g3(e,t,n){n===void 0&&(n=!1);var r=m3.get(t);if(r)return r;var i=t.tag;if(i==="button"){var a=t.showDropPanel,o=t.showModal;r=a?new Kq(e,t,n):o?new Yq(e,t,n):new zq(e,t,n)}if(i==="select"&&(r=new Jq(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return m3.set(t,r),r}function Qq(e,t){var n=e.selection;return n!=null&&!_t.isCollapsed(n)&&!Ge.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!wn.isText(t)}var Zq=function(){function e(){var t=this;this.$elem=Qe('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=F5(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},i=r.node,a=i===void 0?null:i,o=r.menuKeys,s=o===void 0?[]:o;a!=null&&t.changeItemsState(),a&&Nn.isElement(a)&&n&&t.isSamePath(a,t.prevSelectedNode)||(t.hideAndClean(),a!=null&&(t.registerItems(s),t.setPosition(a),t.show()),t.prevSelectedNode=a)},200),xs(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),Ge.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var i=t.hideAndClean.bind(t);n.on("scroll",i),n.on("fullScreen",i),n.on("unFullScreen",i)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;xs(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(i){if(i!=="|")n.registerSingleItem(i);else{var a=h3();r.append(a)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var a=lg[t];if(a==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof a!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=a(),r[t]=i}var o=g3(t,i);this.hoverbarItems.push(o),TS.set(o,n),this.$elem.append(o.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),Nn.isElement(t)){var i=fC(n,t,"bar");return r.css(i),void pC(n,r)}if(wn.isText(t))return i=hC(n),r.css(i),void pC(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,i=[],a=function(s){var u=n[s],f=u.match,m=u.menuKeys,k=m===void 0?[]:m,K=f||function($,ee){return Ge.checkNodeType(ee,s)},U=Fr(Ee.nodes(t,{match:function($){return K(t,$)},universal:!0}),1),re=U[0];if(re!=null)return r=re[0],i=k,"break"};for(var o in n)if(a(o)==="break")break;return r==null||i.length===0?null:{node:r,menuKeys:i}},e.prototype.getEditorInstance=function(){var t=wS.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=Qq),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=Ge.findPath(null,t),i=Ge.findPath(null,n);return st.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function v3(e,t,n,r){if(ig.set(e,t),Tf.set(e,n),Nn.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(s,u){return v3(s,u,e,r)}),Ee.isVoid(r,e)){var a=Fr(fn.texts(e),1),o=Fr(a[0],1)[0];ig.set(o,0),Tf.set(o,e)}}}function $q(e){var t=e.selector,n=t===void 0?"":t,r=e.config,i=r===void 0?{}:r,a=e.content,o=e.html,s=e.plugins,u=s===void 0?[]:s,f=(te=>{var Q=te,{apply:he}=Q;return Q.history={undos:[],redos:[]},Q.redo=()=>{var{history:me}=Q,{redos:_e}=me;if(_e.length>0){var ke=_e[_e.length-1];bf.withoutSaving(Q,()=>{Ee.withoutNormalizing(Q,()=>{for(var De of ke)Q.apply(De)})}),me.redos.pop(),me.undos.push(ke)}},Q.undo=()=>{var{history:me}=Q,{undos:_e}=me;if(_e.length>0){var ke=_e[_e.length-1];bf.withoutSaving(Q,()=>{Ee.withoutNormalizing(Q,()=>{var De=ke.map(Uu.inverse).reverse();for(var Ye of De)Q.apply(Ye)})}),me.redos.push(ke),me.undos.pop()}},Q.apply=me=>{var{operations:_e,history:ke}=Q,{undos:De}=ke,Ye=De[De.length-1],rt=Ye&&Ye[Ye.length-1],wt=((Ft,jt)=>!(!jt||Ft.type!=="set_selection"||jt.type!=="set_selection"))(me,rt),Lt=bf.isSaving(Q),Tt=bf.isMerging(Q);if(Lt==null&&(Lt=((Ft,jt)=>Ft.type!=="set_selection"||Ft.properties!=null&&Ft.newProperties!=null)(me)),Lt){if(Tt==null&&(Tt=Ye!=null&&(_e.length!==0||((Ft,jt)=>Ft.type==="set_selection"||!(!jt||Ft.type!=="insert_text"||jt.type!=="insert_text"||Ft.offset!==jt.offset+jt.text.length||!st.equals(Ft.path,jt.path))||!(!jt||Ft.type!=="remove_text"||jt.type!=="remove_text"||Ft.offset+Ft.text.length!==jt.offset||!st.equals(Ft.path,jt.path)))(me,rt)||wt)),Ye&&Tt)wt&&Ye.pop(),Ye.push(me);else{var Yt=[me];De.push(Yt)}for(;De.length>100;)De.shift();(Ft=>Ft.type!=="set_selection")(me)&&(ke.redos=[])}he(me)},Q})(function(te){var Q=te,he=Q.insertText,me=Q.insertNode,_e=Q.insertFragment,ke=Q.dangerouslyInsertHtml;return Q.insertText=function(De){if(Q.getConfig().maxLength){var Ye=Ge.getLeftLengthOfMaxLength(Q);Ye<=0||(Ye<De.length?he(De.slice(0,Ye)):he(De))}else he(De)},Q.insertNode=function(De){if(Q.getConfig().maxLength){var Ye=Ge.getLeftLengthOfMaxLength(Q);Ye<=0||Ye<fn.string(De).length||me(De)}else me(De)},Q.insertFragment=function(De){if(Q.getConfig().maxLength)if(De.length!==1)De.forEach(function(rt){Q.insertNode(rt)});else{var Ye=De[0];if(Ge.getLeftLengthOfMaxLength(Q)<fn.string(Ye).length)return;_e(De)}else _e(De)},Q.dangerouslyInsertHtml=function(De,Ye){if(De===void 0&&(De=""),Ye===void 0&&(Ye=!1),De)if(Q.getConfig().maxLength){var rt=Ge.getLeftLengthOfMaxLength(Q);if(!(rt<=0)){var wt=document.createElement("div");wt.innerHTML=De;var Lt=Array.from(wt.childNodes).reduce(function(Tt,Yt){var Ft=Yt.nodeType,jt=Yt.nodeName;return Yt?Ft===Cl.TEXT_NODE?Tt+(Yt.textContent||""):Ft===Cl.ELEMENT_NODE?VN.has(jt.toLowerCase())?Tt:Tt+(Yt.textContent||""):Tt:Tt},"");rt<Lt.length||ke(De,Ye)}}else ke(De,Ye)},Q}(function(te){var Q=te;return Q.on=function(he,me){var _e=Ub(Q);if(_e.on(he,me),he==="destroyed"&&ZN(Q,me),he!=="destroyed"){var ke=function(){return _e.off(he,me)};_e.on("destroyed",ke),ZN(Q,ke)}},Q.once=function(he,me){Ub(Q).once(he,me)},Q.off=function(he,me){Ub(Q).off(he,me)},Q.emit=function(he){for(var me=[],_e=1;_e<arguments.length;_e++)me[_e-1]=arguments[_e];var ke=Ub(Q);ke.emit.apply(ke,pS([he],Fr(me))),he==="destroyed"&&(Tq(Q).forEach(function(De){return ke.off("destroyed",De)}),Sq(Q))},Q}(function(te){var Q=te;return Q.select=function(he){ct.select(Q,he)},Q.deselect=function(){var he=Q.selection,me=Ge.findDocumentOrShadowRoot(Q).getSelection();me&&me.rangeCount>0&&me.removeAllRanges(),he&&ct.deselect(te)},Q.move=function(he,me){me===void 0&&(me=!1),he&&(he<0||ct.move(te,{distance:he,unit:"character",reverse:me}))},Q.moveReverse=function(he){Q.move(he,!0)},Q.restoreSelection=function(){var he=OS.get(Q);he!=null&&(Q.focus(),ct.select(Q,he))},Q.getSelectionPosition=function(){return hC(Q)},Q.getNodePosition=function(he){return fC(Q,he)},Q.isSelectedAll=function(){var he=Q.selection;if(he==null)return!1;var me=Fr(_t.edges(he),2),_e=me[0],ke=me[1],De=Fr(Ee.edges(Q,[]),2),Ye=De[0],rt=De[1];return!(!mr.equals(_e,Ye)||!mr.equals(ke,rt))},Q.selectAll=function(){var he=Ee.start(Q,[]),me=Ee.end(Q,[]);ct.select(Q,{anchor:he,focus:me})},Q}(function(te){var Q=te,he=Q.onChange,me=Q.insertText,_e=Q.apply,ke=Q.deleteBackward;return Q.insertText=function(De){Q.getConfig().readOnly||me(De)},Q.apply=function(De){var Ye,rt,wt,Lt,Tt,Yt,Ft,jt,Wt=[];switch(De.type){case"insert_text":case"remove_text":case"set_node":try{for(var En=_s(Ee.levels(Q,{at:De.path})),kn=En.next();!kn.done;kn=En.next()){var Ln=Fr(kn.value,2),Rn=Ln[0],Ze=Ln[1],He=Ge.findKey(Q,Rn);Wt.push([Ze,He])}}catch(Dr){Ye={error:Dr}}finally{try{kn&&!kn.done&&(rt=En.return)&&rt.call(En)}finally{if(Ye)throw Ye.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var ot=_s(Ee.levels(Q,{at:st.parent(De.path)})),At=ot.next();!At.done;At=ot.next()){var qt=Fr(At.value,2);Rn=qt[0],Ze=qt[1],He=Ge.findKey(Q,Rn),Wt.push([Ze,He])}}catch(Dr){wt={error:Dr}}finally{try{At&&!At.done&&(Lt=ot.return)&&Lt.call(ot)}finally{if(wt)throw wt.error}}break;case"move_node":try{for(var Mt=_s(Ee.levels(Q,{at:st.common(st.parent(De.path),st.parent(De.newPath))})),Cn=Mt.next();!Cn.done;Cn=Mt.next()){var Vn=Fr(Cn.value,2);Rn=Vn[0],Ze=Vn[1],He=Ge.findKey(Q,Rn),Wt.push([Ze,He])}}catch(Dr){Tt={error:Dr}}finally{try{Cn&&!Cn.done&&(Yt=Mt.return)&&Yt.call(Mt)}finally{if(Tt)throw Tt.error}}}_e(De);try{for(var qn=_s(Wt),lr=qn.next();!lr.done;lr=qn.next()){var Ht=Fr(lr.value,2);Ze=Ht[0],He=Ht[1],Rn=Fr(Ee.node(Q,Ze),1)[0],Pb.set(Rn,He)}}catch(Dr){Ft={error:Dr}}finally{try{lr&&!lr.done&&(jt=qn.return)&&jt.call(qn)}finally{if(Ft)throw Ft.error}}},Q.deleteBackward=function(De){if(De!=="line")return ke(De);if(te.selection&&_t.isCollapsed(te.selection)){var Ye=Ee.above(te,{match:function(Tt){return Ee.isBlock(te,Tt)},at:te.selection});if(Ye){var rt=Fr(Ye,2)[1],wt=Ee.range(te,rt,te.selection.anchor),Lt=function(Tt,Yt){var Ft=Ee.range(Tt,_t.end(Yt)),jt=Array.from(Ee.positions(Tt,{at:Yt})),Wt=0,En=jt.length,kn=Math.floor(En/2);if(LN(Tt,Ee.range(Tt,jt[Wt]),Ft))return Ee.range(Tt,jt[Wt],Ft);if(jt.length<2)return Ee.range(Tt,jt[jt.length-1],Ft);for(;kn!==jt.length&&kn!==Wt;)LN(Tt,Ee.range(Tt,jt[kn]),Ft)?En=kn:Wt=kn,kn=Math.floor((Wt+En)/2);return Ee.range(Tt,jt[En],Ft)}(Q,wt);_t.isCollapsed(Lt)||ct.delete(te,{at:Lt})}}},Q.onChange=function(){var De=Q.selection;De!=null&&OS.set(Q,De),Q.emit("change"),he()},Q.handleTab=function(){Q.insertText(" ")},Q.getHtml=function(){var De=Q.children;return(De===void 0?[]:De).map(function(Ye){return DN(Ye,Q)}).join("")},Q.getText=function(){var De=Q.children;return(De===void 0?[]:De).map(function(Ye){return fn.string(Ye)}).join(`
`)},Q.getSelectionText=function(){var De=Q.selection;return De==null?"":Ee.string(te,De)},Q.getElemsByType=function(De,Ye){var rt,wt;Ye===void 0&&(Ye=!1);var Lt=[],Tt=Ee.nodes(Q,{at:[],universal:!0});try{for(var Yt=_s(Tt),Ft=Yt.next();!Ft.done;Ft=Yt.next()){var jt=Fr(Ft.value,1)[0];if(Nn.isElement(jt)&&(Ye?jt.type.indexOf(De)>=0:jt.type===De)){var Wt=RN(Ge.findKey(Q,jt).id);Lt.push(Es(Es({},jt),{id:Wt}))}}}catch(En){rt={error:En}}finally{try{Ft&&!Ft.done&&(wt=Yt.return)&&wt.call(Yt)}finally{if(rt)throw rt.error}}return Lt},Q.getElemsByTypePrefix=function(De){return Q.getElemsByType(De,!0)},Q.isEmpty=function(){var De=Q.children,Ye=De===void 0?[]:De;if(Ye.length>1)return!1;var rt=Ye[0];if(rt==null)return!0;if(Nn.isElement(rt)&&rt.type==="paragraph"){var wt=rt.children,Lt=wt===void 0?[]:wt;if(Lt.length>1)return!1;var Tt=Lt[0];if(Tt==null)return!0;if(wn.isText(Tt)&&Tt.text==="")return!0}return!1},Q.clear=function(){ct.delete(Q,{at:{anchor:Ee.start(Q,[]),focus:Ee.end(Q,[])}}),Q.children.length===0&&ct.insertNodes(Q,[{type:"paragraph",children:[{text:""}]}])},Q.getParentNode=function(De){return Ge.getParentNode(Q,De)},Q.dangerouslyInsertHtml=function(De,Ye){if(De===void 0&&(De=""),Ye===void 0&&(Ye=!1),De){var rt=document.createElement("div");rt.innerHTML=De;var wt=Array.from(rt.childNodes);if(wt=wt.filter(function(Ft){var jt=Ft.nodeType,Wt=Ft.nodeName;return jt===Cl.TEXT_NODE||jt===Cl.ELEMENT_NODE&&!VN.has(Wt.toLowerCase())}),wt.length!==0){var Lt=Q.selection;if(Lt!=null){var Tt=null;Ge.isSelectedEmptyParagraph(Q)&&!Ye&&(Tt=[Lt.focus.path[0]]),rt.setAttribute("hidden","true"),document.body.appendChild(rt);var Yt=0;wt.forEach(function(Ft){var jt=Ft.nodeType,Wt=Ft.nodeName,En=Ft.textContent,kn=En===void 0?"":En;if(jt!==Cl.TEXT_NODE)if(Wt!=="BR"){var Ln=Ft,Rn=!1;if(PN.includes(Wt.toLowerCase()))Rn=!0;else for(var Ze in Bb)if(Ln.matches(Ze)){Rn=!0;break}if(Rn){var He=oC(Qe(Ln),Q);return Array.isArray(He)?(He.forEach(function(At){return YN(Q,At)}),Yt++):(YN(Q,He),Yt++),void(Ge.isSelectedVoidNode(Q)&&Q.move(1))}var ot=window.getComputedStyle(Ln).display;Ge.isSelectedEmptyParagraph(Q)||ot.indexOf("inline")<0&&Q.insertBreak(),Q.dangerouslyInsertHtml(Ln.innerHTML,!0)}else Q.insertText(`
`);else{if(!kn||!kn.trim())return;Q.insertNode({text:kn})}}),Yt&&Tt&&Ge.isEmptyPath(Q,Tt)&&ct.removeNodes(Q,{at:Tt}),rt.remove()}}}},Q.setHtml=function(De){De===void 0&&(De="");var Ye=Q.isDisabled(),rt=Q.isFocused(),wt=JSON.stringify(Q.selection);Q.enable(),Q.focus(),Q.clear();var Lt=zN(Q,De);if(ct.insertFragment(Q,Lt),rt||(Q.deselect(),Q.blur()),Ye&&(Q.deselect(),Q.disable()),Q.isFocused())try{Q.select(JSON.parse(wt))}catch(Tt){Q.select(Ee.start(Q,[]))}},Q}(function(te){var Q=te;return Q.getAllMenuKeys=function(){var he=[];for(var me in lg)he.push(me);return he},Q.getConfig=function(){var he=UM.get(Q);if(he==null)throw new Error("Can not get editor config");return he},Q.getMenuConfig=function(he){var me=Q.getConfig().MENU_CONF;return(me===void 0?{}:me)[he]||{}},Q.alert=function(he,me){me===void 0&&(me="info");var _e=Q.getConfig().customAlert;_e&&_e(he,me)},Q}(function(te){var Q=dq(kK());return Q.id="wangEditor-"+b$++,Q.isDestroyed=!1,Q.isFullScreen=!1,Q.focus=function(he){if(Ge.toDOMNode(Q,Q).focus({preventScroll:!0}),Nd.set(Q,!0),he){var me=Ee.end(Q,[]);ct.select(Q,me)}else{var _e=OS.get(Q);_e?ct.select(Q,_e):ct.select(Q,Ee.start(Q,[]))}},Q.isFocused=function(){return!!Nd.get(Q)},Q.blur=function(){Ge.toDOMNode(Q,Q).blur(),ct.deselect(Q),Nd.set(Q,!1)},Q.updateView=function(){Ge.getTextarea(Q).changeViewState();var he=Ge.getToolbar(Q);he&&he.changeToolbarState();var me=Ge.getHoverbar(Q);me&&me.changeHoverbarState()},Q.destroy=function(){if(!Q.isDestroyed){var he=Ge.getTextarea(Q);he.destroy(),ES.delete(Q),_S.delete(he);var me=Ge.getToolbar(Q);me&&(me.destroy(),Ob.delete(Q),xS.delete(me));var _e=Ge.getHoverbar(Q);_e&&(_e.destroy(),Db.delete(Q),wS.delete(_e)),Q.isDestroyed=!0,Q.emit("destroyed")}},Q.scrollToElem=function(he){if(!Q.getConfig().scroll){var me="\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";return me+=`
You has disabled editor scroll, please do this yourself`,void console.warn(me)}var _e=Qe("#"+he);if(_e.length!==0){var ke=_e[0];if(!Ge.hasDOMNode(Q,ke))return me="Element (found by id is '"+he+"') is not in editor DOM",me+=`
\u901A\u8FC7 id '`+he+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(me,ke);var De=Ge.getTextarea(Q),Ye=De.$textAreaContainer,rt=De.$scroll,wt=_e.offset().top,Lt=Ye.offset().top;rt[0].scrollBy({top:wt-Lt,behavior:"smooth"})}},Q.showProgressBar=function(he){he<1||Ge.getTextarea(Q).changeProgress(he)},Q.hidePanelOrModal=function(){var he=SS.get(Q);he!=null&&he.forEach(function(me){return me.hide()})},Q.enable=function(){Q.getConfig().readOnly=!1,Q.updateView()},Q.disable=function(){Q.getConfig().readOnly=!0,Q.updateView()},Q.isDisabled=function(){return Q.getConfig().readOnly},Q.toDOMNode=function(he){return Ge.toDOMNode(Q,he)},Q.fullScreen=function(){if(!Q.isFullScreen){var he=null,me=Ge.getToolbar(Q);me&&(he=me.$box);var _e=Ge.getTextarea(Q).$box.parent();if(he&&he.parent()[0]!==_e[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
\u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);_e.addClass("w-e-full-screen-container");var ke=_e.css("z-index");_e.attr("data-z-index",ke.toString()),Q.isFullScreen=!0,Q.emit("fullScreen")}},Q.unFullScreen=function(){if(Q.isFullScreen){var he=Ge.getTextarea(Q).$box.parent();setTimeout(function(){he.removeClass("w-e-full-screen-container"),Q.isFullScreen=!1,Q.emit("unFullScreen")},200)}},Q.getEditableContainer=function(){return Ge.getTextarea(Q).$textAreaContainer[0]},Q}()))))));if(n&&function(te,Q){return WN(te,"data-w-e-textarea",Q)}(f,n))throw new Error("Repeated create editor by selector '"+n+"'");var m=function(te){te===void 0&&(te={});var Q=j5($M),he={},me=te.MENU_CONF,_e=me===void 0?{}:me;return kw(Q,function(ke,De){he[De]=Es(Es({},ke),_e[De]||{})}),delete te.MENU_CONF,Es({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:he,hoverbarKeys:{},customAlert:function(ke,De){window.alert(De+`:
`+ke)}},te)}(i);UM.set(f,m);var k=m.hoverbarKeys,K=k===void 0?{}:k;if(u.forEach(function(te){f=te(f)}),o!=null&&(f.children=zN(f,o)),a&&a.length&&(f.children=a),f.children.length===0&&(f.children=[{type:"paragraph",children:[{text:""}]}]),Ge.normalizeContent(f),n){var U=new Wq(n);ES.set(f,U),_S.set(U,f),U.changeViewState(),xs(function(){var te=U.$scroll;te!=null&&te.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
Textarea height < 300px . This may be cause modal and hoverbar position error`,te)});var re=void 0;Object.keys(K).length>0&&(re=new Zq,wS.set(re,f),Db.set(f,re)),f.on("change",function(){f.hidePanelOrModal()}),f.on("scroll",function(){f.hidePanelOrModal()})}else f.children.forEach(function(te,Q){return v3(te,Q,f,f)});var $=m.onCreated,ee=m.onDestroyed;return $&&f.on("created",function(){return $(f)}),ee&&f.on("destroyed",function(){return ee(f)}),xs(function(){return f.emit("created")}),f}var qq=vb("splice"),eee=on.TypeError,tee=Math.max,nee=Math.min;Di({target:"Array",proto:!0,forced:!qq},{splice:function(e,t){var n,r,i,a,o,s,u=Qu(this),f=Pd(u),m=vf(e,f),k=arguments.length;if(k===0?n=r=0:k===1?(n=0,r=f-m):(n=k-2,r=nee(tee(zm(t),0),f-m)),f+n-r>9007199254740991)throw eee("Maximum allowed length exceeded");for(i=Fk(u,r),a=0;a<r;a++)(o=m+a)in u&&Qm(i,a,u[o]);if(i.length=r,n<r){for(a=m;a<f-r;a++)s=a+n,(o=a+r)in u?u[s]=u[o]:delete u[s];for(a=f;a>f-r+n;a--)delete u[a-1]}else if(n>r)for(a=f-r;a>m;a--)s=a+n-1,(o=a+r-1)in u?u[s]=u[o]:delete u[s];for(a=0;a<n;a++)u[a+m]=arguments[a+2];return u.length=f-r+n,i}});var ree=function(){function e(t,n){var r=this;this.$toolbar=Qe('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=F5(function(){r.toolbarItems.forEach(function(o){o.changeMenuState()})},200),this.config=n;var i=Qe(t);if(i.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=i;var a=this.$toolbar;a.on("mousedown",function(o){return o.preventDefault()},{passive:!1}),i.append(a),xs(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,i=this.config,a=i.toolbarKeys,o=a===void 0?[]:a,s=i.insertKeys,u=s===void 0?{index:0,keys:[]}:s,f=i.excludeKeys,m=f===void 0?[]:f,k=j5(o);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(re,$){k.splice(u.index+$,0,re)}));var K=k.filter(function(re){if(typeof re=="string"){if(m.includes(re))return!1}else if(m.includes(re.key))return!1;return!0}),U=K.length;K.forEach(function(re,$){if(re==="|"){if($===0)return;if($+1===U)return;if(n==="|")return;var ee=h3();return r.append(ee),void(n=re)}if(typeof re=="string")return t.registerSingleItem(re,t),void(n=re);t.registerGroup(re),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(f){return new p3(f)}(t),a=t.menuKeys,o=a===void 0?[]:a,s=this.config.excludeKeys,u=s===void 0?[]:s;o.forEach(function(f){u.includes(f)||n.registerSingleItem(f,i)}),r.append(i.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof p3,a=this.menus,o=a[t];if(o==null){var s=lg[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=s(),a[t]=o}else console.warn("Duplicated toolbar menu key '"+t+`'
\u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+t+"'");var u=g3(t,o,i);this.toolbarItems.push(u),TS.set(u,r),i?n.appendBarItem(u):n.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=xS.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),iee=pf.EXISTS,aee=Vs.f,y3=Function.prototype,oee=Un(y3.toString),b3=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,see=Un(b3.exec);function E3(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,i=r===void 0?"":r,a=e.maxFileSize,o=a===void 0?10485760:a,s=e.maxNumberOfFiles,u=s===void 0?100:s,f=e.meta,m=f===void 0?{}:f,k=e.metaWithUrl,K=k!==void 0&&k,U=e.headers,re=U===void 0?{}:U,$=e.withCredentials,ee=$!==void 0&&$,te=e.timeout,Q=te===void 0?1e4:te,he=e.onBeforeUpload,me=he===void 0?function(Yt){return Yt}:he,_e=e.onSuccess,ke=_e===void 0?function(Yt,Ft){}:_e,De=e.onError,Ye=De===void 0?function(Yt,Ft,jt){console.error(Yt.name+" upload error",Ft,jt)}:De,rt=e.onProgress,wt=rt===void 0?function(Yt){}:rt;if(!n)throw new Error(`Cannot get upload server address
\u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!i)throw new Error(`Cannot get fieldName
\u6CA1\u6709\u914D\u7F6E fieldName`);var Lt=n;K&&(Lt=function(Yt,Ft){var jt=Fr(Yt.split("#"),2),Wt=jt[0],En=jt[1],kn=[];kw(Ft,function(Rn,Ze){kn.push(Ze+"="+Rn)});var Ln=kn.join("&");return Wt=Wt.indexOf("?")>0?Wt+"&"+Ln:Wt+"?"+Ln,En?Wt+"#"+En:Wt}(Lt,m));var Tt=new Im({onBeforeUpload:me,restrictions:{maxFileSize:o,maxNumberOfFiles:u},meta:m}).use(kJ,{endpoint:Lt,headers:re,formData:!0,fieldName:i,bundle:!0,withCredentials:ee,timeout:Q});return Tt.on("upload-success",function(Yt,Ft){var jt=Ft.body,Wt=jt===void 0?{}:jt;try{ke(Yt,Wt)}catch(En){console.error("wangEditor upload file - onSuccess error",En)}Tt.removeFile(Yt.id)}),Tt.on("progress",function(Yt){Yt<1||wt(Yt)}),Tt.on("upload-error",function(Yt,Ft,jt){try{Ye(Yt,Ft,jt)}catch(Wt){console.error("wangEditor upload file - onError error",Wt)}Tt.removeFile(Yt.id)}),Tt.on("restriction-failed",function(Yt,Ft){try{Ye(Yt,Ft)}catch(jt){console.error("wangEditor upload file - onError error",jt)}Tt.removeFile(Yt.id)}),Tt}function nc(e){return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nc(e)}function lee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ea(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){lee(e,i,n[i])})}return e}function cu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function du(e,t,n){return t&&_3(e.prototype,t),n&&_3(e,n),e}function Hd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yg(e,t){if(t&&(nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hd(e)}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Nf(e)}function SC(e,t){return SC=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},SC(e,t)}function zb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&SC(e,t)}Na&&!iee&&aee(y3,"name",{configurable:!0,get:function(){try{return see(b3,oee(this))[1]}catch(e){return""}}});var uee={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},hu=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};cu(this,e),this.init(t,n)}return du(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||uee,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Ea({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),rc=function(){function e(){cu(this,e),this.observers={}}return du(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(i){r.observers[i]=r.observers[i]||[],r.observers[i].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.observers[t]){var a=[].concat(this.observers[t]);a.forEach(function(s){s.apply(void 0,r)})}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach(function(s){s.apply(s,[t].concat(r))})}}}]),e}();function bg(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function x3(e){return e==null?"":""+e}function cee(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function CC(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function w3(e,t,n){var r=CC(e,t,Object);r.obj[r.k]=n}function Gb(e,t){var n=CC(e,t),r=n.obj,i=n.k;if(r)return r[i]}function T3(e,t,n){var r=Gb(e,n);return r!==void 0?r:Gb(t,n)}function S3(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):S3(e[r],t[r],n):e[r]=t[r]);return e}function Bf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return dee[t]}):e}var Kb=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function C3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i)return;if(typeof i[r[a]]=="string"&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,s=r.slice(a,a+o).join(n),u=i[s];u===void 0&&r.length>a+o;)o++,u=i[s=r.slice(a,a+o).join(n)];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var f=r.slice(a+o).join(n);return f?C3(u,f,n):void 0}i=i[r[a]]}return i}}var fee=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return cu(this,t),r=yg(this,Nf(t).call(this)),Kb&&rc.call(Hd(r)),r.data=n||{},r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return zb(t,rc),du(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[n,r];i&&typeof i!="string"&&(u=u.concat(i)),i&&typeof i=="string"&&(u=u.concat(o?i.split(o):i)),n.indexOf(".")>-1&&(u=n.split("."));var f=Gb(this.data,u);return f||!s||typeof i!="string"?f:C3(this.data&&this.data[n]&&this.data[n][r],i,o)}},{key:"addResource",value:function(n,r,i,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[n,r];i&&(u=u.concat(s?i.split(s):i)),n.indexOf(".")>-1&&(a=r,r=(u=n.split("."))[1]),this.addNamespaces(r),w3(this.data,u,a),o.silent||this.emit("added",n,r,i,a)}},{key:"addResources",value:function(n,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var o in i)typeof i[o]!="string"&&Object.prototype.toString.apply(i[o])!=="[object Array]"||this.addResource(n,r,o,i[o],{silent:!0});a.silent||this.emit("added",n,r,i)}},{key:"addResourceBundle",value:function(n,r,i,a,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[n,r];n.indexOf(".")>-1&&(a=i,i=r,r=(u=n.split("."))[1]),this.addNamespaces(r);var f=Gb(this.data,u)||{};a?S3(f,i,o):f=Ea({},f,i),w3(this.data,u,f),s.silent||this.emit("added",n,r,i)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ea({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),A3={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach(function(o){a.processors[o]&&(t=a.processors[o].process(t,n,r,i))}),t}},O3={},D3=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return cu(this,t),r=yg(this,Nf(t).call(this)),Kb&&rc.call(Hd(r)),cee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Hd(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=hu.create("translator"),r}return zb(t,rc),du(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var i=this.resolve(n,r);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(n,r){var i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,o=r.ns||this.options.defaultNS;if(i&&n.indexOf(i)>-1){var s=n.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:n,namespaces:o};var u=n.split(i);(i!==a||i===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),n=u.join(a)}return typeof o=="string"&&(o=[o]),{key:n,namespaces:o}}},{key:"translate",value:function(n,r,i){var a=this;if(nc(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(n[n.length-1],r),u=s.key,f=s.namespaces,m=f[f.length-1],k=r.lng||this.language,K=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(k&&k.toLowerCase()==="cimode"){if(K){var U=r.nsSeparator||this.options.nsSeparator;return m+U+u}return u}var re=this.resolve(n,r),$=re&&re.res,ee=re&&re.usedKey||u,te=re&&re.exactUsedKey||u,Q=Object.prototype.toString.apply($),he=["[object Number]","[object Function]","[object RegExp]"],me=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,_e=!this.i18nFormat||this.i18nFormat.handleAsObject,ke=typeof $!="string"&&typeof $!="boolean"&&typeof $!="number";if(_e&&$&&ke&&he.indexOf(Q)<0&&(typeof me!="string"||Q!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(ee,$,Ea({},r,{ns:f})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(o){var De=Q==="[object Array]",Ye=De?[]:{},rt=De?te:ee;for(var wt in $)if(Object.prototype.hasOwnProperty.call($,wt)){var Lt="".concat(rt).concat(o).concat(wt);Ye[wt]=this.translate(Lt,Ea({},r,{joinArrays:!1,ns:f})),Ye[wt]===Lt&&(Ye[wt]=$[wt])}$=Ye}}else if(_e&&typeof me=="string"&&Q==="[object Array]")($=$.join(me))&&($=this.extendTranslation($,n,r,i));else{var Tt=!1,Yt=!1,Ft=r.count!==void 0&&typeof r.count!="string",jt=t.hasDefaultValue(r),Wt=Ft?this.pluralResolver.getSuffix(k,r.count):"",En=r["defaultValue".concat(Wt)]||r.defaultValue;!this.isValidLookup($)&&jt&&(Tt=!0,$=En),this.isValidLookup($)||(Yt=!0,$=u);var kn=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ln=kn&&Yt?void 0:$,Rn=jt&&En!==$&&this.options.updateMissing;if(Yt||Tt||Rn){if(this.logger.log(Rn?"updateKey":"missingKey",k,m,u,Rn?En:$),o){var Ze=this.resolve(u,Ea({},r,{keySeparator:!1}));Ze&&Ze.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var He=[],ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ot&&ot[0])for(var At=0;At<ot.length;At++)He.push(ot[At]);else this.options.saveMissingTo==="all"?He=this.languageUtils.toResolveHierarchy(r.lng||this.language):He.push(r.lng||this.language);var qt=function(Mt,Cn,Vn){a.options.missingKeyHandler?a.options.missingKeyHandler(Mt,m,Cn,Rn?Vn:Ln,Rn,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(Mt,m,Cn,Rn?Vn:Ln,Rn,r),a.emit("missingKey",Mt,m,Cn,$)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ft?He.forEach(function(Mt){a.pluralResolver.getSuffixes(Mt).forEach(function(Cn){qt([Mt],u+Cn,r["defaultValue".concat(Cn)]||En)})}):qt(He,u,En))}$=this.extendTranslation($,n,r,re,i),Yt&&$===u&&this.options.appendNamespaceToMissingKey&&($="".concat(m,":").concat(u)),(Yt||Tt)&&this.options.parseMissingKeyHandler&&($=this.options.parseMissingKeyHandler($))}return $}},{key:"extendTranslation",value:function(n,r,i,a,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,i,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(Ea({},i,{interpolation:Ea({},this.options.interpolation,i.interpolation)}));var u,f=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(f){var m=n.match(this.interpolator.nestingRegexp);u=m&&m.length}var k=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(k=Ea({},this.options.interpolation.defaultVariables,k)),n=this.interpolator.interpolate(n,k,i.lng||this.language,i),f){var K=n.match(this.interpolator.nestingRegexp);u<(K&&K.length)&&(i.nest=!1)}i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var $=arguments.length,ee=new Array($),te=0;te<$;te++)ee[te]=arguments[te];return o&&o[0]===ee[0]&&!i.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(ee[0]," in key: ").concat(r[0])),null):s.translate.apply(s,ee.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var U=i.postProcess||this.options.postProcess,re=typeof U=="string"?[U]:U;return n!=null&&re&&re.length&&i.applyPostProcessor!==!1&&(n=A3.handle(re,n,r,this.options&&this.options.postProcessPassResolved?Ea({i18nResolved:a},i):i,this)),n}},{key:"resolve",value:function(n){var r,i,a,o,s,u=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(m){if(!u.isValidLookup(r)){var k=u.extractFromKey(m,f),K=k.key;i=K;var U=k.namespaces;u.options.fallbackNS&&(U=U.concat(u.options.fallbackNS));var re=f.count!==void 0&&typeof f.count!="string",$=f.context!==void 0&&(typeof f.context=="string"||typeof f.context=="number")&&f.context!=="",ee=f.lngs?f.lngs:u.languageUtils.toResolveHierarchy(f.lng||u.language,f.fallbackLng);U.forEach(function(te){u.isValidLookup(r)||(s=te,!O3["".concat(ee[0],"-").concat(te)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(s)&&(O3["".concat(ee[0],"-").concat(te)]=!0,u.logger.warn('key "'.concat(i,'" for languages "').concat(ee.join(", "),`" won't get resolved as namespace "`).concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ee.forEach(function(Q){if(!u.isValidLookup(r)){o=Q;var he,me,_e=K,ke=[_e];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(ke,K,Q,te,f):(re&&(he=u.pluralResolver.getSuffix(Q,f.count)),re&&$&&ke.push(_e+he),$&&ke.push(_e+="".concat(u.options.contextSeparator).concat(f.context)),re&&ke.push(_e+=he));me=ke.pop();)u.isValidLookup(r)||(a=me,r=u.getResource(Q,te,me,f))}}))})}}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,i,a):this.resourceStore.getResource(n,r,i,a)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&r===i.substring(0,r.length)&&n[i]!==void 0)return!0;return!1}}]),t}();function AC(e){return e.charAt(0).toUpperCase()+e.slice(1)}var pee=function(){function e(t){cu(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hu.create("languageUtils")}return du(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(i){return i.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=AC(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=AC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=AC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(i){if(!n){var a=r.formatLanguageCode(i);r.options.supportedLngs&&!r.isSupportedCode(a)||(n=a)}}),!n&&this.options.supportedLngs&&t.forEach(function(i){if(!n){var a=r.getLanguagePartFromCode(i);if(r.isSupportedCode(a))return n=a;n=r.options.supportedLngs.find(function(o){if(o.indexOf(a)===0)return o})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=function(s){s&&(r.isSupportedCode(s)?a.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),i.forEach(function(s){a.indexOf(s)<0&&o(r.formatLanguageCode(s))}),a}}]),e}(),mee=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],gee={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e!==0?1:2)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function vee(){var e={};return mee.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:gee[t.fc]}})}),e}var yee=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};cu(this,e),this.languageUtils=t,this.options=n,this.logger=hu.create("pluralResolver"),this.rules=vee()}return du(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(i){return n.getSuffix(t,i)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,i=this.getRule(t);if(i){var a=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),o=i.numbers[a];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),bee=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cu(this,e),this.logger=hu.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return du(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:hee,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Bf(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Bf(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Bf(n.nestingPrefix):n.nestingPrefixEscaped||Bf("$t("),this.nestingSuffix=n.nestingSuffix?Bf(n.nestingSuffix):n.nestingSuffixEscaped||Bf(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,i){var a,o,s,u=this,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m($){return $.replace(/\$/g,"$$$$")}var k=function($){if($.indexOf(u.formatSeparator)<0){var ee=T3(n,f,$);return u.alwaysFormat?u.format(ee,void 0,r,Ea({},i,n,{interpolationkey:$})):ee}var te=$.split(u.formatSeparator),Q=te.shift().trim(),he=te.join(u.formatSeparator).trim();return u.format(T3(n,f,Q),he,r,Ea({},i,n,{interpolationkey:Q}))};this.resetRegExp();var K=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,U=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,re=[{regex:this.regexpUnescape,safeValue:function($){return m($)}},{regex:this.regexp,safeValue:function($){return u.escapeValue?m(u.escape($)):m($)}}];return re.forEach(function($){for(s=0;a=$.regex.exec(t);){if((o=k(a[1].trim()))===void 0)if(typeof K=="function"){var ee=K(t,a,i);o=typeof ee=="string"?ee:""}else{if(U){o=a[0];continue}u.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),o=""}else typeof o=="string"||u.useRawValueToEscape||(o=x3(o));var te=$.safeValue(o);if(t=t.replace(a[0],te),U?($.regex.lastIndex+=te.length,$.regex.lastIndex-=a[0].length):$.regex.lastIndex=0,++s>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,i,a=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=Ea({},o);function u(K,U){var re=this.nestingOptionsSeparator;if(K.indexOf(re)<0)return K;var $=K.split(new RegExp("".concat(re,"[ ]*{"))),ee="{".concat($[1]);K=$[0],ee=(ee=this.interpolate(ee,s)).replace(/'/g,'"');try{s=JSON.parse(ee),U&&(s=Ea({},U,s))}catch(te){return this.logger.warn("failed parsing options string in nesting for key ".concat(K),te),"".concat(K).concat(re).concat(ee)}return delete s.defaultValue,K}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(t);){var f=[],m=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var k=r[1].split(this.formatSeparator).map(function(K){return K.trim()});r[1]=k.shift(),f=k,m=!0}if((i=n(u.call(this,r[1].trim(),s),s))&&r[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=x3(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),i=""),m&&(i=f.reduce(function(K,U){return a.format(K,U,o.lng,Ea({},o,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),Eee=function(e){function t(n,r,i){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return cu(this,t),a=yg(this,Nf(t).call(this)),Kb&&rc.call(Hd(a)),a.backend=n,a.store=r,a.services=i,a.languageUtils=i.languageUtils,a.options=o,a.logger=hu.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,o.backend,o),a}return zb(t,rc),du(t,[{key:"queueLoad",value:function(n,r,i,a){var o=this,s=[],u=[],f=[],m=[];return n.forEach(function(k){var K=!0;r.forEach(function(U){var re="".concat(k,"|").concat(U);!i.reload&&o.store.hasResourceBundle(k,U)?o.state[re]=2:o.state[re]<0||(o.state[re]===1?u.indexOf(re)<0&&u.push(re):(o.state[re]=1,K=!1,u.indexOf(re)<0&&u.push(re),s.indexOf(re)<0&&s.push(re),m.indexOf(U)<0&&m.push(U)))}),K||f.push(k)}),(s.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:a}),{toLoad:s,pending:u,toLoadLanguages:f,toLoadNamespaces:m}}},{key:"loaded",value:function(n,r,i){var a=n.split("|"),o=a[0],s=a[1];r&&this.emit("failedLoading",o,s,r),i&&this.store.addResourceBundle(o,s,i),this.state[n]=r?-1:2;var u={};this.queue.forEach(function(f){!function(m,k,K,U){var re=CC(m,k,Object),$=re.obj,ee=re.k;$[ee]=$[ee]||[],$[ee].push(K)}(f.loaded,[o],s),function(m,k){for(var K=m.indexOf(k);K!==-1;)m.splice(K,1),K=m.indexOf(k)}(f.pending,n),r&&f.errors.push(r),f.pending.length!==0||f.done||(Object.keys(f.loaded).forEach(function(m){u[m]||(u[m]=[]),f.loaded[m].length&&f.loaded[m].forEach(function(k){u[m].indexOf(k)<0&&u[m].push(k)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(n,r,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[i](n,r,function(f,m){f&&m&&o<5?setTimeout(function(){a.read.call(a,n,r,i,o+1,2*s,u)},s):u(f,m)}):u(null,{})}},{key:"prepareLoading",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var s=this.queueLoad(n,r,a,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(function(u){i.loadOne(u)})}},{key:"load",value:function(n,r,i){this.prepareLoading(n,r,{},i)}},{key:"reload",value:function(n,r,i){this.prepareLoading(n,r,{reload:!0},i)}},{key:"loadOne",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=n.split("|"),o=a[0],s=a[1];this.read(o,s,"read",void 0,void 0,function(u,f){u&&r.logger.warn("".concat(i,"loading namespace ").concat(s," for language ").concat(o," failed"),u),!u&&f&&r.logger.log("".concat(i,"loaded namespace ").concat(s," for language ").concat(o),f),r.loaded(n,u,f)})}},{key:"saveMissing",value:function(n,r,i,a,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):i!=null&&i!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,i,a,null,Ea({},s,{isUpdate:o})),n&&n[0]&&this.store.addResource(n[0],r,i,a))}}]),t}();function _ee(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(nc(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),nc(e[2])==="object"||nc(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function R3(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Vb(){}var xee=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(cu(this,t),n=yg(this,Nf(t).call(this)),Kb&&rc.call(Hd(n)),n.options=R3(r),n.services={},n.logger=hu,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),yg(n,Hd(n));setTimeout(function(){n.init(r,i)},0)}return n}return zb(t,rc),du(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;function a(U){return U?typeof U=="function"?new U:U:null}if(typeof r=="function"&&(i=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Ea({},_ee(),this.options,R3(r)),this.format=this.options.interpolation.format,i||(i=Vb),!this.options.isClone){this.modules.logger?hu.init(a(this.modules.logger),this.options):hu.init(null,this.options);var o=new pee(this.options);this.store=new fee(this.options.resources,this.options);var s=this.services;s.logger=hu,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new yee(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new bee(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Eee(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(U){for(var re=arguments.length,$=new Array(re>1?re-1:0),ee=1;ee<re;ee++)$[ee-1]=arguments[ee];n.emit.apply(n,[U].concat($))}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new D3(this.services,this.options),this.translator.on("*",function(U){for(var re=arguments.length,$=new Array(re>1?re-1:0),ee=1;ee<re;ee++)$[ee-1]=arguments[ee];n.emit.apply(n,[U].concat($))}),this.modules.external.forEach(function(U){U.init&&U.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var f=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];f.forEach(function(U){n[U]=function(){var re;return(re=n.store)[U].apply(re,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(U){n[U]=function(){var re;return(re=n.store)[U].apply(re,arguments),n}});var k=bg(),K=function(){var U=function(re,$){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),k.resolve($),i(re,$)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return U(null,n.t.bind(n));n.changeLanguage(n.options.lng,U)};return this.options.resources||!this.options.initImmediate?K():setTimeout(K,0),k}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vb,a=i,o=typeof n=="string"?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode")return a();var s=[],u=function(m){m&&r.services.languageUtils.toResolveHierarchy(m).forEach(function(k){s.indexOf(k)<0&&s.push(k)})};if(o)u(o);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(m){return u(m)})}this.options.preload&&this.options.preload.forEach(function(m){return u(m)}),this.services.backendConnector.load(s,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(n,r,i){var a=bg();return n||(n=this.languages),r||(r=this.options.ns),i||(i=Vb),this.services.backendConnector.reload(n,r,function(o){a.resolve(),i(o)}),a}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&A3.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var i=this;this.isLanguageChangingTo=n;var a=bg();this.emit("languageChanging",n);var o=function(s){n||s||!i.services.languageDetector||(s=[]);var u=typeof s=="string"?s:i.services.languageUtils.getBestMatchFromCodes(s);u&&(i.language||(i.language=u,i.languages=i.services.languageUtils.toResolveHierarchy(u)),i.translator.language||i.translator.changeLanguage(u),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(u)),i.loadResources(u,function(f){!function(m,k){k?(i.language=k,i.languages=i.services.languageUtils.toResolveHierarchy(k),i.translator.changeLanguage(k),i.isLanguageChangingTo=void 0,i.emit("languageChanged",k),i.logger.log("languageChanged",k)):i.isLanguageChangingTo=void 0,a.resolve(function(){return i.t.apply(i,arguments)}),r&&r(m,function(){return i.t.apply(i,arguments)})}(f,u)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(n):o(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(n,r,i){var a=this,o=function s(u,f){var m;if(nc(f)!=="object"){for(var k=arguments.length,K=new Array(k>2?k-2:0),U=2;U<k;U++)K[U-2]=arguments[U];m=a.options.overloadTranslationOptionHandler([u,f].concat(K))}else m=Ea({},f);m.lng=m.lng||s.lng,m.lngs=m.lngs||s.lngs,m.ns=m.ns||s.ns;var re=a.options.keySeparator||".",$=i?"".concat(i).concat(re).concat(u):u;return a.t($,m)};return typeof n=="string"?o.lng=n:o.lngs=n,o.ns=r,o.keyPrefix=i,o}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(m,k){var K=r.services.backendConnector.state["".concat(m,"|").concat(k)];return K===-1||K===2};if(i.precheck){var f=i.precheck(this,u);if(f!==void 0)return f}return!!this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||!(!u(a,n)||o&&!u(s,n))}},{key:"loadNamespaces",value:function(n,r){var i=this,a=bg();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(o){i.options.ns.indexOf(o)<0&&i.options.ns.push(o)}),this.loadResources(function(o){a.resolve(),r&&r(o)}),a):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var i=bg();typeof n=="string"&&(n=[n]);var a=this.options.preload||[],o=n.filter(function(s){return a.indexOf(s)<0});return o.length?(this.options.preload=a.concat(o),this.loadResources(function(s){i.resolve(),r&&r(s)}),i):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vb,a=Ea({},this.options,r,{isClone:!0}),o=new t(a),s=["store","services","language"];return s.forEach(function(u){o[u]=n[u]}),o.services=Ea({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new D3(o.services,o.options),o.translator.on("*",function(u){for(var f=arguments.length,m=new Array(f>1?f-1:0),k=1;k<f;k++)m[k-1]=arguments[k];o.emit.apply(o,[u].concat(m))}),o.init(a,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),Ff=new xee;function Ro(e,t){Ff.addResourceBundle(e,"translation",t,!0,!0)}function Wye(e){Ff.changeLanguage(e)}function zye(e){return Ff.getResourceBundle(e,"translation")}Ff.init({lng:"zh-CN",resources:{}});var pn=Ff.t.bind(Ff);Ro("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Ro("zh-CN",{editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}});var wee=_x?{}.toString:function(){return"[object "+ly(this)+"]"};_x||Mu(Object.prototype,"toString",wee,{unsafe:!0});var I3=Array.isArray||function(e){return vl(e)=="Array"},L3=function(){},Tee=[],P3=yl("Reflect","construct"),OC=/^\s*(?:class|function)\b/,See=Qr(OC.exec),Cee=!OC.exec(L3),Eg=function(e){if(!ji(e))return!1;try{return P3(L3,Tee,e),!0}catch(t){return!1}},Aee=!P3||Fi(function(){var e;return Eg(Eg.call)||!Eg(Object)||!Eg(function(){e=!0})||e})?function(e){if(!ji(e))return!1;switch(ly(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Cee||!!See(OC,im(e))}:Eg,Oee=ka("species"),k3=Zn.Array,Dee=function(e,t){return new(function(n){var r;return I3(n)&&(r=n.constructor,(Aee(r)&&(r===k3||I3(r.prototype))||Ho(r)&&(r=r[Oee])===null)&&(r=void 0)),r===void 0?k3:r}(e))(t===0?0:t)},M3=Qr([].push),ic=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=Wh(u),$=G0(re),ee=hL(f,m),te=ay($),Q=0,he=k||Dee,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:M3(me,K)}else switch(e){case 4:return!1;case 7:M3(me,K)}return a?-1:r||i?i:me}},Ree={forEach:ic(0),map:ic(1),filter:ic(2),some:ic(3),every:ic(4),find:ic(5),findIndex:ic(6),filterReject:ic(7)}.forEach,Iee=function(e,t){var n=[][e];return!!n&&Fi(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),DC=Iee?[].forEach:function(e){return Ree(this,e,arguments.length>1?arguments[1]:void 0)},N3=function(e){if(e&&e.forEach!==DC)try{Ma(e,"forEach",DC)}catch(t){e.forEach=DC}};for(var RC in my)my[RC]&&N3(Zn[RC]&&Zn[RC].prototype);N3(TL),Ro("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Ro("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var Lee={type:"paragraph",renderElem:function(e,t,n){return er("p",null,t)}},Yb=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function Xb(e){var t={exports:{}};return e(t,t.exports),t.exports}var ac,Jb,Qb=function(e){return e&&e.Math==Math&&e},dr=Qb(typeof globalThis=="object"&&globalThis)||Qb(typeof window=="object"&&window)||Qb(typeof self=="object"&&self)||Qb(typeof Yb=="object"&&Yb)||function(){return this}()||Function("return this")(),Ii=function(e){try{return!!e()}catch(t){return!0}},Qs=!Ii(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_g=Function.prototype.call,Vi=_g.bind?_g.bind(_g):function(){return _g.apply(_g,arguments)},B3={}.propertyIsEnumerable,F3=Object.getOwnPropertyDescriptor,Pee=F3&&!B3.call({1:2},1)?function(e){var t=F3(this,e);return!!t&&t.enumerable}:B3,j3={f:Pee},IC=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},U3=Function.prototype,LC=U3.bind,PC=U3.call,kee=LC&&LC.bind(PC),$n=LC?function(e){return e&&kee(PC,e)}:function(e){return e&&function(){return PC.apply(e,arguments)}},Mee=$n({}.toString),Nee=$n("".slice),oc=function(e){return Nee(Mee(e),8,-1)},kC=dr.Object,Bee=$n("".split),Zb=Ii(function(){return!kC("z").propertyIsEnumerable(0)})?function(e){return oc(e)=="String"?Bee(e,""):kC(e)}:kC,Fee=dr.TypeError,Ts=function(e){if(e==null)throw Fee("Can't call method on "+e);return e},jf=function(e){return Zb(Ts(e))},$a=function(e){return typeof e=="function"},Ss=function(e){return typeof e=="object"?e!==null:$a(e)},jee=function(e){return $a(e)?e:void 0},xg=function(e,t){return arguments.length<2?jee(dr[e]):dr[e]&&dr[e][t]},H3=$n({}.isPrototypeOf),MC=xg("navigator","userAgent")||"",W3=dr.process,z3=dr.Deno,G3=W3&&W3.versions||z3&&z3.version,K3=G3&&G3.v8;K3&&(Jb=(ac=K3.split("."))[0]>0&&ac[0]<4?1:+(ac[0]+ac[1])),!Jb&&MC&&(!(ac=MC.match(/Edge\/(\d+)/))||ac[1]>=74)&&(ac=MC.match(/Chrome\/(\d+)/))&&(Jb=+ac[1]);var NC=Jb,BC=!!Object.getOwnPropertySymbols&&!Ii(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&NC&&NC<41}),FC=BC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uee=dr.Object,jC=FC?function(e){return typeof e=="symbol"}:function(e){var t=xg("Symbol");return $a(t)&&H3(t.prototype,Uee(e))},Hee=dr.String,V3=function(e){try{return Hee(e)}catch(t){return"Object"}},Wee=dr.TypeError,Y3=function(e){if($a(e))return e;throw Wee(V3(e)+" is not a function")},$b=function(e,t){var n=e[t];return n==null?void 0:Y3(n)},zee=dr.TypeError,Gee=Object.defineProperty,UC=function(e,t){try{Gee(dr,e,{value:t,configurable:!0,writable:!0})}catch(n){dr[e]=t}return t},sc=dr["__core-js_shared__"]||UC("__core-js_shared__",{}),HC=Xb(function(e){(e.exports=function(t,n){return sc[t]||(sc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Kee=dr.Object,wg=function(e){return Kee(Ts(e))},Vee=$n({}.hasOwnProperty),Cs=Object.hasOwn||function(e,t){return Vee(wg(e),t)},Yee=0,Xee=Math.random(),Jee=$n(1 .toString),X3=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Jee(++Yee+Xee,36)},Tg=HC("wks"),Wd=dr.Symbol,J3=Wd&&Wd.for,Qee=FC?Wd:Wd&&Wd.withoutSetter||X3,Qo=function(e){if(!Cs(Tg,e)||!BC&&typeof Tg[e]!="string"){var t="Symbol."+e;BC&&Cs(Wd,e)?Tg[e]=Wd[e]:Tg[e]=FC&&J3?J3(t):Qee(t)}return Tg[e]},Zee=dr.TypeError,$ee=Qo("toPrimitive"),WC=function(e){var t=function(n,r){if(!Ss(n)||jC(n))return n;var i,a=$b(n,$ee);if(a){if(r===void 0&&(r="default"),i=Vi(a,n,r),!Ss(i)||jC(i))return i;throw Zee("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&$a(u=o.toString)&&!Ss(f=Vi(u,o)))return f;if($a(u=o.valueOf)&&!Ss(f=Vi(u,o)))return f;if(s!=="string"&&$a(u=o.toString)&&!Ss(f=Vi(u,o)))return f;throw zee("Can't convert object to primitive value")}(n,r)}(e,"string");return jC(t)?t:t+""},zC=dr.document,qee=Ss(zC)&&Ss(zC.createElement),GC=function(e){return qee?zC.createElement(e):{}},Q3=!Qs&&!Ii(function(){return Object.defineProperty(GC("div"),"a",{get:function(){return 7}}).a!=7}),Z3=Object.getOwnPropertyDescriptor,KC={f:Qs?Z3:function(e,t){if(e=jf(e),t=WC(t),Q3)try{return Z3(e,t)}catch(n){}if(Cs(e,t))return IC(!Vi(j3.f,e,t),e[t])}},ete=dr.String,tte=dr.TypeError,Zo=function(e){if(Ss(e))return e;throw tte(ete(e)+" is not an object")},nte=dr.TypeError,$3=Object.defineProperty,Uf={f:Qs?$3:function(e,t,n){if(Zo(e),t=WC(t),Zo(n),Q3)try{return $3(e,t,n)}catch(r){}if("get"in n||"set"in n)throw nte("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Hf=Qs?function(e,t,n){return Uf.f(e,t,IC(1,n))}:function(e,t,n){return e[t]=n,e},rte=$n(Function.toString);$a(sc.inspectSource)||(sc.inspectSource=function(e){return rte(e)});var qb,Sg,e1,VC=sc.inspectSource,q3=dr.WeakMap,ite=$a(q3)&&/native code/.test(VC(q3)),e8=HC("keys"),t8=function(e){return e8[e]||(e8[e]=X3(e))},YC={},XC=dr.TypeError,ate=dr.WeakMap;if(ite||sc.state){var zd=sc.state||(sc.state=new ate),ote=$n(zd.get),n8=$n(zd.has),ste=$n(zd.set);qb=function(e,t){if(n8(zd,e))throw new XC("Object already initialized");return t.facade=e,ste(zd,e,t),t},Sg=function(e){return ote(zd,e)||{}},e1=function(e){return n8(zd,e)}}else{var Wf=t8("state");YC[Wf]=!0,qb=function(e,t){if(Cs(e,Wf))throw new XC("Object already initialized");return t.facade=e,Hf(e,Wf,t),t},Sg=function(e){return Cs(e,Wf)?e[Wf]:{}},e1=function(e){return Cs(e,Wf)}}var JC={set:qb,get:Sg,has:e1,enforce:function(e){return e1(e)?Sg(e):qb(e,{})},getterFor:function(e){return function(t){var n;if(!Ss(t)||(n=Sg(t)).type!==e)throw XC("Incompatible receiver, "+e+" required");return n}}},r8=Function.prototype,lte=Qs&&Object.getOwnPropertyDescriptor,QC=Cs(r8,"name"),t1={EXISTS:QC,PROPER:QC&&function(){}.name==="something",CONFIGURABLE:QC&&(!Qs||Qs&&lte(r8,"name").configurable)},Cg=Xb(function(e){var t=t1.CONFIGURABLE,n=JC.get,r=JC.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;$a(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cs(s,"name")||t&&s.name!==U)&&Hf(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==dr?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:Hf(a,o,s)):k?a[o]=s:UC(o,s)})(Function.prototype,"toString",function(){return $a(this)&&n(this).source||VC(this)})}),ute=Math.ceil,cte=Math.floor,zf=function(e){var t=+e;return t!=t||t===0?0:(t>0?cte:ute)(t)},dte=Math.max,hte=Math.min,Ag=function(e,t){var n=zf(e);return n<0?dte(n+t,0):hte(n,t)},fte=Math.min,Og=function(e){return e>0?fte(zf(e),9007199254740991):0},n1=function(e){return Og(e.length)},i8=function(e){return function(t,n,r){var i,a=jf(t),o=n1(a),s=Ag(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},a8={includes:i8(!0),indexOf:i8(!1)},pte=a8.indexOf,o8=$n([].push),s8=function(e,t){var n,r=jf(e),i=0,a=[];for(n in r)!Cs(YC,n)&&Cs(r,n)&&o8(a,n);for(;t.length>i;)Cs(r,n=t[i++])&&(~pte(a,n)||o8(a,n));return a},r1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mte=r1.concat("length","prototype"),gte={f:Object.getOwnPropertyNames||function(e){return s8(e,mte)}},l8={f:Object.getOwnPropertySymbols},vte=$n([].concat),yte=xg("Reflect","ownKeys")||function(e){var t=gte.f(Zo(e)),n=l8.f;return n?vte(t,n(e)):t},bte=function(e,t){for(var n=yte(t),r=Uf.f,i=KC.f,a=0;a<n.length;a++){var o=n[a];Cs(e,o)||r(e,o,i(t,o))}},Ete=/#|\.prototype\./,Dg=function(e,t){var n=xte[_te(e)];return n==Tte||n!=wte&&($a(t)?Ii(t):!!t)},_te=Dg.normalize=function(e){return String(e).replace(Ete,".").toLowerCase()},xte=Dg.data={},wte=Dg.NATIVE="N",Tte=Dg.POLYFILL="P",Ste=Dg,Cte=KC.f,Oa=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?dr:f?dr[s]||UC(s,{}):(dr[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Cte(n,r))&&o.value:n[r],!Ste(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;bte(a,i)}(e.sham||i&&i.sham)&&Hf(a,"sham",!0),Cg(n,r,a,e)}},u8=$n($n.bind),i1=Array.isArray||function(e){return oc(e)=="Array"},c8={};c8[Qo("toStringTag")]="z";var ZC=String(c8)==="[object z]",Ate=Qo("toStringTag"),Ote=dr.Object,Dte=oc(function(){return arguments}())=="Arguments",$C=ZC?oc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=Ote(e),Ate))=="string"?n:Dte?oc(t):(r=oc(t))=="Object"&&$a(t.callee)?"Arguments":r},d8=function(){},Rte=[],h8=xg("Reflect","construct"),qC=/^\s*(?:class|function)\b/,Ite=$n(qC.exec),Lte=!qC.exec(d8),Rg=function(e){if(!$a(e))return!1;try{return h8(d8,Rte,e),!0}catch(t){return!1}},e2=!h8||Ii(function(){var e;return Rg(Rg.call)||!Rg(Object)||!Rg(function(){e=!0})||e})?function(e){if(!$a(e))return!1;switch($C(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lte||!!Ite(qC,VC(e))}:Rg,Pte=Qo("species"),f8=dr.Array,kte=function(e,t){return new(function(n){var r;return i1(n)&&(r=n.constructor,(e2(r)&&(r===f8||i1(r.prototype))||Ss(r)&&(r=r[Pte])===null)&&(r=void 0)),r===void 0?f8:r}(e))(t===0?0:t)},p8=$n([].push),lc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=wg(u),$=Zb(re),ee=function(_e,ke){return Y3(_e),ke===void 0?_e:u8?u8(_e,ke):function(){return _e.apply(ke,arguments)}}(f,m),te=n1($),Q=0,he=k||kte,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:p8(me,K)}else switch(e){case 4:return!1;case 7:p8(me,K)}return a?-1:r||i?i:me}},a1={forEach:lc(0),map:lc(1),filter:lc(2),some:lc(3),every:lc(4),find:lc(5),findIndex:lc(6),filterReject:lc(7)},Mte=Qo("species"),t2=function(e){return NC>=51||!Ii(function(){var t=[];return(t.constructor={})[Mte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Nte=a1.filter;Oa({target:"Array",proto:!0,forced:!t2("filter")},{filter:function(e){return Nte(this,e,arguments.length>1?arguments[1]:void 0)}});var Bte=ZC?{}.toString:function(){return"[object "+$C(this)+"]"};ZC||Cg(Object.prototype,"toString",Bte,{unsafe:!0});var o1,Fte=dr.String,Li=function(e){if($C(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Fte(e)},m8=function(){var e=Zo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},n2=dr.RegExp,r2=Ii(function(){var e=n2("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),jte=r2||Ii(function(){return!n2("a","y").sticky}),g8={BROKEN_CARET:r2||Ii(function(){var e=n2("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:jte,UNSUPPORTED_Y:r2},Gf=Object.keys||function(e){return s8(e,r1)},Ute=Qs?Object.defineProperties:function(e,t){Zo(e);for(var n,r=jf(t),i=Gf(t),a=i.length,o=0;a>o;)Uf.f(e,n=i[o++],r[n]);return e},Hte=xg("document","documentElement"),v8=t8("IE_PROTO"),i2=function(){},y8=function(e){return"<script>"+e+"</script>"},b8=function(e){e.write(y8("")),e.close();var t=e.parentWindow.Object;return e=null,t},s1=function(){try{o1=new ActiveXObject("htmlfile")}catch(r){}var e,t;s1=typeof document!="undefined"?document.domain&&o1?b8(o1):((t=GC("iframe")).style.display="none",Hte.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(y8("document.F=Object")),e.close(),e.F):b8(o1);for(var n=r1.length;n--;)delete s1.prototype[r1[n]];return s1()};YC[v8]=!0;var E8,a2,_8=Object.create||function(e,t){var n;return e!==null?(i2.prototype=Zo(e),n=new i2,i2.prototype=null,n[v8]=e):n=s1(),t===void 0?n:Ute(n,t)},Wte=dr.RegExp,zte=Ii(function(){var e=Wte(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Gte=dr.RegExp,Kte=Ii(function(){var e=Gte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Vte=JC.get,Yte=HC("native-string-replace",String.prototype.replace),l1=RegExp.prototype.exec,o2=l1,Xte=$n("".charAt),Jte=$n("".indexOf),Qte=$n("".replace),s2=$n("".slice),l2=(a2=/b*/g,Vi(l1,E8=/a/,"a"),Vi(l1,a2,"a"),E8.lastIndex!==0||a2.lastIndex!==0),x8=g8.BROKEN_CARET,u2=/()??/.exec("")[1]!==void 0;(l2||u2||x8||zte||Kte)&&(o2=function(e){var t,n,r,i,a,o,s,u=this,f=Vte(u),m=Li(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=Vi(o2,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=x8&&u.sticky,re=Vi(m8,u),$=u.source,ee=0,te=m;if(U&&(re=Qte(re,"y",""),Jte(re,"g")===-1&&(re+="g"),te=s2(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Xte(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),u2&&(n=new RegExp("^"+$+"$(?!\\s)",re)),l2&&(r=u.lastIndex),i=Vi(l1,U?n:u,te),U?i?(i.input=s2(i.input,ee),i[0]=s2(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:l2&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),u2&&i&&i.length>1&&Vi(Yte,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=_8(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var Ig=o2;Oa({target:"RegExp",proto:!0,forced:/./.exec!==Ig},{exec:Ig});var c2=Function.prototype,w8=c2.apply,Zte=c2.bind,T8=c2.call,S8=typeof Reflect=="object"&&Reflect.apply||(Zte?T8.bind(w8):function(){return T8.apply(w8,arguments)}),$te=Qo("species"),d2=RegExp.prototype,h2=function(e,t,n,r){var i=Qo(e),a=!Ii(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!Ii(function(){var f=!1,m=/a/;return e==="split"&&((m={}).constructor={},m.constructor[$te]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=$n(/./[i]),u=t(i,""[e],function(f,m,k,K,U){var re=$n(f),$=m.exec;return $===Ig||$===d2.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});Cg(String.prototype,e,u[0]),Cg(d2,i,u[1])}r&&Hf(d2[i],"sham",!0)},qte=$n("".charAt),C8=$n("".charCodeAt),ene=$n("".slice),A8=function(e){return function(t,n){var r,i,a=Li(Ts(t)),o=zf(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=C8(a,o))<55296||r>56319||o+1===s||(i=C8(a,o+1))<56320||i>57343?e?qte(a,o):r:e?ene(a,o,o+2):i-56320+(r-55296<<10)+65536}},tne=(A8(!1),A8(!0)),f2=function(e,t,n){return t+(n?tne(e,t).length:1)},nne=Math.floor,p2=$n("".charAt),rne=$n("".replace),m2=$n("".slice),ine=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ane=/\$([$&'`]|\d{1,2})/g,one=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=ane;return i!==void 0&&(i=wg(i),u=ine),rne(a,u,function(f,m){var k;switch(p2(m,0)){case"$":return"$";case"&":return e;case"`":return m2(t,0,n);case"'":return m2(t,o);case"<":k=i[m2(m,1,-1)];break;default:var K=+m;if(K===0)return f;if(K>s){var U=nne(K/10);return U===0?f:U<=s?r[U-1]===void 0?p2(m,1):r[U-1]+p2(m,1):f}k=r[K-1]}return k===void 0?"":k})},sne=dr.TypeError,Lg=function(e,t){var n=e.exec;if($a(n)){var r=Vi(n,e,t);return r!==null&&Zo(r),r}if(oc(e)==="RegExp")return Vi(Ig,e,t);throw sne("RegExp#exec called on incompatible receiver")},g2=Qo("replace"),lne=Math.max,une=Math.min,cne=$n([].concat),v2=$n([].push),O8=$n("".indexOf),D8=$n("".slice),dne="a".replace(/./,"$0")==="$0",R8=!!/./[g2]&&/./[g2]("a","$0")==="";h2("replace",function(e,t,n){var r=R8?"$":"$0";return[function(i,a){var o=Ts(this),s=i==null?void 0:$b(i,g2);return s?Vi(s,i,o,a):Vi(t,Li(o),i,a)},function(i,a){var o=Zo(this),s=Li(i);if(typeof a=="string"&&O8(a,r)===-1&&O8(a,"$<")===-1){var u=n(t,o,s,a);if(u.done)return u.value}var f=$a(a);f||(a=Li(a));var m=o.global;if(m){var k=o.unicode;o.lastIndex=0}for(var K=[];;){var U=Lg(o,s);if(U===null)break;if(v2(K,U),!m)break;Li(U[0])===""&&(o.lastIndex=f2(s,Og(o.lastIndex),k))}for(var re,$="",ee=0,te=0;te<K.length;te++){for(var Q=Li((U=K[te])[0]),he=lne(une(zf(U.index),s.length),0),me=[],_e=1;_e<U.length;_e++)v2(me,(re=U[_e])===void 0?re:String(re));var ke=U.groups;if(f){var De=cne([Q],me,he,s);ke!==void 0&&v2(De,ke);var Ye=Li(S8(a,void 0,De))}else Ye=one(Q,s,he,me,ke,a);he>=ee&&($+=D8(s,ee,he)+Ye,ee=he+Q.length)}return $+D8(s,ee)}]},!!Ii(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!dne||R8);var y2=Qo("unscopables"),b2=Array.prototype;b2[y2]==null&&Uf.f(b2,y2,{configurable:!0,value:_8(null)});var I8=function(e){b2[y2][e]=!0},hne=a1.find,L8=!0;"find"in[]&&Array(1).find(function(){L8=!1}),Oa({target:"Array",proto:!0,forced:L8},{find:function(e){return hne(this,e,arguments.length>1?arguments[1]:void 0)}}),I8("find");var fne=Qo("match"),P8=function(e){var t;return Ss(e)&&((t=e[fne])!==void 0?!!t:oc(e)=="RegExp")},pne=dr.TypeError,mne=Qo("species"),k8=function(e,t,n){var r=WC(t);r in e?Uf.f(e,r,IC(0,n)):e[r]=n},gne=dr.Array,vne=Math.max,M8=function(e,t,n){for(var r=n1(e),i=Ag(t,r),a=Ag(n===void 0?r:n,r),o=gne(vne(a-i,0)),s=0;i<a;i++,s++)k8(o,s,e[i]);return o.length=s,o},Kf=g8.UNSUPPORTED_Y,yne=Math.min,N8=[].push,bne=$n(/./.exec),Vf=$n(N8),Pg=$n("".slice);h2("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,a){var o=Li(Ts(this)),s=a===void 0?4294967295:a>>>0;if(s===0)return[];if(i===void 0)return[o];if(!P8(i))return Vi(t,o,i,s);for(var u,f,m,k=[],K=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),U=0,re=new RegExp(i.source,K+"g");(u=Vi(Ig,re,o))&&!((f=re.lastIndex)>U&&(Vf(k,Pg(o,U,u.index)),u.length>1&&u.index<o.length&&S8(N8,k,M8(u,1)),m=u[0].length,U=f,k.length>=s));)re.lastIndex===u.index&&re.lastIndex++;return U===o.length?!m&&bne(re,"")||Vf(k,""):Vf(k,Pg(o,U)),k.length>s?M8(k,0,s):k}:"0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:Vi(t,this,i,a)}:t,[function(i,a){var o=Ts(this),s=i==null?void 0:$b(i,e);return s?Vi(s,i,o,a):Vi(r,Li(o),i,a)},function(i,a){var o=Zo(this),s=Li(i),u=n(r,o,s,a,r!==t);if(u.done)return u.value;var f=function(me,_e){var ke,De=Zo(me).constructor;return De===void 0||(ke=Zo(De)[mne])==null?_e:function(Ye){if(e2(Ye))return Ye;throw pne(V3(Ye)+" is not a constructor")}(ke)}(o,RegExp),m=o.unicode,k=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Kf?"g":"y"),K=new f(Kf?"^(?:"+o.source+")":o,k),U=a===void 0?4294967295:a>>>0;if(U===0)return[];if(s.length===0)return Lg(K,s)===null?[s]:[];for(var re=0,$=0,ee=[];$<s.length;){K.lastIndex=Kf?0:$;var te,Q=Lg(K,Kf?Pg(s,$):s);if(Q===null||(te=yne(Og(K.lastIndex+(Kf?$:0)),s.length))===re)$=f2(s,$,m);else{if(Vf(ee,Pg(s,re,$)),ee.length===U)return ee;for(var he=1;he<=Q.length-1;he++)if(Vf(ee,Q[he]),ee.length===U)return ee;$=re=te}}return Vf(ee,Pg(s,re)),ee}]},!!Ii(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Kf);var E2=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,B8=$n("".replace),u1="["+E2+"]",Ene=RegExp("^"+u1+u1+"*"),_ne=RegExp(u1+u1+"*$"),_2=function(e){return function(t){var n=Li(Ts(t));return 1&e&&(n=B8(n,Ene,"")),2&e&&(n=B8(n,_ne,"")),n}},xne={start:_2(1),end:_2(2),trim:_2(3)},wne=t1.PROPER,Tne=xne.trim;function x2(e){return Qe("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Yf(e){return e.length===0?"":e[0].outerHTML}function Xf(e){return e.length?e[0].tagName.toLowerCase():""}function Zs(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}Oa({target:"String",proto:!0,forced:Ii(function(){return!!E2.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||wne&&E2.trim.name!=="trim"})},{trim:function(){return Tne(this)}}),Oa({global:!0},{globalThis:dr}),By&&(Qe.fn.css=By),gs&&(Qe.fn.append=gs),qP&&(Qe.fn.prepend=qP),Zh&&(Qe.fn.addClass=Zh),$h&&(Qe.fn.removeClass=$h),qh&&(Qe.fn.hasClass=qh),_l&&(Qe.fn.on=_l),JP&&(Qe.fn.off=JP),zu&&(Qe.fn.focus=zu),ms&&(Qe.fn.attr=ms),Py&&(Qe.fn.removeAttr=Py),tf&&(Qe.fn.hide=tf),Ny&&(Qe.fn.show=Ny),Uy&&(Qe.fn.parents=Uy),ef&&(Qe.fn.dataset=ef),El&&(Qe.fn.val=El),jy&&(Qe.fn.text=jy),Wu&&(Qe.fn.html=Wu),af&&(Qe.fn.children=af),of&&(Qe.fn.remove=of),rf&&(Qe.fn.find=rf),ky&&(Qe.fn.width=ky),My&&(Qe.fn.height=My),ZP&&(Qe.fn.filter=ZP),sf&&(Qe.fn.empty=sf);var Sne={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e);return(t=t.filter(function(i){return!!wn.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},w2=function(e,t){return w2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},w2(e,t);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function Ti(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w2(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var uc=function(){return uc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},uc.apply(this,arguments)};function cc(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(f){try{u(r.next(f))}catch(m){a(m)}}function s(f){try{u(r.throw(f))}catch(m){a(m)}}function u(f){var m;f.done?i(f.value):(m=f.value,m instanceof n?m:new n(function(k){k(m)})).then(o,s)}u((r=r.apply(e,t||[])).next())})}function dc(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return function(m){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&m[0]?r.return:m[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,m[1])).done)return i;switch(r=0,i&&(m=[2&m[0],i.value]),m[0]){case 0:case 1:i=m;break;case 4:return o.label++,{value:m[1],done:!1};case 5:o.label++,r=m[1],m=[0];continue;case 7:m=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||m[0]!==6&&m[0]!==2)){o=0;continue}if(m[0]===3&&(!i||m[1]>i[0]&&m[1]<i[3])){o.label=m[1];break}if(m[0]===6&&o.label<i[1]){o.label=i[1],i=m;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(m);break}i[2]&&o.ops.pop(),o.trys.pop();continue}m=t.call(e,o)}catch(k){m=[6,k],r=0}finally{n=i=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([u,f])}}}function F8(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ur(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function j8(e){var t=Ur(Ee.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!Nn.isElement(n))return!1;if(n.type==="paragraph")return!1;if(fn.string(n)!=="")return!1;var r=n.children,i=r===void 0?[]:r;return!!wn.isText(i[0])&&(ct.setNodes(e,{type:"paragraph"}),!0)}var Cne={renderElems:[Lee],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[Sne],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){j8(r)||t(i)},r.deleteForward=function(i){j8(r)||n(i)},r}},Ane=/"/g,One=$n("".replace),kg=function(e,t,n,r){var i=Li(Ts(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+One(Li(r),Ane,"&quot;")+'"'),a+">"+i+"</"+t+">"},Mg=function(e){return Ii(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function T2(e,t){var n=t,r=e,i=r.bold,a=r.italic,o=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),o&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Gd(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Oa({target:"String",proto:!0,forced:Mg("bold")},{bold:function(){return kg(this,"b","","")}}),Oa({target:"String",proto:!0,forced:Mg("italics")},{italics:function(){return kg(this,"i","","")}}),Oa({target:"String",proto:!0,forced:Mg("sub")},{sub:function(){return kg(this,"sub","","")}}),Oa({target:"String",proto:!0,forced:Mg("sup")},{sup:function(){return kg(this,"sup","","")}});var U8={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},S2=GC("span").classList,H8=S2&&S2.constructor&&S2.constructor.prototype,Dne=H8===Object.prototype?void 0:H8,W8=function(e,t){var n=[][e];return!!n&&Ii(function(){n.call(null,t||function(){throw 1},1)})},Rne=a1.forEach,C2=W8("forEach")?[].forEach:function(e){return Rne(this,e,arguments.length>1?arguments[1]:void 0)},z8=function(e){if(e&&e.forEach!==C2)try{Hf(e,"forEach",C2)}catch(t){e.forEach=C2}};for(var A2 in U8)U8[A2]&&z8(dr[A2]&&dr[A2].prototype);function G8(e,t){return e.selection==null||!!Ur(Ee.nodes(e,{match:function(n){return Ge.getNodeType(n)==="pre"||!!Ee.isVoid(e,n)},universal:!0}),1)[0]}function Ine(e,t){Object.keys(t).forEach(function(n){n!=="text"&&Ee.removeMark(e,n)})}z8(Dne),Oa({target:"Object",stat:!0,forced:Ii(function(){Gf(1)})},{keys:function(e){return Gf(wg(e))}});var Kd=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=Ee.marks(t);return r?r[n]:!!Ur(Ee.nodes(t,{match:function(i){return i[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return G8(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,i=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),i&&i.forEach(function(a){return t.removeMark(a)}))},e}(),Lne='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',Pne='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',kne='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Mne='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Nne='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',K8='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',V8='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',Bne='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',Fne='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',jne='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Une='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',Hne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Wne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',zne='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Gne='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Kne='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Vne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Yne='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Xne='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Jne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=pn("textStyle.bold"),n.iconSvg=Lne,n.hotkey="mod+b",n}return Ti(t,e),t}(Kd),Qne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=pn("textStyle.code"),n.iconSvg=Nne,n.hotkey="mod+e",n}return Ti(t,e),t}(Kd),Zne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=pn("textStyle.italic"),n.iconSvg=kne,n.hotkey="mod+i",n}return Ti(t,e),t}(Kd),$ne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=pn("textStyle.through"),n.iconSvg=Mne,n.hotkey="mod+shift+x",n}return Ti(t,e),t}(Kd),qne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=pn("textStyle.underline"),n.iconSvg=Pne,n.hotkey="mod+u",n}return Ti(t,e),t}(Kd),ere=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=pn("textStyle.sub"),n.iconSvg=Xne,n.hotkey="",n}return Ti(t,e),t}(Kd),tre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=pn("textStyle.sup"),n.iconSvg=Yne,n.hotkey="",n}return Ti(t,e),t}(Kd),nre=function(){function e(){this.title=pn("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return G8(t)},e.prototype.exec=function(t,n){var r,i,a=Ee.nodes(t,{match:function(u){return wn.isText(u)},universal:!0});try{for(var o=F8(a),s=o.next();!s.done;s=o.next())Ine(t,s.value[0])}catch(u){r={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},e}(),rre={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,a=n.underline,o=n.code,s=n.through,u=n.sub,f=n.sup,m=t;return r&&(m=er("strong",null,m)),o&&(m=er("code",null,m)),i&&(m=er("em",null,m)),a&&(m=er("u",null,m)),s&&(m=er("s",null,m)),u&&(m=er("sub",null,m)),f&&(m=er("sup",null,m)),m},menus:[{key:"bold",factory:function(){return new Jne}},{key:"underline",factory:function(){return new qne}},{key:"italic",factory:function(){return new Zne}},{key:"through",factory:function(){return new $ne}},{key:"code",factory:function(){return new Qne}},{key:"sub",factory:function(){return new ere}},{key:"sup",factory:function(){return new tre}},{key:"clearStyle",factory:function(){return new nre}}],styleToHtml:function(e,t){if(!wn.isText(e))return t;if(x2(t))return T2(e,t);var n=Qe(t);if(Xf(n)==="br")return T2(e,"<br>");var r=n.html();return r=T2(e,r),n.html(r),Yf(n)},parseStyleHtml:function(e,t,n){var r=Qe(e);if(!wn.isText(t))return t;var i=t;return Gd(r,"b,strong")&&(i.bold=!0),Gd(r,"i,em")&&(i.italic=!0),Gd(r,"u")&&(i.underline=!0),Gd(r,"s,strike")&&(i.through=!0),Gd(r,"sub")&&(i.sub=!0),Gd(r,"sup")&&(i.sup=!0),Gd(r,"code")&&(i.code=!0),i}};function Ng(e){return function(t,n,r){return er("h"+e,null,n)}}var ire={type:"header1",renderElem:Ng(1)},are={type:"header2",renderElem:Ng(2)},ore={type:"header3",renderElem:Ng(3)},sre={type:"header4",renderElem:Ng(4)},lre={type:"header5",renderElem:Ng(5)},ure=t1.PROPER,O2=RegExp.prototype,Y8=O2.toString,cre=$n(m8),dre=Ii(function(){return Y8.call({source:"a",flags:"b"})!="/a/b"}),hre=ure&&Y8.name!="toString";(dre||hre)&&Cg(RegExp.prototype,"toString",function(){var e=Zo(this),t=Li(e.source),n=e.flags;return"/"+t+"/"+Li(n===void 0&&H3(O2,e)&&!("flags"in O2)?cre(e):n)},{unsafe:!0});var D2,fre=dr.TypeError,X8=function(e){if(P8(e))throw fre("The method doesn't accept regular expressions");return e},pre=Qo("match"),J8=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[pre]=!1,"/./"[e](t)}catch(r){}}return!1},mre=KC.f,Q8=$n("".startsWith),gre=$n("".slice),vre=Math.min,Z8=J8("startsWith");function $8(e){var t=Ur(Ee.nodes(e,{match:function(i){return Ge.getNodeType(i).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Ur(n,1)[0];return Ge.getNodeType(r)}function q8(e){return e.selection==null||!Ur(Ee.nodes(e,{match:function(t){var n=Ge.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function e6(e,t){t&&ct.setNodes(e,{type:t})}Oa({target:"String",proto:!0,forced:!(!Z8&&(D2=mre(String.prototype,"startsWith"),D2&&!D2.writable)||Z8)},{startsWith:function(e){var t=Li(Ts(this));X8(e);var n=Og(vre(arguments.length>1?arguments[1]:void 0,t.length)),r=Li(e);return Q8?Q8(t,r,n):gre(t,n,n+r.length)===r}});var yre=function(){function e(){this.title=pn("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:pn("header.text")}],r=this.getValue(t).toString();return n.forEach(function(i){i.value===r?i.selected=!0:delete i.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return $8(t)},e.prototype.isDisabled=function(t){return q8(t)},e.prototype.exec=function(t,n){e6(t,n.toString())},e}(),Bg=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return $8(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return q8(t)},e.prototype.exec=function(t,n){var r=this.type;e6(t,n===r?"paragraph":r)},e}(),bre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ti(t,e),t}(Bg),Ere=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ti(t,e),t}(Bg),_re=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ti(t,e),t}(Bg),xre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ti(t,e),t}(Bg),wre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ti(t,e),t}(Bg),Tre={key:"headerSelect",factory:function(){return new yre}},Sre={key:"header1",factory:function(){return new bre}},Cre={key:"header2",factory:function(){return new Ere}},Are={key:"header3",factory:function(){return new _re}},Ore={key:"header4",factory:function(){return new xre}},Dre={key:"header5",factory:function(){return new wre}};function Fg(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function jg(e){return function(t,n,r){var i=Qe(t);return(n=n.filter(function(a){return!!wn.isText(a)||!!r.isInline(a)})).length===0&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Rre={renderElems:[ire,are,ore,sre,lre],elemsToHtml:[{type:"header1",elemToHtml:Fg(1)},{type:"header2",elemToHtml:Fg(2)},{type:"header3",elemToHtml:Fg(3)},{type:"header4",elemToHtml:Fg(4)},{type:"header5",elemToHtml:Fg(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:jg(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:jg(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:jg(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:jg(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:jg(5)}],menus:[Tre,Sre,Cre,Are,Ore,Dre],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Ur(Ee.nodes(n,{match:function(i){return Ge.getNodeType(i).startsWith("header")},universal:!0}),1)[0];r&&Ge.isSelectionAtLineEnd(e,r[1])?ct.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Jf=Object.assign,t6=Object.defineProperty,Ire=$n([].concat),n6=!Jf||Ii(function(){if(Qs&&Jf({b:1},Jf(t6({},"a",{enumerable:!0,get:function(){t6(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Jf({},e)[n]!=7||Gf(Jf({},t)).join("")!=r})?function(e,t){for(var n=wg(e),r=arguments.length,i=1,a=l8.f,o=j3.f;r>i;)for(var s,u=Zb(arguments[i++]),f=a?Ire(Gf(u),a(u)):Gf(u),m=f.length,k=0;m>k;)s=f[k++],Qs&&!Vi(o,u,s)||(n[s]=u[s]);return n}:Jf;function Vd(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Oa({target:"Object",stat:!0,forced:Object.assign!==n6},{assign:n6});var Lre={selector:"font",preParseHtml:function(e){var t=Qe(e);if(Xf(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},r6=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=Ee.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Ur(Ee.nodes(t,{match:function(n){return Ge.getNodeType(n)==="pre"||!!Ee.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=Qe('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(f){var m=f.target;if(m!=null&&(f.preventDefault(),t.selection!=null)){var k=Qe(m).attr("data-value");k==="0"?Ee.removeMark(t,n):Ee.addMark(t,n,k)}}),this.$content=r}var i=this.$content;if(i==null)return document.createElement("ul");i.empty();var a=this.getValue(t),o=t.getMenuConfig(n).colors;(o===void 0?[]:o).forEach(function(f){var m=Qe('<div class="color-block" data-value="'+f+'"></div>');m.css("background-color",f);var k=Qe('<li data-value="'+f+'"></li>');a===f&&k.addClass("active"),k.append(m),i.append(k)});var s="";n==="color"&&(s=pn("color.default")),n==="bgColor"&&(s=pn("color.clear"));var u=Qe(`
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+s+`
</li>
`);return i.prepend(u),i[0]},e}(),Pre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("color.color"),n.iconSvg=Bne,n.mark="color",n}return Ti(t,e),t}(r6),kre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("color.bgColor"),n.iconSvg=Fne,n.mark="bgColor",n}return Ti(t,e),t}(r6),i6=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Mre={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&Vd(a,{color:r}),i&&Vd(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!wn.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((x2(t)||Xf(n=Qe(t))!=="span")&&(n=Qe("<span>"+t+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),Yf(n)):t},preParseHtml:[Lre],parseStyleHtml:function(e,t,n){var r=Qe(e);if(!wn.isText(t))return t;var i=t,a=Zs(r,"color");a&&(i.color=a);var o=Zs(r,"background-color");return o||(o=Zs(r,"background")),o&&(i.bgColor=o),i},menus:[{key:"color",factory:function(){return new Pre},config:{colors:i6}},{key:"bgColor",factory:function(){return new kre},config:{colors:i6}}]},Nre=/^(?:\w+:)?\/\/(\S+)$/,Bre=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Fre=/^[^\s\.]+\.\S{2,}$/,jre=a8.includes;function c1(e){return e===void 0&&(e="r"),e+"-"+o5()}function R2(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a6(e,t,n,r){return cc(this,void 0,void 0,function(){var i,a;return dc(this,function(o){switch(o.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(a=o.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];o.label=2;case 2:return[2,!0]}})})}function o6(e,t,n){return cc(this,void 0,void 0,function(){var r;return dc(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function I2(e){return e.selection==null||!!Ge.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function L2(e,t){return{type:"link",url:R2(e),children:t?[{text:t}]:[]}}function s6(e,t,n){return cc(this,void 0,void 0,function(){var r,i,a;return dc(this,function(o){switch(o.label){case 0:return n?(t||(t=n),e.restoreSelection(),I2(e)?[2]:[4,a6("insertLink",e,t,n)]):[2];case 1:return o.sent()?[4,o6("insertLink",e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(_t.isCollapsed(i)?(e.insertText(" "),a=L2(r,t),ct.insertNodes(e,a),e.insertFragment([{text:" "}])):Ee.string(e,i)!==t?(e.deleteFragment(),a=L2(r,t),ct.insertNodes(e,a)):(a=L2(r),ct.wrapNodes(e,a,{split:!0}),ct.collapse(e,{edge:"end"}))),[2]}})})}Oa({target:"Array",proto:!0},{includes:function(e){return jre(this,e,arguments.length>1?arguments[1]:void 0)}}),I8("includes");var Ure={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return er("a",{href:i,target:a===void 0?"_blank":a},t)}},Hre={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e);return(t=t.filter(function(i){return!!wn.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function P2(){return c1("w-e-insert-link")}var Wre=function(){function e(){this.title=pn("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=P2(),this.urlInputId=P2(),this.buttonId=P2()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return I2(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,i=r.textInputId,a=r.urlInputId,o=r.buttonId,s=Ur(Xo(pn("link.text"),i),2),u=s[0],f=Qe(s[1]),m=Ur(Xo(pn("link.url"),a),2),k=m[0],K=Qe(m[1]),U=Ur(Mf(o,pn("common.ok")),1)[0];if(this.$content==null){var re=Qe("<div></div>");re.on("click","#"+o,function(te){te.preventDefault();var Q=re.find("#"+i).val(),he=re.find("#"+a).val();s6(t,Q,he),t.hidePanelOrModal()}),this.$content=re}var $=this.$content;if($.empty(),$.append(u),$.append(k),$.append(U),n==null||_t.isCollapsed(n))f.val("");else{var ee=Ee.string(t,n);f.val(ee)}return K.val(""),setTimeout(function(){f.focus()}),$[0]},e}();function l6(){return c1("w-e-update-link")}var zre=function(){function e(){this.title=pn("link.edit"),this.iconSvg=K8,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=l6(),this.buttonId=l6()}return e.prototype.getSelectedLinkElem=function(t){var n=Ge.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return Ge.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,i=Ur(Xo(pn("link.url"),n),2),a=i[0],o=Qe(i[1]),s=Ur(Mf(r,pn("common.ok")),1)[0];if(this.$content==null){var u=Qe("<div></div>");u.on("click","button",function(k){k.preventDefault(),t.restoreSelection();var K=Ge.getSelectedNodeByType(t,"link"),U=K?fn.string(K):"",re=u.find("#"+n).val();!function($,ee,te){cc(this,void 0,void 0,function(){var Q,he;return dc(this,function(me){switch(me.label){case 0:return te?[4,a6("editLink",$,ee,te)]:[2];case 1:return me.sent()?[4,o6("editLink",$,te)]:[2];case 2:return Q=me.sent(),he={url:R2(Q)},ct.setNodes($,he,{match:function(_e){return Ge.checkNodeType(_e,"link")}}),[2]}})})}(t,U,re),t.hidePanelOrModal()}),this.$content=u}var f=this.$content;f.empty(),f.append(a),f.append(s);var m=this.getValue(t);return o.val(m),setTimeout(function(){o.focus()}),f[0]},e}(),Gre=function(){function e(){this.title=pn("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||Ge.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||ct.unwrapNodes(t,{match:function(r){return Ge.checkNodeType(r,"link")}})},e}(),Kre=function(){function e(){this.title=pn("link.view"),this.iconSvg=V8,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=Ge.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),u6={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Vre={renderElems:[Ure],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return'<a href="'+r+'" target="'+(i===void 0?"_blank":i)+'">'+t+"</a>"}}],parseElemsHtml:[Hre],menus:[{key:"insertLink",factory:function(){return new Wre},config:u6},{key:"editLink",factory:function(){return new zre},config:u6},{key:"unLink",factory:function(){return new Gre}},{key:"viewLink",factory:function(){return new Kre}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(a){return a.type==="link"||t(a)},i.insertData=function(a){var o=a.getData("text/plain");if(function(f){if(typeof f!="string")return!1;var m=f.match(Nre);if(!m)return!1;var k=m[1];return!(!k||!Bre.test(k)&&!Fre.test(k))}(o)){if(!I2(i)){var s=i.selection;if(s!=null){var u=Ee.string(i,s);s6(i,u,o)}}}else n(a)},i.normalizeNode=function(a){var o=Ur(a,2),s=o[0],u=o[1];return Ge.getNodeType(s)!=="link"?r([s,u]):fn.string(s)===""?ct.removeNodes(i,{at:u}):r([s,u])},i}},Yre=$n(1 .valueOf),Xre=dr.RangeError,Jre=dr.RangeError,c6=dr.String,d6=Math.floor,k2=$n(function(e){var t=Li(Ts(this)),n="",r=zf(e);if(r<0||r==1/0)throw Xre("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),h6=$n("".slice),Ug=$n(1 .toFixed),Qf=function(e,t,n){return t===0?n:t%2==1?Qf(e,t-1,n*e):Qf(e*e,t/2,n)},Zf=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=d6(i/1e7)},M2=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d6(r/t),r=r%t*1e7},f6=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=c6(e[t]);n=n===""?r:n+k2("0",7-r.length)+r}return n};function p6(e,t){return"w-e-image-container-"+Ge.findKey(e,t).id}Oa({target:"Number",proto:!0,forced:Ii(function(){return Ug(8e-5,3)!=="0.000"||Ug(.9,0)!=="1"||Ug(1.255,2)!=="1.25"||Ug(1000000000000000100,0)!=="1000000000000000128"})||!Ii(function(){Ug({})})},{toFixed:function(e){var t,n,r,i,a=Yre(this),o=zf(e),s=[0,0,0,0,0,0],u="",f="0";if(o<0||o>20)throw Jre("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return c6(a);if(a<0&&(u="-",a=-a),a>1e-21)if(n=(t=function(m){for(var k=0,K=m;K>=4096;)k+=12,K/=4096;for(;K>=2;)k+=1,K/=2;return k}(a*Qf(2,69,1))-69)<0?a*Qf(2,-t,1):a/Qf(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Zf(s,0,n),r=o;r>=7;)Zf(s,1e7,0),r-=7;for(Zf(s,Qf(10,r,1),0),r=t-1;r>=23;)M2(s,1<<23),r-=23;M2(s,1<<r),Zf(s,1,1),M2(s,2),f=f6(s)}else Zf(s,0,n),Zf(s,1<<-t,0),f=f6(s)+k2("0",o);return o>0?u+((i=f.length)<=o?"0."+k2("0",o-i)+f:h6(f,0,i-o)+"."+h6(f,i-o)):u+f}});var Qre={type:"image",renderElem:function(e,t,n){var r=e,i=r.src,a=r.alt,o=a===void 0?"":a,s=r.href,u=s===void 0?"":s,f=r.style,m=f===void 0?{}:f,k=m.width,K=k===void 0?"":k,U=m.height,re=U===void 0?"":U,$=Ge.isNodeSelected(n,e),ee={};K&&(ee.width="100%"),re&&(ee.height="100%");var te=er("img",{style:ee,src:i,alt:o,"data-href":u}),Q=n.isDisabled();return $&&!Q?function(he,me,_e,ke){var De=Qe("body"),Ye=p6(he,me),rt=ke.width,wt=ke.height,Lt=0,Tt=0,Yt=0,Ft=!1,jt=null;function Wt(Rn){jt=function(){var ot=Qe("#"+Ye);if(ot.length===0)throw new Error("Cannot find image container elem");return ot}(),Lt=Rn;var Ze=jt.find("img");if(Ze.length===0)throw new Error("Cannot find image elem");Tt=Ze.width(),Yt=Ze.height(),De.on("mousemove",En),De.on("mouseup",kn);var He=Ge.getHoverbar(he);He&&He.hideAndClean()}var En=Ed(function(Rn){Rn.preventDefault();var Ze=Rn.clientX,He=Tt+(Ft?Lt-Ze:Ze-Lt),ot=Yt*(He/Tt);jt!=null&&(He<=15||ot<=15||(jt.css("width",He+"px"),jt.css("height",ot+"px")))},100);function kn(Rn){if(De.off("mousemove",En),jt!=null){var Ze=jt.width().toFixed(2),He=jt.height().toFixed(2),ot={style:uc(uc({},me.style),{width:Ze+"px",height:He+"px"})};ct.setNodes(he,ot,{at:Ge.findPath(he,me)}),De.off("mouseup",kn)}}var Ln={};return rt&&(Ln.width=rt),wt&&(Ln.height=wt),er("div",{id:Ye,style:Ln,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Rn){var Ze=Qe(Rn.target);Ze.hasClass("w-e-image-dragger")&&(Rn.preventDefault(),(Ze.hasClass("left-top")||Ze.hasClass("left-bottom"))&&(Ft=!0),Wt(Rn.clientX))}}},_e,er("div",{className:"w-e-image-dragger left-top"}),er("div",{className:"w-e-image-dragger right-top"}),er("div",{className:"w-e-image-dragger left-bottom"}),er("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,te,{width:K,height:re}):function(he,me,_e,ke){var De=ke.width,Ye=ke.height,rt={};return De&&(rt.width=De),Ye&&(rt.height=Ye),er("div",{id:p6(he,me),style:rt,className:"w-e-image-container"},_e)}(n,e,te,{width:K,height:re})}},Zre={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e),i=r.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:i,style:{width:Zs(r,"width"),height:Zs(r,"height")},children:[{text:""}]}}};function m6(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),cc(this,void 0,void 0,function(){var a,o;return dc(this,function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,i)]:[3,2];case 1:if(typeof(o=s.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function g6(e,t,n){return cc(this,void 0,void 0,function(){var r;return dc(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function Yd(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),cc(this,void 0,void 0,function(){var i,a,o;return dc(this,function(s){switch(s.label){case 0:return[4,m6("insertImage",e,t,n,r)];case 1:return s.sent()?[4,g6("insertImage",e,t)]:[2];case 2:return i=s.sent(),a={type:"image",src:R2(i),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),Ge.getSelectedNodeByType(e,"image")&&e.move(1),d1(e)||(ct.insertNodes(e,a),(o=e.getMenuConfig("insertImage").onInsertedImage)&&o(a)),[2]}})})}function d1(e){var t=e.selection;return t==null||!_t.isCollapsed(t)||!!Ur(Ee.nodes(e,{match:function(n){var r=Ge.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!Ee.isVoid(e,n)},universal:!0}),1)[0]}function h1(){return c1("w-e-insert-image")}var $re=function(){function e(){this.title=pn("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=h1(),this.altInputId=h1(),this.hrefInputId=h1(),this.buttonId=h1()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return d1(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,a=r.altInputId,o=r.hrefInputId,s=r.buttonId,u=Ur(Xo(pn("image.src"),i),2),f=u[0],m=Qe(u[1]),k=Ur(Xo(pn("image.desc"),a),2),K=k[0],U=Qe(k[1]),re=Ur(Xo(pn("image.link"),o),2),$=re[0],ee=Qe(re[1]),te=Ur(Mf(s,pn("common.ok")),1)[0];if(this.$content==null){var Q=Qe("<div></div>");Q.on("click","#"+s,function(me){me.preventDefault();var _e=Q.find("#"+i).val().trim(),ke=Q.find("#"+a).val().trim(),De=Q.find("#"+o).val().trim();n.insertImage(t,_e,ke,De),t.hidePanelOrModal()}),this.$content=Q}var he=this.$content;return he.empty(),he.append(f),he.append(K),he.append($),he.append(te),m.val(""),U.val(""),ee.val(""),setTimeout(function(){m.focus()}),he[0]},e.prototype.insertImage=function(t,n,r,i){r===void 0&&(r=""),i===void 0&&(i=""),n&&(t.restoreSelection(),this.isDisabled(t)||Yd(t,n,r,i))},e}(),qre=function(){function e(){this.title=pn("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||Ge.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||ct.removeNodes(t,{match:function(r){return Ge.checkNodeType(r,"image")}})},e}();function f1(){return c1("w-e-edit-image")}var eie=function(){function e(){this.title=pn("image.edit"),this.iconSvg=K8,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=f1(),this.altInputId=f1(),this.hrefInputId=f1(),this.buttonId=f1()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return Ge.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,a=r.altInputId,o=r.hrefInputId,s=r.buttonId,u=this.getImageNode(t);if(u==null)throw new Error("Not found selected image node");var f=Ur(Xo(pn("image.src"),i),2),m=f[0],k=Qe(f[1]),K=Ur(Xo(pn("image.desc"),a),2),U=K[0],re=Qe(K[1]),$=Ur(Xo(pn("image.link"),o),2),ee=$[0],te=Qe($[1]),Q=Ur(Mf(s,pn("common.ok")),1)[0];if(this.$content==null){var he=Qe("<div></div>");he.on("click","#"+s,function(Lt){Lt.preventDefault();var Tt=he.find("#"+i).val(),Yt=he.find("#"+a).val(),Ft=he.find("#"+o).val();n.updateImage(t,Tt,Yt,Ft),t.hidePanelOrModal()}),this.$content=he}var me=this.$content;me.empty(),me.append(m),me.append(U),me.append(ee),me.append(Q);var _e=u,ke=_e.src,De=_e.alt,Ye=De===void 0?"":De,rt=_e.href,wt=rt===void 0?"":rt;return k.val(ke),re.val(Ye),te.val(wt),setTimeout(function(){k.focus()}),me[0]},e.prototype.updateImage=function(t,n,r,i,a){r===void 0&&(r=""),i===void 0&&(i=""),a===void 0&&(a={}),n&&(t.restoreSelection(),this.isDisabled(t)||function(o,s,u,f,m){u===void 0&&(u=""),f===void 0&&(f=""),m===void 0&&(m={}),cc(this,void 0,void 0,function(){var k,K,U,re,$,ee;return dc(this,function(te){switch(te.label){case 0:return[4,m6("editImage",o,s,u,f)];case 1:return te.sent()?[4,g6("editImage",o,s)]:[2];case 2:return k=te.sent(),(K=Ge.getSelectedNodeByType(o,"image"))==null||(U=K.style,re={src:k,alt:u,href:f,style:uc(uc({},U===void 0?{}:U),m)},ct.setNodes(o,re,{match:function(Q){return Ge.checkNodeType(Q,"image")}}),$=Ge.getSelectedNodeByType(o,"image"),(ee=o.getMenuConfig("editImage").onUpdatedImage)&&ee($)),[2]}})})}(t,n,r,i,a))},e}(),tie=function(){function e(){this.title=pn("image.viewLink"),this.iconSvg=V8,this.tag="button"}return e.prototype.getValue=function(t){var n=Ge.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),N2=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return Ge.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var i=Ge.getHoverbar(t);i&&i.hideAndClean();var a=r.style,o={style:uc(uc({},a===void 0?{}:a),{width:this.value,height:""})};ct.setNodes(t,o,{match:function(s){return Ge.checkNodeType(s,"image")}})}}},e}(),nie=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ti(t,e),t}(N2),rie=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ti(t,e),t}(N2),iie=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ti(t,e),t}(N2),v6={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},aie={renderElems:[Qre],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,a=i===void 0?"":i,o=n.href,s=o===void 0?"":o,u=n.style,f=u===void 0?{}:u,m=f.width,k=m===void 0?"":m,K=f.height,U=K===void 0?"":K,re="";return k&&(re+="width: "+k+";"),U&&(re+="height: "+U+";"),'<img src="'+r+'" alt="'+a+'" data-href="'+s+'" style="'+re+'"/>'}}],parseElemsHtml:[Zre],menus:[{key:"insertImage",factory:function(){return new $re},config:v6},{key:"deleteImage",factory:function(){return new qre}},{key:"editImage",factory:function(){return new eie},config:v6},{key:"viewImageLink",factory:function(){return new tie}},{key:"imageWidth30",factory:function(){return new nie}},{key:"imageWidth50",factory:function(){return new rie}},{key:"imageWidth100",factory:function(){return new iie}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(i){return i.type==="image"||t(i)},r.isVoid=function(i){return i.type==="image"||n(i)},r}},oie={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=er("div",{style:{margin:"5px 0"}},er("span",{contentEditable:!1,style:{marginRight:"0.5em"}},er("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(a){var o=Ge.findPath(n,e),s={checked:a.target.checked};ct.setNodes(n,s,{at:o})}}})),er("span",null,t));return i}},sie=function(){function e(){this.title=pn("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!Ge.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge.getSelectedElems(t).some(function(n){if(Ee.isVoid(t,n)&&Ee.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);ct.setNodes(t,{type:r?"paragraph":"todo"})},e}(),lie={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Qe(e);(t=t.filter(function(a){return!!wn.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(i=!0),{type:"todo",checked:i,children:t}}},uie={renderElems:[oie],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Qe(e).find("li"),n=Qe('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[lie],menus:[{key:"todo",factory:function(){return new sie}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var i=e.selection;if(i&&_t.isCollapsed(i)){var a=Ge.getSelectedNodeByType(e,"todo");if(a&&fn.string(a).length===0)return void ct.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},cie={type:"blockquote",renderElem:function(e,t,n){return er("blockquote",null,t)}},die={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e);return(t=t.filter(function(i){return!!wn.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},hie=function(){function e(){this.title=pn("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!Ge.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Ur(Ee.nodes(t,{match:function(n){var r=Ge.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";ct.setNodes(t,{type:r},{mode:"highest"})}},e}(),fie={key:"blockquote",factory:function(){return new hie}},pie=$n([].slice),mie=t2("slice"),gie=Qo("species"),B2=dr.Array,vie=Math.max;Oa({target:"Array",proto:!0,forced:!mie},{slice:function(e,t){var n,r,i,a=jf(this),o=n1(a),s=Ag(e,o),u=Ag(t===void 0?o:t,o);if(i1(a)&&(n=a.constructor,(e2(n)&&(n===B2||i1(n.prototype))||Ss(n)&&(n=n[gie])===null)&&(n=void 0),n===B2||n===void 0))return pie(a,s,u);for(r=new(n===void 0?B2:n)(vie(u-s,0)),i=0;s<u;s++,i++)s in a&&k8(r,i,a[s]);return r.length=i,r}});var yie={renderElems:[cie],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[die],menus:[fie],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var a=Ur(Ee.nodes(e,{match:function(m){return Ge.checkNodeType(m,"blockquote")},universal:!0}),1)[0];if(!a)return t();var o=a[0],s=Ge.findPath(e,o),u=Ee.end(e,s);if(mr.equals(u,i.focus)){var f=fn.string(o);if(f&&f.slice(-1)===`
`)return e.deleteBackward("character"),void ct.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},bie=function(){function e(){this.title=pn("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ur(Ee.nodes(t,{match:function(n){return Ge.getNodeType(n)==="pre"||!!Ee.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=Qe('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var o=a.target;if(o!=null){a.preventDefault();var s=Qe(o).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var i=t.getMenuConfig("emotion").emotions;return(i===void 0?[]:i).forEach(function(a){var o=Qe("<li>"+a+"</li>");r.append(o)}),r[0]},e}(),Eie={menus:[{key:"emotion",factory:function(){return new bie},config:{emotions:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ")}}]},_ie={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},xie={selector:"font",preParseHtml:function(e){var t=Qe(e);if(Xf(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",_ie[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},wie=$n("".indexOf);Oa({target:"String",proto:!0,forced:!J8("includes")},{includes:function(e){return!!~wie(Li(Ts(this)),Li(X8(e)),arguments.length>1?arguments[1]:void 0)}});var hc,p1,m1=function(e){return e&&e.Math==Math&&e},br=m1(typeof globalThis=="object"&&globalThis)||m1(typeof window=="object"&&window)||m1(typeof self=="object"&&self)||m1(typeof Yb=="object"&&Yb)||function(){return this}()||Function("return this")(),F2=Function.prototype,y6=F2.apply,Tie=F2.bind,b6=F2.call,E6=typeof Reflect=="object"&&Reflect.apply||(Tie?b6.bind(y6):function(){return b6.apply(y6,arguments)}),_6=Function.prototype,j2=_6.bind,U2=_6.call,Sie=j2&&j2.bind(U2),Yi=j2?function(e){return e&&Sie(U2,e)}:function(e){return e&&function(){return U2.apply(e,arguments)}},qa=function(e){return typeof e=="function"},$o=function(e){try{return!!e()}catch(t){return!0}},Io=!$o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Hg=Function.prototype.call,$s=Hg.bind?Hg.bind(Hg):function(){return Hg.apply(Hg,arguments)},x6={}.propertyIsEnumerable,w6=Object.getOwnPropertyDescriptor,Cie=w6&&!x6.call({1:2},1)?function(e){var t=w6(this,e);return!!t&&t.enumerable}:x6,H2={f:Cie},Xd=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Aie=Yi({}.toString),Oie=Yi("".slice),Jd=function(e){return Oie(Aie(e),8,-1)},W2=br.Object,Die=Yi("".split),T6=$o(function(){return!W2("z").propertyIsEnumerable(0)})?function(e){return Jd(e)=="String"?Die(e,""):W2(e)}:W2,Rie=br.TypeError,z2=function(e){if(e==null)throw Rie("Can't call method on "+e);return e},Dl=function(e){return T6(z2(e))},As=function(e){return typeof e=="object"?e!==null:qa(e)},Os={},S6=function(e){return qa(e)?e:void 0},Wg=function(e,t){return arguments.length<2?S6(Os[e])||S6(br[e]):Os[e]&&Os[e][t]||br[e]&&br[e][t]},C6=Yi({}.isPrototypeOf),G2=Wg("navigator","userAgent")||"",A6=br.process,O6=br.Deno,D6=A6&&A6.versions||O6&&O6.version,R6=D6&&D6.v8;R6&&(p1=(hc=R6.split("."))[0]>0&&hc[0]<4?1:+(hc[0]+hc[1])),!p1&&G2&&(!(hc=G2.match(/Edge\/(\d+)/))||hc[1]>=74)&&(hc=G2.match(/Chrome\/(\d+)/))&&(p1=+hc[1]);var g1=p1,Rl=!!Object.getOwnPropertySymbols&&!$o(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&g1&&g1<41}),K2=Rl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Iie=br.Object,$f=K2?function(e){return typeof e=="symbol"}:function(e){var t=Wg("Symbol");return qa(t)&&C6(t.prototype,Iie(e))},Lie=br.String,Pie=br.TypeError,I6=function(e){if(qa(e))return e;throw Pie(function(t){try{return Lie(t)}catch(n){return"Object"}}(e)+" is not a function")},kie=br.TypeError,Mie=Object.defineProperty,fc=br["__core-js_shared__"]||function(e,t){try{Mie(br,e,{value:t,configurable:!0,writable:!0})}catch(n){br[e]=t}return t}("__core-js_shared__",{}),Qd=Xb(function(e){(e.exports=function(t,n){return fc[t]||(fc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Nie=br.Object,zg=function(e){return Nie(z2(e))},Bie=Yi({}.hasOwnProperty),Hr=Object.hasOwn||function(e,t){return Bie(zg(e),t)},Fie=0,jie=Math.random(),Uie=Yi(1 .toString),v1=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Uie(++Fie+jie,36)},Gg=Qd("wks"),Zd=br.Symbol,L6=Zd&&Zd.for,Hie=K2?Zd:Zd&&Zd.withoutSetter||v1,qo=function(e){if(!Hr(Gg,e)||!Rl&&typeof Gg[e]!="string"){var t="Symbol."+e;Rl&&Hr(Zd,e)?Gg[e]=Zd[e]:Gg[e]=K2&&L6?L6(t):Hie(t)}return Gg[e]},Wie=br.TypeError,zie=qo("toPrimitive"),qf=function(e){var t=function(n,r){if(!As(n)||$f(n))return n;var i,a,o=(i=n[zie])==null?void 0:I6(i);if(o){if(r===void 0&&(r="default"),a=$s(o,n,r),!As(a)||$f(a))return a;throw Wie("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(s,u){var f,m;if(u==="string"&&qa(f=s.toString)&&!As(m=$s(f,s)))return m;if(qa(f=s.valueOf)&&!As(m=$s(f,s)))return m;if(u!=="string"&&qa(f=s.toString)&&!As(m=$s(f,s)))return m;throw kie("Can't convert object to primitive value")}(n,r)}(e,"string");return $f(t)?t:t+""},V2=br.document,Gie=As(V2)&&As(V2.createElement),P6=function(e){return Gie?V2.createElement(e):{}},k6=!Io&&!$o(function(){return Object.defineProperty(P6("div"),"a",{get:function(){return 7}}).a!=7}),M6=Object.getOwnPropertyDescriptor,Y2={f:Io?M6:function(e,t){if(e=Dl(e),t=qf(t),k6)try{return M6(e,t)}catch(n){}if(Hr(e,t))return Xd(!$s(H2.f,e,t),e[t])}},Kie=/#|\.prototype\./,Kg=function(e,t){var n=Yie[Vie(e)];return n==Jie||n!=Xie&&(qa(t)?$o(t):!!t)},Vie=Kg.normalize=function(e){return String(e).replace(Kie,".").toLowerCase()},Yie=Kg.data={},Xie=Kg.NATIVE="N",Jie=Kg.POLYFILL="P",Qie=Kg,N6=Yi(Yi.bind),B6=function(e,t){return I6(e),t===void 0?e:N6?N6(e,t):function(){return e.apply(t,arguments)}},Zie=br.String,$ie=br.TypeError,$d=function(e){if(As(e))return e;throw $ie(Zie(e)+" is not an object")},qie=br.TypeError,F6=Object.defineProperty,qd={f:Io?F6:function(e,t,n){if($d(e),t=qf(t),$d(n),k6)try{return F6(e,t,n)}catch(r){}if("get"in n||"set"in n)throw qie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Il=Io?function(e,t,n){return qd.f(e,t,Xd(1,n))}:function(e,t,n){return e[t]=n,e},eae=Y2.f,tae=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return E6(e,this,arguments)};return t.prototype=e.prototype,t},pc=function(e,t){var n,r,i,a,o,s,u,f,m=e.target,k=e.global,K=e.stat,U=e.proto,re=k?br:K?br[m]:(br[m]||{}).prototype,$=k?Os:Os[m]||Il(Os,m,{})[m],ee=$.prototype;for(i in t)n=!Qie(k?i:m+(K?".":"#")+i,e.forced)&&re&&Hr(re,i),o=$[i],n&&(s=e.noTargetGet?(f=eae(re,i))&&f.value:re[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(u=e.bind&&n?B6(a,br):e.wrap&&n?tae(a):U&&qa(a)?Yi(a):a,(e.sham||a&&a.sham||o&&o.sham)&&Il(u,"sham",!0),Il($,i,u),U&&(Hr(Os,r=m+"Prototype")||Il(Os,r,{}),Il(Os[r],i,a),e.real&&ee&&!ee[i]&&Il(ee,i,a)))},y1=Array.isArray||function(e){return Jd(e)=="Array"},nae=Math.ceil,rae=Math.floor,X2=function(e){var t=+e;return t!=t||t===0?0:(t>0?rae:nae)(t)},iae=Math.min,b1=function(e){return(t=e.length)>0?iae(X2(t),9007199254740991):0;var t},J2=function(e,t,n){var r=qf(t);r in e?qd.f(e,r,Xd(0,n)):e[r]=n},j6={};j6[qo("toStringTag")]="z";var Q2=String(j6)==="[object z]",aae=qo("toStringTag"),oae=br.Object,sae=Jd(function(){return arguments}())=="Arguments",E1=Q2?Jd:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=oae(e),aae))=="string"?n:sae?Jd(t):(r=Jd(t))=="Object"&&qa(t.callee)?"Arguments":r},lae=Yi(Function.toString);qa(fc.inspectSource)||(fc.inspectSource=function(e){return lae(e)});var U6=fc.inspectSource,H6=function(){},uae=[],W6=Wg("Reflect","construct"),Z2=/^\s*(?:class|function)\b/,cae=Yi(Z2.exec),dae=!Z2.exec(H6),Vg=function(e){if(!qa(e))return!1;try{return W6(H6,uae,e),!0}catch(t){return!1}},hae=!W6||$o(function(){var e;return Vg(Vg.call)||!Vg(Object)||!Vg(function(){e=!0})||e})?function(e){if(!qa(e))return!1;switch(E1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dae||!!cae(Z2,U6(e))}:Vg,fae=qo("species"),z6=br.Array,G6=function(e,t){return new(function(n){var r;return y1(n)&&(r=n.constructor,(hae(r)&&(r===z6||y1(r.prototype))||As(r)&&(r=r[fae])===null)&&(r=void 0)),r===void 0?z6:r}(e))(t===0?0:t)},pae=qo("species"),K6=qo("isConcatSpreadable"),V6=br.TypeError,mae=g1>=51||!$o(function(){var e=[];return e[K6]=!1,e.concat()[0]!==e}),gae=g1>=51||!$o(function(){var e=[];return(e.constructor={})[pae]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),vae=function(e){if(!As(e))return!1;var t=e[K6];return t!==void 0?!!t:y1(e)};pc({target:"Array",proto:!0,forced:!mae||!gae},{concat:function(e){var t,n,r,i,a,o=zg(this),s=G6(o,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(vae(a=t===-1?o:arguments[t])){if(u+(i=b1(a))>9007199254740991)throw V6("Maximum allowed index exceeded");for(n=0;n<i;n++,u++)n in a&&J2(s,u,a[n])}else{if(u>=9007199254740991)throw V6("Maximum allowed index exceeded");J2(s,u++,a)}return s.length=u,s}});var _1,yae=br.String,x1=function(e){if(E1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yae(e)},bae=Math.max,Eae=Math.min,$2=function(e,t){var n=X2(e);return n<0?bae(n+t,0):Eae(n,t)},Y6=function(e){return function(t,n,r){var i,a=Dl(t),o=b1(a),s=$2(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},_ae={includes:Y6(!0),indexOf:Y6(!1)},Yg={},xae=_ae.indexOf,X6=Yi([].push),J6=function(e,t){var n,r=Dl(e),i=0,a=[];for(n in r)!Hr(Yg,n)&&Hr(r,n)&&X6(a,n);for(;t.length>i;)Hr(r,n=t[i++])&&(~xae(a,n)||X6(a,n));return a},w1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],q2=Object.keys||function(e){return J6(e,w1)},wae=Io?Object.defineProperties:function(e,t){$d(e);for(var n,r=Dl(t),i=q2(t),a=i.length,o=0;a>o;)qd.f(e,n=i[o++],r[n]);return e},Tae=Wg("document","documentElement"),Q6=Qd("keys"),T1=function(e){return Q6[e]||(Q6[e]=v1(e))},Z6=T1("IE_PROTO"),eA=function(){},$6=function(e){return"<script>"+e+"</script>"},q6=function(e){e.write($6("")),e.close();var t=e.parentWindow.Object;return e=null,t},S1=function(){try{_1=new ActiveXObject("htmlfile")}catch(r){}var e,t;S1=typeof document!="undefined"?document.domain&&_1?q6(_1):((t=P6("iframe")).style.display="none",Tae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($6("document.F=Object")),e.close(),e.F):q6(_1);for(var n=w1.length;n--;)delete S1.prototype[w1[n]];return S1()};Yg[Z6]=!0;var C1,Xg,A1,eh=Object.create||function(e,t){var n;return e!==null?(eA.prototype=$d(e),n=new eA,eA.prototype=null,n[Z6]=e):n=S1(),t===void 0?n:wae(n,t)},Sae=w1.concat("length","prototype"),e7={f:Object.getOwnPropertyNames||function(e){return J6(e,Sae)}},Cae=br.Array,Aae=Math.max,t7=e7.f,n7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r7={f:function(e){return n7&&Jd(e)=="Window"?function(t){try{return t7(t)}catch(n){return function(r,i,a){for(var o=b1(r),s=$2(void 0,o),u=$2(o,o),f=Cae(Aae(u-s,0)),m=0;s<u;s++,m++)J2(f,m,r[s]);return f.length=m,f}(n7)}}(e):t7(Dl(e))}},tA={f:Object.getOwnPropertySymbols},Oae=Yi([].slice),ep=function(e,t,n,r){r&&r.enumerable?e[t]=n:Il(e,t,n)},nA={f:qo},Dae=qd.f,sa=function(e){var t=Os.Symbol||(Os.Symbol={});Hr(t,e)||Dae(t,e,{value:nA.f(e)})},Rae=Q2?{}.toString:function(){return"[object "+E1(this)+"]"},Iae=qd.f,i7=qo("toStringTag"),O1=function(e,t,n,r){if(e){var i=n?e:e.prototype;Hr(i,i7)||Iae(i,i7,{configurable:!0,value:t}),r&&!Q2&&Il(i,"toString",Rae)}},a7=br.WeakMap,Lae=qa(a7)&&/native code/.test(U6(a7)),rA=br.TypeError,Pae=br.WeakMap;if(Lae||fc.state){var th=fc.state||(fc.state=new Pae),kae=Yi(th.get),o7=Yi(th.has),Mae=Yi(th.set);C1=function(e,t){if(o7(th,e))throw new rA("Object already initialized");return t.facade=e,Mae(th,e,t),t},Xg=function(e){return kae(th,e)||{}},A1=function(e){return o7(th,e)}}else{var tp=T1("state");Yg[tp]=!0,C1=function(e,t){if(Hr(e,tp))throw new rA("Object already initialized");return t.facade=e,Il(e,tp,t),t},Xg=function(e){return Hr(e,tp)?e[tp]:{}},A1=function(e){return Hr(e,tp)}}var np={set:C1,get:Xg,has:A1,enforce:function(e){return A1(e)?Xg(e):C1(e,{})},getterFor:function(e){return function(t){var n;if(!As(t)||(n=Xg(t)).type!==e)throw rA("Incompatible receiver, "+e+" required");return n}}},s7=Yi([].push),mc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=zg(u),$=T6(re),ee=B6(f,m),te=b1($),Q=0,he=k||G6,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:s7(me,K)}else switch(e){case 4:return!1;case 7:s7(me,K)}return a?-1:r||i?i:me}},D1=[mc(0),mc(1),mc(2),mc(3),mc(4),mc(5),mc(6),mc(7)][0],Lo=T1("hidden"),l7=qo("toPrimitive"),Nae=np.set,u7=np.getterFor("Symbol"),qs=Object.prototype,gc=br.Symbol,vc=gc&&gc.prototype,c7=br.TypeError,iA=br.QObject,Jg=Wg("JSON","stringify"),d7=Y2.f,yc=qd.f,h7=r7.f,Bae=H2.f,f7=Yi([].push),fu=Qd("symbols"),Qg=Qd("op-symbols"),aA=Qd("string-to-symbol-registry"),oA=Qd("symbol-to-string-registry"),Fae=Qd("wks"),sA=!iA||!iA.prototype||!iA.prototype.findChild,lA=Io&&$o(function(){return eh(yc({},"a",{get:function(){return yc(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=d7(qs,t);r&&delete qs[t],yc(e,t,n),r&&e!==qs&&yc(qs,t,r)}:yc,uA=function(e,t){var n=fu[e]=eh(vc);return Nae(n,{type:"Symbol",tag:e,description:t}),Io||(n.description=t),n},R1=function(e,t,n){e===qs&&R1(Qg,t,n),$d(e);var r=qf(t);return $d(n),Hr(fu,r)?(n.enumerable?(Hr(e,Lo)&&e[Lo][r]&&(e[Lo][r]=!1),n=eh(n,{enumerable:Xd(0,!1)})):(Hr(e,Lo)||yc(e,Lo,Xd(1,{})),e[Lo][r]=!0),lA(e,r,n)):yc(e,r,n)},p7=function(e,t){$d(e);var n=Dl(t),r=q2(n).concat(cA(n));return D1(r,function(i){Io&&!$s(m7,n,i)||R1(e,i,n[i])}),e},m7=function(e){var t=qf(e),n=$s(Bae,this,t);return!(this===qs&&Hr(fu,t)&&!Hr(Qg,t))&&(!(n||!Hr(this,t)||!Hr(fu,t)||Hr(this,Lo)&&this[Lo][t])||n)},g7=function(e,t){var n=Dl(e),r=qf(t);if(n!==qs||!Hr(fu,r)||Hr(Qg,r)){var i=d7(n,r);return!i||!Hr(fu,r)||Hr(n,Lo)&&n[Lo][r]||(i.enumerable=!0),i}},v7=function(e){var t=h7(Dl(e)),n=[];return D1(t,function(r){Hr(fu,r)||Hr(Yg,r)||f7(n,r)}),n},cA=function(e){var t=e===qs,n=h7(t?Qg:Dl(e)),r=[];return D1(n,function(i){!Hr(fu,i)||t&&!Hr(qs,i)||f7(r,fu[i])}),r};if(Rl||(vc=(gc=function(){if(C6(vc,this))throw c7("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?x1(arguments[0]):void 0,t=v1(e),n=function(r){this===qs&&$s(n,Qg,r),Hr(this,Lo)&&Hr(this[Lo],t)&&(this[Lo][t]=!1),lA(this,t,Xd(1,r))};return Io&&sA&&lA(qs,t,{configurable:!0,set:n}),uA(t,e)}).prototype,ep(vc,"toString",function(){return u7(this).tag}),ep(gc,"withoutSetter",function(e){return uA(v1(e),e)}),H2.f=m7,qd.f=R1,Y2.f=g7,e7.f=r7.f=v7,tA.f=cA,nA.f=function(e){return uA(qo(e),e)},Io&&yc(vc,"description",{configurable:!0,get:function(){return u7(this).description}})),pc({global:!0,wrap:!0,forced:!Rl,sham:!Rl},{Symbol:gc}),D1(q2(Fae),function(e){sa(e)}),pc({target:"Symbol",stat:!0,forced:!Rl},{for:function(e){var t=x1(e);if(Hr(aA,t))return aA[t];var n=gc(t);return aA[t]=n,oA[n]=t,n},keyFor:function(e){if(!$f(e))throw c7(e+" is not a symbol");if(Hr(oA,e))return oA[e]},useSetter:function(){sA=!0},useSimple:function(){sA=!1}}),pc({target:"Object",stat:!0,forced:!Rl,sham:!Io},{create:function(e,t){return t===void 0?eh(e):p7(eh(e),t)},defineProperty:R1,defineProperties:p7,getOwnPropertyDescriptor:g7}),pc({target:"Object",stat:!0,forced:!Rl},{getOwnPropertyNames:v7,getOwnPropertySymbols:cA}),pc({target:"Object",stat:!0,forced:$o(function(){tA.f(1)})},{getOwnPropertySymbols:function(e){return tA.f(zg(e))}}),Jg){var jae=!Rl||$o(function(){var e=gc();return Jg([e])!="[null]"||Jg({a:e})!="{}"||Jg(Object(e))!="{}"});pc({target:"JSON",stat:!0,forced:jae},{stringify:function(e,t,n){var r=Oae(arguments),i=t;if((As(t)||e!==void 0)&&!$f(e))return y1(t)||(t=function(a,o){if(qa(i)&&(o=$s(i,this,a,o)),!$f(o))return o}),r[1]=t,E6(Jg,null,r)}})}if(!vc[l7]){var Uae=vc.valueOf;ep(vc,l7,function(e){return $s(Uae,this)})}O1(gc,"Symbol"),Yg[Lo]=!0,sa("asyncIterator"),sa("hasInstance"),sa("isConcatSpreadable"),sa("iterator"),sa("match"),sa("matchAll"),sa("replace"),sa("search"),sa("species"),sa("split"),sa("toPrimitive"),sa("toStringTag"),sa("unscopables"),O1(br.JSON,"JSON",!0);var bc,y7,b7,Hae=Os.Symbol,nh={},E7=Function.prototype,Wae=Io&&Object.getOwnPropertyDescriptor,dA=Hr(E7,"name"),zae={EXISTS:dA,PROPER:dA&&function(){}.name==="something",CONFIGURABLE:dA&&(!Io||Io&&Wae(E7,"name").configurable)},Gae=!$o(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),_7=T1("IE_PROTO"),hA=br.Object,Kae=hA.prototype,fA=Gae?hA.getPrototypeOf:function(e){var t=zg(e);if(Hr(t,_7))return t[_7];var n=t.constructor;return qa(n)&&t instanceof n?n.prototype:t instanceof hA?Kae:null},pA=qo("iterator"),x7=!1;[].keys&&("next"in(b7=[].keys())?(y7=fA(fA(b7)))!==Object.prototype&&(bc=y7):x7=!0);var Vae=bc==null||$o(function(){var e={};return bc[pA].call(e)!==e});bc=Vae?{}:eh(bc),qa(bc[pA])||ep(bc,pA,function(){return this});var w7={IteratorPrototype:bc,BUGGY_SAFARI_ITERATORS:x7},Yae=w7.IteratorPrototype,Xae=function(){return this};br.String,br.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Yi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(t){}}();var Jae=zae.PROPER,I1=w7.BUGGY_SAFARI_ITERATORS,mA=qo("iterator"),Qae=function(){return this},T7=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=eh(Yae,{next:Xd(1,he)}),O1(te,_e,!1,!0),nh[_e]=Xae}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!I1&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[mA]||U["@@iterator"]||i&&U[i],$=!I1&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=fA(ee.call(new e)))!==Object.prototype&&s.next&&(O1(s,k,!0,!0),nh[k]=Qae),Jae&&i=="values"&&re&&re.name!=="values"&&(K=!0,$=function(){return $s(re,this)}),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(I1||K||!(f in U))&&ep(U,f,u[f]);else pc({target:t,proto:!0,forced:I1||K},u);return o&&U[mA]!==$&&ep(U,mA,$,{name:i}),nh[t]=$,u},Zae=np.set,$ae=np.getterFor("Array Iterator");T7(Array,"Array",function(e,t){Zae(this,{type:"Array Iterator",target:Dl(e),index:0,kind:t})},function(){var e=$ae(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),nh.Arguments=nh.Array;var S7=qo("toStringTag");for(var gA in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var C7=br[gA],vA=C7&&C7.prototype;vA&&E1(vA)!==S7&&Il(vA,S7,gA),nh[gA]=nh.Array}var qae=Hae;sa("asyncDispose"),sa("dispose"),sa("matcher"),sa("metadata"),sa("observable"),sa("patternMatch"),sa("replaceAll");var L1=qae,eoe=Yi("".charAt),A7=Yi("".charCodeAt),toe=Yi("".slice),O7=function(e){return function(t,n){var r,i,a=x1(z2(t)),o=X2(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=A7(a,o))<55296||r>56319||o+1===s||(i=A7(a,o+1))<56320||i>57343?e?eoe(a,o):r:e?toe(a,o,o+2):i-56320+(r-55296<<10)+65536}},noe=(O7(!1),O7(!0)),roe=np.set,ioe=np.getterFor("String Iterator");T7(String,"String",function(e){roe(this,{type:"String Iterator",string:x1(e),index:0})},function(){var e,t=ioe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=noe(n,r),t.index+=e.length,{value:e,done:!1})});var aoe=nA.f("iterator"),ooe=Xb(function(e){function t(n){return typeof L1=="function"&&typeof aoe=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof L1=="function"&&r.constructor===L1&&r!==L1.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),D7=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ooe),soe=t1.EXISTS,loe=Uf.f,R7=Function.prototype,uoe=$n(R7.toString),I7=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,coe=$n(I7.exec);Qs&&!soe&&loe(R7,"name",{configurable:!0,get:function(){try{return coe(I7,uoe(this))[1]}catch(e){return""}}});var L7=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=Ee.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ur(Ee.nodes(t,{match:function(n){return Ge.getNodeType(n)==="pre"||!!Ee.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),doe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("fontSize.title"),n.iconSvg=jne,n.mark="fontSize",n}return Ti(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,a=i===void 0?[]:i;r.push({text:pn("fontSize.default"),value:""}),a.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s});else if(D7(s)==="object"){var u=s.name,f=s.value;r.push({text:u,value:f})}});var o=this.getValue(n);return r.forEach(function(s){s.value===o?s.selected=!0:delete s.selected}),r},t}(L7),hoe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("fontFamily.title"),n.iconSvg=Une,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ti(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,a=i===void 0?[]:i;r.push({text:pn("fontFamily.default"),value:""}),a.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(D7(s)==="object"){var u=s.name,f=s.value;r.push({text:u,value:f,styleForRenderMenuList:{"font-family":f}})}});var o=this.getValue(n);return r.forEach(function(s){s.value===o?s.selected=!0:delete s.selected}),r},t}(L7),foe={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&Vd(a,{fontSize:r}),i&&Vd(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!wn.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((x2(t)||Xf(n=Qe(t))!=="span")&&(n=Qe("<span>"+t+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),Yf(n)):t},preParseHtml:[xie],parseStyleHtml:function(e,t,n){var r=Qe(e);if(!wn.isText(t))return t;var i=t,a=n.getMenuConfig("fontSize").fontSizeList,o=a===void 0?[]:a,s=Zs(r,"font-size"),u=o.find(function(U){return U.value&&U.value===s})||o.includes(s);s&&u&&(i.fontSize=s);var f=n.getMenuConfig("fontFamily").fontFamilyList,m=f===void 0?[]:f,k=Zs(r,"font-family").replace(/"/g,""),K=m.find(function(U){return U.value&&U.value===k})||m.includes(k);return k&&K&&(i.fontFamily=k),i},menus:[{key:"fontSize",factory:function(){return new doe},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new hoe},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},poe={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Qe(e),n=Zs(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},P7=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Ur(Ee.nodes(t,{match:function(i){return!!i.indent},universal:!0}),1),r=n[0];return r==null?"":Ur(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ur(Ee.nodes(t,{match:function(r){var i=Ge.getNodeType(r);return i==="paragraph"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),moe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("indent.decrease"),n.iconSvg=Hne,n}return Ti(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){ct.setNodes(n,{indent:null},{match:function(i){return Nn.isElement(i)}})},t}(P7),goe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("indent.increase"),n.iconSvg=Wne,n}return Ti(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){ct.setNodes(n,{indent:"2em"},{match:function(i){return Nn.isElement(i)},mode:"highest"})},t}(P7),voe={renderStyle:function(e,t){if(!Nn.isElement(e))return t;var n=e.indent,r=t;return n&&Vd(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Nn.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Qe(t);return r.css("text-indent",n),Yf(r)},preParseHtml:[poe],parseStyleHtml:function(e,t,n){var r=Qe(e);if(!Nn.isElement(t))return t;var i=t,a=Zs(r,"text-indent"),o=parseInt(a,10);return a&&o>0&&(i.indent=a),i},menus:[{key:"indent",factory:function(){return new goe}},{key:"delIndent",factory:function(){return new moe}}]},P1=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ur(Ee.nodes(t,{match:function(r){var i=Ge.getNodeType(r);return i==="paragraph"||i==="blockquote"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge.getSelectedElems(t).some(function(n){if(Ee.isVoid(t,n)&&Ee.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),yoe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("justify.left"),n.iconSvg=zne,n}return Ti(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"left"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(P1),boe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("justify.right"),n.iconSvg=Gne,n}return Ti(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"right"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(P1),Eoe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("justify.center"),n.iconSvg=Kne,n}return Ti(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"center"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(P1),_oe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pn("justify.justify"),n.iconSvg=Vne,n}return Ti(t,e),t.prototype.exec=function(n,r){ct.setNodes(n,{textAlign:"justify"},{match:function(i){return Nn.isElement(i)&&!n.isInline(i)}})},t}(P1),xoe={renderStyle:function(e,t){if(!Nn.isElement(e))return t;var n=e.textAlign,r=t;return n&&Vd(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Nn.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Qe(t);return r.css("text-align",n),Yf(r)},parseStyleHtml:function(e,t,n){var r=Qe(e);if(!Nn.isElement(t))return t;var i=t,a=Zs(r,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new yoe}},{key:"justifyRight",factory:function(){return new boe}},{key:"justifyCenter",factory:function(){return new Eoe}},{key:"justifyJustify",factory:function(){return new _oe}}]},woe=function(){function e(){this.title=pn("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,i=r===void 0?[]:r;n.push({text:pn("lineHeight.default"),value:""}),i.forEach(function(o){n.push({text:o,value:o})});var a=this.getValue(t);return n.forEach(function(o){o.value===a?o.selected=!0:delete o.selected}),n},e.prototype.getMatchNode=function(t){var n=Ur(Ee.nodes(t,{match:function(r){var i=Ge.getNodeType(r);return!!i.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(i)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":Nn.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){ct.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),Toe={renderStyle:function(e,t){if(!Nn.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Vd(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Nn.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Qe(t);return r.css("line-height",n),Yf(r)},parseStyleHtml:function(e,t,n){var r=Qe(e);if(!Nn.isElement(t))return t;var i=t,a=n.getMenuConfig("lineHeight").lineHeightList,o=a===void 0?[]:a,s=Zs(r,"line-height");return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:"lineHeight",factory:function(){return new woe},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Soe=function(){function e(){this.title=pn("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),Coe=function(){function e(){this.title=pn("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),Aoe={menus:[{key:"redo",factory:function(){return new Soe}},{key:"undo",factory:function(){return new Coe}}]},Ooe={type:"divider",renderElem:function(e,t,n){return lf("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:Ge.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[lf("hr")])}},Doe=function(){function e(){this.title=pn("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=Ge.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){ct.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Roe={renderElems:[Ooe],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Doe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="divider"||t(i)},r.normalizeNode=function(i){var a=Ur(i,2),o=a[0],s=a[1];if(Ge.getNodeType(o)!=="divider")return n([o,s]);Ge.isLastNode(r,o)&&ct.insertNodes(r,Ge.genEmptyParagraph(),{at:[s[0]+1]})},r}},Ioe=a1.map;Oa({target:"Array",proto:!0,forced:!t2("map")},{map:function(e){return Ioe(this,e,arguments.length>1?arguments[1]:void 0)}});var Loe=$n([].join),Poe=Zb!=Object,koe=W8("join",",");Oa({target:"Array",proto:!0,forced:Poe||!koe},{join:function(e){return Loe(jf(this),e===void 0?",":e)}});var Moe=function(){function e(){this.title=pn("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=Ge.getSelectedNodeByType(t,"code");if(n==null)return null;var r=Ge.getParentNode(t,n);return r==null||Ge.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=Ge.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var i=Ge.getNodeType(r);if(i==="pre"||i==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=fn.string(n);ct.removeNodes(t,{mode:"highest"});var i=r.split(`
`).map(function(a){return{type:"paragraph",children:[{text:a}]}});ct.insertNodes(t,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,i,a=[],o=Ee.nodes(t,{match:function(k){return t.children.includes(k)},universal:!0});try{for(var s=F8(o),u=s.next();!u.done;u=s.next()){var f=Ur(u.value,1)[0];f&&a.push(fn.string(f))}}catch(k){r={error:k}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}ct.removeNodes(t,{mode:"highest"});var m={type:"pre",children:[{type:"code",language:n,children:[{text:a.join(`
`)}]}]};ct.insertNodes(t,m,{mode:"highest"})},e}(),Noe={key:"codeBlock",factory:function(){return new Moe}};Oa({target:"String",proto:!0,forced:Mg("anchor")},{anchor:function(e){return kg(this,"a","name",e)}}),h2("match",function(e,t,n){return[function(r){var i=Ts(this),a=r==null?void 0:$b(r,e);return a?Vi(a,r,i):new RegExp(r)[e](Li(i))},function(r){var i=Zo(this),a=Li(r),o=n(t,i,a);if(o.done)return o.value;if(!i.global)return Lg(i,a);var s=i.unicode;i.lastIndex=0;for(var u,f=[],m=0;(u=Lg(i,a))!==null;){var k=Li(u[0]);f[m]=k,k===""&&(i.lastIndex=f2(a,Og(i.lastIndex),s)),m++}return m===0?null:f}]});var Boe={type:"pre",renderElem:function(e,t,n){return er("pre",null,t)}},Foe={type:"code",renderElem:function(e,t,n){return er("code",null,t)}},joe={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e);return(t=t.filter(function(i){return Ge.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return Ge.getNodeType(i)==="code"})}}},Uoe={menus:[Noe],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var a=Ge.getSelectedNodeByType(i,"code");if(a!=null){var o=function(f,m){var k=m.selection;if(k==null)return"";var K=fn.string(f),U=k.anchor.offset,re=K.slice(0,U).split(`
`),$=re.length;return $===0?"":re[$-1]}(a,i);if(o){var s=o.match(/^\s+/);if(s!=null&&s[0]!=null){var u=s[0];return void i.insertText(`
`+u)}}i.insertText(`
`)}else t()},i.normalizeNode=function(a){var o=Ur(a,2),s=o[0],u=o[1],f=Ge.getNodeType(s);return f==="code"&&u.length<=1&&ct.setNodes(i,{type:"paragraph"},{at:u}),f==="pre"&&(Ge.isLastNode(i,s)&&ct.insertNodes(i,Ge.genEmptyParagraph(),{at:[u[0]+1]}),Ge.getNodeType(s.children[0])!=="code"&&(ct.unwrapNodes(i),ct.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([s,u])},i.insertData=function(a){if(Ge.getSelectedNodeByType(i,"code")!=null){var o=a.getData("text/plain");Ee.insertText(i,o)}else r(a)},i},renderElems:[Boe,Foe],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Qe(e);if(Xf(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Qe(e)[0].textContent||""}]}}},joe]},Hoe=function(){function e(){this.title=pn("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Woe={menus:[{key:"fullScreen",factory:function(){return new Hoe}}]},zoe=function(){function e(){this.title=pn("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!_t.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];ct.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(Ee.start(t,i))}},e}(),Goe=[rre,Mre,foe,voe,xoe,Toe,aie,Roe,Eie,Vre,Uoe,yie,Rre,Cne,uie,Aoe,Woe,{menus:[{key:"enter",factory:function(){return new zoe}}]}];Ro("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Ro("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var k7=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function yA(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ec,k1,M1=function(e){return e&&e.Math==Math&&e},tr=M1(typeof globalThis=="object"&&globalThis)||M1(typeof window=="object"&&window)||M1(typeof self=="object"&&self)||M1(typeof k7=="object"&&k7)||function(){return this}()||Function("return this")(),M7=Function.prototype,bA=M7.bind,EA=M7.call,Koe=bA&&bA.bind(EA),xr=bA?function(e){return e&&Koe(EA,e)}:function(e){return e&&function(){return EA.apply(e,arguments)}},Ui=function(e){try{return!!e()}catch(t){return!0}},Voe=xr({}.toString),Yoe=xr("".slice),pu=function(e){return Yoe(Voe(e),8,-1)},_A=tr.Object,Xoe=xr("".split),N7=Ui(function(){return!_A("z").propertyIsEnumerable(0)})?function(e){return pu(e)=="String"?Xoe(e,""):_A(e)}:_A,Joe=tr.TypeError,N1=function(e){if(e==null)throw Joe("Can't call method on "+e);return e},rp=function(e){return N7(N1(e))},Qoe=Object.defineProperty,xA=function(e,t){try{Qoe(tr,e,{value:t,configurable:!0,writable:!0})}catch(n){tr[e]=t}return t},_c=tr["__core-js_shared__"]||xA("__core-js_shared__",{}),wA=yA(function(e){(e.exports=function(t,n){return _c[t]||(_c[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Zoe=tr.Object,Zg=function(e){return Zoe(N1(e))},$oe=xr({}.hasOwnProperty),Da=Object.hasOwn||function(e,t){return $oe(Zg(e),t)},qoe=0,ese=Math.random(),tse=xr(1 .toString),TA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tse(++qoe+ese,36)},Hi=function(e){return typeof e=="function"},nse=function(e){return Hi(e)?e:void 0},$g=function(e,t){return arguments.length<2?nse(tr[e]):tr[e]&&tr[e][t]},SA=$g("navigator","userAgent")||"",B7=tr.process,F7=tr.Deno,j7=B7&&B7.versions||F7&&F7.version,U7=j7&&j7.v8;U7&&(k1=(Ec=U7.split("."))[0]>0&&Ec[0]<4?1:+(Ec[0]+Ec[1])),!k1&&SA&&(!(Ec=SA.match(/Edge\/(\d+)/))||Ec[1]>=74)&&(Ec=SA.match(/Chrome\/(\d+)/))&&(k1=+Ec[1]);var B1,CA=k1,AA=!!Object.getOwnPropertySymbols&&!Ui(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&CA&&CA<41}),OA=AA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qg=wA("wks"),rh=tr.Symbol,H7=rh&&rh.for,rse=OA?rh:rh&&rh.withoutSetter||TA,eo=function(e){if(!Da(qg,e)||!AA&&typeof qg[e]!="string"){var t="Symbol."+e;AA&&Da(rh,e)?qg[e]=rh[e]:qg[e]=OA&&H7?H7(t):rse(t)}return qg[e]},Wi=function(e){return typeof e=="object"?e!==null:Hi(e)},ise=tr.String,ase=tr.TypeError,Po=function(e){if(Wi(e))return e;throw ase(ise(e)+" is not an object")},xc=!Ui(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DA=tr.document,ose=Wi(DA)&&Wi(DA.createElement),RA=function(e){return ose?DA.createElement(e):{}},W7=!xc&&!Ui(function(){return Object.defineProperty(RA("div"),"a",{get:function(){return 7}}).a!=7}),ev=Function.prototype.call,Ra=ev.bind?ev.bind(ev):function(){return ev.apply(ev,arguments)},F1=xr({}.isPrototypeOf),sse=tr.Object,IA=OA?function(e){return typeof e=="symbol"}:function(e){var t=$g("Symbol");return Hi(t)&&F1(t.prototype,sse(e))},lse=tr.String,LA=function(e){try{return lse(e)}catch(t){return"Object"}},use=tr.TypeError,PA=function(e){if(Hi(e))return e;throw use(LA(e)+" is not a function")},tv=function(e,t){var n=e[t];return n==null?void 0:PA(n)},cse=tr.TypeError,dse=tr.TypeError,hse=eo("toPrimitive"),kA=function(e){var t=function(n,r){if(!Wi(n)||IA(n))return n;var i,a=tv(n,hse);if(a){if(r===void 0&&(r="default"),i=Ra(a,n,r),!Wi(i)||IA(i))return i;throw dse("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&Hi(u=o.toString)&&!Wi(f=Ra(u,o)))return f;if(Hi(u=o.valueOf)&&!Wi(f=Ra(u,o)))return f;if(s!=="string"&&Hi(u=o.toString)&&!Wi(f=Ra(u,o)))return f;throw cse("Can't convert object to primitive value")}(n,r)}(e,"string");return IA(t)?t:t+""},fse=tr.TypeError,z7=Object.defineProperty,ih={f:xc?z7:function(e,t,n){if(Po(e),t=kA(t),Po(n),W7)try{return z7(e,t,n)}catch(r){}if("get"in n||"set"in n)throw fse("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pse=Math.ceil,mse=Math.floor,nv=function(e){var t=+e;return t!=t||t===0?0:(t>0?mse:pse)(t)},gse=Math.max,vse=Math.min,MA=function(e,t){var n=nv(e);return n<0?gse(n+t,0):vse(n,t)},yse=Math.min,G7=function(e){return e>0?yse(nv(e),9007199254740991):0},ip=function(e){return G7(e.length)},K7=function(e){return function(t,n,r){var i,a=rp(t),o=ip(a),s=MA(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},V7={includes:K7(!0),indexOf:K7(!1)},j1={},bse=V7.indexOf,Y7=xr([].push),X7=function(e,t){var n,r=rp(e),i=0,a=[];for(n in r)!Da(j1,n)&&Da(r,n)&&Y7(a,n);for(;t.length>i;)Da(r,n=t[i++])&&(~bse(a,n)||Y7(a,n));return a},U1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ese=Object.keys||function(e){return X7(e,U1)},_se=xc?Object.defineProperties:function(e,t){Po(e);for(var n,r=rp(t),i=Ese(t),a=i.length,o=0;a>o;)ih.f(e,n=i[o++],r[n]);return e},xse=$g("document","documentElement"),J7=wA("keys"),NA=function(e){return J7[e]||(J7[e]=TA(e))},Q7=NA("IE_PROTO"),BA=function(){},Z7=function(e){return"<script>"+e+"</script>"},$7=function(e){e.write(Z7("")),e.close();var t=e.parentWindow.Object;return e=null,t},H1=function(){try{B1=new ActiveXObject("htmlfile")}catch(r){}var e,t;H1=typeof document!="undefined"?document.domain&&B1?$7(B1):((t=RA("iframe")).style.display="none",xse.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Z7("document.F=Object")),e.close(),e.F):$7(B1);for(var n=U1.length;n--;)delete H1.prototype[U1[n]];return H1()};j1[Q7]=!0;var FA=Object.create||function(e,t){var n;return e!==null?(BA.prototype=Po(e),n=new BA,BA.prototype=null,n[Q7]=e):n=H1(),t===void 0?n:_se(n,t)},jA=eo("unscopables"),UA=Array.prototype;UA[jA]==null&&ih.f(UA,jA,{configurable:!0,value:FA(null)});var rv=function(e){UA[jA][e]=!0},ap={},wse=xr(Function.toString);Hi(_c.inspectSource)||(_c.inspectSource=function(e){return wse(e)});var W1,iv,z1,HA=_c.inspectSource,q7=tr.WeakMap,e9=Hi(q7)&&/native code/.test(HA(q7)),G1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wc=xc?function(e,t,n){return ih.f(e,t,G1(1,n))}:function(e,t,n){return e[t]=n,e},WA=tr.TypeError,Tse=tr.WeakMap;if(e9||_c.state){var ah=_c.state||(_c.state=new Tse),Sse=xr(ah.get),t9=xr(ah.has),Cse=xr(ah.set);W1=function(e,t){if(t9(ah,e))throw new WA("Object already initialized");return t.facade=e,Cse(ah,e,t),t},iv=function(e){return Sse(ah,e)||{}},z1=function(e){return t9(ah,e)}}else{var op=NA("state");j1[op]=!0,W1=function(e,t){if(Da(e,op))throw new WA("Object already initialized");return t.facade=e,wc(e,op,t),t},iv=function(e){return Da(e,op)?e[op]:{}},z1=function(e){return Da(e,op)}}var oh,n9,r9,Ll={set:W1,get:iv,has:z1,enforce:function(e){return z1(e)?iv(e):W1(e,{})},getterFor:function(e){return function(t){var n;if(!Wi(t)||(n=iv(t)).type!==e)throw WA("Incompatible receiver, "+e+" required");return n}}},i9={}.propertyIsEnumerable,a9=Object.getOwnPropertyDescriptor,Ase={f:a9&&!i9.call({1:2},1)?function(e){var t=a9(this,e);return!!t&&t.enumerable}:i9},o9=Object.getOwnPropertyDescriptor,s9={f:xc?o9:function(e,t){if(e=rp(e),t=kA(t),W7)try{return o9(e,t)}catch(n){}if(Da(e,t))return G1(!Ra(Ase.f,e,t),e[t])}},l9=Function.prototype,Ose=xc&&Object.getOwnPropertyDescriptor,zA=Da(l9,"name"),GA={EXISTS:zA,PROPER:zA&&function(){}.name==="something",CONFIGURABLE:zA&&(!xc||xc&&Ose(l9,"name").configurable)},Pl=yA(function(e){var t=GA.CONFIGURABLE,n=Ll.get,r=Ll.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;Hi(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Da(s,"name")||t&&s.name!==U)&&wc(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==tr?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:wc(a,o,s)):k?a[o]=s:xA(o,s)})(Function.prototype,"toString",function(){return Hi(this)&&n(this).source||HA(this)})}),Dse=U1.concat("length","prototype"),K1={f:Object.getOwnPropertyNames||function(e){return X7(e,Dse)}},Rse={f:Object.getOwnPropertySymbols},Ise=xr([].concat),Lse=$g("Reflect","ownKeys")||function(e){var t=K1.f(Po(e)),n=Rse.f;return n?Ise(t,n(e)):t},Pse=function(e,t){for(var n=Lse(t),r=ih.f,i=s9.f,a=0;a<n.length;a++){var o=n[a];Da(e,o)||r(e,o,i(t,o))}},kse=/#|\.prototype\./,av=function(e,t){var n=Nse[Mse(e)];return n==Fse||n!=Bse&&(Hi(t)?Ui(t):!!t)},Mse=av.normalize=function(e){return String(e).replace(kse,".").toLowerCase()},Nse=av.data={},Bse=av.NATIVE="N",Fse=av.POLYFILL="P",KA=av,jse=s9.f,Tc=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?tr:f?tr[s]||xA(s,{}):(tr[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=jse(n,r))&&o.value:n[r],!KA(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Pse(a,i)}(e.sham||i&&i.sham)&&wc(a,"sham",!0),Pl(n,r,a,e)}},Use=!Ui(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),u9=NA("IE_PROTO"),VA=tr.Object,Hse=VA.prototype,V1=Use?VA.getPrototypeOf:function(e){var t=Zg(e);if(Da(t,u9))return t[u9];var n=t.constructor;return Hi(n)&&t instanceof n?n.prototype:t instanceof VA?Hse:null},YA=eo("iterator"),c9=!1;[].keys&&("next"in(r9=[].keys())?(n9=V1(V1(r9)))!==Object.prototype&&(oh=n9):c9=!0);var Wse=oh==null||Ui(function(){var e={};return oh[YA].call(e)!==e});Wse&&(oh={}),Hi(oh[YA])||Pl(oh,YA,function(){return this});var XA={IteratorPrototype:oh,BUGGY_SAFARI_ITERATORS:c9},zse=ih.f,d9=eo("toStringTag"),JA=function(e,t,n){e&&!Da(e=n?e:e.prototype,d9)&&zse(e,d9,{configurable:!0,value:t})},Gse=XA.IteratorPrototype,Kse=function(){return this},Vse=tr.String,Yse=tr.TypeError,Y1=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=xr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Po(r),function(a){if(typeof a=="object"||Hi(a))return a;throw Yse("Can't set "+Vse(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Xse=GA.PROPER,Jse=GA.CONFIGURABLE,h9=XA.IteratorPrototype,X1=XA.BUGGY_SAFARI_ITERATORS,ov=eo("iterator"),Qse=function(){return this},f9=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=FA(Gse,{next:G1(1,he)}),JA(te,_e,!1),ap[_e]=Kse}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!X1&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[ov]||U["@@iterator"]||i&&U[i],$=!X1&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=V1(ee.call(new e)))!==Object.prototype&&s.next&&(V1(s)!==h9&&(Y1?Y1(s,h9):Hi(s[ov])||Pl(s,ov,Qse)),JA(s,k,!0)),Xse&&i=="values"&&re&&re.name!=="values"&&(Jse?wc(U,"name","values"):(K=!0,$=function(){return Ra(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(X1||K||!(f in U))&&Pl(U,f,u[f]);else Tc({target:t,proto:!0,forced:X1||K},u);return U[ov]!==$&&Pl(U,ov,$,{name:i}),ap[t]=$,u},Zse=Ll.set,$se=Ll.getterFor("Array Iterator"),sv=f9(Array,"Array",function(e,t){Zse(this,{type:"Array Iterator",target:rp(e),index:0,kind:t})},function(){var e=$se(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");ap.Arguments=ap.Array,rv("keys"),rv("values"),rv("entries");var p9={};p9[eo("toStringTag")]="z";var QA=String(p9)==="[object z]",qse=eo("toStringTag"),ele=tr.Object,tle=pu(function(){return arguments}())=="Arguments",J1=QA?pu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=ele(e),qse))=="string"?n:tle?pu(t):(r=pu(t))=="Object"&&Hi(t.callee)?"Arguments":r},nle=QA?{}.toString:function(){return"[object "+J1(this)+"]"};QA||Pl(Object.prototype,"toString",nle,{unsafe:!0});var rle=tr.String,mu=function(e){if(J1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rle(e)},ile=xr("".charAt),m9=xr("".charCodeAt),ale=xr("".slice),g9=function(e){return function(t,n){var r,i,a=mu(N1(t)),o=nv(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=m9(a,o))<55296||r>56319||o+1===s||(i=m9(a,o+1))<56320||i>57343?e?ile(a,o):r:e?ale(a,o,o+2):i-56320+(r-55296<<10)+65536}},v9={codeAt:g9(!1),charAt:g9(!0)},ole=v9.charAt,sle=Ll.set,lle=Ll.getterFor("String Iterator");f9(String,"String",function(e){sle(this,{type:"String Iterator",string:mu(e),index:0})},function(){var e,t=lle(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ole(n,r),t.index+=e.length,{value:e,done:!1})});var ZA=function(e,t,n){for(var r in t)Pl(e,r,t[r],n);return e},ule=tr.Array,cle=Math.max,y9=K1.f,b9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dle={f:function(e){return b9&&pu(e)=="Window"?function(t){try{return y9(t)}catch(n){return function(r,i,a){for(var o,s,u,f,m=ip(r),k=MA(void 0,m),K=MA(m,m),U=ule(cle(K-k,0)),re=0;k<K;k++,re++)o=U,s=re,u=r[k],(f=kA(s))in o?ih.f(o,f,G1(0,u)):o[f]=u;return U.length=re,U}(b9)}}(e):y9(rp(e))}},E9=Ui(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Q1=Object.isExtensible,sh=Ui(function(){Q1(1)})||E9?function(e){return!!Wi(e)&&(!E9||pu(e)!="ArrayBuffer")&&(!Q1||Q1(e))}:Q1,hle=!Ui(function(){return Object.isExtensible(Object.preventExtensions({}))}),$A=yA(function(e){var t=ih.f,n=!1,r=TA("meta"),i=0,a=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var s=K1.f,u=xr([].splice),f={};f[r]=1,s(f).length&&(K1.f=function(m){for(var k=s(m),K=0,U=k.length;K<U;K++)if(k[K]===r){u(k,K,1);break}return k},Tc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dle.f}))},fastKey:function(s,u){if(!Wi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Da(s,r)){if(!sh(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Da(s,r)){if(!sh(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return hle&&n&&sh(s)&&!Da(s,r)&&a(s),s}};j1[r]=!0}),_9=xr(xr.bind),qA=function(e,t){return PA(e),t===void 0?e:_9?_9(e,t):function(){return e.apply(t,arguments)}},fle=eo("iterator"),ple=Array.prototype,mle=eo("iterator"),x9=function(e){if(e!=null)return tv(e,mle)||tv(e,"@@iterator")||ap[J1(e)]},gle=tr.TypeError,w9=function(e,t,n){var r,i;Po(e);try{if(!(r=tv(e,"return"))){if(t==="throw")throw n;return n}r=Ra(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Po(r),n},vle=tr.TypeError,Z1=function(e,t){this.stopped=e,this.result=t},T9=Z1.prototype,S9=function(e,t,n){var r,i,a,o,s,u,f,m,k=n&&n.that,K=!(!n||!n.AS_ENTRIES),U=!(!n||!n.IS_ITERATOR),re=!(!n||!n.INTERRUPTED),$=qA(t,k),ee=function(Q){return r&&w9(r,"normal",Q),new Z1(!0,Q)},te=function(Q){return K?(Po(Q),re?$(Q[0],Q[1],ee):$(Q[0],Q[1])):re?$(Q,ee):$(Q)};if(U)r=e;else{if(!(i=x9(e)))throw vle(LA(e)+" is not iterable");if((m=i)!==void 0&&(ap.Array===m||ple[fle]===m)){for(a=0,o=ip(e);o>a;a++)if((s=te(e[a]))&&F1(T9,s))return s;return new Z1(!1)}r=function(Q,he){var me=arguments.length<2?x9(Q):he;if(PA(me))return Po(Ra(me,Q));throw gle(LA(Q)+" is not iterable")}(e,i)}for(u=r.next;!(f=Ra(u,r)).done;){try{s=te(f.value)}catch(Q){w9(r,"throw",Q)}if(typeof s=="object"&&s&&F1(T9,s))return s}return new Z1(!1)},yle=tr.TypeError,C9=function(e,t){if(F1(t,e))return e;throw yle("Incorrect invocation")},A9=eo("iterator"),O9=!1;try{var ble=0,D9={next:function(){return{done:!!ble++}},return:function(){O9=!0}};D9[A9]=function(){return this},Array.from(D9,function(){throw 2})}catch(e){}var eO=Array.isArray||function(e){return pu(e)=="Array"},R9=function(){},Ele=[],I9=$g("Reflect","construct"),tO=/^\s*(?:class|function)\b/,_le=xr(tO.exec),xle=!tO.exec(R9),lv=function(e){if(!Hi(e))return!1;try{return I9(R9,Ele,e),!0}catch(t){return!1}},wle=!I9||Ui(function(){var e;return lv(lv.call)||!lv(Object)||!lv(function(){e=!0})||e})?function(e){if(!Hi(e))return!1;switch(J1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xle||!!_le(tO,HA(e))}:lv,Tle=eo("species"),L9=tr.Array,P9=function(e,t){return new(function(n){var r;return eO(n)&&(r=n.constructor,(wle(r)&&(r===L9||eO(r.prototype))||Wi(r)&&(r=r[Tle])===null)&&(r=void 0)),r===void 0?L9:r}(e))(t===0?0:t)},k9=xr([].push),Sc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=Zg(u),$=N7(re),ee=qA(f,m),te=ip($),Q=0,he=k||P9,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:k9(me,K)}else switch(e){case 4:return!1;case 7:k9(me,K)}return a?-1:r||i?i:me}},nO={forEach:Sc(0),map:Sc(1),filter:Sc(2),some:Sc(3),every:Sc(4),find:Sc(5),findIndex:Sc(6),filterReject:Sc(7)},$1=$A.getWeakData,Sle=Ll.set,Cle=Ll.getterFor,Ale=nO.find,Ole=nO.findIndex,Dle=xr([].splice),Rle=0,q1=function(e){return e.frozen||(e.frozen=new M9)},M9=function(){this.entries=[]},rO=function(e,t){return Ale(e.entries,function(n){return n[0]===t})};M9.prototype={get:function(e){var t=rO(this,e);if(t)return t[1]},has:function(e){return!!rO(this,e)},set:function(e,t){var n=rO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ole(this.entries,function(n){return n[0]===e});return~t&&Dle(this.entries,t,1),!!~t}};var uv,N9={getConstructor:function(e,t,n,r){var i=e(function(u,f){C9(u,a),Sle(u,{type:t,id:Rle++,frozen:void 0}),f!=null&&S9(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=Cle(t),s=function(u,f,m){var k=o(u),K=$1(Po(f),!0);return K===!0?q1(k).set(f,m):K[k.id]=m,u};return ZA(a,{delete:function(u){var f=o(this);if(!Wi(u))return!1;var m=$1(u);return m===!0?q1(f).delete(u):m&&Da(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!Wi(u))return!1;var m=$1(u);return m===!0?q1(f).has(u):m&&Da(m,f.id)}}),ZA(a,n?{get:function(u){var f=o(this);if(Wi(u)){var m=$1(u);return m===!0?q1(f).get(u):m?m[f.id]:void 0}},set:function(u,f){return s(this,u,f)}}:{add:function(u){return s(this,u,!0)}}),i}},eE=Ll.enforce,Ile=!tr.ActiveXObject&&"ActiveXObject"in tr,B9=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lle=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=r?"set":"add",o=tr[e],s=o&&o.prototype,u=o,f={},m=function(ee){var te=xr(s[ee]);Pl(s,ee,ee=="add"?function(Q){return te(this,Q===0?0:Q),this}:ee=="delete"?function(Q){return!(i&&!Wi(Q))&&te(this,Q===0?0:Q)}:ee=="get"?function(Q){return i&&!Wi(Q)?void 0:te(this,Q===0?0:Q)}:ee=="has"?function(Q){return!(i&&!Wi(Q))&&te(this,Q===0?0:Q)}:function(Q,he){return te(this,Q===0?0:Q,he),this})};if(KA(e,!Hi(o)||!(i||s.forEach&&!Ui(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),$A.enable();else if(KA(e,!0)){var k=new u,K=k[a](i?{}:-0,1)!=k,U=Ui(function(){k.has(1)}),re=function(ee,te){if(!O9)return!1;var Q=!1;try{var he={};he[A9]=function(){return{next:function(){return{done:Q=!0}}}},function(me){new o(me)}(he)}catch(me){}return Q}(),$=!i&&Ui(function(){for(var ee=new o,te=5;te--;)ee[a](te,te);return!ee.has(-0)});re||((u=t(function(ee,te){C9(ee,s);var Q=function(he,me,_e){var ke,De;return Y1&&Hi(ke=me.constructor)&&ke!==_e&&Wi(De=ke.prototype)&&De!==_e.prototype&&Y1(he,De),he}(new o,ee,u);return te!=null&&S9(te,Q[a],{that:Q,AS_ENTRIES:r}),Q})).prototype=s,s.constructor=u),(U||$)&&(m("delete"),m("has"),r&&m("get")),($||K)&&m(a),i&&s.clear&&delete s.clear}return f[e]=u,Tc({global:!0,forced:u!=o},f),JA(u,e),i||n.setStrong(u,e,r),u}("WeakMap",B9,N9);if(e9&&Ile){uv=N9.getConstructor(B9,"WeakMap",!0),$A.enable();var cv=Lle.prototype,F9=xr(cv.delete),tE=xr(cv.has),j9=xr(cv.get),U9=xr(cv.set);ZA(cv,{delete:function(e){if(Wi(e)&&!sh(e)){var t=eE(this);return t.frozen||(t.frozen=new uv),F9(this,e)||t.frozen.delete(e)}return F9(this,e)},has:function(e){if(Wi(e)&&!sh(e)){var t=eE(this);return t.frozen||(t.frozen=new uv),tE(this,e)||t.frozen.has(e)}return tE(this,e)},get:function(e){if(Wi(e)&&!sh(e)){var t=eE(this);return t.frozen||(t.frozen=new uv),tE(this,e)?j9(this,e):t.frozen.get(e)}return j9(this,e)},set:function(e,t){if(Wi(e)&&!sh(e)){var n=eE(this);n.frozen||(n.frozen=new uv),tE(this,e)?U9(this,e,t):n.frozen.set(e,t)}else U9(this,e,t);return this}})}var H9={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},iO=RA("span").classList,W9=iO&&iO.constructor&&iO.constructor.prototype,Ple=W9===Object.prototype?void 0:W9,aO=eo("iterator"),z9=eo("toStringTag"),oO=sv.values,G9=function(e,t){if(e){if(e[aO]!==oO)try{wc(e,aO,oO)}catch(r){e[aO]=oO}if(e[z9]||wc(e,z9,t),H9[t]){for(var n in sv)if(e[n]!==sv[n])try{wc(e,n,sv[n])}catch(r){e[n]=sv[n]}}}};for(var sO in H9)G9(tr[sO]&&tr[sO].prototype,sO);G9(Ple,"DOMTokenList");var lO=new WeakMap,kle={type:"list-item",renderElem:function(e,t,n){lO.set(e,n);var r=e,i=r.level,a=i===void 0?0:i,o=r.ordered,s={margin:"5px 0 5px "+20*a+"px"},u="";if(o!==void 0&&o){var f=function(k,K){var U=K,re=U.type,$=U.level,ee=$===void 0?0:$,te=U.ordered,Q=te!==void 0&&te;if(!Q)return-1;var he=1,me=K,_e=Ge.findPath(k,me);if(_e[0]===0)return 1;for(;_e[0]>0;){var ke=st.previous(_e),De=Ee.node(k,ke);if(De==null)break;var Ye=De[0],rt=Ye.level,wt=rt===void 0?0:rt,Lt=Ye.type,Tt=Ye.ordered;if(Lt!==re)break;if(wt<ee)break;if(wt===ee){if(Tt!==Q)break;he++}me=Ye,_e=ke}return he}(n,e);u=f+"."}else u=function(k){k===void 0&&(k=0);var K="";switch(k){case 0:K="\u2022";break;case 1:K="\u25E6";break;default:K="\u25AA"}return K}(a);var m=function(k){var K,U=k.children||[],re=U.length;if(re===0)return"";for(var $=0;$<re&&!K;$++){var ee=U[$];wn.isText(ee)&&(K=ee)}return K==null?"":K.color||""}(e);return er("div",{style:s},er("span",{contentEditable:!1,style:{marginRight:"0.5em",color:m},"data-w-e-reserve":!0},u),er("span",null,t))}},uO=function(e,t){return uO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},uO(e,t);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function K9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}uO(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function V9(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Y9(e){return Ee.nodes(e,{at:e.selection||void 0,match:function(t){return Ge.findPath(e,t).length===1}})}var Mle=V7.includes;Tc({target:"Array",proto:!0},{includes:function(e){return Mle(this,e,arguments.length>1?arguments[1]:void 0)}}),rv("includes");var X9,cO,Nle=function(){var e=Po(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},dO=tr.RegExp,hO=Ui(function(){var e=dO("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Ble=hO||Ui(function(){return!dO("a","y").sticky}),Fle={BROKEN_CARET:hO||Ui(function(){var e=dO("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Ble,UNSUPPORTED_Y:hO},jle=tr.RegExp,Ule=Ui(function(){var e=jle(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Hle=tr.RegExp,Wle=Ui(function(){var e=Hle("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),zle=Ll.get,Gle=wA("native-string-replace",String.prototype.replace),nE=RegExp.prototype.exec,fO=nE,Kle=xr("".charAt),Vle=xr("".indexOf),Yle=xr("".replace),pO=xr("".slice),mO=(cO=/b*/g,Ra(nE,X9=/a/,"a"),Ra(nE,cO,"a"),X9.lastIndex!==0||cO.lastIndex!==0),J9=Fle.BROKEN_CARET,gO=/()??/.exec("")[1]!==void 0;(mO||gO||J9||Ule||Wle)&&(fO=function(e){var t,n,r,i,a,o,s,u=this,f=zle(u),m=mu(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=Ra(fO,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=J9&&u.sticky,re=Ra(Nle,u),$=u.source,ee=0,te=m;if(U&&(re=Yle(re,"y",""),Vle(re,"g")===-1&&(re+="g"),te=pO(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Kle(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),gO&&(n=new RegExp("^"+$+"$(?!\\s)",re)),mO&&(r=u.lastIndex),i=Ra(nE,U?n:u,te),U?i?(i.input=pO(i.input,ee),i[0]=pO(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:mO&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),gO&&i&&i.length>1&&Ra(Gle,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=FA(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var rE=fO;Tc({target:"RegExp",proto:!0,forced:/./.exec!==rE},{exec:rE});var Q9=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return Ge.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge.getSelectedElems(t).some(function(n){if(Ee.isVoid(t,n)&&Ee.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?ct.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):ct.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Xle='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',Jle='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Qle=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=pn("listModule.unOrderedList"),n.iconSvg=Xle,n}return K9(t,e),t}(Q9),Zle=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=pn("listModule.orderedList"),n.iconSvg=Jle,n}return K9(t,e),t}(Q9),$le={key:"bulletedList",factory:function(){return new Qle}},qle={key:"numberedList",factory:function(){return new Zle}},Z9=[],eue={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,a=i!==void 0&&i?"ol":"ul",o=function(f){var m=lO.get(f);if(m==null)return 0;var k=f,K=k.type,U=k.ordered,re=U!==void 0&&U,$=k.level,ee=$===void 0?0:$,te=Ge.findPath(m,f);if(te[0]===0)return ee+1;var Q=st.previous(te),he=Ee.node(m,Q);if(!he)return 0;var me=dv(he,1)[0];if(Ge.getNodeType(me)!==K)return ee+1;var _e=me,ke=_e.ordered,De=ke!==void 0&&ke,Ye=_e.level,rt=Ye===void 0?0:Ye;return rt<ee?ee-rt:rt>ee?0:rt===ee?De===re?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)n+="<"+a+">",Z9.push(a);var u=function(f){var m=lO.get(f);if(m==null)return 0;var k=f,K=k.type,U=k.ordered,re=U!==void 0&&U,$=k.level,ee=$===void 0?0:$,te=Ge.findPath(m,f);if(te[0]===m.children.length-1)return ee+1;var Q=st.next(te),he=Ee.node(m,Q);if(!he)return 0;var me=dv(he,1)[0];if(Ge.getNodeType(me)!==K)return ee+1;var _e=me,ke=_e.ordered,De=ke!==void 0&&ke,Ye=_e.level,rt=Ye===void 0?0:Ye;return rt<ee?ee-rt:rt>ee?0:rt===ee?De===re?0:1:0}(e);if(u>0)for(s=0;s<u;s++)r+="</"+Z9.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},tue=eo("species"),nue=nO.filter,rue=CA>=51||!Ui(function(){var e=[];return(e.constructor={})[tue]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Tc({target:"Array",proto:!0,forced:!rue},{filter:function(e){return nue(this,e,arguments.length>1?arguments[1]:void 0)}});var vO=Function.prototype,$9=vO.apply,iue=vO.bind,q9=vO.call,aue=typeof Reflect=="object"&&Reflect.apply||(iue?q9.bind($9):function(){return q9.apply($9,arguments)}),eB=(eo("species"),RegExp.prototype),oue=v9.charAt,sue=function(e,t,n){return t+(n?oue(e,t).length:1)},lue=Math.floor,yO=xr("".charAt),uue=xr("".replace),bO=xr("".slice),cue=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,due=/\$([$&'`]|\d{1,2})/g,hue=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=due;return i!==void 0&&(i=Zg(i),u=cue),uue(a,u,function(f,m){var k;switch(yO(m,0)){case"$":return"$";case"&":return e;case"`":return bO(t,0,n);case"'":return bO(t,o);case"<":k=i[bO(m,1,-1)];break;default:var K=+m;if(K===0)return f;if(K>s){var U=lue(K/10);return U===0?f:U<=s?r[U-1]===void 0?yO(m,1):r[U-1]+yO(m,1):f}k=r[K-1]}return k===void 0?"":k})},fue=tr.TypeError,pue=function(e,t){var n=e.exec;if(Hi(n)){var r=Ra(n,e,t);return r!==null&&Po(r),r}if(pu(e)==="RegExp")return Ra(rE,e,t);throw fue("RegExp#exec called on incompatible receiver")},EO=eo("replace"),mue=Math.max,gue=Math.min,vue=xr([].concat),_O=xr([].push),tB=xr("".indexOf),nB=xr("".slice),yue="a".replace(/./,"$0")==="$0",rB=!!/./[EO]&&/./[EO]("a","$0")==="";!function(e,t,n,r){var i=eo(e),a=!Ui(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!Ui(function(){var f=!1,m=/a/;return m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=xr(/./[i]),u=function(f,m,k){var K=rB?"$":"$0";return[function(U,re){var $=N1(this),ee=U==null?void 0:tv(U,EO);return ee?Ra(ee,U,$,re):Ra(m,mu($),U,re)},function(U,re){var $=Po(this),ee=mu(U);if(typeof re=="string"&&tB(re,K)===-1&&tB(re,"$<")===-1){var te=k(m,$,ee,re);if(te.done)return te.value}var Q=Hi(re);Q||(re=mu(re));var he=$.global;if(he){var me=$.unicode;$.lastIndex=0}for(var _e=[];;){var ke=pue($,ee);if(ke===null)break;if(_O(_e,ke),!he)break;mu(ke[0])===""&&($.lastIndex=sue(ee,G7($.lastIndex),me))}for(var De,Ye="",rt=0,wt=0;wt<_e.length;wt++){for(var Lt=mu((ke=_e[wt])[0]),Tt=mue(gue(nv(ke.index),ee.length),0),Yt=[],Ft=1;Ft<ke.length;Ft++)_O(Yt,(De=ke[Ft])===void 0?De:String(De));var jt=ke.groups;if(Q){var Wt=vue([Lt],Yt,Tt,ee);jt!==void 0&&_O(Wt,jt);var En=mu(aue(re,void 0,Wt))}else En=hue(Lt,ee,Tt,Yt,jt,re);Tt>=rt&&(Ye+=nB(ee,rt,Tt)+En,rt=Tt+Lt.length)}return Ye+nB(ee,rt)}]}(0,""[e],function(f,m,k,K,U){var re=xr(f),$=m.exec;return $===rE||$===eB.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});Pl(String.prototype,e,u[0]),Pl(eB,i,u[1])}}("replace",0,!!Ui(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!yue||rB);var bue=tr.TypeError,iB=function(e,t,n,r,i,a,o,s){for(var u,f,m=i,k=0,K=!!o&&qA(o,s);k<r;){if(k in n){if(u=K?K(n[k],k,t):n[k],a>0&&eO(u))f=ip(u),m=iB(e,t,u,f,m,a-1)-1;else{if(m>=9007199254740991)throw bue("Exceed the acceptable array length");e[m]=u}m++}k++}return m},Eue=iB;function xO(e){return e.length?e[0].tagName.toLowerCase():""}Tc({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Zg(this),n=ip(t),r=P9(t,0);return r.length=Eue(r,t,t,n,0,e===void 0?1:nv(e)),r}}),rv("flat"),Tc({global:!0},{globalThis:tr}),gs&&(Qe.fn.append=gs),ms&&(Qe.fn.attr=ms),nf&&(Qe.fn.parent=nf);var _ue={renderElems:[kle],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(a){var o=i.selection;if(o!=null)if(_t.isExpanded(o))t(a);else{var s=Ge.getSelectedNodeByType(i,"list-item");if(s!=null)if(o.focus.offset!==0)t(a);else{var u=s.level,f=u===void 0?0:u;f>0?ct.setNodes(i,{level:f-1}):ct.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(a)}else t(a)},i.handleTab=function(){var a,o,s,u,f=i.selection;if(f!=null){if(_t.isCollapsed(f)){var m=Ge.getSelectedNodeByType(i,"list-item");if(m==null)return void n();if(f.focus.offset===0){var k=m.level,K=k===void 0?0:k;return void ct.setNodes(i,{level:K+1})}}if(_t.isExpanded(f)){var U=0,re=!1;try{for(var $=V9(Y9(i)),ee=$.next();!ee.done;ee=$.next()){var te=dv(ee.value,1)[0];Ge.getNodeType(te)==="list-item"?U++:re=!0}}catch(De){a={error:De}}finally{try{ee&&!ee.done&&(o=$.return)&&o.call($)}finally{if(a)throw a.error}}if(re||U<=1)return void n();try{for(var Q=V9(Y9(i)),he=Q.next();!he.done;he=Q.next()){var me=dv(he.value,2),_e=(te=me[0],me[1]),ke=te.level;K=ke===void 0?0:ke,ct.setNodes(i,{level:K+1},{at:_e})}}catch(De){s={error:De}}finally{try{he&&!he.done&&(u=Q.return)&&u.call(Q)}finally{if(s)throw s.error}}}else n()}else n()},i.normalizeNode=function(a){var o=dv(a,2),s=o[0],u=o[1],f=Ge.getNodeType(s);return f!=="bulleted-list"&&f!=="numbered-list"||ct.unwrapNodes(i,{at:u}),r([s,u])},i},menus:[$le,qle],elemsToHtml:[eue],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e);(t=t.filter(function(o){return!!wn.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(o){return xO(o.parent())==="ol"}(r),a=function(o){for(var s=0,u=o.parent(),f=xO(u);f==="ul"||f==="ol";)f=xO(u=u.parent()),s++;return s-1}(r);return{type:"list-item",ordered:i,level:a,children:t}}}]},aB=le(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Array]",o="[object Boolean]",s="[object Date]",u="[object Error]",f="[object Function]",m="[object Map]",k="[object Number]",K="[object Object]",U="[object Promise]",re="[object RegExp]",$="[object Set]",ee="[object String]",te="[object Symbol]",Q="[object WeakMap]",he="[object ArrayBuffer]",me="[object DataView]",_e=/^\[object .+?Constructor\]$/,ke=/^(?:0|[1-9]\d*)$/,De={};De["[object Float32Array]"]=De["[object Float64Array]"]=De["[object Int8Array]"]=De["[object Int16Array]"]=De["[object Int32Array]"]=De["[object Uint8Array]"]=De["[object Uint8ClampedArray]"]=De["[object Uint16Array]"]=De["[object Uint32Array]"]=!0,De[i]=De[a]=De[he]=De[o]=De[me]=De[s]=De[u]=De[f]=De[m]=De[k]=De[K]=De[re]=De[$]=De[ee]=De[Q]=!1;var Ye=typeof ae=="object"&&ae&&ae.Object===Object&&ae,rt=typeof self=="object"&&self&&self.Object===Object&&self,wt=Ye||rt||Function("return this")(),Lt=t&&!t.nodeType&&t,Tt=Lt&&e&&!e.nodeType&&e,Yt=Tt&&Tt.exports===Lt,Ft=Yt&&Ye.process,jt=function(){try{return Ft&&Ft.binding&&Ft.binding("util")}catch(at){}}(),Wt=jt&&jt.isTypedArray;function En(at,bt){for(var un=-1,Kn=at==null?0:at.length;++un<Kn;)if(bt(at[un],un,at))return!0;return!1}function kn(at){var bt=-1,un=Array(at.size);return at.forEach(function(Kn,ri){un[++bt]=[ri,Kn]}),un}function Ln(at){var bt=-1,un=Array(at.size);return at.forEach(function(Kn){un[++bt]=Kn}),un}var Rn=Array.prototype,Ze=Function.prototype,He=Object.prototype,ot=wt["__core-js_shared__"],At=Ze.toString,qt=He.hasOwnProperty,Mt=function(){var at=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return at?"Symbol(src)_1."+at:""}(),Cn=He.toString,Vn=RegExp("^"+At.call(qt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=Yt?wt.Buffer:void 0,lr=wt.Symbol,Ht=wt.Uint8Array,Dr=He.propertyIsEnumerable,hr=Rn.splice,Hn=lr?lr.toStringTag:void 0,fr=Object.getOwnPropertySymbols,Xi=qn?qn.isBuffer:void 0,jr=function(at,bt){return function(un){return at(bt(un))}}(Object.keys,Object),ni=qc(wt,"DataView"),Si=qc(wt,"Map"),fo=qc(wt,"Promise"),Nr=qc(wt,"Set"),Mo=qc(wt,"WeakMap"),il=qc(Object,"create"),Wl=Tu(ni),Fp=Tu(Si),Oh=Tu(fo),al=Tu(Nr),zl=Tu(Mo),_u=lr?lr.prototype:void 0,po=_u?_u.valueOf:void 0;function mo(at){var bt=-1,un=at==null?0:at.length;for(this.clear();++bt<un;){var Kn=at[bt];this.set(Kn[0],Kn[1])}}function go(at){var bt=-1,un=at==null?0:at.length;for(this.clear();++bt<un;){var Kn=at[bt];this.set(Kn[0],Kn[1])}}function wo(at){var bt=-1,un=at==null?0:at.length;for(this.clear();++bt<un;){var Kn=at[bt];this.set(Kn[0],Kn[1])}}function Ha(at){var bt=-1,un=at==null?0:at.length;for(this.__data__=new wo;++bt<un;)this.add(at[bt])}function Ms(at){var bt=this.__data__=new go(at);this.size=bt.size}function k0(at,bt){var un=Su(at),Kn=!un&&K_(at),ri=!un&&!Kn&&Gl(at),Tr=!un&&!Kn&&!ri&&Vl(at),tt=un||Kn||ri||Tr,St=tt?function(kr,gi){for(var ii=-1,Wr=Array(kr);++ii<kr;)Wr[ii]=gi(ii);return Wr}(at.length,String):[],mn=St.length;for(var In in at)!bt&&!qt.call(at,In)||tt&&(In=="length"||ri&&(In=="offset"||In=="parent")||Tr&&(In=="buffer"||In=="byteLength"||In=="byteOffset")||M0(In,mn))||St.push(In);return St}function $c(at,bt){for(var un=at.length;un--;)if(Hp(at[un][0],bt))return un;return-1}function xu(at){return at==null?at===void 0?"[object Undefined]":"[object Null]":Hn&&Hn in Object(at)?function(bt){var un=qt.call(bt,Hn),Kn=bt[Hn];try{bt[Hn]=void 0;var ri=!0}catch(tt){}var Tr=Cn.call(bt);return ri&&(un?bt[Hn]=Kn:delete bt[Hn]),Tr}(at):function(bt){return Cn.call(bt)}(at)}function jp(at){return ed(at)&&xu(at)==i}function Dh(at,bt,un,Kn,ri){return at===bt||(at==null||bt==null||!ed(at)&&!ed(bt)?at!=at&&bt!=bt:function(Tr,tt,St,mn,In,kr){var gi=Su(Tr),ii=Su(tt),Wr=gi?a:is(Tr),La=ii?a:is(tt),vo=(Wr=Wr==i?K:Wr)==K,Rh=(La=La==i?K:La)==K,Cu=Wr==La;if(Cu&&Gl(Tr)){if(!Gl(tt))return!1;gi=!0,vo=!1}if(Cu&&!vo)return kr||(kr=new Ms),gi||Vl(Tr)?Ns(Tr,tt,St,mn,In,kr):function(Rr,zr,Gr,Ji,To,No,ll){switch(Gr){case me:if(Rr.byteLength!=zr.byteLength||Rr.byteOffset!=zr.byteOffset)return!1;Rr=Rr.buffer,zr=zr.buffer;case he:return!(Rr.byteLength!=zr.byteLength||!No(new Ht(Rr),new Ht(zr)));case o:case s:case k:return Hp(+Rr,+zr);case u:return Rr.name==zr.name&&Rr.message==zr.message;case re:case ee:return Rr==zr+"";case m:var nd=kn;case $:var B0=1&Ji;if(nd||(nd=Ln),Rr.size!=zr.size&&!B0)return!1;var X_=ll.get(Rr);if(X_)return X_==zr;Ji|=2,ll.set(Rr,zr);var Wp=Ns(nd(Rr),nd(zr),Ji,To,No,ll);return ll.delete(Rr),Wp;case te:if(po)return po.call(Rr)==po.call(zr)}return!1}(Tr,tt,Wr,St,mn,In,kr);if(!(1&St)){var td=vo&&qt.call(Tr,"__wrapped__"),nr=Rh&&qt.call(tt,"__wrapped__");if(td||nr){var Xr=td?Tr.value():Tr,ca=nr?tt.value():tt;return kr||(kr=new Ms),In(Xr,ca,St,mn,kr)}}return Cu?(kr||(kr=new Ms),function(Rr,zr,Gr,Ji,To,No){var ll=1&Gr,nd=wu(Rr),B0=nd.length,X_=wu(zr).length;if(B0!=X_&&!ll)return!1;for(var Wp=B0;Wp--;){var Ih=nd[Wp];if(!(ll?Ih in zr:qt.call(zr,Ih)))return!1}var Oz=No.get(Rr);if(Oz&&No.get(zr))return Oz==zr;var J_=!0;No.set(Rr,zr),No.set(zr,Rr);for(var KI=ll;++Wp<B0;){var Q_=Rr[Ih=nd[Wp]],Z_=zr[Ih];if(Ji)var Dz=ll?Ji(Z_,Q_,Ih,zr,Rr,No):Ji(Q_,Z_,Ih,Rr,zr,No);if(!(Dz===void 0?Q_===Z_||To(Q_,Z_,Gr,Ji,No):Dz)){J_=!1;break}KI||(KI=Ih=="constructor")}if(J_&&!KI){var $_=Rr.constructor,q_=zr.constructor;$_==q_||!("constructor"in Rr)||!("constructor"in zr)||typeof $_=="function"&&$_ instanceof $_&&typeof q_=="function"&&q_ instanceof q_||(J_=!1)}return No.delete(Rr),No.delete(zr),J_}(Tr,tt,St,mn,In,kr)):!1}(at,bt,un,Kn,Dh,ri))}function Up(at){return!(!V_(at)||function(bt){return!!Mt&&Mt in bt}(at))&&(N0(at)?Vn:_e).test(Tu(at))}function ol(at){if(un=(bt=at)&&bt.constructor,Kn=typeof un=="function"&&un.prototype||He,bt!==Kn)return jr(at);var bt,un,Kn,ri=[];for(var Tr in Object(at))qt.call(at,Tr)&&Tr!="constructor"&&ri.push(Tr);return ri}function Ns(at,bt,un,Kn,ri,Tr){var tt=1&un,St=at.length,mn=bt.length;if(St!=mn&&!(tt&&mn>St))return!1;var In=Tr.get(at);if(In&&Tr.get(bt))return In==bt;var kr=-1,gi=!0,ii=2&un?new Ha:void 0;for(Tr.set(at,bt),Tr.set(bt,at);++kr<St;){var Wr=at[kr],La=bt[kr];if(Kn)var vo=tt?Kn(La,Wr,kr,bt,at,Tr):Kn(Wr,La,kr,at,bt,Tr);if(vo!==void 0){if(vo)continue;gi=!1;break}if(ii){if(!En(bt,function(Rh,Cu){if(td=Cu,!ii.has(td)&&(Wr===Rh||ri(Wr,Rh,un,Kn,Tr)))return ii.push(Cu);var td})){gi=!1;break}}else if(Wr!==La&&!ri(Wr,La,un,Kn,Tr)){gi=!1;break}}return Tr.delete(at),Tr.delete(bt),gi}function wu(at){return function(bt,un,Kn){var ri=un(bt);return Su(bt)?ri:function(Tr,tt){for(var St=-1,mn=tt.length,In=Tr.length;++St<mn;)Tr[In+St]=tt[St];return Tr}(ri,Kn(bt))}(at,Y_,G_)}function sl(at,bt){var un,Kn,ri=at.__data__;return((Kn=typeof(un=bt))=="string"||Kn=="number"||Kn=="symbol"||Kn=="boolean"?un!=="__proto__":un===null)?ri[typeof bt=="string"?"string":"hash"]:ri.map}function qc(at,bt){var un=function(Kn,ri){return Kn==null?void 0:Kn[ri]}(at,bt);return Up(un)?un:void 0}mo.prototype.clear=function(){this.__data__=il?il(null):{},this.size=0},mo.prototype.delete=function(at){var bt=this.has(at)&&delete this.__data__[at];return this.size-=bt?1:0,bt},mo.prototype.get=function(at){var bt=this.__data__;if(il){var un=bt[at];return un===n?void 0:un}return qt.call(bt,at)?bt[at]:void 0},mo.prototype.has=function(at){var bt=this.__data__;return il?bt[at]!==void 0:qt.call(bt,at)},mo.prototype.set=function(at,bt){var un=this.__data__;return this.size+=this.has(at)?0:1,un[at]=il&&bt===void 0?n:bt,this},go.prototype.clear=function(){this.__data__=[],this.size=0},go.prototype.delete=function(at){var bt=this.__data__,un=$c(bt,at);return!(un<0)&&(un==bt.length-1?bt.pop():hr.call(bt,un,1),--this.size,!0)},go.prototype.get=function(at){var bt=this.__data__,un=$c(bt,at);return un<0?void 0:bt[un][1]},go.prototype.has=function(at){return $c(this.__data__,at)>-1},go.prototype.set=function(at,bt){var un=this.__data__,Kn=$c(un,at);return Kn<0?(++this.size,un.push([at,bt])):un[Kn][1]=bt,this},wo.prototype.clear=function(){this.size=0,this.__data__={hash:new mo,map:new(Si||go),string:new mo}},wo.prototype.delete=function(at){var bt=sl(this,at).delete(at);return this.size-=bt?1:0,bt},wo.prototype.get=function(at){return sl(this,at).get(at)},wo.prototype.has=function(at){return sl(this,at).has(at)},wo.prototype.set=function(at,bt){var un=sl(this,at),Kn=un.size;return un.set(at,bt),this.size+=un.size==Kn?0:1,this},Ha.prototype.add=Ha.prototype.push=function(at){return this.__data__.set(at,n),this},Ha.prototype.has=function(at){return this.__data__.has(at)},Ms.prototype.clear=function(){this.__data__=new go,this.size=0},Ms.prototype.delete=function(at){var bt=this.__data__,un=bt.delete(at);return this.size=bt.size,un},Ms.prototype.get=function(at){return this.__data__.get(at)},Ms.prototype.has=function(at){return this.__data__.has(at)},Ms.prototype.set=function(at,bt){var un=this.__data__;if(un instanceof go){var Kn=un.__data__;if(!Si||Kn.length<199)return Kn.push([at,bt]),this.size=++un.size,this;un=this.__data__=new wo(Kn)}return un.set(at,bt),this.size=un.size,this};var G_=fr?function(at){return at==null?[]:(at=Object(at),function(bt,un){for(var Kn=-1,ri=bt==null?0:bt.length,Tr=0,tt=[];++Kn<ri;){var St=bt[Kn];un(St,Kn,bt)&&(tt[Tr++]=St)}return tt}(fr(at),function(bt){return Dr.call(at,bt)}))}:function(){return[]},is=xu;function M0(at,bt){return!!(bt=bt==null?r:bt)&&(typeof at=="number"||ke.test(at))&&at>-1&&at%1==0&&at<bt}function Tu(at){if(at!=null){try{return At.call(at)}catch(bt){}try{return at+""}catch(bt){}}return""}function Hp(at,bt){return at===bt||at!=at&&bt!=bt}(ni&&is(new ni(new ArrayBuffer(1)))!=me||Si&&is(new Si)!=m||fo&&is(fo.resolve())!=U||Nr&&is(new Nr)!=$||Mo&&is(new Mo)!=Q)&&(is=function(at){var bt=xu(at),un=bt==K?at.constructor:void 0,Kn=un?Tu(un):"";if(Kn)switch(Kn){case Wl:return me;case Fp:return m;case Oh:return U;case al:return $;case zl:return Q}return bt});var K_=jp(function(){return arguments}())?jp:function(at){return ed(at)&&qt.call(at,"callee")&&!Dr.call(at,"callee")},Su=Array.isArray,Gl=Xi||function(){return!1};function N0(at){if(!V_(at))return!1;var bt=xu(at);return bt==f||bt=="[object GeneratorFunction]"||bt=="[object AsyncFunction]"||bt=="[object Proxy]"}function Kl(at){return typeof at=="number"&&at>-1&&at%1==0&&at<=r}function V_(at){var bt=typeof at;return at!=null&&(bt=="object"||bt=="function")}function ed(at){return at!=null&&typeof at=="object"}var Vl=Wt?function(at){return function(bt){return at(bt)}}(Wt):function(at){return ed(at)&&Kl(at.length)&&!!De[xu(at)]};function Y_(at){return(bt=at)!=null&&Kl(bt.length)&&!N0(bt)?k0(at):ol(at);var bt}e.exports=function(at,bt){return Dh(at,bt)}});Ro("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Ro("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var oB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function sB(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cc,iE,aE=function(e){return e&&e.Math==Math&&e},Er=aE(typeof globalThis=="object"&&globalThis)||aE(typeof window=="object"&&window)||aE(typeof self=="object"&&self)||aE(typeof oB=="object"&&oB)||function(){return this}()||Function("return this")(),_a=function(e){try{return!!e()}catch(t){return!0}},Ac=!_a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),hv=Function.prototype.call,xa=hv.bind?hv.bind(hv):function(){return hv.apply(hv,arguments)},lB={}.propertyIsEnumerable,uB=Object.getOwnPropertyDescriptor,xue={f:uB&&!lB.call({1:2},1)?function(e){var t=uB(this,e);return!!t&&t.enumerable}:lB},wO=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cB=Function.prototype,TO=cB.bind,SO=cB.call,wue=TO&&TO.bind(SO),Or=TO?function(e){return e&&wue(SO,e)}:function(e){return e&&function(){return SO.apply(e,arguments)}},Tue=Or({}.toString),Sue=Or("".slice),Oc=function(e){return Sue(Tue(e),8,-1)},CO=Er.Object,Cue=Or("".split),dB=_a(function(){return!CO("z").propertyIsEnumerable(0)})?function(e){return Oc(e)=="String"?Cue(e,""):CO(e)}:CO,Aue=Er.TypeError,Dc=function(e){if(e==null)throw Aue("Can't call method on "+e);return e},fv=function(e){return dB(Dc(e))},to=function(e){return typeof e=="function"},Ds=function(e){return typeof e=="object"?e!==null:to(e)},Oue=function(e){return to(e)?e:void 0},pv=function(e,t){return arguments.length<2?Oue(Er[e]):Er[e]&&Er[e][t]},hB=Or({}.isPrototypeOf),AO=pv("navigator","userAgent")||"",fB=Er.process,pB=Er.Deno,mB=fB&&fB.versions||pB&&pB.version,gB=mB&&mB.v8;gB&&(iE=(Cc=gB.split("."))[0]>0&&Cc[0]<4?1:+(Cc[0]+Cc[1])),!iE&&AO&&(!(Cc=AO.match(/Edge\/(\d+)/))||Cc[1]>=74)&&(Cc=AO.match(/Chrome\/(\d+)/))&&(iE=+Cc[1]);var OO=iE,DO=!!Object.getOwnPropertySymbols&&!_a(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&OO&&OO<41}),RO=DO&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Due=Er.Object,IO=RO?function(e){return typeof e=="symbol"}:function(e){var t=pv("Symbol");return to(t)&&hB(t.prototype,Due(e))},Rue=Er.String,vB=function(e){try{return Rue(e)}catch(t){return"Object"}},Iue=Er.TypeError,yB=function(e){if(to(e))return e;throw Iue(vB(e)+" is not a function")},LO=function(e,t){var n=e[t];return n==null?void 0:yB(n)},Lue=Er.TypeError,Pue=Object.defineProperty,PO=function(e,t){try{Pue(Er,e,{value:t,configurable:!0,writable:!0})}catch(n){Er[e]=t}return t},Rc=Er["__core-js_shared__"]||PO("__core-js_shared__",{}),kO=sB(function(e){(e.exports=function(t,n){return Rc[t]||(Rc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),kue=Er.Object,MO=function(e){return kue(Dc(e))},Mue=Or({}.hasOwnProperty),Rs=Object.hasOwn||function(e,t){return Mue(MO(e),t)},Nue=0,Bue=Math.random(),Fue=Or(1 .toString),bB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Fue(++Nue+Bue,36)},mv=kO("wks"),lh=Er.Symbol,EB=lh&&lh.for,jue=RO?lh:lh&&lh.withoutSetter||bB,Is=function(e){if(!Rs(mv,e)||!DO&&typeof mv[e]!="string"){var t="Symbol."+e;DO&&Rs(lh,e)?mv[e]=lh[e]:mv[e]=RO&&EB?EB(t):jue(t)}return mv[e]},Uue=Er.TypeError,Hue=Is("toPrimitive"),NO=function(e){var t=function(n,r){if(!Ds(n)||IO(n))return n;var i,a=LO(n,Hue);if(a){if(r===void 0&&(r="default"),i=xa(a,n,r),!Ds(i)||IO(i))return i;throw Uue("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&to(u=o.toString)&&!Ds(f=xa(u,o)))return f;if(to(u=o.valueOf)&&!Ds(f=xa(u,o)))return f;if(s!=="string"&&to(u=o.toString)&&!Ds(f=xa(u,o)))return f;throw Lue("Can't convert object to primitive value")}(n,r)}(e,"string");return IO(t)?t:t+""},BO=Er.document,Wue=Ds(BO)&&Ds(BO.createElement),FO=function(e){return Wue?BO.createElement(e):{}},_B=!Ac&&!_a(function(){return Object.defineProperty(FO("div"),"a",{get:function(){return 7}}).a!=7}),xB=Object.getOwnPropertyDescriptor,wB={f:Ac?xB:function(e,t){if(e=fv(e),t=NO(t),_B)try{return xB(e,t)}catch(n){}if(Rs(e,t))return wO(!xa(xue.f,e,t),e[t])}},zue=Er.String,Gue=Er.TypeError,Ls=function(e){if(Ds(e))return e;throw Gue(zue(e)+" is not an object")},Kue=Er.TypeError,TB=Object.defineProperty,gv={f:Ac?TB:function(e,t,n){if(Ls(e),t=NO(t),Ls(n),_B)try{return TB(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Kue("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sp=Ac?function(e,t,n){return gv.f(e,t,wO(1,n))}:function(e,t,n){return e[t]=n,e},Vue=Or(Function.toString);to(Rc.inspectSource)||(Rc.inspectSource=function(e){return Vue(e)});var oE,vv,sE,jO=Rc.inspectSource,SB=Er.WeakMap,Yue=to(SB)&&/native code/.test(jO(SB)),CB=kO("keys"),AB=function(e){return CB[e]||(CB[e]=bB(e))},UO={},HO=Er.TypeError,Xue=Er.WeakMap;if(Yue||Rc.state){var uh=Rc.state||(Rc.state=new Xue),Jue=Or(uh.get),OB=Or(uh.has),Que=Or(uh.set);oE=function(e,t){if(OB(uh,e))throw new HO("Object already initialized");return t.facade=e,Que(uh,e,t),t},vv=function(e){return Jue(uh,e)||{}},sE=function(e){return OB(uh,e)}}else{var lp=AB("state");UO[lp]=!0,oE=function(e,t){if(Rs(e,lp))throw new HO("Object already initialized");return t.facade=e,sp(e,lp,t),t},vv=function(e){return Rs(e,lp)?e[lp]:{}},sE=function(e){return Rs(e,lp)}}var WO={set:oE,get:vv,has:sE,enforce:function(e){return sE(e)?vv(e):oE(e,{})},getterFor:function(e){return function(t){var n;if(!Ds(t)||(n=vv(t)).type!==e)throw HO("Incompatible receiver, "+e+" required");return n}}},DB=Function.prototype,Zue=Ac&&Object.getOwnPropertyDescriptor,zO=Rs(DB,"name"),GO={EXISTS:zO,PROPER:zO&&function(){}.name==="something",CONFIGURABLE:zO&&(!Ac||Ac&&Zue(DB,"name").configurable)},yv=sB(function(e){var t=GO.CONFIGURABLE,n=WO.get,r=WO.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;to(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Rs(s,"name")||t&&s.name!==U)&&sp(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==Er?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:sp(a,o,s)):k?a[o]=s:PO(o,s)})(Function.prototype,"toString",function(){return to(this)&&n(this).source||jO(this)})}),$ue=Math.ceil,que=Math.floor,lE=function(e){var t=+e;return t!=t||t===0?0:(t>0?que:$ue)(t)},ece=Math.max,tce=Math.min,bv=function(e,t){var n=lE(e);return n<0?ece(n+t,0):tce(n,t)},nce=Math.min,KO=function(e){return e>0?nce(lE(e),9007199254740991):0},uE=function(e){return KO(e.length)},RB=function(e){return function(t,n,r){var i,a=fv(t),o=uE(a),s=bv(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},rce=(RB(!0),RB(!1)),IB=Or([].push),LB=function(e,t){var n,r=fv(e),i=0,a=[];for(n in r)!Rs(UO,n)&&Rs(r,n)&&IB(a,n);for(;t.length>i;)Rs(r,n=t[i++])&&(~rce(a,n)||IB(a,n));return a},cE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ice=cE.concat("length","prototype"),ace={f:Object.getOwnPropertyNames||function(e){return LB(e,ice)}},oce={f:Object.getOwnPropertySymbols},sce=Or([].concat),lce=pv("Reflect","ownKeys")||function(e){var t=ace.f(Ls(e)),n=oce.f;return n?sce(t,n(e)):t},uce=function(e,t){for(var n=lce(t),r=gv.f,i=wB.f,a=0;a<n.length;a++){var o=n[a];Rs(e,o)||r(e,o,i(t,o))}},cce=/#|\.prototype\./,Ev=function(e,t){var n=hce[dce(e)];return n==pce||n!=fce&&(to(t)?_a(t):!!t)},dce=Ev.normalize=function(e){return String(e).replace(cce,".").toLowerCase()},hce=Ev.data={},fce=Ev.NATIVE="N",pce=Ev.POLYFILL="P",mce=Ev,gce=wB.f,Ic=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?Er:f?Er[s]||PO(s,{}):(Er[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=gce(n,r))&&o.value:n[r],!mce(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;uce(a,i)}(e.sham||i&&i.sham)&&sp(a,"sham",!0),yv(n,r,a,e)}},PB={};PB[Is("toStringTag")]="z";var VO=String(PB)==="[object z]",vce=Is("toStringTag"),yce=Er.Object,bce=Oc(function(){return arguments}())=="Arguments",YO=VO?Oc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=yce(e),vce))=="string"?n:bce?Oc(t):(r=Oc(t))=="Object"&&to(t.callee)?"Arguments":r},Ece=Er.String,co=function(e){if(YO(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ece(e)},_ce=/"/g,xce=Or("".replace);Ic({target:"String",proto:!0,forced:_a(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=co(Dc(this)),r="<a",(r+=' name="'+xce(co(t),_ce,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var dE,kB=function(){var e=Ls(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},XO=Er.RegExp,JO=_a(function(){var e=XO("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),wce=JO||_a(function(){return!XO("a","y").sticky}),MB={BROKEN_CARET:JO||_a(function(){var e=XO("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:wce,UNSUPPORTED_Y:JO},Tce=Object.keys||function(e){return LB(e,cE)},Sce=Ac?Object.defineProperties:function(e,t){Ls(e);for(var n,r=fv(t),i=Tce(t),a=i.length,o=0;a>o;)gv.f(e,n=i[o++],r[n]);return e},Cce=pv("document","documentElement"),NB=AB("IE_PROTO"),QO=function(){},BB=function(e){return"<script>"+e+"</script>"},FB=function(e){e.write(BB("")),e.close();var t=e.parentWindow.Object;return e=null,t},hE=function(){try{dE=new ActiveXObject("htmlfile")}catch(r){}var e,t;hE=typeof document!="undefined"?document.domain&&dE?FB(dE):((t=FO("iframe")).style.display="none",Cce.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(BB("document.F=Object")),e.close(),e.F):FB(dE);for(var n=cE.length;n--;)delete hE.prototype[cE[n]];return hE()};UO[NB]=!0;var jB,ZO,UB=Object.create||function(e,t){var n;return e!==null?(QO.prototype=Ls(e),n=new QO,QO.prototype=null,n[NB]=e):n=hE(),t===void 0?n:Sce(n,t)},Ace=Er.RegExp,Oce=_a(function(){var e=Ace(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Dce=Er.RegExp,Rce=_a(function(){var e=Dce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ice=WO.get,Lce=kO("native-string-replace",String.prototype.replace),fE=RegExp.prototype.exec,$O=fE,Pce=Or("".charAt),kce=Or("".indexOf),Mce=Or("".replace),qO=Or("".slice),eD=(ZO=/b*/g,xa(fE,jB=/a/,"a"),xa(fE,ZO,"a"),jB.lastIndex!==0||ZO.lastIndex!==0),HB=MB.BROKEN_CARET,tD=/()??/.exec("")[1]!==void 0;(eD||tD||HB||Oce||Rce)&&($O=function(e){var t,n,r,i,a,o,s,u=this,f=Ice(u),m=co(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=xa($O,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=HB&&u.sticky,re=xa(kB,u),$=u.source,ee=0,te=m;if(U&&(re=Mce(re,"y",""),kce(re,"g")===-1&&(re+="g"),te=qO(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&Pce(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),tD&&(n=new RegExp("^"+$+"$(?!\\s)",re)),eD&&(r=u.lastIndex),i=xa(fE,U?n:u,te),U?i?(i.input=qO(i.input,ee),i[0]=qO(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:eD&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),tD&&i&&i.length>1&&xa(Lce,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=UB(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var _v=$O;Ic({target:"RegExp",proto:!0,forced:/./.exec!==_v},{exec:_v});var pE=Array.isArray||function(e){return Oc(e)=="Array"},WB=function(){},Nce=[],zB=pv("Reflect","construct"),nD=/^\s*(?:class|function)\b/,Bce=Or(nD.exec),Fce=!nD.exec(WB),xv=function(e){if(!to(e))return!1;try{return zB(WB,Nce,e),!0}catch(t){return!1}},rD=!zB||_a(function(){var e;return xv(xv.call)||!xv(Object)||!xv(function(){e=!0})||e})?function(e){if(!to(e))return!1;switch(YO(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fce||!!Bce(nD,jO(e))}:xv,GB=function(e,t,n){var r=NO(t);r in e?gv.f(e,r,wO(0,n)):e[r]=n},jce=Is("species"),iD=function(e){return OO>=51||!_a(function(){var t=[];return(t.constructor={})[jce]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Uce=Or([].slice),Hce=iD("slice"),Wce=Is("species"),aD=Er.Array,zce=Math.max;function el(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function KB(e){var t=e.selection;if(t==null)return!1;var n=el(Ee.nodes(e,{match:function(a){return Ge.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=el(n,2)[1],i=Ee.start(e,r);if(mr.equals(t.anchor,i))return!0}return!1}function VB(e,t){var n,r,i=Ee.nodes(e,{at:t,match:function(u){return Ge.getNodeType(u)==="table"}}),a=!1;try{for(var o=function(u){var f=typeof Symbol=="function"&&Symbol.iterator,m=f&&u[f],k=0;if(m)return m.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&k>=u.length&&(u=void 0),{value:u&&u[k++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),s=o.next();!s.done;s=o.next())s.value,a=!0}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}Ic({target:"Array",proto:!0,forced:!Hce},{slice:function(e,t){var n,r,i,a=fv(this),o=uE(a),s=bv(e,o),u=bv(t===void 0?o:t,o);if(pE(a)&&(n=a.constructor,(rD(n)&&(n===aD||pE(n.prototype))||Ds(n)&&(n=n[Wce])===null)&&(n=void 0),n===aD||n===void 0))return Uce(a,s,u);for(r=new(n===void 0?aD:n)(zce(u-s,0)),i=0;s<u;s++,i++)s in a&&GB(r,i,a[s]);return r.length=i,r}});var YB=Or(Or.bind),Gce=Is("species"),XB=Er.Array,Kce=function(e,t){return new(function(n){var r;return pE(n)&&(r=n.constructor,(rD(r)&&(r===XB||pE(r.prototype))||Ds(r)&&(r=r[Gce])===null)&&(r=void 0)),r===void 0?XB:r}(e))(t===0?0:t)},JB=Or([].push),Lc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=MO(u),$=dB(re),ee=function(_e,ke){return yB(_e),ke===void 0?_e:YB?YB(_e,ke):function(){return _e.apply(ke,arguments)}}(f,m),te=uE($),Q=0,he=k||Kce,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:JB(me,K)}else switch(e){case 4:return!1;case 7:JB(me,K)}return a?-1:r||i?i:me}},mE={forEach:Lc(0),map:Lc(1),filter:Lc(2),some:Lc(3),every:Lc(4),find:Lc(5),findIndex:Lc(6),filterReject:Lc(7)},Vce=mE.map;Ic({target:"Array",proto:!0,forced:!iD("map")},{map:function(e){return Vce(this,e,arguments.length>1?arguments[1]:void 0)}});var Yce=VO?{}.toString:function(){return"[object "+YO(this)+"]"};function gE(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function QB(e){return gE(e).every(function(t){return!!t.isHeader})}VO||yv(Object.prototype,"toString",Yce,{unsafe:!0});var Xce=GO.PROPER,oD=RegExp.prototype,ZB=oD.toString,Jce=Or(kB),Qce=_a(function(){return ZB.call({source:"a",flags:"b"})!="/a/b"}),Zce=Xce&&ZB.name!="toString";(Qce||Zce)&&yv(RegExp.prototype,"toString",function(){var e=Ls(this),t=co(e.source),n=e.flags;return"/"+t+"/"+co(n===void 0&&hB(oD,e)&&!("flags"in oD)?Jce(e):n)},{unsafe:!0});var sD=Is("unscopables"),lD=Array.prototype;lD[sD]==null&&gv.f(lD,sD,{configurable:!0,value:UB(null)});var $ce=mE.find,$B=!0;"find"in[]&&Array(1).find(function(){$B=!1}),Ic({target:"Array",proto:!0,forced:$B},{find:function(e){return $ce(this,e,arguments.length>1?arguments[1]:void 0)}}),lD[sD].find=!0;var uD=Function.prototype,qB=uD.apply,qce=uD.bind,eF=uD.call,tF=typeof Reflect=="object"&&Reflect.apply||(qce?eF.bind(qB):function(){return eF.apply(qB,arguments)}),ede=Is("species"),cD=RegExp.prototype,nF=function(e,t,n,r){var i=Is(e),a=!_a(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!_a(function(){var f=!1,m=/a/;return e==="split"&&((m={}).constructor={},m.constructor[ede]=function(){return m},m.flags="",m[i]=/./[i]),m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=Or(/./[i]),u=t(i,""[e],function(f,m,k,K,U){var re=Or(f),$=m.exec;return $===_v||$===cD.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});yv(String.prototype,e,u[0]),yv(cD,i,u[1])}r&&sp(cD[i],"sham",!0)},tde=Is("match"),nde=Er.TypeError,rde=Is("species"),ide=Or("".charAt),rF=Or("".charCodeAt),ade=Or("".slice),iF=function(e){return function(t,n){var r,i,a=co(Dc(t)),o=lE(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=rF(a,o))<55296||r>56319||o+1===s||(i=rF(a,o+1))<56320||i>57343?e?ide(a,o):r:e?ade(a,o,o+2):i-56320+(r-55296<<10)+65536}},ode=(iF(!1),iF(!0)),aF=function(e,t,n){return t+(n?ode(e,t).length:1)},sde=Er.Array,lde=Math.max,oF=function(e,t,n){for(var r=uE(e),i=bv(t,r),a=bv(n===void 0?r:n,r),o=sde(lde(a-i,0)),s=0;i<a;i++,s++)GB(o,s,e[i]);return o.length=s,o},ude=Er.TypeError,dD=function(e,t){var n=e.exec;if(to(n)){var r=xa(n,e,t);return r!==null&&Ls(r),r}if(Oc(e)==="RegExp")return xa(_v,e,t);throw ude("RegExp#exec called on incompatible receiver")},up=MB.UNSUPPORTED_Y,cde=Math.min,sF=[].push,dde=Or(/./.exec),cp=Or(sF),wv=Or("".slice);nF("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,a){var o,s,u=co(Dc(this)),f=a===void 0?4294967295:a>>>0;if(f===0)return[];if(i===void 0)return[u];if(!Ds(o=i)||!((s=o[tde])!==void 0?s:Oc(o)=="RegExp"))return xa(t,u,i,f);for(var m,k,K,U=[],re=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),$=0,ee=new RegExp(i.source,re+"g");(m=xa(_v,ee,u))&&!((k=ee.lastIndex)>$&&(cp(U,wv(u,$,m.index)),m.length>1&&m.index<u.length&&tF(sF,U,oF(m,1)),K=m[0].length,$=k,U.length>=f));)ee.lastIndex===m.index&&ee.lastIndex++;return $===u.length?!K&&dde(ee,"")||cp(U,""):cp(U,wv(u,$)),U.length>f?oF(U,0,f):U}:"0".split(void 0,0).length?function(i,a){return i===void 0&&a===0?[]:xa(t,this,i,a)}:t,[function(i,a){var o=Dc(this),s=i==null?void 0:LO(i,e);return s?xa(s,i,o,a):xa(r,co(o),i,a)},function(i,a){var o=Ls(this),s=co(i),u=n(r,o,s,a,r!==t);if(u.done)return u.value;var f=function(me,_e){var ke,De=Ls(me).constructor;return De===void 0||(ke=Ls(De)[rde])==null?_e:function(Ye){if(rD(Ye))return Ye;throw nde(vB(Ye)+" is not a constructor")}(ke)}(o,RegExp),m=o.unicode,k=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(up?"g":"y"),K=new f(up?"^(?:"+o.source+")":o,k),U=a===void 0?4294967295:a>>>0;if(U===0)return[];if(s.length===0)return dD(K,s)===null?[s]:[];for(var re=0,$=0,ee=[];$<s.length;){K.lastIndex=up?0:$;var te,Q=dD(K,up?wv(s,$):s);if(Q===null||(te=cde(KO(K.lastIndex+(up?$:0)),s.length))===re)$=aF(s,$,m);else{if(cp(ee,wv(s,re,$)),ee.length===U)return ee;for(var he=1;he<=Q.length-1;he++)if(cp(ee,Q[he]),ee.length===U)return ee;$=re=te}}return cp(ee,wv(s,re)),ee}]},!!_a(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),up);var hD=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,lF=Or("".replace),vE="["+hD+"]",hde=RegExp("^"+vE+vE+"*"),fde=RegExp(vE+vE+"*$"),fD=function(e){return function(t){var n=co(Dc(t));return 1&e&&(n=lF(n,hde,"")),2&e&&(n=lF(n,fde,"")),n}},pde={start:fD(1),end:fD(2),trim:fD(3)},mde=GO.PROPER,gde=pde.trim;function uF(e){return e.length?e[0].tagName.toLowerCase():""}Ic({target:"String",proto:!0,forced:function(e){return _a(function(){return!!hD[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||mde&&hD[e].name!==e})}("trim")},{trim:function(){return gde(this)}}),Ic({global:!0},{globalThis:Er}),gs&&(Qe.fn.append=gs),_l&&(Qe.fn.on=_l),zu&&(Qe.fn.focus=zu),ms&&(Qe.fn.attr=ms),El&&(Qe.fn.val=El),Wu&&(Qe.fn.html=Wu),ef&&(Qe.fn.dataset=ef),Zh&&(Qe.fn.addClass=Zh),$h&&(Qe.fn.removeClass=$h),af&&(Qe.fn.children=af),Fy&&(Qe.fn.each=Fy),rf&&(Qe.fn.find=rf);var Tv=!1,cF=0,dF=0,Sv=null,Cv=null,Av=Qe("body");function hF(e){Tv=!1,Cv=null,Sv=null,Av.off("mousemove",fF),Av.off("mouseup",hF)}Av.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Tv=!0;var n=e.clientX;cF=n;var r=t.getBoundingClientRect().width;dF=r,Av.on("mousemove",fF),Av.on("mouseup",hF)}});var fF=Ed(function(e){if(Tv&&Cv!=null&&Sv!=null){e.preventDefault();var t=e.clientX,n=dF+(t-cF);(n=Math.floor(100*n)/100)<30&&(n=30),ct.setNodes(Cv,{width:n.toString()},{at:Sv})}},100),vde={type:"table",renderElem:function(e,t,n){var r=function(s,u){if(s.isDisabled())return!1;var f=s.selection;if(f==null)return!0;if(_t.isCollapsed(f))return!0;var m=f.anchor,k=f.focus,K=Ge.findPath(s,u),U=Ee.start(s,K),re=Ee.end(s,K),$=mr.compare(m,re)<=0&&mr.compare(m,U)>=0,ee=mr.compare(k,re)<=0&&mr.compare(k,U)>=0;return!!($&&ee&&st.equals(m.path.slice(0,3),k.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?"auto":i,o=er("div",{className:"table-container","data-selected":Ge.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var u=Ge.findPath(n,e),f=Ee.start(n,u),m=n.selection;m!=null?m.anchor.path[0]!==u[0]&&n.select(f):n.select(f)}}}},er("table",{width:a,contentEditable:r},er("colgroup",null,gE(e).map(function(s){var u=s.width;return er("col",{width:u===void 0?"auto":u})})),er("tbody",null,t)));return o}},yde={type:"table-row",renderElem:function(e,t,n){return er("tr",null,t)}},bde={type:"table-cell",renderElem:function(e,t,n){var r=function(K,U){var re=Ge.getParentNode(K,U);if(re==null)return!1;var $=Ge.getParentNode(K,re);return $!=null&&gE($).some(function(ee){return ee===U})}(n,e),i=e,a=i.colSpan,o=a===void 0?1:a,s=i.rowSpan,u=s===void 0?1:s,f=i.isHeader,m=f!==void 0&&f;if(!r)return er("td",{colSpan:o,rowSpan:u},t);var k=er(m?"th":"td",{colSpan:o,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Ed(function(K){var U=this.elm;if(U!=null){var re=U.getBoundingClientRect(),$=re.left,ee=re.width,te=re.top,Q=re.height,he=K.clientX,me=K.clientY;Tv||(he>$+ee-5&&he<$+ee&&me>te&&me<te+Q?(U.style.cursor="col-resize",Cv=n,Sv=Ge.findPath(n,e)):Tv||(U.style.cursor="auto",Cv=null,Sv=null))}},100)}},t);return k}},Ede={selector:"table",preParseHtml:function(e){var t=Qe(e);if(uF(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},_de=mE.filter;Ic({target:"Array",proto:!0,forced:!iD("filter")},{filter:function(e){return _de(this,e,arguments.length>1?arguments[1]:void 0)}});var xde=Math.floor,pD=Or("".charAt),wde=Or("".replace),mD=Or("".slice),Tde=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Sde=/\$([$&'`]|\d{1,2})/g,Cde=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=Sde;return i!==void 0&&(i=MO(i),u=Tde),wde(a,u,function(f,m){var k;switch(pD(m,0)){case"$":return"$";case"&":return e;case"`":return mD(t,0,n);case"'":return mD(t,o);case"<":k=i[mD(m,1,-1)];break;default:var K=+m;if(K===0)return f;if(K>s){var U=xde(K/10);return U===0?f:U<=s?r[U-1]===void 0?pD(m,1):r[U-1]+pD(m,1):f}k=r[K-1]}return k===void 0?"":k})},gD=Is("replace"),Ade=Math.max,Ode=Math.min,Dde=Or([].concat),vD=Or([].push),pF=Or("".indexOf),mF=Or("".slice),Rde="a".replace(/./,"$0")==="$0",gF=!!/./[gD]&&/./[gD]("a","$0")==="";nF("replace",function(e,t,n){var r=gF?"$":"$0";return[function(i,a){var o=Dc(this),s=i==null?void 0:LO(i,gD);return s?xa(s,i,o,a):xa(t,co(o),i,a)},function(i,a){var o=Ls(this),s=co(i);if(typeof a=="string"&&pF(a,r)===-1&&pF(a,"$<")===-1){var u=n(t,o,s,a);if(u.done)return u.value}var f=to(a);f||(a=co(a));var m=o.global;if(m){var k=o.unicode;o.lastIndex=0}for(var K=[];;){var U=dD(o,s);if(U===null)break;if(vD(K,U),!m)break;co(U[0])===""&&(o.lastIndex=aF(s,KO(o.lastIndex),k))}for(var re,$="",ee=0,te=0;te<K.length;te++){for(var Q=co((U=K[te])[0]),he=Ade(Ode(lE(U.index),s.length),0),me=[],_e=1;_e<U.length;_e++)vD(me,(re=U[_e])===void 0?re:String(re));var ke=U.groups;if(f){var De=Dde([Q],me,he,s);ke!==void 0&&vD(De,ke);var Ye=co(tF(a,void 0,De))}else Ye=Cde(Q,s,he,me,ke,a);he>=ee&&($+=mF(s,ee,he)+Ye,ee=he+Q.length)}return $+mF(s,ee)}]},!!_a(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Rde||gF);var Ide={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e);(t=t.filter(function(s){return!!wn.isText(s)||!!n.isInline(s)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1"),a=parseInt(r.attr("rowSpan")||"1"),o=r.attr("width")||"auto";return{type:"table-cell",isHeader:uF(r)==="th",colSpan:i,rowSpan:a,width:o,children:t}}},Lde={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return Ge.getNodeType(r)==="table-cell"})}}},Pde={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Qe(e),i="auto";return function(a,o){for(var s="",u=(a.attr("style")||"").split(";"),f=u.length,m=0;m<f;m++){var k=u[m];if(k){var K=k.split(":");K[0].trim()==="width"&&(s=K[1].trim())}}return s}(r)==="100%"&&(i="100%"),r.attr("width")==="100%"&&(i="100%"),{type:"table",width:i,children:t.filter(function(a){return Ge.getNodeType(a)==="table-row"})}}},kde=function(){function e(){this.title=pn("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||!!Ge.getSelectedElems(t).some(function(r){var i=Ge.getNodeType(r);return i==="pre"||i==="table"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=Qe('<div class="w-e-panel-content-table"></div>'),i=Qe("<span>0 &times; 0</span>"),a=Qe("<table></table>"),o=0;o<10;o++){for(var s=Qe("<tr></tr>"),u=0;u<10;u++){var f=Qe("<td></td>");f.attr("data-x",u.toString()),f.attr("data-y",o.toString()),s.append(f),f.on("mouseenter",function(m){var k=m.target;if(k!=null){var K=Qe(k).dataset(),U=K.x,re=K.y;i[0].innerHTML=U+1+" &times; "+(re+1),a.children().each(function($){Qe($).children().each(function(ee){var te=Qe(ee),Q=te.dataset(),he=Q.x,me=Q.y;he<=U&&me<=re?te.addClass("active"):te.removeClass("active")})})}}),f.on("click",function(m){m.preventDefault();var k=m.target;if(k!=null){var K=Qe(k).dataset(),U=K.x,re=K.y;n.insertTable(t,re+1,U+1)}})}a.append(s)}return r.append(a),r.append(i),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var i=parseInt(n,10),a=parseInt(r,10);if(i&&a&&!(i<=0||a<=0)){Ge.isSelectedEmptyParagraph(t)&&ct.removeNodes(t,{mode:"highest"});var o=function(s,u){for(var f=[],m=0;m<s;m++){for(var k=[],K=0;K<u;K++){var U={type:"table-cell",children:[{text:""}]};m===0&&(U.isHeader=!0),k.push(U)}f.push({type:"table-row",children:k})}return{type:"table",width:"auto",children:f}}(i,a);ct.insertNodes(t,o,{mode:"highest"})}},e}(),Mde=function(){function e(){this.title=pn("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||Ge.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||ct.removeNodes(t,{mode:"highest"})},e}(),Nde=function(){function e(){this.title=pn("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=el(Ee.nodes(t,{match:function(U){return Ge.checkNodeType(U,"table-cell")},universal:!0}),1),i=el(r[0],2),a=i[0],o=i[1],s=Ge.getParentNode(t,a),u=(s==null?void 0:s.children.length)||0;if(u!==0){for(var f={type:"table-row",children:[]},m=0;m<u;m++)f.children.push({type:"table-cell",children:[{text:""}]});var k=st.parent(o),K=st.next(k);ct.insertNodes(t,f,{at:K})}}},e}(),Bde=function(){function e(){this.title=pn("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=el(Ee.nodes(t,{match:function(u){return Ge.checkNodeType(u,"table-row")},universal:!0}),1),i=el(r[0],2),a=i[0],o=i[1],s=Ge.getParentNode(t,a);((s==null?void 0:s.children.length)||0)<=1?ct.removeNodes(t,{mode:"highest"}):ct.removeNodes(t,{at:o})}},e}(),vF={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yD=FO("span").classList,yF=yD&&yD.constructor&&yD.constructor.prototype,Fde=yF===Object.prototype?void 0:yF,jde=mE.forEach,Ude=function(e,t){var n=[].forEach;return!!n&&_a(function(){n.call(null,function(){throw 1},1)})}(),bD=Ude?[].forEach:function(e){return jde(this,e,arguments.length>1?arguments[1]:void 0)},bF=function(e){if(e&&e.forEach!==bD)try{sp(e,"forEach",bD)}catch(t){e.forEach=bD}};for(var ED in vF)vF[ED]&&bF(Er[ED]&&Er[ED].prototype);bF(Fde);var Hde=function(){function e(){this.title=pn("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=el(Ee.nodes(t,{match:function(f){return Ge.checkNodeType(f,"table-cell")},universal:!0}),1),i=el(r[0],2),a=i[0],o=i[1],s=Ge.getParentNode(t,a);if(s!=null){var u=Ge.getParentNode(t,s);u!=null&&(u.children||[]).forEach(function(f,m){Nn.isElement(f)&&(f.children||[]).forEach(function(k){var K=Ge.findPath(t,k);if(K.length===o.length&&aB(K.slice(-1),o.slice(-1))){var U={type:"table-cell",children:[{text:""}]};m===0&&QB(u)&&(U.isHeader=!0),ct.insertNodes(t,U,{at:K})}})})}}},e}(),Wde=function(){function e(){this.title=pn("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=el(Ee.nodes(t,{match:function(m){return Ge.checkNodeType(m,"table-cell")},universal:!0}),1),i=el(r[0],2),a=i[0],o=i[1],s=Ge.getParentNode(t,a),u=(s==null?void 0:s.children.length)||0;if(!s||u<=1)ct.removeNodes(t,{mode:"highest"});else{var f=Ge.getParentNode(t,s);f!=null&&(f.children||[]).forEach(function(m){Nn.isElement(m)&&(m.children||[]).forEach(function(k){var K=Ge.findPath(t,k);K.length===o.length&&aB(K.slice(-1),o.slice(-1))&&ct.removeNodes(t,{at:K})})})}}},e}(),zde=function(){function e(){this.title=pn("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=Ge.getSelectedNodeByType(t,"table");return n!=null&&QB(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=Ge.getSelectedNodeByType(t,"table");i!=null&&gE(i).forEach(function(a){return ct.setNodes(t,{isHeader:r},{at:Ge.findPath(t,a)})})}},e}(),Gde=function(){function e(){this.title=pn("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=Ge.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||Ge.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};ct.setNodes(t,r,{mode:"highest"})}},e}(),Kde={renderElems:[vde,yde,bde],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,a=n.rowSpan,o=a===void 0?1:a,s=n.isHeader,u=s!==void 0&&s,f=n.width,m=u?"th":"td";return"<"+m+' colSpan="'+i+'" rowSpan="'+o+'" width="'+(f===void 0?"auto":f)+'">'+t+"</"+m+">"}}],preParseHtml:[Ede],parseElemsHtml:[Ide,Lde,Pde],menus:[{key:"insertTable",factory:function(){return new kde}},{key:"deleteTable",factory:function(){return new Mde}},{key:"insertTableRow",factory:function(){return new Nde}},{key:"deleteTableRow",factory:function(){return new Bde}},{key:"insertTableCol",factory:function(){return new Hde}},{key:"deleteTableCol",factory:function(){return new Wde}},{key:"tableHeader",factory:function(){return new zde}},{key:"tableFullWidth",factory:function(){return new Gde}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,a=e.insertData,o=e.handleTab,s=e.selectAll,u=e;return u.insertBreak=function(){Ge.getSelectedNodeByType(u,"table")==null?t():u.insertText(`
`)},u.deleteBackward=function(f){if(!KB(u)){var m=u.selection;if(m){var k=Ee.before(u,m);if(k){var K=VB(u,k),U=VB(u,m);if(K&&!U)return}}n(f)}},u.handleTab=function(){var f;if(Ge.getSelectedNodeByType(u,"table")){var m=Ee.above(e);Ge.checkNodeType(m[0],"table-cell")&&ct.select(e,m[1]);var k=Ee.next(e);if(k)k[0]&&k[0].text&&(k=(f=Ee.above(e,{at:k[1]}))!==null&&f!==void 0?f:k),ct.select(e,k[1]);else{var K=u.children||[],U=K.length;if(Ge.checkNodeType(K[U-1],"table")){var re=Ge.genEmptyParagraph();ct.insertNodes(u,re,{at:[U]}),u.handleTab()}}}else o()},u.deleteForward=function(f){KB(u)||r(f)},u.normalizeNode=function(f){var m=el(f,2),k=m[0],K=m[1];if(Ge.getNodeType(k)!=="table")return i([k,K]);if(Ge.isLastNode(u,k)){var U=Ge.genEmptyParagraph();ct.insertNodes(u,U,{at:[K[0]+1]})}},u.insertData=function(f){if(Ge.getSelectedNodeByType(u,"table")!=null){var m=f.getData("text/plain");m===`
`||/<img[^>]+>/.test(f.getData("text/html"))?a(f):Ee.insertText(u,m)}else a(f)},u.selectAll=function(){var f=u.selection;if(f!=null){var m=Ge.getSelectedNodeByType(u,"table-cell");if(m!=null){var k=f.anchor,K=f.focus;if(st.equals(k.path.slice(0,3),K.path.slice(0,3)))if(fn.string(m).length!==0){var U=Ge.findPath(u,m),re={anchor:Ee.start(u,U),focus:Ee.end(u,U)};u.select(re)}else s();else s()}else s()}else s()},u}};Ro("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Ro("zh-CN",{videoModule:{delete:"\u5220\u9664\u89C6\u9891",uploadVideo:"\u4E0A\u4F20\u89C6\u9891",insertVideo:"\u63D2\u5165\u89C6\u9891",videoSrc:"\u89C6\u9891\u5730\u5740",videoSrcPlaceHolder:"\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>",videoPoster:"\u89C6\u9891\u5C01\u9762",videoPosterPlaceHolder:"\u5C01\u9762\u56FE\u7247 url",ok:"\u786E\u5B9A",editSize:"\u4FEE\u6539\u5C3A\u5BF8",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var yE=function(){return yE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},yE.apply(this,arguments)};function bE(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(f){try{u(r.next(f))}catch(m){a(m)}}function s(f){try{u(r.throw(f))}catch(m){a(m)}}function u(f){var m;f.done?i(f.value):(m=f.value,m instanceof n?m:new n(function(k){k(m)})).then(o,s)}u((r=r.apply(e,t||[])).next())})}function EE(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return function(m){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&m[0]?r.return:m[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,m[1])).done)return i;switch(r=0,i&&(m=[2&m[0],i.value]),m[0]){case 0:case 1:i=m;break;case 4:return o.label++,{value:m[1],done:!1};case 5:o.label++,r=m[1],m=[0];continue;case 7:m=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||m[0]!==6&&m[0]!==2)){o=0;continue}if(m[0]===3&&(!i||m[1]>i[0]&&m[1]<i[3])){o.label=m[1];break}if(m[0]===6&&o.label<i[1]){o.label=i[1],i=m;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(m);break}i[2]&&o.ops.pop(),o.trys.pop();continue}m=t.call(e,o)}catch(k){m=[6,k],r=0}finally{n=i=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([u,f])}}}function ch(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Vde(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(i){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&i[a],s=0;if(o)return o.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(a){return new Promise(function(o,s){!function(u,f,m,k){Promise.resolve(k).then(function(K){u({value:K,done:m})},f)}(o,s,(a=e[i](a)).done,a.value)})}}}var EF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function _D(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pc,_E,xE=function(e){return e&&e.Math==Math&&e},bn=xE(typeof globalThis=="object"&&globalThis)||xE(typeof window=="object"&&window)||xE(typeof self=="object"&&self)||xE(typeof EF=="object"&&EF)||function(){return this}()||Function("return this")(),di=function(e){try{return!!e()}catch(t){return!0}},kl=!di(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ov=Function.prototype.call,li=Ov.bind?Ov.bind(Ov):function(){return Ov.apply(Ov,arguments)},_F={}.propertyIsEnumerable,xF=Object.getOwnPropertyDescriptor,Yde={f:xF&&!_F.call({1:2},1)?function(e){var t=xF(this,e);return!!t&&t.enumerable}:_F},wE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wF=Function.prototype,xD=wF.bind,wD=wF.call,Xde=xD&&xD.bind(wD),sr=xD?function(e){return e&&Xde(wD,e)}:function(e){return e&&function(){return wD.apply(e,arguments)}},Jde=sr({}.toString),Qde=sr("".slice),Ml=function(e){return Qde(Jde(e),8,-1)},TD=bn.Object,Zde=sr("".split),SD=di(function(){return!TD("z").propertyIsEnumerable(0)})?function(e){return Ml(e)=="String"?Zde(e,""):TD(e)}:TD,$de=bn.TypeError,Dv=function(e){if(e==null)throw $de("Can't call method on "+e);return e},kc=function(e){return SD(Dv(e))},ti=function(e){return typeof e=="function"},pi=function(e){return typeof e=="object"?e!==null:ti(e)},qde=function(e){return ti(e)?e:void 0},dh=function(e,t){return arguments.length<2?qde(bn[e]):bn[e]&&bn[e][t]},Rv=sr({}.isPrototypeOf),dp=dh("navigator","userAgent")||"",TF=bn.process,SF=bn.Deno,CF=TF&&TF.versions||SF&&SF.version,AF=CF&&CF.v8;AF&&(_E=(Pc=AF.split("."))[0]>0&&Pc[0]<4?1:+(Pc[0]+Pc[1])),!_E&&dp&&(!(Pc=dp.match(/Edge\/(\d+)/))||Pc[1]>=74)&&(Pc=dp.match(/Chrome\/(\d+)/))&&(_E=+Pc[1]);var Iv=_E,CD=!!Object.getOwnPropertySymbols&&!di(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Iv&&Iv<41}),AD=CD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ehe=bn.Object,OD=AD?function(e){return typeof e=="symbol"}:function(e){var t=dh("Symbol");return ti(t)&&Rv(t.prototype,ehe(e))},the=bn.String,TE=function(e){try{return the(e)}catch(t){return"Object"}},nhe=bn.TypeError,Mc=function(e){if(ti(e))return e;throw nhe(TE(e)+" is not a function")},Lv=function(e,t){var n=e[t];return n==null?void 0:Mc(n)},rhe=bn.TypeError,ihe=Object.defineProperty,DD=function(e,t){try{ihe(bn,e,{value:t,configurable:!0,writable:!0})}catch(n){bn[e]=t}return t},Nc=bn["__core-js_shared__"]||DD("__core-js_shared__",{}),RD=_D(function(e){(e.exports=function(t,n){return Nc[t]||(Nc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),ahe=bn.Object,SE=function(e){return ahe(Dv(e))},ohe=sr({}.hasOwnProperty),wa=Object.hasOwn||function(e,t){return ohe(SE(e),t)},she=0,lhe=Math.random(),uhe=sr(1 .toString),ID=function(e){return"Symbol("+(e===void 0?"":e)+")_"+uhe(++she+lhe,36)},Pv=RD("wks"),hh=bn.Symbol,OF=hh&&hh.for,che=AD?hh:hh&&hh.withoutSetter||ID,la=function(e){if(!wa(Pv,e)||!CD&&typeof Pv[e]!="string"){var t="Symbol."+e;CD&&wa(hh,e)?Pv[e]=hh[e]:Pv[e]=AD&&OF?OF(t):che(t)}return Pv[e]},dhe=bn.TypeError,hhe=la("toPrimitive"),LD=function(e){var t=function(n,r){if(!pi(n)||OD(n))return n;var i,a=Lv(n,hhe);if(a){if(r===void 0&&(r="default"),i=li(a,n,r),!pi(i)||OD(i))return i;throw dhe("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&ti(u=o.toString)&&!pi(f=li(u,o)))return f;if(ti(u=o.valueOf)&&!pi(f=li(u,o)))return f;if(s!=="string"&&ti(u=o.toString)&&!pi(f=li(u,o)))return f;throw rhe("Can't convert object to primitive value")}(n,r)}(e,"string");return OD(t)?t:t+""},PD=bn.document,fhe=pi(PD)&&pi(PD.createElement),kv=function(e){return fhe?PD.createElement(e):{}},DF=!kl&&!di(function(){return Object.defineProperty(kv("div"),"a",{get:function(){return 7}}).a!=7}),RF=Object.getOwnPropertyDescriptor,kD={f:kl?RF:function(e,t){if(e=kc(e),t=LD(t),DF)try{return RF(e,t)}catch(n){}if(wa(e,t))return wE(!li(Yde.f,e,t),e[t])}},phe=bn.String,mhe=bn.TypeError,Ba=function(e){if(pi(e))return e;throw mhe(phe(e)+" is not an object")},ghe=bn.TypeError,IF=Object.defineProperty,gu={f:kl?IF:function(e,t,n){if(Ba(e),t=LD(t),Ba(n),DF)try{return IF(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ghe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Bc=kl?function(e,t,n){return gu.f(e,t,wE(1,n))}:function(e,t,n){return e[t]=n,e},vhe=sr(Function.toString);ti(Nc.inspectSource)||(Nc.inspectSource=function(e){return vhe(e)});var CE,Mv,AE,OE=Nc.inspectSource,LF=bn.WeakMap,PF=ti(LF)&&/native code/.test(OE(LF)),kF=RD("keys"),MD=function(e){return kF[e]||(kF[e]=ID(e))},DE={},ND=bn.TypeError,yhe=bn.WeakMap;if(PF||Nc.state){var fh=Nc.state||(Nc.state=new yhe),bhe=sr(fh.get),MF=sr(fh.has),Ehe=sr(fh.set);CE=function(e,t){if(MF(fh,e))throw new ND("Object already initialized");return t.facade=e,Ehe(fh,e,t),t},Mv=function(e){return bhe(fh,e)||{}},AE=function(e){return MF(fh,e)}}else{var hp=MD("state");DE[hp]=!0,CE=function(e,t){if(wa(e,hp))throw new ND("Object already initialized");return t.facade=e,Bc(e,hp,t),t},Mv=function(e){return wa(e,hp)?e[hp]:{}},AE=function(e){return wa(e,hp)}}var es={set:CE,get:Mv,has:AE,enforce:function(e){return AE(e)?Mv(e):CE(e,{})},getterFor:function(e){return function(t){var n;if(!pi(t)||(n=Mv(t)).type!==e)throw ND("Incompatible receiver, "+e+" required");return n}}},NF=Function.prototype,_he=kl&&Object.getOwnPropertyDescriptor,BD=wa(NF,"name"),fp={EXISTS:BD,PROPER:BD&&function(){}.name==="something",CONFIGURABLE:BD&&(!kl||kl&&_he(NF,"name").configurable)},ts=_D(function(e){var t=fp.CONFIGURABLE,n=es.get,r=es.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;ti(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wa(s,"name")||t&&s.name!==U)&&Bc(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==bn?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:Bc(a,o,s)):k?a[o]=s:DD(o,s)})(Function.prototype,"toString",function(){return ti(this)&&n(this).source||OE(this)})}),xhe=Math.ceil,whe=Math.floor,RE=function(e){var t=+e;return t!=t||t===0?0:(t>0?whe:xhe)(t)},The=Math.max,She=Math.min,Nv=function(e,t){var n=RE(e);return n<0?The(n+t,0):She(n,t)},Che=Math.min,BF=function(e){return e>0?Che(RE(e),9007199254740991):0},Bv=function(e){return BF(e.length)},FF=function(e){return function(t,n,r){var i,a=kc(t),o=Bv(a),s=Nv(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},jF={includes:FF(!0),indexOf:FF(!1)},Ahe=jF.indexOf,UF=sr([].push),HF=function(e,t){var n,r=kc(e),i=0,a=[];for(n in r)!wa(DE,n)&&wa(r,n)&&UF(a,n);for(;t.length>i;)wa(r,n=t[i++])&&(~Ahe(a,n)||UF(a,n));return a},IE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ohe=IE.concat("length","prototype"),LE={f:Object.getOwnPropertyNames||function(e){return HF(e,Ohe)}},Dhe={f:Object.getOwnPropertySymbols},Rhe=sr([].concat),Ihe=dh("Reflect","ownKeys")||function(e){var t=LE.f(Ba(e)),n=Dhe.f;return n?Rhe(t,n(e)):t},Lhe=function(e,t){for(var n=Ihe(t),r=gu.f,i=kD.f,a=0;a<n.length;a++){var o=n[a];wa(e,o)||r(e,o,i(t,o))}},Phe=/#|\.prototype\./,Fv=function(e,t){var n=Mhe[khe(e)];return n==Bhe||n!=Nhe&&(ti(t)?di(t):!!t)},khe=Fv.normalize=function(e){return String(e).replace(Phe,".").toLowerCase()},Mhe=Fv.data={},Nhe=Fv.NATIVE="N",Bhe=Fv.POLYFILL="P",PE=Fv,Fhe=kD.f,ko=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?bn:f?bn[s]||DD(s,{}):(bn[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Fhe(n,r))&&o.value:n[r],!PE(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Lhe(a,i)}(e.sham||i&&i.sham)&&Bc(a,"sham",!0),ts(n,r,a,e)}},WF={};WF[la("toStringTag")]="z";var FD=String(WF)==="[object z]",jhe=la("toStringTag"),Uhe=bn.Object,Hhe=Ml(function(){return arguments}())=="Arguments",kE=FD?Ml:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=Uhe(e),jhe))=="string"?n:Hhe?Ml(t):(r=Ml(t))=="Object"&&ti(t.callee)?"Arguments":r},Whe=bn.String,Ps=function(e){if(kE(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Whe(e)},jD=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,zF=sr("".replace),ME="["+jD+"]",zhe=RegExp("^"+ME+ME+"*"),Ghe=RegExp(ME+ME+"*$"),UD=function(e){return function(t){var n=Ps(Dv(t));return 1&e&&(n=zF(n,zhe,"")),2&e&&(n=zF(n,Ghe,"")),n}},Khe={start:UD(1),end:UD(2),trim:UD(3)},Vhe=fp.PROPER,Yhe=Khe.trim;function GF(e){return e.length?e[0].tagName.toLowerCase():""}function KF(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=Qe(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}ko({target:"String",proto:!0,forced:di(function(){return!!jD.trim()||"\u200B\x85\u180E".trim()!=="\u200B\x85\u180E"||Vhe&&jD.trim.name!=="trim"})},{trim:function(){return Yhe(this)}}),ko({global:!0},{globalThis:bn}),gs&&(Qe.fn.append=gs),_l&&(Qe.fn.on=_l),zu&&(Qe.fn.focus=zu),ms&&(Qe.fn.attr=ms),El&&(Qe.fn.val=El),Wu&&(Qe.fn.html=Wu),nf&&(Qe.fn.parent=nf),qh&&(Qe.fn.hasClass=qh),sf&&(Qe.fn.empty=sf);var NE,Xhe={type:"video",renderElem:function(e,t,n){var r,i=e,a=i.src,o=a===void 0?"":a,s=i.poster,u=s===void 0?"":s,f=i.width,m=f===void 0?"auto":f,k=i.height,K=k===void 0?"auto":k,U=Ge.isNodeSelected(n,e);if(o.trim().indexOf("<iframe ")===0)r=er("div",{className:"w-e-textarea-video-container","data-selected":U?"true":"",innerHTML:KF(o,m,K)});else{var re=er("video",{poster:u,controls:!0},er("source",{src:o,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
\u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);m!=="auto"&&(re.data.width=m),K!=="auto"&&(re.data.height=K),r=er("div",{className:"w-e-textarea-video-container","data-selected":U?"true":""},re)}return lf("div",{props:{contentEditable:!1},on:{mousedown:function($){return $.preventDefault()}}},r)}},Jhe={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?"":r,a=n.poster,o=a===void 0?"":a,s=n.width,u=s===void 0?"auto":s,f=n.height,m=f===void 0?"auto":f,k=`<div data-w-e-type="video" data-w-e-is-void>
`;return i.trim().indexOf("<iframe ")===0?k+=KF(i,u,m):k+='<video poster="'+o+'" controls="true" width="'+u+'" height="'+m+'"><source src="'+i+'" type="video/mp4"/></video>',k+`
</div>`}},Qhe=Object.keys||function(e){return HF(e,IE)},Zhe=kl?Object.defineProperties:function(e,t){Ba(e);for(var n,r=kc(t),i=Qhe(t),a=i.length,o=0;a>o;)gu.f(e,n=i[o++],r[n]);return e},HD=dh("document","documentElement"),VF=MD("IE_PROTO"),WD=function(){},YF=function(e){return"<script>"+e+"</script>"},XF=function(e){e.write(YF("")),e.close();var t=e.parentWindow.Object;return e=null,t},BE=function(){try{NE=new ActiveXObject("htmlfile")}catch(r){}var e,t;BE=typeof document!="undefined"?document.domain&&NE?XF(NE):((t=kv("iframe")).style.display="none",HD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(YF("document.F=Object")),e.close(),e.F):XF(NE);for(var n=IE.length;n--;)delete BE.prototype[IE[n]];return BE()};DE[VF]=!0;var zD=Object.create||function(e,t){var n;return e!==null?(WD.prototype=Ba(e),n=new WD,WD.prototype=null,n[VF]=e):n=BE(),t===void 0?n:Zhe(n,t)},GD=la("unscopables"),KD=Array.prototype;KD[GD]==null&&gu.f(KD,GD,{configurable:!0,value:zD(null)});var jv=function(e){KD[GD][e]=!0},$he=jF.includes;ko({target:"Array",proto:!0},{includes:function(e){return $he(this,e,arguments.length>1?arguments[1]:void 0)}}),jv("includes");var qhe={selector:"iframe,video,p",preParseHtml:function(e){var t=Qe(e),n=t;if(GF(t)==="p"){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=Qe(i))}}var o=GF(n);if(o!=="iframe"&&o!=="video")return n[0];if(n.parent().attr("data-w-e-type")==="video")return n[0];var s=Qe('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},JF=sr(sr.bind),Uv=function(e,t){return Mc(e),t===void 0?e:JF?JF(e,t):function(){return e.apply(t,arguments)}},FE=Array.isArray||function(e){return Ml(e)=="Array"},QF=function(){},efe=[],ZF=dh("Reflect","construct"),VD=/^\s*(?:class|function)\b/,tfe=sr(VD.exec),nfe=!VD.exec(QF),Hv=function(e){if(!ti(e))return!1;try{return ZF(QF,efe,e),!0}catch(t){return!1}},YD=!ZF||di(function(){var e;return Hv(Hv.call)||!Hv(Object)||!Hv(function(){e=!0})||e})?function(e){if(!ti(e))return!1;switch(kE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nfe||!!tfe(VD,OE(e))}:Hv,rfe=la("species"),$F=bn.Array,ife=function(e,t){return new(function(n){var r;return FE(n)&&(r=n.constructor,(YD(r)&&(r===$F||FE(r.prototype))||pi(r)&&(r=r[rfe])===null)&&(r=void 0)),r===void 0?$F:r}(e))(t===0?0:t)},qF=sr([].push),Fc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=SE(u),$=SD(re),ee=Uv(f,m),te=Bv($),Q=0,he=k||ife,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:qF(me,K)}else switch(e){case 4:return!1;case 7:qF(me,K)}return a?-1:r||i?i:me}},XD={forEach:Fc(0),map:Fc(1),filter:Fc(2),some:Fc(3),every:Fc(4),find:Fc(5),findIndex:Fc(6),filterReject:Fc(7)},afe=XD.find,ej=!0;"find"in[]&&Array(1).find(function(){ej=!1}),ko({target:"Array",proto:!0,forced:ej},{find:function(e){return afe(this,e,arguments.length>1?arguments[1]:void 0)}}),jv("find");var ofe=FD?{}.toString:function(){return"[object "+kE(this)+"]"};function tj(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}FD||ts(Object.prototype,"toString",ofe,{unsafe:!0});var nj,JD,sfe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Qe(e),i="",a="",o="auto",s="auto",u=r.find("iframe");if(u.length>0)return o=u.attr("width")||"auto",s=u.attr("height")||"auto",tj(i=u[0].outerHTML,a,o,s);var f=r.find("video");return(i=f.attr("src")||"")||f.length>0&&(i=f.find("source").attr("src")||""),o=f.attr("width")||"auto",s=f.attr("height")||"auto",tj(i,a=f.attr("poster")||"",o,s)}},rj=function(){var e=Ba(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},QD=bn.RegExp,ZD=di(function(){var e=QD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),lfe=ZD||di(function(){return!QD("a","y").sticky}),ufe={BROKEN_CARET:ZD||di(function(){var e=QD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:lfe,UNSUPPORTED_Y:ZD},cfe=bn.RegExp,dfe=di(function(){var e=cfe(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),hfe=bn.RegExp,ffe=di(function(){var e=hfe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),pfe=es.get,mfe=RD("native-string-replace",String.prototype.replace),jE=RegExp.prototype.exec,$D=jE,gfe=sr("".charAt),vfe=sr("".indexOf),yfe=sr("".replace),qD=sr("".slice),eR=(JD=/b*/g,li(jE,nj=/a/,"a"),li(jE,JD,"a"),nj.lastIndex!==0||JD.lastIndex!==0),ij=ufe.BROKEN_CARET,tR=/()??/.exec("")[1]!==void 0;(eR||tR||ij||dfe||ffe)&&($D=function(e){var t,n,r,i,a,o,s,u=this,f=pfe(u),m=Ps(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=li($D,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=ij&&u.sticky,re=li(rj,u),$=u.source,ee=0,te=m;if(U&&(re=yfe(re,"y",""),vfe(re,"g")===-1&&(re+="g"),te=qD(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&gfe(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),tR&&(n=new RegExp("^"+$+"$(?!\\s)",re)),eR&&(r=u.lastIndex),i=li(jE,U?n:u,te),U?i?(i.input=qD(i.input,ee),i[0]=qD(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:eR&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),tR&&i&&i.length>1&&li(mfe,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=zD(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var UE=$D;ko({target:"RegExp",proto:!0,forced:/./.exec!==UE},{exec:UE});var nR=Function.prototype,aj=nR.apply,bfe=nR.bind,oj=nR.call,sj=typeof Reflect=="object"&&Reflect.apply||(bfe?oj.bind(aj):function(){return oj.apply(aj,arguments)}),lj=(la("species"),RegExp.prototype),Efe=sr("".charAt),uj=sr("".charCodeAt),_fe=sr("".slice),cj=function(e){return function(t,n){var r,i,a=Ps(Dv(t)),o=RE(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=uj(a,o))<55296||r>56319||o+1===s||(i=uj(a,o+1))<56320||i>57343?e?Efe(a,o):r:e?_fe(a,o,o+2):i-56320+(r-55296<<10)+65536}},dj={codeAt:cj(!1),charAt:cj(!0)},xfe=dj.charAt,wfe=function(e,t,n){return t+(n?xfe(e,t).length:1)},Tfe=Math.floor,rR=sr("".charAt),Sfe=sr("".replace),iR=sr("".slice),Cfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Afe=/\$([$&'`]|\d{1,2})/g,Ofe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=Afe;return i!==void 0&&(i=SE(i),u=Cfe),Sfe(a,u,function(f,m){var k;switch(rR(m,0)){case"$":return"$";case"&":return e;case"`":return iR(t,0,n);case"'":return iR(t,o);case"<":k=i[iR(m,1,-1)];break;default:var K=+m;if(K===0)return f;if(K>s){var U=Tfe(K/10);return U===0?f:U<=s?r[U-1]===void 0?rR(m,1):r[U-1]+rR(m,1):f}k=r[K-1]}return k===void 0?"":k})},Dfe=bn.TypeError,Rfe=function(e,t){var n=e.exec;if(ti(n)){var r=li(n,e,t);return r!==null&&Ba(r),r}if(Ml(e)==="RegExp")return li(UE,e,t);throw Dfe("RegExp#exec called on incompatible receiver")},aR=la("replace"),Ife=Math.max,Lfe=Math.min,Pfe=sr([].concat),oR=sr([].push),hj=sr("".indexOf),fj=sr("".slice),kfe="a".replace(/./,"$0")==="$0",pj=!!/./[aR]&&/./[aR]("a","$0")==="";function mj(e){return e===void 0&&(e="r"),e+"-"+o5()}!function(e,t,n,r){var i=la(e),a=!di(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!di(function(){var f=!1,m=/a/;return m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=sr(/./[i]),u=function(f,m,k){var K=pj?"$":"$0";return[function(U,re){var $=Dv(this),ee=U==null?void 0:Lv(U,aR);return ee?li(ee,U,$,re):li(m,Ps($),U,re)},function(U,re){var $=Ba(this),ee=Ps(U);if(typeof re=="string"&&hj(re,K)===-1&&hj(re,"$<")===-1){var te=k(m,$,ee,re);if(te.done)return te.value}var Q=ti(re);Q||(re=Ps(re));var he=$.global;if(he){var me=$.unicode;$.lastIndex=0}for(var _e=[];;){var ke=Rfe($,ee);if(ke===null)break;if(oR(_e,ke),!he)break;Ps(ke[0])===""&&($.lastIndex=wfe(ee,BF($.lastIndex),me))}for(var De,Ye="",rt=0,wt=0;wt<_e.length;wt++){for(var Lt=Ps((ke=_e[wt])[0]),Tt=Ife(Lfe(RE(ke.index),ee.length),0),Yt=[],Ft=1;Ft<ke.length;Ft++)oR(Yt,(De=ke[Ft])===void 0?De:String(De));var jt=ke.groups;if(Q){var Wt=Pfe([Lt],Yt,Tt,ee);jt!==void 0&&oR(Wt,jt);var En=Ps(sj(re,void 0,Wt))}else En=Ofe(Lt,ee,Tt,Yt,jt,re);Tt>=rt&&(Ye+=fj(ee,rt,Tt)+En,rt=Tt+Lt.length)}return Ye+fj(ee,rt)}]}(0,""[e],function(f,m,k,K,U){var re=sr(f),$=m.exec;return $===UE||$===lj.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});ts(String.prototype,e,u[0]),ts(lj,i,u[1])}}("replace",0,!!di(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!kfe||pj);var HE=bn.Promise,WE=function(e,t,n){for(var r in t)ts(e,r,t[r],n);return e},Mfe=bn.String,Nfe=bn.TypeError,pp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=sr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Ba(r),function(a){if(typeof a=="object"||ti(a))return a;throw Nfe("Can't set "+Mfe(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Bfe=gu.f,gj=la("toStringTag"),zE=function(e,t,n){e&&!wa(e=n?e:e.prototype,gj)&&Bfe(e,gj,{configurable:!0,value:t})},vj=la("species"),Ffe=bn.TypeError,sR=function(e,t){if(Rv(t,e))return e;throw Ffe("Incorrect invocation")},mp={},jfe=la("iterator"),Ufe=Array.prototype,Hfe=la("iterator"),yj=function(e){if(e!=null)return Lv(e,Hfe)||Lv(e,"@@iterator")||mp[kE(e)]},Wfe=bn.TypeError,bj=function(e,t,n){var r,i;Ba(e);try{if(!(r=Lv(e,"return"))){if(t==="throw")throw n;return n}r=li(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Ba(r),n},zfe=bn.TypeError,GE=function(e,t){this.stopped=e,this.result=t},Ej=GE.prototype,KE=function(e,t,n){var r,i,a,o,s,u,f,m,k=n&&n.that,K=!(!n||!n.AS_ENTRIES),U=!(!n||!n.IS_ITERATOR),re=!(!n||!n.INTERRUPTED),$=Uv(t,k),ee=function(Q){return r&&bj(r,"normal",Q),new GE(!0,Q)},te=function(Q){return K?(Ba(Q),re?$(Q[0],Q[1],ee):$(Q[0],Q[1])):re?$(Q,ee):$(Q)};if(U)r=e;else{if(!(i=yj(e)))throw zfe(TE(e)+" is not iterable");if((m=i)!==void 0&&(mp.Array===m||Ufe[jfe]===m)){for(a=0,o=Bv(e);o>a;a++)if((s=te(e[a]))&&Rv(Ej,s))return s;return new GE(!1)}r=function(Q,he){var me=arguments.length<2?yj(Q):he;if(Mc(me))return Ba(li(me,Q));throw Wfe(TE(Q)+" is not iterable")}(e,i)}for(u=r.next;!(f=li(u,r)).done;){try{s=te(f.value)}catch(Q){bj(r,"throw",Q)}if(typeof s=="object"&&s&&Rv(Ej,s))return s}return new GE(!1)},_j=la("iterator"),xj=!1;try{var Gfe=0,wj={next:function(){return{done:!!Gfe++}},return:function(){xj=!0}};wj[_j]=function(){return this},Array.from(wj,function(){throw 2})}catch(e){}var Wv,gp,Tj,lR,Sj=function(e,t){if(!t&&!xj)return!1;var n=!1;try{var r={};r[_j]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},Kfe=bn.TypeError,Vfe=la("species"),Cj=sr([].slice),Aj=/(?:ipad|iphone|ipod).*applewebkit/i.test(dp),jc=Ml(bn.process)=="process",uR=bn.setImmediate,cR=bn.clearImmediate,Yfe=bn.process,dR=bn.Dispatch,Xfe=bn.Function,Oj=bn.MessageChannel,Jfe=bn.String,hR=0,zv={};try{Wv=bn.location}catch(e){}var fR=function(e){if(wa(zv,e)){var t=zv[e];delete zv[e],t()}},pR=function(e){return function(){fR(e)}},Dj=function(e){fR(e.data)},Rj=function(e){bn.postMessage(Jfe(e),Wv.protocol+"//"+Wv.host)};uR&&cR||(uR=function(e){var t=Cj(arguments,1);return zv[++hR]=function(){sj(ti(e)?e:Xfe(e),void 0,t)},gp(hR),hR},cR=function(e){delete zv[e]},jc?gp=function(e){Yfe.nextTick(pR(e))}:dR&&dR.now?gp=function(e){dR.now(pR(e))}:Oj&&!Aj?(lR=(Tj=new Oj).port2,Tj.port1.onmessage=Dj,gp=Uv(lR.postMessage,lR)):bn.addEventListener&&ti(bn.postMessage)&&!bn.importScripts&&Wv&&Wv.protocol!=="file:"&&!di(Rj)?(gp=Rj,bn.addEventListener("message",Dj,!1)):gp="onreadystatechange"in kv("script")?function(e){HD.appendChild(kv("script")).onreadystatechange=function(){HD.removeChild(this),fR(e)}}:function(e){setTimeout(pR(e),0)});var Gv,ph,Kv,vp,mR,gR,vR,Ij,Lj={set:uR,clear:cR},Qfe=/ipad|iphone|ipod/i.test(dp)&&bn.Pebble!==void 0,Zfe=/web0s(?!.*chrome)/i.test(dp),$fe=kD.f,yR=Lj.set,Pj=bn.MutationObserver||bn.WebKitMutationObserver,kj=bn.document,Mj=bn.process,VE=bn.Promise,Nj=$fe(bn,"queueMicrotask"),Bj=Nj&&Nj.value;Bj||(Gv=function(){var e,t;for(jc&&(e=Mj.domain)&&e.exit();ph;){t=ph.fn,ph=ph.next;try{t()}catch(n){throw ph?vp():Kv=void 0,n}}Kv=void 0,e&&e.enter()},Aj||jc||Zfe||!Pj||!kj?!Qfe&&VE&&VE.resolve?((vR=VE.resolve(void 0)).constructor=VE,Ij=Uv(vR.then,vR),vp=function(){Ij(Gv)}):jc?vp=function(){Mj.nextTick(Gv)}:(yR=Uv(yR,bn),vp=function(){yR(Gv)}):(mR=!0,gR=kj.createTextNode(""),new Pj(Gv).observe(gR,{characterData:!0}),vp=function(){gR.data=mR=!mR}));var bR,Fj,jj,Uj,Hj=Bj||function(e){var t={fn:e,next:void 0};Kv&&(Kv.next=t),ph||(ph=t,vp()),Kv=t},qfe=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=Mc(t),this.reject=Mc(n)},ER={f:function(e){return new qfe(e)}},_R=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},epe=typeof window=="object",Wj=Lj.set,tpe=la("species"),vu="Promise",zj=es.getterFor(vu),npe=es.set,rpe=es.getterFor(vu),mh=HE&&HE.prototype,Nl=HE,Vv=mh,Gj=bn.TypeError,xR=bn.document,wR=bn.process,yp=ER.f,ipe=yp,ape=!!(xR&&xR.createEvent&&bn.dispatchEvent),Kj=ti(bn.PromiseRejectionEvent),Vj=!1,Yv=PE(vu,function(){var e=OE(Nl),t=e!==String(Nl);if(!t&&Iv===66)return!0;if(Iv>=51&&/native code/.test(e))return!1;var n=new Nl(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[tpe]=r,!(Vj=n.then(function(){})instanceof r)||!t&&epe&&!Kj}),ope=Yv||!Sj(function(e){Nl.all(e).catch(function(){})}),Yj=function(e){var t;return!(!pi(e)||!ti(t=e.then))&&t},TR=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hj(function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,u,f=n[a++],m=i?f.ok:f.fail,k=f.resolve,K=f.reject,U=f.domain;try{m?(i||(e.rejection===2&&lpe(e),e.rejection=1),m===!0?o=r:(U&&U.enter(),o=m(r),U&&(U.exit(),u=!0)),o===f.promise?K(Gj("Promise-chain cycle")):(s=Yj(o))?li(s,o,k,K):k(o)):K(r)}catch(re){U&&!u&&U.exit(),K(re)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&spe(e)})}},Xj=function(e,t,n){var r,i;ape?((r=xR.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),bn.dispatchEvent(r)):r={promise:t,reason:n},!Kj&&(i=bn["on"+e])?i(r):e==="unhandledrejection"&&function(a,o){var s=bn.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,o))}("Unhandled promise rejection",n)},spe=function(e){li(Wj,bn,function(){var t,n=e.facade,r=e.value;if(Jj(e)&&(t=_R(function(){jc?wR.emit("unhandledRejection",r,n):Xj("unhandledrejection",n,r)}),e.rejection=jc||Jj(e)?2:1,t.error))throw t.value})},Jj=function(e){return e.rejection!==1&&!e.parent},lpe=function(e){li(Wj,bn,function(){var t=e.facade;jc?wR.emit("rejectionHandled",t):Xj("rejectionhandled",t,e.value)})},bp=function(e,t,n){return function(r){e(t,r,n)}},Ep=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,TR(e,!0))},SR=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Gj("Promise can't be resolved itself");var r=Yj(t);r?Hj(function(){var i={done:!1};try{li(r,t,bp(SR,i,e),bp(Ep,i,e))}catch(a){Ep(i,a,e)}}):(e.value=t,e.state=1,TR(e,!1))}catch(i){Ep({done:!1},i,e)}}};if(Yv&&(Vv=(Nl=function(e){sR(this,Vv),Mc(e),li(bR,this);var t=zj(this);try{e(bp(SR,t),bp(Ep,t))}catch(n){Ep(t,n)}}).prototype,(bR=function(e){npe(this,{type:vu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=WE(Vv,{then:function(e,t){var n=rpe(this),r=n.reactions,i=yp(function(a,o){var s,u=Ba(a).constructor;return u===void 0||(s=Ba(u)[Vfe])==null?o:function(f){if(YD(f))return f;throw Kfe(TE(f)+" is not a constructor")}(s)}(this,Nl));return i.ok=!ti(e)||e,i.fail=ti(t)&&t,i.domain=jc?wR.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&TR(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),Fj=function(){var e=new bR,t=zj(e);this.promise=e,this.resolve=bp(SR,t),this.reject=bp(Ep,t)},ER.f=yp=function(e){return e===Nl||e===jj?new Fj(e):ipe(e)},ti(HE)&&mh!==Object.prototype)){Uj=mh.then,Vj||(ts(mh,"then",function(e,t){var n=this;return new Nl(function(r,i){li(Uj,n,r,i)}).then(e,t)},{unsafe:!0}),ts(mh,"catch",Vv.catch,{unsafe:!0}));try{delete mh.constructor}catch(e){}pp&&pp(mh,Vv)}function Xv(e,t,n){return n===void 0&&(n=""),bE(this,void 0,void 0,function(){var r,i,a,o,s,u,f;return EE(this,function(m){switch(m.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),i=r.onInsertedVideo,a=r.checkVideo,o=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=m.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,o(t)];case 2:return(u=m.sent()).trim().indexOf("<iframe ")!==0&&(u=u.replace(/</g,"&lt;").replace(/>/g,"&gt;")),f={type:"video",src:u,poster:n,children:[{text:""}]},Promise.resolve().then(function(){ct.insertNodes(e,f)}),i(f),[2]}})})}function CR(){return mj("w-e-insert-video")}ko({global:!0,wrap:!0,forced:Yv},{Promise:Nl}),zE(Nl,vu,!1),function(e){var t=dh("Promise"),n=gu.f;kl&&t&&!t[vj]&&n(t,vj,{configurable:!0,get:function(){return this}})}(),jj=dh(vu),ko({target:vu,stat:!0,forced:Yv},{reject:function(e){var t=yp(this);return li(t.reject,void 0,e),t.promise}}),ko({target:vu,stat:!0,forced:Yv},{resolve:function(e){return function(t,n){if(Ba(t),pi(n)&&n.constructor===t)return n;var r=ER.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),ko({target:vu,stat:!0,forced:ope},{all:function(e){var t=this,n=yp(t),r=n.resolve,i=n.reject,a=_R(function(){var o=Mc(t.resolve),s=[],u=0,f=1;KE(e,function(m){var k=u++,K=!1;f++,li(o,t,m).then(function(U){K||(K=!0,s[k]=U,--f||r(s))},i)}),--f||r(s)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=yp(t),r=n.reject,i=_R(function(){var a=Mc(t.resolve);KE(e,function(o){li(a,t,o).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var upe=function(){function e(){this.title=pn("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=CR(),this.posterInputId=CR(),this.buttonId=CR()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||!!Ge.getSelectedElems(t).some(function(r){var i=Ge.getNodeType(r);return i==="pre"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,a=r.posterInputId,o=r.buttonId,s=ch(Xo(pn("videoModule.videoSrc"),i,pn("videoModule.videoSrcPlaceHolder")),2),u=s[0],f=s[1],m=ch(Xo(pn("videoModule.videoPoster"),a,pn("videoModule.videoPosterPlaceHolder")),2),k=m[0],K=m[1],U=Qe(f),re=Qe(K),$=ch(Mf(o,pn("videoModule.ok")),1)[0];if(this.$content==null){var ee=Qe("<div></div>");ee.on("click","#"+o,function(Q){return bE(n,void 0,void 0,function(){var he,me;return EE(this,function(_e){switch(_e.label){case 0:return Q.preventDefault(),he=ee.find("#"+i).val().trim(),me=ee.find("#"+a).val().trim(),[4,Xv(t,he,me)];case 1:return _e.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=ee}var te=this.$content;return te.empty(),te.append(u),te.append(k),te.append($),U.val(""),re.val(""),setTimeout(function(){U.focus()}),te[0]},e}(),cpe=sr([].join),dpe=SD!=Object,hpe=function(e,t){var n=[].join;return!!n&&di(function(){n.call(null,",",1)})}();ko({target:"Array",proto:!0,forced:dpe||!hpe},{join:function(e){return cpe(kc(this),e===void 0?",":e)}});var gh,Qj,Zj,fpe=!di(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),$j=MD("IE_PROTO"),AR=bn.Object,ppe=AR.prototype,YE=fpe?AR.getPrototypeOf:function(e){var t=SE(e);if(wa(t,$j))return t[$j];var n=t.constructor;return ti(n)&&t instanceof n?n.prototype:t instanceof AR?ppe:null},OR=la("iterator"),qj=!1;[].keys&&("next"in(Zj=[].keys())?(Qj=YE(YE(Zj)))!==Object.prototype&&(gh=Qj):qj=!0);var mpe=gh==null||di(function(){var e={};return gh[OR].call(e)!==e});mpe&&(gh={}),ti(gh[OR])||ts(gh,OR,function(){return this});var DR={IteratorPrototype:gh,BUGGY_SAFARI_ITERATORS:qj},gpe=DR.IteratorPrototype,vpe=function(){return this},ype=fp.PROPER,bpe=fp.CONFIGURABLE,eU=DR.IteratorPrototype,XE=DR.BUGGY_SAFARI_ITERATORS,Jv=la("iterator"),Epe=function(){return this},tU=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=zD(gpe,{next:wE(1,he)}),zE(te,_e,!1),mp[_e]=vpe}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!XE&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[Jv]||U["@@iterator"]||i&&U[i],$=!XE&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=YE(ee.call(new e)))!==Object.prototype&&s.next&&(YE(s)!==eU&&(pp?pp(s,eU):ti(s[Jv])||ts(s,Jv,Epe)),zE(s,k,!0)),ype&&i=="values"&&re&&re.name!=="values"&&(bpe?Bc(U,"name","values"):(K=!0,$=function(){return li(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(XE||K||!(f in U))&&ts(U,f,u[f]);else ko({target:t,proto:!0,forced:XE||K},u);return U[Jv]!==$&&ts(U,Jv,$,{name:i}),mp[t]=$,u},_pe=es.set,xpe=es.getterFor("Array Iterator"),Qv=tU(Array,"Array",function(e,t){_pe(this,{type:"Array Iterator",target:kc(e),index:0,kind:t})},function(){var e=xpe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");mp.Arguments=mp.Array,jv("keys"),jv("values"),jv("entries");var wpe=dj.charAt,Tpe=es.set,Spe=es.getterFor("String Iterator");tU(String,"String",function(e){Tpe(this,{type:"String Iterator",string:Ps(e),index:0})},function(){var e,t=Spe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wpe(n,r),t.index+=e.length,{value:e,done:!1})});var nU=function(e,t,n){var r=LD(t);r in e?gu.f(e,r,wE(0,n)):e[r]=n},Cpe=bn.Array,Ape=Math.max,rU=LE.f,iU=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ope={f:function(e){return iU&&Ml(e)=="Window"?function(t){try{return rU(t)}catch(n){return function(r,i,a){for(var o=Bv(r),s=Nv(void 0,o),u=Nv(o,o),f=Cpe(Ape(u-s,0)),m=0;s<u;s++,m++)nU(f,m,r[s]);return f.length=m,f}(iU)}}(e):rU(kc(e))}},aU=di(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),JE=Object.isExtensible,vh=di(function(){JE(1)})||aU?function(e){return!!pi(e)&&(!aU||Ml(e)!="ArrayBuffer")&&(!JE||JE(e))}:JE,Dpe=!di(function(){return Object.isExtensible(Object.preventExtensions({}))}),RR=_D(function(e){var t=gu.f,n=!1,r=ID("meta"),i=0,a=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var s=LE.f,u=sr([].splice),f={};f[r]=1,s(f).length&&(LE.f=function(m){for(var k=s(m),K=0,U=k.length;K<U;K++)if(k[K]===r){u(k,K,1);break}return k},ko({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ope.f}))},fastKey:function(s,u){if(!pi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!wa(s,r)){if(!vh(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!wa(s,r)){if(!vh(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Dpe&&n&&vh(s)&&!wa(s,r)&&a(s),s}};DE[r]=!0}),QE=RR.getWeakData,Rpe=es.set,Ipe=es.getterFor,Lpe=XD.find,Ppe=XD.findIndex,kpe=sr([].splice),Mpe=0,ZE=function(e){return e.frozen||(e.frozen=new oU)},oU=function(){this.entries=[]},IR=function(e,t){return Lpe(e.entries,function(n){return n[0]===t})};oU.prototype={get:function(e){var t=IR(this,e);if(t)return t[1]},has:function(e){return!!IR(this,e)},set:function(e,t){var n=IR(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ppe(this.entries,function(n){return n[0]===e});return~t&&kpe(this.entries,t,1),!!~t}};var Zv,sU={getConstructor:function(e,t,n,r){var i=e(function(u,f){sR(u,a),Rpe(u,{type:t,id:Mpe++,frozen:void 0}),f!=null&&KE(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=Ipe(t),s=function(u,f,m){var k=o(u),K=QE(Ba(f),!0);return K===!0?ZE(k).set(f,m):K[k.id]=m,u};return WE(a,{delete:function(u){var f=o(this);if(!pi(u))return!1;var m=QE(u);return m===!0?ZE(f).delete(u):m&&wa(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!pi(u))return!1;var m=QE(u);return m===!0?ZE(f).has(u):m&&wa(m,f.id)}}),WE(a,n?{get:function(u){var f=o(this);if(pi(u)){var m=QE(u);return m===!0?ZE(f).get(u):m?m[f.id]:void 0}},set:function(u,f){return s(this,u,f)}}:{add:function(u){return s(this,u,!0)}}),i}},$E=es.enforce,Npe=!bn.ActiveXObject&&"ActiveXObject"in bn,lU=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Bpe=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=r?"set":"add",o=bn[e],s=o&&o.prototype,u=o,f={},m=function(ee){var te=sr(s[ee]);ts(s,ee,ee=="add"?function(Q){return te(this,Q===0?0:Q),this}:ee=="delete"?function(Q){return!(i&&!pi(Q))&&te(this,Q===0?0:Q)}:ee=="get"?function(Q){return i&&!pi(Q)?void 0:te(this,Q===0?0:Q)}:ee=="has"?function(Q){return!(i&&!pi(Q))&&te(this,Q===0?0:Q)}:function(Q,he){return te(this,Q===0?0:Q,he),this})};if(PE(e,!ti(o)||!(i||s.forEach&&!di(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),RR.enable();else if(PE(e,!0)){var k=new u,K=k[a](i?{}:-0,1)!=k,U=di(function(){k.has(1)}),re=Sj(function(ee){new o(ee)}),$=!i&&di(function(){for(var ee=new o,te=5;te--;)ee[a](te,te);return!ee.has(-0)});re||((u=t(function(ee,te){sR(ee,s);var Q=function(he,me,_e){var ke,De;return pp&&ti(ke=me.constructor)&&ke!==_e&&pi(De=ke.prototype)&&De!==_e.prototype&&pp(he,De),he}(new o,ee,u);return te!=null&&KE(te,Q[a],{that:Q,AS_ENTRIES:r}),Q})).prototype=s,s.constructor=u),(U||$)&&(m("delete"),m("has"),r&&m("get")),($||K)&&m(a),i&&s.clear&&delete s.clear}return f[e]=u,ko({global:!0,forced:u!=o},f),zE(u,e),i||n.setStrong(u,e,r),u}("WeakMap",lU,sU);if(PF&&Npe){Zv=sU.getConstructor(lU,"WeakMap",!0),RR.enable();var $v=Bpe.prototype,uU=sr($v.delete),qE=sr($v.has),cU=sr($v.get),dU=sr($v.set);WE($v,{delete:function(e){if(pi(e)&&!vh(e)){var t=$E(this);return t.frozen||(t.frozen=new Zv),uU(this,e)||t.frozen.delete(e)}return uU(this,e)},has:function(e){if(pi(e)&&!vh(e)){var t=$E(this);return t.frozen||(t.frozen=new Zv),qE(this,e)||t.frozen.has(e)}return qE(this,e)},get:function(e){if(pi(e)&&!vh(e)){var t=$E(this);return t.frozen||(t.frozen=new Zv),qE(this,e)?cU(this,e):t.frozen.get(e)}return cU(this,e)},set:function(e,t){if(pi(e)&&!vh(e)){var n=$E(this);n.frozen||(n.frozen=new Zv),qE(this,e)?dU(this,e,t):n.frozen.set(e,t)}else dU(this,e,t);return this}})}var hU={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},LR=kv("span").classList,fU=LR&&LR.constructor&&LR.constructor.prototype,Fpe=fU===Object.prototype?void 0:fU,PR=la("iterator"),pU=la("toStringTag"),kR=Qv.values,mU=function(e,t){if(e){if(e[PR]!==kR)try{Bc(e,PR,kR)}catch(r){e[PR]=kR}if(e[pU]||Bc(e,pU,t),hU[t]){for(var n in Qv)if(e[n]!==Qv[n])try{Bc(e,n,Qv[n])}catch(r){e[n]=Qv[n]}}}};for(var MR in hU)mU(bn[MR]&&bn[MR].prototype,MR);mU(Fpe,"DOMTokenList");var jpe=fp.EXISTS,Upe=gu.f,gU=Function.prototype,Hpe=sr(gU.toString),vU=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wpe=sr(vU.exec);kl&&!jpe&&Upe(gU,"name",{configurable:!0,get:function(){try{return Wpe(vU,Hpe(this))[1]}catch(e){return""}}});var zpe=la("species"),Gpe=Iv>=51||!di(function(){var e=[];return(e.constructor={})[zpe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),Kpe=la("species"),NR=bn.Array,Vpe=Math.max;function yU(e){return e.getMenuConfig("uploadVideo")}ko({target:"Array",proto:!0,forced:!Gpe},{slice:function(e,t){var n,r,i,a=kc(this),o=Bv(a),s=Nv(e,o),u=Nv(t===void 0?o:t,o);if(FE(a)&&(n=a.constructor,(YD(n)&&(n===NR||FE(n.prototype))||pi(n)&&(n=n[Kpe])===null)&&(n=void 0),n===NR||n===void 0))return Cj(a,s,u);for(r=new(n===void 0?NR:n)(Vpe(u-s,0)),i=0;s<u;s++,i++)s in a&&nU(r,i,a[s]);return r.length=i,r}});var bU=new WeakMap;function Ype(e,t){return bE(this,void 0,void 0,function(){var n,r,i,a;return EE(this,function(o){switch(o.label){case 0:return n=function(s){var u=bU.get(s);if(u!=null)return u;var f=yU(s),m=f.onSuccess,k=f.onProgress,K=f.onFailed,U=f.customInsert,re=f.onError;return u=E3(yE(yE({},f),{onProgress:function($){s.showProgressBar($),k&&k($)},onSuccess:function($,ee){if(U)return U(ee,function(Ye,rt){return Xv(s,Ye,rt)}),void m($,ee);var te=ee.errno,Q=te===void 0?1:te,he=ee.data,me=he===void 0?{}:he;if(Q===0){var _e=me.url,ke=_e===void 0?"":_e,De=me.poster;Xv(s,ke,De===void 0?"":De),m($,ee)}else K($,ee)},onError:function($,ee,te){re($,ee,te)}})),bU.set(s,u),u}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}})})}var Xpe=function(){function e(){this.title=pn("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,a=i===void 0?[]:i,o=r.customBrowseAndUpload;if(o)o(function(m,k){return Xv(t,m,k)});else{var s="";a.length>0&&(s='accept="'+a.join(", ")+'"');var u=Qe("body"),f=Qe('<input type="file" '+s+" multiple/>");f.hide(),u.append(f),f.click(),f.on("change",function(){var m=f[0].files;!function(k,K){var U,re;bE(this,void 0,void 0,function(){var $,ee,te,Q,he,me;return EE(this,function(_e){switch(_e.label){case 0:if(K==null)return[2];$=Array.prototype.slice.call(K),ee=yU(k).customUpload,_e.label=1;case 1:_e.trys.push([1,9,10,15]),te=Vde($),_e.label=2;case 2:return[4,te.next()];case 3:return(Q=_e.sent()).done?[3,8]:(he=Q.value,ee?[4,ee(he,function(ke,De){return Xv(k,ke,De)})]:[3,5]);case 4:return _e.sent(),[3,7];case 5:return[4,Ype(k,he)];case 6:_e.sent(),_e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return me=_e.sent(),U={error:me},[3,15];case 10:return _e.trys.push([10,,13,14]),Q&&!Q.done&&(re=te.return)?[4,re.call(te)]:[3,12];case 11:_e.sent(),_e.label=12;case 12:return[3,14];case 13:if(U)throw U.error;return[7];case 14:return[7];case 15:return[2]}})})}(t,m)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!_t.isCollapsed(n)||!!Ge.getSelectedElems(t).some(function(r){var i=Ge.getNodeType(r);return i==="pre"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Jpe=fp.PROPER,BR=RegExp.prototype,EU=BR.toString,Qpe=sr(rj),Zpe=di(function(){return EU.call({source:"a",flags:"b"})!="/a/b"}),$pe=Jpe&&EU.name!="toString";function FR(){return mj("w-e-insert-video")}(Zpe||$pe)&&ts(RegExp.prototype,"toString",function(){var e=Ba(this),t=Ps(e.source),n=e.flags;return"/"+t+"/"+Ps(n===void 0&&Rv(BR,e)&&!("flags"in BR)?Qpe(e):n)},{unsafe:!0});var qpe=function(){function e(){this.title=pn("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=FR(),this.heightInputId=FR(),this.buttonId=FR()}return e.prototype.getSelectedVideoNode=function(t){return Ge.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,i=n.heightInputId,a=n.buttonId,o=ch(Xo(pn("videoModule.width"),r,"auto"),2),s=o[0],u=Qe(o[1]),f=ch(Xo(pn("videoModule.height"),i,"auto"),2),m=f[0],k=Qe(f[1]),K=ch(Mf(a,pn("videoModule.ok")),1)[0];if(this.$content==null){var U=Qe("<div></div>");U.on("click","#"+a,function(me){me.preventDefault();var _e=U.find("#"+r).val().trim(),ke=U.find("#"+i).val().trim(),De=parseInt(_e),Ye=parseInt(ke),rt=De?De.toString():"auto",wt=Ye?Ye.toString():"auto";t.restoreSelection(),ct.setNodes(t,{width:rt,height:wt},{match:function(Lt){return Ge.checkNodeType(Lt,"video")}}),t.hidePanelOrModal()}),this.$content=U}var re=this.$content;re.empty(),re.append(s),re.append(m),re.append(K);var $=this.getSelectedVideoNode(t);if($==null)return re[0];var ee=$.width,te=ee===void 0?"auto":ee,Q=$.height,he=Q===void 0?"auto":Q;return u.val(te),k.val(he),setTimeout(function(){u.focus()}),re[0]},e}(),eme={renderElems:[Xhe],elemsToHtml:[Jhe],preParseHtml:[qhe],parseElemsHtml:[sfe],menus:[{key:"insertVideo",factory:function(){return new upe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Xpe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new qpe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="video"||t(i)},r.normalizeNode=function(i){var a=ch(i,2),o=a[0],s=a[1];return Ge.getNodeType(o)==="video"&&Ge.isLastNode(r,o)&&ct.insertNodes(r,Ge.genEmptyParagraph(),{at:[s[0]+1]}),n([o,s])},r}};Ro("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Ro("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var _U=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function jR(e){var t={exports:{}};return e(t,t.exports),t.exports}var Uc,e_,t_=function(e){return e&&e.Math==Math&&e},vn=t_(typeof globalThis=="object"&&globalThis)||t_(typeof window=="object"&&window)||t_(typeof self=="object"&&self)||t_(typeof _U=="object"&&_U)||function(){return this}()||Function("return this")(),mi=function(e){try{return!!e()}catch(t){return!0}},Bl=!mi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),qv=Function.prototype.call,Zr=qv.bind?qv.bind(qv):function(){return qv.apply(qv,arguments)},xU={}.propertyIsEnumerable,wU=Object.getOwnPropertyDescriptor,tme={f:wU&&!xU.call({1:2},1)?function(e){var t=wU(this,e);return!!t&&t.enumerable}:xU},n_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},TU=Function.prototype,UR=TU.bind,HR=TU.call,nme=UR&&UR.bind(HR),_r=UR?function(e){return e&&nme(HR,e)}:function(e){return e&&function(){return HR.apply(e,arguments)}},rme=_r({}.toString),ime=_r("".slice),tl=function(e){return ime(rme(e),8,-1)},WR=vn.Object,ame=_r("".split),zR=mi(function(){return!WR("z").propertyIsEnumerable(0)})?function(e){return tl(e)=="String"?ame(e,""):WR(e)}:WR,ome=vn.TypeError,e0=function(e){if(e==null)throw ome("Can't call method on "+e);return e},Hc=function(e){return zR(e0(e))},oi=function(e){return typeof e=="function"},hi=function(e){return typeof e=="object"?e!==null:oi(e)},sme=function(e){return oi(e)?e:void 0},yh=function(e,t){return arguments.length<2?sme(vn[e]):vn[e]&&vn[e][t]},t0=_r({}.isPrototypeOf),_p=yh("navigator","userAgent")||"",SU=vn.process,CU=vn.Deno,AU=SU&&SU.versions||CU&&CU.version,OU=AU&&AU.v8;OU&&(e_=(Uc=OU.split("."))[0]>0&&Uc[0]<4?1:+(Uc[0]+Uc[1])),!e_&&_p&&(!(Uc=_p.match(/Edge\/(\d+)/))||Uc[1]>=74)&&(Uc=_p.match(/Chrome\/(\d+)/))&&(e_=+Uc[1]);var n0=e_,GR=!!Object.getOwnPropertySymbols&&!mi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n0&&n0<41}),KR=GR&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lme=vn.Object,VR=KR?function(e){return typeof e=="symbol"}:function(e){var t=yh("Symbol");return oi(t)&&t0(t.prototype,lme(e))},ume=vn.String,r_=function(e){try{return ume(e)}catch(t){return"Object"}},cme=vn.TypeError,Wc=function(e){if(oi(e))return e;throw cme(r_(e)+" is not a function")},r0=function(e,t){var n=e[t];return n==null?void 0:Wc(n)},dme=vn.TypeError,hme=Object.defineProperty,YR=function(e,t){try{hme(vn,e,{value:t,configurable:!0,writable:!0})}catch(n){vn[e]=t}return t},zc=vn["__core-js_shared__"]||YR("__core-js_shared__",{}),XR=jR(function(e){(e.exports=function(t,n){return zc[t]||(zc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),fme=vn.Object,JR=function(e){return fme(e0(e))},pme=_r({}.hasOwnProperty),Ta=Object.hasOwn||function(e,t){return pme(JR(e),t)},mme=0,gme=Math.random(),vme=_r(1 .toString),QR=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vme(++mme+gme,36)},i0=XR("wks"),bh=vn.Symbol,DU=bh&&bh.for,yme=KR?bh:bh&&bh.withoutSetter||QR,ua=function(e){if(!Ta(i0,e)||!GR&&typeof i0[e]!="string"){var t="Symbol."+e;GR&&Ta(bh,e)?i0[e]=bh[e]:i0[e]=KR&&DU?DU(t):yme(t)}return i0[e]},bme=vn.TypeError,Eme=ua("toPrimitive"),ZR=function(e){var t=function(n,r){if(!hi(n)||VR(n))return n;var i,a=r0(n,Eme);if(a){if(r===void 0&&(r="default"),i=Zr(a,n,r),!hi(i)||VR(i))return i;throw bme("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&oi(u=o.toString)&&!hi(f=Zr(u,o)))return f;if(oi(u=o.valueOf)&&!hi(f=Zr(u,o)))return f;if(s!=="string"&&oi(u=o.toString)&&!hi(f=Zr(u,o)))return f;throw dme("Can't convert object to primitive value")}(n,r)}(e,"string");return VR(t)?t:t+""},$R=vn.document,_me=hi($R)&&hi($R.createElement),a0=function(e){return _me?$R.createElement(e):{}},RU=!Bl&&!mi(function(){return Object.defineProperty(a0("div"),"a",{get:function(){return 7}}).a!=7}),IU=Object.getOwnPropertyDescriptor,qR={f:Bl?IU:function(e,t){if(e=Hc(e),t=ZR(t),RU)try{return IU(e,t)}catch(n){}if(Ta(e,t))return n_(!Zr(tme.f,e,t),e[t])}},xme=vn.String,wme=vn.TypeError,Fa=function(e){if(hi(e))return e;throw wme(xme(e)+" is not an object")},Tme=vn.TypeError,LU=Object.defineProperty,yu={f:Bl?LU:function(e,t,n){if(Fa(e),t=ZR(t),Fa(n),RU)try{return LU(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Tme("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Fl=Bl?function(e,t,n){return yu.f(e,t,n_(1,n))}:function(e,t,n){return e[t]=n,e},Sme=_r(Function.toString);oi(zc.inspectSource)||(zc.inspectSource=function(e){return Sme(e)});var i_,o0,a_,o_=zc.inspectSource,PU=vn.WeakMap,kU=oi(PU)&&/native code/.test(o_(PU)),MU=XR("keys"),e4=function(e){return MU[e]||(MU[e]=QR(e))},s_={},t4=vn.TypeError,Cme=vn.WeakMap;if(kU||zc.state){var Eh=zc.state||(zc.state=new Cme),Ame=_r(Eh.get),NU=_r(Eh.has),Ome=_r(Eh.set);i_=function(e,t){if(NU(Eh,e))throw new t4("Object already initialized");return t.facade=e,Ome(Eh,e,t),t},o0=function(e){return Ame(Eh,e)||{}},a_=function(e){return NU(Eh,e)}}else{var xp=e4("state");s_[xp]=!0,i_=function(e,t){if(Ta(e,xp))throw new t4("Object already initialized");return t.facade=e,Fl(e,xp,t),t},o0=function(e){return Ta(e,xp)?e[xp]:{}},a_=function(e){return Ta(e,xp)}}var ns={set:i_,get:o0,has:a_,enforce:function(e){return a_(e)?o0(e):i_(e,{})},getterFor:function(e){return function(t){var n;if(!hi(t)||(n=o0(t)).type!==e)throw t4("Incompatible receiver, "+e+" required");return n}}},BU=Function.prototype,Dme=Bl&&Object.getOwnPropertyDescriptor,n4=Ta(BU,"name"),s0={EXISTS:n4,PROPER:n4&&function(){}.name==="something",CONFIGURABLE:n4&&(!Bl||Bl&&Dme(BU,"name").configurable)},rs=jR(function(e){var t=s0.CONFIGURABLE,n=ns.get,r=ns.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;oi(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ta(s,"name")||t&&s.name!==U)&&Fl(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==vn?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:Fl(a,o,s)):k?a[o]=s:YR(o,s)})(Function.prototype,"toString",function(){return oi(this)&&n(this).source||o_(this)})}),Rme=Math.ceil,Ime=Math.floor,r4=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ime:Rme)(t)},Lme=Math.max,Pme=Math.min,l0=function(e,t){var n=r4(e);return n<0?Lme(n+t,0):Pme(n,t)},kme=Math.min,FU=function(e){return e>0?kme(r4(e),9007199254740991):0},u0=function(e){return FU(e.length)},jU=function(e){return function(t,n,r){var i,a=Hc(t),o=u0(a),s=l0(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Mme=(jU(!0),jU(!1)),UU=_r([].push),HU=function(e,t){var n,r=Hc(e),i=0,a=[];for(n in r)!Ta(s_,n)&&Ta(r,n)&&UU(a,n);for(;t.length>i;)Ta(r,n=t[i++])&&(~Mme(a,n)||UU(a,n));return a},l_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nme=l_.concat("length","prototype"),u_={f:Object.getOwnPropertyNames||function(e){return HU(e,Nme)}},Bme={f:Object.getOwnPropertySymbols},Fme=_r([].concat),jme=yh("Reflect","ownKeys")||function(e){var t=u_.f(Fa(e)),n=Bme.f;return n?Fme(t,n(e)):t},Ume=function(e,t){for(var n=jme(t),r=yu.f,i=qR.f,a=0;a<n.length;a++){var o=n[a];Ta(e,o)||r(e,o,i(t,o))}},Hme=/#|\.prototype\./,c0=function(e,t){var n=zme[Wme(e)];return n==Kme||n!=Gme&&(oi(t)?mi(t):!!t)},Wme=c0.normalize=function(e){return String(e).replace(Hme,".").toLowerCase()},zme=c0.data={},Gme=c0.NATIVE="N",Kme=c0.POLYFILL="P",c_=c0,Vme=qR.f,jl=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?vn:f?vn[s]||YR(s,{}):(vn[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Vme(n,r))&&o.value:n[r],!c_(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Ume(a,i)}(e.sham||i&&i.sham)&&Fl(a,"sham",!0),rs(n,r,a,e)}},d_=Array.isArray||function(e){return tl(e)=="Array"},WU={};WU[ua("toStringTag")]="z";var i4=String(WU)==="[object z]",Yme=ua("toStringTag"),Xme=vn.Object,Jme=tl(function(){return arguments}())=="Arguments",h_=i4?tl:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=Xme(e),Yme))=="string"?n:Jme?tl(t):(r=tl(t))=="Object"&&oi(t.callee)?"Arguments":r},zU=function(){},Qme=[],GU=yh("Reflect","construct"),a4=/^\s*(?:class|function)\b/,Zme=_r(a4.exec),$me=!a4.exec(zU),d0=function(e){if(!oi(e))return!1;try{return GU(zU,Qme,e),!0}catch(t){return!1}},o4=!GU||mi(function(){var e;return d0(d0.call)||!d0(Object)||!d0(function(){e=!0})||e})?function(e){if(!oi(e))return!1;switch(h_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $me||!!Zme(a4,o_(e))}:d0,KU=function(e,t,n){var r=ZR(t);r in e?yu.f(e,r,n_(0,n)):e[r]=n},qme=ua("species"),VU=_r([].slice),ege=n0>=51||!mi(function(){var e=[];return(e.constructor={})[qme]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),tge=ua("species"),s4=vn.Array,nge=Math.max;jl({target:"Array",proto:!0,forced:!ege},{slice:function(e,t){var n,r,i,a=Hc(this),o=u0(a),s=l0(e,o),u=l0(t===void 0?o:t,o);if(d_(a)&&(n=a.constructor,(o4(n)&&(n===s4||d_(n.prototype))||hi(n)&&(n=n[tge])===null)&&(n=void 0),n===s4||n===void 0))return VU(a,s,u);for(r=new(n===void 0?s4:n)(nge(u-s,0)),i=0;s<u;s++,i++)s in a&&KU(r,i,a[s]);return r.length=i,r}});var rge=i4?{}.toString:function(){return"[object "+h_(this)+"]"};i4||rs(Object.prototype,"toString",rge,{unsafe:!0});var f_,ige=vn.String,Gc=function(e){if(h_(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ige(e)},YU=function(){var e=Fa(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},l4=vn.RegExp,u4=mi(function(){var e=l4("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),age=u4||mi(function(){return!l4("a","y").sticky}),XU={BROKEN_CARET:u4||mi(function(){var e=l4("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:age,UNSUPPORTED_Y:u4},oge=Object.keys||function(e){return HU(e,l_)},sge=Bl?Object.defineProperties:function(e,t){Fa(e);for(var n,r=Hc(t),i=oge(t),a=i.length,o=0;a>o;)yu.f(e,n=i[o++],r[n]);return e},c4=yh("document","documentElement"),JU=e4("IE_PROTO"),d4=function(){},QU=function(e){return"<script>"+e+"</script>"},ZU=function(e){e.write(QU("")),e.close();var t=e.parentWindow.Object;return e=null,t},p_=function(){try{f_=new ActiveXObject("htmlfile")}catch(r){}var e,t;p_=typeof document!="undefined"?document.domain&&f_?ZU(f_):((t=a0("iframe")).style.display="none",c4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(QU("document.F=Object")),e.close(),e.F):ZU(f_);for(var n=l_.length;n--;)delete p_.prototype[l_[n]];return p_()};s_[JU]=!0;var $U,h4,f4=Object.create||function(e,t){var n;return e!==null?(d4.prototype=Fa(e),n=new d4,d4.prototype=null,n[JU]=e):n=p_(),t===void 0?n:sge(n,t)},lge=vn.RegExp,uge=mi(function(){var e=lge(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),cge=vn.RegExp,dge=mi(function(){var e=cge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),hge=ns.get,fge=XR("native-string-replace",String.prototype.replace),m_=RegExp.prototype.exec,p4=m_,pge=_r("".charAt),mge=_r("".indexOf),gge=_r("".replace),m4=_r("".slice),g4=(h4=/b*/g,Zr(m_,$U=/a/,"a"),Zr(m_,h4,"a"),$U.lastIndex!==0||h4.lastIndex!==0),qU=XU.BROKEN_CARET,v4=/()??/.exec("")[1]!==void 0;(g4||v4||qU||uge||dge)&&(p4=function(e){var t,n,r,i,a,o,s,u=this,f=hge(u),m=Gc(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=Zr(p4,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=qU&&u.sticky,re=Zr(YU,u),$=u.source,ee=0,te=m;if(U&&(re=gge(re,"y",""),mge(re,"g")===-1&&(re+="g"),te=m4(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&pge(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),v4&&(n=new RegExp("^"+$+"$(?!\\s)",re)),g4&&(r=u.lastIndex),i=Zr(m_,U?n:u,te),U?i?(i.input=m4(i.input,ee),i[0]=m4(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:g4&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),v4&&i&&i.length>1&&Zr(fge,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=f4(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var h0=p4;jl({target:"RegExp",proto:!0,forced:/./.exec!==h0},{exec:h0});var y4=Function.prototype,eH=y4.apply,vge=y4.bind,tH=y4.call,nH=typeof Reflect=="object"&&Reflect.apply||(vge?tH.bind(eH):function(){return tH.apply(eH,arguments)}),yge=ua("species"),b4=RegExp.prototype,bge=ua("match"),Ege=vn.TypeError,_ge=ua("species"),rH=function(e,t){var n,r=Fa(e).constructor;return r===void 0||(n=Fa(r)[_ge])==null?t:function(i){if(o4(i))return i;throw Ege(r_(i)+" is not a constructor")}(n)},xge=_r("".charAt),iH=_r("".charCodeAt),wge=_r("".slice),aH=function(e){return function(t,n){var r,i,a=Gc(e0(t)),o=r4(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=iH(a,o))<55296||r>56319||o+1===s||(i=iH(a,o+1))<56320||i>57343?e?xge(a,o):r:e?wge(a,o,o+2):i-56320+(r-55296<<10)+65536}},oH={codeAt:aH(!1),charAt:aH(!0)},Tge=oH.charAt,Sge=function(e,t,n){return t+(n?Tge(e,t).length:1)},Cge=vn.Array,Age=Math.max,E4=function(e,t,n){for(var r=u0(e),i=l0(t,r),a=l0(n===void 0?r:n,r),o=Cge(Age(a-i,0)),s=0;i<a;i++,s++)KU(o,s,e[i]);return o.length=s,o},Oge=vn.TypeError,sH=function(e,t){var n=e.exec;if(oi(n)){var r=Zr(n,e,t);return r!==null&&Fa(r),r}if(tl(e)==="RegExp")return Zr(h0,e,t);throw Oge("RegExp#exec called on incompatible receiver")},wp=XU.UNSUPPORTED_Y,Dge=Math.min,lH=[].push,Rge=_r(/./.exec),Tp=_r(lH),f0=_r("".slice);!function(e,t,n,r){var i=ua(e),a=!mi(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!mi(function(){var f=!1,m=/a/;return(m={}).constructor={},m.constructor[yge]=function(){return m},m.flags="",m[i]=/./[i],m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=_r(/./[i]),u=function(f,m,k){var K;return K="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(U,re){var $,ee,te=Gc(e0(this)),Q=re===void 0?4294967295:re>>>0;if(Q===0)return[];if(U===void 0)return[te];if(!hi($=U)||!((ee=$[bge])!==void 0?ee:tl($)=="RegExp"))return Zr(m,te,U,Q);for(var he,me,_e,ke=[],De=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(U.sticky?"y":""),Ye=0,rt=new RegExp(U.source,De+"g");(he=Zr(h0,rt,te))&&!((me=rt.lastIndex)>Ye&&(Tp(ke,f0(te,Ye,he.index)),he.length>1&&he.index<te.length&&nH(lH,ke,E4(he,1)),_e=he[0].length,Ye=me,ke.length>=Q));)rt.lastIndex===he.index&&rt.lastIndex++;return Ye===te.length?!_e&&Rge(rt,"")||Tp(ke,""):Tp(ke,f0(te,Ye)),ke.length>Q?E4(ke,0,Q):ke}:"0".split(void 0,0).length?function(U,re){return U===void 0&&re===0?[]:Zr(m,this,U,re)}:m,[function(U,re){var $=e0(this),ee=U==null?void 0:r0(U,f);return ee?Zr(ee,U,$,re):Zr(K,Gc($),U,re)},function(U,re){var $=Fa(this),ee=Gc(U),te=k(K,$,ee,re,K!==m);if(te.done)return te.value;var Q=rH($,RegExp),he=$.unicode,me=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(wp?"g":"y"),_e=new Q(wp?"^(?:"+$.source+")":$,me),ke=re===void 0?4294967295:re>>>0;if(ke===0)return[];if(ee.length===0)return sH(_e,ee)===null?[ee]:[];for(var De=0,Ye=0,rt=[];Ye<ee.length;){_e.lastIndex=wp?0:Ye;var wt,Lt=sH(_e,wp?f0(ee,Ye):ee);if(Lt===null||(wt=Dge(FU(_e.lastIndex+(wp?Ye:0)),ee.length))===De)Ye=Sge(ee,Ye,he);else{if(Tp(rt,f0(ee,De,Ye)),rt.length===ke)return rt;for(var Tt=1;Tt<=Lt.length-1;Tt++)if(Tp(rt,Lt[Tt]),rt.length===ke)return rt;Ye=De=wt}}return Tp(rt,f0(ee,De)),rt}]}(i,""[e],function(f,m,k,K,U){var re=_r(f),$=m.exec;return $===h0||$===b4.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});rs(String.prototype,e,u[0]),rs(b4,i,u[1])}r&&Fl(b4[i],"sham",!0)}("split",0,!!mi(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),wp);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var g_=function(){return g_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g_.apply(this,arguments)};function _4(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(f){try{u(r.next(f))}catch(m){a(m)}}function s(f){try{u(r.throw(f))}catch(m){a(m)}}function u(f){var m;f.done?i(f.value):(m=f.value,m instanceof n?m:new n(function(k){k(m)})).then(o,s)}u((r=r.apply(e,t||[])).next())})}function x4(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return function(m){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&m[0]?r.return:m[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,m[1])).done)return i;switch(r=0,i&&(m=[2&m[0],i.value]),m[0]){case 0:case 1:i=m;break;case 4:return o.label++,{value:m[1],done:!1};case 5:o.label++,r=m[1],m=[0];continue;case 7:m=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||m[0]!==6&&m[0]!==2)){o=0;continue}if(m[0]===3&&(!i||m[1]>i[0]&&m[1]<i[3])){o.label=m[1];break}if(m[0]===6&&o.label<i[1]){o.label=i[1],i=m;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(m);break}i[2]&&o.ops.pop(),o.trys.pop();continue}m=t.call(e,o)}catch(k){m=[6,k],r=0}finally{n=i=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([u,f])}}}function Ige(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(i){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&i[a],s=0;if(o)return o.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(a){return new Promise(function(o,s){!function(u,f,m,k){Promise.resolve(k).then(function(K){u({value:K,done:m})},f)}(o,s,(a=e[i](a)).done,a.value)})}}}var w4=ua("unscopables"),T4=Array.prototype;T4[w4]==null&&yu.f(T4,w4,{configurable:!0,value:f4(null)});var _h,uH,cH,S4=function(e){T4[w4][e]=!0},Sp={},Lge=!mi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dH=e4("IE_PROTO"),C4=vn.Object,Pge=C4.prototype,v_=Lge?C4.getPrototypeOf:function(e){var t=JR(e);if(Ta(t,dH))return t[dH];var n=t.constructor;return oi(n)&&t instanceof n?n.prototype:t instanceof C4?Pge:null},A4=ua("iterator"),hH=!1;[].keys&&("next"in(cH=[].keys())?(uH=v_(v_(cH)))!==Object.prototype&&(_h=uH):hH=!0);var kge=_h==null||mi(function(){var e={};return _h[A4].call(e)!==e});kge&&(_h={}),oi(_h[A4])||rs(_h,A4,function(){return this});var O4={IteratorPrototype:_h,BUGGY_SAFARI_ITERATORS:hH},Mge=yu.f,fH=ua("toStringTag"),y_=function(e,t,n){e&&!Ta(e=n?e:e.prototype,fH)&&Mge(e,fH,{configurable:!0,value:t})},Nge=O4.IteratorPrototype,Bge=function(){return this},Fge=vn.String,jge=vn.TypeError,Cp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=_r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Fa(r),function(a){if(typeof a=="object"||oi(a))return a;throw jge("Can't set "+Fge(a)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Uge=s0.PROPER,Hge=s0.CONFIGURABLE,pH=O4.IteratorPrototype,b_=O4.BUGGY_SAFARI_ITERATORS,p0=ua("iterator"),Wge=function(){return this},mH=function(e,t,n,r,i,a,o){!function(te,Q,he,me){var _e=Q+" Iterator";te.prototype=f4(Nge,{next:n_(1,he)}),y_(te,_e,!1),Sp[_e]=Bge}(n,t,r);var s,u,f,m=function(te){if(te===i&&$)return $;if(!b_&&te in U)return U[te];switch(te){case"keys":case"values":case"entries":return function(){return new n(this,te)}}return function(){return new n(this)}},k=t+" Iterator",K=!1,U=e.prototype,re=U[p0]||U["@@iterator"]||i&&U[i],$=!b_&&re||m(i),ee=t=="Array"&&U.entries||re;if(ee&&(s=v_(ee.call(new e)))!==Object.prototype&&s.next&&(v_(s)!==pH&&(Cp?Cp(s,pH):oi(s[p0])||rs(s,p0,Wge)),y_(s,k,!0)),Uge&&i=="values"&&re&&re.name!=="values"&&(Hge?Fl(U,"name","values"):(K=!0,$=function(){return Zr(re,this)})),i)if(u={values:m("values"),keys:a?$:m("keys"),entries:m("entries")},o)for(f in u)(b_||K||!(f in U))&&rs(U,f,u[f]);else jl({target:t,proto:!0,forced:b_||K},u);return U[p0]!==$&&rs(U,p0,$,{name:i}),Sp[t]=$,u},zge=ns.set,Gge=ns.getterFor("Array Iterator"),m0=mH(Array,"Array",function(e,t){zge(this,{type:"Array Iterator",target:Hc(e),index:0,kind:t})},function(){var e=Gge(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Sp.Arguments=Sp.Array,S4("keys"),S4("values"),S4("entries");var Kge=oH.charAt,Vge=ns.set,Yge=ns.getterFor("String Iterator");mH(String,"String",function(e){Vge(this,{type:"String Iterator",string:Gc(e),index:0})},function(){var e,t=Yge(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Kge(n,r),t.index+=e.length,{value:e,done:!1})});var E_=function(e,t,n){for(var r in t)rs(e,r,t[r],n);return e},gH=u_.f,vH=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xge={f:function(e){return vH&&tl(e)=="Window"?function(t){try{return gH(t)}catch(n){return E4(vH)}}(e):gH(Hc(e))}},yH=mi(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),__=Object.isExtensible,xh=mi(function(){__(1)})||yH?function(e){return!!hi(e)&&(!yH||tl(e)!="ArrayBuffer")&&(!__||__(e))}:__,Jge=!mi(function(){return Object.isExtensible(Object.preventExtensions({}))}),D4=jR(function(e){var t=yu.f,n=!1,r=QR("meta"),i=0,a=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var s=u_.f,u=_r([].splice),f={};f[r]=1,s(f).length&&(u_.f=function(m){for(var k=s(m),K=0,U=k.length;K<U;K++)if(k[K]===r){u(k,K,1);break}return k},jl({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xge.f}))},fastKey:function(s,u){if(!hi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ta(s,r)){if(!xh(s))return"F";if(!u)return"E";a(s)}return s[r].objectID},getWeakData:function(s,u){if(!Ta(s,r)){if(!xh(s))return!0;if(!u)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return Jge&&n&&xh(s)&&!Ta(s,r)&&a(s),s}};s_[r]=!0}),bH=_r(_r.bind),g0=function(e,t){return Wc(e),t===void 0?e:bH?bH(e,t):function(){return e.apply(t,arguments)}},Qge=ua("iterator"),Zge=Array.prototype,$ge=ua("iterator"),EH=function(e){if(e!=null)return r0(e,$ge)||r0(e,"@@iterator")||Sp[h_(e)]},qge=vn.TypeError,_H=function(e,t,n){var r,i;Fa(e);try{if(!(r=r0(e,"return"))){if(t==="throw")throw n;return n}r=Zr(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Fa(r),n},eve=vn.TypeError,x_=function(e,t){this.stopped=e,this.result=t},xH=x_.prototype,w_=function(e,t,n){var r,i,a,o,s,u,f,m,k=n&&n.that,K=!(!n||!n.AS_ENTRIES),U=!(!n||!n.IS_ITERATOR),re=!(!n||!n.INTERRUPTED),$=g0(t,k),ee=function(Q){return r&&_H(r,"normal",Q),new x_(!0,Q)},te=function(Q){return K?(Fa(Q),re?$(Q[0],Q[1],ee):$(Q[0],Q[1])):re?$(Q,ee):$(Q)};if(U)r=e;else{if(!(i=EH(e)))throw eve(r_(e)+" is not iterable");if((m=i)!==void 0&&(Sp.Array===m||Zge[Qge]===m)){for(a=0,o=u0(e);o>a;a++)if((s=te(e[a]))&&t0(xH,s))return s;return new x_(!1)}r=function(Q,he){var me=arguments.length<2?EH(Q):he;if(Wc(me))return Fa(Zr(me,Q));throw qge(r_(Q)+" is not iterable")}(e,i)}for(u=r.next;!(f=Zr(u,r)).done;){try{s=te(f.value)}catch(Q){_H(r,"throw",Q)}if(typeof s=="object"&&s&&t0(xH,s))return s}return new x_(!1)},tve=vn.TypeError,R4=function(e,t){if(t0(t,e))return e;throw tve("Incorrect invocation")},wH=ua("iterator"),TH=!1;try{var nve=0,SH={next:function(){return{done:!!nve++}},return:function(){TH=!0}};SH[wH]=function(){return this},Array.from(SH,function(){throw 2})}catch(e){}var CH=function(e,t){if(!t&&!TH)return!1;var n=!1;try{var r={};r[wH]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},rve=ua("species"),AH=vn.Array,ive=function(e,t){return new(function(n){var r;return d_(n)&&(r=n.constructor,(o4(r)&&(r===AH||d_(r.prototype))||hi(r)&&(r=r[rve])===null)&&(r=void 0)),r===void 0?AH:r}(e))(t===0?0:t)},OH=_r([].push),Kc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=JR(u),$=zR(re),ee=g0(f,m),te=u0($),Q=0,he=k||ive,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:OH(me,K)}else switch(e){case 4:return!1;case 7:OH(me,K)}return a?-1:r||i?i:me}},I4={forEach:Kc(0),map:Kc(1),filter:Kc(2),some:Kc(3),every:Kc(4),find:Kc(5),findIndex:Kc(6),filterReject:Kc(7)},T_=D4.getWeakData,ave=ns.set,ove=ns.getterFor,sve=I4.find,lve=I4.findIndex,uve=_r([].splice),cve=0,S_=function(e){return e.frozen||(e.frozen=new DH)},DH=function(){this.entries=[]},L4=function(e,t){return sve(e.entries,function(n){return n[0]===t})};DH.prototype={get:function(e){var t=L4(this,e);if(t)return t[1]},has:function(e){return!!L4(this,e)},set:function(e,t){var n=L4(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=lve(this.entries,function(n){return n[0]===e});return~t&&uve(this.entries,t,1),!!~t}};var v0,RH={getConstructor:function(e,t,n,r){var i=e(function(u,f){R4(u,a),ave(u,{type:t,id:cve++,frozen:void 0}),f!=null&&w_(f,u[r],{that:u,AS_ENTRIES:n})}),a=i.prototype,o=ove(t),s=function(u,f,m){var k=o(u),K=T_(Fa(f),!0);return K===!0?S_(k).set(f,m):K[k.id]=m,u};return E_(a,{delete:function(u){var f=o(this);if(!hi(u))return!1;var m=T_(u);return m===!0?S_(f).delete(u):m&&Ta(m,f.id)&&delete m[f.id]},has:function(u){var f=o(this);if(!hi(u))return!1;var m=T_(u);return m===!0?S_(f).has(u):m&&Ta(m,f.id)}}),E_(a,n?{get:function(u){var f=o(this);if(hi(u)){var m=T_(u);return m===!0?S_(f).get(u):m?m[f.id]:void 0}},set:function(u,f){return s(this,u,f)}}:{add:function(u){return s(this,u,!0)}}),i}},C_=ns.enforce,dve=!vn.ActiveXObject&&"ActiveXObject"in vn,IH=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hve=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=r?"set":"add",o=vn[e],s=o&&o.prototype,u=o,f={},m=function(ee){var te=_r(s[ee]);rs(s,ee,ee=="add"?function(Q){return te(this,Q===0?0:Q),this}:ee=="delete"?function(Q){return!(i&&!hi(Q))&&te(this,Q===0?0:Q)}:ee=="get"?function(Q){return i&&!hi(Q)?void 0:te(this,Q===0?0:Q)}:ee=="has"?function(Q){return!(i&&!hi(Q))&&te(this,Q===0?0:Q)}:function(Q,he){return te(this,Q===0?0:Q,he),this})};if(c_(e,!oi(o)||!(i||s.forEach&&!mi(function(){new o().entries().next()}))))u=n.getConstructor(t,e,r,a),D4.enable();else if(c_(e,!0)){var k=new u,K=k[a](i?{}:-0,1)!=k,U=mi(function(){k.has(1)}),re=CH(function(ee){new o(ee)}),$=!i&&mi(function(){for(var ee=new o,te=5;te--;)ee[a](te,te);return!ee.has(-0)});re||((u=t(function(ee,te){R4(ee,s);var Q=function(he,me,_e){var ke,De;return Cp&&oi(ke=me.constructor)&&ke!==_e&&hi(De=ke.prototype)&&De!==_e.prototype&&Cp(he,De),he}(new o,ee,u);return te!=null&&w_(te,Q[a],{that:Q,AS_ENTRIES:r}),Q})).prototype=s,s.constructor=u),(U||$)&&(m("delete"),m("has"),r&&m("get")),($||K)&&m(a),i&&s.clear&&delete s.clear}return f[e]=u,jl({global:!0,forced:u!=o},f),y_(u,e),i||n.setStrong(u,e,r),u}("WeakMap",IH,RH);if(kU&&dve){v0=RH.getConstructor(IH,"WeakMap",!0),D4.enable();var y0=hve.prototype,LH=_r(y0.delete),A_=_r(y0.has),PH=_r(y0.get),kH=_r(y0.set);E_(y0,{delete:function(e){if(hi(e)&&!xh(e)){var t=C_(this);return t.frozen||(t.frozen=new v0),LH(this,e)||t.frozen.delete(e)}return LH(this,e)},has:function(e){if(hi(e)&&!xh(e)){var t=C_(this);return t.frozen||(t.frozen=new v0),A_(this,e)||t.frozen.has(e)}return A_(this,e)},get:function(e){if(hi(e)&&!xh(e)){var t=C_(this);return t.frozen||(t.frozen=new v0),A_(this,e)?PH(this,e):t.frozen.get(e)}return PH(this,e)},set:function(e,t){if(hi(e)&&!xh(e)){var n=C_(this);n.frozen||(n.frozen=new v0),A_(this,e)?kH(this,e,t):n.frozen.set(e,t)}else kH(this,e,t);return this}})}var O_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},P4=a0("span").classList,MH=P4&&P4.constructor&&P4.constructor.prototype,NH=MH===Object.prototype?void 0:MH,k4=ua("iterator"),BH=ua("toStringTag"),M4=m0.values,FH=function(e,t){if(e){if(e[k4]!==M4)try{Fl(e,k4,M4)}catch(r){e[k4]=M4}if(e[BH]||Fl(e,BH,t),O_[t]){for(var n in m0)if(e[n]!==m0[n])try{Fl(e,n,m0[n])}catch(r){e[n]=m0[n]}}}};for(var N4 in O_)FH(vn[N4]&&vn[N4].prototype,N4);FH(NH,"DOMTokenList");var jH=function(e,t){var n=[][e];return!!n&&mi(function(){n.call(null,t||function(){throw 1},1)})},fve=I4.forEach,B4=jH("forEach")?[].forEach:function(e){return fve(this,e,arguments.length>1?arguments[1]:void 0)},UH=function(e){if(e&&e.forEach!==B4)try{Fl(e,"forEach",B4)}catch(t){e.forEach=B4}};for(var F4 in O_)O_[F4]&&UH(vn[F4]&&vn[F4].prototype);UH(NH);var b0,Ap,HH,j4,D_=vn.Promise,WH=ua("species"),zH=/(?:ipad|iphone|ipod).*applewebkit/i.test(_p),Vc=tl(vn.process)=="process",U4=vn.setImmediate,H4=vn.clearImmediate,pve=vn.process,W4=vn.Dispatch,mve=vn.Function,GH=vn.MessageChannel,gve=vn.String,z4=0,E0={};try{b0=vn.location}catch(e){}var G4=function(e){if(Ta(E0,e)){var t=E0[e];delete E0[e],t()}},K4=function(e){return function(){G4(e)}},KH=function(e){G4(e.data)},VH=function(e){vn.postMessage(gve(e),b0.protocol+"//"+b0.host)};U4&&H4||(U4=function(e){var t=VU(arguments,1);return E0[++z4]=function(){nH(oi(e)?e:mve(e),void 0,t)},Ap(z4),z4},H4=function(e){delete E0[e]},Vc?Ap=function(e){pve.nextTick(K4(e))}:W4&&W4.now?Ap=function(e){W4.now(K4(e))}:GH&&!zH?(j4=(HH=new GH).port2,HH.port1.onmessage=KH,Ap=g0(j4.postMessage,j4)):vn.addEventListener&&oi(vn.postMessage)&&!vn.importScripts&&b0&&b0.protocol!=="file:"&&!mi(VH)?(Ap=VH,vn.addEventListener("message",KH,!1)):Ap="onreadystatechange"in a0("script")?function(e){c4.appendChild(a0("script")).onreadystatechange=function(){c4.removeChild(this),G4(e)}}:function(e){setTimeout(K4(e),0)});var _0,wh,x0,Op,V4,Y4,X4,YH,XH={set:U4,clear:H4},vve=/ipad|iphone|ipod/i.test(_p)&&vn.Pebble!==void 0,yve=/web0s(?!.*chrome)/i.test(_p),bve=qR.f,J4=XH.set,JH=vn.MutationObserver||vn.WebKitMutationObserver,QH=vn.document,ZH=vn.process,R_=vn.Promise,$H=bve(vn,"queueMicrotask"),qH=$H&&$H.value;qH||(_0=function(){var e,t;for(Vc&&(e=ZH.domain)&&e.exit();wh;){t=wh.fn,wh=wh.next;try{t()}catch(n){throw wh?Op():x0=void 0,n}}x0=void 0,e&&e.enter()},zH||Vc||yve||!JH||!QH?!vve&&R_&&R_.resolve?((X4=R_.resolve(void 0)).constructor=R_,YH=g0(X4.then,X4),Op=function(){YH(_0)}):Vc?Op=function(){ZH.nextTick(_0)}:(J4=g0(J4,vn),Op=function(){J4(_0)}):(V4=!0,Y4=QH.createTextNode(""),new JH(_0).observe(Y4,{characterData:!0}),Op=function(){Y4.data=V4=!V4}));var Q4,eW,tW,nW,rW=qH||function(e){var t={fn:e,next:void 0};x0&&(x0.next=t),wh||(wh=t,Op()),x0=t},Eve=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=Wc(t),this.reject=Wc(n)},Z4={f:function(e){return new Eve(e)}},$4=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},_ve=typeof window=="object",iW=XH.set,xve=ua("species"),bu="Promise",aW=ns.getterFor(bu),wve=ns.set,Tve=ns.getterFor(bu),Th=D_&&D_.prototype,Ul=D_,w0=Th,oW=vn.TypeError,q4=vn.document,eI=vn.process,Dp=Z4.f,Sve=Dp,Cve=!!(q4&&q4.createEvent&&vn.dispatchEvent),sW=oi(vn.PromiseRejectionEvent),lW=!1,T0=c_(bu,function(){var e=o_(Ul),t=e!==String(Ul);if(!t&&n0===66)return!0;if(n0>=51&&/native code/.test(e))return!1;var n=new Ul(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[xve]=r,!(lW=n.then(function(){})instanceof r)||!t&&_ve&&!sW}),Ave=T0||!CH(function(e){Ul.all(e).catch(function(){})}),uW=function(e){var t;return!(!hi(e)||!oi(t=e.then))&&t},tI=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;rW(function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,u,f=n[a++],m=i?f.ok:f.fail,k=f.resolve,K=f.reject,U=f.domain;try{m?(i||(e.rejection===2&&Dve(e),e.rejection=1),m===!0?o=r:(U&&U.enter(),o=m(r),U&&(U.exit(),u=!0)),o===f.promise?K(oW("Promise-chain cycle")):(s=uW(o))?Zr(s,o,k,K):k(o)):K(r)}catch(re){U&&!u&&U.exit(),K(re)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ove(e)})}},cW=function(e,t,n){var r,i;Cve?((r=q4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),vn.dispatchEvent(r)):r={promise:t,reason:n},!sW&&(i=vn["on"+e])?i(r):e==="unhandledrejection"&&function(a,o){var s=vn.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,o))}("Unhandled promise rejection",n)},Ove=function(e){Zr(iW,vn,function(){var t,n=e.facade,r=e.value;if(dW(e)&&(t=$4(function(){Vc?eI.emit("unhandledRejection",r,n):cW("unhandledrejection",n,r)}),e.rejection=Vc||dW(e)?2:1,t.error))throw t.value})},dW=function(e){return e.rejection!==1&&!e.parent},Dve=function(e){Zr(iW,vn,function(){var t=e.facade;Vc?eI.emit("rejectionHandled",t):cW("rejectionhandled",t,e.value)})},Rp=function(e,t,n){return function(r){e(t,r,n)}},Ip=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,tI(e,!0))},nI=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw oW("Promise can't be resolved itself");var r=uW(t);r?rW(function(){var i={done:!1};try{Zr(r,t,Rp(nI,i,e),Rp(Ip,i,e))}catch(a){Ip(i,a,e)}}):(e.value=t,e.state=1,tI(e,!1))}catch(i){Ip({done:!1},i,e)}}};if(T0&&(w0=(Ul=function(e){R4(this,w0),Wc(e),Zr(Q4,this);var t=aW(this);try{e(Rp(nI,t),Rp(Ip,t))}catch(n){Ip(t,n)}}).prototype,(Q4=function(e){wve(this,{type:bu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E_(w0,{then:function(e,t){var n=Tve(this),r=n.reactions,i=Dp(rH(this,Ul));return i.ok=!oi(e)||e,i.fail=oi(t)&&t,i.domain=Vc?eI.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&tI(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),eW=function(){var e=new Q4,t=aW(e);this.promise=e,this.resolve=Rp(nI,t),this.reject=Rp(Ip,t)},Z4.f=Dp=function(e){return e===Ul||e===tW?new eW(e):Sve(e)},oi(D_)&&Th!==Object.prototype)){nW=Th.then,lW||(rs(Th,"then",function(e,t){var n=this;return new Ul(function(r,i){Zr(nW,n,r,i)}).then(e,t)},{unsafe:!0}),rs(Th,"catch",w0.catch,{unsafe:!0}));try{delete Th.constructor}catch(e){}Cp&&Cp(Th,w0)}jl({global:!0,wrap:!0,forced:T0},{Promise:Ul}),y_(Ul,bu,!1),function(e){var t=yh("Promise"),n=yu.f;Bl&&t&&!t[WH]&&n(t,WH,{configurable:!0,get:function(){return this}})}(),tW=yh(bu),jl({target:bu,stat:!0,forced:T0},{reject:function(e){var t=Dp(this);return Zr(t.reject,void 0,e),t.promise}}),jl({target:bu,stat:!0,forced:T0},{resolve:function(e){return function(t,n){if(Fa(t),hi(n)&&n.constructor===t)return n;var r=Z4.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),jl({target:bu,stat:!0,forced:Ave},{all:function(e){var t=this,n=Dp(t),r=n.resolve,i=n.reject,a=$4(function(){var o=Wc(t.resolve),s=[],u=0,f=1;w_(e,function(m){var k=u++,K=!1;f++,Zr(o,t,m).then(function(U){K||(K=!0,s[k]=U,--f||r(s))},i)}),--f||r(s)});return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=Dp(t),r=n.reject,i=$4(function(){var a=Wc(t.resolve);w_(e,function(o){Zr(a,t,o).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Rve=s0.PROPER,rI=RegExp.prototype,hW=rI.toString,Ive=_r(YU),Lve=mi(function(){return hW.call({source:"a",flags:"b"})!="/a/b"}),Pve=Rve&&hW.name!="toString";(Lve||Pve)&&rs(RegExp.prototype,"toString",function(){var e=Fa(this),t=Gc(e.source),n=e.flags;return"/"+t+"/"+Gc(n===void 0&&t0(rI,e)&&!("flags"in rI)?Ive(e):n)},{unsafe:!0});var kve=s0.EXISTS,Mve=yu.f,fW=Function.prototype,Nve=_r(fW.toString),pW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bve=_r(pW.exec);Bl&&!kve&&Mve(fW,"name",{configurable:!0,get:function(){try{return Bve(pW,Nve(this))[1]}catch(e){return""}}});var mW=new WeakMap;function gW(e){return e.getMenuConfig("uploadImage")}function Fve(e,t){return _4(this,void 0,void 0,function(){return x4(this,function(n){return[2,new Promise(function(r){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){var a=i.result;if(a){var o=a.toString(),s=o.indexOf("data:image")===0?"":o;Yd(e,o,t.name,s),r("ok")}}})]})})}function jve(e,t){return _4(this,void 0,void 0,function(){var n,r,i,a;return x4(this,function(o){switch(o.label){case 0:return n=function(s){var u=mW.get(s);if(u!=null)return u;var f=gW(s),m=f.onSuccess,k=f.onProgress,K=f.onFailed,U=f.customInsert,re=f.onError;return u=E3(g_(g_({},f),{onProgress:function($){s.showProgressBar($),k&&k($)},onSuccess:function($,ee){if(U)return U(ee,function(wt,Lt,Tt){return Yd(s,wt,Lt,Tt)}),void m($,ee);var te=ee.errno,Q=te===void 0?1:te,he=ee.data,me=he===void 0?{}:he;if(Q===0){if(Array.isArray(me))me.forEach(function(wt){var Lt=wt.url,Tt=Lt===void 0?"":Lt,Yt=wt.alt,Ft=Yt===void 0?"":Yt,jt=wt.href;Yd(s,Tt,Ft,jt===void 0?"":jt)});else{var _e=me.url,ke=_e===void 0?"":_e,De=me.alt,Ye=De===void 0?"":De,rt=me.href;Yd(s,ke,Ye,rt===void 0?"":rt)}m($,ee)}else K($,ee)},onError:function($,ee,te){re($,ee,te)}})),mW.set(s,u),u}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}})})}function vW(e,t){var n,r;return _4(this,void 0,void 0,function(){var i,a,o,s,u,f,m,k,K;return x4(this,function(U){switch(U.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=gW(e),o=a.customUpload,s=a.base64LimitSize,U.label=1;case 1:U.trys.push([1,11,12,17]),u=Ige(i),U.label=2;case 2:return[4,u.next()];case 3:return(f=U.sent()).done?[3,10]:(m=f.value,k=m.size,s&&k<=s?[4,Fve(e,m)]:[3,5]);case 4:return U.sent(),[3,9];case 5:return o?[4,o(m,function(re,$,ee){return Yd(e,re,$,ee)})]:[3,7];case 6:return U.sent(),[3,9];case 7:return[4,jve(e,m)];case 8:U.sent(),U.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return K=U.sent(),n={error:K},[3,17];case 12:return U.trys.push([12,,15,16]),f&&!f.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:U.sent(),U.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var Uve=_r([].join),Hve=zR!=Object,Wve=jH("join",",");jl({target:"Array",proto:!0,forced:Hve||!Wve},{join:function(e){return Uve(Hc(this),e===void 0?",":e)}}),gs&&(Qe.fn.append=gs),_l&&(Qe.fn.on=_l),of&&(Qe.fn.remove=of),El&&(Qe.fn.val=El),t5&&(Qe.fn.click=t5),tf&&(Qe.fn.hide=tf);var zve=function(){function e(){this.title=pn("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return d1(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,a=i===void 0?[]:i,o=r.customBrowseAndUpload;if(o)o(function(m,k,K){return Yd(t,m,k,K)});else{var s="";a.length>0&&(s='accept="'+a.join(", ")+'"');var u=Qe("body"),f=Qe('<input type="file" '+s+" multiple/>");f.hide(),u.append(f),f.click(),f.on("change",function(){var m=f[0].files;vW(t,m)})}},e}(),Gve={menus:[{key:"uploadImage",factory:function(){return new zve},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(d1(n))t(r);else if(r.getData("text/plain"))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some(function(a){return function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f,m,k=u.call(o),K=[];try{for(;(s===void 0||s-- >0)&&!(f=k.next()).done;)K.push(f.value)}catch(U){m={error:U}}finally{try{f&&!f.done&&(u=k.return)&&u.call(k)}finally{if(m)throw m.error}}return K}(a.type.split("/"),1)[0]==="image"})?vW(e,i):t(r)}},n}};Ro("en",{highLightModule:{selectLang:"Language"}}),Ro("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var I_=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Te!="undefined"?Te:typeof self!="undefined"?self:{};function iI(e){var t={exports:{}};return e(t,t.exports),t.exports}var Yc,L_,P_=function(e){return e&&e.Math==Math&&e},wr=P_(typeof globalThis=="object"&&globalThis)||P_(typeof window=="object"&&window)||P_(typeof self=="object"&&self)||P_(typeof I_=="object"&&I_)||function(){return this}()||Function("return this")(),Kve=Object.defineProperty,aI=function(e,t){try{Kve(wr,e,{value:t,configurable:!0,writable:!0})}catch(n){wr[e]=t}return t},Xc=wr["__core-js_shared__"]||aI("__core-js_shared__",{}),oI=iI(function(e){(e.exports=function(t,n){return Xc[t]||(Xc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),yW=Function.prototype,sI=yW.bind,lI=yW.call,Vve=sI&&sI.bind(lI),$r=sI?function(e){return e&&Vve(lI,e)}:function(e){return e&&function(){return lI.apply(e,arguments)}},Yve=wr.TypeError,Lp=function(e){if(e==null)throw Yve("Can't call method on "+e);return e},Xve=wr.Object,uI=function(e){return Xve(Lp(e))},Jve=$r({}.hasOwnProperty),ks=Object.hasOwn||function(e,t){return Jve(uI(e),t)},Qve=0,Zve=Math.random(),$ve=$r(1 .toString),bW=function(e){return"Symbol("+(e===void 0?"":e)+")_"+$ve(++Qve+Zve,36)},ho=function(e){return typeof e=="function"},qve=function(e){return ho(e)?e:void 0},S0=function(e,t){return arguments.length<2?qve(wr[e]):wr[e]&&wr[e][t]},cI=S0("navigator","userAgent")||"",EW=wr.process,_W=wr.Deno,xW=EW&&EW.versions||_W&&_W.version,wW=xW&&xW.v8;wW&&(L_=(Yc=wW.split("."))[0]>0&&Yc[0]<4?1:+(Yc[0]+Yc[1])),!L_&&cI&&(!(Yc=cI.match(/Edge\/(\d+)/))||Yc[1]>=74)&&(Yc=cI.match(/Chrome\/(\d+)/))&&(L_=+Yc[1]);var TW=L_,ja=function(e){try{return!!e()}catch(t){return!0}},dI=!!Object.getOwnPropertySymbols&&!ja(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&TW&&TW<41}),hI=dI&&!Symbol.sham&&typeof Symbol.iterator=="symbol",C0=oI("wks"),Sh=wr.Symbol,SW=Sh&&Sh.for,e0e=hI?Sh:Sh&&Sh.withoutSetter||bW,Jc=function(e){if(!ks(C0,e)||!dI&&typeof C0[e]!="string"){var t="Symbol."+e;dI&&ks(Sh,e)?C0[e]=Sh[e]:C0[e]=hI&&SW?SW(t):e0e(t)}return C0[e]},CW={};CW[Jc("toStringTag")]="z";var fI=String(CW)==="[object z]",Hl=!ja(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),nl=function(e){return typeof e=="object"?e!==null:ho(e)},pI=wr.document,t0e=nl(pI)&&nl(pI.createElement),mI=function(e){return t0e?pI.createElement(e):{}},AW=!Hl&&!ja(function(){return Object.defineProperty(mI("div"),"a",{get:function(){return 7}}).a!=7}),n0e=wr.String,r0e=wr.TypeError,rl=function(e){if(nl(e))return e;throw r0e(n0e(e)+" is not an object")},A0=Function.prototype.call,Ia=A0.bind?A0.bind(A0):function(){return A0.apply(A0,arguments)},OW=$r({}.isPrototypeOf),i0e=wr.Object,gI=hI?function(e){return typeof e=="symbol"}:function(e){var t=S0("Symbol");return ho(t)&&OW(t.prototype,i0e(e))},a0e=wr.String,DW=function(e){try{return a0e(e)}catch(t){return"Object"}},o0e=wr.TypeError,RW=function(e){if(ho(e))return e;throw o0e(DW(e)+" is not a function")},IW=function(e,t){var n=e[t];return n==null?void 0:RW(n)},s0e=wr.TypeError,l0e=wr.TypeError,u0e=Jc("toPrimitive"),vI=function(e){var t=function(n,r){if(!nl(n)||gI(n))return n;var i,a=IW(n,u0e);if(a){if(r===void 0&&(r="default"),i=Ia(a,n,r),!nl(i)||gI(i))return i;throw l0e("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(o,s){var u,f;if(s==="string"&&ho(u=o.toString)&&!nl(f=Ia(u,o)))return f;if(ho(u=o.valueOf)&&!nl(f=Ia(u,o)))return f;if(s!=="string"&&ho(u=o.toString)&&!nl(f=Ia(u,o)))return f;throw s0e("Can't convert object to primitive value")}(n,r)}(e,"string");return gI(t)?t:t+""},c0e=wr.TypeError,LW=Object.defineProperty,k_={f:Hl?LW:function(e,t,n){if(rl(e),t=vI(t),rl(n),AW)try{return LW(e,t,n)}catch(r){}if("get"in n||"set"in n)throw c0e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pp=Hl?function(e,t,n){return k_.f(e,t,yI(1,n))}:function(e,t,n){return e[t]=n,e},d0e=$r(Function.toString);ho(Xc.inspectSource)||(Xc.inspectSource=function(e){return d0e(e)});var M_,O0,N_,bI=Xc.inspectSource,PW=wr.WeakMap,h0e=ho(PW)&&/native code/.test(bI(PW)),kW=oI("keys"),MW=function(e){return kW[e]||(kW[e]=bW(e))},EI={},_I=wr.TypeError,f0e=wr.WeakMap;if(h0e||Xc.state){var Ch=Xc.state||(Xc.state=new f0e),p0e=$r(Ch.get),NW=$r(Ch.has),m0e=$r(Ch.set);M_=function(e,t){if(NW(Ch,e))throw new _I("Object already initialized");return t.facade=e,m0e(Ch,e,t),t},O0=function(e){return p0e(Ch,e)||{}},N_=function(e){return NW(Ch,e)}}else{var kp=MW("state");EI[kp]=!0,M_=function(e,t){if(ks(e,kp))throw new _I("Object already initialized");return t.facade=e,Pp(e,kp,t),t},O0=function(e){return ks(e,kp)?e[kp]:{}},N_=function(e){return ks(e,kp)}}var xI={set:M_,get:O0,has:N_,enforce:function(e){return N_(e)?O0(e):M_(e,{})},getterFor:function(e){return function(t){var n;if(!nl(t)||(n=O0(t)).type!==e)throw _I("Incompatible receiver, "+e+" required");return n}}},BW=Function.prototype,g0e=Hl&&Object.getOwnPropertyDescriptor,wI=ks(BW,"name"),FW={EXISTS:wI,PROPER:wI&&function(){}.name==="something",CONFIGURABLE:wI&&(!Hl||Hl&&g0e(BW,"name").configurable)},D0=iI(function(e){var t=FW.CONFIGURABLE,n=xI.get,r=xI.enforce,i=String(String).split("String");(e.exports=function(a,o,s,u){var f,m=!!u&&!!u.unsafe,k=!!u&&!!u.enumerable,K=!!u&&!!u.noTargetGet,U=u&&u.name!==void 0?u.name:o;ho(s)&&(String(U).slice(0,7)==="Symbol("&&(U="["+String(U).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ks(s,"name")||t&&s.name!==U)&&Pp(s,"name",U),(f=r(s)).source||(f.source=i.join(typeof U=="string"?U:""))),a!==wr?(m?!K&&a[o]&&(k=!0):delete a[o],k?a[o]=s:Pp(a,o,s)):k?a[o]=s:aI(o,s)})(Function.prototype,"toString",function(){return ho(this)&&n(this).source||bI(this)})}),v0e=$r({}.toString),y0e=$r("".slice),Qc=function(e){return y0e(v0e(e),8,-1)},b0e=Jc("toStringTag"),E0e=wr.Object,_0e=Qc(function(){return arguments}())=="Arguments",TI=fI?Qc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,a){try{return i[a]}catch(o){}}(t=E0e(e),b0e))=="string"?n:_0e?Qc(t):(r=Qc(t))=="Object"&&ho(t.callee)?"Arguments":r},x0e=fI?{}.toString:function(){return"[object "+TI(this)+"]"};fI||D0(Object.prototype,"toString",x0e,{unsafe:!0});var jW,UW={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},SI=mI("span").classList,HW=SI&&SI.constructor&&SI.constructor.prototype,w0e=HW===Object.prototype?void 0:HW,WW=$r($r.bind),CI=wr.Object,T0e=$r("".split),AI=ja(function(){return!CI("z").propertyIsEnumerable(0)})?function(e){return Qc(e)=="String"?T0e(e,""):CI(e)}:CI,S0e=Math.ceil,C0e=Math.floor,OI=function(e){var t=+e;return t!=t||t===0?0:(t>0?C0e:S0e)(t)},A0e=Math.min,zW=function(e){return e>0?A0e(OI(e),9007199254740991):0},DI=function(e){return zW(e.length)},GW=Array.isArray||function(e){return Qc(e)=="Array"},KW=function(){},O0e=[],VW=S0("Reflect","construct"),RI=/^\s*(?:class|function)\b/,D0e=$r(RI.exec),R0e=!RI.exec(KW),R0=function(e){if(!ho(e))return!1;try{return VW(KW,O0e,e),!0}catch(t){return!1}},YW=!VW||ja(function(){var e;return R0(R0.call)||!R0(Object)||!R0(function(){e=!0})||e})?function(e){if(!ho(e))return!1;switch(TI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R0e||!!D0e(RI,bI(e))}:R0,I0e=Jc("species"),XW=wr.Array,L0e=function(e,t){return new(function(n){var r;return GW(n)&&(r=n.constructor,(YW(r)&&(r===XW||GW(r.prototype))||nl(r)&&(r=r[I0e])===null)&&(r=void 0)),r===void 0?XW:r}(e))(t===0?0:t)},JW=$r([].push),Zc=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(u,f,m,k){for(var K,U,re=uI(u),$=AI(re),ee=function(_e,ke){return RW(_e),ke===void 0?_e:WW?WW(_e,ke):function(){return _e.apply(ke,arguments)}}(f,m),te=DI($),Q=0,he=k||L0e,me=t?he(u,te):n||o?he(u,0):void 0;te>Q;Q++)if((s||Q in $)&&(U=ee(K=$[Q],Q,re),e))if(t)me[Q]=U;else if(U)switch(e){case 3:return!0;case 5:return K;case 6:return Q;case 2:JW(me,K)}else switch(e){case 4:return!1;case 7:JW(me,K)}return a?-1:r||i?i:me}},P0e=[Zc(0),Zc(1),Zc(2),Zc(3),Zc(4),Zc(5),Zc(6),Zc(7)][0],II=(jW=[].forEach)&&ja(function(){jW.call(null,function(){throw 1},1)})?[].forEach:function(e){return P0e(this,e,arguments.length>1?arguments[1]:void 0)},QW=function(e){if(e&&e.forEach!==II)try{Pp(e,"forEach",II)}catch(t){e.forEach=II}};for(var LI in UW)UW[LI]&&QW(wr[LI]&&wr[LI].prototype);QW(w0e);var ZW={}.propertyIsEnumerable,$W=Object.getOwnPropertyDescriptor,qW={f:$W&&!ZW.call({1:2},1)?function(e){var t=$W(this,e);return!!t&&t.enumerable}:ZW},B_=function(e){return AI(Lp(e))},ez=Object.getOwnPropertyDescriptor,tz={f:Hl?ez:function(e,t){if(e=B_(e),t=vI(t),AW)try{return ez(e,t)}catch(n){}if(ks(e,t))return yI(!Ia(qW.f,e,t),e[t])}},k0e=Math.max,M0e=Math.min,PI=function(e,t){var n=OI(e);return n<0?k0e(n+t,0):M0e(n,t)},nz=function(e){return function(t,n,r){var i,a=B_(t),o=DI(a),s=PI(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},N0e=(nz(!0),nz(!1)),rz=$r([].push),iz=function(e,t){var n,r=B_(e),i=0,a=[];for(n in r)!ks(EI,n)&&ks(r,n)&&rz(a,n);for(;t.length>i;)ks(r,n=t[i++])&&(~N0e(a,n)||rz(a,n));return a},F_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B0e=F_.concat("length","prototype"),F0e={f:Object.getOwnPropertyNames||function(e){return iz(e,B0e)}},az={f:Object.getOwnPropertySymbols},j0e=$r([].concat),U0e=S0("Reflect","ownKeys")||function(e){var t=F0e.f(rl(e)),n=az.f;return n?j0e(t,n(e)):t},H0e=function(e,t){for(var n=U0e(t),r=k_.f,i=tz.f,a=0;a<n.length;a++){var o=n[a];ks(e,o)||r(e,o,i(t,o))}},W0e=/#|\.prototype\./,I0=function(e,t){var n=G0e[z0e(e)];return n==V0e||n!=K0e&&(ho(t)?ja(t):!!t)},z0e=I0.normalize=function(e){return String(e).replace(W0e,".").toLowerCase()},G0e=I0.data={},K0e=I0.NATIVE="N",V0e=I0.POLYFILL="P",Y0e=I0,X0e=tz.f,j_=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,f=e.stat;if(n=u?wr:f?wr[s]||aI(s,{}):(wr[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=X0e(n,r))&&o.value:n[r],!Y0e(u?r:s+(f?".":"#")+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;H0e(a,i)}(e.sham||i&&i.sham)&&Pp(a,"sham",!0),D0(n,r,a,e)}},U_=Object.keys||function(e){return iz(e,F_)},Mp=Object.assign,oz=Object.defineProperty,J0e=$r([].concat),sz=!Mp||ja(function(){if(Hl&&Mp({b:1},Mp(oz({},"a",{enumerable:!0,get:function(){oz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Mp({},e)[n]!=7||U_(Mp({},t)).join("")!=r})?function(e,t){for(var n=uI(e),r=arguments.length,i=1,a=az.f,o=qW.f;r>i;)for(var s,u=AI(arguments[i++]),f=a?J0e(U_(u),a(u)):U_(u),m=f.length,k=0;m>k;)s=f[k++],Hl&&!Ia(o,u,s)||(n[s]=u[s]);return n}:Mp;j_({target:"Object",stat:!0,forced:Object.assign!==sz},{assign:sz});var lz=iI(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,i=0,a={},o={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function ee(te){return te instanceof s?new s(te.type,ee(te.content),te.alias):Array.isArray(te)?te.map(ee):te.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(ee){return Object.prototype.toString.call(ee).slice(8,-1)},objId:function(ee){return ee.__id||Object.defineProperty(ee,"__id",{value:++i}),ee.__id},clone:function ee(te,Q){var he,me;switch(Q=Q||{},o.util.type(te)){case"Object":if(me=o.util.objId(te),Q[me])return Q[me];for(var _e in he={},Q[me]=he,te)te.hasOwnProperty(_e)&&(he[_e]=ee(te[_e],Q));return he;case"Array":return me=o.util.objId(te),Q[me]?Q[me]:(he=[],Q[me]=he,te.forEach(function(ke,De){he[De]=ee(ke,Q)}),he);default:return te}},getLanguage:function(ee){for(;ee&&!r.test(ee.className);)ee=ee.parentElement;return ee?(ee.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(he){var ee=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(he.stack)||[])[1];if(ee){var te=document.getElementsByTagName("script");for(var Q in te)if(te[Q].src==ee)return te[Q]}return null}},isActive:function(ee,te,Q){for(var he="no-"+te;ee;){var me=ee.classList;if(me.contains(te))return!0;if(me.contains(he))return!1;ee=ee.parentElement}return!!Q}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(ee,te){var Q=o.util.clone(o.languages[ee]);for(var he in te)Q[he]=te[he];return Q},insertBefore:function(ee,te,Q,he){var me=(he=he||o.languages)[ee],_e={};for(var ke in me)if(me.hasOwnProperty(ke)){if(ke==te)for(var De in Q)Q.hasOwnProperty(De)&&(_e[De]=Q[De]);Q.hasOwnProperty(ke)||(_e[ke]=me[ke])}var Ye=he[ee];return he[ee]=_e,o.languages.DFS(o.languages,function(rt,wt){wt===Ye&&rt!=ee&&(this[rt]=_e)}),_e},DFS:function ee(te,Q,he,me){me=me||{};var _e=o.util.objId;for(var ke in te)if(te.hasOwnProperty(ke)){Q.call(te,ke,te[ke],he||ke);var De=te[ke],Ye=o.util.type(De);Ye!=="Object"||me[_e(De)]?Ye!=="Array"||me[_e(De)]||(me[_e(De)]=!0,ee(De,Q,ke,me)):(me[_e(De)]=!0,ee(De,Q,null,me))}}},plugins:{},highlightAll:function(ee,te){o.highlightAllUnder(document,ee,te)},highlightAllUnder:function(ee,te,Q){var he={callback:Q,container:ee,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",he),he.elements=Array.prototype.slice.apply(he.container.querySelectorAll(he.selector)),o.hooks.run("before-all-elements-highlight",he);for(var me,_e=0;me=he.elements[_e++];)o.highlightElement(me,te===!0,he.callback)},highlightElement:function(ee,te,Q){var he=o.util.getLanguage(ee),me=o.languages[he];ee.className=ee.className.replace(r,"").replace(/\s+/g," ")+" language-"+he;var _e=ee.parentElement;_e&&_e.nodeName.toLowerCase()==="pre"&&(_e.className=_e.className.replace(r,"").replace(/\s+/g," ")+" language-"+he);var ke={element:ee,language:he,grammar:me,code:ee.textContent};function De(rt){ke.highlightedCode=rt,o.hooks.run("before-insert",ke),ke.element.innerHTML=ke.highlightedCode,o.hooks.run("after-highlight",ke),o.hooks.run("complete",ke),Q&&Q.call(ke.element)}if(o.hooks.run("before-sanity-check",ke),(_e=ke.element.parentElement)&&_e.nodeName.toLowerCase()==="pre"&&!_e.hasAttribute("tabindex")&&_e.setAttribute("tabindex","0"),!ke.code)return o.hooks.run("complete",ke),void(Q&&Q.call(ke.element));if(o.hooks.run("before-highlight",ke),ke.grammar)if(te&&n.Worker){var Ye=new Worker(o.filename);Ye.onmessage=function(rt){De(rt.data)},Ye.postMessage(JSON.stringify({language:ke.language,code:ke.code,immediateClose:!0}))}else De(o.highlight(ke.code,ke.grammar,ke.language));else De(o.util.encode(ke.code))},highlight:function(ee,te,Q){var he={code:ee,grammar:te,language:Q};return o.hooks.run("before-tokenize",he),he.tokens=o.tokenize(he.code,he.grammar),o.hooks.run("after-tokenize",he),s.stringify(o.util.encode(he.tokens),he.language)},tokenize:function(ee,te){var Q=te.rest;if(Q){for(var he in Q)te[he]=Q[he];delete te.rest}var me=new m;return k(me,me.head,ee),f(ee,me,te,me.head,0),function(_e){for(var ke=[],De=_e.head.next;De!==_e.tail;)ke.push(De.value),De=De.next;return ke}(me)},hooks:{all:{},add:function(ee,te){var Q=o.hooks.all;Q[ee]=Q[ee]||[],Q[ee].push(te)},run:function(ee,te){var Q=o.hooks.all[ee];if(Q&&Q.length)for(var he,me=0;he=Q[me++];)he(te)}},Token:s};function s(ee,te,Q,he){this.type=ee,this.content=te,this.alias=Q,this.length=0|(he||"").length}function u(ee,te,Q,he){ee.lastIndex=te;var me=ee.exec(Q);if(me&&he&&me[1]){var _e=me[1].length;me.index+=_e,me[0]=me[0].slice(_e)}return me}function f(ee,te,Q,he,me,_e){for(var ke in Q)if(Q.hasOwnProperty(ke)&&Q[ke]){var De=Q[ke];De=Array.isArray(De)?De:[De];for(var Ye=0;Ye<De.length;++Ye){if(_e&&_e.cause==ke+","+Ye)return;var rt=De[Ye],wt=rt.inside,Lt=!!rt.lookbehind,Tt=!!rt.greedy,Yt=rt.alias;if(Tt&&!rt.pattern.global){var Ft=rt.pattern.toString().match(/[imsuy]*$/)[0];rt.pattern=RegExp(rt.pattern.source,Ft+"g")}for(var jt=rt.pattern||rt,Wt=he.next,En=me;Wt!==te.tail&&!(_e&&En>=_e.reach);En+=Wt.value.length,Wt=Wt.next){var kn=Wt.value;if(te.length>ee.length)return;if(!(kn instanceof s)){var Ln,Rn=1;if(Tt){if(!(Ln=u(jt,En,ee,Lt)))break;var Ze=Ln.index,He=Ln.index+Ln[0].length,ot=En;for(ot+=Wt.value.length;Ze>=ot;)ot+=(Wt=Wt.next).value.length;if(En=ot-=Wt.value.length,Wt.value instanceof s)continue;for(var At=Wt;At!==te.tail&&(ot<He||typeof At.value=="string");At=At.next)Rn++,ot+=At.value.length;Rn--,kn=ee.slice(En,ot),Ln.index-=En}else if(!(Ln=u(jt,0,kn,Lt)))continue;Ze=Ln.index;var qt=Ln[0],Mt=kn.slice(0,Ze),Cn=kn.slice(Ze+qt.length),Vn=En+kn.length;_e&&Vn>_e.reach&&(_e.reach=Vn);var qn=Wt.prev;if(Mt&&(qn=k(te,qn,Mt),En+=Mt.length),K(te,qn,Rn),Wt=k(te,qn,new s(ke,wt?o.tokenize(qt,wt):qt,Yt,qt)),Cn&&k(te,Wt,Cn),Rn>1){var lr={cause:ke+","+Ye,reach:Vn};f(ee,te,Q,Wt.prev,En,lr),_e&&lr.reach>_e.reach&&(_e.reach=lr.reach)}}}}}}function m(){var ee={value:null,prev:null,next:null},te={value:null,prev:ee,next:null};ee.next=te,this.head=ee,this.tail=te,this.length=0}function k(ee,te,Q){var he=te.next,me={value:Q,prev:te,next:he};return te.next=me,he.prev=me,ee.length++,me}function K(ee,te,Q){for(var he=te.next,me=0;me<Q&&he!==ee.tail;me++)he=he.next;te.next=he,he.prev=te,ee.length-=me}if(n.Prism=o,s.stringify=function ee(te,Q){if(typeof te=="string")return te;if(Array.isArray(te)){var he="";return te.forEach(function(Ye){he+=ee(Ye,Q)}),he}var me={type:te.type,content:ee(te.content,Q),tag:"span",classes:["token",te.type],attributes:{},language:Q},_e=te.alias;_e&&(Array.isArray(_e)?Array.prototype.push.apply(me.classes,_e):me.classes.push(_e)),o.hooks.run("wrap",me);var ke="";for(var De in me.attributes)ke+=" "+De+'="'+(me.attributes[De]||"").replace(/"/g,"&quot;")+'"';return"<"+me.tag+' class="'+me.classes.join(" ")+'"'+ke+">"+me.content+"</"+me.tag+">"},!n.document)return n.addEventListener&&(o.disableWorkerMessageHandler||n.addEventListener("message",function(ee){var te=JSON.parse(ee.data),Q=te.language,he=te.code,me=te.immediateClose;n.postMessage(o.highlight(he,o.languages[Q],Q)),me&&n.close()},!1)),o;var U=o.util.currentScript();function re(){o.manual||o.highlightAll()}if(U&&(o.filename=U.src,U.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var $=document.readyState;$==="loading"||$==="interactive"&&U&&U.defer?document.addEventListener("DOMContentLoaded",re):window.requestAnimationFrame?window.requestAnimationFrame(re):window.setTimeout(re,16)}return o}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=t),I_!==void 0&&(I_.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document!="undefined"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",i='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(u){u.selector+=", "+i}),t.hooks.add("before-sanity-check",function(u){var f=u.element;if(f.matches(i)){u.code="",f.setAttribute(r,"loading");var m=f.appendChild(document.createElement("CODE"));m.textContent="Loading\u2026";var k=f.getAttribute("data-src"),K=u.language;if(K==="none"){var U=(/\.(\w+)$/.exec(k)||[,"none"])[1];K=n[U]||U}s(m,K),s(f,K);var re=t.plugins.autoloader;re&&re.loadLanguages(K);var $=new XMLHttpRequest;$.open("GET",k,!0),$.onreadystatechange=function(){$.readyState==4&&($.status<400&&$.responseText?(f.setAttribute(r,"loaded"),m.textContent=$.responseText,t.highlightElement(m)):(f.setAttribute(r,"failed"),$.status>=400?m.textContent="\u2716 Error "+$.status+" while fetching file: "+$.statusText:m.textContent="\u2716 Error: File does not exist or is empty"))},$.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var f,m=(u||document).querySelectorAll(i),k=0;f=m[k++];)t.highlightElement(f)}};var o=!1;t.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(u,f){var m=u.className;m=m.replace(a," ")+" language-"+f,u.className=m.replace(/\s+/g," ").trim()}}()});!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(u,f){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(u,f)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},s=function(u){for(var f=[],m=0;m<u.length;m++){var k=u[m],K=!1;if(typeof k!="string"&&(k.type==="tag"&&k.content[0]&&k.content[0].type==="tag"?k.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===o(k.content[0].content[1])&&f.pop():k.content[k.content.length-1].content==="/>"||f.push({tagName:o(k.content[0].content[1]),openedBraces:0}):f.length>0&&k.type==="punctuation"&&k.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&k.type==="punctuation"&&k.content==="}"?f[f.length-1].openedBraces--:K=!0),(K||typeof k=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var U=o(k);m<u.length-1&&(typeof u[m+1]=="string"||u[m+1].type==="plain-text")&&(U+=o(u[m+1]),u.splice(m+1,1)),m>0&&(typeof u[m-1]=="string"||u[m-1].type==="plain-text")&&(U=o(u[m-1])+U,u.splice(m-1,1),m--),u[m]=new e.Token("plain-text",U,null,U)}k.content&&typeof k.content!="string"&&s(k.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||s(u.tokens)})}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(He,ot){return He.replace(/<<(\d+)>>/g,function(At,qt){return"(?:"+ot[+qt]+")"})}function n(He,ot,At){return RegExp(t(He,ot),At||"")}function r(He,ot){for(var At=0;At<ot;At++)He=He.replace(/<<self>>/g,function(){return"(?:"+He+")"});return He.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(He){return"\\b(?:"+He.trim().replace(/ /g,"|")+")\\b"}var f=u(a),m=RegExp(u(i+" "+a+" "+o+" "+s)),k=u(a+" "+o+" "+s),K=u(i+" "+a+" "+s),U=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),re=r(/\((?:[^()]|<<self>>)*\)/.source,2),$=/@?\b[A-Za-z_]\w*\b/.source,ee=t(/<<0>>(?:\s*<<1>>)?/.source,[$,U]),te=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[k,ee]),Q=/\[\s*(?:,\s*)*\]/.source,he=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,Q]),me=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[U,re,Q]),_e=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[me]),ke=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[_e,te,Q]),De={keyword:m,punctuation:/[<>()?,.:[\]]/},Ye=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,rt=/"(?:\\.|[^\\"\r\n])*"/.source,wt=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[wt]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[rt]),lookbehind:!0,greedy:!0},{pattern:RegExp(Ye),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:De},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[$,ke]),lookbehind:!0,inside:De},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[$]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[f,ee]),lookbehind:!0,inside:De},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:De},{pattern:n(/(\bwhere\s+)<<0>>/.source,[$]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:De},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ke,K,$]),inside:De}],keyword:m,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[$]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[$]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[re]),lookbehind:!0,alias:"class-name",inside:De},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ke,te]),inside:De,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ke]),lookbehind:!0,inside:De,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[$,U]),inside:{function:n(/^<<0>>/.source,[$]),generic:{pattern:RegExp(U),alias:"class-name",inside:De}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[f,ee,$,ke,m.source,re,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[ee,re]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:m,"class-name":{pattern:RegExp(ke),greedy:!0,inside:De},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Lt=rt+"|"+Ye,Tt=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Lt]),Yt=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Tt]),2),Ft=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,jt=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,Yt]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Ft,jt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[Ft]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Yt]),inside:e.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Wt=/:[^}\r\n]+/.source,En=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Tt]),2),kn=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[En,Wt]),Ln=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Lt]),2),Rn=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ln,Wt]);function Ze(He,ot){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[He]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ot,Wt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[kn]),lookbehind:!0,greedy:!0,inside:Ze(kn,En)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Rn]),lookbehind:!0,greedy:!0,inside:Ze(Rn,Ln)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(f){return f=f.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(f){["url","bold","italic","strike","code-snippet"].forEach(function(m){f!==m&&(e.languages.markdown[f].inside.content.inside[m]=e.languages.markdown[m])})}),e.hooks.add("after-tokenize",function(f){f.language!=="markdown"&&f.language!=="md"||function m(k){if(k&&typeof k!="string")for(var K=0,U=k.length;K<U;K++){var re=k[K];if(re.type==="code"){var $=re.content[1],ee=re.content[3];if($&&ee&&$.type==="code-language"&&ee.type==="code-block"&&typeof $.content=="string"){var te=$.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),Q="language-"+(te=(/[a-z][\w-]*/i.exec(te)||[""])[0].toLowerCase());ee.alias?typeof ee.alias=="string"?ee.alias=[ee.alias,Q]:ee.alias.push(Q):ee.alias=[Q]}}else m(re.content)}}(f.tokens)}),e.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var m="",k=0,K=f.classes.length;k<K;k++){var U=f.classes[k],re=/language-(.+)/.exec(U);if(re){m=re[1];break}}var $=e.languages[m];if($)f.content=e.highlight(function(te){var Q=te.replace(o,"");return Q.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(he,me){var _e;return(me=me.toLowerCase())[0]==="#"?(_e=me[1]==="x"?parseInt(me.slice(2),16):Number(me.slice(1)),u(_e)):s[me]||he})}(f.content),$,m);else if(m&&m!=="none"&&e.plugins.autoloader){var ee="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());f.attributes.id=ee,e.plugins.autoloader.loadLanguages(m,function(){var te=document.getElementById(ee);te&&(te.innerHTML=e.highlight(te.textContent,e.languages[m],m))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var Q0e=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function uz(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+uz(n)},0)}var H_,Z0e=wr.String,Eu=function(e){if(TI(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Z0e(e)},cz=function(){var e=rl(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},kI=wr.RegExp,MI=ja(function(){var e=kI("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),$0e=MI||ja(function(){return!kI("a","y").sticky}),dz={BROKEN_CARET:MI||ja(function(){var e=kI("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:$0e,UNSUPPORTED_Y:MI},q0e=Hl?Object.defineProperties:function(e,t){rl(e);for(var n,r=B_(t),i=U_(t),a=i.length,o=0;a>o;)k_.f(e,n=i[o++],r[n]);return e},eye=S0("document","documentElement"),hz=MW("IE_PROTO"),NI=function(){},fz=function(e){return"<script>"+e+"</script>"},pz=function(e){e.write(fz("")),e.close();var t=e.parentWindow.Object;return e=null,t},W_=function(){try{H_=new ActiveXObject("htmlfile")}catch(r){}var e,t;W_=typeof document!="undefined"?document.domain&&H_?pz(H_):((t=mI("iframe")).style.display="none",eye.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fz("document.F=Object")),e.close(),e.F):pz(H_);for(var n=F_.length;n--;)delete W_.prototype[F_[n]];return W_()};EI[hz]=!0;var mz,BI,tye=Object.create||function(e,t){var n;return e!==null?(NI.prototype=rl(e),n=new NI,NI.prototype=null,n[hz]=e):n=W_(),t===void 0?n:q0e(n,t)},nye=wr.RegExp,rye=ja(function(){var e=nye(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),iye=wr.RegExp,aye=ja(function(){var e=iye("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),oye=xI.get,sye=oI("native-string-replace",String.prototype.replace),z_=RegExp.prototype.exec,FI=z_,lye=$r("".charAt),uye=$r("".indexOf),cye=$r("".replace),jI=$r("".slice),UI=(BI=/b*/g,Ia(z_,mz=/a/,"a"),Ia(z_,BI,"a"),mz.lastIndex!==0||BI.lastIndex!==0),gz=dz.BROKEN_CARET,HI=/()??/.exec("")[1]!==void 0;(UI||HI||gz||rye||aye)&&(FI=function(e){var t,n,r,i,a,o,s,u=this,f=oye(u),m=Eu(e),k=f.raw;if(k)return k.lastIndex=u.lastIndex,t=Ia(FI,k,m),u.lastIndex=k.lastIndex,t;var K=f.groups,U=gz&&u.sticky,re=Ia(cz,u),$=u.source,ee=0,te=m;if(U&&(re=cye(re,"y",""),uye(re,"g")===-1&&(re+="g"),te=jI(m,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&lye(m,u.lastIndex-1)!==`
`)&&($="(?: "+$+")",te=" "+te,ee++),n=new RegExp("^(?:"+$+")",re)),HI&&(n=new RegExp("^"+$+"$(?!\\s)",re)),UI&&(r=u.lastIndex),i=Ia(z_,U?n:u,te),U?i?(i.input=jI(i.input,ee),i[0]=jI(i[0],ee),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:UI&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),HI&&i&&i.length>1&&Ia(sye,i[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)}),i&&K)for(i.groups=o=tye(null),a=0;a<K.length;a++)o[(s=K[a])[0]]=i[s[1]];return i});var L0=FI;j_({target:"RegExp",proto:!0,forced:/./.exec!==L0},{exec:L0});var WI=Function.prototype,vz=WI.apply,dye=WI.bind,yz=WI.call,hye=typeof Reflect=="object"&&Reflect.apply||(dye?yz.bind(vz):function(){return yz.apply(vz,arguments)}),fye=Jc("species"),zI=RegExp.prototype,pye=Jc("match"),mye=wr.TypeError,gye=Jc("species"),vye=$r("".charAt),bz=$r("".charCodeAt),yye=$r("".slice),Ez=function(e){return function(t,n){var r,i,a=Eu(Lp(t)),o=OI(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=bz(a,o))<55296||r>56319||o+1===s||(i=bz(a,o+1))<56320||i>57343?e?vye(a,o):r:e?yye(a,o,o+2):i-56320+(r-55296<<10)+65536}},bye=(Ez(!1),Ez(!0)),Eye=function(e,t,n){return t+(n?bye(e,t).length:1)},_ye=wr.Array,xye=Math.max,_z=function(e,t,n){for(var r,i,a,o,s=DI(e),u=PI(t,s),f=PI(n===void 0?s:n,s),m=_ye(xye(f-u,0)),k=0;u<f;u++,k++)r=m,i=k,a=e[u],(o=vI(i))in r?k_.f(r,o,yI(0,a)):r[o]=a;return m.length=k,m},wye=wr.TypeError,xz=function(e,t){var n=e.exec;if(ho(n)){var r=Ia(n,e,t);return r!==null&&rl(r),r}if(Qc(e)==="RegExp")return Ia(L0,e,t);throw wye("RegExp#exec called on incompatible receiver")},Np=dz.UNSUPPORTED_Y,Tye=Math.min,wz=[].push,Sye=$r(/./.exec),Bp=$r(wz),P0=$r("".slice);!function(e,t,n,r){var i=Jc(e),a=!ja(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!ja(function(){var f=!1,m=/a/;return(m={}).constructor={},m.constructor[fye]=function(){return m},m.flags="",m[i]=/./[i],m.exec=function(){return f=!0,null},m[i](""),!f});if(!a||!o||n){var s=$r(/./[i]),u=function(f,m,k){var K;return K="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(U,re){var $,ee,te=Eu(Lp(this)),Q=re===void 0?4294967295:re>>>0;if(Q===0)return[];if(U===void 0)return[te];if(!nl($=U)||!((ee=$[pye])!==void 0?ee:Qc($)=="RegExp"))return Ia(m,te,U,Q);for(var he,me,_e,ke=[],De=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(U.sticky?"y":""),Ye=0,rt=new RegExp(U.source,De+"g");(he=Ia(L0,rt,te))&&!((me=rt.lastIndex)>Ye&&(Bp(ke,P0(te,Ye,he.index)),he.length>1&&he.index<te.length&&hye(wz,ke,_z(he,1)),_e=he[0].length,Ye=me,ke.length>=Q));)rt.lastIndex===he.index&&rt.lastIndex++;return Ye===te.length?!_e&&Sye(rt,"")||Bp(ke,""):Bp(ke,P0(te,Ye)),ke.length>Q?_z(ke,0,Q):ke}:"0".split(void 0,0).length?function(U,re){return U===void 0&&re===0?[]:Ia(m,this,U,re)}:m,[function(U,re){var $=Lp(this),ee=U==null?void 0:IW(U,f);return ee?Ia(ee,U,$,re):Ia(K,Eu($),U,re)},function(U,re){var $=rl(this),ee=Eu(U),te=k(K,$,ee,re,K!==m);if(te.done)return te.value;var Q=function(Yt,Ft){var jt,Wt=rl(Yt).constructor;return Wt===void 0||(jt=rl(Wt)[gye])==null?Ft:function(En){if(YW(En))return En;throw mye(DW(En)+" is not a constructor")}(jt)}($,RegExp),he=$.unicode,me=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+(Np?"g":"y"),_e=new Q(Np?"^(?:"+$.source+")":$,me),ke=re===void 0?4294967295:re>>>0;if(ke===0)return[];if(ee.length===0)return xz(_e,ee)===null?[ee]:[];for(var De=0,Ye=0,rt=[];Ye<ee.length;){_e.lastIndex=Np?0:Ye;var wt,Lt=xz(_e,Np?P0(ee,Ye):ee);if(Lt===null||(wt=Tye(zW(_e.lastIndex+(Np?Ye:0)),ee.length))===De)Ye=Eye(ee,Ye,he);else{if(Bp(rt,P0(ee,De,Ye)),rt.length===ke)return rt;for(var Tt=1;Tt<=Lt.length-1;Tt++)if(Bp(rt,Lt[Tt]),rt.length===ke)return rt;Ye=De=wt}}return Bp(rt,P0(ee,De)),rt}]}(i,""[e],function(f,m,k,K,U){var re=$r(f),$=m.exec;return $===L0||$===zI.exec?a&&!U?{done:!0,value:s(m,k,K)}:{done:!0,value:re(k,m,K)}:{done:!1}});D0(String.prototype,e,u[0]),D0(zI,i,u[1])}r&&Pp(zI[i],"sham",!0)}("split",0,!!ja(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Np),j_({global:!0},{globalThis:wr}),ms&&(Qe.fn.attr=ms);var Cye=FW.PROPER,GI=RegExp.prototype,Tz=GI.toString,Aye=$r(cz),Oye=ja(function(){return Tz.call({source:"a",flags:"b"})!="/a/b"}),Dye=Cye&&Tz.name!="toString";(Oye||Dye)&&D0(RegExp.prototype,"toString",function(){var e=rl(this),t=Eu(e.source),n=e.flags;return"/"+t+"/"+Eu(n===void 0&&OW(GI,e)&&!("flags"in GI)?Aye(e):n)},{unsafe:!0});var Rye=function(){function e(){this.title=pn("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,i=r===void 0?[]:r;n.push({text:"plain text",value:""}),i.forEach(function(o){var s=o.text,u=o.value;n.push({text:s,value:u})});var a=this.getValue(t);return n.forEach(function(o){o.value===a?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null)return"";if(!Nn.isElement(n))return"";var r=n.language.toString(),i=t.getMenuConfig("codeSelectLang").codeLangs;return(i===void 0?[]:i).some(function(a){return a.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};ct.setNodes(t,r,{match:function(i){return Ge.checkNodeType(i,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=Ge.getSelectedNodeByType(t,"code");if(n==null)return null;var r=Ge.getParentNode(t,n);return Nn.isElement(r)?r.type!=="pre"?null:n:null},e}(),Iye={renderStyle:function(e,t){var n=e,r=t,i="";return Q0e.forEach(function(a){n[a]&&(i=a)}),i&&function(a,o){a.data==null&&(a.data={});var s=a.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:o})}(r,i="token "+i),r},parseStyleHtml:function(e,t,n){var r=Qe(e);if(!Nn.isElement(t))return t;if(Ge.getNodeType(t)!=="code")return t;var i=t,a=r.attr("class")||"";return a.indexOf("language-")===0?i.language=a.split("-")[1]||"":i.language=a.toLowerCase(),i},menus:[{key:"codeSelectLang",factory:function(){return new Rye},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Lye=/"/g,Pye=$r("".replace);j_({target:"String",proto:!0,forced:ja(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Eu(Lp(this)),r="<a",(r+=' name="'+Pye(Eu(t),Lye,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Sz=function(e){var t,n,r,i=function(te,Q){var he=typeof Symbol=="function"&&te[Symbol.iterator];if(!he)return te;var me,_e,ke=he.call(te),De=[];try{for(;(Q===void 0||Q-- >0)&&!(me=ke.next()).done;)De.push(me.value)}catch(Ye){_e={error:Ye}}finally{try{me&&!me.done&&(he=ke.return)&&he.call(ke)}finally{if(_e)throw _e.error}}return De}(e,2),a=i[0],o=i[1],s=[],u=function(te){if(!wn.isText(te))return null;var Q=Ge.getParentNode(null,te);if(Q&&Ge.getNodeType(Q)==="code"){var he=Ge.getParentNode(null,Q);if(he&&Ge.getNodeType(he)==="pre")return Q}return null}(a);if(u==null)return s;var f=u.language,m=f===void 0?"":f;if(!m)return s;var k=function(te,Q){if(!Q)return[];var he=lz.languages[Q];return he?lz.tokenize(te.text,he):[]}(a,m),K=0;try{for(var U=function(te){var Q=typeof Symbol=="function"&&Symbol.iterator,he=Q&&te[Q],me=0;if(he)return he.call(te);if(te&&typeof te.length=="number")return{next:function(){return te&&me>=te.length&&(te=void 0),{value:te&&te[me++],done:!te}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")}(k),re=U.next();!re.done;re=U.next()){var $=re.value,ee=K+uz($);typeof $!="string"&&s.push(((r={})[$.type]=!0,r.anchor={path:o,offset:K},r.focus={path:o,offset:ee},r)),K=ee}}catch(te){t={error:te}}finally{try{re&&!re.done&&(n=U.return)&&n.call(U)}finally{if(t)throw t.error}}return s},zi=function(){return zi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zi.apply(this,arguments)},Ua=function(){function e(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=zi(zi({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=zi(zi({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=zi(zi({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=zi(zi({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){!function(r,i){var a=r.key,o=r.factory,s=r.config,u=Es(Es({},s),i||{});if(lg[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");lg[a]=o,function(f,m){m!=null&&($M[f]=m)}(a,u)}(t,n)},e.registerRenderElem=function(t){!function(n){var r=n.type,i=n.renderElem;r3[r||""]=i}(t)},e.registerRenderStyle=function(t){!function(n){gC.push(n)}(t)},e.registerElemToHtml=function(t){!function(n){var r=n.type,i=n.elemToHtml;eN[r||""]=i}(t)},e.registerStyleToHtml=function(t){!function(n){NS.push(n)}(t)},e.registerPreParseHtml=function(t){!function(n){kN.push(n)}(t)},e.registerParseElemHtml=function(t){!function(n){var r=n.selector,i=n.parseElemHtml;Bb[r]=i}(t)},e.registerParseStyleHtml=function(t){!function(n){nC.push(n)}(t)},e.registerModule=function(t){Ah(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Ah(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,f=e.editorPlugin;t&&t.forEach(function(m){return Ua.registerMenu(m)}),n&&n.forEach(function(m){return Ua.registerRenderElem(m)}),r&&Ua.registerRenderStyle(r),i&&i.forEach(function(m){return Ua.registerElemToHtml(m)}),a&&Ua.registerStyleToHtml(a),o&&o.forEach(function(m){return Ua.registerPreParseHtml(m)}),s&&s.forEach(function(m){return Ua.registerParseElemHtml(m)}),u&&Ua.registerParseStyleHtml(u),f&&Ua.registerPlugin(f)}Goe.forEach(function(e){return Ah(e)}),Ah(_ue),Ah(Kde),Ah(eme),Ah(Gve),Ah(Iye);var Cz='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Az={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},kye={hoverbarKeys:zi(zi({},Az),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Ua.setEditorConfig(zi(zi({},kye),{decorate:Sz}));var Mye={hoverbarKeys:Az};Ua.setSimpleEditorConfig(zi(zi({},Mye),{decorate:Sz}));var Nye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:pn("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:pn("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:pn("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:pn("editor.image"),iconSvg:Cz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:pn("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Ua.setToolbarConfig(Nye);var Bye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:pn("editor.image"),iconSvg:Cz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Fye(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,i=r===void 0?[]:r,a=e.html,o=e.config,s=o===void 0?{}:o,u=e.mode,f=(u===void 0?"default":u)==="simple"?Ua.simpleEditorConfig:Ua.editorConfig,m=zi(zi({},f.hoverbarKeys||{}),s.hoverbarKeys||{});return $q({selector:n,config:zi(zi(zi({},f),s),{hoverbarKeys:m}),content:i,html:a,plugins:Ua.plugins})}function jye(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,a=e.mode,o=a===void 0?"default":a;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=o==="simple"?Ua.simpleToolbarConfig:Ua.toolbarConfig,u=function(f,m){if(f==null)throw new Error("Cannot create toolbar, because editor is null");var k=m.selector,K=m.config,U=K===void 0?{}:K;if(function(ee,te){return WN(ee,"data-w-e-toolbar",te)}(f,k))throw new Error("Repeated create toolbar by selector '"+k+"'");var re=Es({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},U||{}),$=new ree(k,re);return xS.set($,f),Ob.set(f,$),$}(n,{selector:t,config:zi(zi({},s),i)});return u}Ua.setSimpleToolbarConfig(Bye);var Gye={}}).call(this,ie("IyRk"))},z4EP:function(Dt,Ne){Dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7dXQd4FdeV/ucJid5MMRgjRAeBBDZg0zFG9NiwMbis635O2WQ32WyS3Q1J1glxId6NU522ceLEsZMYMM1U0wWmG0RRo4MkRC+mCklv9rvn3nPLvHlPT5RsvM9F0nsz86b885///OfcOx5u8cv3/RQcX3pvtDo6zPf8HhGgh+957eH7jQE09oG0sK/0oj48AD7959Mv9Lcv3uGfPnw/av6mhcV7wWXE21H9mbuO2LbcPvwoLecuq7bn+/Cs7YvvCC7H+yW/3wfoK+X2ffkHomrf6DvlCnp/5d9R2hVP/ONX0++IelBffouvzl9/c+Ia3vTL97elVpccm+B73lOe748G0NSPyE2L/4sLxX8n+jIGmVhGnOqIvibxQCYvWHyQic8EgBRs1QX31Dp0NaPiAjPQzLYYKLTvBFb5UwPIArUEHwNW/pRYksvLRRnY7rHQGSKQiRtMgEwC7v8LyG4KYH7JhvrR6Kmv+PC/Bngt6Bx7HiIKRRpkgo3EeRT/q+EViSpUWUwmrw/xmgSUuBzMGvrimgtHF1WxoASEYilx3RRYQIzpw4/ythIzmQGZzWSGgSSQGKAMNrOv4jPNyAHG1cymcBgRgFe/S6r95L5qvuIhxybCYOWRec/5iE73/Eg7zxOXCpCk5SEaBjLeTg0gE+xCoYnDpbowElvhIKOLR9fWDZcmdAoGYiazlhPrKYDJC1odw1KGyWRYNaxkMafar8Qgk+smBBndOPLYI5oFxRqSET+Jr1oD7Nr+WeM9Dz+A52USvXsRGQYVcPjnXwdkHLI4BBnwxOoyBoQLNGIyBUy5ThQ+hc2wcGmzVOB3ZlmHyezwLZdPlsmktFChljTZJxNkSQPM933v2v7ZL8Hzvym0Av1LoKJfpH6wQOaESys86i+8ZUxmAMPiPT6TmXBpL2ODTIbfBJqMQrhkmjA2c4AdBBuH9hjBb+k0Sw5IDfrJBllSAPNPzmx09Vz0bXiYROCKSEDZIGOwJQ8yuX6ilx0u6TTrcKkuML1nZZX6AsZml+6FNwDi9wXIOGFwQKYBZWeXsUwWT/zrBESHb7MuwYfCuwGtBBQLfw8R1pp0qJ88JqsRYFcL/5wR9bwFgJ/lhMH/A5AZka80mtZk8qLoEBejyZhxrAsZZCl5tU1WSiFSAfFGQGbpsppAxuBknamFPWWUAmQWkxn1/4mQZAkBJsBVjehmwGttg4t/N0wmwqMU+LclXCqPjM8o3fUqDWBLSzKZAJnyv1QWyRdXZ6J2FqptBItVRMYb1GSOp3aLmExnupZtEZNdCiYTho1hsk9adhkXYP6emY0uoWIDPGQRaISYDwh5T6SNSn/JZf46IKP7WmfvwsxU0COQsSdlrAoDMs4E1U9lhrKJqpkkCDICosgwXSuEQnZAZ7mZpNFWTggNhEt7u2645HRa3jz6M06xPwEWRijAhKC/mP/WXACTJHBYc0mgEYwEmuhfW5MZkIVpMlJLbGHECP8kNJnFZOQUKbdf/GJAxiCIx2TxQMamqO3021aEBJiuClCmqXSheD8QRm1AJRL+8jNXlxmvTyNJak1fnG07zP/ta7JQgH28+82Xoz6+ScAiIHGGqMBmgYzyyEhEHLvOKpNmMnFqleOvuE86sglebknJFv5SMMvIGdBaivGYXVwTlpnOACycyZSXRuasSSz0sqzfFFhimYxZM+Cf6dKSsjBivD4XZL4CGZnE4qSLQ/0btjBiruaFXb8d70exWLjuDDDNRgSGeOEyEsgqJWTkuiK8ynMRUaasdvwDTEZGZJIg09LXMmODtT9bk9lmbLgmY4vCrUcaNrLd/hCQsXEbB2Qs4sPCpc1kFHaDN4oKh/J4DJOZKPm36fg7APP9mSkf513c5QOZlCkHQWYzmgIah0sOmWGaTLOgIngBssThUobShExmOf7V5HybE+yarMaMZebSmswW1VoXxTKZW/R2QcbfRYmHbXVwomCFv1B/zqqlxgeZKfZL3ElNxhaGOfS/PZA5V/H89l897/uRN0hnCaaRFr3DZAwWky0aTeaATJmwHC7lZ9L1Z1AyyLgSQN+nCuRK4CUEmQCKSOGl/y6zP2JAfffzxWBGMp0afnUV7Y9x7LneaXdhJMlkliXBpSfHmkgAsqCFcSMg0zeO1AfOOau6fg3RaDXS6jVMfC5v06caYH7JzPpnT5zd5wHtZMYoQRbGZC7IZHbpZJgWMGWYVEC1WE8CVPnUIcKfQVjTcduajLNLApnDaAJ+gnmAotyF2LNiFjr3fxB9Jz5t1S/t7DMWZGJ7BGbNOCqrDNY4o1FdFxWAF8wWFPJBJosFmQm/drg8f/wIGrVsi5SUOkpqiuUiqm7J+6/aVwCU78tDwYeLcMddnXDPmCdqOpW35XMNsNNbfjHN8/AK66abBdmxoo9wrDgvEOm4tGQzlbrnFOBijzI2u2yX2R93975PL+qCzGYyRW9W68zZsgNY8qN/Q4Omd2DytF9KFgv2lFn9XDoxUMtQWNKFdQ6Xpi2H2EQkATF+mqlFhoVoThykucvMazy58n07kZ87B42a34neox5Fg8bNFchI5RPIJJMJbUNfjurKCqyf9TNUVVZg6JQvoW7DJrcFRAmlDJHqtl+nno1WlvvwWhg2YjHPTCZDpiP8HU3m+mT5K2Ziz6o5t+WAssc9jj4TnjLb9oGj23NRceUiJ/GWT2YtpnyyncveRcWlj9Fr1KfRoMkdMa0xhv1kxpdarxEBmtlLel9cjpIemQ0a+igalQ68ZdoGGx+dTJPbixy7QxW4fR8Xzx7HrhV/wZXzZ1AnrS6yRj2GO+7qSAcXra6yeskUyNSZ2Ld1JUoKt6JT32HIyB4S93p4kZTbcq2IwU5ven2SD3+ebUkYH8uEyzBNZms0zjDFewJg+avm4O5eA5DRb4RVGFeGv+oaY2+WXHg2cvlQbYXoeTi0eRWO7tqIGIABWPjql3Cu7NBtOUlN26RjzD+9bJjOMVi56B0AmQqloV2xHMId8CntRO1DdoYq2VD8T+ipgtz5OHFwDyIpKej1wCNo1Lw1Ns5+/aaPe+RT/45IndSb3k5wA3QJT278yWzAeyToexmLQRmsJPxNkTt0eQp1EeSvnEUA6zn8Yck2QZ9MLcdajGMpg0ykDvxdpMcAbF/we+SvfC8hwDIfmIT6jZur+5dgq4+ZIocMJNork5dON5/JsKPWuXbxPIrXL0azNukY/c+vOGxELr4Ag9qWdPqTSRBUqFTtQE64pOgrQ6Q0VlnzGVNXfEfxxiUo2bMJd/fsjw7ZQ7B75UznulZWXMXVi+eRkpqKhk1aJAWaeyc8q7VdUiskuZAnrIlTm46d8X2vaVj4MyBTITAOyFxDNoICAbDVc9Fj+EPoO14AzMPl8yfVbrHwJ/WgEwQj/CV1UX5aJwUNm7emv3cseBP5K+ckBNjD015H8zs7KKCQtKdwaQt/R3RzaCLt5JaCLpw4iiU//jcC2JgvzYhx67lUJNaT0TBxw6IJq4qlCFBu35lt8saEVCsbPXW4EK06dDft2Ax0+Mhb9icIrdlzyETc1fVevns0JC5fOI2GTVsmCZGbW8w7veGn90Wj0c1R8kkD5qplUUizNHmQCaYpUADrM+5JAtF7059D5bWrtdrjuo2aYOrL7yQNsIemvY5mbTK0L6Y8fZnZWcwlk0yT4UmcuSATWZsB2PcVg8UarNqasHrJXO0lQSTHAnBTZPz+ftozShRY60kG41KVkyVbWapYr6xoG4o+XISmd96NAROeVQ0AOl9H8aZlKC3ahsxhD6Ft5+xaXYsbWdg7te5HX/WB1wR7ULtRHHM1GC6pxGMVv4PsV7BKAGweegx7CH3GP0n7tundn6G68rruA6PD9qMoK/iIPhfZYUSJTfazUhs0xJAnvkIlJc1gYx9Dn4lPO8d7YPMKXLt0AV0G5uDkwULsXPx2gnb2cENSv+v76D1qClp3zMSBbatRr2ETZNw73LIoQrpiVX+/xHCicJkcyAyTSZCdPLgbldcr0LZbX2PBKJ0nv9PH1UvnsHnOLxCtqsKASZ9DozvuDLRe+zh7bD92LP8LIil1MGDic5SV3s6XdzL3td/4nvcZZVbFZIqxwt8wWSKQEcDWzEf3YZ8CM5g4EOOhyd8F4GZ+SwLw8Rl/Rp20erI9RYFXtF4rcwPbFwoNNgfZAmCk68Ld/oObV+DDd358U+ftvkc+hy73jQ5YGMw6bmGcmdEwWe1B5pSPNFtJ5rt05jg+fPcnpPEy+g5DV7Ffss1AgR6orLiC7Yv/gItnytH1/jFI7zVQq0+3v9/Hoby1OJi3Dg0aN0P/h55Halq9mzpXiVb2Tqx9LRcehuleLsFkEVEzDLTn6JYdqY4kY0VksVpd6EjEuPqFq+dogGWP/fsQM1bqsOoqATBpOTw+409ISa0nt6vASCynQLbj/d9T4iAAlj3hKVkVCAGZcOmrBFPKKKjD5enSA9j9wbso37sTaQ0aYcCk59E+a6DVqGjCZp3UNFDqrkMa67M4o49U+NWDSLi/P0EvWVgYtctcto1Rmr8Z+bnzKHS26dIbvR+cSvpVvK5fu4zti3+Pi6ePo3nbDHQfOA4V1y6j8uolVFy9jOtXL6Py2iX6ef3qFVy/dgnXLn1M67btkoXMoQ/fPoCVr/nBIc9DhmYW1X5DnlcCTWaLf8r2eBykCrECYIVrF6D7sIkQADMGrtXmI8AsAPZtCbDHXvkTMZjETSzI8gIAo+XigIzPmB+tRlnBVuxdtwRlhTIU12/SDA99/SeoJ7JNp7BsQt/Vj8+hvDgPHe8d4QyBc115yxS1vDHdI1ZDuJS6rObefma3M6X7sWPpW6iqqCBg9Bo5lW7cPatnoXzfrqRAklKnDtLqNULdBo1w8dxJiiB9Rz+OFu06J7V+bRfyylb/12nP81qIkKRZiUjKatPhMBVo33FAZi0v3tcAGzoRWWOfoG2LE3XiwG5F7pLBhEm47q3/pv0e/pzwYtJ046IAeJtufUgviNf2hX9AgWCwMY8he6IxWoMgE6A6fXgvDu/IxaGP1pKpKjbavtcAVFy5hJMHCzD4iS+jy305kuQskFVXXkXBmgWUAVdVXEOfcU+g18hPOyA7f/worlw4ozNA7b6rjFQDh5bg/rKQ7gvFeuyT2FUD4dRz9mwz2bnyw9j2/m+Jmgd++oto0KwVyvfvREn+JqSm1Udq3fqoI37Wq6f/TqvfEKn1BagaIy1VDqwXrT6lhVtQvHkZeWn3T/psbbGT1PLesVWvVvielyYAwCDjcGmDzK41urpMOv3EOFbvmABYUe776DZ0ArJFHUzoresVmPvi80ntGC/0+Ct/Rkrd+gTQHUKDrZpLABOJgzNaPFqN4vWLiHWO79uDqgqZrTZo1gJdBo1B14Fj0LBZS1RcPI+5M75AQvhTX/8xmrS8i5a7cuEsDu1Yi8I18+n31PoNyMPrMWwiXTBmLgGGLXN+jQNbVtbqOGq7cMe+Q5E54u9Cu2gFk4n9aE5OfrxBJHYHBg8iUYyvxmdGq33s3boMGVmDULfB7SkjeWWrXq3wPC9Nax4FtNqAjDSZGASiQEYMtmauBljWmMdIL0Srq1GUO08xmNRP4r3CtfPp/GeOnEwOtZSv8nORzaWk1qWbPG/RHwhgYnsCYCRyrYbFDe/8EAe3rEbD5q2Q3mcw2mcPROtOmVJLAai4fAFbZv0Kh7evo79bpHdB5ohJOLh1NY7tzSN9I8owPYZ9CpkjJ1GJyFxAU/YRQC4r2q7MWhs6geFnRBX8ufqF2VK/bWe03JQItOncGx36DHXN3UAFQBfJ4ePyuZPYOv8NNG7ZFn3HP0OWyP6ty1G+fxc63TMCd3XvR/39+7Yux4mDBcgcMpHCIjUt3saBvV7Zyu+fhidrkAwyzWSKkWRXheWRqYtvmMyIfvLKIx6K1s6TABsygQAhVzFsx4wYrarE7O88Q59PfeltRKsrseP9P6B+42boM+FpZxAJhcjVgsEeRdb4p6TEtRoWKy9fxKVzJ3FH+y4OYQjm3LthCXZ/MJPCZXqfQbh0+jjOWqWlSJ06xGpj//kVtOrUS4FHueo1DYezRjcFx0oGS0VyHop4jn/scLiwwrgQ9dHKSqQ1aKwBeL78ELbM/w1atu+CvuOfpfcL181HWdFH6Hr/WKT3Hkgnq2DdPJTvzUP2qEfROr2bCpfOnVBbsk24vACYKOBlMIAo/SXNzu3SslM1CDIJGLelWgJIgogAtm4hug0Zj96jH7PaqRmsEpRCZL73XWEIAlO/90ek1K2Llb96AaeP7MX4f/kvNBNhQI0JyFv0FmkjAbDscU/KhkgFMu3JSSjTv0KoH9yyEoVr5uHqx+fRuFVbDJjyj2jXsx/2b1iKjX95Hc3u6oCRz38LF06UYdX/TEd61kCM+IdpAVM2fEYfUyZSbjzprWDDouyIMECxpzHgJMFql1bF7ngZpgjVBz9ajb2blqDn0IfRvvcg2vaJQ3uQt/QdtO3aB71GTqGzUJgrALYN3e4fK5eDj4J1C1C+dweycqbizvY9zcDe28RkXtnKGbm+j2G2ruJ2ZgOgcJAZXWbapT0vhUAmQqEAWNfBAmCPWjaFR+GUs0rBGgywKd97i0LU2bKD+OBn09CqYw+M/uJLmv12LHqLzNus0Y+ir9Bgql6pRb4HVF67gvLC7Ti0bQ1KC7ZS2EtJS0PvnKnonTNFF3SPbF+H3N+/SuF0ynd+R0Fi6Y++jlNHijHuy99Hq4yeFsjid8XSva9HFolLmEzR24DMLWwHRimFjMcU35X7x1dx6dwpDHzki2japgMBTAj2/NVzkJ41CN0HT6R9IgYrlABLzxpM7zGDCYC1Su+BiAWs2xEuvZIVM37jAZ9hRmKmEj9FCLJBRn31MeEykG0Sq6WgKHc+itYLgI1Dr5xH4UerZLmEO10VyKqrqrDglc8TiCZ/+zcEMCpsL3oLdRs2Rs8HJiM1NY2yy7zFfySAZY9+FNlKg3FX7Ml9O7F7xWycOLAHfrVoogaatU1Hp/seRKf+I1G/qSz6CsbcPv931HjIrydfnYk6deujrHgHVvzyBbTK6I7x//LfcmoAisECyrFTFEStwR8MNGKeuCHQbt+pub+fapzWqCPxu8giN7z7UzRo2gIjnvmGri4IvbV/ywp0HjAKnfs9KMGUO08CbOA4pCsGy8+dTwyWnfMYWqoQKQf2ss93a8OlV7rila/6Pl5zW5uVeeqAzGUxR5OpOGVrrOJ1C1C0fhG6DRqHzJyp2PTuT3F8784biu9tumbjwc+9gLxFb6NgjWCwqRQitdsPkPZa+P0vIrVeQ3TsNxwdBzyIlsLb4dZvAKV7NmP7vDdx4WQpmrXtQGAWoXjCV19DK3Wyl/z0P8jGeOAfvoH0bHnXa/BYIHOL0gwEdtYTg8yeb8xMgucW2mPny5DfsWvFTBzdvZHcelFp4H37aOHvcOpwEe4Z+yRadexFN0dh7jyUCoANEgAbTDeKYLBjxRJgrTr00K1Btwtk3tEVMwYgGt2imcoq55DwVzpHajLTRh0j/HVdUi5TvP59anURB9dr1BTs+uAvOF2yNzAdhdutqrNHhqFKJlu274b+n/4s1RdF+UkCTLQARxyQfXyiBE1btwOEb6Y2LU7cySNF1Opz4kA+gSp7/BPIHPl32Db3DRStfR9DnvpXdBrwIDUIHt+/C8te/xZEkX3MF14kKyCeGZsYZInCJWsyabKGgizQFUv9YJXX8cGv/5P8uQeem4YGTVroG2DlG98lp/6B576JuvUbSwZbO0cDrEPvwcRRBblzHYCJN48f3ImWd/dAaqroBzOZbIJibtJEQe06R5fvOxMBmjIr1RQuJdBCwqUVPovXLUTxh4vRdeBYshqoNVklC8HCuNZ/gZFKcn9MP3/ekrfJp8oaPUVWBwiALsho2yIUVlfhSN56FK9fSKareLXPuh8DpnxeG5gb//QT7N+0HMOe/Toy+j0gB434wKZZv0Dxh0uQ1qAhcj4/nUJJKMhUB4YzHC7pkUpu0dsGmZM8qOmlxMUuLdiGjxa/heZ3ZWDwo1/WicO58iPYOOtnlHmPePobWjvmrxEA24pug8ajQ5ZksHwG2OjHSYOJ0C80Xd1GTXHf5C/QlFFyzCVjKLwxIFmE0SU6suyl2R7wiBv2jBcVtCjctp3YkUdi+b3rBcCWkMHZ68Epmv3ig0xsR4w64pYgU6riLHbnknckwHKmIGvcE2aGH91TJrKpIpTs2kAOvuiuYC0mBni0zxaZlHmt/p/pKN2zFTn/9CLadr+HPqAZFv0oct/+IW1DaLOcz76A1p0zZa88xSSeooDvdgMW401Z4dJa3nblg+07cgI8q3effS81HG7T7J/j5OEiZI2aig4cvn0fm977Bc6UHkCne0eg2+CJ1Ncm/ilYMwclBVvQfdAECvcEsLVzJIONfhytO/QkBl395kto1KI1+j8k3Xyel8zu708WUMHlCEVHl780yY+qlmmn/khfJ8s82gczTYLMPGGgKf5wEfZ+uAR3du6NdpkDtNUgmc9sl7WfnoZAj1CyAqbqoi3ZuRHHirajd84jyB4rqwOyXgrsWvYu9m9eTi68eKXWq4+Me4aj88DRaJnRXZ44Sc30u2g/nv2fz6Dy6hU8/O1fomnr9vrcCJCJctOq376M0vytSElNw/gvv4o72nWSmSuBjFubDcjEAGu6tGGDSKxEIRxkbG+4WahMGoTlchbLf/UCREPBmM+/iNR6Deh7RKYsGgxFiWjEs9+g8hDvX/7q9yTABk9Ah6whtG8EsKLtGmDXK64QgzVr0wH9JjyrunnlXLGyW4Mbp26Myehsi0EfJWdOlvtAYNCHvBgc0uyBuDTCUftgseFyrwDYhqU3CvyE6wmAZY0R9U0TPvduWIytc97AnZ16ocv9OWjfd4huQzGt1z4qLl3AxTMnkL98Fkp2byax/9C0n7vfpzowRMa5/Nffobt8zD++SBaHFv1xQBbsipWVAGYzlTkG2nFiGxFtG0MCdt/GpSjMfR9tu2ZjwMOfofeEXty28E2yYjJHTEZGn6FOUpK/ejZK8regx+CJSM8eIrezeSkO561Di7s7o13P/jhzdB/KireTf5Y5fLIpiamRSvIwbxxkuqHqyJIXp/me/4rWRxpAyoFXQAsyGU0FoB1/Ey73bVhMABMXsGV6V13glqwjTrsR+CaDVTxj3FMmHOKfU4cLcKbkAHqPegRZYx/X4KeFotW4fO4UGrdsp1uw7Wk8t817g7o77Fe9xs0w9Jmv6fDofKhAVlVxBdGqaqQ1bCwni5PFI9XGQ6dfZWJWuAy0Xjsgq5WFYUxbUQY6VrgdAyZ/Bm279CEG/Wjhm2StdLp3OHoOn+yWlXwfeyyAibKTANjHp8qw6b3ADQUgK+cxtO4gNBnrfMlYwV6y2gp/DbCSDT+s71+4tC/qiYG3pizktNlwiLE+ZybjrJKHtpUWbEHZni1ol9kPHfoOs4zWYOt1rIazTV/Te+bhwNYVOLpzIzr2G4GO/R9wBvtqf419NqthUfh5ov1508yf09jARi3upG7PzvfnUF9Yopc967W8m5WdoIWwcelNC7YMobG9ZFwKisdkQZ/MDZdnSw9AjHCKCDPb9ymbPLRjDToPyNG9+ZzZip9Xzp/GtcsXUK/RHajXUDymQGatohPk1NFiGuYnmg2bt+mAJq3uNp0fiUCmxlwmG5o0wMQKh5dNfx5RvBEr9hXgLFZz5q3gSU4U8Lj1mnyqBC0+rO3kZgP1Tntd3eBoQradYZqbQDKgCzY1rQAzZy1n87EbFhVfcSavDFhT4GZXXhKcAp7FZgxQY03Yo5JU377DfvFbr1WTvtaCtl9ng4z3Rff4O6HdVCGkVrLGKDggkw+J0JqsFiBzAEaWxdJCmvzElHPkzDhuw6AKczaTsU+myjeCyWyAxQCIUCXZzA6x8daxmUwSKQPSqpPyNAWhIJPJAJ2kmwQZz4PBYtowm+v2OwNLtA4T4AsM+BBTDOi+MZ5ancNvIpCptFYlHDawbKtDVwMoG2UW5pFNPCKK54o1n9+KcOkATGywZNn08dVRLGYBLYGVHMj0TNMhmiy2ME4KncpKhslix1zGC5cuyFjPKRA5YdLMm2H3998MyGQmqbpR1Z2fEGSWN2ZKP7bJymCyJ1vhSe3EcskyGWewdnHezmrVNgl99hQFJhEJYzJmR9JkzMzWFAWJwmUMwChULv7uy/C8b0ri4hYbZXpaNoYW7IrJyO1XYVTXNKlPzM1GY0EjvS8Ou+x7hRqydrhUbd21CpdcmRCn2GIyPdC3BnGh58GgEmU8kAUnPFHhRycHdlmIM0YGnG17MDjETtXEZEHjlgf42rrO0ouqVdtuWKQbh+dac8KledwNRRInXAqMxJ/DPxRgYgrNo0u/N9cHJlGBm0f5BAaCmPKSmbcitCs2UH4KsllwzKXspHXDsgGlgIJkVLu85bj+msFiNZndgSG2ZIPM9sni4swaRCK0JrdHOwmA9rwMM2nNZFkURjcZkNEFt6fn5CeR1DCIRHkhMZmkXYGw/TcTTpnN3HpqcBI8c3zUNZi0TxYKMLGxk6t/3ujq1dMbfDEJsGoWdHRPkMnCGhbFMhFjYwSZzE4mYgb26gmGgYjV3iPXUaxq74PcSdWIa4Q+G7i28LdBdrOa7EZAFiPIVXbHvf3MKrRczJNIBBDCW4IkiO1mRsOKoUmAWIEAHAdknDWrjg5qJtW/S8e/JjM2LsDEVx5aMiPD8yo2w/day8hHDTzW4FyLIVSYDHbFUugTK1uAcUKkY4lEyKkOtmtT7cAatSSnT+dhdW4IDo5ukvtr9lM3KarJVoIP7pJLGsc/PpOZp8HdGpBZoluHL2PQUpVAhy2em8zoK2YkAzIJrhjWCjKo1QzpANsKl3rbsudZWzVieTPLYrgZmxBg4uSWL5mRcd2/voCYzC7j6N9jO1to6hs3AAAD80lEQVSDIFOWuwKZBCoXpWNtDDWbj63lFIOFgcyUi+ShCIDKIXfGX9MJgV32Un0dDLgbYzILZPTt1oO84gyH07otUE4KC5dcdiKKcZiMa6Hhrddh4dK1LkzmaIBptWvrKRVYZwYnjLFBJsxY2X8X5vjXCDAdLq+dfltoMg5RSrfHZJha3Cvd5WgyHqTrsFZ467WZxtNtyzYhT4wONnXRGEOYWC4ByJSuvPlwGQBZ3KfDBaYbkIpaMYyr1dyGRTMugPSepcnkcq7lYQOGgSZJKtYaYVEfA7KQemqsJpONmJxNq1l3Y7owkgKYEnjekSXTXxLZpQaZdQGDDYsyNJrefg6LGoBxQcYCXvwU7ddmMmKt2VSZibYZEi5Z68U+U8kue8mBvfas19I4uRGfrJYg00ZsIMOzNI/0sQLdFdasiabYLp4OZ8Zf2iExofDn0BioizJoDPhVkdtaXqJIhkvu4HVbr+UNo+VGXJ0R8oHwyaJR/MD3vEz7oQwyozNaR3tbMYNITHeGHXJlFIwdRMIDSULbfFhfaZBZExKzjop5ppKtJWWGzIC8mXBJU0Qpv8t9cJfSTsqisFuvJXOEMJn2msIGkch1zONuVLjk2Xhs9uHJUSjEGoPXMWTD+tcC88raCQIfoxb78k6wHnfDHpySDLUBFy8rHP8jHxQ/58GbLibFIe1jO+tW6Yir1WbkuCkJGd8r1iuTLj/rNTlaKbmGRTZwzTZrejrcrWIy7ooQexAOMlWj1E6+KZy7jKEyO8JSbGeFtkbs3jHNduHz97u10ZCwarOnLfxVGDQJhgK3DGuaqbhBUTcsis+jMT3KtYObKJBHL17+iudFvub7vm71CdoRXAqyB5FwyIwZRKJNWTZ4GWQiXIZPrW48MFF6d2uR8ntMW4+ueyrrRfK4ZL5guFRv6pNS6+xSXQTWIbYnpZmsxq7YZEGWYBCJGp1kP+QrmF0ym9oT4unaZByQKelkgUyFRdKhMjFIWoMlgh71k507NcGLek/7ES/HA5qyEWo3LPJFDDr0oSCzqgLGVJVD4uKGS0JwLMgkhhRz2vrNCo/2k3vt+ftjQeaOIwg7L/bD7YNM5j6JxB0O5zwWWgFPhzMKm8Exlypr1UzGIHMHDLOfJrNc9ZzyQCi1GSom49T6y2SadNx2eJVmlHwmOrn9svX6lgDMPskifJauOtTP86uHep4nRnZ29zyvPeA1RsRrDHhpklCs+fUT9fcrLSVByRMSJwKZAZIxZE1xnLNQw2TMeGpsp8p+7eySGZCPMxkms9t8SCWJefaVWtFyzOpy5a6HuM8eVywSD2QGFAZkzDBB4Z8syOJZGDo7DQMZyT0GmY//BTPiWWsfFEpDAAAAAElFTkSuQmCC"}}]);